"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("../../../render/dom/parse-transform.mjs.js"),e=require("../../../render/utils/keys-transform.mjs.js"),t=require("../../../value/types/numbers/index.mjs.js"),s=require("../../../value/types/numbers/units.mjs.js");const a=new Set(["x","y","z"]),o=e.transformPropOrder.filter((r=>!a.has(r)));const n={width:(r,e)=>{let{x:t}=r,{paddingLeft:s="0",paddingRight:a="0",boxSizing:o}=e;const n=t.max-t.min;return"border-box"===o?n:n-parseFloat(s)-parseFloat(a)},height:(r,e)=>{let{y:t}=r,{paddingTop:s="0",paddingBottom:a="0",boxSizing:o}=e;const n=t.max-t.min;return"border-box"===o?n:n-parseFloat(s)-parseFloat(a)},top:(r,e)=>{let{top:t}=e;return parseFloat(t)},left:(r,e)=>{let{left:t}=e;return parseFloat(t)},bottom:(r,e)=>{let{y:t}=r,{top:s}=e;return parseFloat(s)+(t.max-t.min)},right:(r,e)=>{let{x:t}=r,{left:s}=e;return parseFloat(s)+(t.max-t.min)},x:(e,t)=>{let{transform:s}=t;return r.parseValueFromTransform(s,"x")},y:(e,t)=>{let{transform:s}=t;return r.parseValueFromTransform(s,"y")}};n.translateX=n.x,n.translateY=n.y,exports.isNumOrPxType=r=>r===t.number||r===s.px,exports.positionalValues=n,exports.removeNonTranslationalTransform=function(r){const e=[];return o.forEach((t=>{const s=r.getValue(t);void 0!==s&&(e.push([t,s.get()]),s.set(t.startsWith("scale")?1:0))})),e};
//# sourceMappingURL=unit-conversion.mjs.js.map
