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

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 _0x40c7a4=_0x2623;(function(_0x86d632,_0x2e8ece){const _0x1a829b=_0x2623,_0x3390d7=_0x86d632();while(!![]){try{const _0x2626f3=-parseInt(_0x1a829b(0x1d5))/0x1*(parseInt(_0x1a829b(0x1d4))/0x2)+parseInt(_0x1a829b(0x1b4))/0x3*(-parseInt(_0x1a829b(0x1b9))/0x4)+-parseInt(_0x1a829b(0x1b8))/0x5*(parseInt(_0x1a829b(0x1bb))/0x6)+-parseInt(_0x1a829b(0x1db))/0x7+parseInt(_0x1a829b(0x1bc))/0x8+-parseInt(_0x1a829b(0x1b5))/0x9+parseInt(_0x1a829b(0x1c0))/0xa;if(_0x2626f3===_0x2e8ece)break;else _0x3390d7['push'](_0x3390d7['shift']());}catch(_0x18aae0){_0x3390d7['push'](_0x3390d7['shift']());}}}(_0x1d66,0xeb7d0));function _0x1d66(){const _0x7a476f=['35CrUbAJ','24uBjkER','toStringTag','284478JnXEfu','11438728PgJgEI','Narrow','Folio','Wide','45752900lYoMNl','Middle','Letter','Executive','Statement','defineProperty','Portrait','Normal','createPrintStyle','printing-canvas','Tabloid','printing-canvas-container','Module','Origin','innerHTML','FitWidth','FitHeight','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','FitPage','PrintScale','2XGXGRR','1066016qUhKFa','PrintPaperMargin','PaperSizePxMap','PRINT_CONTAINER_CLASS','Custom','PrintPaperSize','10961706tQGXic','End','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PrintDirection','Landscape','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','296715hfLviV','13349484PEEHnC','Legal','Start'];_0x1d66=function(){return _0x7a476f;};return _0x1d66();}function _0x2623(_0x3a9b19,_0x1cf265){const _0x1d6609=_0x1d66();return _0x2623=function(_0x262357,_0x1f580e){_0x262357=_0x262357-0x1b2;let _0x5e2e6e=_0x1d6609[_0x262357];return _0x5e2e6e;},_0x2623(_0x3a9b19,_0x1cf265);}Object[_0x40c7a4(0x1c5)](exports,Symbol[_0x40c7a4(0x1ba)],{'value':_0x40c7a4(0x1cc)});var e=(_0x4ac447=>(_0x4ac447[_0x40c7a4(0x1c2)]=_0x40c7a4(0x1c2),_0x4ac447[_0x40c7a4(0x1ca)]='Tabloid',_0x4ac447[_0x40c7a4(0x1b6)]=_0x40c7a4(0x1b6),_0x4ac447['Statement']=_0x40c7a4(0x1c4),_0x4ac447['Executive']=_0x40c7a4(0x1c3),_0x4ac447[_0x40c7a4(0x1be)]=_0x40c7a4(0x1be),_0x4ac447['A3']='A3',_0x4ac447['A4']='A4',_0x4ac447['A5']='A5',_0x4ac447['B4']='B4',_0x4ac447['B5']='B5',_0x4ac447))(e||{}),i=(_0x3bee8b=>(_0x3bee8b[_0x40c7a4(0x1c6)]=_0x40c7a4(0x1c6),_0x3bee8b[_0x40c7a4(0x1df)]=_0x40c7a4(0x1df),_0x3bee8b))(i||{}),c=(_0x3d5323=>(_0x3d5323[_0x40c7a4(0x1cd)]=_0x40c7a4(0x1cd),_0x3d5323[_0x40c7a4(0x1cf)]=_0x40c7a4(0x1cf),_0x3d5323[_0x40c7a4(0x1d0)]=_0x40c7a4(0x1d0),_0x3d5323[_0x40c7a4(0x1d2)]=_0x40c7a4(0x1d2),_0x3d5323[_0x40c7a4(0x1d9)]=_0x40c7a4(0x1d9),_0x3d5323))(c||{}),g=(_0x4a47f2=>(_0x4a47f2[_0x40c7a4(0x1b7)]=_0x40c7a4(0x1b7),_0x4a47f2[_0x40c7a4(0x1dc)]='End',_0x4a47f2[_0x40c7a4(0x1c1)]=_0x40c7a4(0x1c1),_0x4a47f2))(g||{}),o=(_0x267251=>(_0x267251[_0x40c7a4(0x1c7)]=_0x40c7a4(0x1c7),_0x267251['Narrow']=_0x40c7a4(0x1bd),_0x267251['Wide']='Wide',_0x267251[_0x40c7a4(0x1b2)]=_0x40c7a4(0x1b2),_0x267251))(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[_0x40c7a4(0x1c3)]]:{'w':0x2b8,'h':0x3f0},[e['Folio']]:{'w':0x330,'h':0x4e0},[e[_0x40c7a4(0x1b6)]]:{'w':0x330,'h':0x540},[e[_0x40c7a4(0x1c2)]]:{'w':0x330,'h':0x420},[e[_0x40c7a4(0x1c4)]]:{'w':0x210,'h':0x330},[e[_0x40c7a4(0x1ca)]]:{'w':0x420,'h':0x660}},N={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x40c7a4(0x1bd)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x40c7a4(0x1bf)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x40c7a4(0x1cb),p=_0x40c7a4(0x1c9);function A(_0x4b4d07,_0x4895d6){const _0x252ca2=_0x40c7a4,{w:_0x3e48c2,h:_0xaf3b49}=m[_0x4b4d07],_0x1a120e=_0x4895d6===i[_0x252ca2(0x1c6)]?_0x3e48c2:_0xaf3b49,_0x24cde2=_0x4895d6===i[_0x252ca2(0x1c6)]?_0xaf3b49:_0x3e48c2,_0x28b4dc='\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'+_0x1a120e+'px\x20'+_0x24cde2+'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+'\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.'+p+_0x252ca2(0x1b3)+_0x24cde2+_0x252ca2(0x1dd)+_0x1a120e+_0x252ca2(0x1d1),_0x16ce9a=document['createElement']('style');return _0x16ce9a[_0x252ca2(0x1ce)]=_0x28b4dc,_0x16ce9a['className']='offline-printing-css',_0x16ce9a;}exports['PRINT_CANVAS_CLASS']=p,exports[_0x40c7a4(0x1d8)]=n,exports['PaperMarginMap']=N,exports[_0x40c7a4(0x1d7)]=m,exports['PrintAlign']=g,exports[_0x40c7a4(0x1de)]=i,exports[_0x40c7a4(0x1d6)]=o,exports[_0x40c7a4(0x1da)]=e,exports[_0x40c7a4(0x1d3)]=c,exports[_0x40c7a4(0x1c8)]=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 _0x206586=_0x7829;(function(_0x4e974a,_0x3f7013){const _0x262b75=_0x7829,_0x5b65e7=_0x4e974a();while(!![]){try{const _0x3bf068=-parseInt(_0x262b75(0xfe))/0x1*(-parseInt(_0x262b75(0x103))/0x2)+parseInt(_0x262b75(0xf9))/0x3*(parseInt(_0x262b75(0xfd))/0x4)+parseInt(_0x262b75(0x112))/0x5+parseInt(_0x262b75(0x111))/0x6*(parseInt(_0x262b75(0xf5))/0x7)+parseInt(_0x262b75(0xf0))/0x8*(parseInt(_0x262b75(0x102))/0x9)+-parseInt(_0x262b75(0x10f))/0xa*(-parseInt(_0x262b75(0x10c))/0xb)+-parseInt(_0x262b75(0xf1))/0xc;if(_0x3bf068===_0x3f7013)break;else _0x5b65e7['push'](_0x5b65e7['shift']());}catch(_0x5e8684){_0x5b65e7['push'](_0x5b65e7['shift']());}}}(_0x1b3d,0x27760));function _0x1b3d(){const _0xa485d7=['39WQrmkC',',\x20.','className','Landscape','4004LbkdGB','6pZGpBu','px\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','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.','45YPtRkS','29102dpHBmT','None','\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.','End','style','Wide','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Tabloid','Portrait','530134KyVWfa','Executive','\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','60UErDIT','Middle','6aszMMy','494875PPyFQz','Origin','Legal','Normal','Start','Narrow','Letter','createElement','437872WiTpVv','7875900jMUXhJ','FitHeight','FitWidth','Folio','390803qiKlMP','Statement','Custom','FitPage'];_0x1b3d=function(){return _0xa485d7;};return _0x1b3d();}var o=(_0x9d51a3=>(_0x9d51a3[_0x206586(0xee)]='Letter',_0x9d51a3[_0x206586(0x10a)]=_0x206586(0x10a),_0x9d51a3[_0x206586(0x114)]=_0x206586(0x114),_0x9d51a3[_0x206586(0xf6)]='Statement',_0x9d51a3[_0x206586(0x10d)]=_0x206586(0x10d),_0x9d51a3[_0x206586(0xf4)]=_0x206586(0xf4),_0x9d51a3['A3']='A3',_0x9d51a3['A4']='A4',_0x9d51a3['A5']='A5',_0x9d51a3['B4']='B4',_0x9d51a3['B5']='B5',_0x9d51a3))(o||{}),i=(_0xa6869f=>(_0xa6869f[_0x206586(0x10b)]=_0x206586(0x10b),_0xa6869f[_0x206586(0xfc)]=_0x206586(0xfc),_0xa6869f))(i||{}),w=(_0x26b9bc=>(_0x26b9bc[_0x206586(0x113)]='Origin',_0x26b9bc['FitWidth']=_0x206586(0xf3),_0x26b9bc[_0x206586(0xf2)]=_0x206586(0xf2),_0x26b9bc[_0x206586(0xf8)]=_0x206586(0xf8),_0x26b9bc[_0x206586(0xf7)]='Custom',_0x26b9bc))(w||{}),m=(_0x12a3fc=>(_0x12a3fc[_0x206586(0x116)]=_0x206586(0x116),_0x12a3fc[_0x206586(0x106)]=_0x206586(0x106),_0x12a3fc[_0x206586(0x110)]=_0x206586(0x110),_0x12a3fc))(m||{}),e=(_0x4dee28=>(_0x4dee28[_0x206586(0x115)]='Normal',_0x4dee28[_0x206586(0xed)]='Narrow',_0x4dee28[_0x206586(0x108)]='Wide',_0x4dee28['None']=_0x206586(0x104),_0x4dee28))(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[_0x206586(0x10d)]]:{'w':0x2b8,'h':0x3f0},[o[_0x206586(0xf4)]]:{'w':0x330,'h':0x4e0},[o['Legal']]:{'w':0x330,'h':0x540},[o[_0x206586(0xee)]]:{'w':0x330,'h':0x420},[o['Statement']]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e[_0x206586(0x115)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x206586(0xed)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x206586(0x108)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x206586(0x104)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p='printing-canvas';function _0x7829(_0x4e3de7,_0x4dcc15){const _0x1b3de9=_0x1b3d();return _0x7829=function(_0x7829c3,_0x120fad){_0x7829c3=_0x7829c3-0xed;let _0x58cd07=_0x1b3de9[_0x7829c3];return _0x58cd07;},_0x7829(_0x4e3de7,_0x4dcc15);}function N(_0x370258,_0x6bb05d){const _0x34c340=_0x206586,{w:_0x2703f2,h:_0x59760f}=g[_0x370258],_0xcdfee1=_0x6bb05d===i[_0x34c340(0x10b)]?_0x2703f2:_0x59760f,_0x26878c=_0x6bb05d===i[_0x34c340(0x10b)]?_0x59760f:_0x2703f2,_0x4687d4=_0x34c340(0x10e)+_0xcdfee1+_0x34c340(0xff)+_0x26878c+_0x34c340(0x101)+l+_0x34c340(0xfa)+l+_0x34c340(0x105)+p+_0x34c340(0x100)+_0x26878c+_0x34c340(0x109)+_0xcdfee1+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x12070e=document[_0x34c340(0xef)](_0x34c340(0x107));return _0x12070e['innerHTML']=_0x4687d4,_0x12070e[_0x34c340(0xfb)]='offline-printing-css',_0x12070e;}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 _0x56a4(){const _0x496241=['PRINT_CONTAINER_CLASS','Legal','defineProperty','style','503216sRinKL','558120QUwast','FitPage','FitWidth','End','Start','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','printing-canvas-container','Normal','FitHeight','Portrait','794856PlJZmO','createPrintStyle','PrintPaperMargin','printing-canvas','Middle','PrintAlign','24WbMvle','Letter','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.','Tabloid','Wide','UniverPrint','PaperSizePxMap','PrintScale','px\x20','PrintDirection','PrintPaperSize','2788905jgGkAj','className','616KCMUJF','Custom','Narrow','PaperMarginMap','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','3644570SYSwGR','2GOjNTg','\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','exports','createElement',',\x20.','Executive','2313496acdnJu','Landscape','64845OIXJNn','Module','\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','None','Statement','amd','Folio','Origin'];_0x56a4=function(){return _0x496241;};return _0x56a4();}function _0xb31f(_0x3c0075,_0x2b6dce){const _0x56a409=_0x56a4();return _0xb31f=function(_0xb31ff9,_0x3ede2f){_0xb31ff9=_0xb31ff9-0xed;let _0x47e063=_0x56a409[_0xb31ff9];return _0x47e063;},_0xb31f(_0x3c0075,_0x2b6dce);}(function(_0x20abd6,_0x40ef09){const _0x17ac67=_0xb31f,_0x4f7e4d=_0x20abd6();while(!![]){try{const _0xad0a54=parseInt(_0x17ac67(0xfb))/0x1*(parseInt(_0x17ac67(0x110))/0x2)+parseInt(_0x17ac67(0x11b))/0x3+parseInt(_0x17ac67(0x102))/0x4+parseInt(_0x17ac67(0x111))/0x5*(-parseInt(_0x17ac67(0x121))/0x6)+parseInt(_0x17ac67(0xf2))/0x7+parseInt(_0x17ac67(0xf4))/0x8*(-parseInt(_0x17ac67(0x104))/0x9)+-parseInt(_0x17ac67(0xfa))/0xa;if(_0xad0a54===_0x40ef09)break;else _0x4f7e4d['push'](_0x4f7e4d['shift']());}catch(_0xc289c2){_0x4f7e4d['push'](_0x4f7e4d['shift']());}}}(_0x56a4,0x5c953),function(_0x29771d,_0x553dda){const _0x3802c4=_0xb31f;typeof exports=='object'&&typeof module<'u'?_0x553dda(exports):typeof define=='function'&&define[_0x3802c4(0x109)]?define([_0x3802c4(0xfe)],_0x553dda):(_0x29771d=typeof globalThis<'u'?globalThis:_0x29771d||self,_0x553dda(_0x29771d[_0x3802c4(0x126)]={}));}(this,function(_0x5a7e0f){'use strict';const _0x10bad3=_0xb31f;var _0xfcc7f8=(_0x2ec309=>(_0x2ec309['Letter']=_0x10bad3(0x122),_0x2ec309[_0x10bad3(0x124)]='Tabloid',_0x2ec309[_0x10bad3(0x10d)]=_0x10bad3(0x10d),_0x2ec309['Statement']=_0x10bad3(0x108),_0x2ec309[_0x10bad3(0x101)]=_0x10bad3(0x101),_0x2ec309[_0x10bad3(0x10a)]=_0x10bad3(0x10a),_0x2ec309['A3']='A3',_0x2ec309['A4']='A4',_0x2ec309['A5']='A5',_0x2ec309['B4']='B4',_0x2ec309['B5']='B5',_0x2ec309))(_0xfcc7f8||{}),_0x1a876c=(_0x5e577d=>(_0x5e577d['Portrait']='Portrait',_0x5e577d[_0x10bad3(0x103)]='Landscape',_0x5e577d))(_0x1a876c||{}),_0x41d9b2=(_0x3bc9f4=>(_0x3bc9f4[_0x10bad3(0x10b)]=_0x10bad3(0x10b),_0x3bc9f4[_0x10bad3(0x113)]=_0x10bad3(0x113),_0x3bc9f4['FitHeight']=_0x10bad3(0x119),_0x3bc9f4['FitPage']=_0x10bad3(0x112),_0x3bc9f4[_0x10bad3(0xf5)]=_0x10bad3(0xf5),_0x3bc9f4))(_0x41d9b2||{}),_0x24cc9f=(_0x3687e8=>(_0x3687e8[_0x10bad3(0x115)]=_0x10bad3(0x115),_0x3687e8['End']=_0x10bad3(0x114),_0x3687e8[_0x10bad3(0x11f)]=_0x10bad3(0x11f),_0x3687e8))(_0x24cc9f||{}),_0xf64a8d=(_0x3af11b=>(_0x3af11b['Normal']=_0x10bad3(0x118),_0x3af11b[_0x10bad3(0xf6)]=_0x10bad3(0xf6),_0x3af11b['Wide']=_0x10bad3(0x125),_0x3af11b[_0x10bad3(0x107)]=_0x10bad3(0x107),_0x3af11b))(_0xf64a8d||{});const _0x384e84={[_0xfcc7f8['A3']]:{'w':0x463,'h':0x633},[_0xfcc7f8['A4']]:{'w':0x31a,'h':0x464},[_0xfcc7f8['A5']]:{'w':0x22f,'h':0x31a},[_0xfcc7f8['B4']]:{'w':0x3b0,'h':0x540},[_0xfcc7f8['B5']]:{'w':0x299,'h':0x3b0},[_0xfcc7f8[_0x10bad3(0x101)]]:{'w':0x2b8,'h':0x3f0},[_0xfcc7f8[_0x10bad3(0x10a)]]:{'w':0x330,'h':0x4e0},[_0xfcc7f8['Legal']]:{'w':0x330,'h':0x540},[_0xfcc7f8[_0x10bad3(0x122)]]:{'w':0x330,'h':0x420},[_0xfcc7f8[_0x10bad3(0x108)]]:{'w':0x210,'h':0x330},[_0xfcc7f8[_0x10bad3(0x124)]]:{'w':0x420,'h':0x660}},_0x27ef0f={[_0xf64a8d[_0x10bad3(0x118)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0xf64a8d[_0x10bad3(0xf6)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0xf64a8d[_0x10bad3(0x125)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0xf64a8d['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x468af6=_0x10bad3(0x117),_0x29713a=_0x10bad3(0x11e);function _0x589878(_0x9a42f2,_0x1dff77){const _0x5f104b=_0x10bad3,{w:_0x547cec,h:_0xad316f}=_0x384e84[_0x9a42f2],_0x38a6cc=_0x1dff77===_0x1a876c[_0x5f104b(0x11a)]?_0x547cec:_0xad316f,_0x2d7669=_0x1dff77===_0x1a876c['Portrait']?_0xad316f:_0x547cec,_0x414b76=_0x5f104b(0x106)+_0x38a6cc+_0x5f104b(0xef)+_0x2d7669+_0x5f104b(0x123)+_0x468af6+_0x5f104b(0x100)+_0x468af6+_0x5f104b(0xfc)+_0x29713a+_0x5f104b(0x116)+_0x2d7669+_0x5f104b(0xf9)+_0x38a6cc+_0x5f104b(0xf8),_0x18e2f4=document[_0x5f104b(0xff)](_0x5f104b(0x10f));return _0x18e2f4['innerHTML']=_0x414b76,_0x18e2f4[_0x5f104b(0xf3)]=_0x5f104b(0xfd),_0x18e2f4;}_0x5a7e0f['PRINT_CANVAS_CLASS']=_0x29713a,_0x5a7e0f[_0x10bad3(0x10c)]=_0x468af6,_0x5a7e0f[_0x10bad3(0xf7)]=_0x27ef0f,_0x5a7e0f[_0x10bad3(0xed)]=_0x384e84,_0x5a7e0f[_0x10bad3(0x120)]=_0x24cc9f,_0x5a7e0f[_0x10bad3(0xf0)]=_0x1a876c,_0x5a7e0f[_0x10bad3(0x11d)]=_0xf64a8d,_0x5a7e0f[_0x10bad3(0xf1)]=_0xfcc7f8,_0x5a7e0f[_0x10bad3(0xee)]=_0x41d9b2,_0x5a7e0f[_0x10bad3(0x11c)]=_0x589878,Object[_0x10bad3(0x10e)](_0x5a7e0f,Symbol['toStringTag'],{'value':_0x10bad3(0x105)});}));
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.202410191605",
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
  ".": {