Add comment about #clockwise magic happening in #append*() methods.

This commit is contained in:
Jürg Lehni 2011-05-16 20:17:14 +01:00
parent 4d0858c6bf
commit eafc0d202e

View file

@ -28,6 +28,7 @@ var CompoundPath = this.CompoundPath = PathItem.extend({
// clockwise orientation when creating a compound path, so that they
// appear as holes, but only if their orientation was not already
// specified before (= _clockwise is defined).
// TODO: This should really be handled in appendTop / Bottom, right?
if (path._clockwise === undefined)
path.setClockwise(i < l - 1);
this.appendTop(path);