{"version":3,"file":"svgExport.min.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":"0FASA,MAAa,EAAe,GAC1B,UACA,EACG,IAAK,GAAU,EAAQ,EAAO,EAAO,oBAAA,CAAA,CACrC,KAAK,IAAA,CACR,IAAA,OAAA,KAAA"}