fabric
Version:
Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.
1 lines • 804 B
Source Map (JSON)
{"version":3,"file":"parseStyleObject.min.mjs","sources":["../../../src/parser/parseStyleObject.ts"],"sourcesContent":["/**\n * Takes a style object and parses it in one that has only defined values\n * and lowercases properties\n * @param style\n * @param oStyle\n */\nexport function parseStyleObject(\n style: Record<string, any>,\n oStyle: Record<string, any>,\n): void {\n Object.entries(style).forEach(([prop, value]) => {\n if (value === undefined) {\n return;\n }\n oStyle[prop.toLowerCase()] = value;\n });\n}\n"],"names":["parseStyleObject","style","oStyle","Object","entries","forEach","_ref","prop","value","undefined","toLowerCase"],"mappings":"AAMO,SAASA,EACdC,EACAC,GAEAC,OAAOC,QAAQH,GAAOI,SAAQC,IAAmB,IAAjBC,EAAMC,GAAMF,OAC5BG,IAAVD,IAGJN,EAAOK,EAAKG,eAAiBF,EAAK,GAEtC"}