From 7d72f2bc60ae6c7d5b427f10c0a6d770b87d0a92 Mon Sep 17 00:00:00 2001 From: Paul Young Date: Thu, 19 Mar 2015 22:58:51 -0700 Subject: [PATCH] Add 2D sugar for scale. --- lib/twodunpacker.js | 1 + src/twodunpacker.coffee | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/twodunpacker.js b/lib/twodunpacker.js index 01b2dd8..b647a12 100644 --- a/lib/twodunpacker.js +++ b/lib/twodunpacker.js @@ -113,6 +113,7 @@ propertyMapping = { center: ['center-x', 'center-y'], 'intrinsic-size': ['intrinsic-width', 'intrinsic-height'], position: ['x', 'y'], + scale: ['scale-x', 'scale-y'], size: ['width', 'height'], 'top-left': ['left', 'top'], 'top-right': ['right', 'top'] diff --git a/src/twodunpacker.coffee b/src/twodunpacker.coffee index 9edc315..a58d4eb 100644 --- a/src/twodunpacker.coffee +++ b/src/twodunpacker.coffee @@ -69,6 +69,7 @@ propertyMapping = center : ['center-x', 'center-y'] 'intrinsic-size': ['intrinsic-width', 'intrinsic-height'] position : ['x', 'y'] + scale : ['scale-x', 'scale-y'] size : ['width', 'height'] 'top-left' : ['left', 'top'] 'top-right' : ['right', 'top']