@univerjs-pro/print 0.23.0 → 0.24.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 CHANGED
@@ -1 +1 @@
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;
1
+ const _0x599ab0=_0x25b9;(function(_0x1a07b5,_0x40f619){const _0x5ead50=_0x25b9,_0x1963e7=_0x1a07b5();while(!![]){try{const _0x53021c=parseInt(_0x5ead50(0xc8))/0x1*(parseInt(_0x5ead50(0xd2))/0x2)+parseInt(_0x5ead50(0xd5))/0x3+-parseInt(_0x5ead50(0xdb))/0x4+-parseInt(_0x5ead50(0xc9))/0x5*(-parseInt(_0x5ead50(0xdd))/0x6)+parseInt(_0x5ead50(0xf2))/0x7+-parseInt(_0x5ead50(0xee))/0x8*(-parseInt(_0x5ead50(0xef))/0x9)+-parseInt(_0x5ead50(0xde))/0xa;if(_0x53021c===_0x40f619)break;else _0x1963e7['push'](_0x1963e7['shift']());}catch(_0x5af8bc){_0x1963e7['push'](_0x1963e7['shift']());}}}(_0x33e0,0x756a2),Object[_0x599ab0(0xea)](exports,Symbol[_0x599ab0(0xd3)],{'value':_0x599ab0(0xc7)}));let e=function(_0x3e56c0){const _0x1136fa=_0x599ab0;return _0x3e56c0['Portrait']=_0x1136fa(0xd4),_0x3e56c0[_0x1136fa(0xcb)]=_0x1136fa(0xcb),_0x3e56c0;}({}),t=function(_0xe07aba){const _0x3cd746=_0x599ab0;return _0xe07aba['Origin']=_0x3cd746(0xeb),_0xe07aba[_0x3cd746(0xd1)]='FitWidth',_0xe07aba['FitHeight']=_0x3cd746(0xda),_0xe07aba['FitPage']=_0x3cd746(0xe3),_0xe07aba['Custom']=_0x3cd746(0xd0),_0xe07aba;}({}),n=function(_0x26b59a){const _0x24f0fc=_0x599ab0;return _0x26b59a[_0x24f0fc(0xdf)]=_0x24f0fc(0xdf),_0x26b59a[_0x24f0fc(0xe9)]='End',_0x26b59a[_0x24f0fc(0xec)]='Middle',_0x26b59a;}({}),r=function(_0x3d3545){const _0x461344=_0x599ab0;return _0x3d3545[_0x461344(0xe8)]=_0x461344(0xe8),_0x3d3545[_0x461344(0xe5)]=_0x461344(0xe5),_0x3d3545[_0x461344(0xf3)]=_0x461344(0xf3),_0x3d3545[_0x461344(0xdc)]=_0x461344(0xdc),_0x3d3545['Custom']='Custom',_0x3d3545;}({});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=_0x599ab0(0xe6),o=_0x599ab0(0xd9);function _0x33e0(){const _0x35ff46=['30052530JDPWyI','Start','\x0a\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.','style','FitPage','PrintDirection','Narrow','printing-canvas-container','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Normal','End','defineProperty','Origin','Middle','px\x20','8guefgX','7963929bAOvaQ','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{\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','5869906rnVvdJ','Wide','Module','19916pzDQce','686815ttZbPi','PRINT_CANVAS_CLASS','Landscape','className','PRINT_CONTAINER_CLASS','PaperMarginMap','\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','Custom','FitWidth','4kCfrsl','toStringTag','Portrait','2368146uOOvHj','createElement','offline-printing-css','innerHTML','printing-canvas','FitHeight','112044nicZct','None','42VHsZDH'];_0x33e0=function(){return _0x35ff46;};return _0x33e0();}function _0x25b9(_0xd23ff1,_0x4215bd){_0xd23ff1=_0xd23ff1-0xc7;const _0x33e03c=_0x33e0();let _0x25b94e=_0x33e03c[_0xd23ff1];return _0x25b94e;}function s(_0x559ba5,_0x954ccf,_0x5d7890){const _0x2ef3df=_0x599ab0;let _0x321846=_0x5d7890==='Portrait'?_0x559ba5:_0x954ccf,_0x4168ec=_0x5d7890===_0x2ef3df(0xd4)?_0x954ccf:_0x559ba5,_0x366638=_0x2ef3df(0xe0)+o+_0x2ef3df(0xcf)+_0x321846+_0x2ef3df(0xed)+_0x4168ec+_0x2ef3df(0xf0)+a+',\x20.'+a+_0x2ef3df(0xe1)+o+_0x2ef3df(0xf1)+_0x4168ec+_0x2ef3df(0xe7)+_0x321846+'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}',_0x1c04b0=document[_0x2ef3df(0xd6)](_0x2ef3df(0xe2));return _0x1c04b0[_0x2ef3df(0xd8)]=_0x366638,_0x1c04b0[_0x2ef3df(0xcc)]=_0x2ef3df(0xd7),_0x1c04b0;}exports[_0x599ab0(0xca)]=o,exports[_0x599ab0(0xcd)]=a,exports[_0x599ab0(0xce)]=i,exports['PrintAlign']=n,exports[_0x599ab0(0xe4)]=e,exports['PrintPaperMargin']=r,exports['PrintScale']=t,exports['createPrintStyle']=s;
package/lib/es/index.js CHANGED
@@ -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};
1
+ const _0x1f94a2=_0x2d49;(function(_0x3340b6,_0x34a4df){const _0x2a4045=_0x2d49,_0x358e64=_0x3340b6();while(!![]){try{const _0x12b005=-parseInt(_0x2a4045(0xa0))/0x1+-parseInt(_0x2a4045(0xa5))/0x2*(parseInt(_0x2a4045(0xb7))/0x3)+parseInt(_0x2a4045(0xac))/0x4+-parseInt(_0x2a4045(0xa9))/0x5+-parseInt(_0x2a4045(0xb0))/0x6+parseInt(_0x2a4045(0xa3))/0x7*(parseInt(_0x2a4045(0x9a))/0x8)+-parseInt(_0x2a4045(0xb5))/0x9*(-parseInt(_0x2a4045(0xa8))/0xa);if(_0x12b005===_0x34a4df)break;else _0x358e64['push'](_0x358e64['shift']());}catch(_0x33d47f){_0x358e64['push'](_0x358e64['shift']());}}}(_0x3005,0x92150));function _0x3005(){const _0x546a93=['px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Narrow','522ISruMz','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}','78fHeaFr','printing-canvas-container','Normal','style','printing-canvas','Origin','offline-printing-css','Start','174792hoXPPb','createElement','Middle','End','FitWidth','Portrait','157VTvBBN','\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','innerHTML','7kqdjAg','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.','58694ycFMRd','FitPage','className','359910BxcjFc','3858255VFglHz','None','\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.','2601468LVHciy','Custom','FitHeight',',\x20.','3759072itsywz','Wide','Landscape'];_0x3005=function(){return _0x546a93;};return _0x3005();}function _0x2d49(_0xb9ec5a,_0x359426){_0xb9ec5a=_0xb9ec5a-0x9a;const _0x3005fd=_0x3005();let _0x2d498f=_0x3005fd[_0xb9ec5a];return _0x2d498f;}let e=function(_0x2e9c9b){const _0xf77e33=_0x2d49;return _0x2e9c9b['Portrait']=_0xf77e33(0x9f),_0x2e9c9b[_0xf77e33(0xb2)]=_0xf77e33(0xb2),_0x2e9c9b;}({}),t=function(_0x30677c){const _0x23ca38=_0x2d49;return _0x30677c[_0x23ca38(0xbc)]='Origin',_0x30677c[_0x23ca38(0x9e)]='FitWidth',_0x30677c[_0x23ca38(0xae)]='FitHeight',_0x30677c[_0x23ca38(0xa6)]=_0x23ca38(0xa6),_0x30677c[_0x23ca38(0xad)]=_0x23ca38(0xad),_0x30677c;}({}),n=function(_0x2dbbf2){const _0xbb86c2=_0x2d49;return _0x2dbbf2[_0xbb86c2(0xbe)]='Start',_0x2dbbf2['End']=_0xbb86c2(0x9d),_0x2dbbf2[_0xbb86c2(0x9c)]='Middle',_0x2dbbf2;}({}),r=function(_0x52fbf2){const _0x4e75d7=_0x2d49;return _0x52fbf2[_0x4e75d7(0xb9)]='Normal',_0x52fbf2[_0x4e75d7(0xb4)]=_0x4e75d7(0xb4),_0x52fbf2[_0x4e75d7(0xb1)]='Wide',_0x52fbf2['None']=_0x4e75d7(0xaa),_0x52fbf2['Custom']=_0x4e75d7(0xad),_0x52fbf2;}({});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=_0x1f94a2(0xb8),o=_0x1f94a2(0xbb);function s(_0x26d368,_0x192fe2,_0x24e3d8){const _0x5add69=_0x1f94a2;let _0x53a64c=_0x24e3d8==='Portrait'?_0x26d368:_0x192fe2,_0x136e48=_0x24e3d8===_0x5add69(0x9f)?_0x192fe2:_0x26d368,_0x197c41='\x0a\x20\x20\x20\x20.'+o+_0x5add69(0xa1)+_0x53a64c+'px\x20'+_0x136e48+_0x5add69(0xa4)+a+_0x5add69(0xaf)+a+_0x5add69(0xab)+o+'\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'+_0x136e48+_0x5add69(0xb3)+_0x53a64c+_0x5add69(0xb6),_0x3d5c8a=document[_0x5add69(0x9b)](_0x5add69(0xba));return _0x3d5c8a[_0x5add69(0xa2)]=_0x197c41,_0x3d5c8a[_0x5add69(0xa7)]=_0x5add69(0xbd),_0x3d5c8a;}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
- 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};
1
+ const _0x1f94a2=_0x2d49;(function(_0x3340b6,_0x34a4df){const _0x2a4045=_0x2d49,_0x358e64=_0x3340b6();while(!![]){try{const _0x12b005=-parseInt(_0x2a4045(0xa0))/0x1+-parseInt(_0x2a4045(0xa5))/0x2*(parseInt(_0x2a4045(0xb7))/0x3)+parseInt(_0x2a4045(0xac))/0x4+-parseInt(_0x2a4045(0xa9))/0x5+-parseInt(_0x2a4045(0xb0))/0x6+parseInt(_0x2a4045(0xa3))/0x7*(parseInt(_0x2a4045(0x9a))/0x8)+-parseInt(_0x2a4045(0xb5))/0x9*(-parseInt(_0x2a4045(0xa8))/0xa);if(_0x12b005===_0x34a4df)break;else _0x358e64['push'](_0x358e64['shift']());}catch(_0x33d47f){_0x358e64['push'](_0x358e64['shift']());}}}(_0x3005,0x92150));function _0x3005(){const _0x546a93=['px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Narrow','522ISruMz','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}','78fHeaFr','printing-canvas-container','Normal','style','printing-canvas','Origin','offline-printing-css','Start','174792hoXPPb','createElement','Middle','End','FitWidth','Portrait','157VTvBBN','\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','innerHTML','7kqdjAg','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.','58694ycFMRd','FitPage','className','359910BxcjFc','3858255VFglHz','None','\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.','2601468LVHciy','Custom','FitHeight',',\x20.','3759072itsywz','Wide','Landscape'];_0x3005=function(){return _0x546a93;};return _0x3005();}function _0x2d49(_0xb9ec5a,_0x359426){_0xb9ec5a=_0xb9ec5a-0x9a;const _0x3005fd=_0x3005();let _0x2d498f=_0x3005fd[_0xb9ec5a];return _0x2d498f;}let e=function(_0x2e9c9b){const _0xf77e33=_0x2d49;return _0x2e9c9b['Portrait']=_0xf77e33(0x9f),_0x2e9c9b[_0xf77e33(0xb2)]=_0xf77e33(0xb2),_0x2e9c9b;}({}),t=function(_0x30677c){const _0x23ca38=_0x2d49;return _0x30677c[_0x23ca38(0xbc)]='Origin',_0x30677c[_0x23ca38(0x9e)]='FitWidth',_0x30677c[_0x23ca38(0xae)]='FitHeight',_0x30677c[_0x23ca38(0xa6)]=_0x23ca38(0xa6),_0x30677c[_0x23ca38(0xad)]=_0x23ca38(0xad),_0x30677c;}({}),n=function(_0x2dbbf2){const _0xbb86c2=_0x2d49;return _0x2dbbf2[_0xbb86c2(0xbe)]='Start',_0x2dbbf2['End']=_0xbb86c2(0x9d),_0x2dbbf2[_0xbb86c2(0x9c)]='Middle',_0x2dbbf2;}({}),r=function(_0x52fbf2){const _0x4e75d7=_0x2d49;return _0x52fbf2[_0x4e75d7(0xb9)]='Normal',_0x52fbf2[_0x4e75d7(0xb4)]=_0x4e75d7(0xb4),_0x52fbf2[_0x4e75d7(0xb1)]='Wide',_0x52fbf2['None']=_0x4e75d7(0xaa),_0x52fbf2['Custom']=_0x4e75d7(0xad),_0x52fbf2;}({});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=_0x1f94a2(0xb8),o=_0x1f94a2(0xbb);function s(_0x26d368,_0x192fe2,_0x24e3d8){const _0x5add69=_0x1f94a2;let _0x53a64c=_0x24e3d8==='Portrait'?_0x26d368:_0x192fe2,_0x136e48=_0x24e3d8===_0x5add69(0x9f)?_0x192fe2:_0x26d368,_0x197c41='\x0a\x20\x20\x20\x20.'+o+_0x5add69(0xa1)+_0x53a64c+'px\x20'+_0x136e48+_0x5add69(0xa4)+a+_0x5add69(0xaf)+a+_0x5add69(0xab)+o+'\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'+_0x136e48+_0x5add69(0xb3)+_0x53a64c+_0x5add69(0xb6),_0x3d5c8a=document[_0x5add69(0x9b)](_0x5add69(0xba));return _0x3d5c8a[_0x5add69(0xa2)]=_0x197c41,_0x3d5c8a[_0x5add69(0xa7)]=_0x5add69(0xbd),_0x3d5c8a;}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 _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();}
1
+ (function(_0x344ba0,_0x547358){const _0x4c117d=_0x39d4,_0x180eee=_0x344ba0();while(!![]){try{const _0x44ede4=parseInt(_0x4c117d(0x176))/0x1+parseInt(_0x4c117d(0x184))/0x2+parseInt(_0x4c117d(0x186))/0x3*(-parseInt(_0x4c117d(0x18f))/0x4)+-parseInt(_0x4c117d(0x191))/0x5+-parseInt(_0x4c117d(0x174))/0x6+-parseInt(_0x4c117d(0x177))/0x7*(-parseInt(_0x4c117d(0x180))/0x8)+parseInt(_0x4c117d(0x187))/0x9;if(_0x44ede4===_0x547358)break;else _0x180eee['push'](_0x180eee['shift']());}catch(_0x1f5816){_0x180eee['push'](_0x180eee['shift']());}}}(_0x1cfc,0xa4827),function(_0x2ab55c,_0x14be7a){const _0x5579e5=_0x39d4;typeof exports=='object'&&typeof module<'u'?_0x14be7a(exports):typeof define==_0x5579e5(0x181)&&define[_0x5579e5(0x199)]?define([_0x5579e5(0x188)],_0x14be7a):(_0x2ab55c=typeof globalThis<'u'?globalThis:_0x2ab55c||self,_0x14be7a(_0x2ab55c[_0x5579e5(0x17e)]={}));}(this,function(_0x518678){const _0xa8c895=_0x39d4;Object[_0xa8c895(0x18a)](_0x518678,Symbol['toStringTag'],{'value':_0xa8c895(0x172)});let _0x19795d=function(_0x564c9d){const _0x3a7c02=_0xa8c895;return _0x564c9d['Portrait']=_0x3a7c02(0x196),_0x564c9d[_0x3a7c02(0x18e)]=_0x3a7c02(0x18e),_0x564c9d;}({}),_0x3b7f68=function(_0x23e544){const _0x32d8c5=_0xa8c895;return _0x23e544[_0x32d8c5(0x17d)]=_0x32d8c5(0x17d),_0x23e544[_0x32d8c5(0x17a)]=_0x32d8c5(0x17a),_0x23e544[_0x32d8c5(0x195)]='FitHeight',_0x23e544[_0x32d8c5(0x16c)]='FitPage',_0x23e544[_0x32d8c5(0x18b)]=_0x32d8c5(0x18b),_0x23e544;}({}),_0x58b368=function(_0x178df6){const _0x570859=_0xa8c895;return _0x178df6[_0x570859(0x193)]='Start',_0x178df6[_0x570859(0x194)]=_0x570859(0x194),_0x178df6[_0x570859(0x189)]='Middle',_0x178df6;}({}),_0x150606=function(_0x13ad3d){const _0x11b947=_0xa8c895;return _0x13ad3d[_0x11b947(0x190)]=_0x11b947(0x190),_0x13ad3d[_0x11b947(0x192)]=_0x11b947(0x192),_0x13ad3d[_0x11b947(0x171)]=_0x11b947(0x171),_0x13ad3d[_0x11b947(0x16e)]=_0x11b947(0x16e),_0x13ad3d['Custom']='Custom',_0x13ad3d;}({}),_0x42e67e={'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}},_0x1c2370=_0xa8c895(0x17b),_0x1e8313=_0xa8c895(0x175);function _0x41507a(_0x4fad89,_0x4fec33,_0x1a1bb7){const _0x3793e5=_0xa8c895;let _0x5766a3=_0x1a1bb7==='Portrait'?_0x4fad89:_0x4fec33,_0x142fbb=_0x1a1bb7===_0x3793e5(0x196)?_0x4fec33:_0x4fad89,_0x45fcb3=_0x3793e5(0x18c)+_0x1e8313+_0x3793e5(0x185)+_0x5766a3+_0x3793e5(0x18d)+_0x142fbb+_0x3793e5(0x17f)+_0x1c2370+_0x3793e5(0x19a)+_0x1c2370+_0x3793e5(0x16d)+_0x1e8313+'\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'+_0x142fbb+_0x3793e5(0x183)+_0x5766a3+_0x3793e5(0x179),_0x12dce2=document['createElement']('style');return _0x12dce2[_0x3793e5(0x198)]=_0x45fcb3,_0x12dce2[_0x3793e5(0x17c)]=_0x3793e5(0x16f),_0x12dce2;}_0x518678['PRINT_CANVAS_CLASS']=_0x1e8313,_0x518678[_0xa8c895(0x197)]=_0x1c2370,_0x518678[_0xa8c895(0x170)]=_0x42e67e,_0x518678[_0xa8c895(0x182)]=_0x58b368,_0x518678[_0xa8c895(0x178)]=_0x19795d,_0x518678[_0xa8c895(0x173)]=_0x150606,_0x518678['PrintScale']=_0x3b7f68,_0x518678[_0xa8c895(0x16b)]=_0x41507a;}));function _0x39d4(_0x7f72a1,_0x16b1e5){_0x7f72a1=_0x7f72a1-0x16b;const _0x1cfc85=_0x1cfc();let _0x39d4c2=_0x1cfc85[_0x7f72a1];return _0x39d4c2;}function _0x1cfc(){const _0x2c3155=['2020098haFvOf','printing-canvas','315030OOrmlx','12096kKUlcz','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}','FitWidth','printing-canvas-container','className','Origin','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.','3360MpFeBq','function','PrintAlign','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','119498dpqtcF','\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','6DWXRxR','17968320flmtCe','exports','Middle','defineProperty','Custom','\x0a\x20\x20\x20\x20.','px\x20','Landscape','2277656lwrxCq','Normal','4738385QFkXJw','Narrow','Start','End','FitHeight','Portrait','PRINT_CONTAINER_CLASS','innerHTML','amd',',\x20.','createPrintStyle','FitPage','\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.','None','offline-printing-css','PaperMarginMap','Wide','Module','PrintPaperMargin'];_0x1cfc=function(){return _0x2c3155;};return _0x1cfc();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "private": false,
5
5
  "description": "Shared print utilities for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -49,8 +49,8 @@
49
49
  ],
50
50
  "devDependencies": {
51
51
  "typescript": "^6.0.3",
52
- "vitest": "^4.1.4",
53
- "@univerjs-infra/shared": "0.23.0"
52
+ "vitest": "^4.1.6",
53
+ "@univerjs-infra/shared": "0.24.0"
54
54
  },
55
55
  "scripts": {
56
56
  "test": "vitest run",