Skip to content

Commit 332e1cf

Browse files
committed
DVF-2633 removed arc simplification for identity transformations
1 parent 6fc07a3 commit 332e1cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vector/PathBase.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ acgraph.vector.PathBase.prototype.forEachTransformedSegment = function(callback,
352352
args = this.transformedPathCache_;
353353
} else {
354354
var tx = this.getFullTransformation();
355-
if (tx) {
355+
if (tx && !tx.isIdentity()) {
356356
args = [];
357357
this.simplify();
358358
tx.transform(this.arguments_, 0, args, 0, this.arguments_.length / 2);
@@ -869,7 +869,7 @@ acgraph.vector.PathBase.prototype.calcBounds_ = function(transform, calcMap, all
869869
var rect;
870870

871871
if (this.currentPoint_) {
872-
if (transform) {
872+
if (transform && !transform.isIdentity()) {
873873
var arr = [this.currentPoint_[0], this.currentPoint_[1]];
874874
transform.transform(arr, 0, arr, 0, 1);
875875
rect = new goog.math.Rect(arr[0], arr[1], 0, 0);

0 commit comments

Comments
 (0)