@univerjs-pro/print 0.9.2 → 0.9.3

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 _0x1f7e59=_0x5b04;(function(_0x2ae41a,_0xfa85b1){const _0x11e1cd=_0x5b04,_0x30935b=_0x2ae41a();while(!![]){try{const _0x2f014b=parseInt(_0x11e1cd(0x121))/0x1+parseInt(_0x11e1cd(0x12b))/0x2*(-parseInt(_0x11e1cd(0x12e))/0x3)+parseInt(_0x11e1cd(0x119))/0x4*(parseInt(_0x11e1cd(0x10d))/0x5)+-parseInt(_0x11e1cd(0x131))/0x6+parseInt(_0x11e1cd(0x10e))/0x7*(-parseInt(_0x11e1cd(0x110))/0x8)+parseInt(_0x11e1cd(0x12c))/0x9*(parseInt(_0x11e1cd(0x11b))/0xa)+parseInt(_0x11e1cd(0x124))/0xb;if(_0x2f014b===_0xfa85b1)break;else _0x30935b['push'](_0x30935b['shift']());}catch(_0x39f4c4){_0x30935b['push'](_0x30935b['shift']());}}}(_0xe21a,0x7eb4e));function _0xe21a(){const _0x1f0cc2=['px\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','innerHTML','None','PrintPaperMargin','\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','defineProperty','className','FitHeight','190KjTwgN','7xpyLXO','Custom','5936264XfqrzX','PrintAlign','Landscape','Start','printing-canvas','FitWidth','Origin','toStringTag','PrintScale','11044Ayxngy','Portrait','75220CGLpBE','\x0a\x20\x20\x20\x20.','Normal','createElement','Narrow','createPrintStyle','607543gjLcmm','PRINT_CANVAS_CLASS','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','6688847Tqpexi','\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.','PrintDirection','offline-printing-css',',\x20.','PRINT_CONTAINER_CLASS','FitPage','1509820GmMLoB','1071sgGdzA','style','3YlzkRY','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}','PaperMarginMap','1198338kGxfEE','End','Middle','Wide'];_0xe21a=function(){return _0x1f0cc2;};return _0xe21a();}Object[_0x1f7e59(0x13b)](exports,Symbol[_0x1f7e59(0x117)],{'value':'Module'});function _0x5b04(_0x1a9777,_0x28f112){const _0xe21a9d=_0xe21a();return _0x5b04=function(_0x5b0434,_0x22d5f1){_0x5b0434=_0x5b0434-0x10b;let _0x5de015=_0xe21a9d[_0x5b0434];return _0x5de015;},_0x5b04(_0x1a9777,_0x28f112);}var e=(_0x2689a6=>(_0x2689a6[_0x1f7e59(0x11a)]='Portrait',_0x2689a6['Landscape']=_0x1f7e59(0x112),_0x2689a6))(e||{}),l=(_0x4d7ddc=>(_0x4d7ddc[_0x1f7e59(0x116)]=_0x1f7e59(0x116),_0x4d7ddc[_0x1f7e59(0x115)]=_0x1f7e59(0x115),_0x4d7ddc[_0x1f7e59(0x10c)]=_0x1f7e59(0x10c),_0x4d7ddc[_0x1f7e59(0x12a)]=_0x1f7e59(0x12a),_0x4d7ddc[_0x1f7e59(0x10f)]=_0x1f7e59(0x10f),_0x4d7ddc))(l||{}),c=(_0x242a27=>(_0x242a27[_0x1f7e59(0x113)]='Start',_0x242a27['End']=_0x1f7e59(0x132),_0x242a27[_0x1f7e59(0x133)]=_0x1f7e59(0x133),_0x242a27))(c||{}),i=(_0x510a35=>(_0x510a35[_0x1f7e59(0x11d)]=_0x1f7e59(0x11d),_0x510a35[_0x1f7e59(0x11f)]=_0x1f7e59(0x11f),_0x510a35['Wide']=_0x1f7e59(0x134),_0x510a35[_0x1f7e59(0x138)]='None',_0x510a35))(i||{});const h={[i[_0x1f7e59(0x11d)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x1f7e59(0x11f)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x1f7e59(0x138)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r='printing-canvas-container',n=_0x1f7e59(0x114);function m(_0x1edc66,_0x2d4020,_0x49e63c){const _0x29798b=_0x1f7e59,_0x316c8a=_0x49e63c===e[_0x29798b(0x11a)]?_0x1edc66:_0x2d4020,_0x5c88c7=_0x49e63c===e['Portrait']?_0x2d4020:_0x1edc66,_0x1102ad=_0x29798b(0x11c)+n+_0x29798b(0x13a)+_0x316c8a+_0x29798b(0x135)+_0x5c88c7+'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.'+r+_0x29798b(0x128)+r+_0x29798b(0x125)+n+_0x29798b(0x136)+_0x5c88c7+_0x29798b(0x123)+_0x316c8a+_0x29798b(0x12f),_0x53bd83=document[_0x29798b(0x11e)](_0x29798b(0x12d));return _0x53bd83[_0x29798b(0x137)]=_0x1102ad,_0x53bd83[_0x29798b(0x10b)]=_0x29798b(0x127),_0x53bd83;}exports[_0x1f7e59(0x122)]=n,exports[_0x1f7e59(0x129)]=r,exports[_0x1f7e59(0x130)]=h,exports[_0x1f7e59(0x111)]=c,exports[_0x1f7e59(0x126)]=e,exports[_0x1f7e59(0x139)]=i,exports[_0x1f7e59(0x118)]=l,exports[_0x1f7e59(0x120)]=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 _0x1ed918=_0x2ccd;(function(_0x184512,_0x1a76a3){const _0x264403=_0x2ccd,_0x32b26b=_0x184512();while(!![]){try{const _0x225724=-parseInt(_0x264403(0x177))/0x1+parseInt(_0x264403(0x16b))/0x2*(parseInt(_0x264403(0x184))/0x3)+-parseInt(_0x264403(0x16c))/0x4*(parseInt(_0x264403(0x16f))/0x5)+-parseInt(_0x264403(0x187))/0x6+parseInt(_0x264403(0x174))/0x7+parseInt(_0x264403(0x172))/0x8+parseInt(_0x264403(0x16a))/0x9;if(_0x225724===_0x1a76a3)break;else _0x32b26b['push'](_0x32b26b['shift']());}catch(_0x166a52){_0x32b26b['push'](_0x32b26b['shift']());}}}(_0x3bf4,0x927e9));var e=(_0xe596f3=>(_0xe596f3[_0x1ed918(0x16e)]=_0x1ed918(0x16e),_0xe596f3[_0x1ed918(0x179)]=_0x1ed918(0x179),_0xe596f3))(e||{}),l=(_0x348623=>(_0x348623['Origin']='Origin',_0x348623[_0x1ed918(0x175)]=_0x1ed918(0x175),_0x348623['FitHeight']='FitHeight',_0x348623['FitPage']=_0x1ed918(0x17c),_0x348623[_0x1ed918(0x180)]=_0x1ed918(0x180),_0x348623))(l||{}),m=(_0x3313c3=>(_0x3313c3[_0x1ed918(0x181)]=_0x1ed918(0x181),_0x3313c3['End']='End',_0x3313c3[_0x1ed918(0x16d)]='Middle',_0x3313c3))(m||{}),o=(_0x4f6961=>(_0x4f6961[_0x1ed918(0x168)]=_0x1ed918(0x168),_0x4f6961[_0x1ed918(0x169)]=_0x1ed918(0x169),_0x4f6961[_0x1ed918(0x17a)]=_0x1ed918(0x17a),_0x4f6961['None']=_0x1ed918(0x186),_0x4f6961))(o||{});function _0x3bf4(){const _0x2d89c9=['FitWidth','\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','641692ssQzcx','printing-canvas-container','Landscape','Wide','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}','FitPage',',\x20.','innerHTML','offline-printing-css','Custom','Start','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\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.','1464jfLpzf','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.','None','5405754pQfbCF','Normal','Narrow','5468688pHBpLC','2138XJtTFp','858652mDeQsa','Middle','Portrait','5TRjjlJ','\x0a\x20\x20\x20\x20.','createElement','918656knSBcA','\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','7792533JqciyQ'];_0x3bf4=function(){return _0x2d89c9;};return _0x3bf4();}function _0x2ccd(_0x16772f,_0x23c43e){const _0x3bf422=_0x3bf4();return _0x2ccd=function(_0x2ccd93,_0x3ec4c0){_0x2ccd93=_0x2ccd93-0x168;let _0x1612a4=_0x3bf422[_0x2ccd93];return _0x1612a4;},_0x2ccd(_0x16772f,_0x23c43e);}const c={[o[_0x1ed918(0x168)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x1ed918(0x169)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x1ed918(0x186)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x1ed918(0x178),d='printing-canvas';function g(_0x1da1b8,_0x5bbe1e,_0x35b472){const _0x3465a2=_0x1ed918,_0x3089dd=_0x35b472===e['Portrait']?_0x1da1b8:_0x5bbe1e,_0x2e917d=_0x35b472===e[_0x3465a2(0x16e)]?_0x5bbe1e:_0x1da1b8,_0x587948=_0x3465a2(0x170)+d+_0x3465a2(0x176)+_0x3089dd+'px\x20'+_0x2e917d+_0x3465a2(0x185)+p+_0x3465a2(0x17d)+p+_0x3465a2(0x183)+d+_0x3465a2(0x173)+_0x2e917d+_0x3465a2(0x182)+_0x3089dd+_0x3465a2(0x17b),_0x76307a=document[_0x3465a2(0x171)]('style');return _0x76307a[_0x3465a2(0x17e)]=_0x587948,_0x76307a['className']=_0x3465a2(0x17f),_0x76307a;}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 _0x1ed918=_0x2ccd;(function(_0x184512,_0x1a76a3){const _0x264403=_0x2ccd,_0x32b26b=_0x184512();while(!![]){try{const _0x225724=-parseInt(_0x264403(0x177))/0x1+parseInt(_0x264403(0x16b))/0x2*(parseInt(_0x264403(0x184))/0x3)+-parseInt(_0x264403(0x16c))/0x4*(parseInt(_0x264403(0x16f))/0x5)+-parseInt(_0x264403(0x187))/0x6+parseInt(_0x264403(0x174))/0x7+parseInt(_0x264403(0x172))/0x8+parseInt(_0x264403(0x16a))/0x9;if(_0x225724===_0x1a76a3)break;else _0x32b26b['push'](_0x32b26b['shift']());}catch(_0x166a52){_0x32b26b['push'](_0x32b26b['shift']());}}}(_0x3bf4,0x927e9));var e=(_0xe596f3=>(_0xe596f3[_0x1ed918(0x16e)]=_0x1ed918(0x16e),_0xe596f3[_0x1ed918(0x179)]=_0x1ed918(0x179),_0xe596f3))(e||{}),l=(_0x348623=>(_0x348623['Origin']='Origin',_0x348623[_0x1ed918(0x175)]=_0x1ed918(0x175),_0x348623['FitHeight']='FitHeight',_0x348623['FitPage']=_0x1ed918(0x17c),_0x348623[_0x1ed918(0x180)]=_0x1ed918(0x180),_0x348623))(l||{}),m=(_0x3313c3=>(_0x3313c3[_0x1ed918(0x181)]=_0x1ed918(0x181),_0x3313c3['End']='End',_0x3313c3[_0x1ed918(0x16d)]='Middle',_0x3313c3))(m||{}),o=(_0x4f6961=>(_0x4f6961[_0x1ed918(0x168)]=_0x1ed918(0x168),_0x4f6961[_0x1ed918(0x169)]=_0x1ed918(0x169),_0x4f6961[_0x1ed918(0x17a)]=_0x1ed918(0x17a),_0x4f6961['None']=_0x1ed918(0x186),_0x4f6961))(o||{});function _0x3bf4(){const _0x2d89c9=['FitWidth','\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','641692ssQzcx','printing-canvas-container','Landscape','Wide','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}','FitPage',',\x20.','innerHTML','offline-printing-css','Custom','Start','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\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.','1464jfLpzf','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.','None','5405754pQfbCF','Normal','Narrow','5468688pHBpLC','2138XJtTFp','858652mDeQsa','Middle','Portrait','5TRjjlJ','\x0a\x20\x20\x20\x20.','createElement','918656knSBcA','\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','7792533JqciyQ'];_0x3bf4=function(){return _0x2d89c9;};return _0x3bf4();}function _0x2ccd(_0x16772f,_0x23c43e){const _0x3bf422=_0x3bf4();return _0x2ccd=function(_0x2ccd93,_0x3ec4c0){_0x2ccd93=_0x2ccd93-0x168;let _0x1612a4=_0x3bf422[_0x2ccd93];return _0x1612a4;},_0x2ccd(_0x16772f,_0x23c43e);}const c={[o[_0x1ed918(0x168)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x1ed918(0x169)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x1ed918(0x186)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x1ed918(0x178),d='printing-canvas';function g(_0x1da1b8,_0x5bbe1e,_0x35b472){const _0x3465a2=_0x1ed918,_0x3089dd=_0x35b472===e['Portrait']?_0x1da1b8:_0x5bbe1e,_0x2e917d=_0x35b472===e[_0x3465a2(0x16e)]?_0x5bbe1e:_0x1da1b8,_0x587948=_0x3465a2(0x170)+d+_0x3465a2(0x176)+_0x3089dd+'px\x20'+_0x2e917d+_0x3465a2(0x185)+p+_0x3465a2(0x17d)+p+_0x3465a2(0x183)+d+_0x3465a2(0x173)+_0x2e917d+_0x3465a2(0x182)+_0x3089dd+_0x3465a2(0x17b),_0x76307a=document[_0x3465a2(0x171)]('style');return _0x76307a[_0x3465a2(0x17e)]=_0x587948,_0x76307a['className']=_0x3465a2(0x17f),_0x76307a;}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 _0x5a88(_0x12137c,_0x26e381){const _0x222514=_0x2225();return _0x5a88=function(_0x5a88b9,_0x49ee03){_0x5a88b9=_0x5a88b9-0x1de;let _0x40b531=_0x222514[_0x5a88b9];return _0x40b531;},_0x5a88(_0x12137c,_0x26e381);}function _0x2225(){const _0x16ee75=['px\x20','amd','47SQZfaq','8hsOLaz','10RYFeyD','Start','FitPage','PRINT_CANVAS_CLASS','980651dnFJqs','PrintDirection','Origin','36qaDhud','None','PrintPaperMargin','45546cSGySW','8189580qUBNEf','\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','FitWidth','Wide','\x0a\x20\x20\x20\x20.','UniverProPrint','className','printing-canvas','defineProperty','FitHeight','Module','PaperMarginMap','Custom','577090qDxaCM','object','printing-canvas-container','Narrow','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}','Landscape','innerHTML','toStringTag','7647255wtPjbQ','function','End','557178ZGDZYW','PRINT_CONTAINER_CLASS','style','Normal','offline-printing-css','Portrait','19223534yswwyc','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','createPrintStyle','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.'];_0x2225=function(){return _0x16ee75;};return _0x2225();}(function(_0x448b1d,_0x1f9b79){const _0x33bd68=_0x5a88,_0x44da01=_0x448b1d();while(!![]){try{const _0x5852aa=parseInt(_0x33bd68(0x1df))/0x1*(-parseInt(_0x33bd68(0x1eb))/0x2)+parseInt(_0x33bd68(0x204))/0x3+-parseInt(_0x33bd68(0x1e8))/0x4*(-parseInt(_0x33bd68(0x1f9))/0x5)+parseInt(_0x33bd68(0x1ec))/0x6+-parseInt(_0x33bd68(0x1e5))/0x7*(-parseInt(_0x33bd68(0x1e0))/0x8)+parseInt(_0x33bd68(0x201))/0x9+parseInt(_0x33bd68(0x1e1))/0xa*(-parseInt(_0x33bd68(0x20a))/0xb);if(_0x5852aa===_0x1f9b79)break;else _0x44da01['push'](_0x44da01['shift']());}catch(_0x2ae5a3){_0x44da01['push'](_0x44da01['shift']());}}}(_0x2225,0xb9dc1),function(_0x58b494,_0x3e5e41){const _0x2e95f9=_0x5a88;typeof exports==_0x2e95f9(0x1fa)&&typeof module<'u'?_0x3e5e41(exports):typeof define==_0x2e95f9(0x202)&&define[_0x2e95f9(0x1de)]?define(['exports'],_0x3e5e41):(_0x58b494=typeof globalThis<'u'?globalThis:_0x58b494||self,_0x3e5e41(_0x58b494[_0x2e95f9(0x1f1)]={}));}(this,function(_0x1d4396){'use strict';const _0x165bd2=_0x5a88;var _0x2dbdcc=(_0x23230f=>(_0x23230f[_0x165bd2(0x209)]=_0x165bd2(0x209),_0x23230f[_0x165bd2(0x1fe)]='Landscape',_0x23230f))(_0x2dbdcc||{}),_0x371fba=(_0x41b150=>(_0x41b150[_0x165bd2(0x1e7)]=_0x165bd2(0x1e7),_0x41b150[_0x165bd2(0x1ee)]=_0x165bd2(0x1ee),_0x41b150['FitHeight']=_0x165bd2(0x1f5),_0x41b150[_0x165bd2(0x1e3)]=_0x165bd2(0x1e3),_0x41b150[_0x165bd2(0x1f8)]=_0x165bd2(0x1f8),_0x41b150))(_0x371fba||{}),_0x4cfadd=(_0x3165bb=>(_0x3165bb[_0x165bd2(0x1e2)]=_0x165bd2(0x1e2),_0x3165bb[_0x165bd2(0x203)]='End',_0x3165bb['Middle']='Middle',_0x3165bb))(_0x4cfadd||{}),_0x113516=(_0x1c327a=>(_0x1c327a[_0x165bd2(0x207)]=_0x165bd2(0x207),_0x1c327a[_0x165bd2(0x1fc)]='Narrow',_0x1c327a[_0x165bd2(0x1ef)]='Wide',_0x1c327a[_0x165bd2(0x1e9)]='None',_0x1c327a))(_0x113516||{});const _0xe842dc={[_0x113516[_0x165bd2(0x207)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x113516['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x113516[_0x165bd2(0x1ef)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x113516['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0xdd02c8=_0x165bd2(0x1fb),_0x56d946=_0x165bd2(0x1f3);function _0x45be87(_0x5e5009,_0x38e239,_0x35687e){const _0x177179=_0x165bd2,_0x4a08bb=_0x35687e===_0x2dbdcc['Portrait']?_0x5e5009:_0x38e239,_0x46d57c=_0x35687e===_0x2dbdcc[_0x177179(0x209)]?_0x38e239:_0x5e5009,_0x5c9399=_0x177179(0x1f0)+_0x56d946+_0x177179(0x1ed)+_0x4a08bb+_0x177179(0x20e)+_0x46d57c+_0x177179(0x20d)+_0xdd02c8+',\x20.'+_0xdd02c8+'\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.'+_0x56d946+'\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'+_0x46d57c+_0x177179(0x20b)+_0x4a08bb+_0x177179(0x1fd),_0x581506=document['createElement'](_0x177179(0x206));return _0x581506[_0x177179(0x1ff)]=_0x5c9399,_0x581506[_0x177179(0x1f2)]=_0x177179(0x208),_0x581506;}_0x1d4396[_0x165bd2(0x1e4)]=_0x56d946,_0x1d4396[_0x165bd2(0x205)]=_0xdd02c8,_0x1d4396[_0x165bd2(0x1f7)]=_0xe842dc,_0x1d4396['PrintAlign']=_0x4cfadd,_0x1d4396[_0x165bd2(0x1e6)]=_0x2dbdcc,_0x1d4396[_0x165bd2(0x1ea)]=_0x113516,_0x1d4396['PrintScale']=_0x371fba,_0x1d4396[_0x165bd2(0x20c)]=_0x45be87,Object[_0x165bd2(0x1f4)](_0x1d4396,Symbol[_0x165bd2(0x200)],{'value':_0x165bd2(0x1f6)});}));
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",
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",