Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Added convertStartToLayer and convertEndToLayer
- Loading branch information
Showing
with
6 additions
and
0 deletions.
-
+6
−0
framer/SVGPath.coffee
|
@@ -108,6 +108,12 @@ class exports.SVGPath extends SVGBaseLayer |
|
|
pointAtFraction: (fraction) -> |
|
|
@_path.getPointAtLength(@length * fraction) |
|
|
|
|
|
convertStartToLayer: (layer) -> |
|
|
@convertPointToLayer(@start, layer) |
|
|
|
|
|
convertEndToLayer: (layer) -> |
|
|
@convertPointToLayer(@end, layer) |
|
|
|
|
|
valueUpdater: (axis, target, offset) => |
|
|
switch axis |
|
|
when "horizontal" |
|
|