Skip to content

Commit 8f53698

Browse files
authored
fix: should respect position in clip-path fn (#467)
1 parent 5210513 commit 8f53698

11 files changed

+32
-3
lines changed

src/parser/shape.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,11 @@ function resolvePosition(position: string, xDelta: number, yDelta: number) {
227227
res.x = 0
228228
} else if (v === 'right') {
229229
res.x = xDelta
230-
} else {
230+
} else if (v === 'center') {
231231
res.x = xDelta / 2
232232
res.y = yDelta / 2
233+
} else {
234+
// do nothing
233235
}
234236
})
235237

0 commit comments

Comments
 (0)