Permalink
Browse files

Cleaning up and fixing bugs

  • Loading branch information...
nvh committed Jan 17, 2018
1 parent f89a6b9 commit fed1f13248267cfee3c62943a2b6ccee03932c70
Showing with 2 additions and 3 deletions.
  1. +2 −3 framer/SVGBaseLayer.coffee
@@ -97,15 +97,14 @@ class exports.SVGBaseLayer extends Layer
when 2 #SVG_TRANSFORM_TRANSLATE
options.x += matrix.e
options.y += matrix.f
#@_element.transform.baseVal.removeItem(i)
indicesToRemove.push(i)
when 4 #SVG_TRANSFORM_ROTATE
# We willingly ignore the translation from this matrix
options.rotation += - ((Math.atan2(matrix.c, matrix.d)) / Math.PI) * 180
options.rotation += - (Math.atan2(matrix.c, matrix.d) / Math.PI) * 180
indicesToRemove.push(i)

for index in indicesToRemove.reverse()
@_element.transform.baseVal.removeItem(0)
@_element.transform.baseVal.removeItem(index)

rect = @_element.getBoundingClientRect()
multiplier = Framer?.CurrentContext.pixelMultiplier ? 1

0 comments on commit fed1f13

Please sign in to comment.