Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit 249ba84

Browse files
committed
Handle transformed shapes
Fixes #3
1 parent 53b515a commit 249ba84

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

SeparateShapes-plugin.sketchplugin/Contents/Sketch/separate-shapes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ var ops = {
9090
};
9191

9292
var shapeGroupFromOp = function shapeGroupFromOp(shape1, shape2, op) {
93-
var path1 = shape1.bezierPath(),
94-
path2 = shape2.bezierPath(),
93+
var path1 = shape1.bezierPathWithTransforms(),
94+
path2 = shape2.bezierPathWithTransforms(),
9595
newPath = null;
9696
switch (op) {
9797
case ops.SUBTRACT:

src/separate-shapes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ var ops = {
1313
};
1414

1515
var shapeGroupFromOp = function(shape1, shape2, op) {
16-
let path1 = shape1.bezierPath(),
17-
path2 = shape2.bezierPath(),
16+
let path1 = shape1.bezierPathWithTransforms(),
17+
path2 = shape2.bezierPathWithTransforms(),
1818
newPath = null;
1919
switch(op) {
2020
case ops.SUBTRACT:

0 commit comments

Comments
 (0)