@univerjs-pro/print 1.0.0-alpha.3 → 1.0.0-alpha.4
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/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +2 -2
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x5e7f(_0x3eff3b,_0x41e4c4){_0x3eff3b=_0x3eff3b-0x16c;const _0x440c39=_0x440c();let _0x5e7f70=_0x440c39[_0x3eff3b];return _0x5e7f70;}const _0x13d381=_0x5e7f;(function(_0x3e84e9,_0x35ed9c){const _0x3ea121=_0x5e7f,_0x269c3a=_0x3e84e9();while(!![]){try{const _0x2c0343=-parseInt(_0x3ea121(0x183))/0x1+-parseInt(_0x3ea121(0x196))/0x2*(-parseInt(_0x3ea121(0x18f))/0x3)+parseInt(_0x3ea121(0x188))/0x4+parseInt(_0x3ea121(0x17a))/0x5*(-parseInt(_0x3ea121(0x16c))/0x6)+-parseInt(_0x3ea121(0x18a))/0x7*(-parseInt(_0x3ea121(0x184))/0x8)+parseInt(_0x3ea121(0x18e))/0x9*(-parseInt(_0x3ea121(0x185))/0xa)+parseInt(_0x3ea121(0x178))/0xb;if(_0x2c0343===_0x35ed9c)break;else _0x269c3a['push'](_0x269c3a['shift']());}catch(_0x270eeb){_0x269c3a['push'](_0x269c3a['shift']());}}}(_0x440c,0x53e54),Object[_0x13d381(0x186)](exports,Symbol['toStringTag'],{'value':_0x13d381(0x18b)}));let e=function(_0x584c16){const _0x19c7cd=_0x13d381;return _0x584c16[_0x19c7cd(0x177)]='Portrait',_0x584c16[_0x19c7cd(0x182)]=_0x19c7cd(0x182),_0x584c16;}({}),t=function(_0x569a48){const _0x34cfcc=_0x13d381;return _0x569a48[_0x34cfcc(0x195)]=_0x34cfcc(0x195),_0x569a48['FitWidth']='FitWidth',_0x569a48[_0x34cfcc(0x194)]=_0x34cfcc(0x194),_0x569a48[_0x34cfcc(0x18c)]=_0x34cfcc(0x18c),_0x569a48[_0x34cfcc(0x171)]=_0x34cfcc(0x171),_0x569a48;}({}),n=function(_0x10b90f){const _0x4ba4a0=_0x13d381;return _0x10b90f[_0x4ba4a0(0x180)]=_0x4ba4a0(0x180),_0x10b90f['End']='End',_0x10b90f['Middle']=_0x4ba4a0(0x173),_0x10b90f;}({}),r=function(_0x18a4a4){const _0x15fde9=_0x13d381;return _0x18a4a4['Normal']=_0x15fde9(0x16f),_0x18a4a4['Narrow']='Narrow',_0x18a4a4[_0x15fde9(0x191)]=_0x15fde9(0x191),_0x18a4a4[_0x15fde9(0x18d)]=_0x15fde9(0x18d),_0x18a4a4[_0x15fde9(0x171)]=_0x15fde9(0x171),_0x18a4a4;}({});const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x13d381(0x17d),o=_0x13d381(0x193);function s(_0xd93d84,_0x4119f0,_0x10714e){const _0x38e072=_0x13d381;let _0x43ecbd=_0x10714e===_0x38e072(0x177)?_0xd93d84:_0x4119f0,_0x37fb37=_0x10714e==='Portrait'?_0x4119f0:_0xd93d84,_0x494e30=_0x38e072(0x17b)+o+_0x38e072(0x176)+_0x43ecbd+_0x38e072(0x16e)+_0x37fb37+_0x38e072(0x190)+a+_0x38e072(0x174)+a+_0x38e072(0x170)+o+_0x38e072(0x192)+_0x37fb37+_0x38e072(0x17f)+_0x43ecbd+_0x38e072(0x179),_0x4670ac=document[_0x38e072(0x17e)](_0x38e072(0x189));return _0x4670ac[_0x38e072(0x172)]=_0x494e30,_0x4670ac[_0x38e072(0x175)]='offline-printing-css',_0x4670ac;}exports['PRINT_CANVAS_CLASS']=o,exports[_0x13d381(0x181)]=a,exports[_0x13d381(0x16d)]=i,exports['PrintAlign']=n,exports[_0x13d381(0x187)]=e,exports['PrintPaperMargin']=r,exports[_0x13d381(0x17c)]=t,exports['createPrintStyle']=s;function _0x440c(){const _0x7aab19=['791MkGJVU','Module','FitPage','None','5385780vaXJYM','394734JnDvKa','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','Wide','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','printing-canvas','FitHeight','Origin','6rqWSkf','892302QGCChk','PaperMarginMap','px\x20','Normal','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','Custom','innerHTML','Middle',',\x20.','className','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Portrait','5773779FomziQ','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','5HsnyKk','\x0a\x20\x20\x20\x20.','PrintScale','printing-canvas-container','createElement','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Start','PRINT_CONTAINER_CLASS','Landscape','110800QBMoqW','14432ygROXu','10FtlXQk','defineProperty','PrintDirection','312392VXCBjZ','style'];_0x440c=function(){return _0x7aab19;};return _0x440c();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2b97bc,_0xafe311){const _0x2a799e=_0x29be,_0x27ddd2=_0x2b97bc();while(!![]){try{const _0x127c38=-parseInt(_0x2a799e(0x80))/0x1+-parseInt(_0x2a799e(0x84))/0x2+-parseInt(_0x2a799e(0x8e))/0x3*(parseInt(_0x2a799e(0x98))/0x4)+parseInt(_0x2a799e(0x85))/0x5+parseInt(_0x2a799e(0x81))/0x6*(parseInt(_0x2a799e(0x7e))/0x7)+parseInt(_0x2a799e(0x95))/0x8+-parseInt(_0x2a799e(0x9c))/0x9*(-parseInt(_0x2a799e(0x91))/0xa);if(_0x127c38===_0xafe311)break;else _0x27ddd2['push'](_0x27ddd2['shift']());}catch(_0x317f3a){_0x27ddd2['push'](_0x27ddd2['shift']());}}}(_0xc10e,0xd394b));let e=function(_0x542a1c){const _0x4b9f4c=_0x29be;return _0x542a1c[_0x4b9f4c(0x93)]='Portrait',_0x542a1c[_0x4b9f4c(0x86)]=_0x4b9f4c(0x86),_0x542a1c;}({}),t=function(_0x38c859){const _0x206c1=_0x29be;return _0x38c859[_0x206c1(0x7d)]=_0x206c1(0x7d),_0x38c859[_0x206c1(0x82)]=_0x206c1(0x82),_0x38c859[_0x206c1(0x96)]=_0x206c1(0x96),_0x38c859[_0x206c1(0x90)]=_0x206c1(0x90),_0x38c859[_0x206c1(0x9a)]=_0x206c1(0x9a),_0x38c859;}({}),n=function(_0x308254){const _0x35aa7a=_0x29be;return _0x308254[_0x35aa7a(0x8b)]=_0x35aa7a(0x8b),_0x308254['End']=_0x35aa7a(0x94),_0x308254[_0x35aa7a(0x87)]=_0x35aa7a(0x87),_0x308254;}({}),r=function(_0x2f3fd6){const _0x543da0=_0x29be;return _0x2f3fd6[_0x543da0(0x8a)]=_0x543da0(0x8a),_0x2f3fd6[_0x543da0(0x92)]='Narrow',_0x2f3fd6['Wide']=_0x543da0(0x7c),_0x2f3fd6[_0x543da0(0x8d)]=_0x543da0(0x8d),_0x2f3fd6['Custom']=_0x543da0(0x9a),_0x2f3fd6;}({});const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a='printing-canvas-container',o='printing-canvas';function s(_0x13de4d,_0x2f325d,_0x525746){const _0x5337ff=_0x29be;let _0x15e9e3=_0x525746===_0x5337ff(0x93)?_0x13de4d:_0x2f325d,_0x54b6f8=_0x525746===_0x5337ff(0x93)?_0x2f325d:_0x13de4d,_0x7aba78=_0x5337ff(0x99)+o+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x15e9e3+_0x5337ff(0x8c)+_0x54b6f8+'px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+a+_0x5337ff(0x9d)+a+_0x5337ff(0x8f)+o+_0x5337ff(0x9b)+_0x54b6f8+_0x5337ff(0x97)+_0x15e9e3+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}',_0x3b9032=document[_0x5337ff(0x88)](_0x5337ff(0x7f));return _0x3b9032[_0x5337ff(0x83)]=_0x7aba78,_0x3b9032[_0x5337ff(0x89)]='offline-printing-css',_0x3b9032;}function _0x29be(_0x8b35c0,_0x30cc36){_0x8b35c0=_0x8b35c0-0x7c;const _0xc10ea9=_0xc10e();let _0x29beb0=_0xc10ea9[_0x8b35c0];return _0x29beb0;}export{o as PRINT_CANVAS_CLASS,a as PRINT_CONTAINER_CLASS,i as PaperMarginMap,n as PrintAlign,e as PrintDirection,r as PrintPaperMargin,t as PrintScale,s as createPrintStyle};function _0xc10e(){const _0xcda047=['Start','px\x20','None','128073GBWcnX','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','FitPage','31121170KBmAkA','Narrow','Portrait','End','4324384iTqkrq','FitHeight','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','140IAoOQt','\x0a\x20\x20\x20\x20.','Custom','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','9hNCzao',',\x20.','Wide','Origin','7aGZZci','style','1383765BdhkQL','57414gzZwvB','FitWidth','innerHTML','525868jRmrso','1726425grjdUG','Landscape','Middle','createElement','className','Normal'];_0xc10e=function(){return _0xcda047;};return _0xc10e();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2b97bc,_0xafe311){const _0x2a799e=_0x29be,_0x27ddd2=_0x2b97bc();while(!![]){try{const _0x127c38=-parseInt(_0x2a799e(0x80))/0x1+-parseInt(_0x2a799e(0x84))/0x2+-parseInt(_0x2a799e(0x8e))/0x3*(parseInt(_0x2a799e(0x98))/0x4)+parseInt(_0x2a799e(0x85))/0x5+parseInt(_0x2a799e(0x81))/0x6*(parseInt(_0x2a799e(0x7e))/0x7)+parseInt(_0x2a799e(0x95))/0x8+-parseInt(_0x2a799e(0x9c))/0x9*(-parseInt(_0x2a799e(0x91))/0xa);if(_0x127c38===_0xafe311)break;else _0x27ddd2['push'](_0x27ddd2['shift']());}catch(_0x317f3a){_0x27ddd2['push'](_0x27ddd2['shift']());}}}(_0xc10e,0xd394b));let e=function(_0x542a1c){const _0x4b9f4c=_0x29be;return _0x542a1c[_0x4b9f4c(0x93)]='Portrait',_0x542a1c[_0x4b9f4c(0x86)]=_0x4b9f4c(0x86),_0x542a1c;}({}),t=function(_0x38c859){const _0x206c1=_0x29be;return _0x38c859[_0x206c1(0x7d)]=_0x206c1(0x7d),_0x38c859[_0x206c1(0x82)]=_0x206c1(0x82),_0x38c859[_0x206c1(0x96)]=_0x206c1(0x96),_0x38c859[_0x206c1(0x90)]=_0x206c1(0x90),_0x38c859[_0x206c1(0x9a)]=_0x206c1(0x9a),_0x38c859;}({}),n=function(_0x308254){const _0x35aa7a=_0x29be;return _0x308254[_0x35aa7a(0x8b)]=_0x35aa7a(0x8b),_0x308254['End']=_0x35aa7a(0x94),_0x308254[_0x35aa7a(0x87)]=_0x35aa7a(0x87),_0x308254;}({}),r=function(_0x2f3fd6){const _0x543da0=_0x29be;return _0x2f3fd6[_0x543da0(0x8a)]=_0x543da0(0x8a),_0x2f3fd6[_0x543da0(0x92)]='Narrow',_0x2f3fd6['Wide']=_0x543da0(0x7c),_0x2f3fd6[_0x543da0(0x8d)]=_0x543da0(0x8d),_0x2f3fd6['Custom']=_0x543da0(0x9a),_0x2f3fd6;}({});const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a='printing-canvas-container',o='printing-canvas';function s(_0x13de4d,_0x2f325d,_0x525746){const _0x5337ff=_0x29be;let _0x15e9e3=_0x525746===_0x5337ff(0x93)?_0x13de4d:_0x2f325d,_0x54b6f8=_0x525746===_0x5337ff(0x93)?_0x2f325d:_0x13de4d,_0x7aba78=_0x5337ff(0x99)+o+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x15e9e3+_0x5337ff(0x8c)+_0x54b6f8+'px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+a+_0x5337ff(0x9d)+a+_0x5337ff(0x8f)+o+_0x5337ff(0x9b)+_0x54b6f8+_0x5337ff(0x97)+_0x15e9e3+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}',_0x3b9032=document[_0x5337ff(0x88)](_0x5337ff(0x7f));return _0x3b9032[_0x5337ff(0x83)]=_0x7aba78,_0x3b9032[_0x5337ff(0x89)]='offline-printing-css',_0x3b9032;}function _0x29be(_0x8b35c0,_0x30cc36){_0x8b35c0=_0x8b35c0-0x7c;const _0xc10ea9=_0xc10e();let _0x29beb0=_0xc10ea9[_0x8b35c0];return _0x29beb0;}export{o as PRINT_CANVAS_CLASS,a as PRINT_CONTAINER_CLASS,i as PaperMarginMap,n as PrintAlign,e as PrintDirection,r as PrintPaperMargin,t as PrintScale,s as createPrintStyle};function _0xc10e(){const _0xcda047=['Start','px\x20','None','128073GBWcnX','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','FitPage','31121170KBmAkA','Narrow','Portrait','End','4324384iTqkrq','FitHeight','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','140IAoOQt','\x0a\x20\x20\x20\x20.','Custom','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','9hNCzao',',\x20.','Wide','Origin','7aGZZci','style','1383765BdhkQL','57414gzZwvB','FitWidth','innerHTML','525868jRmrso','1726425grjdUG','Landscape','Middle','createElement','className','Normal'];_0xc10e=function(){return _0xcda047;};return _0xc10e();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4927(_0x5f332d,_0x5a1c9b){_0x5f332d=_0x5f332d-0x90;const _0x5ea6cd=_0x5ea6();let _0x49275f=_0x5ea6cd[_0x5f332d];return _0x49275f;}(function(_0x38fc92,_0x203062){const _0x17b1fe=_0x4927,_0x49c01f=_0x38fc92();while(!![]){try{const _0x17f124=-parseInt(_0x17b1fe(0x90))/0x1+parseInt(_0x17b1fe(0xb8))/0x2*(parseInt(_0x17b1fe(0xb7))/0x3)+parseInt(_0x17b1fe(0x94))/0x4*(-parseInt(_0x17b1fe(0xab))/0x5)+-parseInt(_0x17b1fe(0xa3))/0x6+-parseInt(_0x17b1fe(0x96))/0x7*(parseInt(_0x17b1fe(0x97))/0x8)+parseInt(_0x17b1fe(0xa1))/0x9*(-parseInt(_0x17b1fe(0xa9))/0xa)+-parseInt(_0x17b1fe(0xb3))/0xb*(-parseInt(_0x17b1fe(0x9a))/0xc);if(_0x17f124===_0x203062)break;else _0x49c01f['push'](_0x49c01f['shift']());}catch(_0x5f30ed){_0x49c01f['push'](_0x49c01f['shift']());}}}(_0x5ea6,0x5ab99),function(_0x49e05,_0x96182c){const _0x5e08a1=_0x4927;typeof exports==_0x5e08a1(0xa0)&&typeof module<'u'?_0x96182c(exports):typeof define==_0x5e08a1(0x9e)&&define['amd']?define([_0x5e08a1(0x91)],_0x96182c):(_0x49e05=typeof globalThis<'u'?globalThis:_0x49e05||self,_0x96182c(_0x49e05[_0x5e08a1(0xb9)]={}));}(this,function(_0x21a990){const _0x4eae06=_0x4927;Object['defineProperty'](_0x21a990,Symbol[_0x4eae06(0xb2)],{'value':_0x4eae06(0x9c)});let _0x5d4ec8=function(_0xdaad04){const _0x5afeb2=_0x4eae06;return _0xdaad04[_0x5afeb2(0xbd)]=_0x5afeb2(0xbd),_0xdaad04[_0x5afeb2(0x92)]=_0x5afeb2(0x92),_0xdaad04;}({}),_0x25e72c=function(_0x24fe2a){const _0x3b87be=_0x4eae06;return _0x24fe2a[_0x3b87be(0xa4)]=_0x3b87be(0xa4),_0x24fe2a['FitWidth']=_0x3b87be(0xaa),_0x24fe2a[_0x3b87be(0xb0)]=_0x3b87be(0xb0),_0x24fe2a[_0x3b87be(0x99)]=_0x3b87be(0x99),_0x24fe2a[_0x3b87be(0xa6)]=_0x3b87be(0xa6),_0x24fe2a;}({}),_0x1ae235=function(_0x2f4844){const _0x5646fa=_0x4eae06;return _0x2f4844[_0x5646fa(0x9d)]=_0x5646fa(0x9d),_0x2f4844[_0x5646fa(0xa7)]=_0x5646fa(0xa7),_0x2f4844[_0x5646fa(0x9b)]=_0x5646fa(0x9b),_0x2f4844;}({}),_0x2d737d=function(_0x24872a){const _0x9a7cd3=_0x4eae06;return _0x24872a[_0x9a7cd3(0xa5)]='Normal',_0x24872a[_0x9a7cd3(0xbb)]=_0x9a7cd3(0xbb),_0x24872a[_0x9a7cd3(0xb5)]='Wide',_0x24872a[_0x9a7cd3(0xb6)]=_0x9a7cd3(0xb6),_0x24872a[_0x9a7cd3(0xa6)]='Custom',_0x24872a;}({}),_0x5f247f={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x1e6123=_0x4eae06(0x95),_0xb26d3=_0x4eae06(0xa8);function _0xd50d78(_0x130d14,_0x4fd513,_0x1d14c7){const _0x56968a=_0x4eae06;let _0x338145=_0x1d14c7===_0x56968a(0xbd)?_0x130d14:_0x4fd513,_0x404657=_0x1d14c7===_0x56968a(0xbd)?_0x4fd513:_0x130d14,_0x160ace=_0x56968a(0xa2)+_0xb26d3+_0x56968a(0x9f)+_0x338145+_0x56968a(0xb1)+_0x404657+_0x56968a(0xad)+_0x1e6123+_0x56968a(0xba)+_0x1e6123+_0x56968a(0xaf)+_0xb26d3+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x404657+_0x56968a(0xac)+_0x338145+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}',_0x3ed358=document['createElement'](_0x56968a(0xbe));return _0x3ed358[_0x56968a(0x98)]=_0x160ace,_0x3ed358['className']='offline-printing-css',_0x3ed358;}_0x21a990[_0x4eae06(0xbc)]=_0xb26d3,_0x21a990['PRINT_CONTAINER_CLASS']=_0x1e6123,_0x21a990['PaperMarginMap']=_0x5f247f,_0x21a990['PrintAlign']=_0x1ae235,_0x21a990['PrintDirection']=_0x5d4ec8,_0x21a990[_0x4eae06(0xae)]=_0x2d737d,_0x21a990[_0x4eae06(0xb4)]=_0x25e72c,_0x21a990[_0x4eae06(0x93)]=_0xd50d78;}));function _0x5ea6(){const _0x52c4af=['printing-canvas','50puxYXa','FitWidth','84880pWsMuo','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','PrintPaperMargin','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','FitHeight','px\x20','toStringTag','11kQdSQa','PrintScale','Wide','None','63597rBIoBS','38NWdfoG','UniverProPrint',',\x20.','Narrow','PRINT_CANVAS_CLASS','Portrait','style','289084OXhvRU','exports','Landscape','createPrintStyle','28BqRNMf','printing-canvas-container','7bDczmQ','197608vwdlaU','innerHTML','FitPage','13857732VoEnjS','Middle','Module','Start','function','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','object','1077723fFaGmk','\x0a\x20\x20\x20\x20.','927786NhiQrl','Origin','Normal','Custom','End'];_0x5ea6=function(){return _0x52c4af;};return _0x5ea6();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared print utilities for Univer Pro.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"typescript": "^6.0.3",
|
|
52
52
|
"vitest": "^4.1.10",
|
|
53
|
-
"@univerjs-infra/shared": "1.0.0-alpha.
|
|
53
|
+
"@univerjs-infra/shared": "1.0.0-alpha.4"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "vitest run",
|