Skip to content

Commit a2e21f7

Browse files
committed
Fix call to Matrix2D#translation
1 parent 192636b commit a2e21f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/CubicBezier2D.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ class CubicBezier2D {
252252
getAlignedBoundingBox() {
253253
return {
254254
bbox: this.getAlignedBezier().getBoundingBox(),
255-
transform: new Matrix2D()
255+
transform: Matrix2D
256256
.translation(this.p1.x, this.p1.y)
257257
.rotateFromVector(Vector2D.fromPoints(this.p1, this.p4))
258258
};

0 commit comments

Comments
 (0)