@univerjs-pro/print 0.4.0 → 0.4.1-experimental.20241023-bbb123f

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 _0xd0ac(_0x49c31d,_0x2033fa){const _0x1906d1=_0x1906();return _0xd0ac=function(_0xd0ac45,_0x573dff){_0xd0ac45=_0xd0ac45-0x153;let _0x49c16e=_0x1906d1[_0xd0ac45];return _0x49c16e;},_0xd0ac(_0x49c31d,_0x2033fa);}const _0x370dea=_0xd0ac;(function(_0x475910,_0x3a0533){const _0x10167a=_0xd0ac,_0x1ad5e9=_0x475910();while(!![]){try{const _0x42e524=parseInt(_0x10167a(0x161))/0x1+parseInt(_0x10167a(0x182))/0x2*(-parseInt(_0x10167a(0x17b))/0x3)+-parseInt(_0x10167a(0x159))/0x4+parseInt(_0x10167a(0x176))/0x5+-parseInt(_0x10167a(0x17a))/0x6*(-parseInt(_0x10167a(0x166))/0x7)+parseInt(_0x10167a(0x16c))/0x8*(-parseInt(_0x10167a(0x156))/0x9)+-parseInt(_0x10167a(0x185))/0xa;if(_0x42e524===_0x3a0533)break;else _0x1ad5e9['push'](_0x1ad5e9['shift']());}catch(_0x23b397){_0x1ad5e9['push'](_0x1ad5e9['shift']());}}}(_0x1906,0xc9e83));function _0x1906(){const _0x1db0cb=['1823336cEWAWd','PrintPaperSize','Narrow','Middle','Custom','Module','offline-printing-css','PRINT_CANVAS_CLASS','1446423TolEpX','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitHeight','Folio','7kPfYjn','Tabloid','PaperSizePxMap','createElement','Portrait','px\x20','27128VlvhCS','printing-canvas','Landscape','PrintAlign','FitWidth','style','FitPage','className','defineProperty','Statement','5648610cKspgs','Legal','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Letter','774708rVrQqU','26340PMRltR','Normal','Origin','toStringTag','Start','Wide','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','74sTGXDa','PRINT_CONTAINER_CLASS','innerHTML','1141680lReaEy','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Executive','PrintDirection','2610wkiCcV','End','None'];_0x1906=function(){return _0x1db0cb;};return _0x1906();}Object[_0x370dea(0x174)](exports,Symbol[_0x370dea(0x17e)],{'value':_0x370dea(0x15e)});var e=(_0x440ca4=>(_0x440ca4[_0x370dea(0x179)]='Letter',_0x440ca4['Tabloid']=_0x370dea(0x167),_0x440ca4[_0x370dea(0x177)]=_0x370dea(0x177),_0x440ca4[_0x370dea(0x175)]='Statement',_0x440ca4['Executive']='Executive',_0x440ca4[_0x370dea(0x165)]='Folio',_0x440ca4['A3']='A3',_0x440ca4['A4']='A4',_0x440ca4['A5']='A5',_0x440ca4['B4']='B4',_0x440ca4['B5']='B5',_0x440ca4))(e||{}),i=(_0xee58bd=>(_0xee58bd['Portrait']=_0x370dea(0x16a),_0xee58bd[_0x370dea(0x16e)]=_0x370dea(0x16e),_0xee58bd))(i||{}),c=(_0x2c7959=>(_0x2c7959[_0x370dea(0x17d)]=_0x370dea(0x17d),_0x2c7959[_0x370dea(0x170)]=_0x370dea(0x170),_0x2c7959[_0x370dea(0x164)]=_0x370dea(0x164),_0x2c7959[_0x370dea(0x172)]=_0x370dea(0x172),_0x2c7959[_0x370dea(0x15d)]=_0x370dea(0x15d),_0x2c7959))(c||{}),g=(_0x383287=>(_0x383287[_0x370dea(0x17f)]=_0x370dea(0x17f),_0x383287[_0x370dea(0x157)]='End',_0x383287[_0x370dea(0x15c)]='Middle',_0x383287))(g||{}),o=(_0x3b265a=>(_0x3b265a[_0x370dea(0x17c)]='Normal',_0x3b265a[_0x370dea(0x15b)]=_0x370dea(0x15b),_0x3b265a['Wide']=_0x370dea(0x180),_0x3b265a[_0x370dea(0x158)]='None',_0x3b265a))(o||{});const m={[e['A3']]:{'w':0x463,'h':0x633},[e['A4']]:{'w':0x31a,'h':0x464},[e['A5']]:{'w':0x22f,'h':0x31a},[e['B4']]:{'w':0x3b0,'h':0x540},[e['B5']]:{'w':0x299,'h':0x3b0},[e[_0x370dea(0x154)]]:{'w':0x2b8,'h':0x3f0},[e[_0x370dea(0x165)]]:{'w':0x330,'h':0x4e0},[e['Legal']]:{'w':0x330,'h':0x540},[e[_0x370dea(0x179)]]:{'w':0x330,'h':0x420},[e[_0x370dea(0x175)]]:{'w':0x210,'h':0x330},[e[_0x370dea(0x167)]]:{'w':0x420,'h':0x660}},N={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x370dea(0x180)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x370dea(0x158)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n='printing-canvas-container',p=_0x370dea(0x16d);function A(_0x2306ce,_0x370a5b){const _0x35741f=_0x370dea,{w:_0x5c4a2d,h:_0x34ae38}=m[_0x2306ce],_0x117c6e=_0x370a5b===i[_0x35741f(0x16a)]?_0x5c4a2d:_0x34ae38,_0x3222d6=_0x370a5b===i[_0x35741f(0x16a)]?_0x34ae38:_0x5c4a2d,_0x163360=_0x35741f(0x178)+_0x117c6e+_0x35741f(0x16b)+_0x3222d6+'px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+n+',\x20.'+n+_0x35741f(0x162)+p+_0x35741f(0x153)+_0x3222d6+_0x35741f(0x163)+_0x117c6e+_0x35741f(0x181),_0x2a8988=document[_0x35741f(0x169)](_0x35741f(0x171));return _0x2a8988[_0x35741f(0x184)]=_0x163360,_0x2a8988[_0x35741f(0x173)]=_0x35741f(0x15f),_0x2a8988;}exports[_0x370dea(0x160)]=p,exports[_0x370dea(0x183)]=n,exports['PaperMarginMap']=N,exports[_0x370dea(0x168)]=m,exports[_0x370dea(0x16f)]=g,exports[_0x370dea(0x155)]=i,exports['PrintPaperMargin']=o,exports[_0x370dea(0x15a)]=e,exports['PrintScale']=c,exports['createPrintStyle']=A;
1
+ 'use strict';const _0x5d76bb=_0x4d89;(function(_0x49b971,_0x45dde1){const _0x273e43=_0x4d89,_0x2d393b=_0x49b971();while(!![]){try{const _0x1c3f16=-parseInt(_0x273e43(0x96))/0x1*(-parseInt(_0x273e43(0xaa))/0x2)+parseInt(_0x273e43(0xb2))/0x3+-parseInt(_0x273e43(0xaf))/0x4*(-parseInt(_0x273e43(0x90))/0x5)+-parseInt(_0x273e43(0x87))/0x6*(parseInt(_0x273e43(0xb6))/0x7)+parseInt(_0x273e43(0xa8))/0x8*(-parseInt(_0x273e43(0x97))/0x9)+parseInt(_0x273e43(0x8d))/0xa*(-parseInt(_0x273e43(0xa6))/0xb)+-parseInt(_0x273e43(0x92))/0xc*(-parseInt(_0x273e43(0x8c))/0xd);if(_0x1c3f16===_0x45dde1)break;else _0x2d393b['push'](_0x2d393b['shift']());}catch(_0x4bda9d){_0x2d393b['push'](_0x2d393b['shift']());}}}(_0xcdc6,0x762a3));function _0x4d89(_0x191381,_0x201602){const _0xcdc69c=_0xcdc6();return _0x4d89=function(_0x4d8976,_0x47eabc){_0x4d8976=_0x4d8976-0x87;let _0x3faa27=_0xcdc69c[_0x4d8976];return _0x3faa27;},_0x4d89(_0x191381,_0x201602);}function _0xcdc6(){const _0x457103=['PRINT_CANVAS_CLASS','FitPage','626664acrkoK','Portrait','Start','createElement','7WuuPAO','printing-canvas','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','toStringTag','defineProperty','PaperMarginMap','Custom','PrintDirection','1171638VeqnQR','Landscape','Middle','Executive','PRINT_CONTAINER_CLASS','319904hStmmP','4531190pYfkpA','Letter','PrintPaperMargin','5IIWmRg','End','624hkHFXD','px\x20','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Folio','1LbsiTv','180kbmBcL','Normal','PrintPaperSize','createPrintStyle','style','innerHTML','printing-canvas-container','className','Tabloid','None','PrintAlign','Module','Wide','Statement','Narrow','11OHJrwU','px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','198712jaFxlt','FitHeight','265096WUfwsz','Origin','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Legal','FitWidth','32492KAjpmi'];_0xcdc6=function(){return _0x457103;};return _0xcdc6();}Object[_0x5d76bb(0xba)](exports,Symbol[_0x5d76bb(0xb9)],{'value':_0x5d76bb(0xa2)});var e=(_0x205525=>(_0x205525[_0x5d76bb(0x8e)]=_0x5d76bb(0x8e),_0x205525[_0x5d76bb(0x9f)]=_0x5d76bb(0x9f),_0x205525['Legal']=_0x5d76bb(0xad),_0x205525[_0x5d76bb(0xa4)]=_0x5d76bb(0xa4),_0x205525[_0x5d76bb(0x8a)]=_0x5d76bb(0x8a),_0x205525[_0x5d76bb(0x95)]='Folio',_0x205525['A3']='A3',_0x205525['A4']='A4',_0x205525['A5']='A5',_0x205525['B4']='B4',_0x205525['B5']='B5',_0x205525))(e||{}),i=(_0x497e05=>(_0x497e05[_0x5d76bb(0xb3)]='Portrait',_0x497e05[_0x5d76bb(0x88)]=_0x5d76bb(0x88),_0x497e05))(i||{}),c=(_0x5d0c88=>(_0x5d0c88['Origin']=_0x5d76bb(0xab),_0x5d0c88['FitWidth']=_0x5d76bb(0xae),_0x5d0c88[_0x5d76bb(0xa9)]=_0x5d76bb(0xa9),_0x5d0c88[_0x5d76bb(0xb1)]=_0x5d76bb(0xb1),_0x5d0c88[_0x5d76bb(0xbc)]=_0x5d76bb(0xbc),_0x5d0c88))(c||{}),g=(_0x5d9faf=>(_0x5d9faf['Start']=_0x5d76bb(0xb4),_0x5d9faf[_0x5d76bb(0x91)]=_0x5d76bb(0x91),_0x5d9faf[_0x5d76bb(0x89)]=_0x5d76bb(0x89),_0x5d9faf))(g||{}),o=(_0x54b23f=>(_0x54b23f[_0x5d76bb(0x98)]=_0x5d76bb(0x98),_0x54b23f[_0x5d76bb(0xa5)]=_0x5d76bb(0xa5),_0x54b23f[_0x5d76bb(0xa3)]=_0x5d76bb(0xa3),_0x54b23f['None']=_0x5d76bb(0xa0),_0x54b23f))(o||{});const m={[e['A3']]:{'w':0x463,'h':0x633},[e['A4']]:{'w':0x31a,'h':0x464},[e['A5']]:{'w':0x22f,'h':0x31a},[e['B4']]:{'w':0x3b0,'h':0x540},[e['B5']]:{'w':0x299,'h':0x3b0},[e[_0x5d76bb(0x8a)]]:{'w':0x2b8,'h':0x3f0},[e[_0x5d76bb(0x95)]]:{'w':0x330,'h':0x4e0},[e[_0x5d76bb(0xad)]]:{'w':0x330,'h':0x540},[e[_0x5d76bb(0x8e)]]:{'w':0x330,'h':0x420},[e[_0x5d76bb(0xa4)]]:{'w':0x210,'h':0x330},[e[_0x5d76bb(0x9f)]]:{'w':0x420,'h':0x660}},N={[o[_0x5d76bb(0x98)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5d76bb(0xa5)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x5d76bb(0xa3)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x5d76bb(0xa0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x5d76bb(0x9d),p=_0x5d76bb(0xb7);function A(_0x4046f2,_0x14b29a){const _0x4e9b60=_0x5d76bb,{w:_0x3eb6f7,h:_0x507172}=m[_0x4046f2],_0x264d03=_0x14b29a===i[_0x4e9b60(0xb3)]?_0x3eb6f7:_0x507172,_0x3458e4=_0x14b29a===i['Portrait']?_0x507172:_0x3eb6f7,_0x1de04e='\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x264d03+_0x4e9b60(0x93)+_0x3458e4+_0x4e9b60(0xa7)+n+',\x20.'+n+_0x4e9b60(0x94)+p+_0x4e9b60(0xac)+_0x3458e4+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x264d03+_0x4e9b60(0xb8),_0x5cb420=document[_0x4e9b60(0xb5)](_0x4e9b60(0x9b));return _0x5cb420[_0x4e9b60(0x9c)]=_0x1de04e,_0x5cb420[_0x4e9b60(0x9e)]='offline-printing-css',_0x5cb420;}exports[_0x5d76bb(0xb0)]=p,exports[_0x5d76bb(0x8b)]=n,exports[_0x5d76bb(0xbb)]=N,exports['PaperSizePxMap']=m,exports[_0x5d76bb(0xa1)]=g,exports[_0x5d76bb(0xbd)]=i,exports[_0x5d76bb(0x8f)]=o,exports[_0x5d76bb(0x99)]=e,exports['PrintScale']=c,exports[_0x5d76bb(0x9a)]=A;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5388a2=_0x4519;(function(_0x4b53bf,_0x14ee78){const _0x11b079=_0x4519,_0x3b402e=_0x4b53bf();while(!![]){try{const _0x5d93b0=parseInt(_0x11b079(0x7f))/0x1+-parseInt(_0x11b079(0x79))/0x2*(parseInt(_0x11b079(0x80))/0x3)+-parseInt(_0x11b079(0x6b))/0x4+parseInt(_0x11b079(0x7c))/0x5*(parseInt(_0x11b079(0x71))/0x6)+-parseInt(_0x11b079(0x82))/0x7*(-parseInt(_0x11b079(0x6d))/0x8)+parseInt(_0x11b079(0x84))/0x9*(-parseInt(_0x11b079(0x6e))/0xa)+parseInt(_0x11b079(0x73))/0xb*(parseInt(_0x11b079(0x83))/0xc);if(_0x5d93b0===_0x14ee78)break;else _0x3b402e['push'](_0x3b402e['shift']());}catch(_0x2848d2){_0x3b402e['push'](_0x3b402e['shift']());}}}(_0xe199,0xc297e));var o=(_0x12fde=>(_0x12fde[_0x5388a2(0x74)]=_0x5388a2(0x74),_0x12fde[_0x5388a2(0x7d)]=_0x5388a2(0x7d),_0x12fde[_0x5388a2(0x67)]=_0x5388a2(0x67),_0x12fde['Statement']=_0x5388a2(0x7e),_0x12fde[_0x5388a2(0x76)]=_0x5388a2(0x76),_0x12fde[_0x5388a2(0x88)]=_0x5388a2(0x88),_0x12fde['A3']='A3',_0x12fde['A4']='A4',_0x12fde['A5']='A5',_0x12fde['B4']='B4',_0x12fde['B5']='B5',_0x12fde))(o||{}),i=(_0x2c5cbc=>(_0x2c5cbc[_0x5388a2(0x66)]=_0x5388a2(0x66),_0x2c5cbc[_0x5388a2(0x77)]=_0x5388a2(0x77),_0x2c5cbc))(i||{}),w=(_0x508934=>(_0x508934[_0x5388a2(0x8a)]='Origin',_0x508934[_0x5388a2(0x6c)]=_0x5388a2(0x6c),_0x508934[_0x5388a2(0x7a)]='FitHeight',_0x508934[_0x5388a2(0x70)]='FitPage',_0x508934[_0x5388a2(0x75)]=_0x5388a2(0x75),_0x508934))(w||{}),m=(_0x55acd4=>(_0x55acd4[_0x5388a2(0x86)]=_0x5388a2(0x86),_0x55acd4[_0x5388a2(0x65)]=_0x5388a2(0x65),_0x55acd4[_0x5388a2(0x8b)]='Middle',_0x55acd4))(m||{}),e=(_0xd1121=>(_0xd1121[_0x5388a2(0x69)]=_0x5388a2(0x69),_0xd1121['Narrow']='Narrow',_0xd1121['Wide']='Wide',_0xd1121['None']=_0x5388a2(0x87),_0xd1121))(e||{});const g={[o['A3']]:{'w':0x463,'h':0x633},[o['A4']]:{'w':0x31a,'h':0x464},[o['A5']]:{'w':0x22f,'h':0x31a},[o['B4']]:{'w':0x3b0,'h':0x540},[o['B5']]:{'w':0x299,'h':0x3b0},[o[_0x5388a2(0x76)]]:{'w':0x2b8,'h':0x3f0},[o['Folio']]:{'w':0x330,'h':0x4e0},[o[_0x5388a2(0x67)]]:{'w':0x330,'h':0x540},[o['Letter']]:{'w':0x330,'h':0x420},[o['Statement']]:{'w':0x210,'h':0x330},[o[_0x5388a2(0x7d)]]:{'w':0x420,'h':0x660}},v={[e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x5388a2(0x81)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x5388a2(0x68)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x5388a2(0x87)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x5388a2(0x6f),p=_0x5388a2(0x72);function _0xe199(){const _0x3d3cfd=['Statement','123457nlGlqk','3iaXyWi','Narrow','77esBSTh','11095368UizcnV','9NdbapL','createElement','Start','None','Folio','innerHTML','Origin','Middle','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','End','Portrait','Legal','Wide','Normal','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','226512kFrTXb','FitWidth','952120dnxwhh','11353870gwfxpC','printing-canvas-container','FitPage','6DNdYQk','printing-canvas','11xpbXQu','Letter','Custom','Executive','Landscape','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','2884990AoMVOw','FitHeight','offline-printing-css','5371640CIeAwz','Tabloid'];_0xe199=function(){return _0x3d3cfd;};return _0xe199();}function N(_0x4c7738,_0x21b89a){const _0x569013=_0x5388a2,{w:_0x35147d,h:_0x59a826}=g[_0x4c7738],_0x52f21d=_0x21b89a===i[_0x569013(0x66)]?_0x35147d:_0x59a826,_0x37358d=_0x21b89a===i['Portrait']?_0x59a826:_0x35147d,_0x4659c0=_0x569013(0x78)+_0x52f21d+'px\x20'+_0x37358d+'px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+l+',\x20.'+l+_0x569013(0x8c)+p+_0x569013(0x6a)+_0x37358d+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x52f21d+_0x569013(0x8d),_0x17400d=document[_0x569013(0x85)]('style');return _0x17400d[_0x569013(0x89)]=_0x4659c0,_0x17400d['className']=_0x569013(0x7b),_0x17400d;}function _0x4519(_0x3b8a26,_0x4289b6){const _0xe19949=_0xe199();return _0x4519=function(_0x451961,_0x47d964){_0x451961=_0x451961-0x65;let _0x1433ab=_0xe19949[_0x451961];return _0x1433ab;},_0x4519(_0x3b8a26,_0x4289b6);}export{p as PRINT_CANVAS_CLASS,l as PRINT_CONTAINER_CLASS,v as PaperMarginMap,g as PaperSizePxMap,m as PrintAlign,i as PrintDirection,e as PrintPaperMargin,o as PrintPaperSize,w as PrintScale,N as createPrintStyle};
1
+ const _0x242a3e=_0x3b0b;(function(_0x5b044e,_0x151e29){const _0x421302=_0x3b0b,_0xda804b=_0x5b044e();while(!![]){try{const _0x2b9830=-parseInt(_0x421302(0x15b))/0x1*(-parseInt(_0x421302(0x163))/0x2)+parseInt(_0x421302(0x164))/0x3*(-parseInt(_0x421302(0x152))/0x4)+-parseInt(_0x421302(0x14b))/0x5+parseInt(_0x421302(0x161))/0x6*(-parseInt(_0x421302(0x15d))/0x7)+parseInt(_0x421302(0x160))/0x8*(-parseInt(_0x421302(0x158))/0x9)+-parseInt(_0x421302(0x157))/0xa+parseInt(_0x421302(0x148))/0xb;if(_0x2b9830===_0x151e29)break;else _0xda804b['push'](_0xda804b['shift']());}catch(_0x452d55){_0xda804b['push'](_0xda804b['shift']());}}}(_0x2c8f,0x5cf7a));function _0x2c8f(){const _0x69fe89=['21027160uUhwpo','FitPage','Origin','528950dGsvIn','Narrow','Tabloid','Legal','Portrait','Folio','FitWidth','176SrNeqC','Executive','FitHeight','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','7219440BFkhNH','12681kQYvvu','Landscape','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','3IaCogC','Middle','7jcDcZZ','offline-printing-css',',\x20.','1136cYbVHi','666114ybkvHq','createElement','200710FfqVkR','47250RNAYLo','End','Start','Wide','className','Custom','px\x20','Statement','None','Letter','Normal'];_0x2c8f=function(){return _0x69fe89;};return _0x2c8f();}var o=(_0x5d7ecc=>(_0x5d7ecc[_0x242a3e(0x16d)]=_0x242a3e(0x16d),_0x5d7ecc[_0x242a3e(0x14d)]='Tabloid',_0x5d7ecc['Legal']=_0x242a3e(0x14e),_0x5d7ecc[_0x242a3e(0x16b)]=_0x242a3e(0x16b),_0x5d7ecc[_0x242a3e(0x153)]=_0x242a3e(0x153),_0x5d7ecc[_0x242a3e(0x150)]='Folio',_0x5d7ecc['A3']='A3',_0x5d7ecc['A4']='A4',_0x5d7ecc['A5']='A5',_0x5d7ecc['B4']='B4',_0x5d7ecc['B5']='B5',_0x5d7ecc))(o||{}),i=(_0x477a2e=>(_0x477a2e[_0x242a3e(0x14f)]=_0x242a3e(0x14f),_0x477a2e[_0x242a3e(0x159)]=_0x242a3e(0x159),_0x477a2e))(i||{}),w=(_0x15df67=>(_0x15df67[_0x242a3e(0x14a)]=_0x242a3e(0x14a),_0x15df67['FitWidth']=_0x242a3e(0x151),_0x15df67['FitHeight']=_0x242a3e(0x154),_0x15df67[_0x242a3e(0x149)]=_0x242a3e(0x149),_0x15df67[_0x242a3e(0x169)]='Custom',_0x15df67))(w||{}),m=(_0x220ea6=>(_0x220ea6[_0x242a3e(0x166)]=_0x242a3e(0x166),_0x220ea6[_0x242a3e(0x165)]=_0x242a3e(0x165),_0x220ea6[_0x242a3e(0x15c)]=_0x242a3e(0x15c),_0x220ea6))(m||{}),e=(_0x401c5b=>(_0x401c5b[_0x242a3e(0x147)]=_0x242a3e(0x147),_0x401c5b[_0x242a3e(0x14c)]=_0x242a3e(0x14c),_0x401c5b[_0x242a3e(0x167)]=_0x242a3e(0x167),_0x401c5b['None']=_0x242a3e(0x16c),_0x401c5b))(e||{});const g={[o['A3']]:{'w':0x463,'h':0x633},[o['A4']]:{'w':0x31a,'h':0x464},[o['A5']]:{'w':0x22f,'h':0x31a},[o['B4']]:{'w':0x3b0,'h':0x540},[o['B5']]:{'w':0x299,'h':0x3b0},[o['Executive']]:{'w':0x2b8,'h':0x3f0},[o['Folio']]:{'w':0x330,'h':0x4e0},[o['Legal']]:{'w':0x330,'h':0x540},[o['Letter']]:{'w':0x330,'h':0x420},[o[_0x242a3e(0x16b)]]:{'w':0x210,'h':0x330},[o[_0x242a3e(0x14d)]]:{'w':0x420,'h':0x660}},v={[e[_0x242a3e(0x147)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x242a3e(0x14c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x242a3e(0x16c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p='printing-canvas';function _0x3b0b(_0x5bbb8b,_0xd035fd){const _0x2c8f4d=_0x2c8f();return _0x3b0b=function(_0x3b0b52,_0x3eaf4e){_0x3b0b52=_0x3b0b52-0x147;let _0x3313cf=_0x2c8f4d[_0x3b0b52];return _0x3313cf;},_0x3b0b(_0x5bbb8b,_0xd035fd);}function N(_0x15c25d,_0x3a386e){const _0x38094c=_0x242a3e,{w:_0x1fdc46,h:_0x46715b}=g[_0x15c25d],_0x3678ef=_0x3a386e===i[_0x38094c(0x14f)]?_0x1fdc46:_0x46715b,_0x327987=_0x3a386e===i[_0x38094c(0x14f)]?_0x46715b:_0x1fdc46,_0x104d1a=_0x38094c(0x15a)+_0x3678ef+_0x38094c(0x16a)+_0x327987+'px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+l+_0x38094c(0x15f)+l+_0x38094c(0x155)+p+_0x38094c(0x156)+_0x327987+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x3678ef+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0xbaa151=document[_0x38094c(0x162)]('style');return _0xbaa151['innerHTML']=_0x104d1a,_0xbaa151[_0x38094c(0x168)]=_0x38094c(0x15e),_0xbaa151;}export{p as PRINT_CANVAS_CLASS,l as PRINT_CONTAINER_CLASS,v as PaperMarginMap,g as PaperSizePxMap,m as PrintAlign,i as PrintDirection,e as PrintPaperMargin,o as PrintPaperSize,w as PrintScale,N as createPrintStyle};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x1bbd38,_0x467f1e){const _0x245df9=_0xa858,_0x50f580=_0x1bbd38();while(!![]){try{const _0x361546=-parseInt(_0x245df9(0x6e))/0x1*(parseInt(_0x245df9(0x81))/0x2)+-parseInt(_0x245df9(0x8d))/0x3+parseInt(_0x245df9(0x92))/0x4+-parseInt(_0x245df9(0x88))/0x5+-parseInt(_0x245df9(0x86))/0x6+-parseInt(_0x245df9(0x6d))/0x7*(-parseInt(_0x245df9(0x71))/0x8)+-parseInt(_0x245df9(0x68))/0x9*(-parseInt(_0x245df9(0x8b))/0xa);if(_0x361546===_0x467f1e)break;else _0x50f580['push'](_0x50f580['shift']());}catch(_0x3174a2){_0x50f580['push'](_0x50f580['shift']());}}}(_0x4a27,0x765a9),function(_0x16cfdf,_0x59b42c){const _0xe75035=_0xa858;typeof exports=='object'&&typeof module<'u'?_0x59b42c(exports):typeof define=='function'&&define[_0xe75035(0x73)]?define([_0xe75035(0x85)],_0x59b42c):(_0x16cfdf=typeof globalThis<'u'?globalThis:_0x16cfdf||self,_0x59b42c(_0x16cfdf['UniverPrint']={}));}(this,function(_0x2ddd5c){'use strict';const _0x58539e=_0xa858;var _0x33d722=(_0x455ae0=>(_0x455ae0['Letter']=_0x58539e(0x78),_0x455ae0[_0x58539e(0x90)]='Tabloid',_0x455ae0[_0x58539e(0x9a)]='Legal',_0x455ae0[_0x58539e(0x82)]=_0x58539e(0x82),_0x455ae0[_0x58539e(0x77)]=_0x58539e(0x77),_0x455ae0[_0x58539e(0x7a)]=_0x58539e(0x7a),_0x455ae0['A3']='A3',_0x455ae0['A4']='A4',_0x455ae0['A5']='A5',_0x455ae0['B4']='B4',_0x455ae0['B5']='B5',_0x455ae0))(_0x33d722||{}),_0x376dcd=(_0x1e1fe7=>(_0x1e1fe7[_0x58539e(0x7d)]='Portrait',_0x1e1fe7[_0x58539e(0x83)]=_0x58539e(0x83),_0x1e1fe7))(_0x376dcd||{}),_0x3d46ea=(_0x4e1e28=>(_0x4e1e28['Origin']='Origin',_0x4e1e28['FitWidth']='FitWidth',_0x4e1e28[_0x58539e(0x8f)]=_0x58539e(0x8f),_0x4e1e28['FitPage']='FitPage',_0x4e1e28[_0x58539e(0x8e)]='Custom',_0x4e1e28))(_0x3d46ea||{}),_0x3c224e=(_0x4d0003=>(_0x4d0003['Start']=_0x58539e(0x79),_0x4d0003[_0x58539e(0x8a)]=_0x58539e(0x8a),_0x4d0003[_0x58539e(0x72)]=_0x58539e(0x72),_0x4d0003))(_0x3c224e||{}),_0x2d2840=(_0x4294e0=>(_0x4294e0['Normal']='Normal',_0x4294e0[_0x58539e(0x6f)]=_0x58539e(0x6f),_0x4294e0[_0x58539e(0x94)]=_0x58539e(0x94),_0x4294e0[_0x58539e(0x74)]='None',_0x4294e0))(_0x2d2840||{});const _0x3dfbbc={[_0x33d722['A3']]:{'w':0x463,'h':0x633},[_0x33d722['A4']]:{'w':0x31a,'h':0x464},[_0x33d722['A5']]:{'w':0x22f,'h':0x31a},[_0x33d722['B4']]:{'w':0x3b0,'h':0x540},[_0x33d722['B5']]:{'w':0x299,'h':0x3b0},[_0x33d722[_0x58539e(0x77)]]:{'w':0x2b8,'h':0x3f0},[_0x33d722[_0x58539e(0x7a)]]:{'w':0x330,'h':0x4e0},[_0x33d722[_0x58539e(0x9a)]]:{'w':0x330,'h':0x540},[_0x33d722[_0x58539e(0x78)]]:{'w':0x330,'h':0x420},[_0x33d722['Statement']]:{'w':0x210,'h':0x330},[_0x33d722[_0x58539e(0x90)]]:{'w':0x420,'h':0x660}},_0x5ce74d={[_0x2d2840['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x2d2840[_0x58539e(0x6f)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x2d2840[_0x58539e(0x94)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x2d2840[_0x58539e(0x74)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x2152bd=_0x58539e(0x69),_0x2b7e76=_0x58539e(0x91);function _0x13a2b6(_0x52726c,_0x1b48d0){const _0x586a20=_0x58539e,{w:_0x2aad18,h:_0x200764}=_0x3dfbbc[_0x52726c],_0x314c50=_0x1b48d0===_0x376dcd[_0x586a20(0x7d)]?_0x2aad18:_0x200764,_0x5c4c4b=_0x1b48d0===_0x376dcd[_0x586a20(0x7d)]?_0x200764:_0x2aad18,_0x27ddba=_0x586a20(0x89)+_0x314c50+_0x586a20(0x99)+_0x5c4c4b+_0x586a20(0x7f)+_0x2152bd+_0x586a20(0x87)+_0x2152bd+_0x586a20(0x93)+_0x2b7e76+_0x586a20(0x84)+_0x5c4c4b+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x314c50+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x1a78ee=document[_0x586a20(0x80)](_0x586a20(0x6a));return _0x1a78ee[_0x586a20(0x7b)]=_0x27ddba,_0x1a78ee[_0x586a20(0x7e)]=_0x586a20(0x97),_0x1a78ee;}_0x2ddd5c[_0x58539e(0x76)]=_0x2b7e76,_0x2ddd5c[_0x58539e(0x98)]=_0x2152bd,_0x2ddd5c[_0x58539e(0x95)]=_0x5ce74d,_0x2ddd5c['PaperSizePxMap']=_0x3dfbbc,_0x2ddd5c['PrintAlign']=_0x3c224e,_0x2ddd5c[_0x58539e(0x6c)]=_0x376dcd,_0x2ddd5c[_0x58539e(0x8c)]=_0x2d2840,_0x2ddd5c[_0x58539e(0x96)]=_0x33d722,_0x2ddd5c[_0x58539e(0x7c)]=_0x3d46ea,_0x2ddd5c[_0x58539e(0x70)]=_0x13a2b6,Object['defineProperty'](_0x2ddd5c,Symbol[_0x58539e(0x6b)],{'value':_0x58539e(0x75)});}));function _0xa858(_0x12e89a,_0x25a1d8){const _0x4a2723=_0x4a27();return _0xa858=function(_0xa858c5,_0x39fe72){_0xa858c5=_0xa858c5-0x68;let _0x597cc4=_0x4a2723[_0xa858c5];return _0x597cc4;},_0xa858(_0x12e89a,_0x25a1d8);}function _0x4a27(){const _0x20e50a=['px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','createElement','54ulhiJI','Statement','Landscape','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','exports','2902746jHPFyk',',\x20.','221015DWbCky','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','End','18900jvmzzz','PrintPaperMargin','692031XqxtZT','Custom','FitHeight','Tabloid','printing-canvas','1959104wZpzku','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Wide','PaperMarginMap','PrintPaperSize','offline-printing-css','PRINT_CONTAINER_CLASS','px\x20','Legal','1989kqtnvK','printing-canvas-container','style','toStringTag','PrintDirection','1645546kyCXAr','13676NFWAaA','Narrow','createPrintStyle','24fxXgDR','Middle','amd','None','Module','PRINT_CANVAS_CLASS','Executive','Letter','Start','Folio','innerHTML','PrintScale','Portrait','className'];_0x4a27=function(){return _0x20e50a;};return _0x4a27();}
1
+ function _0xe6de(_0x381118,_0x2a0fd2){const _0x2581a0=_0x2581();return _0xe6de=function(_0xe6de00,_0x144fac){_0xe6de00=_0xe6de00-0xeb;let _0x1afd14=_0x2581a0[_0xe6de00];return _0x1afd14;},_0xe6de(_0x381118,_0x2a0fd2);}(function(_0x15254e,_0x30c727){const _0x34ccfd=_0xe6de,_0x15605f=_0x15254e();while(!![]){try{const _0x2bd01f=parseInt(_0x34ccfd(0x103))/0x1+-parseInt(_0x34ccfd(0x10d))/0x2*(-parseInt(_0x34ccfd(0x119))/0x3)+-parseInt(_0x34ccfd(0x10b))/0x4*(parseInt(_0x34ccfd(0xfb))/0x5)+parseInt(_0x34ccfd(0xf5))/0x6*(-parseInt(_0x34ccfd(0x116))/0x7)+-parseInt(_0x34ccfd(0x118))/0x8*(parseInt(_0x34ccfd(0xfe))/0x9)+-parseInt(_0x34ccfd(0x104))/0xa*(-parseInt(_0x34ccfd(0x11b))/0xb)+-parseInt(_0x34ccfd(0x120))/0xc*(-parseInt(_0x34ccfd(0xfc))/0xd);if(_0x2bd01f===_0x30c727)break;else _0x15605f['push'](_0x15605f['shift']());}catch(_0x54d261){_0x15605f['push'](_0x15605f['shift']());}}}(_0x2581,0x82b1b),function(_0x5efc04,_0x4c0c21){const _0x466314=_0xe6de;typeof exports==_0x466314(0x112)&&typeof module<'u'?_0x4c0c21(exports):typeof define==_0x466314(0x106)&&define['amd']?define([_0x466314(0x115)],_0x4c0c21):(_0x5efc04=typeof globalThis<'u'?globalThis:_0x5efc04||self,_0x4c0c21(_0x5efc04[_0x466314(0xf9)]={}));}(this,function(_0x4d6fa4){'use strict';const _0x2954dd=_0xe6de;var _0x2081ff=(_0x257653=>(_0x257653['Letter']=_0x2954dd(0xf3),_0x257653[_0x2954dd(0x11e)]=_0x2954dd(0x11e),_0x257653[_0x2954dd(0xf1)]='Legal',_0x257653[_0x2954dd(0x10e)]=_0x2954dd(0x10e),_0x257653[_0x2954dd(0xff)]=_0x2954dd(0xff),_0x257653[_0x2954dd(0xeb)]=_0x2954dd(0xeb),_0x257653['A3']='A3',_0x257653['A4']='A4',_0x257653['A5']='A5',_0x257653['B4']='B4',_0x257653['B5']='B5',_0x257653))(_0x2081ff||{}),_0x201cb2=(_0x379b93=>(_0x379b93[_0x2954dd(0x10f)]=_0x2954dd(0x10f),_0x379b93[_0x2954dd(0x11a)]='Landscape',_0x379b93))(_0x201cb2||{}),_0x3b2660=(_0x56a687=>(_0x56a687[_0x2954dd(0xfd)]=_0x2954dd(0xfd),_0x56a687[_0x2954dd(0x100)]=_0x2954dd(0x100),_0x56a687[_0x2954dd(0xed)]=_0x2954dd(0xed),_0x56a687[_0x2954dd(0x111)]='FitPage',_0x56a687[_0x2954dd(0x117)]=_0x2954dd(0x117),_0x56a687))(_0x3b2660||{}),_0x215610=(_0xcf5ff9=>(_0xcf5ff9['Start']=_0x2954dd(0x122),_0xcf5ff9[_0x2954dd(0x114)]=_0x2954dd(0x114),_0xcf5ff9[_0x2954dd(0xfa)]='Middle',_0xcf5ff9))(_0x215610||{}),_0x3e729=(_0x12d29c=>(_0x12d29c['Normal']='Normal',_0x12d29c[_0x2954dd(0xf2)]=_0x2954dd(0xf2),_0x12d29c[_0x2954dd(0x110)]=_0x2954dd(0x110),_0x12d29c[_0x2954dd(0xf8)]='None',_0x12d29c))(_0x3e729||{});const _0x1d2154={[_0x2081ff['A3']]:{'w':0x463,'h':0x633},[_0x2081ff['A4']]:{'w':0x31a,'h':0x464},[_0x2081ff['A5']]:{'w':0x22f,'h':0x31a},[_0x2081ff['B4']]:{'w':0x3b0,'h':0x540},[_0x2081ff['B5']]:{'w':0x299,'h':0x3b0},[_0x2081ff[_0x2954dd(0xff)]]:{'w':0x2b8,'h':0x3f0},[_0x2081ff[_0x2954dd(0xeb)]]:{'w':0x330,'h':0x4e0},[_0x2081ff[_0x2954dd(0xf1)]]:{'w':0x330,'h':0x540},[_0x2081ff[_0x2954dd(0xf3)]]:{'w':0x330,'h':0x420},[_0x2081ff[_0x2954dd(0x10e)]]:{'w':0x210,'h':0x330},[_0x2081ff[_0x2954dd(0x11e)]]:{'w':0x420,'h':0x660}},_0x5d6d4c={[_0x3e729[_0x2954dd(0x101)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x3e729['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x3e729[_0x2954dd(0x110)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x3e729[_0x2954dd(0xf8)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x23917b=_0x2954dd(0x109),_0x2b0e82='printing-canvas';function _0x15a383(_0x5603f0,_0x3ce830){const _0x4b76f0=_0x2954dd,{w:_0x5f1109,h:_0x1a2e85}=_0x1d2154[_0x5603f0],_0x2d5b34=_0x3ce830===_0x201cb2[_0x4b76f0(0x10f)]?_0x5f1109:_0x1a2e85,_0x3f0d96=_0x3ce830===_0x201cb2[_0x4b76f0(0x10f)]?_0x1a2e85:_0x5f1109,_0x51db44=_0x4b76f0(0xec)+_0x2d5b34+_0x4b76f0(0x10a)+_0x3f0d96+'px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+_0x23917b+_0x4b76f0(0xef)+_0x23917b+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+_0x2b0e82+_0x4b76f0(0xf4)+_0x3f0d96+_0x4b76f0(0x11f)+_0x2d5b34+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x1b374c=document['createElement'](_0x4b76f0(0x10c));return _0x1b374c[_0x4b76f0(0x102)]=_0x51db44,_0x1b374c[_0x4b76f0(0x11c)]='offline-printing-css',_0x1b374c;}_0x4d6fa4['PRINT_CANVAS_CLASS']=_0x2b0e82,_0x4d6fa4['PRINT_CONTAINER_CLASS']=_0x23917b,_0x4d6fa4[_0x2954dd(0x105)]=_0x5d6d4c,_0x4d6fa4[_0x2954dd(0xf7)]=_0x1d2154,_0x4d6fa4[_0x2954dd(0xf0)]=_0x215610,_0x4d6fa4[_0x2954dd(0x108)]=_0x201cb2,_0x4d6fa4[_0x2954dd(0x113)]=_0x3e729,_0x4d6fa4[_0x2954dd(0xf6)]=_0x2081ff,_0x4d6fa4['PrintScale']=_0x3b2660,_0x4d6fa4[_0x2954dd(0x107)]=_0x15a383,Object[_0x2954dd(0x121)](_0x4d6fa4,Symbol[_0x2954dd(0xee)],{'value':_0x2954dd(0x11d)});}));function _0x2581(){const _0x16c1a3=['exports','1477VnrhSL','Custom','8WnGHXg','2983371WqnNNj','Landscape','132cXmcht','className','Module','Tabloid','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','12lRJduf','defineProperty','Start','Folio','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','FitHeight','toStringTag',',\x20.','PrintAlign','Legal','Narrow','Letter','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','29094NPgLux','PrintPaperSize','PaperSizePxMap','None','UniverPrint','Middle','7210OHKYPG','12635064VLxbbB','Origin','4131045VTebuT','Executive','FitWidth','Normal','innerHTML','30000MXGgiQ','566730ELsrKA','PaperMarginMap','function','createPrintStyle','PrintDirection','printing-canvas-container','px\x20','1828zFFlFl','style','2dIDjUV','Statement','Portrait','Wide','FitPage','object','PrintPaperMargin','End'];_0x2581=function(){return _0x16c1a3;};return _0x2581();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.4.0",
3
+ "version": "0.4.1-experimental.20241023-bbb123f",
4
4
  "private": false,
5
5
  "description": "Print module for UniverJS",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -46,7 +46,7 @@
46
46
  "typescript": "5.6.3",
47
47
  "vite": "^5.4.8",
48
48
  "vitest": "^2.1.2",
49
- "@univerjs-infra/shared": "0.4.0"
49
+ "@univerjs-infra/shared": "0.4.1"
50
50
  },
51
51
  "univerSpace": {
52
52
  ".": {