@univerjs-pro/print 0.24.0 → 0.25.0-insiders.20260608-e4336f7

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 _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;
1
+ const _0x2617a5=_0x123a;(function(_0x3ab7c9,_0x5deca7){const _0x9cab7f=_0x123a,_0x4d2df2=_0x3ab7c9();while(!![]){try{const _0x4bbf36=parseInt(_0x9cab7f(0x21d))/0x1+parseInt(_0x9cab7f(0x1f9))/0x2*(-parseInt(_0x9cab7f(0x1f4))/0x3)+parseInt(_0x9cab7f(0x20c))/0x4*(parseInt(_0x9cab7f(0x206))/0x5)+-parseInt(_0x9cab7f(0x209))/0x6*(parseInt(_0x9cab7f(0x21f))/0x7)+-parseInt(_0x9cab7f(0x1f6))/0x8+-parseInt(_0x9cab7f(0x21a))/0x9+parseInt(_0x9cab7f(0x20b))/0xa;if(_0x4bbf36===_0x5deca7)break;else _0x4d2df2['push'](_0x4d2df2['shift']());}catch(_0x38dc34){_0x4d2df2['push'](_0x4d2df2['shift']());}}}(_0x53af,0x61c99),Object[_0x2617a5(0x21c)](exports,Symbol['toStringTag'],{'value':_0x2617a5(0x217)}));function _0x123a(_0x2eabc5,_0x2192a6){_0x2eabc5=_0x2eabc5-0x1f3;const _0x53afb0=_0x53af();let _0x123a60=_0x53afb0[_0x2eabc5];return _0x123a60;}let e=function(_0x5ecb08){const _0x3ca2e3=_0x2617a5;return _0x5ecb08[_0x3ca2e3(0x1fe)]=_0x3ca2e3(0x1fe),_0x5ecb08[_0x3ca2e3(0x215)]=_0x3ca2e3(0x215),_0x5ecb08;}({}),t=function(_0x475d29){const _0x447233=_0x2617a5;return _0x475d29[_0x447233(0x1fc)]=_0x447233(0x1fc),_0x475d29[_0x447233(0x21e)]=_0x447233(0x21e),_0x475d29[_0x447233(0x207)]=_0x447233(0x207),_0x475d29[_0x447233(0x1ff)]=_0x447233(0x1ff),_0x475d29['Custom']=_0x447233(0x20d),_0x475d29;}({}),n=function(_0x158fe0){const _0xe8980b=_0x2617a5;return _0x158fe0[_0xe8980b(0x211)]='Start',_0x158fe0['End']=_0xe8980b(0x1f3),_0x158fe0[_0xe8980b(0x210)]=_0xe8980b(0x210),_0x158fe0;}({}),r=function(_0x1ed897){const _0x42b6f7=_0x2617a5;return _0x1ed897[_0x42b6f7(0x220)]=_0x42b6f7(0x220),_0x1ed897[_0x42b6f7(0x214)]=_0x42b6f7(0x214),_0x1ed897[_0x42b6f7(0x21b)]='Wide',_0x1ed897[_0x42b6f7(0x203)]=_0x42b6f7(0x203),_0x1ed897[_0x42b6f7(0x20d)]=_0x42b6f7(0x20d),_0x1ed897;}({});function _0x53af(){const _0x2fdcbd=['1819181vQKwSA','Normal','End','3ocTqyc','px\x20','1139680WtdjXY','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','innerHTML','726490JReWkG','className',',\x20.','Origin','createElement','Portrait','FitPage','PRINT_CANVAS_CLASS','PrintDirection','PaperMarginMap','None','offline-printing-css','printing-canvas','5ewEIqE','FitHeight','PrintPaperMargin','6ErfVJo','printing-canvas-container','621000ATSpGu','2942692ajLviV','Custom','PRINT_CONTAINER_CLASS','\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','Middle','Start','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.','style','Narrow','Landscape','PrintAlign','Module','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}','\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','1295838fhqtIL','Wide','defineProperty','512334ilvfsH','FitWidth'];_0x53af=function(){return _0x2fdcbd;};return _0x53af();}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=_0x2617a5(0x20a),o=_0x2617a5(0x205);function s(_0x40095b,_0x3cd459,_0x413ec9){const _0x5b8313=_0x2617a5;let _0x11c2dd=_0x413ec9==='Portrait'?_0x40095b:_0x3cd459,_0x5c7ad2=_0x413ec9===_0x5b8313(0x1fe)?_0x3cd459:_0x40095b,_0x52e2f9='\x0a\x20\x20\x20\x20.'+o+_0x5b8313(0x219)+_0x11c2dd+_0x5b8313(0x1f5)+_0x5c7ad2+_0x5b8313(0x212)+a+_0x5b8313(0x1fb)+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+_0x5b8313(0x20f)+_0x5c7ad2+_0x5b8313(0x1f7)+_0x11c2dd+_0x5b8313(0x218),_0x2c3218=document[_0x5b8313(0x1fd)](_0x5b8313(0x213));return _0x2c3218[_0x5b8313(0x1f8)]=_0x52e2f9,_0x2c3218[_0x5b8313(0x1fa)]=_0x5b8313(0x204),_0x2c3218;}exports[_0x2617a5(0x200)]=o,exports[_0x2617a5(0x20e)]=a,exports[_0x2617a5(0x202)]=i,exports[_0x2617a5(0x216)]=n,exports[_0x2617a5(0x201)]=e,exports[_0x2617a5(0x208)]=r,exports['PrintScale']=t,exports['createPrintStyle']=s;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
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};
1
+ const _0x5bf3de=_0x5d6b;function _0x5d6b(_0x13bd20,_0xbd0390){_0x13bd20=_0x13bd20-0x170;const _0xc4ae5e=_0xc4ae();let _0x5d6b57=_0xc4ae5e[_0x13bd20];return _0x5d6b57;}(function(_0x4191a4,_0x383964){const _0x5ce40c=_0x5d6b,_0x3b67cb=_0x4191a4();while(!![]){try{const _0x128cce=-parseInt(_0x5ce40c(0x176))/0x1+parseInt(_0x5ce40c(0x171))/0x2+parseInt(_0x5ce40c(0x18f))/0x3+parseInt(_0x5ce40c(0x18e))/0x4+parseInt(_0x5ce40c(0x18a))/0x5*(-parseInt(_0x5ce40c(0x175))/0x6)+parseInt(_0x5ce40c(0x187))/0x7+parseInt(_0x5ce40c(0x182))/0x8;if(_0x128cce===_0x383964)break;else _0x3b67cb['push'](_0x3b67cb['shift']());}catch(_0x244d36){_0x3b67cb['push'](_0x3b67cb['shift']());}}}(_0xc4ae,0x188db));let e=function(_0x57237d){const _0x2fff1c=_0x5d6b;return _0x57237d[_0x2fff1c(0x170)]=_0x2fff1c(0x170),_0x57237d['Landscape']=_0x2fff1c(0x17d),_0x57237d;}({}),t=function(_0x899b6b){const _0x42953d=_0x5d6b;return _0x899b6b[_0x42953d(0x185)]='Origin',_0x899b6b[_0x42953d(0x183)]='FitWidth',_0x899b6b[_0x42953d(0x184)]='FitHeight',_0x899b6b[_0x42953d(0x189)]=_0x42953d(0x189),_0x899b6b[_0x42953d(0x190)]=_0x42953d(0x190),_0x899b6b;}({}),n=function(_0x64ce12){const _0x685d39=_0x5d6b;return _0x64ce12['Start']=_0x685d39(0x181),_0x64ce12['End']=_0x685d39(0x178),_0x64ce12['Middle']=_0x685d39(0x179),_0x64ce12;}({}),r=function(_0x334236){const _0x29c22e=_0x5d6b;return _0x334236[_0x29c22e(0x188)]='Normal',_0x334236['Narrow']=_0x29c22e(0x17c),_0x334236[_0x29c22e(0x17b)]=_0x29c22e(0x17b),_0x334236[_0x29c22e(0x17a)]='None',_0x334236[_0x29c22e(0x190)]=_0x29c22e(0x190),_0x334236;}({});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=_0x5bf3de(0x177);function s(_0x394cc2,_0x426ab2,_0x2eba18){const _0x152daa=_0x5bf3de;let _0x1678f6=_0x2eba18===_0x152daa(0x170)?_0x394cc2:_0x426ab2,_0x2011f2=_0x2eba18===_0x152daa(0x170)?_0x426ab2:_0x394cc2,_0x33b60c=_0x152daa(0x18b)+o+_0x152daa(0x174)+_0x1678f6+_0x152daa(0x186)+_0x2011f2+_0x152daa(0x180)+a+_0x152daa(0x18d)+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+_0x152daa(0x172)+_0x2011f2+_0x152daa(0x18c)+_0x1678f6+_0x152daa(0x17e),_0x4c2cfa=document['createElement']('style');return _0x4c2cfa[_0x152daa(0x173)]=_0x33b60c,_0x4c2cfa[_0x152daa(0x17f)]='offline-printing-css',_0x4c2cfa;}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 _0xc4ae(){const _0x46d4d0=['FitHeight','Origin','px\x20','226842uckONK','Normal','FitPage','558580eYKjaT','\x0a\x20\x20\x20\x20.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20',',\x20.','48104SLqpUz','89916OuOfWm','Custom','Portrait','382290QPsXrv','\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','innerHTML','\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','6VzntDQ','191808DACchW','printing-canvas','End','Middle','None','Wide','Narrow','Landscape','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}','className','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.','Start','1108368NaAmvm','FitWidth'];_0xc4ae=function(){return _0x46d4d0;};return _0xc4ae();}
package/lib/index.js CHANGED
@@ -1 +1 @@
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};
1
+ const _0x5bf3de=_0x5d6b;function _0x5d6b(_0x13bd20,_0xbd0390){_0x13bd20=_0x13bd20-0x170;const _0xc4ae5e=_0xc4ae();let _0x5d6b57=_0xc4ae5e[_0x13bd20];return _0x5d6b57;}(function(_0x4191a4,_0x383964){const _0x5ce40c=_0x5d6b,_0x3b67cb=_0x4191a4();while(!![]){try{const _0x128cce=-parseInt(_0x5ce40c(0x176))/0x1+parseInt(_0x5ce40c(0x171))/0x2+parseInt(_0x5ce40c(0x18f))/0x3+parseInt(_0x5ce40c(0x18e))/0x4+parseInt(_0x5ce40c(0x18a))/0x5*(-parseInt(_0x5ce40c(0x175))/0x6)+parseInt(_0x5ce40c(0x187))/0x7+parseInt(_0x5ce40c(0x182))/0x8;if(_0x128cce===_0x383964)break;else _0x3b67cb['push'](_0x3b67cb['shift']());}catch(_0x244d36){_0x3b67cb['push'](_0x3b67cb['shift']());}}}(_0xc4ae,0x188db));let e=function(_0x57237d){const _0x2fff1c=_0x5d6b;return _0x57237d[_0x2fff1c(0x170)]=_0x2fff1c(0x170),_0x57237d['Landscape']=_0x2fff1c(0x17d),_0x57237d;}({}),t=function(_0x899b6b){const _0x42953d=_0x5d6b;return _0x899b6b[_0x42953d(0x185)]='Origin',_0x899b6b[_0x42953d(0x183)]='FitWidth',_0x899b6b[_0x42953d(0x184)]='FitHeight',_0x899b6b[_0x42953d(0x189)]=_0x42953d(0x189),_0x899b6b[_0x42953d(0x190)]=_0x42953d(0x190),_0x899b6b;}({}),n=function(_0x64ce12){const _0x685d39=_0x5d6b;return _0x64ce12['Start']=_0x685d39(0x181),_0x64ce12['End']=_0x685d39(0x178),_0x64ce12['Middle']=_0x685d39(0x179),_0x64ce12;}({}),r=function(_0x334236){const _0x29c22e=_0x5d6b;return _0x334236[_0x29c22e(0x188)]='Normal',_0x334236['Narrow']=_0x29c22e(0x17c),_0x334236[_0x29c22e(0x17b)]=_0x29c22e(0x17b),_0x334236[_0x29c22e(0x17a)]='None',_0x334236[_0x29c22e(0x190)]=_0x29c22e(0x190),_0x334236;}({});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=_0x5bf3de(0x177);function s(_0x394cc2,_0x426ab2,_0x2eba18){const _0x152daa=_0x5bf3de;let _0x1678f6=_0x2eba18===_0x152daa(0x170)?_0x394cc2:_0x426ab2,_0x2011f2=_0x2eba18===_0x152daa(0x170)?_0x426ab2:_0x394cc2,_0x33b60c=_0x152daa(0x18b)+o+_0x152daa(0x174)+_0x1678f6+_0x152daa(0x186)+_0x2011f2+_0x152daa(0x180)+a+_0x152daa(0x18d)+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+_0x152daa(0x172)+_0x2011f2+_0x152daa(0x18c)+_0x1678f6+_0x152daa(0x17e),_0x4c2cfa=document['createElement']('style');return _0x4c2cfa[_0x152daa(0x173)]=_0x33b60c,_0x4c2cfa[_0x152daa(0x17f)]='offline-printing-css',_0x4c2cfa;}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 _0xc4ae(){const _0x46d4d0=['FitHeight','Origin','px\x20','226842uckONK','Normal','FitPage','558580eYKjaT','\x0a\x20\x20\x20\x20.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20',',\x20.','48104SLqpUz','89916OuOfWm','Custom','Portrait','382290QPsXrv','\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','innerHTML','\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','6VzntDQ','191808DACchW','printing-canvas','End','Middle','None','Wide','Narrow','Landscape','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}','className','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.','Start','1108368NaAmvm','FitWidth'];_0xc4ae=function(){return _0x46d4d0;};return _0xc4ae();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
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();}
1
+ function _0x1599(_0x575270,_0x59a13e){_0x575270=_0x575270-0x180;const _0x331f23=_0x331f();let _0x1599fe=_0x331f23[_0x575270];return _0x1599fe;}function _0x331f(){const _0x510fbc=['Narrow','function','PaperMarginMap','PRINT_CONTAINER_CLASS','FitHeight','\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','None','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','style','Module','Portrait','8GNGLtn',',\x20.','\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','px\x20','PrintPaperMargin','createPrintStyle','PrintScale','253245CUysIs','className','4pCjbEd','exports','Middle','Origin','defineProperty','Custom','End','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}','\x0a\x20\x20\x20\x20.','2282460IySIHq','offline-printing-css','Normal','PRINT_CANVAS_CLASS','FitPage','1659570XiEHLx','558804yLHAvy','3974cWLHCF','\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.','printing-canvas-container','printing-canvas','Landscape','FitWidth','innerHTML','toStringTag','Start','3747411GtnTVk','183jnxaEs','3709335fXmhJl','Wide','UniverProPrint'];_0x331f=function(){return _0x510fbc;};return _0x331f();}(function(_0xf66fb,_0xf21c82){const _0x220dce=_0x1599,_0x28401a=_0xf66fb();while(!![]){try{const _0x5513e3=parseInt(_0x220dce(0x187))/0x1+-parseInt(_0x220dce(0x199))/0x2*(parseInt(_0x220dce(0x1a3))/0x3)+parseInt(_0x220dce(0x189))/0x4*(parseInt(_0x220dce(0x192))/0x5)+parseInt(_0x220dce(0x198))/0x6+-parseInt(_0x220dce(0x1a4))/0x7+-parseInt(_0x220dce(0x180))/0x8*(-parseInt(_0x220dce(0x1a2))/0x9)+-parseInt(_0x220dce(0x197))/0xa;if(_0x5513e3===_0xf21c82)break;else _0x28401a['push'](_0x28401a['shift']());}catch(_0x4b93af){_0x28401a['push'](_0x28401a['shift']());}}}(_0x331f,0x62305),function(_0x2878c2,_0x53e53f){const _0x3746fa=_0x1599;typeof exports=='object'&&typeof module<'u'?_0x53e53f(exports):typeof define==_0x3746fa(0x1a8)&&define['amd']?define([_0x3746fa(0x18a)],_0x53e53f):(_0x2878c2=typeof globalThis<'u'?globalThis:_0x2878c2||self,_0x53e53f(_0x2878c2[_0x3746fa(0x1a6)]={}));}(this,function(_0xd6fe9a){const _0x3348b9=_0x1599;Object[_0x3348b9(0x18d)](_0xd6fe9a,Symbol[_0x3348b9(0x1a0)],{'value':_0x3348b9(0x1b0)});let _0x1f1bbd=function(_0x3dfee6){const _0x806c0f=_0x3348b9;return _0x3dfee6['Portrait']=_0x806c0f(0x1b1),_0x3dfee6[_0x806c0f(0x19d)]=_0x806c0f(0x19d),_0x3dfee6;}({}),_0x38d8a2=function(_0x4e2332){const _0x3ae804=_0x3348b9;return _0x4e2332[_0x3ae804(0x18c)]='Origin',_0x4e2332['FitWidth']=_0x3ae804(0x19e),_0x4e2332['FitHeight']=_0x3ae804(0x1ab),_0x4e2332['FitPage']=_0x3ae804(0x196),_0x4e2332[_0x3ae804(0x18e)]=_0x3ae804(0x18e),_0x4e2332;}({}),_0x3de377=function(_0x1f418f){const _0x39e69a=_0x3348b9;return _0x1f418f[_0x39e69a(0x1a1)]=_0x39e69a(0x1a1),_0x1f418f[_0x39e69a(0x18f)]=_0x39e69a(0x18f),_0x1f418f['Middle']=_0x39e69a(0x18b),_0x1f418f;}({}),_0x9ee4bd=function(_0x213a0a){const _0x5850ac=_0x3348b9;return _0x213a0a[_0x5850ac(0x194)]=_0x5850ac(0x194),_0x213a0a[_0x5850ac(0x1a7)]=_0x5850ac(0x1a7),_0x213a0a[_0x5850ac(0x1a5)]=_0x5850ac(0x1a5),_0x213a0a[_0x5850ac(0x1ad)]=_0x5850ac(0x1ad),_0x213a0a['Custom']=_0x5850ac(0x18e),_0x213a0a;}({}),_0x4233e6={'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}},_0x1a3122=_0x3348b9(0x19b),_0x1f56a5=_0x3348b9(0x19c);function _0x3e51ca(_0x4593bb,_0x13be8d,_0x40ec36){const _0x3ddd9a=_0x3348b9;let _0x1b34cf=_0x40ec36===_0x3ddd9a(0x1b1)?_0x4593bb:_0x13be8d,_0x553f82=_0x40ec36===_0x3ddd9a(0x1b1)?_0x13be8d:_0x4593bb,_0xbb585c=_0x3ddd9a(0x191)+_0x1f56a5+_0x3ddd9a(0x182)+_0x1b34cf+_0x3ddd9a(0x183)+_0x553f82+'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.'+_0x1a3122+_0x3ddd9a(0x181)+_0x1a3122+_0x3ddd9a(0x19a)+_0x1f56a5+_0x3ddd9a(0x1ac)+_0x553f82+_0x3ddd9a(0x1ae)+_0x1b34cf+_0x3ddd9a(0x190),_0x22da5b=document['createElement'](_0x3ddd9a(0x1af));return _0x22da5b[_0x3ddd9a(0x19f)]=_0xbb585c,_0x22da5b[_0x3ddd9a(0x188)]=_0x3ddd9a(0x193),_0x22da5b;}_0xd6fe9a[_0x3348b9(0x195)]=_0x1f56a5,_0xd6fe9a[_0x3348b9(0x1aa)]=_0x1a3122,_0xd6fe9a[_0x3348b9(0x1a9)]=_0x4233e6,_0xd6fe9a['PrintAlign']=_0x3de377,_0xd6fe9a['PrintDirection']=_0x1f1bbd,_0xd6fe9a[_0x3348b9(0x184)]=_0x9ee4bd,_0xd6fe9a[_0x3348b9(0x186)]=_0x38d8a2,_0xd6fe9a[_0x3348b9(0x185)]=_0x3e51ca;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.24.0",
3
+ "version": "0.25.0-insiders.20260608-e4336f7",
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.6",
53
- "@univerjs-infra/shared": "0.24.0"
52
+ "vitest": "^4.1.8",
53
+ "@univerjs-infra/shared": "0.25.0"
54
54
  },
55
55
  "scripts": {
56
56
  "test": "vitest run",