Skip to content

Commit

Permalink
Don't correct artboard positions
Browse files Browse the repository at this point in the history
  • Loading branch information
Koen Bok committed Dec 16, 2015
1 parent 80a0cba commit 893cb5d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions framer/Importer.coffee
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -170,16 +170,16 @@ class exports.Importer
layer.visible = true layer.visible = true
points.push(layer.point) points.push(layer.point)


# Calculate the artboard positions to always be 0,0. # # Calculate the artboard positions to always be 0,0.
pointOffset = # pointOffset =
x: Math.min.apply(@, points.map (p) -> p.x) # x: Math.min.apply(@, points.map (p) -> p.x)
y: Math.min.apply(@, points.map (p) -> p.y) # y: Math.min.apply(@, points.map (p) -> p.y)


# Correct the layers # # Correct the layers
for layer in layers # for layer in layers
if layer._info.kind is "artboard" # if layer._info.kind is "artboard"
layer.x -= pointOffset.x # layer.x -= pointOffset.x
layer.y -= pointOffset.y # layer.y -= pointOffset.y




_correctLayer: (layer) -> _correctLayer: (layer) ->
Expand Down

0 comments on commit 893cb5d

Please sign in to comment.