@univerjs-pro/print 0.9.2 → 0.9.3-nightly.202507250819

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
- 'use strict';function _0x5940(_0x3de7ba,_0x1958fb){const _0x19c1f2=_0x19c1();return _0x5940=function(_0x594053,_0x528cec){_0x594053=_0x594053-0x16d;let _0x553a78=_0x19c1f2[_0x594053];return _0x553a78;},_0x5940(_0x3de7ba,_0x1958fb);}function _0x19c1(){const _0x57813b=['9920UzEzDa','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.','FitWidth','18nSEdRY','8CltWXI','PaperMarginMap','None','1823337BUSwJK','innerHTML','915789FESfIC','2737800NmIjIW','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.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PrintAlign','PrintPaperMargin','offline-printing-css','Custom','Normal','Start','createPrintStyle','className','50378taGLsA','printing-canvas-container','FitPage','PrintScale','defineProperty','275669tKVuTo','Narrow','\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.','End','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','PRINT_CONTAINER_CLASS','Portrait','PRINT_CANVAS_CLASS','410AyQfdY','FitHeight','Wide','Origin','Middle','\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','22602pASiwx'];_0x19c1=function(){return _0x57813b;};return _0x19c1();}const _0x27e670=_0x5940;(function(_0x5a8bd4,_0x507fb9){const _0x1eef41=_0x5940,_0x1b89e8=_0x5a8bd4();while(!![]){try{const _0x5bc8c6=parseInt(_0x1eef41(0x17b))/0x1+-parseInt(_0x1eef41(0x176))/0x2*(parseInt(_0x1eef41(0x18f))/0x3)+-parseInt(_0x1eef41(0x18b))/0x4+parseInt(_0x1eef41(0x184))/0x5*(-parseInt(_0x1eef41(0x18a))/0x6)+-parseInt(_0x1eef41(0x195))/0x7+parseInt(_0x1eef41(0x190))/0x8*(parseInt(_0x1eef41(0x193))/0x9)+parseInt(_0x1eef41(0x196))/0xa;if(_0x5bc8c6===_0x507fb9)break;else _0x1b89e8['push'](_0x1b89e8['shift']());}catch(_0xdbfed4){_0x1b89e8['push'](_0x1b89e8['shift']());}}}(_0x19c1,0x26bf3));Object[_0x27e670(0x17a)](exports,Symbol['toStringTag'],{'value':'Module'});var e=(_0x103615=>(_0x103615[_0x27e670(0x182)]=_0x27e670(0x182),_0x103615[_0x27e670(0x17f)]='Landscape',_0x103615))(e||{}),l=(_0x66625c=>(_0x66625c['Origin']=_0x27e670(0x187),_0x66625c[_0x27e670(0x18e)]='FitWidth',_0x66625c[_0x27e670(0x185)]=_0x27e670(0x185),_0x66625c[_0x27e670(0x178)]='FitPage',_0x66625c[_0x27e670(0x171)]=_0x27e670(0x171),_0x66625c))(l||{}),c=(_0x3c5de5=>(_0x3c5de5[_0x27e670(0x173)]='Start',_0x3c5de5[_0x27e670(0x17e)]=_0x27e670(0x17e),_0x3c5de5[_0x27e670(0x188)]='Middle',_0x3c5de5))(c||{}),i=(_0x58d04f=>(_0x58d04f[_0x27e670(0x172)]=_0x27e670(0x172),_0x58d04f[_0x27e670(0x17c)]=_0x27e670(0x17c),_0x58d04f[_0x27e670(0x186)]=_0x27e670(0x186),_0x58d04f['None']=_0x27e670(0x192),_0x58d04f))(i||{});const h={[i[_0x27e670(0x172)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x27e670(0x17c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x27e670(0x186)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x27e670(0x177),n='printing-canvas';function m(_0x5aa367,_0x1925d5,_0x32c9d9){const _0x30ec9b=_0x27e670,_0x4581b9=_0x32c9d9===e[_0x30ec9b(0x182)]?_0x5aa367:_0x1925d5,_0x2b6968=_0x32c9d9===e[_0x30ec9b(0x182)]?_0x1925d5:_0x5aa367,_0x31a41c='\x0a\x20\x20\x20\x20.'+n+_0x30ec9b(0x189)+_0x4581b9+'px\x20'+_0x2b6968+_0x30ec9b(0x197)+r+_0x30ec9b(0x18d)+r+_0x30ec9b(0x17d)+n+_0x30ec9b(0x180)+_0x2b6968+_0x30ec9b(0x16d)+_0x4581b9+_0x30ec9b(0x18c),_0x17fc29=document['createElement']('style');return _0x17fc29[_0x30ec9b(0x194)]=_0x31a41c,_0x17fc29[_0x30ec9b(0x175)]=_0x30ec9b(0x170),_0x17fc29;}exports[_0x27e670(0x183)]=n,exports[_0x27e670(0x181)]=r,exports[_0x27e670(0x191)]=h,exports[_0x27e670(0x16e)]=c,exports['PrintDirection']=e,exports[_0x27e670(0x16f)]=i,exports[_0x27e670(0x179)]=l,exports[_0x27e670(0x174)]=m;
1
+ 'use strict';const _0x22b7de=_0x1937;(function(_0x20073f,_0x28395d){const _0x6ac615=_0x1937,_0x3ab0a7=_0x20073f();while(!![]){try{const _0x4d9a9a=-parseInt(_0x6ac615(0x93))/0x1+-parseInt(_0x6ac615(0x8f))/0x2+parseInt(_0x6ac615(0x9f))/0x3+-parseInt(_0x6ac615(0x9a))/0x4+parseInt(_0x6ac615(0xa0))/0x5+parseInt(_0x6ac615(0x82))/0x6*(parseInt(_0x6ac615(0x87))/0x7)+parseInt(_0x6ac615(0x7b))/0x8;if(_0x4d9a9a===_0x28395d)break;else _0x3ab0a7['push'](_0x3ab0a7['shift']());}catch(_0x25410d){_0x3ab0a7['push'](_0x3ab0a7['shift']());}}}(_0x3d99,0x90729));function _0x3d99(){const _0x4549d6=['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.','910058LOusLa','defineProperty','PrintPaperMargin','PrintScale','FitHeight','Narrow','Landscape','4722876GMxzzL','Custom','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','px\x20','style','25077BPbjiM','130570MeiqBh','Origin','PrintAlign','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','20533464YYVOQD','createElement','Middle','Normal','Wide','className','End','5940324LlDxkq','Portrait','FitPage','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','7VYiXZe','PRINT_CONTAINER_CLASS','printing-canvas-container','Start','PRINT_CANVAS_CLASS','innerHTML','\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','1817552OhTKTR','\x0a\x20\x20\x20\x20.','toStringTag'];_0x3d99=function(){return _0x4549d6;};return _0x3d99();}Object[_0x22b7de(0x94)](exports,Symbol[_0x22b7de(0x91)],{'value':'Module'});var e=(_0x48c88a=>(_0x48c88a['Portrait']=_0x22b7de(0x83),_0x48c88a[_0x22b7de(0x99)]='Landscape',_0x48c88a))(e||{}),l=(_0x2f4055=>(_0x2f4055[_0x22b7de(0xa1)]=_0x22b7de(0xa1),_0x2f4055['FitWidth']='FitWidth',_0x2f4055[_0x22b7de(0x97)]=_0x22b7de(0x97),_0x2f4055['FitPage']=_0x22b7de(0x84),_0x2f4055[_0x22b7de(0x9b)]=_0x22b7de(0x9b),_0x2f4055))(l||{}),c=(_0x2f4606=>(_0x2f4606[_0x22b7de(0x8a)]='Start',_0x2f4606[_0x22b7de(0x81)]=_0x22b7de(0x81),_0x2f4606[_0x22b7de(0x7d)]=_0x22b7de(0x7d),_0x2f4606))(c||{}),i=(_0x1c8b15=>(_0x1c8b15[_0x22b7de(0x7e)]='Normal',_0x1c8b15[_0x22b7de(0x98)]=_0x22b7de(0x98),_0x1c8b15[_0x22b7de(0x7f)]=_0x22b7de(0x7f),_0x1c8b15[_0x22b7de(0x8e)]=_0x22b7de(0x8e),_0x1c8b15))(i||{});const h={[i[_0x22b7de(0x7e)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x22b7de(0x98)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x22b7de(0x8e)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x22b7de(0x89),n=_0x22b7de(0x86);function m(_0x16f235,_0x171104,_0x5e6c33){const _0x40fd6a=_0x22b7de,_0x5d9f11=_0x5e6c33===e[_0x40fd6a(0x83)]?_0x16f235:_0x171104,_0xa2c02d=_0x5e6c33===e[_0x40fd6a(0x83)]?_0x171104:_0x16f235,_0x40b60f=_0x40fd6a(0x90)+n+'\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'+_0x5d9f11+_0x40fd6a(0x9d)+_0xa2c02d+_0x40fd6a(0x92)+r+',\x20.'+r+_0x40fd6a(0x8d)+n+_0x40fd6a(0x9c)+_0xa2c02d+_0x40fd6a(0xa3)+_0x5d9f11+_0x40fd6a(0x85),_0x503a05=document[_0x40fd6a(0x7c)](_0x40fd6a(0x9e));return _0x503a05[_0x40fd6a(0x8c)]=_0x40b60f,_0x503a05[_0x40fd6a(0x80)]='offline-printing-css',_0x503a05;}function _0x1937(_0x497aca,_0xad5ab3){const _0x3d993b=_0x3d99();return _0x1937=function(_0x19371,_0x157ae9){_0x19371=_0x19371-0x7b;let _0x546f4d=_0x3d993b[_0x19371];return _0x546f4d;},_0x1937(_0x497aca,_0xad5ab3);}exports[_0x22b7de(0x8b)]=n,exports[_0x22b7de(0x88)]=r,exports['PaperMarginMap']=h,exports[_0x22b7de(0xa2)]=c,exports['PrintDirection']=e,exports[_0x22b7de(0x95)]=i,exports[_0x22b7de(0x96)]=l,exports['createPrintStyle']=m;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2fce(){const _0x25366a=['\x0a\x20\x20\x20\x20.','Origin','2004986crGqpI','className','\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','FitWidth','Middle','3758624sGPFdY','1DUGkpi','Normal','px\x20','2718429MgQYDB','56745CrDaqC','Narrow','4630KSZXPk','5200998dfQUJh','Custom',',\x20.','Landscape','offline-printing-css','1596240ejxXBk','Wide','3958430BsZbms','None','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.','28ZFySmz','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}','Portrait','printing-canvas-container','FitPage','FitHeight','Start','\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','End'];_0x2fce=function(){return _0x25366a;};return _0x2fce();}const _0x26b7cc=_0x3b91;function _0x3b91(_0xc6cf36,_0x386ef2){const _0x2fce31=_0x2fce();return _0x3b91=function(_0x3b91f3,_0x3ca34d){_0x3b91f3=_0x3b91f3-0x1d2;let _0x6bca5c=_0x2fce31[_0x3b91f3];return _0x6bca5c;},_0x3b91(_0xc6cf36,_0x386ef2);}(function(_0x5b8d43,_0xb449ab){const _0x770f83=_0x3b91,_0x1477fd=_0x5b8d43();while(!![]){try{const _0x17930b=-parseInt(_0x770f83(0x1e3))/0x1*(-parseInt(_0x770f83(0x1dd))/0x2)+parseInt(_0x770f83(0x1e6))/0x3+parseInt(_0x770f83(0x1e2))/0x4+parseInt(_0x770f83(0x1f1))/0x5+parseInt(_0x770f83(0x1ea))/0x6+parseInt(_0x770f83(0x1d2))/0x7*(-parseInt(_0x770f83(0x1ef))/0x8)+parseInt(_0x770f83(0x1e7))/0x9*(-parseInt(_0x770f83(0x1e9))/0xa);if(_0x17930b===_0xb449ab)break;else _0x1477fd['push'](_0x1477fd['shift']());}catch(_0x22e20a){_0x1477fd['push'](_0x1477fd['shift']());}}}(_0x2fce,0xc0be4));var e=(_0x2dcb89=>(_0x2dcb89[_0x26b7cc(0x1d4)]='Portrait',_0x2dcb89['Landscape']=_0x26b7cc(0x1ed),_0x2dcb89))(e||{}),l=(_0x3e9d57=>(_0x3e9d57[_0x26b7cc(0x1dc)]=_0x26b7cc(0x1dc),_0x3e9d57[_0x26b7cc(0x1e0)]=_0x26b7cc(0x1e0),_0x3e9d57[_0x26b7cc(0x1d7)]='FitHeight',_0x3e9d57[_0x26b7cc(0x1d6)]=_0x26b7cc(0x1d6),_0x3e9d57[_0x26b7cc(0x1eb)]=_0x26b7cc(0x1eb),_0x3e9d57))(l||{}),m=(_0x20ed2d=>(_0x20ed2d[_0x26b7cc(0x1d8)]='Start',_0x20ed2d[_0x26b7cc(0x1da)]='End',_0x20ed2d[_0x26b7cc(0x1e1)]=_0x26b7cc(0x1e1),_0x20ed2d))(m||{}),o=(_0x410131=>(_0x410131[_0x26b7cc(0x1e4)]=_0x26b7cc(0x1e4),_0x410131['Narrow']=_0x26b7cc(0x1e8),_0x410131[_0x26b7cc(0x1f0)]=_0x26b7cc(0x1f0),_0x410131[_0x26b7cc(0x1f2)]=_0x26b7cc(0x1f2),_0x410131))(o||{});const c={[o[_0x26b7cc(0x1e4)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x26b7cc(0x1e8)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x26b7cc(0x1d5),d='printing-canvas';function g(_0xdbcfd0,_0x8abcaa,_0x167dc4){const _0x18f1f4=_0x26b7cc,_0x357db1=_0x167dc4===e[_0x18f1f4(0x1d4)]?_0xdbcfd0:_0x8abcaa,_0x246ecc=_0x167dc4===e[_0x18f1f4(0x1d4)]?_0x8abcaa:_0xdbcfd0,_0x2f7e03=_0x18f1f4(0x1db)+d+_0x18f1f4(0x1d9)+_0x357db1+_0x18f1f4(0x1e5)+_0x246ecc+_0x18f1f4(0x1f3)+p+_0x18f1f4(0x1ec)+p+_0x18f1f4(0x1f4)+d+_0x18f1f4(0x1df)+_0x246ecc+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x357db1+_0x18f1f4(0x1d3),_0x58b64c=document['createElement']('style');return _0x58b64c['innerHTML']=_0x2f7e03,_0x58b64c[_0x18f1f4(0x1de)]=_0x18f1f4(0x1ee),_0x58b64c;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
1
+ const _0x1fc45a=_0x5962;function _0x3b13(){const _0x34e2ba=['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}','style','Start','className','Wide','7wmUgID','Middle',',\x20.','offline-printing-css','191734yrOTaY','Narrow','1509470pxZWHx','4kftreS','Origin','printing-canvas-container','FitPage','FitWidth','1070235DnYquX','Custom','End','71376njaadN','\x0a\x20\x20\x20\x20.','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','2HZngQx','FitHeight','292998KlLcOH','Portrait','Normal','940888tbojuh','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.','Landscape','856116tcnaUb'];_0x3b13=function(){return _0x34e2ba;};return _0x3b13();}function _0x5962(_0x4359e9,_0x111d1a){const _0x3b137d=_0x3b13();return _0x5962=function(_0x5962e4,_0x478936){_0x5962e4=_0x5962e4-0x6b;let _0x18e3e2=_0x3b137d[_0x5962e4];return _0x18e3e2;},_0x5962(_0x4359e9,_0x111d1a);}(function(_0x1704b8,_0x56c4bb){const _0x27357a=_0x5962,_0x509840=_0x1704b8();while(!![]){try{const _0x25b418=-parseInt(_0x27357a(0x89))/0x1*(-parseInt(_0x27357a(0x76))/0x2)+parseInt(_0x27357a(0x73))/0x3*(parseInt(_0x27357a(0x6b))/0x4)+-parseInt(_0x27357a(0x70))/0x5+-parseInt(_0x27357a(0x78))/0x6*(-parseInt(_0x27357a(0x85))/0x7)+parseInt(_0x27357a(0x7b))/0x8+parseInt(_0x27357a(0x7f))/0x9+-parseInt(_0x27357a(0x8b))/0xa;if(_0x25b418===_0x56c4bb)break;else _0x509840['push'](_0x509840['shift']());}catch(_0x3219ed){_0x509840['push'](_0x509840['shift']());}}}(_0x3b13,0x1b5e4));var e=(_0x466336=>(_0x466336[_0x1fc45a(0x79)]='Portrait',_0x466336[_0x1fc45a(0x7e)]=_0x1fc45a(0x7e),_0x466336))(e||{}),l=(_0x5ad334=>(_0x5ad334[_0x1fc45a(0x6c)]=_0x1fc45a(0x6c),_0x5ad334[_0x1fc45a(0x6f)]=_0x1fc45a(0x6f),_0x5ad334[_0x1fc45a(0x77)]=_0x1fc45a(0x77),_0x5ad334[_0x1fc45a(0x6e)]=_0x1fc45a(0x6e),_0x5ad334[_0x1fc45a(0x71)]=_0x1fc45a(0x71),_0x5ad334))(l||{}),m=(_0x17e858=>(_0x17e858[_0x1fc45a(0x82)]=_0x1fc45a(0x82),_0x17e858[_0x1fc45a(0x72)]=_0x1fc45a(0x72),_0x17e858[_0x1fc45a(0x86)]=_0x1fc45a(0x86),_0x17e858))(m||{}),o=(_0x17a64f=>(_0x17a64f['Normal']=_0x1fc45a(0x7a),_0x17a64f[_0x1fc45a(0x8a)]=_0x1fc45a(0x8a),_0x17a64f[_0x1fc45a(0x84)]='Wide',_0x17a64f[_0x1fc45a(0x7c)]=_0x1fc45a(0x7c),_0x17a64f))(o||{});const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x1fc45a(0x8a)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x1fc45a(0x84)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x1fc45a(0x7c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x1fc45a(0x6d),d='printing-canvas';function g(_0x42f69f,_0x1a344a,_0x56d56d){const _0x55a0ba=_0x1fc45a,_0x34cf90=_0x56d56d===e[_0x55a0ba(0x79)]?_0x42f69f:_0x1a344a,_0x598ae2=_0x56d56d===e[_0x55a0ba(0x79)]?_0x1a344a:_0x42f69f,_0x2463a6=_0x55a0ba(0x74)+d+'\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'+_0x34cf90+'px\x20'+_0x598ae2+_0x55a0ba(0x75)+p+_0x55a0ba(0x87)+p+_0x55a0ba(0x7d)+d+'\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'+_0x598ae2+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x34cf90+_0x55a0ba(0x80),_0x53889c=document['createElement'](_0x55a0ba(0x81));return _0x53889c['innerHTML']=_0x2463a6,_0x53889c[_0x55a0ba(0x83)]=_0x55a0ba(0x88),_0x53889c;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2fce(){const _0x25366a=['\x0a\x20\x20\x20\x20.','Origin','2004986crGqpI','className','\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','FitWidth','Middle','3758624sGPFdY','1DUGkpi','Normal','px\x20','2718429MgQYDB','56745CrDaqC','Narrow','4630KSZXPk','5200998dfQUJh','Custom',',\x20.','Landscape','offline-printing-css','1596240ejxXBk','Wide','3958430BsZbms','None','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.','28ZFySmz','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}','Portrait','printing-canvas-container','FitPage','FitHeight','Start','\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','End'];_0x2fce=function(){return _0x25366a;};return _0x2fce();}const _0x26b7cc=_0x3b91;function _0x3b91(_0xc6cf36,_0x386ef2){const _0x2fce31=_0x2fce();return _0x3b91=function(_0x3b91f3,_0x3ca34d){_0x3b91f3=_0x3b91f3-0x1d2;let _0x6bca5c=_0x2fce31[_0x3b91f3];return _0x6bca5c;},_0x3b91(_0xc6cf36,_0x386ef2);}(function(_0x5b8d43,_0xb449ab){const _0x770f83=_0x3b91,_0x1477fd=_0x5b8d43();while(!![]){try{const _0x17930b=-parseInt(_0x770f83(0x1e3))/0x1*(-parseInt(_0x770f83(0x1dd))/0x2)+parseInt(_0x770f83(0x1e6))/0x3+parseInt(_0x770f83(0x1e2))/0x4+parseInt(_0x770f83(0x1f1))/0x5+parseInt(_0x770f83(0x1ea))/0x6+parseInt(_0x770f83(0x1d2))/0x7*(-parseInt(_0x770f83(0x1ef))/0x8)+parseInt(_0x770f83(0x1e7))/0x9*(-parseInt(_0x770f83(0x1e9))/0xa);if(_0x17930b===_0xb449ab)break;else _0x1477fd['push'](_0x1477fd['shift']());}catch(_0x22e20a){_0x1477fd['push'](_0x1477fd['shift']());}}}(_0x2fce,0xc0be4));var e=(_0x2dcb89=>(_0x2dcb89[_0x26b7cc(0x1d4)]='Portrait',_0x2dcb89['Landscape']=_0x26b7cc(0x1ed),_0x2dcb89))(e||{}),l=(_0x3e9d57=>(_0x3e9d57[_0x26b7cc(0x1dc)]=_0x26b7cc(0x1dc),_0x3e9d57[_0x26b7cc(0x1e0)]=_0x26b7cc(0x1e0),_0x3e9d57[_0x26b7cc(0x1d7)]='FitHeight',_0x3e9d57[_0x26b7cc(0x1d6)]=_0x26b7cc(0x1d6),_0x3e9d57[_0x26b7cc(0x1eb)]=_0x26b7cc(0x1eb),_0x3e9d57))(l||{}),m=(_0x20ed2d=>(_0x20ed2d[_0x26b7cc(0x1d8)]='Start',_0x20ed2d[_0x26b7cc(0x1da)]='End',_0x20ed2d[_0x26b7cc(0x1e1)]=_0x26b7cc(0x1e1),_0x20ed2d))(m||{}),o=(_0x410131=>(_0x410131[_0x26b7cc(0x1e4)]=_0x26b7cc(0x1e4),_0x410131['Narrow']=_0x26b7cc(0x1e8),_0x410131[_0x26b7cc(0x1f0)]=_0x26b7cc(0x1f0),_0x410131[_0x26b7cc(0x1f2)]=_0x26b7cc(0x1f2),_0x410131))(o||{});const c={[o[_0x26b7cc(0x1e4)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x26b7cc(0x1e8)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x26b7cc(0x1d5),d='printing-canvas';function g(_0xdbcfd0,_0x8abcaa,_0x167dc4){const _0x18f1f4=_0x26b7cc,_0x357db1=_0x167dc4===e[_0x18f1f4(0x1d4)]?_0xdbcfd0:_0x8abcaa,_0x246ecc=_0x167dc4===e[_0x18f1f4(0x1d4)]?_0x8abcaa:_0xdbcfd0,_0x2f7e03=_0x18f1f4(0x1db)+d+_0x18f1f4(0x1d9)+_0x357db1+_0x18f1f4(0x1e5)+_0x246ecc+_0x18f1f4(0x1f3)+p+_0x18f1f4(0x1ec)+p+_0x18f1f4(0x1f4)+d+_0x18f1f4(0x1df)+_0x246ecc+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x357db1+_0x18f1f4(0x1d3),_0x58b64c=document['createElement']('style');return _0x58b64c['innerHTML']=_0x2f7e03,_0x58b64c[_0x18f1f4(0x1de)]=_0x18f1f4(0x1ee),_0x58b64c;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
1
+ const _0x1fc45a=_0x5962;function _0x3b13(){const _0x34e2ba=['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}','style','Start','className','Wide','7wmUgID','Middle',',\x20.','offline-printing-css','191734yrOTaY','Narrow','1509470pxZWHx','4kftreS','Origin','printing-canvas-container','FitPage','FitWidth','1070235DnYquX','Custom','End','71376njaadN','\x0a\x20\x20\x20\x20.','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','2HZngQx','FitHeight','292998KlLcOH','Portrait','Normal','940888tbojuh','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.','Landscape','856116tcnaUb'];_0x3b13=function(){return _0x34e2ba;};return _0x3b13();}function _0x5962(_0x4359e9,_0x111d1a){const _0x3b137d=_0x3b13();return _0x5962=function(_0x5962e4,_0x478936){_0x5962e4=_0x5962e4-0x6b;let _0x18e3e2=_0x3b137d[_0x5962e4];return _0x18e3e2;},_0x5962(_0x4359e9,_0x111d1a);}(function(_0x1704b8,_0x56c4bb){const _0x27357a=_0x5962,_0x509840=_0x1704b8();while(!![]){try{const _0x25b418=-parseInt(_0x27357a(0x89))/0x1*(-parseInt(_0x27357a(0x76))/0x2)+parseInt(_0x27357a(0x73))/0x3*(parseInt(_0x27357a(0x6b))/0x4)+-parseInt(_0x27357a(0x70))/0x5+-parseInt(_0x27357a(0x78))/0x6*(-parseInt(_0x27357a(0x85))/0x7)+parseInt(_0x27357a(0x7b))/0x8+parseInt(_0x27357a(0x7f))/0x9+-parseInt(_0x27357a(0x8b))/0xa;if(_0x25b418===_0x56c4bb)break;else _0x509840['push'](_0x509840['shift']());}catch(_0x3219ed){_0x509840['push'](_0x509840['shift']());}}}(_0x3b13,0x1b5e4));var e=(_0x466336=>(_0x466336[_0x1fc45a(0x79)]='Portrait',_0x466336[_0x1fc45a(0x7e)]=_0x1fc45a(0x7e),_0x466336))(e||{}),l=(_0x5ad334=>(_0x5ad334[_0x1fc45a(0x6c)]=_0x1fc45a(0x6c),_0x5ad334[_0x1fc45a(0x6f)]=_0x1fc45a(0x6f),_0x5ad334[_0x1fc45a(0x77)]=_0x1fc45a(0x77),_0x5ad334[_0x1fc45a(0x6e)]=_0x1fc45a(0x6e),_0x5ad334[_0x1fc45a(0x71)]=_0x1fc45a(0x71),_0x5ad334))(l||{}),m=(_0x17e858=>(_0x17e858[_0x1fc45a(0x82)]=_0x1fc45a(0x82),_0x17e858[_0x1fc45a(0x72)]=_0x1fc45a(0x72),_0x17e858[_0x1fc45a(0x86)]=_0x1fc45a(0x86),_0x17e858))(m||{}),o=(_0x17a64f=>(_0x17a64f['Normal']=_0x1fc45a(0x7a),_0x17a64f[_0x1fc45a(0x8a)]=_0x1fc45a(0x8a),_0x17a64f[_0x1fc45a(0x84)]='Wide',_0x17a64f[_0x1fc45a(0x7c)]=_0x1fc45a(0x7c),_0x17a64f))(o||{});const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x1fc45a(0x8a)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x1fc45a(0x84)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x1fc45a(0x7c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x1fc45a(0x6d),d='printing-canvas';function g(_0x42f69f,_0x1a344a,_0x56d56d){const _0x55a0ba=_0x1fc45a,_0x34cf90=_0x56d56d===e[_0x55a0ba(0x79)]?_0x42f69f:_0x1a344a,_0x598ae2=_0x56d56d===e[_0x55a0ba(0x79)]?_0x1a344a:_0x42f69f,_0x2463a6=_0x55a0ba(0x74)+d+'\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'+_0x34cf90+'px\x20'+_0x598ae2+_0x55a0ba(0x75)+p+_0x55a0ba(0x87)+p+_0x55a0ba(0x7d)+d+'\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'+_0x598ae2+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x34cf90+_0x55a0ba(0x80),_0x53889c=document['createElement'](_0x55a0ba(0x81));return _0x53889c['innerHTML']=_0x2463a6,_0x53889c[_0x55a0ba(0x83)]=_0x55a0ba(0x88),_0x53889c;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1a1a(_0xc3009b,_0x4e31b1){const _0x5b0e2d=_0x5b0e();return _0x1a1a=function(_0x1a1a81,_0x452ef2){_0x1a1a81=_0x1a1a81-0x12d;let _0xaf5c08=_0x5b0e2d[_0x1a1a81];return _0xaf5c08;},_0x1a1a(_0xc3009b,_0x4e31b1);}function _0x5b0e(){const _0x19e2eb=['24WsozDo','exports','Normal','object','1357310uldzSt','px\x20','printing-canvas','PaperMarginMap','PrintAlign','PRINT_CANVAS_CLASS','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.','createPrintStyle','Portrait','className','3HAWZyj','innerHTML','970339avqCYA','64JYNkEL','toStringTag','FitWidth','style','FitPage',',\x20.','52205JkYEUk','End','UniverProPrint','amd','Middle','Origin','None','2116484aIQzBL','createElement','\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','335321MyOxjZ','99BfdsXl','printing-canvas-container','Narrow','PrintDirection','defineProperty','Start','\x0a\x20\x20\x20\x20.','4435146VHRLNk','Wide','FitHeight','2759516ZrRGPP','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'];_0x5b0e=function(){return _0x19e2eb;};return _0x5b0e();}(function(_0x223654,_0x378146){const _0x218b6f=_0x1a1a,_0x3712b8=_0x223654();while(!![]){try{const _0x2fa0fb=-parseInt(_0x218b6f(0x152))/0x1+parseInt(_0x218b6f(0x132))/0x2*(parseInt(_0x218b6f(0x150))/0x3)+-parseInt(_0x218b6f(0x140))/0x4+parseInt(_0x218b6f(0x159))/0x5*(parseInt(_0x218b6f(0x142))/0x6)+-parseInt(_0x218b6f(0x135))/0x7*(-parseInt(_0x218b6f(0x153))/0x8)+-parseInt(_0x218b6f(0x13d))/0x9+parseInt(_0x218b6f(0x146))/0xa*(parseInt(_0x218b6f(0x136))/0xb);if(_0x2fa0fb===_0x378146)break;else _0x3712b8['push'](_0x3712b8['shift']());}catch(_0xb1bf28){_0x3712b8['push'](_0x3712b8['shift']());}}}(_0x5b0e,0x86b75),function(_0x2d2589,_0xe16fd3){const _0x4fd235=_0x1a1a;typeof exports==_0x4fd235(0x145)&&typeof module<'u'?_0xe16fd3(exports):typeof define=='function'&&define[_0x4fd235(0x12e)]?define([_0x4fd235(0x143)],_0xe16fd3):(_0x2d2589=typeof globalThis<'u'?globalThis:_0x2d2589||self,_0xe16fd3(_0x2d2589[_0x4fd235(0x12d)]={}));}(this,function(_0x430e58){'use strict';const _0x43f2db=_0x1a1a;var _0x15a8d6=(_0x4d6182=>(_0x4d6182[_0x43f2db(0x14e)]=_0x43f2db(0x14e),_0x4d6182['Landscape']='Landscape',_0x4d6182))(_0x15a8d6||{}),_0x4cdc41=(_0x322105=>(_0x322105[_0x43f2db(0x130)]='Origin',_0x322105[_0x43f2db(0x155)]='FitWidth',_0x322105[_0x43f2db(0x13f)]=_0x43f2db(0x13f),_0x322105[_0x43f2db(0x157)]=_0x43f2db(0x157),_0x322105['Custom']='Custom',_0x322105))(_0x4cdc41||{}),_0x30e04b=(_0x548401=>(_0x548401[_0x43f2db(0x13b)]=_0x43f2db(0x13b),_0x548401['End']=_0x43f2db(0x15a),_0x548401[_0x43f2db(0x12f)]=_0x43f2db(0x12f),_0x548401))(_0x30e04b||{}),_0x5da72d=(_0x397639=>(_0x397639['Normal']=_0x43f2db(0x144),_0x397639[_0x43f2db(0x138)]='Narrow',_0x397639[_0x43f2db(0x13e)]=_0x43f2db(0x13e),_0x397639[_0x43f2db(0x131)]=_0x43f2db(0x131),_0x397639))(_0x5da72d||{});const _0x4a1813={[_0x5da72d[_0x43f2db(0x144)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x5da72d[_0x43f2db(0x138)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x5da72d[_0x43f2db(0x13e)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x5da72d[_0x43f2db(0x131)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x4a1e99=_0x43f2db(0x137),_0x200161=_0x43f2db(0x148);function _0x50dea7(_0x39b6f5,_0x32d2c7,_0x22c74b){const _0x381538=_0x43f2db,_0x2739d3=_0x22c74b===_0x15a8d6[_0x381538(0x14e)]?_0x39b6f5:_0x32d2c7,_0x39a005=_0x22c74b===_0x15a8d6['Portrait']?_0x32d2c7:_0x39b6f5,_0x5b67b3=_0x381538(0x13c)+_0x200161+_0x381538(0x134)+_0x2739d3+_0x381538(0x147)+_0x39a005+_0x381538(0x14c)+_0x4a1e99+_0x381538(0x158)+_0x4a1e99+'\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.'+_0x200161+'\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'+_0x39a005+_0x381538(0x141)+_0x2739d3+'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}',_0x601d6d=document[_0x381538(0x133)](_0x381538(0x156));return _0x601d6d[_0x381538(0x151)]=_0x5b67b3,_0x601d6d[_0x381538(0x14f)]='offline-printing-css',_0x601d6d;}_0x430e58[_0x43f2db(0x14b)]=_0x200161,_0x430e58['PRINT_CONTAINER_CLASS']=_0x4a1e99,_0x430e58[_0x43f2db(0x149)]=_0x4a1813,_0x430e58[_0x43f2db(0x14a)]=_0x30e04b,_0x430e58[_0x43f2db(0x139)]=_0x15a8d6,_0x430e58['PrintPaperMargin']=_0x5da72d,_0x430e58['PrintScale']=_0x4cdc41,_0x430e58[_0x43f2db(0x14d)]=_0x50dea7,Object[_0x43f2db(0x13a)](_0x430e58,Symbol[_0x43f2db(0x154)],{'value':'Module'});}));
1
+ function _0x4480(_0x260ccc,_0x708bd5){const _0x183bb2=_0x183b();return _0x4480=function(_0x448048,_0x331eec){_0x448048=_0x448048-0x185;let _0x4e3e43=_0x183bb2[_0x448048];return _0x4e3e43;},_0x4480(_0x260ccc,_0x708bd5);}function _0x183b(){const _0x25e435=['Portrait','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','Wide','28EVTlsc','713048aHdPfM','FitHeight','offline-printing-css','defineProperty','PrintAlign','None','Landscape','Middle','amd','PrintDirection','toStringTag','innerHTML','object','5797060RvayEh','End','Origin','PRINT_CONTAINER_CLASS','Narrow','35KgMLHW','PrintPaperMargin','3240540WWXtLX','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitPage','189308gfEccy','1204026galgGJ','\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','createElement','2XpWFev','1439316EUbTCl','\x0a\x20\x20\x20\x20.','PaperMarginMap','Custom','FitWidth','PrintScale',',\x20.','style','UniverProPrint','PRINT_CANVAS_CLASS','Normal','exports','136397FnHBAz','Start'];_0x183b=function(){return _0x25e435;};return _0x183b();}(function(_0x1a1c10,_0x51dd63){const _0x17dd04=_0x4480,_0x96affb=_0x1a1c10();while(!![]){try{const _0x58d3e6=parseInt(_0x17dd04(0x185))/0x1+parseInt(_0x17dd04(0x1a7))/0x2*(parseInt(_0x17dd04(0x1a4))/0x3)+parseInt(_0x17dd04(0x1a3))/0x4*(-parseInt(_0x17dd04(0x19e))/0x5)+parseInt(_0x17dd04(0x1a0))/0x6+parseInt(_0x17dd04(0x18b))/0x7*(parseInt(_0x17dd04(0x18c))/0x8)+-parseInt(_0x17dd04(0x1a8))/0x9+-parseInt(_0x17dd04(0x199))/0xa;if(_0x58d3e6===_0x51dd63)break;else _0x96affb['push'](_0x96affb['shift']());}catch(_0xd83296){_0x96affb['push'](_0x96affb['shift']());}}}(_0x183b,0x58baa),function(_0x6ccc90,_0x1c768c){const _0x51a38d=_0x4480;typeof exports==_0x51a38d(0x198)&&typeof module<'u'?_0x1c768c(exports):typeof define=='function'&&define[_0x51a38d(0x194)]?define([_0x51a38d(0x1b3)],_0x1c768c):(_0x6ccc90=typeof globalThis<'u'?globalThis:_0x6ccc90||self,_0x1c768c(_0x6ccc90[_0x51a38d(0x1b0)]={}));}(this,function(_0x28514f){'use strict';const _0x4a8500=_0x4480;var _0x5f1d62=(_0x46c52d=>(_0x46c52d[_0x4a8500(0x187)]='Portrait',_0x46c52d[_0x4a8500(0x192)]=_0x4a8500(0x192),_0x46c52d))(_0x5f1d62||{}),_0x3274c9=(_0xc72267=>(_0xc72267[_0x4a8500(0x19b)]=_0x4a8500(0x19b),_0xc72267[_0x4a8500(0x1ac)]=_0x4a8500(0x1ac),_0xc72267[_0x4a8500(0x18d)]=_0x4a8500(0x18d),_0xc72267['FitPage']=_0x4a8500(0x1a2),_0xc72267[_0x4a8500(0x1ab)]=_0x4a8500(0x1ab),_0xc72267))(_0x3274c9||{}),_0x400fe2=(_0x3acfdc=>(_0x3acfdc[_0x4a8500(0x186)]=_0x4a8500(0x186),_0x3acfdc['End']=_0x4a8500(0x19a),_0x3acfdc[_0x4a8500(0x193)]=_0x4a8500(0x193),_0x3acfdc))(_0x400fe2||{}),_0x3fc30d=(_0x897332=>(_0x897332[_0x4a8500(0x1b2)]=_0x4a8500(0x1b2),_0x897332['Narrow']=_0x4a8500(0x19d),_0x897332[_0x4a8500(0x18a)]=_0x4a8500(0x18a),_0x897332[_0x4a8500(0x191)]='None',_0x897332))(_0x3fc30d||{});const _0x24c66a={[_0x3fc30d[_0x4a8500(0x1b2)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x3fc30d[_0x4a8500(0x19d)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x3fc30d[_0x4a8500(0x18a)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x3fc30d[_0x4a8500(0x191)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x4ecf9b='printing-canvas-container',_0x1297bd='printing-canvas';function _0x6332c(_0x56f43f,_0x2ac229,_0x52e475){const _0x5e8c53=_0x4a8500,_0x1cebcd=_0x52e475===_0x5f1d62[_0x5e8c53(0x187)]?_0x56f43f:_0x2ac229,_0x52d043=_0x52e475===_0x5f1d62[_0x5e8c53(0x187)]?_0x2ac229:_0x56f43f,_0x2d1417=_0x5e8c53(0x1a9)+_0x1297bd+_0x5e8c53(0x1a5)+_0x1cebcd+'px\x20'+_0x52d043+_0x5e8c53(0x188)+_0x4ecf9b+_0x5e8c53(0x1ae)+_0x4ecf9b+'\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.'+_0x1297bd+_0x5e8c53(0x189)+_0x52d043+_0x5e8c53(0x1a1)+_0x1cebcd+'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}',_0x186e2d=document[_0x5e8c53(0x1a6)](_0x5e8c53(0x1af));return _0x186e2d[_0x5e8c53(0x197)]=_0x2d1417,_0x186e2d['className']=_0x5e8c53(0x18e),_0x186e2d;}_0x28514f[_0x4a8500(0x1b1)]=_0x1297bd,_0x28514f[_0x4a8500(0x19c)]=_0x4ecf9b,_0x28514f[_0x4a8500(0x1aa)]=_0x24c66a,_0x28514f[_0x4a8500(0x190)]=_0x400fe2,_0x28514f[_0x4a8500(0x195)]=_0x5f1d62,_0x28514f[_0x4a8500(0x19f)]=_0x3fc30d,_0x28514f[_0x4a8500(0x1ad)]=_0x3274c9,_0x28514f['createPrintStyle']=_0x6332c,Object[_0x4a8500(0x18f)](_0x28514f,Symbol[_0x4a8500(0x196)],{'value':'Module'});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.9.2",
3
+ "version": "0.9.3-nightly.202507250819",
4
4
  "private": false,
5
5
  "description": "Print module for UniverJS",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -43,9 +43,9 @@
43
43
  ],
44
44
  "devDependencies": {
45
45
  "typescript": "^5.8.3",
46
- "vite": "^6.3.5",
46
+ "vite": "^7.0.5",
47
47
  "vitest": "^3.2.4",
48
- "@univerjs-infra/shared": "0.9.2"
48
+ "@univerjs-infra/shared": "0.9.3"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",