@univerjs-pro/print 0.4.0 → 0.4.1-nightly.202410201605

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 _0x128164=_0x5e82;(function(_0x893de9,_0x382825){const _0x40243d=_0x5e82,_0x41ac67=_0x893de9();while(!![]){try{const _0x52e618=-parseInt(_0x40243d(0x142))/0x1+parseInt(_0x40243d(0x151))/0x2*(parseInt(_0x40243d(0x164))/0x3)+parseInt(_0x40243d(0x168))/0x4*(-parseInt(_0x40243d(0x154))/0x5)+-parseInt(_0x40243d(0x13e))/0x6*(-parseInt(_0x40243d(0x169))/0x7)+parseInt(_0x40243d(0x136))/0x8*(parseInt(_0x40243d(0x141))/0x9)+-parseInt(_0x40243d(0x144))/0xa+-parseInt(_0x40243d(0x15b))/0xb*(-parseInt(_0x40243d(0x166))/0xc);if(_0x52e618===_0x382825)break;else _0x41ac67['push'](_0x41ac67['shift']());}catch(_0xc3431a){_0x41ac67['push'](_0x41ac67['shift']());}}}(_0x5de5,0x1a361));Object[_0x128164(0x15a)](exports,Symbol[_0x128164(0x13b)],{'value':_0x128164(0x15c)});var e=(_0x195d7a=>(_0x195d7a[_0x128164(0x149)]=_0x128164(0x149),_0x195d7a[_0x128164(0x158)]=_0x128164(0x158),_0x195d7a[_0x128164(0x152)]=_0x128164(0x152),_0x195d7a[_0x128164(0x163)]=_0x128164(0x163),_0x195d7a[_0x128164(0x14a)]=_0x128164(0x14a),_0x195d7a[_0x128164(0x155)]=_0x128164(0x155),_0x195d7a['A3']='A3',_0x195d7a['A4']='A4',_0x195d7a['A5']='A5',_0x195d7a['B4']='B4',_0x195d7a['B5']='B5',_0x195d7a))(e||{}),i=(_0xbe5e51=>(_0xbe5e51[_0x128164(0x13f)]='Portrait',_0xbe5e51['Landscape']=_0x128164(0x147),_0xbe5e51))(i||{}),c=(_0xa79563=>(_0xa79563[_0x128164(0x146)]='Origin',_0xa79563[_0x128164(0x13c)]=_0x128164(0x13c),_0xa79563[_0x128164(0x15d)]=_0x128164(0x15d),_0xa79563['FitPage']=_0x128164(0x16b),_0xa79563['Custom']=_0x128164(0x162),_0xa79563))(c||{}),g=(_0x2a0e88=>(_0x2a0e88[_0x128164(0x14c)]=_0x128164(0x14c),_0x2a0e88[_0x128164(0x137)]='End',_0x2a0e88[_0x128164(0x159)]='Middle',_0x2a0e88))(g||{}),o=(_0x4a422a=>(_0x4a422a[_0x128164(0x148)]='Normal',_0x4a422a['Narrow']=_0x128164(0x167),_0x4a422a[_0x128164(0x150)]=_0x128164(0x150),_0x4a422a[_0x128164(0x14b)]=_0x128164(0x14b),_0x4a422a))(o||{});function _0x5e82(_0x4282e1,_0x14652a){const _0x5de599=_0x5de5();return _0x5e82=function(_0x5e8210,_0x3a9ad){_0x5e8210=_0x5e8210-0x136;let _0x2d312c=_0x5de599[_0x5e8210];return _0x2d312c;},_0x5e82(_0x4282e1,_0x14652a);}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['Executive']]:{'w':0x2b8,'h':0x3f0},[e['Folio']]:{'w':0x330,'h':0x4e0},[e[_0x128164(0x152)]]:{'w':0x330,'h':0x540},[e[_0x128164(0x149)]]:{'w':0x330,'h':0x420},[e[_0x128164(0x163)]]:{'w':0x210,'h':0x330},[e[_0x128164(0x158)]]:{'w':0x420,'h':0x660}},N={[o[_0x128164(0x148)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x128164(0x167)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x128164(0x14b)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x128164(0x145),p='printing-canvas';function A(_0x488f9c,_0x211eb9){const _0x50968e=_0x128164,{w:_0x4648de,h:_0x29437e}=m[_0x488f9c],_0x24ded7=_0x211eb9===i[_0x50968e(0x13f)]?_0x4648de:_0x29437e,_0x332c86=_0x211eb9===i['Portrait']?_0x29437e:_0x4648de,_0x4e5d04=_0x50968e(0x13d)+_0x24ded7+_0x50968e(0x15e)+_0x332c86+_0x50968e(0x14d)+n+_0x50968e(0x140)+n+_0x50968e(0x156)+p+_0x50968e(0x13a)+_0x332c86+_0x50968e(0x165)+_0x24ded7+_0x50968e(0x15f),_0xdf9719=document[_0x50968e(0x14f)](_0x50968e(0x14e));return _0xdf9719[_0x50968e(0x153)]=_0x4e5d04,_0xdf9719[_0x50968e(0x161)]=_0x50968e(0x157),_0xdf9719;}function _0x5de5(){const _0x4e877f=['Folio','\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.','offline-printing-css','Tabloid','Middle','defineProperty','1991RzlPXS','Module','FitHeight','px\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','PrintAlign','className','Custom','Statement','3qjwTND','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','10632rIFYVR','Narrow','225464ZsPJQG','150983iSarUU','PrintPaperMargin','FitPage','336656JetYxT','End','createPrintStyle','PRINT_CONTAINER_CLASS','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','toStringTag','FitWidth','\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','6PkrgbH','Portrait',',\x20.','45OWFpOZ','104718dvDLlD','PRINT_CANVAS_CLASS','2013870wTPZVR','printing-canvas-container','Origin','Landscape','Normal','Letter','Executive','None','Start','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.','style','createElement','Wide','267706wDWrJE','Legal','innerHTML','10eeuIeA'];_0x5de5=function(){return _0x4e877f;};return _0x5de5();}exports[_0x128164(0x143)]=p,exports[_0x128164(0x139)]=n,exports['PaperMarginMap']=N,exports['PaperSizePxMap']=m,exports[_0x128164(0x160)]=g,exports['PrintDirection']=i,exports[_0x128164(0x16a)]=o,exports['PrintPaperSize']=e,exports['PrintScale']=c,exports[_0x128164(0x138)]=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 _0x558fb7=_0x3a82;(function(_0x33b87f,_0x6d2656){const _0x56beda=_0x3a82,_0x16bd0c=_0x33b87f();while(!![]){try{const _0x1c41ad=-parseInt(_0x56beda(0xfd))/0x1+parseInt(_0x56beda(0x109))/0x2*(-parseInt(_0x56beda(0x104))/0x3)+-parseInt(_0x56beda(0xeb))/0x4+parseInt(_0x56beda(0xf5))/0x5+-parseInt(_0x56beda(0xfa))/0x6*(-parseInt(_0x56beda(0xe8))/0x7)+parseInt(_0x56beda(0x100))/0x8+parseInt(_0x56beda(0xe5))/0x9;if(_0x1c41ad===_0x6d2656)break;else _0x16bd0c['push'](_0x16bd0c['shift']());}catch(_0x26fd9c){_0x16bd0c['push'](_0x16bd0c['shift']());}}}(_0x1f7d,0xc1fea));function _0x3a82(_0x585657,_0x4c3be3){const _0x1f7dd2=_0x1f7d();return _0x3a82=function(_0x3a8269,_0x187788){_0x3a8269=_0x3a8269-0xe4;let _0xea10ea=_0x1f7dd2[_0x3a8269];return _0xea10ea;},_0x3a82(_0x585657,_0x4c3be3);}var o=(_0xc38960=>(_0xc38960['Letter']=_0x558fb7(0xfe),_0xc38960[_0x558fb7(0x107)]='Tabloid',_0xc38960[_0x558fb7(0xe6)]='Legal',_0xc38960[_0x558fb7(0xed)]=_0x558fb7(0xed),_0xc38960[_0x558fb7(0xe4)]=_0x558fb7(0xe4),_0xc38960[_0x558fb7(0xf7)]='Folio',_0xc38960['A3']='A3',_0xc38960['A4']='A4',_0xc38960['A5']='A5',_0xc38960['B4']='B4',_0xc38960['B5']='B5',_0xc38960))(o||{}),i=(_0x2ae49c=>(_0x2ae49c[_0x558fb7(0xee)]=_0x558fb7(0xee),_0x2ae49c[_0x558fb7(0xf1)]=_0x558fb7(0xf1),_0x2ae49c))(i||{}),w=(_0x8a5ad8=>(_0x8a5ad8['Origin']=_0x558fb7(0xf9),_0x8a5ad8[_0x558fb7(0xec)]=_0x558fb7(0xec),_0x8a5ad8['FitHeight']=_0x558fb7(0xf0),_0x8a5ad8['FitPage']='FitPage',_0x8a5ad8['Custom']=_0x558fb7(0xf8),_0x8a5ad8))(w||{}),m=(_0x23eb5a=>(_0x23eb5a[_0x558fb7(0xe7)]=_0x558fb7(0xe7),_0x23eb5a[_0x558fb7(0xf2)]=_0x558fb7(0xf2),_0x23eb5a['Middle']=_0x558fb7(0x106),_0x23eb5a))(m||{}),e=(_0x55364c=>(_0x55364c['Normal']=_0x558fb7(0xea),_0x55364c[_0x558fb7(0xf6)]=_0x558fb7(0xf6),_0x55364c[_0x558fb7(0x10b)]=_0x558fb7(0x10b),_0x55364c[_0x558fb7(0x103)]=_0x558fb7(0x103),_0x55364c))(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[_0x558fb7(0xf7)]]:{'w':0x330,'h':0x4e0},[o[_0x558fb7(0xe6)]]:{'w':0x330,'h':0x540},[o[_0x558fb7(0xfe)]]:{'w':0x330,'h':0x420},[o[_0x558fb7(0xed)]]:{'w':0x210,'h':0x330},[o[_0x558fb7(0x107)]]:{'w':0x420,'h':0x660}},v={[e[_0x558fb7(0xea)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x558fb7(0xf6)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x558fb7(0x10b)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x558fb7(0x103)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x558fb7(0x10a),p='printing-canvas';function N(_0x1551f5,_0x1b302){const _0xbeda0a=_0x558fb7,{w:_0xd3b42,h:_0x583e7d}=g[_0x1551f5],_0x4cafff=_0x1b302===i[_0xbeda0a(0xee)]?_0xd3b42:_0x583e7d,_0x6486d7=_0x1b302===i['Portrait']?_0x583e7d:_0xd3b42,_0x1c71c9=_0xbeda0a(0xef)+_0x4cafff+_0xbeda0a(0x108)+_0x6486d7+_0xbeda0a(0x102)+l+_0xbeda0a(0xe9)+l+_0xbeda0a(0x101)+p+_0xbeda0a(0xf3)+_0x6486d7+_0xbeda0a(0xfc)+_0x4cafff+_0xbeda0a(0xf4),_0x4d745f=document['createElement'](_0xbeda0a(0x105));return _0x4d745f[_0xbeda0a(0xff)]=_0x1c71c9,_0x4d745f[_0xbeda0a(0xfb)]='offline-printing-css',_0x4d745f;}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};function _0x1f7d(){const _0x1bf664=['Folio','Custom','Origin','994680KYxxuz','className','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','520554ePJDYG','Letter','innerHTML','11421472psdQrd','\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;\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.','None','7941bvfGsf','style','Middle','Tabloid','px\x20','254wdUdQA','printing-canvas-container','Wide','Executive','5619492jrJGuw','Legal','Start','21gzcxRD',',\x20.','Normal','3710196adktkG','FitWidth','Statement','Portrait','\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','Landscape','End','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','147310ADfOgg','Narrow'];_0x1f7d=function(){return _0x1bf664;};return _0x1f7d();}
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 _0x4480(_0x435b9a,_0x383c14){const _0xebc17c=_0xebc1();return _0x4480=function(_0x448073,_0x116a8a){_0x448073=_0x448073-0x1a8;let _0x252170=_0xebc17c[_0x448073];return _0x252170;},_0x4480(_0x435b9a,_0x383c14);}(function(_0x19fa95,_0x347a1e){const _0x2db6f5=_0x4480,_0x650b97=_0x19fa95();while(!![]){try{const _0x420e29=parseInt(_0x2db6f5(0x1d4))/0x1+parseInt(_0x2db6f5(0x1d3))/0x2*(parseInt(_0x2db6f5(0x1c8))/0x3)+parseInt(_0x2db6f5(0x1c9))/0x4*(-parseInt(_0x2db6f5(0x1b4))/0x5)+parseInt(_0x2db6f5(0x1d9))/0x6*(-parseInt(_0x2db6f5(0x1dd))/0x7)+-parseInt(_0x2db6f5(0x1b9))/0x8+parseInt(_0x2db6f5(0x1b3))/0x9*(-parseInt(_0x2db6f5(0x1ab))/0xa)+-parseInt(_0x2db6f5(0x1c1))/0xb*(-parseInt(_0x2db6f5(0x1da))/0xc);if(_0x420e29===_0x347a1e)break;else _0x650b97['push'](_0x650b97['shift']());}catch(_0x765628){_0x650b97['push'](_0x650b97['shift']());}}}(_0xebc1,0xe7cd0),function(_0x3dd55b,_0x1aa34b){const _0x5a7f16=_0x4480;typeof exports==_0x5a7f16(0x1d2)&&typeof module<'u'?_0x1aa34b(exports):typeof define==_0x5a7f16(0x1cf)&&define['amd']?define([_0x5a7f16(0x1b5)],_0x1aa34b):(_0x3dd55b=typeof globalThis<'u'?globalThis:_0x3dd55b||self,_0x1aa34b(_0x3dd55b['UniverPrint']={}));}(this,function(_0x39a504){'use strict';const _0x30b133=_0x4480;var _0x194162=(_0x140abf=>(_0x140abf[_0x30b133(0x1d1)]=_0x30b133(0x1d1),_0x140abf['Tabloid']=_0x30b133(0x1b7),_0x140abf[_0x30b133(0x1c7)]=_0x30b133(0x1c7),_0x140abf[_0x30b133(0x1ce)]=_0x30b133(0x1ce),_0x140abf[_0x30b133(0x1ca)]=_0x30b133(0x1ca),_0x140abf[_0x30b133(0x1dc)]='Folio',_0x140abf['A3']='A3',_0x140abf['A4']='A4',_0x140abf['A5']='A5',_0x140abf['B4']='B4',_0x140abf['B5']='B5',_0x140abf))(_0x194162||{}),_0xed3a59=(_0x3e3130=>(_0x3e3130[_0x30b133(0x1d0)]='Portrait',_0x3e3130['Landscape']=_0x30b133(0x1b0),_0x3e3130))(_0xed3a59||{}),_0x169734=(_0x334b40=>(_0x334b40['Origin']=_0x30b133(0x1a9),_0x334b40[_0x30b133(0x1c3)]='FitWidth',_0x334b40[_0x30b133(0x1ae)]='FitHeight',_0x334b40[_0x30b133(0x1c6)]=_0x30b133(0x1c6),_0x334b40[_0x30b133(0x1bb)]=_0x30b133(0x1bb),_0x334b40))(_0x169734||{}),_0x599e17=(_0x31cdab=>(_0x31cdab['Start']=_0x30b133(0x1aa),_0x31cdab[_0x30b133(0x1b1)]=_0x30b133(0x1b1),_0x31cdab[_0x30b133(0x1d7)]=_0x30b133(0x1d7),_0x31cdab))(_0x599e17||{}),_0x186376=(_0x14b152=>(_0x14b152[_0x30b133(0x1c5)]=_0x30b133(0x1c5),_0x14b152[_0x30b133(0x1c2)]=_0x30b133(0x1c2),_0x14b152[_0x30b133(0x1cb)]='Wide',_0x14b152[_0x30b133(0x1ac)]='None',_0x14b152))(_0x186376||{});const _0x4b4035={[_0x194162['A3']]:{'w':0x463,'h':0x633},[_0x194162['A4']]:{'w':0x31a,'h':0x464},[_0x194162['A5']]:{'w':0x22f,'h':0x31a},[_0x194162['B4']]:{'w':0x3b0,'h':0x540},[_0x194162['B5']]:{'w':0x299,'h':0x3b0},[_0x194162['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x194162[_0x30b133(0x1dc)]]:{'w':0x330,'h':0x4e0},[_0x194162[_0x30b133(0x1c7)]]:{'w':0x330,'h':0x540},[_0x194162[_0x30b133(0x1d1)]]:{'w':0x330,'h':0x420},[_0x194162[_0x30b133(0x1ce)]]:{'w':0x210,'h':0x330},[_0x194162[_0x30b133(0x1b7)]]:{'w':0x420,'h':0x660}},_0x5da199={[_0x186376[_0x30b133(0x1c5)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x186376[_0x30b133(0x1c2)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x186376[_0x30b133(0x1cb)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x186376['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x414e91=_0x30b133(0x1be),_0x46d4d4=_0x30b133(0x1bf);function _0xe6da91(_0xc85cc1,_0x354de7){const _0x53abe7=_0x30b133,{w:_0x3b9884,h:_0x5737b7}=_0x4b4035[_0xc85cc1],_0x5d930c=_0x354de7===_0xed3a59[_0x53abe7(0x1d0)]?_0x3b9884:_0x5737b7,_0x186818=_0x354de7===_0xed3a59[_0x53abe7(0x1d0)]?_0x5737b7:_0x3b9884,_0x51e20d=_0x53abe7(0x1a8)+_0x5d930c+_0x53abe7(0x1de)+_0x186818+_0x53abe7(0x1c4)+_0x414e91+',\x20.'+_0x414e91+_0x53abe7(0x1ba)+_0x46d4d4+_0x53abe7(0x1ad)+_0x186818+_0x53abe7(0x1c0)+_0x5d930c+_0x53abe7(0x1db),_0x50f698=document['createElement'](_0x53abe7(0x1bd));return _0x50f698['innerHTML']=_0x51e20d,_0x50f698[_0x53abe7(0x1df)]='offline-printing-css',_0x50f698;}_0x39a504[_0x30b133(0x1b2)]=_0x46d4d4,_0x39a504[_0x30b133(0x1af)]=_0x414e91,_0x39a504[_0x30b133(0x1d8)]=_0x5da199,_0x39a504[_0x30b133(0x1b8)]=_0x4b4035,_0x39a504[_0x30b133(0x1d6)]=_0x599e17,_0x39a504['PrintDirection']=_0xed3a59,_0x39a504['PrintPaperMargin']=_0x186376,_0x39a504[_0x30b133(0x1b6)]=_0x194162,_0x39a504[_0x30b133(0x1bc)]=_0x169734,_0x39a504[_0x30b133(0x1d5)]=_0xe6da91,Object[_0x30b133(0x1cc)](_0x39a504,Symbol['toStringTag'],{'value':_0x30b133(0x1cd)});}));function _0xebc1(){const _0x5efc71=['36JwOUTm','2437348VAffhj','Executive','Wide','defineProperty','Module','Statement','function','Portrait','Letter','object','127814usUzpz','550265jLlyqB','createPrintStyle','PrintAlign','Middle','PaperMarginMap','156126fyShkV','36828TqvTej','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Folio','189XNZgYG','px\x20','className','\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','Origin','Start','47870Dbjsue','None','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','FitHeight','PRINT_CONTAINER_CLASS','Landscape','End','PRINT_CANVAS_CLASS','2241PbxfwQ','5vPCCbk','exports','PrintPaperSize','Tabloid','PaperSizePxMap','14091648unLEfJ','\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.','Custom','PrintScale','style','printing-canvas-container','printing-canvas','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','13970IEVsLf','Narrow','FitWidth','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.','Normal','FitPage','Legal'];_0xebc1=function(){return _0x5efc71;};return _0xebc1();}
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-nightly.202410201605",
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
  ".": {