{"version":3,"file":"svgExport.mjs","names":[],"sources":["../../../../src/util/misc/svgExport.ts"],"sourcesContent":["import type { TMat2D } from '../../typedefs';\nimport { toFixed } from './toFixed';\nimport { config } from '../../config';\n\n/**\n * given an array of 6 number returns something like `\"matrix(...numbers)\"`\n * @param {TMat2D} transform an array with 6 numbers\n * @return {String} transform matrix for svg\n */\nexport const matrixToSVG = (transform: TMat2D) =>\n  'matrix(' +\n  transform\n    .map((value) => toFixed(value, config.NUM_FRACTION_DIGITS))\n    .join(' ') +\n  ')';\n"],"mappings":";;;;;;;;AASA,MAAa,eAAe,cAC1B,YACA,UACG,KAAK,UAAU,QAAQ,OAAO,OAAO,oBAAoB,CAAC,CAC1D,KAAK,IAAI,GACZ"}