Implement correct selection drawing for CompoundPath.

Closes #402.
This commit is contained in:
Jürg Lehni 2014-04-07 11:22:25 +02:00
parent b8f1cfea9f
commit f953331edb

View file

@ -269,6 +269,16 @@ var CompoundPath = PathItem.extend(/** @lends CompoundPath# */{
if (style.hasStroke())
ctx.stroke();
}
},
_drawSelected: function(ctx, matrix) {
var children = this._children;
for (var i = 0, l = children.length; i < l; i++) {
var child = children[i],
mx = child._matrix;
child._drawSelected(ctx, mx.isIdentity() ? matrix
: matrix.clone().concatenate(child._matrix));
}
}
}, new function() { // Injection scope for PostScript-like drawing functions
/**