@univer-cli/svg-facade-command 1.6.2 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x6b1728=_0x3865;(function(_0x33c497,_0x3c77ac){const _0x3afe95=_0x3865,_0xb14e10=_0x33c497();while(!![]){try{const _0x20f1e7=-parseInt(_0x3afe95(0x1e6))/0x1*(parseInt(_0x3afe95(0x1fc))/0x2)+-parseInt(_0x3afe95(0x1f8))/0x3+-parseInt(_0x3afe95(0x1d7))/0x4*(-parseInt(_0x3afe95(0x1f0))/0x5)+-parseInt(_0x3afe95(0x1ee))/0x6*(parseInt(_0x3afe95(0x1e2))/0x7)+parseInt(_0x3afe95(0x1f3))/0x8+-parseInt(_0x3afe95(0x1d4))/0x9*(parseInt(_0x3afe95(0x1d5))/0xa)+parseInt(_0x3afe95(0x1d8))/0xb*(parseInt(_0x3afe95(0x1cb))/0xc);if(_0x20f1e7===_0x3c77ac)break;else _0xb14e10['push'](_0xb14e10['shift']());}catch(_0x46adfd){_0xb14e10['push'](_0xb14e10['shift']());}}}(_0x22df,0x25a3a));import{readFileSync as _0x3dbfa1,writeFileSync as _0x331aec}from'node:fs';import{dirname as _0x391212,resolve as _0x5eb481}from'node:path';import{builtinTextMeasurer as _0x396828,compileSvgToFacade as _0x178397,isSvgFacadeError as _0x2ae551,wrapSlideScript as _0x49a5d9}from'@univer-cli/svg-facade';import{Command as _0x4950a0,InvalidArgumentError as _0x48650a}from'commander';var u=_0x6b1728(0x1dd);function d(_0x536208){const _0x446950=_0x6b1728;let _0x33314a=new _0x4950a0(_0x446950(0x1cf))[_0x446950(0x1d3)](_0x446950(0x1f5))[_0x446950(0x1f6)](_0x446950(0x1da),_0x446950(0x1dc))[_0x446950(0x1d6)](_0x446950(0x1df),'write\x20structured\x20JSON')[_0x446950(0x1d6)](_0x446950(0x1f7),_0x446950(0x1e7))[_0x446950(0x1d6)](_0x446950(0x1f2),_0x446950(0x1fe),f)[_0x446950(0x1d6)](_0x446950(0x1ec),_0x446950(0x1e4))[_0x446950(0x1d6)](_0x446950(0x1ea),'write\x20generated\x20code\x20to\x20a\x20file')[_0x446950(0x1e8)](async(_0xe0d9a6,_0x5848fd)=>{const _0x4b4cbc=_0x446950;p(_0x33314a,_0x5848fd);try{let _0x94c5f5=_0x3dbfa1(_0xe0d9a6,_0x4b4cbc(0x1ce)),_0x267c7d=_0x5848fd[_0x4b4cbc(0x1db)]===!0x0,_0x5be4d1=await _0x178397(_0x94c5f5,{'assetResolver':_0x4678f3=>({'bytes':_0x3dbfa1(_0x5eb481(_0x391212(_0xe0d9a6),_0x4678f3))}),'textMeasurer':_0x267c7d?_0x396828:_0x536208[_0x4b4cbc(0x1fd)]}),_0x2d7b63=_0x267c7d?[..._0x5be4d1[_0x4b4cbc(0x1ed)],u]:_0x5be4d1[_0x4b4cbc(0x1ed)],_0x42b8cc=_0x5848fd['add']===!0x0?_0x4b4cbc(0x1cc):'replace',_0xa46887=_0x5848fd[_0x4b4cbc(0x1d2)]===void 0x0?_0x5be4d1[_0x4b4cbc(0x1de)]:_0x49a5d9(_0x5be4d1[_0x4b4cbc(0x1de)],{'page':_0x5848fd[_0x4b4cbc(0x1d2)],'mode':_0x42b8cc,..._0x5be4d1[_0x4b4cbc(0x1e0)]});if(_0x5848fd[_0x4b4cbc(0x1cd)]!==void 0x0&&_0x331aec(_0x5848fd[_0x4b4cbc(0x1cd)],_0xa46887+'\x0a',_0x4b4cbc(0x1ce)),_0x5848fd[_0x4b4cbc(0x1d0)]===!0x0){h(_0x33314a,{'code':_0xa46887,'lints':_0x2d7b63,'textMeasure':_0x5be4d1[_0x4b4cbc(0x1f4)],'viewport':_0x5be4d1['viewport'],'warnings':_0x5be4d1['warnings'],..._0x5848fd['page']===void 0x0?{}:{'mode':_0x42b8cc,'page':_0x5848fd[_0x4b4cbc(0x1d2)]},..._0x5848fd[_0x4b4cbc(0x1cd)]===void 0x0?{}:{'out':_0x5848fd[_0x4b4cbc(0x1cd)]}});return;}m(_0x33314a,_0x5be4d1['warnings'],_0x2d7b63),_0x5848fd[_0x4b4cbc(0x1cd)]===void 0x0?g(_0x33314a,_0xa46887):g(_0x33314a,_0x4b4cbc(0x1ef)+_0x5848fd['out']);}catch(_0x2d9a7f){throw _0x2ae551(_0x2d9a7f)&&_0x33314a[_0x4b4cbc(0x1e5)](_0x2d9a7f[_0x4b4cbc(0x1de)]+':\x20'+_0x2d9a7f[_0x4b4cbc(0x1fa)],{'code':_0x4b4cbc(0x1d1),'exitCode':0x1}),_0x2d9a7f instanceof Error&&_0x33314a[_0x4b4cbc(0x1e5)](_0x2d9a7f[_0x4b4cbc(0x1fa)],{'code':'compile-svg.failed','exitCode':0x1}),_0x2d9a7f;}});return _0x33314a;}function f(_0x3786ee){const _0x1d916c=_0x6b1728;let _0x7d6084=Number(_0x3786ee);if(!Number['isInteger'](_0x7d6084)||_0x7d6084<0x1)throw new _0x48650a(_0x1d916c(0x1f1)+_0x3786ee+'\x22.');return _0x7d6084;}function p(_0x448c1e,_0x418bcb){const _0x2a9c4c=_0x6b1728;_0x418bcb['page']===void 0x0&&(_0x418bcb[_0x2a9c4c(0x1cc)]===!0x0||_0x418bcb[_0x2a9c4c(0x1cd)]!==void 0x0)&&_0x448c1e[_0x2a9c4c(0x1e5)]('--add\x20and\x20--out\x20require\x20--page\x20<number>.',{'code':_0x2a9c4c(0x1e1),'exitCode':0x1});}function _0x22df(){const _0x4fb5f3=['warning\x20=\x20unsupported\x20SVG\x20feature\x20degraded;\x20lint\x20=\x20review\x20suggestion,\x20nothing\x20was\x20dropped\x0a','overlay\x20onto\x20the\x20target\x20page\x20instead\x20of\x20clearing\x20it\x20first','error','8QViDNn','use\x20deterministic\x20text-size\x20estimation\x20instead\x20of\x20the\x20injected\x20measurer','action','writeOut','--out\x20<path>','stringify','--add','lints','6dWldMx','generated\x20code:\x20','1106075uFVTMg','Expected\x20an\x20integer\x20>=\x201;\x20received\x20\x22','--page\x20<number>','1698256vznWhs','textMeasure','Compile\x20SVG\x20into\x20Univer\x20Slide\x20Facade\x20code','argument','--estimate-text-size','915519qZFXwV','configureOutput','message','warning:\x20','49430WezdBl','textMeasurer','wrap\x20the\x20result\x20for\x20a\x201-based\x20target\x20Slide\x20page','12WARtTl','add','out','utf8','compile-svg','json','compile-svg.failed','page','description','81emLYbW','185810vebffv','option','4jJyOjr','5284444sOvPGl','writeErr','<file.svg>','estimateTextSize','SVG\x20source\x20file','text\x20boxes\x20were\x20sized\x20by\x20estimation\x20(--estimate-text-size),\x20not\x20by\x20real\x20font\x20metrics:\x20text\x20can\x20sit\x20off-position,\x20especially\x20centred\x20or\x20right-aligned\x20lines;\x20recompile\x20without\x20the\x20flag\x20(with\x20a\x20browser)\x20before\x20you\x20ship','code','--json','viewport','compile-svg.invalid-input','627263kZTZlm'];_0x22df=function(){return _0x4fb5f3;};return _0x22df();}function m(_0x12e190,_0x366fbb,_0x5befd7){const _0xd7387b=_0x6b1728;let _0xa7536=_0x12e190['configureOutput']();for(let _0x3c7921 of _0x366fbb)_0xa7536[_0xd7387b(0x1d9)]?.(_0xd7387b(0x1fb)+_0x3c7921+'\x0a');for(let _0x2e4468 of _0x5befd7)_0xa7536[_0xd7387b(0x1d9)]?.('lint:\x20'+_0x2e4468+'\x0a');(_0x366fbb['length']>0x0||_0x5befd7['length']>0x0)&&_0xa7536[_0xd7387b(0x1d9)]?.(_0xd7387b(0x1e3));}function h(_0x2c4f24,_0x45b77d){const _0x9e83c=_0x6b1728;_0x2c4f24[_0x9e83c(0x1f9)]()['writeOut']?.(JSON[_0x9e83c(0x1eb)](_0x45b77d,null,0x2)+'\x0a');}function g(_0x4ca449,_0x1d30a6){const _0x58a691=_0x6b1728;_0x4ca449['configureOutput']()[_0x58a691(0x1e9)]?.(_0x1d30a6+'\x0a');}function _0x3865(_0x1e0eef,_0x4b26ec){_0x1e0eef=_0x1e0eef-0x1cb;const _0x22df62=_0x22df();let _0x386540=_0x22df62[_0x1e0eef];return _0x386540;}export{d as createCompileSvgCommand};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univer-cli/svg-facade-command",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.3",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"README.zh-CN.md"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@univer-cli/svg-facade": "1.6.
|
|
21
|
+
"@univer-cli/svg-facade": "1.6.3"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"commander": "^15.0.0"
|