"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../value/types/utils/get-as-type.mjs.js"),t=require("../../../value/types/maps/number.mjs.js"),r=require("../../utils/keys-transform.mjs.js");const s={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},a=r.transformPropOrder.length;exports.buildTransform=function(n,o,i){let l="",u=!0;for(let p=0;p<a;p++){const a=r.transformPropOrder[p],m=n[a];if(void 0===m)continue;let c=!0;if("number"==typeof m)c=m===(a.startsWith("scale")?1:0);else{const e=parseFloat(m);c=a.startsWith("scale")?1===e:0===e}if(!c||i){const r=e.getValueAsType(m,t.numberValueTypes[a]);if(!c){u=!1;l+=`${s[a]||a}(${r}) `}i&&(o[a]=r)}}const p=n.pathRotation;return p&&(u=!1,l+=`rotate(${e.getValueAsType(p,t.numberValueTypes.pathRotation)}) `),l=l.trim(),i?l=i(o,u?"":l):u&&(l="none"),l};
//# sourceMappingURL=build-transform.mjs.js.map
