@univerjs-pro/print 0.9.0 → 0.9.1-nightly.202507051607

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';const _0x168016=_0x37db;(function(_0x290666,_0x16456f){const _0x10063f=_0x37db,_0x3f0812=_0x290666();while(!![]){try{const _0x265856=-parseInt(_0x10063f(0x133))/0x1+-parseInt(_0x10063f(0x122))/0x2*(-parseInt(_0x10063f(0x11f))/0x3)+parseInt(_0x10063f(0x13a))/0x4*(-parseInt(_0x10063f(0x134))/0x5)+parseInt(_0x10063f(0x135))/0x6*(parseInt(_0x10063f(0x148))/0x7)+-parseInt(_0x10063f(0x13b))/0x8*(parseInt(_0x10063f(0x145))/0x9)+parseInt(_0x10063f(0x12d))/0xa*(-parseInt(_0x10063f(0x12f))/0xb)+parseInt(_0x10063f(0x126))/0xc;if(_0x265856===_0x16456f)break;else _0x3f0812['push'](_0x3f0812['shift']());}catch(_0x428e09){_0x3f0812['push'](_0x3f0812['shift']());}}}(_0x42b4,0x3a986));Object['defineProperty'](exports,Symbol[_0x168016(0x123)],{'value':_0x168016(0x147)});var e=(_0x3e49aa=>(_0x3e49aa[_0x168016(0x121)]=_0x168016(0x121),_0x3e49aa[_0x168016(0x14a)]=_0x168016(0x14a),_0x3e49aa))(e||{}),l=(_0x27381a=>(_0x27381a[_0x168016(0x13e)]='Origin',_0x27381a[_0x168016(0x13d)]=_0x168016(0x13d),_0x27381a[_0x168016(0x130)]=_0x168016(0x130),_0x27381a[_0x168016(0x144)]='FitPage',_0x27381a[_0x168016(0x120)]='Custom',_0x27381a))(l||{}),c=(_0x1ce07a=>(_0x1ce07a['Start']=_0x168016(0x128),_0x1ce07a[_0x168016(0x11d)]=_0x168016(0x11d),_0x1ce07a[_0x168016(0x140)]='Middle',_0x1ce07a))(c||{}),i=(_0x1ab3ae=>(_0x1ab3ae[_0x168016(0x142)]=_0x168016(0x142),_0x1ab3ae[_0x168016(0x11e)]=_0x168016(0x11e),_0x1ab3ae[_0x168016(0x132)]='Wide',_0x1ab3ae[_0x168016(0x13c)]=_0x168016(0x13c),_0x1ab3ae))(i||{});const h={[i[_0x168016(0x142)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x168016(0x11e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x168016(0x13c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r='printing-canvas-container',n=_0x168016(0x138);function m(_0x2063aa,_0x410ab4,_0x2f23cf){const _0x12ac87=_0x168016,_0x350448=_0x2f23cf===e[_0x12ac87(0x121)]?_0x2063aa:_0x410ab4,_0x32339c=_0x2f23cf===e[_0x12ac87(0x121)]?_0x410ab4:_0x2063aa,_0x12b86e='\x0a\x20\x20\x20\x20.'+n+_0x12ac87(0x127)+_0x350448+_0x12ac87(0x12a)+_0x32339c+_0x12ac87(0x146)+r+_0x12ac87(0x143)+r+'\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.'+n+_0x12ac87(0x131)+_0x32339c+_0x12ac87(0x12c)+_0x350448+_0x12ac87(0x136),_0x492af4=document[_0x12ac87(0x139)](_0x12ac87(0x124));return _0x492af4['innerHTML']=_0x12b86e,_0x492af4[_0x12ac87(0x13f)]=_0x12ac87(0x149),_0x492af4;}function _0x42b4(){const _0x38ad3b=['FitWidth','Origin','className','Middle','PrintAlign','Normal',',\x20.','FitPage','402183EyAmfW','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.','Module','7KpNjJj','offline-printing-css','Landscape','End','Narrow','573KsyqCq','Custom','Portrait','3098McJZlZ','toStringTag','style','createPrintStyle','8336688WCbbRL','\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','Start','PRINT_CONTAINER_CLASS','px\x20','PaperMarginMap','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','10wAcVWq','PrintPaperMargin','1407857zNFoBf','FitHeight','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Wide','346697QpyMTk','5480wBBweF','2729046yhrnlV','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','PrintDirection','printing-canvas','createElement','1036MpREoh','80JJLhpc','None'];_0x42b4=function(){return _0x38ad3b;};return _0x42b4();}function _0x37db(_0x36b3d2,_0x2ff7d6){const _0x42b4ec=_0x42b4();return _0x37db=function(_0x37dbbd,_0xad5b97){_0x37dbbd=_0x37dbbd-0x11d;let _0x27aae4=_0x42b4ec[_0x37dbbd];return _0x27aae4;},_0x37db(_0x36b3d2,_0x2ff7d6);}exports['PRINT_CANVAS_CLASS']=n,exports[_0x168016(0x129)]=r,exports[_0x168016(0x12b)]=h,exports[_0x168016(0x141)]=c,exports[_0x168016(0x137)]=e,exports[_0x168016(0x12e)]=i,exports['PrintScale']=l,exports[_0x168016(0x125)]=m;
1
+ 'use strict';const _0x4184fa=_0x2f8b;function _0x5d7a(){const _0x537cdb=['innerHTML','Narrow','PRINT_CANVAS_CLASS','Module','558hpnzaV','Portrait','Landscape','End','8uvMpag','Wide','Middle','Custom','None','PaperMarginMap','1503691Vtykwo','Start','PrintPaperMargin','Normal','FitHeight','offline-printing-css','78968FLEybv','className','\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','\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.','createPrintStyle','2559885ngsoDX','\x0a\x20\x20\x20\x20.','createElement','PrintAlign','4613574GjbYau','PRINT_CONTAINER_CLASS','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}','99ejINRz','402775QIvsri','printing-canvas-container','327400rsnCQz','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.','FitPage','px\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PrintScale','Origin','1904956ndLtXV','FitWidth','PrintDirection'];_0x5d7a=function(){return _0x537cdb;};return _0x5d7a();}(function(_0x573ea7,_0x430e7f){const _0x230964=_0x2f8b,_0x1433bb=_0x573ea7();while(!![]){try{const _0x391659=-parseInt(_0x230964(0x175))/0x1+-parseInt(_0x230964(0x17e))/0x2+parseInt(_0x230964(0x174))/0x3*(-parseInt(_0x230964(0x167))/0x4)+-parseInt(_0x230964(0x16d))/0x5+parseInt(_0x230964(0x171))/0x6+parseInt(_0x230964(0x161))/0x7*(parseInt(_0x230964(0x15b))/0x8)+-parseInt(_0x230964(0x185))/0x9*(-parseInt(_0x230964(0x177))/0xa);if(_0x391659===_0x430e7f)break;else _0x1433bb['push'](_0x1433bb['shift']());}catch(_0x7d20ce){_0x1433bb['push'](_0x1433bb['shift']());}}}(_0x5d7a,0x78d3a));Object[_0x4184fa(0x16a)](exports,Symbol['toStringTag'],{'value':_0x4184fa(0x184)});var e=(_0x5c4937=>(_0x5c4937['Portrait']=_0x4184fa(0x158),_0x5c4937[_0x4184fa(0x159)]=_0x4184fa(0x159),_0x5c4937))(e||{}),l=(_0x213cf8=>(_0x213cf8[_0x4184fa(0x17d)]='Origin',_0x213cf8['FitWidth']=_0x4184fa(0x17f),_0x213cf8['FitHeight']=_0x4184fa(0x165),_0x213cf8[_0x4184fa(0x179)]=_0x4184fa(0x179),_0x213cf8['Custom']=_0x4184fa(0x15e),_0x213cf8))(l||{}),c=(_0xe1e0c5=>(_0xe1e0c5[_0x4184fa(0x162)]=_0x4184fa(0x162),_0xe1e0c5[_0x4184fa(0x15a)]=_0x4184fa(0x15a),_0xe1e0c5['Middle']=_0x4184fa(0x15d),_0xe1e0c5))(c||{}),i=(_0x285a02=>(_0x285a02['Normal']='Normal',_0x285a02[_0x4184fa(0x182)]=_0x4184fa(0x182),_0x285a02[_0x4184fa(0x15c)]=_0x4184fa(0x15c),_0x285a02[_0x4184fa(0x15f)]=_0x4184fa(0x15f),_0x285a02))(i||{});const h={[i[_0x4184fa(0x164)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x4184fa(0x15c)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x4184fa(0x176),n='printing-canvas';function _0x2f8b(_0x1f592e,_0x1f214d){const _0x5d7af4=_0x5d7a();return _0x2f8b=function(_0x2f8b00,_0x4e1853){_0x2f8b00=_0x2f8b00-0x158;let _0x1265e4=_0x5d7af4[_0x2f8b00];return _0x1265e4;},_0x2f8b(_0x1f592e,_0x1f214d);}function m(_0x29632d,_0xfd6bf9,_0x59030a){const _0x58ef1c=_0x4184fa,_0xb14527=_0x59030a===e[_0x58ef1c(0x158)]?_0x29632d:_0xfd6bf9,_0x4f7af8=_0x59030a===e[_0x58ef1c(0x158)]?_0xfd6bf9:_0x29632d,_0x99cae7=_0x58ef1c(0x16e)+n+_0x58ef1c(0x169)+_0xb14527+_0x58ef1c(0x17a)+_0x4f7af8+_0x58ef1c(0x178)+r+',\x20.'+r+_0x58ef1c(0x16b)+n+'\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'+_0x4f7af8+_0x58ef1c(0x17b)+_0xb14527+_0x58ef1c(0x173),_0x1cffad=document[_0x58ef1c(0x16f)]('style');return _0x1cffad[_0x58ef1c(0x181)]=_0x99cae7,_0x1cffad[_0x58ef1c(0x168)]=_0x58ef1c(0x166),_0x1cffad;}exports[_0x4184fa(0x183)]=n,exports[_0x4184fa(0x172)]=r,exports[_0x4184fa(0x160)]=h,exports[_0x4184fa(0x170)]=c,exports[_0x4184fa(0x180)]=e,exports[_0x4184fa(0x163)]=i,exports[_0x4184fa(0x17c)]=l,exports[_0x4184fa(0x16c)]=m;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4d80(){const _0x7a0b48=['printing-canvas-container','px\x20','502068riOeqO','FitHeight','FitWidth','\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.','1122375srQiwz','Landscape','Origin','End','\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','FitPage','473696NmlcuR','Wide','Normal','Middle','None','1112825BfHhnX','2046318LlOkad','Narrow','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Start','printing-canvas','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.','style','innerHTML','className','Custom','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.','\x0a\x20\x20\x20\x20.','887440ZNsZkh','createElement','1188372lFdlJe','Portrait'];_0x4d80=function(){return _0x7a0b48;};return _0x4d80();}function _0x465d(_0x5f3052,_0x351f55){const _0x4d80ef=_0x4d80();return _0x465d=function(_0x465d5f,_0x2d975f){_0x465d5f=_0x465d5f-0x11e;let _0x655f16=_0x4d80ef[_0x465d5f];return _0x655f16;},_0x465d(_0x5f3052,_0x351f55);}const _0x2d5bed=_0x465d;(function(_0x20cbe6,_0x18efcf){const _0x4406c9=_0x465d,_0x479813=_0x20cbe6();while(!![]){try{const _0x2d14ab=-parseInt(_0x4406c9(0x135))/0x1+-parseInt(_0x4406c9(0x125))/0x2+parseInt(_0x4406c9(0x12f))/0x3+parseInt(_0x4406c9(0x127))/0x4+parseInt(_0x4406c9(0x13a))/0x5+parseInt(_0x4406c9(0x13b))/0x6+-parseInt(_0x4406c9(0x12b))/0x7;if(_0x2d14ab===_0x18efcf)break;else _0x479813['push'](_0x479813['shift']());}catch(_0x49410c){_0x479813['push'](_0x479813['shift']());}}}(_0x4d80,0x3bfc0));var e=(_0x59c29e=>(_0x59c29e[_0x2d5bed(0x128)]=_0x2d5bed(0x128),_0x59c29e['Landscape']=_0x2d5bed(0x130),_0x59c29e))(e||{}),l=(_0x336f05=>(_0x336f05['Origin']=_0x2d5bed(0x131),_0x336f05['FitWidth']=_0x2d5bed(0x12d),_0x336f05[_0x2d5bed(0x12c)]=_0x2d5bed(0x12c),_0x336f05[_0x2d5bed(0x134)]=_0x2d5bed(0x134),_0x336f05[_0x2d5bed(0x122)]='Custom',_0x336f05))(l||{}),m=(_0x9e2ab1=>(_0x9e2ab1[_0x2d5bed(0x13e)]=_0x2d5bed(0x13e),_0x9e2ab1[_0x2d5bed(0x132)]=_0x2d5bed(0x132),_0x9e2ab1['Middle']=_0x2d5bed(0x138),_0x9e2ab1))(m||{}),o=(_0x5afecc=>(_0x5afecc[_0x2d5bed(0x137)]=_0x2d5bed(0x137),_0x5afecc['Narrow']=_0x2d5bed(0x13c),_0x5afecc['Wide']=_0x2d5bed(0x136),_0x5afecc[_0x2d5bed(0x139)]='None',_0x5afecc))(o||{});const c={[o[_0x2d5bed(0x137)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x2d5bed(0x13c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x2d5bed(0x136)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x2d5bed(0x129),d=_0x2d5bed(0x13f);function g(_0x144b6a,_0x326e3d,_0x3cca66){const _0x371f38=_0x2d5bed,_0x1e41e9=_0x3cca66===e[_0x371f38(0x128)]?_0x144b6a:_0x326e3d,_0x4f47cc=_0x3cca66===e[_0x371f38(0x128)]?_0x326e3d:_0x144b6a,_0x2b3259=_0x371f38(0x124)+d+_0x371f38(0x133)+_0x1e41e9+_0x371f38(0x12a)+_0x4f47cc+_0x371f38(0x123)+p+_0x371f38(0x11e)+p+_0x371f38(0x12e)+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'+_0x4f47cc+_0x371f38(0x13d)+_0x1e41e9+_0x371f38(0x140),_0x13c29c=document[_0x371f38(0x126)](_0x371f38(0x11f));return _0x13c29c[_0x371f38(0x120)]=_0x2b3259,_0x13c29c[_0x371f38(0x121)]='offline-printing-css',_0x13c29c;}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
+ function _0x1685(){const _0x2c014c=['Narrow','FitHeight','14507625QqMiCM','\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.','8wbnMot','Landscape','offline-printing-css','Custom','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Portrait','1428fyongv','4006352BJIxPq','className','\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.','16lgaQca','End','151625isoysP','Middle','printing-canvas','style','\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','14990zhvcIH','FitPage','Normal','Origin','687738atNLlC','150458aDUsAk','6312wPfChk','Start','Wide','FitWidth','printing-canvas-container','None','5148JaNtPj'];_0x1685=function(){return _0x2c014c;};return _0x1685();}function _0x2d5b(_0x53255c,_0x376a4a){const _0x1685be=_0x1685();return _0x2d5b=function(_0x2d5b4b,_0x3398f1){_0x2d5b4b=_0x2d5b4b-0xcb;let _0x1f64af=_0x1685be[_0x2d5b4b];return _0x1f64af;},_0x2d5b(_0x53255c,_0x376a4a);}const _0x142634=_0x2d5b;(function(_0x51bb84,_0x48f8ab){const _0x262779=_0x2d5b,_0x1c27fc=_0x51bb84();while(!![]){try{const _0x3a3757=-parseInt(_0x262779(0xdc))/0x1*(parseInt(_0x262779(0xd0))/0x2)+parseInt(_0x262779(0xcf))/0x3+parseInt(_0x262779(0xe8))/0x4*(-parseInt(_0x262779(0xea))/0x5)+parseInt(_0x262779(0xd1))/0x6*(parseInt(_0x262779(0xe3))/0x7)+parseInt(_0x262779(0xe4))/0x8+-parseInt(_0x262779(0xd7))/0x9*(parseInt(_0x262779(0xcb))/0xa)+parseInt(_0x262779(0xda))/0xb;if(_0x3a3757===_0x48f8ab)break;else _0x1c27fc['push'](_0x1c27fc['shift']());}catch(_0x59af3e){_0x1c27fc['push'](_0x1c27fc['shift']());}}}(_0x1685,0xa6bd3));var e=(_0x108b9b=>(_0x108b9b[_0x142634(0xe2)]=_0x142634(0xe2),_0x108b9b[_0x142634(0xdd)]=_0x142634(0xdd),_0x108b9b))(e||{}),l=(_0x3cc5c7=>(_0x3cc5c7[_0x142634(0xce)]=_0x142634(0xce),_0x3cc5c7[_0x142634(0xd4)]='FitWidth',_0x3cc5c7[_0x142634(0xd9)]=_0x142634(0xd9),_0x3cc5c7[_0x142634(0xcc)]=_0x142634(0xcc),_0x3cc5c7[_0x142634(0xdf)]=_0x142634(0xdf),_0x3cc5c7))(l||{}),m=(_0x4e23a9=>(_0x4e23a9[_0x142634(0xd2)]=_0x142634(0xd2),_0x4e23a9['End']=_0x142634(0xe9),_0x4e23a9[_0x142634(0xeb)]='Middle',_0x4e23a9))(m||{}),o=(_0x8fec6=>(_0x8fec6[_0x142634(0xcd)]=_0x142634(0xcd),_0x8fec6[_0x142634(0xd8)]=_0x142634(0xd8),_0x8fec6[_0x142634(0xd3)]=_0x142634(0xd3),_0x8fec6['None']=_0x142634(0xd6),_0x8fec6))(o||{});const c={[o[_0x142634(0xcd)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x142634(0xd6)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x142634(0xd5),d=_0x142634(0xec);function g(_0x36218f,_0x6ae48b,_0x8c9729){const _0x5dc3f3=_0x142634,_0x2de2c0=_0x8c9729===e['Portrait']?_0x36218f:_0x6ae48b,_0xc40c86=_0x8c9729===e[_0x5dc3f3(0xe2)]?_0x6ae48b:_0x36218f,_0x2a6c0c=_0x5dc3f3(0xe6)+d+_0x5dc3f3(0xe0)+_0x2de2c0+'px\x20'+_0xc40c86+_0x5dc3f3(0xe7)+p+',\x20.'+p+_0x5dc3f3(0xdb)+d+_0x5dc3f3(0xee)+_0xc40c86+_0x5dc3f3(0xe1)+_0x2de2c0+'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}',_0x4c807e=document['createElement'](_0x5dc3f3(0xed));return _0x4c807e['innerHTML']=_0x2a6c0c,_0x4c807e[_0x5dc3f3(0xe5)]=_0x5dc3f3(0xde),_0x4c807e;}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 _0x4d80(){const _0x7a0b48=['printing-canvas-container','px\x20','502068riOeqO','FitHeight','FitWidth','\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.','1122375srQiwz','Landscape','Origin','End','\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','FitPage','473696NmlcuR','Wide','Normal','Middle','None','1112825BfHhnX','2046318LlOkad','Narrow','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Start','printing-canvas','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.','style','innerHTML','className','Custom','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.','\x0a\x20\x20\x20\x20.','887440ZNsZkh','createElement','1188372lFdlJe','Portrait'];_0x4d80=function(){return _0x7a0b48;};return _0x4d80();}function _0x465d(_0x5f3052,_0x351f55){const _0x4d80ef=_0x4d80();return _0x465d=function(_0x465d5f,_0x2d975f){_0x465d5f=_0x465d5f-0x11e;let _0x655f16=_0x4d80ef[_0x465d5f];return _0x655f16;},_0x465d(_0x5f3052,_0x351f55);}const _0x2d5bed=_0x465d;(function(_0x20cbe6,_0x18efcf){const _0x4406c9=_0x465d,_0x479813=_0x20cbe6();while(!![]){try{const _0x2d14ab=-parseInt(_0x4406c9(0x135))/0x1+-parseInt(_0x4406c9(0x125))/0x2+parseInt(_0x4406c9(0x12f))/0x3+parseInt(_0x4406c9(0x127))/0x4+parseInt(_0x4406c9(0x13a))/0x5+parseInt(_0x4406c9(0x13b))/0x6+-parseInt(_0x4406c9(0x12b))/0x7;if(_0x2d14ab===_0x18efcf)break;else _0x479813['push'](_0x479813['shift']());}catch(_0x49410c){_0x479813['push'](_0x479813['shift']());}}}(_0x4d80,0x3bfc0));var e=(_0x59c29e=>(_0x59c29e[_0x2d5bed(0x128)]=_0x2d5bed(0x128),_0x59c29e['Landscape']=_0x2d5bed(0x130),_0x59c29e))(e||{}),l=(_0x336f05=>(_0x336f05['Origin']=_0x2d5bed(0x131),_0x336f05['FitWidth']=_0x2d5bed(0x12d),_0x336f05[_0x2d5bed(0x12c)]=_0x2d5bed(0x12c),_0x336f05[_0x2d5bed(0x134)]=_0x2d5bed(0x134),_0x336f05[_0x2d5bed(0x122)]='Custom',_0x336f05))(l||{}),m=(_0x9e2ab1=>(_0x9e2ab1[_0x2d5bed(0x13e)]=_0x2d5bed(0x13e),_0x9e2ab1[_0x2d5bed(0x132)]=_0x2d5bed(0x132),_0x9e2ab1['Middle']=_0x2d5bed(0x138),_0x9e2ab1))(m||{}),o=(_0x5afecc=>(_0x5afecc[_0x2d5bed(0x137)]=_0x2d5bed(0x137),_0x5afecc['Narrow']=_0x2d5bed(0x13c),_0x5afecc['Wide']=_0x2d5bed(0x136),_0x5afecc[_0x2d5bed(0x139)]='None',_0x5afecc))(o||{});const c={[o[_0x2d5bed(0x137)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x2d5bed(0x13c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x2d5bed(0x136)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x2d5bed(0x129),d=_0x2d5bed(0x13f);function g(_0x144b6a,_0x326e3d,_0x3cca66){const _0x371f38=_0x2d5bed,_0x1e41e9=_0x3cca66===e[_0x371f38(0x128)]?_0x144b6a:_0x326e3d,_0x4f47cc=_0x3cca66===e[_0x371f38(0x128)]?_0x326e3d:_0x144b6a,_0x2b3259=_0x371f38(0x124)+d+_0x371f38(0x133)+_0x1e41e9+_0x371f38(0x12a)+_0x4f47cc+_0x371f38(0x123)+p+_0x371f38(0x11e)+p+_0x371f38(0x12e)+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'+_0x4f47cc+_0x371f38(0x13d)+_0x1e41e9+_0x371f38(0x140),_0x13c29c=document[_0x371f38(0x126)](_0x371f38(0x11f));return _0x13c29c[_0x371f38(0x120)]=_0x2b3259,_0x13c29c[_0x371f38(0x121)]='offline-printing-css',_0x13c29c;}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
+ function _0x1685(){const _0x2c014c=['Narrow','FitHeight','14507625QqMiCM','\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.','8wbnMot','Landscape','offline-printing-css','Custom','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Portrait','1428fyongv','4006352BJIxPq','className','\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.','16lgaQca','End','151625isoysP','Middle','printing-canvas','style','\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','14990zhvcIH','FitPage','Normal','Origin','687738atNLlC','150458aDUsAk','6312wPfChk','Start','Wide','FitWidth','printing-canvas-container','None','5148JaNtPj'];_0x1685=function(){return _0x2c014c;};return _0x1685();}function _0x2d5b(_0x53255c,_0x376a4a){const _0x1685be=_0x1685();return _0x2d5b=function(_0x2d5b4b,_0x3398f1){_0x2d5b4b=_0x2d5b4b-0xcb;let _0x1f64af=_0x1685be[_0x2d5b4b];return _0x1f64af;},_0x2d5b(_0x53255c,_0x376a4a);}const _0x142634=_0x2d5b;(function(_0x51bb84,_0x48f8ab){const _0x262779=_0x2d5b,_0x1c27fc=_0x51bb84();while(!![]){try{const _0x3a3757=-parseInt(_0x262779(0xdc))/0x1*(parseInt(_0x262779(0xd0))/0x2)+parseInt(_0x262779(0xcf))/0x3+parseInt(_0x262779(0xe8))/0x4*(-parseInt(_0x262779(0xea))/0x5)+parseInt(_0x262779(0xd1))/0x6*(parseInt(_0x262779(0xe3))/0x7)+parseInt(_0x262779(0xe4))/0x8+-parseInt(_0x262779(0xd7))/0x9*(parseInt(_0x262779(0xcb))/0xa)+parseInt(_0x262779(0xda))/0xb;if(_0x3a3757===_0x48f8ab)break;else _0x1c27fc['push'](_0x1c27fc['shift']());}catch(_0x59af3e){_0x1c27fc['push'](_0x1c27fc['shift']());}}}(_0x1685,0xa6bd3));var e=(_0x108b9b=>(_0x108b9b[_0x142634(0xe2)]=_0x142634(0xe2),_0x108b9b[_0x142634(0xdd)]=_0x142634(0xdd),_0x108b9b))(e||{}),l=(_0x3cc5c7=>(_0x3cc5c7[_0x142634(0xce)]=_0x142634(0xce),_0x3cc5c7[_0x142634(0xd4)]='FitWidth',_0x3cc5c7[_0x142634(0xd9)]=_0x142634(0xd9),_0x3cc5c7[_0x142634(0xcc)]=_0x142634(0xcc),_0x3cc5c7[_0x142634(0xdf)]=_0x142634(0xdf),_0x3cc5c7))(l||{}),m=(_0x4e23a9=>(_0x4e23a9[_0x142634(0xd2)]=_0x142634(0xd2),_0x4e23a9['End']=_0x142634(0xe9),_0x4e23a9[_0x142634(0xeb)]='Middle',_0x4e23a9))(m||{}),o=(_0x8fec6=>(_0x8fec6[_0x142634(0xcd)]=_0x142634(0xcd),_0x8fec6[_0x142634(0xd8)]=_0x142634(0xd8),_0x8fec6[_0x142634(0xd3)]=_0x142634(0xd3),_0x8fec6['None']=_0x142634(0xd6),_0x8fec6))(o||{});const c={[o[_0x142634(0xcd)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x142634(0xd6)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x142634(0xd5),d=_0x142634(0xec);function g(_0x36218f,_0x6ae48b,_0x8c9729){const _0x5dc3f3=_0x142634,_0x2de2c0=_0x8c9729===e['Portrait']?_0x36218f:_0x6ae48b,_0xc40c86=_0x8c9729===e[_0x5dc3f3(0xe2)]?_0x6ae48b:_0x36218f,_0x2a6c0c=_0x5dc3f3(0xe6)+d+_0x5dc3f3(0xe0)+_0x2de2c0+'px\x20'+_0xc40c86+_0x5dc3f3(0xe7)+p+',\x20.'+p+_0x5dc3f3(0xdb)+d+_0x5dc3f3(0xee)+_0xc40c86+_0x5dc3f3(0xe1)+_0x2de2c0+'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}',_0x4c807e=document['createElement'](_0x5dc3f3(0xed));return _0x4c807e['innerHTML']=_0x2a6c0c,_0x4c807e[_0x5dc3f3(0xe5)]=_0x5dc3f3(0xde),_0x4c807e;}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 _0xf836(){const _0x260188=['620DUZXBa',',\x20.','FitPage','876evEUGs','className','24dhFTsT','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.','50eRjWYT','Portrait','createElement','Landscape','FitHeight','PrintScale','offline-printing-css','None','PrintAlign','825539qQKqIC','680407wcPKxb','FitWidth','defineProperty','toStringTag','Wide','amd','882261eBncvP','47916MnQPZY','\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','16536eWOtYj','8754552trPwbg','End','PaperMarginMap','PRINT_CONTAINER_CLASS','Origin','printing-canvas','Narrow','exports','Normal','Start','Middle','709kwMpxL','function','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','36tJimmI','Custom','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-container','\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.','Module'];_0xf836=function(){return _0x260188;};return _0xf836();}function _0x478a(_0x589b08,_0x4933d2){const _0xf83621=_0xf836();return _0x478a=function(_0x478ae2,_0x5865ac){_0x478ae2=_0x478ae2-0x15a;let _0x2ca2d3=_0xf83621[_0x478ae2];return _0x2ca2d3;},_0x478a(_0x589b08,_0x4933d2);}(function(_0x2c85c4,_0x235ac9){const _0x316d82=_0x478a,_0x3c9f7a=_0x2c85c4();while(!![]){try{const _0x4ac0d5=-parseInt(_0x316d82(0x172))/0x1*(parseInt(_0x316d82(0x17e))/0x2)+parseInt(_0x316d82(0x175))/0x3*(parseInt(_0x316d82(0x164))/0x4)+-parseInt(_0x316d82(0x17b))/0x5*(parseInt(_0x316d82(0x166))/0x6)+parseInt(_0x316d82(0x15d))/0x7+-parseInt(_0x316d82(0x180))/0x8*(-parseInt(_0x316d82(0x163))/0x9)+-parseInt(_0x316d82(0x183))/0xa*(parseInt(_0x316d82(0x15c))/0xb)+parseInt(_0x316d82(0x167))/0xc;if(_0x4ac0d5===_0x235ac9)break;else _0x3c9f7a['push'](_0x3c9f7a['shift']());}catch(_0xcc0fdc){_0x3c9f7a['push'](_0x3c9f7a['shift']());}}}(_0xf836,0x39dfb),function(_0x284391,_0x3bb45a){const _0x407ca9=_0x478a;typeof exports=='object'&&typeof module<'u'?_0x3bb45a(exports):typeof define==_0x407ca9(0x173)&&define[_0x407ca9(0x162)]?define([_0x407ca9(0x16e)],_0x3bb45a):(_0x284391=typeof globalThis<'u'?globalThis:_0x284391||self,_0x3bb45a(_0x284391['UniverProPrint']={}));}(this,function(_0x20280b){'use strict';const _0x290a91=_0x478a;var _0x306e3f=(_0x2590e0=>(_0x2590e0['Portrait']=_0x290a91(0x184),_0x2590e0['Landscape']=_0x290a91(0x186),_0x2590e0))(_0x306e3f||{}),_0x1209ad=(_0x5dacdd=>(_0x5dacdd[_0x290a91(0x16b)]=_0x290a91(0x16b),_0x5dacdd[_0x290a91(0x15e)]=_0x290a91(0x15e),_0x5dacdd[_0x290a91(0x187)]=_0x290a91(0x187),_0x5dacdd[_0x290a91(0x17d)]=_0x290a91(0x17d),_0x5dacdd[_0x290a91(0x176)]=_0x290a91(0x176),_0x5dacdd))(_0x1209ad||{}),_0x50fd8e=(_0x2a7a28=>(_0x2a7a28[_0x290a91(0x170)]=_0x290a91(0x170),_0x2a7a28[_0x290a91(0x168)]=_0x290a91(0x168),_0x2a7a28[_0x290a91(0x171)]=_0x290a91(0x171),_0x2a7a28))(_0x50fd8e||{}),_0x4f8030=(_0x14c56d=>(_0x14c56d[_0x290a91(0x16f)]=_0x290a91(0x16f),_0x14c56d[_0x290a91(0x16d)]=_0x290a91(0x16d),_0x14c56d[_0x290a91(0x161)]=_0x290a91(0x161),_0x14c56d[_0x290a91(0x15a)]=_0x290a91(0x15a),_0x14c56d))(_0x4f8030||{});const _0x144a0e={[_0x4f8030['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x4f8030[_0x290a91(0x16d)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x4f8030[_0x290a91(0x161)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x4f8030[_0x290a91(0x15a)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x116b1e=_0x290a91(0x178),_0x2b6177=_0x290a91(0x16c);function _0x39db4f(_0x126727,_0x23a715,_0xa26c0d){const _0x2cf8ff=_0x290a91,_0x5997ed=_0xa26c0d===_0x306e3f[_0x2cf8ff(0x184)]?_0x126727:_0x23a715,_0x5f0f98=_0xa26c0d===_0x306e3f['Portrait']?_0x23a715:_0x126727,_0x522c3d='\x0a\x20\x20\x20\x20.'+_0x2b6177+_0x2cf8ff(0x165)+_0x5997ed+_0x2cf8ff(0x181)+_0x5f0f98+_0x2cf8ff(0x182)+_0x116b1e+_0x2cf8ff(0x17c)+_0x116b1e+_0x2cf8ff(0x179)+_0x2b6177+'\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'+_0x5f0f98+_0x2cf8ff(0x174)+_0x5997ed+_0x2cf8ff(0x177),_0x1dce39=document[_0x2cf8ff(0x185)]('style');return _0x1dce39['innerHTML']=_0x522c3d,_0x1dce39[_0x2cf8ff(0x17f)]=_0x2cf8ff(0x189),_0x1dce39;}_0x20280b['PRINT_CANVAS_CLASS']=_0x2b6177,_0x20280b[_0x290a91(0x16a)]=_0x116b1e,_0x20280b[_0x290a91(0x169)]=_0x144a0e,_0x20280b[_0x290a91(0x15b)]=_0x50fd8e,_0x20280b['PrintDirection']=_0x306e3f,_0x20280b['PrintPaperMargin']=_0x4f8030,_0x20280b[_0x290a91(0x188)]=_0x1209ad,_0x20280b['createPrintStyle']=_0x39db4f,Object[_0x290a91(0x15f)](_0x20280b,Symbol[_0x290a91(0x160)],{'value':_0x290a91(0x17a)});}));
1
+ function _0x4cc8(_0x1e2dda,_0x1db699){const _0x152830=_0x1528();return _0x4cc8=function(_0x4cc85f,_0x4f93ad){_0x4cc85f=_0x4cc85f-0x1e2;let _0x31161a=_0x152830[_0x4cc85f];return _0x31161a;},_0x4cc8(_0x1e2dda,_0x1db699);}(function(_0x1c623b,_0x727f28){const _0x1008b2=_0x4cc8,_0x524586=_0x1c623b();while(!![]){try{const _0x401100=-parseInt(_0x1008b2(0x1e4))/0x1+parseInt(_0x1008b2(0x1f1))/0x2*(-parseInt(_0x1008b2(0x1fd))/0x3)+parseInt(_0x1008b2(0x1fc))/0x4*(parseInt(_0x1008b2(0x202))/0x5)+-parseInt(_0x1008b2(0x1ff))/0x6*(-parseInt(_0x1008b2(0x1f8))/0x7)+parseInt(_0x1008b2(0x1ea))/0x8*(-parseInt(_0x1008b2(0x1e8))/0x9)+-parseInt(_0x1008b2(0x1f0))/0xa+-parseInt(_0x1008b2(0x20a))/0xb*(-parseInt(_0x1008b2(0x1ed))/0xc);if(_0x401100===_0x727f28)break;else _0x524586['push'](_0x524586['shift']());}catch(_0x55f2f2){_0x524586['push'](_0x524586['shift']());}}}(_0x1528,0xe412f),function(_0x395e03,_0x39084d){const _0x473086=_0x4cc8;typeof exports==_0x473086(0x1f5)&&typeof module<'u'?_0x39084d(exports):typeof define==_0x473086(0x1f4)&&define[_0x473086(0x1f3)]?define([_0x473086(0x203)],_0x39084d):(_0x395e03=typeof globalThis<'u'?globalThis:_0x395e03||self,_0x39084d(_0x395e03[_0x473086(0x1e9)]={}));}(this,function(_0x45121e){'use strict';const _0x62d428=_0x4cc8;var _0x9287a2=(_0x416dfb=>(_0x416dfb[_0x62d428(0x1f7)]=_0x62d428(0x1f7),_0x416dfb[_0x62d428(0x208)]='Landscape',_0x416dfb))(_0x9287a2||{}),_0x35e9af=(_0x979efe=>(_0x979efe[_0x62d428(0x1e3)]=_0x62d428(0x1e3),_0x979efe[_0x62d428(0x200)]=_0x62d428(0x200),_0x979efe['FitHeight']='FitHeight',_0x979efe['FitPage']='FitPage',_0x979efe[_0x62d428(0x1e7)]=_0x62d428(0x1e7),_0x979efe))(_0x35e9af||{}),_0x6b9276=(_0x59783e=>(_0x59783e['Start']='Start',_0x59783e[_0x62d428(0x1fe)]=_0x62d428(0x1fe),_0x59783e[_0x62d428(0x1fa)]='Middle',_0x59783e))(_0x6b9276||{}),_0x56706f=(_0x3a23a3=>(_0x3a23a3[_0x62d428(0x1ee)]='Normal',_0x3a23a3[_0x62d428(0x204)]=_0x62d428(0x204),_0x3a23a3[_0x62d428(0x207)]=_0x62d428(0x207),_0x3a23a3['None']=_0x62d428(0x1e5),_0x3a23a3))(_0x56706f||{});const _0x49dc89={[_0x56706f['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x56706f[_0x62d428(0x204)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x56706f[_0x62d428(0x207)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x56706f[_0x62d428(0x1e5)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x151636=_0x62d428(0x20c),_0x5c4ef3=_0x62d428(0x20d);function _0x5d33ab(_0x4fd8f8,_0x8c95d9,_0x5bf8dd){const _0x8a854f=_0x62d428,_0xd934dc=_0x5bf8dd===_0x9287a2[_0x8a854f(0x1f7)]?_0x4fd8f8:_0x8c95d9,_0x55539e=_0x5bf8dd===_0x9287a2['Portrait']?_0x8c95d9:_0x4fd8f8,_0x4cc1fe=_0x8a854f(0x20b)+_0x5c4ef3+'\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'+_0xd934dc+_0x8a854f(0x1e2)+_0x55539e+_0x8a854f(0x1eb)+_0x151636+_0x8a854f(0x205)+_0x151636+_0x8a854f(0x206)+_0x5c4ef3+'\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'+_0x55539e+_0x8a854f(0x20e)+_0xd934dc+'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}',_0x538e8a=document['createElement']('style');return _0x538e8a[_0x8a854f(0x1ef)]=_0x4cc1fe,_0x538e8a['className']=_0x8a854f(0x1f6),_0x538e8a;}_0x45121e[_0x62d428(0x1fb)]=_0x5c4ef3,_0x45121e[_0x62d428(0x1e6)]=_0x151636,_0x45121e[_0x62d428(0x201)]=_0x49dc89,_0x45121e['PrintAlign']=_0x6b9276,_0x45121e['PrintDirection']=_0x9287a2,_0x45121e[_0x62d428(0x1f2)]=_0x56706f,_0x45121e[_0x62d428(0x209)]=_0x35e9af,_0x45121e[_0x62d428(0x1ec)]=_0x5d33ab,Object[_0x62d428(0x1f9)](_0x45121e,Symbol['toStringTag'],{'value':'Module'});}));function _0x1528(){const _0x24d665=['7jhKWxb','defineProperty','Middle','PRINT_CANVAS_CLASS','12FgcqdH','6shKalv','End','8975154QbqnAb','FitWidth','PaperMarginMap','3017170phnkQJ','exports','Narrow',',\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.','Wide','Landscape','PrintScale','5907DxJano','\x0a\x20\x20\x20\x20.','printing-canvas-container','printing-canvas','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','px\x20','Origin','1549923IMLSGs','None','PRINT_CONTAINER_CLASS','Custom','18lWOIPt','UniverProPrint','3274232deUZTI','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','17844gDnHaZ','Normal','innerHTML','6590260YTWHNi','142982yqaLMk','PrintPaperMargin','amd','function','object','offline-printing-css','Portrait'];_0x1528=function(){return _0x24d665;};return _0x1528();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.9.0",
3
+ "version": "0.9.1-nightly.202507051607",
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.0"
48
+ "@univerjs-infra/shared": "0.9.1"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",