@univerjs-pro/print 0.4.0 → 0.4.1-experimental.20241022-507567a

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 _0x3ae64a=_0x33da;(function(_0x3a8b75,_0x2df066){const _0x66bc4b=_0x33da,_0x3f97c0=_0x3a8b75();while(!![]){try{const _0x348813=-parseInt(_0x66bc4b(0x135))/0x1+-parseInt(_0x66bc4b(0x138))/0x2*(parseInt(_0x66bc4b(0x145))/0x3)+parseInt(_0x66bc4b(0x12f))/0x4+parseInt(_0x66bc4b(0x154))/0x5*(parseInt(_0x66bc4b(0x14f))/0x6)+-parseInt(_0x66bc4b(0x13f))/0x7*(parseInt(_0x66bc4b(0x12e))/0x8)+-parseInt(_0x66bc4b(0x137))/0x9+parseInt(_0x66bc4b(0x156))/0xa*(parseInt(_0x66bc4b(0x144))/0xb);if(_0x348813===_0x2df066)break;else _0x3f97c0['push'](_0x3f97c0['shift']());}catch(_0x14eb72){_0x3f97c0['push'](_0x3f97c0['shift']());}}}(_0x592e,0x94b39));function _0x33da(_0x299439,_0x4a4802){const _0x592e21=_0x592e();return _0x33da=function(_0x33da63,_0x5828ea){_0x33da63=_0x33da63-0x129;let _0x3adf0e=_0x592e21[_0x33da63];return _0x3adf0e;},_0x33da(_0x299439,_0x4a4802);}Object[_0x3ae64a(0x158)](exports,Symbol['toStringTag'],{'value':_0x3ae64a(0x147)});var e=(_0x51a938=>(_0x51a938[_0x3ae64a(0x12c)]='Letter',_0x51a938[_0x3ae64a(0x149)]='Tabloid',_0x51a938[_0x3ae64a(0x141)]=_0x3ae64a(0x141),_0x51a938[_0x3ae64a(0x153)]=_0x3ae64a(0x153),_0x51a938[_0x3ae64a(0x152)]=_0x3ae64a(0x152),_0x51a938[_0x3ae64a(0x143)]=_0x3ae64a(0x143),_0x51a938['A3']='A3',_0x51a938['A4']='A4',_0x51a938['A5']='A5',_0x51a938['B4']='B4',_0x51a938['B5']='B5',_0x51a938))(e||{}),i=(_0x416e91=>(_0x416e91[_0x3ae64a(0x15b)]=_0x3ae64a(0x15b),_0x416e91[_0x3ae64a(0x148)]=_0x3ae64a(0x148),_0x416e91))(i||{}),c=(_0x371915=>(_0x371915[_0x3ae64a(0x12a)]=_0x3ae64a(0x12a),_0x371915[_0x3ae64a(0x14d)]='FitWidth',_0x371915[_0x3ae64a(0x139)]='FitHeight',_0x371915[_0x3ae64a(0x136)]=_0x3ae64a(0x136),_0x371915[_0x3ae64a(0x130)]=_0x3ae64a(0x130),_0x371915))(c||{}),g=(_0x20fda5=>(_0x20fda5[_0x3ae64a(0x13b)]=_0x3ae64a(0x13b),_0x20fda5[_0x3ae64a(0x12d)]=_0x3ae64a(0x12d),_0x20fda5[_0x3ae64a(0x159)]=_0x3ae64a(0x159),_0x20fda5))(g||{}),o=(_0x4c9119=>(_0x4c9119[_0x3ae64a(0x146)]='Normal',_0x4c9119[_0x3ae64a(0x13d)]=_0x3ae64a(0x13d),_0x4c9119[_0x3ae64a(0x129)]=_0x3ae64a(0x129),_0x4c9119[_0x3ae64a(0x15a)]=_0x3ae64a(0x15a),_0x4c9119))(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['Executive']]:{'w':0x2b8,'h':0x3f0},[e[_0x3ae64a(0x143)]]:{'w':0x330,'h':0x4e0},[e[_0x3ae64a(0x141)]]:{'w':0x330,'h':0x540},[e[_0x3ae64a(0x12c)]]:{'w':0x330,'h':0x420},[e['Statement']]:{'w':0x210,'h':0x330},[e['Tabloid']]:{'w':0x420,'h':0x660}},N={[o[_0x3ae64a(0x146)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x3ae64a(0x13d)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x3ae64a(0x129)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x3ae64a(0x15a)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x3ae64a(0x13c),p=_0x3ae64a(0x150);function _0x592e(){const _0x531a8a=['Statement','5rVQWlq','PaperSizePxMap','10DRseAo','createElement','defineProperty','Middle','None','Portrait','innerHTML','\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','Wide','Origin','className','Letter','End','80iFticK','713328cwVKRu','Custom','style',',\x20.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','PRINT_CONTAINER_CLASS','218833MidDwV','FitPage','7207830qilvuJ','106OjzeYf','FitHeight','px\x20','Start','printing-canvas-container','Narrow','PrintPaperSize','600040RxZyQJ','PrintPaperMargin','Legal','offline-printing-css','Folio','33706167UymNHt','62844VbKOfu','Normal','Module','Landscape','Tabloid','PrintScale','\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','FitWidth','createPrintStyle','2122194wEjynu','printing-canvas','PaperMarginMap','Executive'];_0x592e=function(){return _0x531a8a;};return _0x592e();}function A(_0x536a7f,_0x35992e){const _0x30ffb7=_0x3ae64a,{w:_0x1e397e,h:_0x3df0ba}=m[_0x536a7f],_0x260ea3=_0x35992e===i[_0x30ffb7(0x15b)]?_0x1e397e:_0x3df0ba,_0x7ffa67=_0x35992e===i[_0x30ffb7(0x15b)]?_0x3df0ba:_0x1e397e,_0x3cb1c0=_0x30ffb7(0x15d)+_0x260ea3+_0x30ffb7(0x13a)+_0x7ffa67+'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+_0x30ffb7(0x132)+n+_0x30ffb7(0x14b)+p+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x7ffa67+_0x30ffb7(0x14c)+_0x260ea3+_0x30ffb7(0x133),_0x435754=document[_0x30ffb7(0x157)](_0x30ffb7(0x131));return _0x435754[_0x30ffb7(0x15c)]=_0x3cb1c0,_0x435754[_0x30ffb7(0x12b)]=_0x30ffb7(0x142),_0x435754;}exports['PRINT_CANVAS_CLASS']=p,exports[_0x3ae64a(0x134)]=n,exports[_0x3ae64a(0x151)]=N,exports[_0x3ae64a(0x155)]=m,exports['PrintAlign']=g,exports['PrintDirection']=i,exports[_0x3ae64a(0x140)]=o,exports[_0x3ae64a(0x13e)]=e,exports[_0x3ae64a(0x14a)]=c,exports[_0x3ae64a(0x14e)]=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 _0x420eba=_0x3899;(function(_0x52259d,_0x467203){const _0x383b44=_0x3899,_0x34566d=_0x52259d();while(!![]){try{const _0x4d2bbf=parseInt(_0x383b44(0x156))/0x1+-parseInt(_0x383b44(0x141))/0x2+-parseInt(_0x383b44(0x14d))/0x3+parseInt(_0x383b44(0x13f))/0x4*(-parseInt(_0x383b44(0x13e))/0x5)+parseInt(_0x383b44(0x149))/0x6*(parseInt(_0x383b44(0x151))/0x7)+parseInt(_0x383b44(0x150))/0x8*(-parseInt(_0x383b44(0x144))/0x9)+parseInt(_0x383b44(0x163))/0xa;if(_0x4d2bbf===_0x467203)break;else _0x34566d['push'](_0x34566d['shift']());}catch(_0x5aa653){_0x34566d['push'](_0x34566d['shift']());}}}(_0x5079,0x7e0c2));function _0x3899(_0x45dac6,_0x2086e9){const _0x5079d2=_0x5079();return _0x3899=function(_0x38993d,_0x5ba750){_0x38993d=_0x38993d-0x13c;let _0x53cfac=_0x5079d2[_0x38993d];return _0x53cfac;},_0x3899(_0x45dac6,_0x2086e9);}var o=(_0xa67ed3=>(_0xa67ed3[_0x420eba(0x153)]=_0x420eba(0x153),_0xa67ed3[_0x420eba(0x13c)]=_0x420eba(0x13c),_0xa67ed3['Legal']=_0x420eba(0x158),_0xa67ed3[_0x420eba(0x14b)]=_0x420eba(0x14b),_0xa67ed3[_0x420eba(0x146)]=_0x420eba(0x146),_0xa67ed3[_0x420eba(0x145)]=_0x420eba(0x145),_0xa67ed3['A3']='A3',_0xa67ed3['A4']='A4',_0xa67ed3['A5']='A5',_0xa67ed3['B4']='B4',_0xa67ed3['B5']='B5',_0xa67ed3))(o||{}),i=(_0x4654fd=>(_0x4654fd[_0x420eba(0x154)]=_0x420eba(0x154),_0x4654fd[_0x420eba(0x152)]=_0x420eba(0x152),_0x4654fd))(i||{}),w=(_0x39b169=>(_0x39b169[_0x420eba(0x15c)]='Origin',_0x39b169[_0x420eba(0x15d)]=_0x420eba(0x15d),_0x39b169[_0x420eba(0x161)]=_0x420eba(0x161),_0x39b169[_0x420eba(0x164)]=_0x420eba(0x164),_0x39b169[_0x420eba(0x14e)]=_0x420eba(0x14e),_0x39b169))(w||{}),m=(_0x28f662=>(_0x28f662[_0x420eba(0x162)]=_0x420eba(0x162),_0x28f662['End']=_0x420eba(0x143),_0x28f662[_0x420eba(0x140)]='Middle',_0x28f662))(m||{}),e=(_0x5e5e95=>(_0x5e5e95['Normal']='Normal',_0x5e5e95[_0x420eba(0x14a)]=_0x420eba(0x14a),_0x5e5e95[_0x420eba(0x15e)]='Wide',_0x5e5e95[_0x420eba(0x160)]='None',_0x5e5e95))(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[_0x420eba(0x158)]]:{'w':0x330,'h':0x540},[o[_0x420eba(0x153)]]:{'w':0x330,'h':0x420},[o[_0x420eba(0x14b)]]:{'w':0x210,'h':0x330},[o[_0x420eba(0x13c)]]:{'w':0x420,'h':0x660}},v={[e[_0x420eba(0x142)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x420eba(0x14a)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x420eba(0x160)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x420eba(0x147),p=_0x420eba(0x13d);function _0x5079(){const _0x3c5d17=['FitPage','Tabloid','printing-canvas','2695eWUBvA','7612Ajhxuc','Middle','984458uBtGWx','Normal','End','27lDQdLD','Folio','Executive','printing-canvas-container','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','6ahXyKe','Narrow','Statement','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.','1377099XzlzgN','Custom','px\x20','386640QkuJgO','6416305xLFwtd','Landscape','Letter','Portrait','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','716769eBWiSA','className','Legal','innerHTML',',\x20.','createElement','Origin','FitWidth','Wide','\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','FitHeight','Start','10048750sQlTPq'];_0x5079=function(){return _0x3c5d17;};return _0x5079();}function N(_0x2d1641,_0x3d2861){const _0x7fc5c3=_0x420eba,{w:_0x4fa1c6,h:_0x29ba99}=g[_0x2d1641],_0x24aa08=_0x3d2861===i[_0x7fc5c3(0x154)]?_0x4fa1c6:_0x29ba99,_0x20921c=_0x3d2861===i[_0x7fc5c3(0x154)]?_0x29ba99:_0x4fa1c6,_0x38d3a0=_0x7fc5c3(0x15f)+_0x24aa08+_0x7fc5c3(0x14f)+_0x20921c+_0x7fc5c3(0x14c)+l+_0x7fc5c3(0x15a)+l+'\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+_0x7fc5c3(0x148)+_0x20921c+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x24aa08+_0x7fc5c3(0x155),_0x3c1e2f=document[_0x7fc5c3(0x15b)]('style');return _0x3c1e2f[_0x7fc5c3(0x159)]=_0x38d3a0,_0x3c1e2f[_0x7fc5c3(0x157)]='offline-printing-css',_0x3c1e2f;}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 _0x5071(){const _0x3a5d34=['End','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','239319CuMgsN','FitHeight','amd','\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.','\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','Executive','1623575hWVKEU','None','FitWidth','313835ySJSHa','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','UniverPrint','object','PRINT_CONTAINER_CLASS','Tabloid','8yYXKfH','PaperMarginMap','PaperSizePxMap','Normal','338144CzyoEt','34520DfVnSA','Start','Letter',',\x20.','Legal','style','defineProperty','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','printing-canvas-container','PRINT_CANVAS_CLASS','Wide','Middle','2592540IDFzuO','Custom','315jOAoMW','4YUkFuW','exports','1721391KIMTQZ','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.','Statement','px\x20','Origin','Portrait','Narrow','Folio','PrintAlign','createPrintStyle','offline-printing-css','className'];_0x5071=function(){return _0x3a5d34;};return _0x5071();}function _0x565e(_0x2c06cb,_0x61ae17){const _0x507130=_0x5071();return _0x565e=function(_0x565e83,_0x30d8e3){_0x565e83=_0x565e83-0x13b;let _0x5ea38f=_0x507130[_0x565e83];return _0x5ea38f;},_0x565e(_0x2c06cb,_0x61ae17);}(function(_0x1fde61,_0x241208){const _0x22db0f=_0x565e,_0x4c5def=_0x1fde61();while(!![]){try{const _0x49846f=parseInt(_0x22db0f(0x13b))/0x1*(parseInt(_0x22db0f(0x155))/0x2)+parseInt(_0x22db0f(0x166))/0x3+parseInt(_0x22db0f(0x145))/0x4+-parseInt(_0x22db0f(0x16c))/0x5+-parseInt(_0x22db0f(0x152))/0x6+-parseInt(_0x22db0f(0x157))/0x7*(-parseInt(_0x22db0f(0x141))/0x8)+parseInt(_0x22db0f(0x154))/0x9*(parseInt(_0x22db0f(0x146))/0xa);if(_0x49846f===_0x241208)break;else _0x4c5def['push'](_0x4c5def['shift']());}catch(_0x21dbf8){_0x4c5def['push'](_0x4c5def['shift']());}}}(_0x5071,0x621f3),function(_0x51408d,_0x5ba5e1){const _0x3ad1fc=_0x565e;typeof exports==_0x3ad1fc(0x13e)&&typeof module<'u'?_0x5ba5e1(exports):typeof define=='function'&&define[_0x3ad1fc(0x168)]?define([_0x3ad1fc(0x156)],_0x5ba5e1):(_0x51408d=typeof globalThis<'u'?globalThis:_0x51408d||self,_0x5ba5e1(_0x51408d[_0x3ad1fc(0x13d)]={}));}(this,function(_0x2e6ffe){'use strict';const _0x575ab7=_0x565e;var _0x52ed52=(_0x25718e=>(_0x25718e[_0x575ab7(0x148)]=_0x575ab7(0x148),_0x25718e[_0x575ab7(0x140)]=_0x575ab7(0x140),_0x25718e[_0x575ab7(0x14a)]='Legal',_0x25718e[_0x575ab7(0x159)]=_0x575ab7(0x159),_0x25718e[_0x575ab7(0x16b)]=_0x575ab7(0x16b),_0x25718e[_0x575ab7(0x15e)]=_0x575ab7(0x15e),_0x25718e['A3']='A3',_0x25718e['A4']='A4',_0x25718e['A5']='A5',_0x25718e['B4']='B4',_0x25718e['B5']='B5',_0x25718e))(_0x52ed52||{}),_0x246fde=(_0xb927dd=>(_0xb927dd['Portrait']=_0x575ab7(0x15c),_0xb927dd['Landscape']='Landscape',_0xb927dd))(_0x246fde||{}),_0x2fec98=(_0x1147d3=>(_0x1147d3['Origin']=_0x575ab7(0x15b),_0x1147d3['FitWidth']=_0x575ab7(0x16e),_0x1147d3['FitHeight']=_0x575ab7(0x167),_0x1147d3[_0x575ab7(0x164)]='FitPage',_0x1147d3[_0x575ab7(0x153)]='Custom',_0x1147d3))(_0x2fec98||{}),_0x162005=(_0x48050f=>(_0x48050f[_0x575ab7(0x147)]='Start',_0x48050f[_0x575ab7(0x163)]='End',_0x48050f[_0x575ab7(0x151)]=_0x575ab7(0x151),_0x48050f))(_0x162005||{}),_0x276228=(_0xa98ca0=>(_0xa98ca0[_0x575ab7(0x144)]=_0x575ab7(0x144),_0xa98ca0['Narrow']=_0x575ab7(0x15d),_0xa98ca0[_0x575ab7(0x150)]='Wide',_0xa98ca0[_0x575ab7(0x16d)]='None',_0xa98ca0))(_0x276228||{});const _0x3536c4={[_0x52ed52['A3']]:{'w':0x463,'h':0x633},[_0x52ed52['A4']]:{'w':0x31a,'h':0x464},[_0x52ed52['A5']]:{'w':0x22f,'h':0x31a},[_0x52ed52['B4']]:{'w':0x3b0,'h':0x540},[_0x52ed52['B5']]:{'w':0x299,'h':0x3b0},[_0x52ed52['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x52ed52['Folio']]:{'w':0x330,'h':0x4e0},[_0x52ed52['Legal']]:{'w':0x330,'h':0x540},[_0x52ed52[_0x575ab7(0x148)]]:{'w':0x330,'h':0x420},[_0x52ed52[_0x575ab7(0x159)]]:{'w':0x210,'h':0x330},[_0x52ed52[_0x575ab7(0x140)]]:{'w':0x420,'h':0x660}},_0x55d623={[_0x276228['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x276228['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x276228[_0x575ab7(0x150)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x276228[_0x575ab7(0x16d)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x55f2ca=_0x575ab7(0x14e),_0x3b702e='printing-canvas';function _0x4f9d82(_0x302466,_0x12ccf0){const _0x4a3088=_0x575ab7,{w:_0x2f6776,h:_0x1cfab4}=_0x3536c4[_0x302466],_0x5a86f2=_0x12ccf0===_0x246fde['Portrait']?_0x2f6776:_0x1cfab4,_0x436471=_0x12ccf0===_0x246fde['Portrait']?_0x1cfab4:_0x2f6776,_0x517bba=_0x4a3088(0x16a)+_0x5a86f2+_0x4a3088(0x15a)+_0x436471+_0x4a3088(0x158)+_0x55f2ca+_0x4a3088(0x149)+_0x55f2ca+_0x4a3088(0x169)+_0x3b702e+_0x4a3088(0x13c)+_0x436471+_0x4a3088(0x14d)+_0x5a86f2+_0x4a3088(0x165),_0x3fc511=document['createElement'](_0x4a3088(0x14b));return _0x3fc511['innerHTML']=_0x517bba,_0x3fc511[_0x4a3088(0x162)]=_0x4a3088(0x161),_0x3fc511;}_0x2e6ffe[_0x575ab7(0x14f)]=_0x3b702e,_0x2e6ffe[_0x575ab7(0x13f)]=_0x55f2ca,_0x2e6ffe[_0x575ab7(0x142)]=_0x55d623,_0x2e6ffe[_0x575ab7(0x143)]=_0x3536c4,_0x2e6ffe[_0x575ab7(0x15f)]=_0x162005,_0x2e6ffe['PrintDirection']=_0x246fde,_0x2e6ffe['PrintPaperMargin']=_0x276228,_0x2e6ffe['PrintPaperSize']=_0x52ed52,_0x2e6ffe['PrintScale']=_0x2fec98,_0x2e6ffe[_0x575ab7(0x160)]=_0x4f9d82,Object[_0x575ab7(0x14c)](_0x2e6ffe,Symbol['toStringTag'],{'value':'Module'});}));
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.20241022-507567a",
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
  ".": {