@univerjs-pro/print 0.9.1 → 0.9.2

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 _0x3b7f(){const _0x1418c2=['px\x20','PrintPaperMargin','End','112851XuLXzt','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.','708304YnitIW','350216Knhqnk','Narrow','\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','\x0a\x20\x20\x20\x20.','1290WWEfaL','2185365ZtMcCV','printing-canvas','None','Middle','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.','printing-canvas-container','Wide','54XsKAgZ','createElement','innerHTML','151600eZTVIG','PrintDirection','Origin','Normal','Start','FitPage','style','375073uJmQFL','6NKHXuZ','PRINT_CANVAS_CLASS','Custom','295180twuaoK','toStringTag',',\x20.','FitHeight','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','PrintAlign','FitWidth','className','defineProperty','Portrait'];_0x3b7f=function(){return _0x1418c2;};return _0x3b7f();}const _0x2d53b2=_0xbe2b;(function(_0x2ebac7,_0x5499a5){const _0x1bcadc=_0xbe2b,_0x34a1c8=_0x2ebac7();while(!![]){try{const _0x2eedbd=-parseInt(_0x1bcadc(0x12c))/0x1+-parseInt(_0x1bcadc(0x130))/0x2+parseInt(_0x1bcadc(0x12d))/0x3*(-parseInt(_0x1bcadc(0x116))/0x4)+-parseInt(_0x1bcadc(0x125))/0x5*(parseInt(_0x1bcadc(0x122))/0x6)+-parseInt(_0x1bcadc(0x11b))/0x7+-parseInt(_0x1bcadc(0x115))/0x8+-parseInt(_0x1bcadc(0x112))/0x9*(-parseInt(_0x1bcadc(0x11a))/0xa);if(_0x2eedbd===_0x5499a5)break;else _0x34a1c8['push'](_0x34a1c8['shift']());}catch(_0x4874dd){_0x34a1c8['push'](_0x34a1c8['shift']());}}}(_0x3b7f,0x3c183));Object[_0x2d53b2(0x10d)](exports,Symbol[_0x2d53b2(0x131)],{'value':'Module'});function _0xbe2b(_0x2ecb4d,_0x4fb7e2){const _0x3b7f94=_0x3b7f();return _0xbe2b=function(_0xbe2b1b,_0x3eae8a){_0xbe2b1b=_0xbe2b1b-0x107;let _0x5ac2b3=_0x3b7f94[_0xbe2b1b];return _0x5ac2b3;},_0xbe2b(_0x2ecb4d,_0x4fb7e2);}var e=(_0x33bd7b=>(_0x33bd7b[_0x2d53b2(0x10e)]=_0x2d53b2(0x10e),_0x33bd7b[_0x2d53b2(0x109)]=_0x2d53b2(0x109),_0x33bd7b))(e||{}),l=(_0x1c2ed6=>(_0x1c2ed6[_0x2d53b2(0x127)]=_0x2d53b2(0x127),_0x1c2ed6[_0x2d53b2(0x10b)]='FitWidth',_0x1c2ed6[_0x2d53b2(0x107)]='FitHeight',_0x1c2ed6[_0x2d53b2(0x12a)]='FitPage',_0x1c2ed6[_0x2d53b2(0x12f)]='Custom',_0x1c2ed6))(l||{}),c=(_0x51105a=>(_0x51105a[_0x2d53b2(0x129)]=_0x2d53b2(0x129),_0x51105a[_0x2d53b2(0x111)]='End',_0x51105a[_0x2d53b2(0x11e)]='Middle',_0x51105a))(c||{}),i=(_0x1dbf2b=>(_0x1dbf2b['Normal']=_0x2d53b2(0x128),_0x1dbf2b['Narrow']=_0x2d53b2(0x117),_0x1dbf2b['Wide']='Wide',_0x1dbf2b[_0x2d53b2(0x11d)]=_0x2d53b2(0x11d),_0x1dbf2b))(i||{});const h={[i[_0x2d53b2(0x128)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x2d53b2(0x117)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x2d53b2(0x121)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x2d53b2(0x11d)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x2d53b2(0x120),n=_0x2d53b2(0x11c);function m(_0x4641d2,_0x59a973,_0x3a9013){const _0x38cd7e=_0x2d53b2,_0xf1fb08=_0x3a9013===e[_0x38cd7e(0x10e)]?_0x4641d2:_0x59a973,_0x48bcdd=_0x3a9013===e['Portrait']?_0x59a973:_0x4641d2,_0x52267d=_0x38cd7e(0x119)+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'+_0xf1fb08+_0x38cd7e(0x10f)+_0x48bcdd+_0x38cd7e(0x11f)+r+_0x38cd7e(0x132)+r+_0x38cd7e(0x114)+n+_0x38cd7e(0x118)+_0x48bcdd+_0x38cd7e(0x113)+_0xf1fb08+_0x38cd7e(0x108),_0xf0b79=document[_0x38cd7e(0x123)](_0x38cd7e(0x12b));return _0xf0b79[_0x38cd7e(0x124)]=_0x52267d,_0xf0b79[_0x38cd7e(0x10c)]='offline-printing-css',_0xf0b79;}exports[_0x2d53b2(0x12e)]=n,exports['PRINT_CONTAINER_CLASS']=r,exports['PaperMarginMap']=h,exports[_0x2d53b2(0x10a)]=c,exports[_0x2d53b2(0x126)]=e,exports[_0x2d53b2(0x110)]=i,exports['PrintScale']=l,exports['createPrintStyle']=m;
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;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x371a(_0x234929,_0x43e24f){const _0x2b04ee=_0x2b04();return _0x371a=function(_0x371a4f,_0x3988e2){_0x371a4f=_0x371a4f-0x1a9;let _0x4dc8d2=_0x2b04ee[_0x371a4f];return _0x4dc8d2;},_0x371a(_0x234929,_0x43e24f);}const _0x228fe6=_0x371a;(function(_0x3baa61,_0x2d9f1c){const _0x37f143=_0x371a,_0x277452=_0x3baa61();while(!![]){try{const _0x3e9805=parseInt(_0x37f143(0x1b4))/0x1+-parseInt(_0x37f143(0x1c7))/0x2*(parseInt(_0x37f143(0x1c9))/0x3)+-parseInt(_0x37f143(0x1b7))/0x4+-parseInt(_0x37f143(0x1b5))/0x5+parseInt(_0x37f143(0x1b9))/0x6+-parseInt(_0x37f143(0x1b6))/0x7*(parseInt(_0x37f143(0x1ad))/0x8)+parseInt(_0x37f143(0x1c1))/0x9;if(_0x3e9805===_0x2d9f1c)break;else _0x277452['push'](_0x277452['shift']());}catch(_0x39bd74){_0x277452['push'](_0x277452['shift']());}}}(_0x2b04,0x24ce3));var e=(_0x18a574=>(_0x18a574[_0x228fe6(0x1ae)]=_0x228fe6(0x1ae),_0x18a574[_0x228fe6(0x1ac)]=_0x228fe6(0x1ac),_0x18a574))(e||{}),l=(_0x1d99b6=>(_0x1d99b6[_0x228fe6(0x1aa)]=_0x228fe6(0x1aa),_0x1d99b6[_0x228fe6(0x1b1)]=_0x228fe6(0x1b1),_0x1d99b6['FitHeight']='FitHeight',_0x1d99b6[_0x228fe6(0x1c6)]=_0x228fe6(0x1c6),_0x1d99b6[_0x228fe6(0x1a9)]=_0x228fe6(0x1a9),_0x1d99b6))(l||{}),m=(_0x40d819=>(_0x40d819[_0x228fe6(0x1bf)]=_0x228fe6(0x1bf),_0x40d819['End']=_0x228fe6(0x1c3),_0x40d819[_0x228fe6(0x1bc)]=_0x228fe6(0x1bc),_0x40d819))(m||{}),o=(_0x4f41f1=>(_0x4f41f1[_0x228fe6(0x1af)]=_0x228fe6(0x1af),_0x4f41f1[_0x228fe6(0x1ab)]=_0x228fe6(0x1ab),_0x4f41f1[_0x228fe6(0x1c4)]=_0x228fe6(0x1c4),_0x4f41f1[_0x228fe6(0x1bb)]=_0x228fe6(0x1bb),_0x4f41f1))(o||{});const c={[o[_0x228fe6(0x1af)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x228fe6(0x1c4)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x228fe6(0x1bb)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d='printing-canvas';function g(_0x1ada0f,_0xa9f9be,_0x236973){const _0x1a23d0=_0x228fe6,_0x5892dc=_0x236973===e[_0x1a23d0(0x1ae)]?_0x1ada0f:_0xa9f9be,_0x1aa4b1=_0x236973===e[_0x1a23d0(0x1ae)]?_0xa9f9be:_0x1ada0f,_0x5ca0f0=_0x1a23d0(0x1b3)+d+_0x1a23d0(0x1b2)+_0x5892dc+_0x1a23d0(0x1bd)+_0x1aa4b1+_0x1a23d0(0x1ba)+p+_0x1a23d0(0x1c2)+p+_0x1a23d0(0x1b0)+d+_0x1a23d0(0x1be)+_0x1aa4b1+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5892dc+_0x1a23d0(0x1b8),_0x15f280=document['createElement'](_0x1a23d0(0x1c0));return _0x15f280[_0x1a23d0(0x1c5)]=_0x5ca0f0,_0x15f280[_0x1a23d0(0x1c8)]='offline-printing-css',_0x15f280;}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};function _0x2b04(){const _0x2e9fce=['Narrow','Landscape','2280XFtXIX','Portrait','Normal','\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.','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','\x0a\x20\x20\x20\x20.','120617ERTjiV','790795KIzOeO','231btEnGC','101152fKULBn','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}','362088eGcVWO','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','Middle','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','Start','style','3225051GxpDrC',',\x20.','End','Wide','innerHTML','FitPage','391394wWCMIz','className','3etOOPv','Custom','Origin'];_0x2b04=function(){return _0x2e9fce;};return _0x2b04();}
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};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- function _0x371a(_0x234929,_0x43e24f){const _0x2b04ee=_0x2b04();return _0x371a=function(_0x371a4f,_0x3988e2){_0x371a4f=_0x371a4f-0x1a9;let _0x4dc8d2=_0x2b04ee[_0x371a4f];return _0x4dc8d2;},_0x371a(_0x234929,_0x43e24f);}const _0x228fe6=_0x371a;(function(_0x3baa61,_0x2d9f1c){const _0x37f143=_0x371a,_0x277452=_0x3baa61();while(!![]){try{const _0x3e9805=parseInt(_0x37f143(0x1b4))/0x1+-parseInt(_0x37f143(0x1c7))/0x2*(parseInt(_0x37f143(0x1c9))/0x3)+-parseInt(_0x37f143(0x1b7))/0x4+-parseInt(_0x37f143(0x1b5))/0x5+parseInt(_0x37f143(0x1b9))/0x6+-parseInt(_0x37f143(0x1b6))/0x7*(parseInt(_0x37f143(0x1ad))/0x8)+parseInt(_0x37f143(0x1c1))/0x9;if(_0x3e9805===_0x2d9f1c)break;else _0x277452['push'](_0x277452['shift']());}catch(_0x39bd74){_0x277452['push'](_0x277452['shift']());}}}(_0x2b04,0x24ce3));var e=(_0x18a574=>(_0x18a574[_0x228fe6(0x1ae)]=_0x228fe6(0x1ae),_0x18a574[_0x228fe6(0x1ac)]=_0x228fe6(0x1ac),_0x18a574))(e||{}),l=(_0x1d99b6=>(_0x1d99b6[_0x228fe6(0x1aa)]=_0x228fe6(0x1aa),_0x1d99b6[_0x228fe6(0x1b1)]=_0x228fe6(0x1b1),_0x1d99b6['FitHeight']='FitHeight',_0x1d99b6[_0x228fe6(0x1c6)]=_0x228fe6(0x1c6),_0x1d99b6[_0x228fe6(0x1a9)]=_0x228fe6(0x1a9),_0x1d99b6))(l||{}),m=(_0x40d819=>(_0x40d819[_0x228fe6(0x1bf)]=_0x228fe6(0x1bf),_0x40d819['End']=_0x228fe6(0x1c3),_0x40d819[_0x228fe6(0x1bc)]=_0x228fe6(0x1bc),_0x40d819))(m||{}),o=(_0x4f41f1=>(_0x4f41f1[_0x228fe6(0x1af)]=_0x228fe6(0x1af),_0x4f41f1[_0x228fe6(0x1ab)]=_0x228fe6(0x1ab),_0x4f41f1[_0x228fe6(0x1c4)]=_0x228fe6(0x1c4),_0x4f41f1[_0x228fe6(0x1bb)]=_0x228fe6(0x1bb),_0x4f41f1))(o||{});const c={[o[_0x228fe6(0x1af)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x228fe6(0x1c4)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x228fe6(0x1bb)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d='printing-canvas';function g(_0x1ada0f,_0xa9f9be,_0x236973){const _0x1a23d0=_0x228fe6,_0x5892dc=_0x236973===e[_0x1a23d0(0x1ae)]?_0x1ada0f:_0xa9f9be,_0x1aa4b1=_0x236973===e[_0x1a23d0(0x1ae)]?_0xa9f9be:_0x1ada0f,_0x5ca0f0=_0x1a23d0(0x1b3)+d+_0x1a23d0(0x1b2)+_0x5892dc+_0x1a23d0(0x1bd)+_0x1aa4b1+_0x1a23d0(0x1ba)+p+_0x1a23d0(0x1c2)+p+_0x1a23d0(0x1b0)+d+_0x1a23d0(0x1be)+_0x1aa4b1+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5892dc+_0x1a23d0(0x1b8),_0x15f280=document['createElement'](_0x1a23d0(0x1c0));return _0x15f280[_0x1a23d0(0x1c5)]=_0x5ca0f0,_0x15f280[_0x1a23d0(0x1c8)]='offline-printing-css',_0x15f280;}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};function _0x2b04(){const _0x2e9fce=['Narrow','Landscape','2280XFtXIX','Portrait','Normal','\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.','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','\x0a\x20\x20\x20\x20.','120617ERTjiV','790795KIzOeO','231btEnGC','101152fKULBn','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}','362088eGcVWO','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','Middle','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','Start','style','3225051GxpDrC',',\x20.','End','Wide','innerHTML','FitPage','391394wWCMIz','className','3etOOPv','Custom','Origin'];_0x2b04=function(){return _0x2e9fce;};return _0x2b04();}
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};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x54e2(_0x47e406,_0x4948f9){const _0x404996=_0x4049();return _0x54e2=function(_0x54e2ed,_0x2503ba){_0x54e2ed=_0x54e2ed-0xf2;let _0x333fd4=_0x404996[_0x54e2ed];return _0x333fd4;},_0x54e2(_0x47e406,_0x4948f9);}(function(_0x21281b,_0x2be16e){const _0xf1cff0=_0x54e2,_0x29f158=_0x21281b();while(!![]){try{const _0xd263e9=-parseInt(_0xf1cff0(0xf5))/0x1+parseInt(_0xf1cff0(0x10e))/0x2*(parseInt(_0xf1cff0(0xf4))/0x3)+-parseInt(_0xf1cff0(0x10d))/0x4*(parseInt(_0xf1cff0(0x112))/0x5)+parseInt(_0xf1cff0(0xf9))/0x6+parseInt(_0xf1cff0(0x119))/0x7+-parseInt(_0xf1cff0(0x101))/0x8+parseInt(_0xf1cff0(0xfd))/0x9*(-parseInt(_0xf1cff0(0xf6))/0xa);if(_0xd263e9===_0x2be16e)break;else _0x29f158['push'](_0x29f158['shift']());}catch(_0x2ed5d8){_0x29f158['push'](_0x29f158['shift']());}}}(_0x4049,0xadff2),function(_0x5f42bf,_0x31cfda){const _0x436989=_0x54e2;typeof exports=='object'&&typeof module<'u'?_0x31cfda(exports):typeof define==_0x436989(0x100)&&define[_0x436989(0x104)]?define(['exports'],_0x31cfda):(_0x5f42bf=typeof globalThis<'u'?globalThis:_0x5f42bf||self,_0x31cfda(_0x5f42bf[_0x436989(0xfb)]={}));}(this,function(_0x3868ec){'use strict';const _0xdcd820=_0x54e2;var _0x39c60=(_0x3ccebf=>(_0x3ccebf[_0xdcd820(0x116)]=_0xdcd820(0x116),_0x3ccebf['Landscape']=_0xdcd820(0x115),_0x3ccebf))(_0x39c60||{}),_0x358161=(_0x2da2d6=>(_0x2da2d6[_0xdcd820(0x105)]=_0xdcd820(0x105),_0x2da2d6[_0xdcd820(0x102)]=_0xdcd820(0x102),_0x2da2d6[_0xdcd820(0x111)]=_0xdcd820(0x111),_0x2da2d6['FitPage']=_0xdcd820(0x11c),_0x2da2d6[_0xdcd820(0x109)]=_0xdcd820(0x109),_0x2da2d6))(_0x358161||{}),_0x390c13=(_0x3be08d=>(_0x3be08d[_0xdcd820(0x120)]=_0xdcd820(0x120),_0x3be08d[_0xdcd820(0xf7)]=_0xdcd820(0xf7),_0x3be08d[_0xdcd820(0x11f)]=_0xdcd820(0x11f),_0x3be08d))(_0x390c13||{}),_0xca0468=(_0x30d11b=>(_0x30d11b[_0xdcd820(0x121)]='Normal',_0x30d11b[_0xdcd820(0x118)]='Narrow',_0x30d11b['Wide']=_0xdcd820(0x10c),_0x30d11b[_0xdcd820(0xf3)]=_0xdcd820(0xf3),_0x30d11b))(_0xca0468||{});const _0x2d39f3={[_0xca0468[_0xdcd820(0x121)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0xca0468[_0xdcd820(0x118)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0xca0468[_0xdcd820(0x10c)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0xca0468[_0xdcd820(0xf3)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x192c7f='printing-canvas-container',_0x121b3d='printing-canvas';function _0x5d6eb8(_0x4357fb,_0x438f74,_0x20693a){const _0x42c086=_0xdcd820,_0x5f57b3=_0x20693a===_0x39c60[_0x42c086(0x116)]?_0x4357fb:_0x438f74,_0x190d8e=_0x20693a===_0x39c60[_0x42c086(0x116)]?_0x438f74:_0x4357fb,_0x1b296e=_0x42c086(0x113)+_0x121b3d+_0x42c086(0x11e)+_0x5f57b3+_0x42c086(0xfe)+_0x190d8e+_0x42c086(0xff)+_0x192c7f+_0x42c086(0x114)+_0x192c7f+_0x42c086(0x10f)+_0x121b3d+_0x42c086(0xf8)+_0x190d8e+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5f57b3+_0x42c086(0x11b),_0xb915d4=document['createElement'](_0x42c086(0x11d));return _0xb915d4[_0x42c086(0x110)]=_0x1b296e,_0xb915d4[_0x42c086(0x108)]=_0x42c086(0x117),_0xb915d4;}_0x3868ec[_0xdcd820(0x10b)]=_0x121b3d,_0x3868ec[_0xdcd820(0x106)]=_0x192c7f,_0x3868ec[_0xdcd820(0x10a)]=_0x2d39f3,_0x3868ec[_0xdcd820(0x103)]=_0x390c13,_0x3868ec[_0xdcd820(0x107)]=_0x39c60,_0x3868ec['PrintPaperMargin']=_0xca0468,_0x3868ec['PrintScale']=_0x358161,_0x3868ec[_0xdcd820(0xfc)]=_0x5d6eb8,Object[_0xdcd820(0xf2)](_0x3868ec,Symbol[_0xdcd820(0x11a)],{'value':_0xdcd820(0xfa)});}));function _0x4049(){const _0x354416=['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','style','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Middle','Start','Normal','defineProperty','None','3ZRLOrM','1442bRvfAf','38630xhMeIM','End','\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','7718646kMKOVT','Module','UniverProPrint','createPrintStyle','1413cBFPwZ','px\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.','function','3404752hXDBoB','FitWidth','PrintAlign','amd','Origin','PRINT_CONTAINER_CLASS','PrintDirection','className','Custom','PaperMarginMap','PRINT_CANVAS_CLASS','Wide','480CTCdjM','300710vADPoL','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','innerHTML','FitHeight','13760wPruQE','\x0a\x20\x20\x20\x20.',',\x20.','Landscape','Portrait','offline-printing-css','Narrow','4477627foBBRl','toStringTag'];_0x4049=function(){return _0x354416;};return _0x4049();}
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'});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "private": false,
5
5
  "description": "Print module for UniverJS",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -45,7 +45,7 @@
45
45
  "typescript": "^5.8.3",
46
46
  "vite": "^6.3.5",
47
47
  "vitest": "^3.2.4",
48
- "@univerjs-infra/shared": "0.9.1"
48
+ "@univerjs-infra/shared": "0.9.2"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",