@univerjs-pro/print 0.24.0 → 0.25.0-insiders.20260604-29ebbff

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 _0x12971a=_0x1b66;(function(_0x51e161,_0x5b8080){const _0x4cbd72=_0x1b66,_0x373fe0=_0x51e161();while(!![]){try{const _0x3c8f57=parseInt(_0x4cbd72(0xfd))/0x1*(parseInt(_0x4cbd72(0x10b))/0x2)+parseInt(_0x4cbd72(0xec))/0x3*(parseInt(_0x4cbd72(0xf0))/0x4)+parseInt(_0x4cbd72(0xfb))/0x5+-parseInt(_0x4cbd72(0xf2))/0x6+parseInt(_0x4cbd72(0xff))/0x7*(-parseInt(_0x4cbd72(0x101))/0x8)+parseInt(_0x4cbd72(0xe8))/0x9*(parseInt(_0x4cbd72(0xf5))/0xa)+-parseInt(_0x4cbd72(0x10c))/0xb;if(_0x3c8f57===_0x5b8080)break;else _0x373fe0['push'](_0x373fe0['shift']());}catch(_0x55ff44){_0x373fe0['push'](_0x373fe0['shift']());}}}(_0x88d3,0x5d263),Object[_0x12971a(0x106)](exports,Symbol[_0x12971a(0x104)],{'value':'Module'}));let e=function(_0x5be0e1){const _0x1cf7fd=_0x12971a;return _0x5be0e1['Portrait']=_0x1cf7fd(0xed),_0x5be0e1[_0x1cf7fd(0xf8)]=_0x1cf7fd(0xf8),_0x5be0e1;}({}),t=function(_0x2d5059){const _0x338774=_0x12971a;return _0x2d5059['Origin']='Origin',_0x2d5059['FitWidth']=_0x338774(0xf6),_0x2d5059[_0x338774(0xf1)]=_0x338774(0xf1),_0x2d5059['FitPage']='FitPage',_0x2d5059[_0x338774(0x109)]=_0x338774(0x109),_0x2d5059;}({}),n=function(_0xdd4ac8){const _0x313943=_0x12971a;return _0xdd4ac8[_0x313943(0xfa)]='Start',_0xdd4ac8[_0x313943(0xe9)]=_0x313943(0xe9),_0xdd4ac8[_0x313943(0x107)]=_0x313943(0x107),_0xdd4ac8;}({}),r=function(_0x88600a){const _0x1e4499=_0x12971a;return _0x88600a['Normal']=_0x1e4499(0x105),_0x88600a['Narrow']=_0x1e4499(0xf4),_0x88600a[_0x1e4499(0x103)]=_0x1e4499(0x103),_0x88600a['None']=_0x1e4499(0x102),_0x88600a[_0x1e4499(0x109)]=_0x1e4499(0x109),_0x88600a;}({});const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a='printing-canvas-container',o='printing-canvas';function _0x88d3(){const _0x2c3834=['PrintAlign','14kFdNlr','style','2434576SFNLJo','None','Wide','toStringTag','Normal','defineProperty','Middle','\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','Custom','\x0a\x20\x20\x20\x20.','66InJttW','4989259lsThqD','className','PRINT_CANVAS_CLASS','PrintPaperMargin','9obYSec','End','createElement','innerHTML','19479ZEICnq','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}','PrintDirection','296VoxASi','FitHeight','2143716rNeTnD','\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','5845150qvKfVO','FitWidth','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','\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.','Start','3124815fRCGMS','PRINT_CONTAINER_CLASS','3366nbdXHz'];_0x88d3=function(){return _0x2c3834;};return _0x88d3();}function s(_0x1eff0c,_0x63ce96,_0x2c695f){const _0x40a749=_0x12971a;let _0x2a42a4=_0x2c695f===_0x40a749(0xed)?_0x1eff0c:_0x63ce96,_0x9d9d6a=_0x2c695f===_0x40a749(0xed)?_0x63ce96:_0x1eff0c,_0x1b6ddb=_0x40a749(0x10a)+o+_0x40a749(0xf3)+_0x2a42a4+'px\x20'+_0x9d9d6a+'px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+a+',\x20.'+a+_0x40a749(0xf9)+o+_0x40a749(0x108)+_0x9d9d6a+_0x40a749(0xf7)+_0x2a42a4+_0x40a749(0xee),_0x391e38=document[_0x40a749(0xea)](_0x40a749(0x100));return _0x391e38[_0x40a749(0xeb)]=_0x1b6ddb,_0x391e38[_0x40a749(0x10d)]='offline-printing-css',_0x391e38;}function _0x1b66(_0x19d37b,_0x32ffc3){_0x19d37b=_0x19d37b-0xe7;const _0x88d318=_0x88d3();let _0x1b66e1=_0x88d318[_0x19d37b];return _0x1b66e1;}exports[_0x12971a(0x10e)]=o,exports[_0x12971a(0xfc)]=a,exports['PaperMarginMap']=i,exports[_0x12971a(0xfe)]=n,exports[_0x12971a(0xef)]=e,exports[_0x12971a(0xe7)]=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
+ function _0x5f0a(){const _0x4ffc66=['Portrait','503350aCokle','px\x20',',\x20.','FitHeight','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','1182776oYgcge','\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.','Narrow','3971565RPhjWI','Custom','\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','printing-canvas-container','Landscape','style','483366PIyrmz','printing-canvas','54052AiDPXJ','44MQtnVD','33yxuppQ','15294ukBZqw','Normal','End','FitPage','createElement','\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','Wide','Start','Origin','874220KraKHz','40AQACVD','7tItguR','\x0a\x20\x20\x20\x20.'];_0x5f0a=function(){return _0x4ffc66;};return _0x5f0a();}const _0x2751de=_0x203b;(function(_0x1f769e,_0x1d8356){const _0x205e36=_0x203b,_0x256735=_0x1f769e();while(!![]){try{const _0x29c416=parseInt(_0x205e36(0x113))/0x1*(parseInt(_0x205e36(0x109))/0x2)+-parseInt(_0x205e36(0x108))/0x3*(-parseInt(_0x205e36(0x106))/0x4)+parseInt(_0x205e36(0xf6))/0x5+-parseInt(_0x205e36(0x104))/0x6*(parseInt(_0x205e36(0xf3))/0x7)+-parseInt(_0x205e36(0xfb))/0x8+-parseInt(_0x205e36(0xfe))/0x9+parseInt(_0x205e36(0x112))/0xa*(parseInt(_0x205e36(0x107))/0xb);if(_0x29c416===_0x1d8356)break;else _0x256735['push'](_0x256735['shift']());}catch(_0x1b927a){_0x256735['push'](_0x256735['shift']());}}}(_0x5f0a,0x396b4));let e=function(_0x234771){const _0x251b95=_0x203b;return _0x234771['Portrait']=_0x251b95(0xf5),_0x234771[_0x251b95(0x102)]=_0x251b95(0x102),_0x234771;}({}),t=function(_0x42ae1a){const _0x4d5ede=_0x203b;return _0x42ae1a[_0x4d5ede(0x111)]='Origin',_0x42ae1a['FitWidth']='FitWidth',_0x42ae1a[_0x4d5ede(0xf9)]=_0x4d5ede(0xf9),_0x42ae1a[_0x4d5ede(0x10c)]=_0x4d5ede(0x10c),_0x42ae1a['Custom']='Custom',_0x42ae1a;}({}),n=function(_0x1095ec){const _0x5eaa0a=_0x203b;return _0x1095ec[_0x5eaa0a(0x110)]=_0x5eaa0a(0x110),_0x1095ec['End']=_0x5eaa0a(0x10b),_0x1095ec['Middle']='Middle',_0x1095ec;}({}),r=function(_0x28f50c){const _0x471b6b=_0x203b;return _0x28f50c[_0x471b6b(0x10a)]=_0x471b6b(0x10a),_0x28f50c['Narrow']=_0x471b6b(0xfd),_0x28f50c[_0x471b6b(0x10f)]=_0x471b6b(0x10f),_0x28f50c['None']='None',_0x28f50c[_0x471b6b(0xff)]=_0x471b6b(0xff),_0x28f50c;}({});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=_0x2751de(0x101),o=_0x2751de(0x105);function _0x203b(_0x57a9b5,_0x1e51fd){_0x57a9b5=_0x57a9b5-0xf3;const _0x5f0a63=_0x5f0a();let _0x203bc5=_0x5f0a63[_0x57a9b5];return _0x203bc5;}function s(_0x3499aa,_0x8ded57,_0x58acc6){const _0x3bcdff=_0x2751de;let _0xf16605=_0x58acc6==='Portrait'?_0x3499aa:_0x8ded57,_0x24a635=_0x58acc6===_0x3bcdff(0xf5)?_0x8ded57:_0x3499aa,_0x4cb7f0=_0x3bcdff(0xf4)+o+_0x3bcdff(0x100)+_0xf16605+_0x3bcdff(0xf7)+_0x24a635+'px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+a+_0x3bcdff(0xf8)+a+_0x3bcdff(0xfc)+o+_0x3bcdff(0x10e)+_0x24a635+_0x3bcdff(0xfa)+_0xf16605+'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}',_0x40489a=document[_0x3bcdff(0x10d)](_0x3bcdff(0x103));return _0x40489a['innerHTML']=_0x4cb7f0,_0x40489a['className']='offline-printing-css',_0x40489a;}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 _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
+ function _0x5f0a(){const _0x4ffc66=['Portrait','503350aCokle','px\x20',',\x20.','FitHeight','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','1182776oYgcge','\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.','Narrow','3971565RPhjWI','Custom','\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','printing-canvas-container','Landscape','style','483366PIyrmz','printing-canvas','54052AiDPXJ','44MQtnVD','33yxuppQ','15294ukBZqw','Normal','End','FitPage','createElement','\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','Wide','Start','Origin','874220KraKHz','40AQACVD','7tItguR','\x0a\x20\x20\x20\x20.'];_0x5f0a=function(){return _0x4ffc66;};return _0x5f0a();}const _0x2751de=_0x203b;(function(_0x1f769e,_0x1d8356){const _0x205e36=_0x203b,_0x256735=_0x1f769e();while(!![]){try{const _0x29c416=parseInt(_0x205e36(0x113))/0x1*(parseInt(_0x205e36(0x109))/0x2)+-parseInt(_0x205e36(0x108))/0x3*(-parseInt(_0x205e36(0x106))/0x4)+parseInt(_0x205e36(0xf6))/0x5+-parseInt(_0x205e36(0x104))/0x6*(parseInt(_0x205e36(0xf3))/0x7)+-parseInt(_0x205e36(0xfb))/0x8+-parseInt(_0x205e36(0xfe))/0x9+parseInt(_0x205e36(0x112))/0xa*(parseInt(_0x205e36(0x107))/0xb);if(_0x29c416===_0x1d8356)break;else _0x256735['push'](_0x256735['shift']());}catch(_0x1b927a){_0x256735['push'](_0x256735['shift']());}}}(_0x5f0a,0x396b4));let e=function(_0x234771){const _0x251b95=_0x203b;return _0x234771['Portrait']=_0x251b95(0xf5),_0x234771[_0x251b95(0x102)]=_0x251b95(0x102),_0x234771;}({}),t=function(_0x42ae1a){const _0x4d5ede=_0x203b;return _0x42ae1a[_0x4d5ede(0x111)]='Origin',_0x42ae1a['FitWidth']='FitWidth',_0x42ae1a[_0x4d5ede(0xf9)]=_0x4d5ede(0xf9),_0x42ae1a[_0x4d5ede(0x10c)]=_0x4d5ede(0x10c),_0x42ae1a['Custom']='Custom',_0x42ae1a;}({}),n=function(_0x1095ec){const _0x5eaa0a=_0x203b;return _0x1095ec[_0x5eaa0a(0x110)]=_0x5eaa0a(0x110),_0x1095ec['End']=_0x5eaa0a(0x10b),_0x1095ec['Middle']='Middle',_0x1095ec;}({}),r=function(_0x28f50c){const _0x471b6b=_0x203b;return _0x28f50c[_0x471b6b(0x10a)]=_0x471b6b(0x10a),_0x28f50c['Narrow']=_0x471b6b(0xfd),_0x28f50c[_0x471b6b(0x10f)]=_0x471b6b(0x10f),_0x28f50c['None']='None',_0x28f50c[_0x471b6b(0xff)]=_0x471b6b(0xff),_0x28f50c;}({});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=_0x2751de(0x101),o=_0x2751de(0x105);function _0x203b(_0x57a9b5,_0x1e51fd){_0x57a9b5=_0x57a9b5-0xf3;const _0x5f0a63=_0x5f0a();let _0x203bc5=_0x5f0a63[_0x57a9b5];return _0x203bc5;}function s(_0x3499aa,_0x8ded57,_0x58acc6){const _0x3bcdff=_0x2751de;let _0xf16605=_0x58acc6==='Portrait'?_0x3499aa:_0x8ded57,_0x24a635=_0x58acc6===_0x3bcdff(0xf5)?_0x8ded57:_0x3499aa,_0x4cb7f0=_0x3bcdff(0xf4)+o+_0x3bcdff(0x100)+_0xf16605+_0x3bcdff(0xf7)+_0x24a635+'px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+a+_0x3bcdff(0xf8)+a+_0x3bcdff(0xfc)+o+_0x3bcdff(0x10e)+_0x24a635+_0x3bcdff(0xfa)+_0xf16605+'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}',_0x40489a=document[_0x3bcdff(0x10d)](_0x3bcdff(0x103));return _0x40489a['innerHTML']=_0x4cb7f0,_0x40489a['className']='offline-printing-css',_0x40489a;}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(_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 _0x7e7a(){const _0x59a6d0=['UniverProPrint','Normal','\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','\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','PrintScale','defineProperty','Narrow','className','printing-canvas','FitWidth','printing-canvas-container','createElement','amd','FitHeight','6366144MKxjat','343291hYhGtM','329ZkXiEy','createPrintStyle','375736CooLHe','None','12305420Xlzmew',',\x20.','66776dqfxMZ','6921025dbMQgY','Middle','PrintAlign','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.','Landscape','Module','Wide','PrintPaperMargin','FitPage','object','Portrait','style','PRINT_CANVAS_CLASS','Start','3521205ZWzfml','3bSUUZa','innerHTML','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','8CkFyHu','Origin','toStringTag','px\x20','End','function','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}','Custom'];_0x7e7a=function(){return _0x59a6d0;};return _0x7e7a();}function _0x4db2(_0x550c32,_0x7954a5){_0x550c32=_0x550c32-0x19d;const _0x7e7ab9=_0x7e7a();let _0x4db2b0=_0x7e7ab9[_0x550c32];return _0x4db2b0;}(function(_0xee1a40,_0x41b66c){const _0x195065=_0x4db2,_0x1f2bbc=_0xee1a40();while(!![]){try{const _0x2ed413=-parseInt(_0x195065(0x1bc))/0x1*(-parseInt(_0x195065(0x1a4))/0x2)+parseInt(_0x195065(0x1a1))/0x3*(-parseInt(_0x195065(0x1bf))/0x4)+-parseInt(_0x195065(0x1c4))/0x5+-parseInt(_0x195065(0x1bb))/0x6+-parseInt(_0x195065(0x1bd))/0x7*(-parseInt(_0x195065(0x1c3))/0x8)+parseInt(_0x195065(0x1a0))/0x9+parseInt(_0x195065(0x1c1))/0xa;if(_0x2ed413===_0x41b66c)break;else _0x1f2bbc['push'](_0x1f2bbc['shift']());}catch(_0xdf265e){_0x1f2bbc['push'](_0x1f2bbc['shift']());}}}(_0x7e7a,0xcf0e1),function(_0x73af2f,_0x47b2e8){const _0x40d244=_0x4db2;typeof exports==_0x40d244(0x1cd)&&typeof module<'u'?_0x47b2e8(exports):typeof define==_0x40d244(0x1a9)&&define[_0x40d244(0x1b9)]?define(['exports'],_0x47b2e8):(_0x73af2f=typeof globalThis<'u'?globalThis:_0x73af2f||self,_0x47b2e8(_0x73af2f[_0x40d244(0x1ac)]={}));}(this,function(_0x2d077b){const _0x50dee9=_0x4db2;Object[_0x50dee9(0x1b2)](_0x2d077b,Symbol[_0x50dee9(0x1a6)],{'value':_0x50dee9(0x1c9)});let _0x1ab03a=function(_0x8695a8){const _0x3dcbd3=_0x50dee9;return _0x8695a8[_0x3dcbd3(0x1ce)]=_0x3dcbd3(0x1ce),_0x8695a8[_0x3dcbd3(0x1c8)]='Landscape',_0x8695a8;}({}),_0x1b9f86=function(_0xe4537c){const _0x1a6eba=_0x50dee9;return _0xe4537c[_0x1a6eba(0x1a5)]=_0x1a6eba(0x1a5),_0xe4537c['FitWidth']=_0x1a6eba(0x1b6),_0xe4537c[_0x1a6eba(0x1ba)]=_0x1a6eba(0x1ba),_0xe4537c['FitPage']=_0x1a6eba(0x1cc),_0xe4537c[_0x1a6eba(0x1ab)]=_0x1a6eba(0x1ab),_0xe4537c;}({}),_0x4708f8=function(_0x4b34f0){const _0x3aea8c=_0x50dee9;return _0x4b34f0['Start']=_0x3aea8c(0x19f),_0x4b34f0[_0x3aea8c(0x1a8)]='End',_0x4b34f0[_0x3aea8c(0x1c5)]=_0x3aea8c(0x1c5),_0x4b34f0;}({}),_0x377ed5=function(_0x40981b){const _0x55d667=_0x50dee9;return _0x40981b[_0x55d667(0x1ad)]=_0x55d667(0x1ad),_0x40981b[_0x55d667(0x1b3)]=_0x55d667(0x1b3),_0x40981b[_0x55d667(0x1ca)]=_0x55d667(0x1ca),_0x40981b['None']=_0x55d667(0x1c0),_0x40981b[_0x55d667(0x1ab)]=_0x55d667(0x1ab),_0x40981b;}({}),_0x29f902={'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}},_0x478146=_0x50dee9(0x1b7),_0x23aff3=_0x50dee9(0x1b5);function _0x4db7f4(_0x935847,_0x4333f8,_0x3b3d0c){const _0x2edebd=_0x50dee9;let _0x1c3fd5=_0x3b3d0c===_0x2edebd(0x1ce)?_0x935847:_0x4333f8,_0x29ad47=_0x3b3d0c===_0x2edebd(0x1ce)?_0x4333f8:_0x935847,_0x4c4087='\x0a\x20\x20\x20\x20.'+_0x23aff3+_0x2edebd(0x1ae)+_0x1c3fd5+_0x2edebd(0x1a7)+_0x29ad47+_0x2edebd(0x1c7)+_0x478146+_0x2edebd(0x1c2)+_0x478146+'\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.'+_0x23aff3+_0x2edebd(0x1af)+_0x29ad47+_0x2edebd(0x1a3)+_0x1c3fd5+_0x2edebd(0x1aa),_0x396f7f=document[_0x2edebd(0x1b8)](_0x2edebd(0x19d));return _0x396f7f[_0x2edebd(0x1a2)]=_0x4c4087,_0x396f7f[_0x2edebd(0x1b4)]=_0x2edebd(0x1b0),_0x396f7f;}_0x2d077b[_0x50dee9(0x19e)]=_0x23aff3,_0x2d077b['PRINT_CONTAINER_CLASS']=_0x478146,_0x2d077b['PaperMarginMap']=_0x29f902,_0x2d077b[_0x50dee9(0x1c6)]=_0x4708f8,_0x2d077b['PrintDirection']=_0x1ab03a,_0x2d077b[_0x50dee9(0x1cb)]=_0x377ed5,_0x2d077b[_0x50dee9(0x1b1)]=_0x1b9f86,_0x2d077b[_0x50dee9(0x1be)]=_0x4db7f4;}));
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.20260604-29ebbff",
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.7",
53
+ "@univerjs-infra/shared": "0.25.0"
54
54
  },
55
55
  "scripts": {
56
56
  "test": "vitest run",