@univerjs-pro/print 0.8.3 → 0.9.0

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 _0x47e6f0=_0x4b7e;(function(_0x40cd89,_0x392551){const _0x33f3fd=_0x4b7e,_0x8d5d28=_0x40cd89();while(!![]){try{const _0x31b772=-parseInt(_0x33f3fd(0x106))/0x1*(-parseInt(_0x33f3fd(0xfb))/0x2)+-parseInt(_0x33f3fd(0x118))/0x3*(-parseInt(_0x33f3fd(0x119))/0x4)+-parseInt(_0x33f3fd(0xf6))/0x5*(parseInt(_0x33f3fd(0xf4))/0x6)+-parseInt(_0x33f3fd(0x104))/0x7+-parseInt(_0x33f3fd(0x100))/0x8*(-parseInt(_0x33f3fd(0x10a))/0x9)+parseInt(_0x33f3fd(0xf8))/0xa*(parseInt(_0x33f3fd(0x108))/0xb)+-parseInt(_0x33f3fd(0x110))/0xc*(parseInt(_0x33f3fd(0x10e))/0xd);if(_0x31b772===_0x392551)break;else _0x8d5d28['push'](_0x8d5d28['shift']());}catch(_0x1928c8){_0x8d5d28['push'](_0x8d5d28['shift']());}}}(_0x4671,0xe6636));Object[_0x47e6f0(0xf7)](exports,Symbol['toStringTag'],{'value':'Module'});var e=(_0x3a4288=>(_0x3a4288[_0x47e6f0(0x103)]=_0x47e6f0(0x103),_0x3a4288[_0x47e6f0(0x116)]='Landscape',_0x3a4288))(e||{}),l=(_0x204171=>(_0x204171[_0x47e6f0(0x115)]='Origin',_0x204171[_0x47e6f0(0x111)]=_0x47e6f0(0x111),_0x204171[_0x47e6f0(0x113)]='FitHeight',_0x204171[_0x47e6f0(0x11a)]=_0x47e6f0(0x11a),_0x204171[_0x47e6f0(0x10f)]='Custom',_0x204171))(l||{}),c=(_0x56f5f0=>(_0x56f5f0[_0x47e6f0(0x11b)]='Start',_0x56f5f0[_0x47e6f0(0xff)]=_0x47e6f0(0xff),_0x56f5f0[_0x47e6f0(0x117)]=_0x47e6f0(0x117),_0x56f5f0))(c||{}),i=(_0x43686f=>(_0x43686f[_0x47e6f0(0x11c)]='Normal',_0x43686f[_0x47e6f0(0x10c)]=_0x47e6f0(0x10c),_0x43686f['Wide']=_0x47e6f0(0x10b),_0x43686f[_0x47e6f0(0xfd)]=_0x47e6f0(0xfd),_0x43686f))(i||{});const h={[i[_0x47e6f0(0x11c)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x47e6f0(0x10c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x47e6f0(0x10b)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x47e6f0(0xfd)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x47e6f0(0x109),n='printing-canvas';function m(_0x5b481f,_0x1fa58c,_0x2b6184){const _0x43fea1=_0x47e6f0,_0x281903=_0x2b6184===e[_0x43fea1(0x103)]?_0x5b481f:_0x1fa58c,_0x1748ed=_0x2b6184===e['Portrait']?_0x1fa58c:_0x5b481f,_0xd8f6c9='\x0a\x20\x20\x20\x20.'+n+_0x43fea1(0x114)+_0x281903+'px\x20'+_0x1748ed+'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+',\x20.'+r+_0x43fea1(0x105)+n+_0x43fea1(0x112)+_0x1748ed+_0x43fea1(0xfc)+_0x281903+_0x43fea1(0x11d),_0x3b03e2=document['createElement'](_0x43fea1(0xfa));return _0x3b03e2[_0x43fea1(0x102)]=_0xd8f6c9,_0x3b03e2[_0x43fea1(0x10d)]='offline-printing-css',_0x3b03e2;}function _0x4b7e(_0x17d0be,_0x593006){const _0x4671fc=_0x4671();return _0x4b7e=function(_0x4b7ea5,_0x496c5b){_0x4b7ea5=_0x4b7ea5-0xf4;let _0x1a1cf8=_0x4671fc[_0x4b7ea5];return _0x1a1cf8;},_0x4b7e(_0x17d0be,_0x593006);}exports['PRINT_CANVAS_CLASS']=n,exports[_0x47e6f0(0xfe)]=r,exports[_0x47e6f0(0xf9)]=h,exports[_0x47e6f0(0x107)]=c,exports['PrintDirection']=e,exports[_0x47e6f0(0xf5)]=i,exports['PrintScale']=l,exports[_0x47e6f0(0x101)]=m;function _0x4671(){const _0x13e347=['End','5471096BIzelI','createPrintStyle','innerHTML','Portrait','3724231KCLhxW','\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.','2897EoKEMN','PrintAlign','814DkrKbC','printing-canvas-container','9nVHKhE','Wide','Narrow','className','182veMyZJ','Custom','1515588BIQlCy','FitWidth','\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','FitHeight','\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','Origin','Landscape','Middle','248907LTzlXR','88iXmpof','FitPage','Start','Normal','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}','6296874rqGVHH','PrintPaperMargin','5pevoda','defineProperty','142840YslEys','PaperMarginMap','style','502uoOfcO','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','None','PRINT_CONTAINER_CLASS'];_0x4671=function(){return _0x13e347;};return _0x4671();}
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;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4ebc9e=_0xec83;(function(_0xeffa6a,_0x12bf61){const _0x53bc4c=_0xec83,_0x4f604a=_0xeffa6a();while(!![]){try{const _0x532bb1=parseInt(_0x53bc4c(0xf5))/0x1+parseInt(_0x53bc4c(0xf9))/0x2+parseInt(_0x53bc4c(0xfd))/0x3*(parseInt(_0x53bc4c(0x10a))/0x4)+parseInt(_0x53bc4c(0x10e))/0x5+-parseInt(_0x53bc4c(0xef))/0x6*(-parseInt(_0x53bc4c(0xfb))/0x7)+-parseInt(_0x53bc4c(0xfc))/0x8+-parseInt(_0x53bc4c(0xff))/0x9;if(_0x532bb1===_0x12bf61)break;else _0x4f604a['push'](_0x4f604a['shift']());}catch(_0x3b1fc4){_0x4f604a['push'](_0x4f604a['shift']());}}}(_0x4239,0xe536c));var e=(_0x594876=>(_0x594876[_0x4ebc9e(0xf2)]=_0x4ebc9e(0xf2),_0x594876[_0x4ebc9e(0xfa)]=_0x4ebc9e(0xfa),_0x594876))(e||{}),l=(_0x20821f=>(_0x20821f[_0x4ebc9e(0xf3)]='Origin',_0x20821f['FitWidth']=_0x4ebc9e(0x102),_0x20821f[_0x4ebc9e(0xf1)]=_0x4ebc9e(0xf1),_0x20821f['FitPage']='FitPage',_0x20821f['Custom']='Custom',_0x20821f))(l||{}),m=(_0x2de65a=>(_0x2de65a[_0x4ebc9e(0x105)]=_0x4ebc9e(0x105),_0x2de65a[_0x4ebc9e(0x103)]=_0x4ebc9e(0x103),_0x2de65a[_0x4ebc9e(0x10d)]=_0x4ebc9e(0x10d),_0x2de65a))(m||{}),o=(_0x29bb77=>(_0x29bb77[_0x4ebc9e(0x107)]=_0x4ebc9e(0x107),_0x29bb77[_0x4ebc9e(0x10c)]=_0x4ebc9e(0x10c),_0x29bb77['Wide']=_0x4ebc9e(0xf8),_0x29bb77[_0x4ebc9e(0x109)]=_0x4ebc9e(0x109),_0x29bb77))(o||{});function _0x4239(){const _0x1b593b=['\x0a\x20\x20\x20\x20.','32171787Kwbawa','\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.','\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','End','createElement','Start',',\x20.','Normal','px\x20','None','3174968akmaWM','printing-canvas-container','Narrow','Middle','5310960wtZmOD','4731672EjlEOT','className','FitHeight','Portrait','Origin','innerHTML','382096vnWcVe','style','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}','Wide','1563090sjELkH','Landscape','14QWlUTJ','666368aHsLaD','3UnVRVt'];_0x4239=function(){return _0x1b593b;};return _0x4239();}const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x4ebc9e(0x10c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x4ebc9e(0xf8)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x4ebc9e(0x109)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x4ebc9e(0x10b),d='printing-canvas';function _0xec83(_0x3860bf,_0x14b95a){const _0x4239f2=_0x4239();return _0xec83=function(_0xec830d,_0x4fa675){_0xec830d=_0xec830d-0xef;let _0x3a5432=_0x4239f2[_0xec830d];return _0x3a5432;},_0xec83(_0x3860bf,_0x14b95a);}function g(_0xed045e,_0x2a9e85,_0x430a7c){const _0x1628da=_0x4ebc9e,_0x5122b2=_0x430a7c===e['Portrait']?_0xed045e:_0x2a9e85,_0x436d70=_0x430a7c===e[_0x1628da(0xf2)]?_0x2a9e85:_0xed045e,_0x4ad2bc=_0x1628da(0xfe)+d+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x5122b2+_0x1628da(0x108)+_0x436d70+'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.'+p+_0x1628da(0x106)+p+_0x1628da(0x100)+d+_0x1628da(0x101)+_0x436d70+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5122b2+_0x1628da(0xf7),_0x222102=document[_0x1628da(0x104)](_0x1628da(0xf6));return _0x222102[_0x1628da(0xf4)]=_0x4ad2bc,_0x222102[_0x1628da(0xf0)]='offline-printing-css',_0x222102;}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 _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};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4ebc9e=_0xec83;(function(_0xeffa6a,_0x12bf61){const _0x53bc4c=_0xec83,_0x4f604a=_0xeffa6a();while(!![]){try{const _0x532bb1=parseInt(_0x53bc4c(0xf5))/0x1+parseInt(_0x53bc4c(0xf9))/0x2+parseInt(_0x53bc4c(0xfd))/0x3*(parseInt(_0x53bc4c(0x10a))/0x4)+parseInt(_0x53bc4c(0x10e))/0x5+-parseInt(_0x53bc4c(0xef))/0x6*(-parseInt(_0x53bc4c(0xfb))/0x7)+-parseInt(_0x53bc4c(0xfc))/0x8+-parseInt(_0x53bc4c(0xff))/0x9;if(_0x532bb1===_0x12bf61)break;else _0x4f604a['push'](_0x4f604a['shift']());}catch(_0x3b1fc4){_0x4f604a['push'](_0x4f604a['shift']());}}}(_0x4239,0xe536c));var e=(_0x594876=>(_0x594876[_0x4ebc9e(0xf2)]=_0x4ebc9e(0xf2),_0x594876[_0x4ebc9e(0xfa)]=_0x4ebc9e(0xfa),_0x594876))(e||{}),l=(_0x20821f=>(_0x20821f[_0x4ebc9e(0xf3)]='Origin',_0x20821f['FitWidth']=_0x4ebc9e(0x102),_0x20821f[_0x4ebc9e(0xf1)]=_0x4ebc9e(0xf1),_0x20821f['FitPage']='FitPage',_0x20821f['Custom']='Custom',_0x20821f))(l||{}),m=(_0x2de65a=>(_0x2de65a[_0x4ebc9e(0x105)]=_0x4ebc9e(0x105),_0x2de65a[_0x4ebc9e(0x103)]=_0x4ebc9e(0x103),_0x2de65a[_0x4ebc9e(0x10d)]=_0x4ebc9e(0x10d),_0x2de65a))(m||{}),o=(_0x29bb77=>(_0x29bb77[_0x4ebc9e(0x107)]=_0x4ebc9e(0x107),_0x29bb77[_0x4ebc9e(0x10c)]=_0x4ebc9e(0x10c),_0x29bb77['Wide']=_0x4ebc9e(0xf8),_0x29bb77[_0x4ebc9e(0x109)]=_0x4ebc9e(0x109),_0x29bb77))(o||{});function _0x4239(){const _0x1b593b=['\x0a\x20\x20\x20\x20.','32171787Kwbawa','\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.','\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','End','createElement','Start',',\x20.','Normal','px\x20','None','3174968akmaWM','printing-canvas-container','Narrow','Middle','5310960wtZmOD','4731672EjlEOT','className','FitHeight','Portrait','Origin','innerHTML','382096vnWcVe','style','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}','Wide','1563090sjELkH','Landscape','14QWlUTJ','666368aHsLaD','3UnVRVt'];_0x4239=function(){return _0x1b593b;};return _0x4239();}const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x4ebc9e(0x10c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x4ebc9e(0xf8)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x4ebc9e(0x109)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x4ebc9e(0x10b),d='printing-canvas';function _0xec83(_0x3860bf,_0x14b95a){const _0x4239f2=_0x4239();return _0xec83=function(_0xec830d,_0x4fa675){_0xec830d=_0xec830d-0xef;let _0x3a5432=_0x4239f2[_0xec830d];return _0x3a5432;},_0xec83(_0x3860bf,_0x14b95a);}function g(_0xed045e,_0x2a9e85,_0x430a7c){const _0x1628da=_0x4ebc9e,_0x5122b2=_0x430a7c===e['Portrait']?_0xed045e:_0x2a9e85,_0x436d70=_0x430a7c===e[_0x1628da(0xf2)]?_0x2a9e85:_0xed045e,_0x4ad2bc=_0x1628da(0xfe)+d+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x5122b2+_0x1628da(0x108)+_0x436d70+'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.'+p+_0x1628da(0x106)+p+_0x1628da(0x100)+d+_0x1628da(0x101)+_0x436d70+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5122b2+_0x1628da(0xf7),_0x222102=document[_0x1628da(0x104)](_0x1628da(0xf6));return _0x222102[_0x1628da(0xf4)]=_0x4ad2bc,_0x222102[_0x1628da(0xf0)]='offline-printing-css',_0x222102;}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 _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};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x59be(){const _0x5315ad=['14329ABughr','Wide','132788nInmMJ','Landscape','135bIZTkE','exports','30QEvzqF','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Narrow','Origin','Start','629350lgJYhg','FitPage','offline-printing-css','function','printing-canvas-container','innerHTML','toStringTag','FitWidth','PRINT_CANVAS_CLASS','Portrait','None','Module','amd','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}','PRINT_CONTAINER_CLASS','Normal','style','727648qTDBjM','\x0a\x20\x20\x20\x20.','PrintDirection','PrintAlign','createPrintStyle',',\x20.','Custom','End','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','2370669yWnrxz','9ZsJEDM','183959HUueKT','createElement','PrintScale','defineProperty','PrintPaperMargin','FitHeight','344664UBnPMv','Middle','PaperMarginMap'];_0x59be=function(){return _0x5315ad;};return _0x59be();}function _0x45b0(_0x45bb5b,_0x259fe1){const _0x59be05=_0x59be();return _0x45b0=function(_0x45b0b3,_0x3fa478){_0x45b0b3=_0x45b0b3-0x1f1;let _0x38b280=_0x59be05[_0x45b0b3];return _0x38b280;},_0x45b0(_0x45bb5b,_0x259fe1);}(function(_0x37a719,_0x2489d1){const _0x1cf1c9=_0x45b0,_0x38dfca=_0x37a719();while(!![]){try{const _0x1c1437=parseInt(_0x1cf1c9(0x208))/0x1+parseInt(_0x1cf1c9(0x1fc))/0x2+parseInt(_0x1cf1c9(0x206))/0x3+parseInt(_0x1cf1c9(0x213))/0x4*(-parseInt(_0x1cf1c9(0x215))/0x5)+parseInt(_0x1cf1c9(0x217))/0x6*(parseInt(_0x1cf1c9(0x211))/0x7)+parseInt(_0x1cf1c9(0x20e))/0x8*(parseInt(_0x1cf1c9(0x207))/0x9)+parseInt(_0x1cf1c9(0x21c))/0xa;if(_0x1c1437===_0x2489d1)break;else _0x38dfca['push'](_0x38dfca['shift']());}catch(_0xdb7cd3){_0x38dfca['push'](_0x38dfca['shift']());}}}(_0x59be,0x88374),function(_0x670c29,_0x30e2fb){const _0xd4da1f=_0x45b0;typeof exports=='object'&&typeof module<'u'?_0x30e2fb(exports):typeof define==_0xd4da1f(0x21f)&&define[_0xd4da1f(0x1f7)]?define([_0xd4da1f(0x216)],_0x30e2fb):(_0x670c29=typeof globalThis<'u'?globalThis:_0x670c29||self,_0x30e2fb(_0x670c29['UniverProPrint']={}));}(this,function(_0x1c144b){'use strict';const _0x185d10=_0x45b0;var _0x368062=(_0x219fcb=>(_0x219fcb['Portrait']=_0x185d10(0x1f4),_0x219fcb['Landscape']=_0x185d10(0x214),_0x219fcb))(_0x368062||{}),_0x5a628a=(_0x103e5d=>(_0x103e5d[_0x185d10(0x21a)]=_0x185d10(0x21a),_0x103e5d[_0x185d10(0x1f2)]='FitWidth',_0x103e5d['FitHeight']=_0x185d10(0x20d),_0x103e5d[_0x185d10(0x21d)]=_0x185d10(0x21d),_0x103e5d[_0x185d10(0x202)]='Custom',_0x103e5d))(_0x5a628a||{}),_0x5b7a11=(_0x384125=>(_0x384125[_0x185d10(0x21b)]='Start',_0x384125[_0x185d10(0x203)]=_0x185d10(0x203),_0x384125['Middle']=_0x185d10(0x20f),_0x384125))(_0x5b7a11||{}),_0x1d3209=(_0x3fd70f=>(_0x3fd70f[_0x185d10(0x1fa)]='Normal',_0x3fd70f[_0x185d10(0x219)]='Narrow',_0x3fd70f['Wide']=_0x185d10(0x212),_0x3fd70f['None']=_0x185d10(0x1f5),_0x3fd70f))(_0x1d3209||{});const _0x1de6ac={[_0x1d3209['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x1d3209[_0x185d10(0x219)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x1d3209['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x1d3209[_0x185d10(0x1f5)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x28b4fa=_0x185d10(0x220),_0x36cfc0='printing-canvas';function _0x192618(_0x1c5331,_0x2452f7,_0x4393ca){const _0xe27a77=_0x185d10,_0x3de678=_0x4393ca===_0x368062[_0xe27a77(0x1f4)]?_0x1c5331:_0x2452f7,_0xf86df4=_0x4393ca===_0x368062['Portrait']?_0x2452f7:_0x1c5331,_0x2d8897=_0xe27a77(0x1fd)+_0x36cfc0+_0xe27a77(0x218)+_0x3de678+'px\x20'+_0xf86df4+'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.'+_0x28b4fa+_0xe27a77(0x201)+_0x28b4fa+'\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.'+_0x36cfc0+_0xe27a77(0x205)+_0xf86df4+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x3de678+_0xe27a77(0x1f8),_0x3a4a2a=document[_0xe27a77(0x209)](_0xe27a77(0x1fb));return _0x3a4a2a[_0xe27a77(0x221)]=_0x2d8897,_0x3a4a2a[_0xe27a77(0x204)]=_0xe27a77(0x21e),_0x3a4a2a;}_0x1c144b[_0x185d10(0x1f3)]=_0x36cfc0,_0x1c144b[_0x185d10(0x1f9)]=_0x28b4fa,_0x1c144b[_0x185d10(0x210)]=_0x1de6ac,_0x1c144b[_0x185d10(0x1ff)]=_0x5b7a11,_0x1c144b[_0x185d10(0x1fe)]=_0x368062,_0x1c144b[_0x185d10(0x20c)]=_0x1d3209,_0x1c144b[_0x185d10(0x20a)]=_0x5a628a,_0x1c144b[_0x185d10(0x200)]=_0x192618,Object[_0x185d10(0x20b)](_0x1c144b,Symbol[_0x185d10(0x1f1)],{'value':_0x185d10(0x1f6)});}));
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)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.8.3",
3
+ "version": "0.9.0",
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.8.3"
48
+ "@univerjs-infra/shared": "0.9.0"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",