Permalink
Browse files

Don't correct artboard positions

  • Loading branch information...
Koen Bok
Koen Bok committed Dec 16, 2015
1 parent 80a0cba commit 893cb5d628c0a01c5b50cee8eb954c7c9b9c02a6
Showing with 10 additions and 10 deletions.
  1. +10 −10 framer/Importer.coffee
@@ -170,16 +170,16 @@ class exports.Importer
layer.visible = true
points.push(layer.point)
# Calculate the artboard positions to always be 0,0.
pointOffset =
x: Math.min.apply(@, points.map (p) -> p.x)
y: Math.min.apply(@, points.map (p) -> p.y)
# Correct the layers
for layer in layers
if layer._info.kind is "artboard"
layer.x -= pointOffset.x
layer.y -= pointOffset.y
# # Calculate the artboard positions to always be 0,0.
# pointOffset =
# x: Math.min.apply(@, points.map (p) -> p.x)
# y: Math.min.apply(@, points.map (p) -> p.y)
# # Correct the layers
# for layer in layers
# if layer._info.kind is "artboard"
# layer.x -= pointOffset.x
# layer.y -= pointOffset.y
_correctLayer: (layer) ->

0 comments on commit 893cb5d

Please sign in to comment.