@univerjs-pro/print 0.22.1 → 0.23.0
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
|
+
const _0x333be3=_0x493c;function _0x5520(){const _0x5d4352=['Custom','PrintAlign','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitPage','printing-canvas','\x0a\x20\x20\x20\x20.','Middle','defineProperty','Normal','\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','offline-printing-css','1042rqWCIN','Landscape','5955600LATFtz','FitHeight','toStringTag',',\x20.','createPrintStyle','PaperMarginMap','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.','26721GYdZww','None','PrintScale','PRINT_CONTAINER_CLASS','5NEzYFk','Portrait','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}','PRINT_CANVAS_CLASS','367SaZrck','Module','318092mmXyti','\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.','innerHTML','50607YTpqiG','px\x20','End','8GQSsaM','PrintPaperMargin','677824sYKARG','Origin','style','Wide','Start','printing-canvas-container','473694fOWniM','\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','Narrow'];_0x5520=function(){return _0x5d4352;};return _0x5520();}(function(_0x53546d,_0x1436c0){const _0x148e97=_0x493c,_0x23f15b=_0x53546d();while(!![]){try{const _0x2c08e0=parseInt(_0x148e97(0x174))/0x1*(-parseInt(_0x148e97(0x163))/0x2)+-parseInt(_0x148e97(0x16c))/0x3+-parseInt(_0x148e97(0x147))/0x4*(parseInt(_0x148e97(0x170))/0x5)+-parseInt(_0x148e97(0x155))/0x6+-parseInt(_0x148e97(0x14f))/0x7+parseInt(_0x148e97(0x14d))/0x8*(-parseInt(_0x148e97(0x14a))/0x9)+parseInt(_0x148e97(0x165))/0xa;if(_0x2c08e0===_0x1436c0)break;else _0x23f15b['push'](_0x23f15b['shift']());}catch(_0x3e1a80){_0x23f15b['push'](_0x23f15b['shift']());}}}(_0x5520,0x20d77),Object[_0x333be3(0x15f)](exports,Symbol[_0x333be3(0x167)],{'value':_0x333be3(0x146)}));let e=function(_0x3e3e44){const _0x58eafe=_0x333be3;return _0x3e3e44[_0x58eafe(0x171)]=_0x58eafe(0x171),_0x3e3e44[_0x58eafe(0x164)]=_0x58eafe(0x164),_0x3e3e44;}({}),t=function(_0x1de988){const _0x2f902e=_0x333be3;return _0x1de988[_0x2f902e(0x150)]='Origin',_0x1de988['FitWidth']='FitWidth',_0x1de988[_0x2f902e(0x166)]=_0x2f902e(0x166),_0x1de988['FitPage']=_0x2f902e(0x15b),_0x1de988['Custom']=_0x2f902e(0x158),_0x1de988;}({}),n=function(_0xecc62c){const _0x170ff7=_0x333be3;return _0xecc62c[_0x170ff7(0x153)]='Start',_0xecc62c[_0x170ff7(0x14c)]=_0x170ff7(0x14c),_0xecc62c['Middle']=_0x170ff7(0x15e),_0xecc62c;}({}),r=function(_0x184941){const _0x5becb9=_0x333be3;return _0x184941[_0x5becb9(0x160)]=_0x5becb9(0x160),_0x184941[_0x5becb9(0x157)]='Narrow',_0x184941['Wide']=_0x5becb9(0x152),_0x184941[_0x5becb9(0x16d)]=_0x5becb9(0x16d),_0x184941['Custom']=_0x5becb9(0x158),_0x184941;}({});function _0x493c(_0x4d631e,_0x368083){_0x4d631e=_0x4d631e-0x146;const _0x5520b0=_0x5520();let _0x493cfe=_0x5520b0[_0x4d631e];return _0x493cfe;}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=_0x333be3(0x154),o=_0x333be3(0x15c);function s(_0x285dc5,_0x42f98a,_0x36ef18){const _0x5b5bcf=_0x333be3;let _0x430e74=_0x36ef18===_0x5b5bcf(0x171)?_0x285dc5:_0x42f98a,_0x3dfae7=_0x36ef18===_0x5b5bcf(0x171)?_0x42f98a:_0x285dc5,_0x10f4ff=_0x5b5bcf(0x15d)+o+_0x5b5bcf(0x156)+_0x430e74+_0x5b5bcf(0x14b)+_0x3dfae7+_0x5b5bcf(0x16b)+a+_0x5b5bcf(0x168)+a+_0x5b5bcf(0x148)+o+_0x5b5bcf(0x161)+_0x3dfae7+_0x5b5bcf(0x15a)+_0x430e74+_0x5b5bcf(0x172),_0x55d365=document['createElement'](_0x5b5bcf(0x151));return _0x55d365[_0x5b5bcf(0x149)]=_0x10f4ff,_0x55d365['className']=_0x5b5bcf(0x162),_0x55d365;}exports[_0x333be3(0x173)]=o,exports[_0x333be3(0x16f)]=a,exports[_0x333be3(0x16a)]=i,exports[_0x333be3(0x159)]=n,exports['PrintDirection']=e,exports[_0x333be3(0x14e)]=r,exports[_0x333be3(0x16e)]=t,exports[_0x333be3(0x169)]=s;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x5135c6=_0x4dfe;(function(_0x2144c5,_0x3e313b){const _0x3da92e=_0x4dfe,_0x1c5a3a=_0x2144c5();while(!![]){try{const _0x659581=-parseInt(_0x3da92e(0xb0))/0x1+parseInt(_0x3da92e(0xa5))/0x2+parseInt(_0x3da92e(0xb1))/0x3*(parseInt(_0x3da92e(0xae))/0x4)+parseInt(_0x3da92e(0xbe))/0x5*(parseInt(_0x3da92e(0xc5))/0x6)+-parseInt(_0x3da92e(0xba))/0x7+parseInt(_0x3da92e(0xa3))/0x8*(parseInt(_0x3da92e(0xa9))/0x9)+parseInt(_0x3da92e(0xa0))/0xa*(-parseInt(_0x3da92e(0xa4))/0xb);if(_0x659581===_0x3e313b)break;else _0x1c5a3a['push'](_0x1c5a3a['shift']());}catch(_0x1e5713){_0x1c5a3a['push'](_0x1c5a3a['shift']());}}}(_0x5b7a,0xa3000));function _0x5b7a(){const _0xa75e8e=['FitHeight','461395DjVlga','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','style','\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','FitPage','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.','className','84mLGjyd','9410phxXBW','None','Origin','274024GAEJNX','23155okwbWF','1349338xmzBmn','Start','Custom','Wide','153QmixEm','offline-printing-css','px\x20','Narrow','FitWidth','10348ArNTaG','Normal','363083sHkNPQ','654GUSywm','Middle','\x0a\x20\x20\x20\x20.','innerHTML',',\x20.','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}','printing-canvas-container','End','Portrait','709142bwxhbX','Landscape','\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'];_0x5b7a=function(){return _0xa75e8e;};return _0x5b7a();}function _0x4dfe(_0x1f0dd0,_0x49b005){_0x1f0dd0=_0x1f0dd0-0xa0;const _0x5b7af7=_0x5b7a();let _0x4dfe86=_0x5b7af7[_0x1f0dd0];return _0x4dfe86;}let e=function(_0x45a2a5){const _0x4ccdd5=_0x4dfe;return _0x45a2a5[_0x4ccdd5(0xb9)]=_0x4ccdd5(0xb9),_0x45a2a5['Landscape']=_0x4ccdd5(0xbb),_0x45a2a5;}({}),t=function(_0x2ff53b){const _0x526b3b=_0x4dfe;return _0x2ff53b[_0x526b3b(0xa2)]=_0x526b3b(0xa2),_0x2ff53b['FitWidth']=_0x526b3b(0xad),_0x2ff53b['FitHeight']=_0x526b3b(0xbd),_0x2ff53b[_0x526b3b(0xc2)]=_0x526b3b(0xc2),_0x2ff53b[_0x526b3b(0xa7)]=_0x526b3b(0xa7),_0x2ff53b;}({}),n=function(_0x444650){const _0x3766fc=_0x4dfe;return _0x444650['Start']=_0x3766fc(0xa6),_0x444650[_0x3766fc(0xb8)]=_0x3766fc(0xb8),_0x444650[_0x3766fc(0xb2)]=_0x3766fc(0xb2),_0x444650;}({}),r=function(_0x4f5581){const _0x57f40c=_0x4dfe;return _0x4f5581[_0x57f40c(0xaf)]='Normal',_0x4f5581['Narrow']=_0x57f40c(0xac),_0x4f5581[_0x57f40c(0xa8)]=_0x57f40c(0xa8),_0x4f5581[_0x57f40c(0xa1)]='None',_0x4f5581[_0x57f40c(0xa7)]=_0x57f40c(0xa7),_0x4f5581;}({});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=_0x5135c6(0xb7),o='printing-canvas';function s(_0x24eb7d,_0x1710f5,_0x1c8af4){const _0x299afe=_0x5135c6;let _0x26746d=_0x1c8af4===_0x299afe(0xb9)?_0x24eb7d:_0x1710f5,_0x247d22=_0x1c8af4==='Portrait'?_0x1710f5:_0x24eb7d,_0x13c85b=_0x299afe(0xb3)+o+_0x299afe(0xc1)+_0x26746d+_0x299afe(0xab)+_0x247d22+_0x299afe(0xc3)+a+_0x299afe(0xb5)+a+'\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.'+o+_0x299afe(0xbc)+_0x247d22+_0x299afe(0xbf)+_0x26746d+_0x299afe(0xb6),_0x4755ce=document['createElement'](_0x299afe(0xc0));return _0x4755ce[_0x299afe(0xb4)]=_0x13c85b,_0x4755ce[_0x299afe(0xc4)]=_0x299afe(0xaa),_0x4755ce;}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};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x5135c6=_0x4dfe;(function(_0x2144c5,_0x3e313b){const _0x3da92e=_0x4dfe,_0x1c5a3a=_0x2144c5();while(!![]){try{const _0x659581=-parseInt(_0x3da92e(0xb0))/0x1+parseInt(_0x3da92e(0xa5))/0x2+parseInt(_0x3da92e(0xb1))/0x3*(parseInt(_0x3da92e(0xae))/0x4)+parseInt(_0x3da92e(0xbe))/0x5*(parseInt(_0x3da92e(0xc5))/0x6)+-parseInt(_0x3da92e(0xba))/0x7+parseInt(_0x3da92e(0xa3))/0x8*(parseInt(_0x3da92e(0xa9))/0x9)+parseInt(_0x3da92e(0xa0))/0xa*(-parseInt(_0x3da92e(0xa4))/0xb);if(_0x659581===_0x3e313b)break;else _0x1c5a3a['push'](_0x1c5a3a['shift']());}catch(_0x1e5713){_0x1c5a3a['push'](_0x1c5a3a['shift']());}}}(_0x5b7a,0xa3000));function _0x5b7a(){const _0xa75e8e=['FitHeight','461395DjVlga','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','style','\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','FitPage','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.','className','84mLGjyd','9410phxXBW','None','Origin','274024GAEJNX','23155okwbWF','1349338xmzBmn','Start','Custom','Wide','153QmixEm','offline-printing-css','px\x20','Narrow','FitWidth','10348ArNTaG','Normal','363083sHkNPQ','654GUSywm','Middle','\x0a\x20\x20\x20\x20.','innerHTML',',\x20.','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}','printing-canvas-container','End','Portrait','709142bwxhbX','Landscape','\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'];_0x5b7a=function(){return _0xa75e8e;};return _0x5b7a();}function _0x4dfe(_0x1f0dd0,_0x49b005){_0x1f0dd0=_0x1f0dd0-0xa0;const _0x5b7af7=_0x5b7a();let _0x4dfe86=_0x5b7af7[_0x1f0dd0];return _0x4dfe86;}let e=function(_0x45a2a5){const _0x4ccdd5=_0x4dfe;return _0x45a2a5[_0x4ccdd5(0xb9)]=_0x4ccdd5(0xb9),_0x45a2a5['Landscape']=_0x4ccdd5(0xbb),_0x45a2a5;}({}),t=function(_0x2ff53b){const _0x526b3b=_0x4dfe;return _0x2ff53b[_0x526b3b(0xa2)]=_0x526b3b(0xa2),_0x2ff53b['FitWidth']=_0x526b3b(0xad),_0x2ff53b['FitHeight']=_0x526b3b(0xbd),_0x2ff53b[_0x526b3b(0xc2)]=_0x526b3b(0xc2),_0x2ff53b[_0x526b3b(0xa7)]=_0x526b3b(0xa7),_0x2ff53b;}({}),n=function(_0x444650){const _0x3766fc=_0x4dfe;return _0x444650['Start']=_0x3766fc(0xa6),_0x444650[_0x3766fc(0xb8)]=_0x3766fc(0xb8),_0x444650[_0x3766fc(0xb2)]=_0x3766fc(0xb2),_0x444650;}({}),r=function(_0x4f5581){const _0x57f40c=_0x4dfe;return _0x4f5581[_0x57f40c(0xaf)]='Normal',_0x4f5581['Narrow']=_0x57f40c(0xac),_0x4f5581[_0x57f40c(0xa8)]=_0x57f40c(0xa8),_0x4f5581[_0x57f40c(0xa1)]='None',_0x4f5581[_0x57f40c(0xa7)]=_0x57f40c(0xa7),_0x4f5581;}({});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=_0x5135c6(0xb7),o='printing-canvas';function s(_0x24eb7d,_0x1710f5,_0x1c8af4){const _0x299afe=_0x5135c6;let _0x26746d=_0x1c8af4===_0x299afe(0xb9)?_0x24eb7d:_0x1710f5,_0x247d22=_0x1c8af4==='Portrait'?_0x1710f5:_0x24eb7d,_0x13c85b=_0x299afe(0xb3)+o+_0x299afe(0xc1)+_0x26746d+_0x299afe(0xab)+_0x247d22+_0x299afe(0xc3)+a+_0x299afe(0xb5)+a+'\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.'+o+_0x299afe(0xbc)+_0x247d22+_0x299afe(0xbf)+_0x26746d+_0x299afe(0xb6),_0x4755ce=document['createElement'](_0x299afe(0xc0));return _0x4755ce[_0x299afe(0xb4)]=_0x13c85b,_0x4755ce[_0x299afe(0xc4)]=_0x299afe(0xaa),_0x4755ce;}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};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4141(_0x33db05,_0x1572d6){_0x33db05=_0x33db05-0xd7;const _0x26d14b=_0x26d1();let _0x41415a=_0x26d14b[_0x33db05];return _0x41415a;}(function(_0x220218,_0x40a783){const _0x47313c=_0x4141,_0x472ed8=_0x220218();while(!![]){try{const _0x921651=parseInt(_0x47313c(0xe4))/0x1+parseInt(_0x47313c(0xe0))/0x2+-parseInt(_0x47313c(0xfc))/0x3*(parseInt(_0x47313c(0xde))/0x4)+parseInt(_0x47313c(0xf4))/0x5*(parseInt(_0x47313c(0xf3))/0x6)+-parseInt(_0x47313c(0xe9))/0x7+-parseInt(_0x47313c(0xe6))/0x8+parseInt(_0x47313c(0xf5))/0x9;if(_0x921651===_0x40a783)break;else _0x472ed8['push'](_0x472ed8['shift']());}catch(_0x1ce7ab){_0x472ed8['push'](_0x472ed8['shift']());}}}(_0x26d1,0x1c0aa),function(_0x2733b1,_0x4679e5){const _0x464eb5=_0x4141;typeof exports=='object'&&typeof module<'u'?_0x4679e5(exports):typeof define==_0x464eb5(0xeb)&&define[_0x464eb5(0xfa)]?define(['exports'],_0x4679e5):(_0x2733b1=typeof globalThis<'u'?globalThis:_0x2733b1||self,_0x4679e5(_0x2733b1[_0x464eb5(0xd7)]={}));}(this,function(_0x4b9cb3){const _0x3da67d=_0x4141;Object[_0x3da67d(0xdc)](_0x4b9cb3,Symbol[_0x3da67d(0xed)],{'value':_0x3da67d(0xe8)});let _0x68043a=function(_0x15d604){const _0x4cc16e=_0x3da67d;return _0x15d604[_0x4cc16e(0xea)]='Portrait',_0x15d604['Landscape']=_0x4cc16e(0x109),_0x15d604;}({}),_0x386675=function(_0x2207b6){const _0x2e2d35=_0x3da67d;return _0x2207b6[_0x2e2d35(0xf8)]=_0x2e2d35(0xf8),_0x2207b6[_0x2e2d35(0xfb)]=_0x2e2d35(0xfb),_0x2207b6[_0x2e2d35(0xdb)]=_0x2e2d35(0xdb),_0x2207b6[_0x2e2d35(0xe5)]=_0x2e2d35(0xe5),_0x2207b6['Custom']=_0x2e2d35(0xdf),_0x2207b6;}({}),_0x305204=function(_0x50eb3b){const _0x12bd52=_0x3da67d;return _0x50eb3b[_0x12bd52(0xee)]=_0x12bd52(0xee),_0x50eb3b[_0x12bd52(0xfd)]=_0x12bd52(0xfd),_0x50eb3b[_0x12bd52(0x105)]=_0x12bd52(0x105),_0x50eb3b;}({}),_0x4707d3=function(_0x390ab0){const _0x4ed05b=_0x3da67d;return _0x390ab0[_0x4ed05b(0xda)]=_0x4ed05b(0xda),_0x390ab0[_0x4ed05b(0x104)]=_0x4ed05b(0x104),_0x390ab0[_0x4ed05b(0xf7)]=_0x4ed05b(0xf7),_0x390ab0['None']=_0x4ed05b(0xe1),_0x390ab0[_0x4ed05b(0xdf)]=_0x4ed05b(0xdf),_0x390ab0;}({}),_0x33c66b={'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}},_0x3af4cf=_0x3da67d(0x103),_0x4bf8b7=_0x3da67d(0x100);function _0x435455(_0x4b7a0f,_0x22c718,_0x4a6fa5){const _0x31365e=_0x3da67d;let _0x32a06b=_0x4a6fa5===_0x31365e(0xea)?_0x4b7a0f:_0x22c718,_0x211830=_0x4a6fa5==='Portrait'?_0x22c718:_0x4b7a0f,_0x466e31=_0x31365e(0xdd)+_0x4bf8b7+_0x31365e(0x108)+_0x32a06b+_0x31365e(0xf9)+_0x211830+_0x31365e(0xd8)+_0x3af4cf+_0x31365e(0xec)+_0x3af4cf+_0x31365e(0xd9)+_0x4bf8b7+_0x31365e(0xe7)+_0x211830+_0x31365e(0xfe)+_0x32a06b+_0x31365e(0xf2),_0xc34bce=document['createElement'](_0x31365e(0xff));return _0xc34bce[_0x31365e(0x102)]=_0x466e31,_0xc34bce[_0x31365e(0xf0)]=_0x31365e(0x107),_0xc34bce;}_0x4b9cb3[_0x3da67d(0xe3)]=_0x4bf8b7,_0x4b9cb3[_0x3da67d(0xf6)]=_0x3af4cf,_0x4b9cb3[_0x3da67d(0x106)]=_0x33c66b,_0x4b9cb3['PrintAlign']=_0x305204,_0x4b9cb3[_0x3da67d(0xf1)]=_0x68043a,_0x4b9cb3[_0x3da67d(0x101)]=_0x4707d3,_0x4b9cb3[_0x3da67d(0xef)]=_0x386675,_0x4b9cb3[_0x3da67d(0xe2)]=_0x435455;}));function _0x26d1(){const _0x53bf71=['printing-canvas','PrintPaperMargin','innerHTML','printing-canvas-container','Narrow','Middle','PaperMarginMap','offline-printing-css','\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','Landscape','UniverProPrint','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.','\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.','Normal','FitHeight','defineProperty','\x0a\x20\x20\x20\x20.','91252OVESWT','Custom','74906YeVjXn','None','createPrintStyle','PRINT_CANVAS_CLASS','2535EMPdWA','FitPage','783112PznAie','\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','Module','1268974sfuilV','Portrait','function',',\x20.','toStringTag','Start','PrintScale','className','PrintDirection','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}','9114ZpFTwr','185xqzELB','3501810aGXwSY','PRINT_CONTAINER_CLASS','Wide','Origin','px\x20','amd','FitWidth','12KvDSKw','End','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','style'];_0x26d1=function(){return _0x53bf71;};return _0x26d1();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
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.4",
|
|
53
|
-
"@univerjs-infra/shared": "0.
|
|
53
|
+
"@univerjs-infra/shared": "0.23.0"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "vitest run",
|