Permalink
Browse files

Add optional rootContext flag to convertPointToLayer

  • Loading branch information...
nvh committed Feb 20, 2018
1 parent 03ae78d commit 5cf9935210d84733f737d0201255cc9a888bbd89
Showing with 2 additions and 2 deletions.
  1. +2 −2 framer/Layer.coffee
@@ -684,8 +684,8 @@ class exports.Layer extends BaseClass
convertPointToCanvas: (point) =>
return Utils.convertPointToContext(point, @, true)
convertPointToLayer: (point, layer) =>
return Utils.convertPoint(point, @, layer, true)
convertPointToLayer: (point, layer, rootContext=true) =>
return Utils.convertPoint(point, @, layer, rootContext)
@define "canvasFrame",
importable: true

0 comments on commit 5cf9935

Please sign in to comment.