@univerjs-pro/print 0.4.0 → 0.4.1

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';function _0x1cbc(_0x4dcef8,_0x1142cf){const _0x5949ec=_0x5949();return _0x1cbc=function(_0x1cbc52,_0x484272){_0x1cbc52=_0x1cbc52-0x1c9;let _0x14a994=_0x5949ec[_0x1cbc52];return _0x14a994;},_0x1cbc(_0x4dcef8,_0x1142cf);}const _0x208f74=_0x1cbc;function _0x5949(){const _0x468fd0=['Middle','Executive','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.','\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.','PrintPaperMargin','PaperMarginMap','Narrow','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','End','Folio','1779070MRHiPj','342908lZvjUx','createElement','PRINT_CANVAS_CLASS','innerHTML','2818624qeXppQ','Legal','Start','FitWidth','None','FitHeight','Origin','PrintScale','766606TfIaHm','825555XKHuRK','createPrintStyle','FitPage','Portrait','Custom','Tabloid','Letter','Wide','3615120xLONrO','11122685aidemC','className','style','Normal','\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','\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','Statement','Landscape','PrintPaperSize','PrintDirection','printing-canvas-container','printing-canvas'];_0x5949=function(){return _0x468fd0;};return _0x5949();}(function(_0xb7f361,_0x39ebfc){const _0x553aea=_0x1cbc,_0x39ded0=_0xb7f361();while(!![]){try{const _0x5eeb60=parseInt(_0x553aea(0x1f6))/0x1+-parseInt(_0x553aea(0x1ea))/0x2+-parseInt(_0x553aea(0x1c9))/0x3+parseInt(_0x553aea(0x1ee))/0x4+parseInt(_0x553aea(0x1e9))/0x5+parseInt(_0x553aea(0x1d1))/0x6+-parseInt(_0x553aea(0x1d2))/0x7;if(_0x5eeb60===_0x39ebfc)break;else _0x39ded0['push'](_0x39ded0['shift']());}catch(_0x45ec5e){_0x39ded0['push'](_0x39ded0['shift']());}}}(_0x5949,0x60312));Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'});var e=(_0x50899a=>(_0x50899a['Letter']=_0x208f74(0x1cf),_0x50899a[_0x208f74(0x1ce)]=_0x208f74(0x1ce),_0x50899a[_0x208f74(0x1ef)]=_0x208f74(0x1ef),_0x50899a[_0x208f74(0x1d9)]=_0x208f74(0x1d9),_0x50899a[_0x208f74(0x1e0)]=_0x208f74(0x1e0),_0x50899a['Folio']='Folio',_0x50899a['A3']='A3',_0x50899a['A4']='A4',_0x50899a['A5']='A5',_0x50899a['B4']='B4',_0x50899a['B5']='B5',_0x50899a))(e||{}),i=(_0x5639eb=>(_0x5639eb[_0x208f74(0x1cc)]='Portrait',_0x5639eb[_0x208f74(0x1da)]='Landscape',_0x5639eb))(i||{}),c=(_0x1f44e6=>(_0x1f44e6[_0x208f74(0x1f4)]='Origin',_0x1f44e6['FitWidth']=_0x208f74(0x1f1),_0x1f44e6[_0x208f74(0x1f3)]='FitHeight',_0x1f44e6[_0x208f74(0x1cb)]='FitPage',_0x1f44e6[_0x208f74(0x1cd)]=_0x208f74(0x1cd),_0x1f44e6))(c||{}),g=(_0x65603a=>(_0x65603a[_0x208f74(0x1f0)]=_0x208f74(0x1f0),_0x65603a[_0x208f74(0x1e7)]='End',_0x65603a['Middle']=_0x208f74(0x1df),_0x65603a))(g||{}),o=(_0x211fc5=>(_0x211fc5[_0x208f74(0x1d5)]=_0x208f74(0x1d5),_0x211fc5[_0x208f74(0x1e5)]=_0x208f74(0x1e5),_0x211fc5[_0x208f74(0x1d0)]=_0x208f74(0x1d0),_0x211fc5[_0x208f74(0x1f2)]='None',_0x211fc5))(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[_0x208f74(0x1e0)]]:{'w':0x2b8,'h':0x3f0},[e[_0x208f74(0x1e8)]]:{'w':0x330,'h':0x4e0},[e[_0x208f74(0x1ef)]]:{'w':0x330,'h':0x540},[e[_0x208f74(0x1cf)]]:{'w':0x330,'h':0x420},[e[_0x208f74(0x1d9)]]:{'w':0x210,'h':0x330},[e[_0x208f74(0x1ce)]]:{'w':0x420,'h':0x660}},N={[o[_0x208f74(0x1d5)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x208f74(0x1e5)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x208f74(0x1d0)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x208f74(0x1f2)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x208f74(0x1dd),p=_0x208f74(0x1de);function A(_0x390d5c,_0x5b4c19){const _0x3f6849=_0x208f74,{w:_0x995ed7,h:_0x591dcd}=m[_0x390d5c],_0x4112e0=_0x5b4c19===i[_0x3f6849(0x1cc)]?_0x995ed7:_0x591dcd,_0x54f169=_0x5b4c19===i[_0x3f6849(0x1cc)]?_0x591dcd:_0x995ed7,_0x1a90f1=_0x3f6849(0x1d6)+_0x4112e0+_0x3f6849(0x1d8)+_0x54f169+_0x3f6849(0x1e1)+n+',\x20.'+n+_0x3f6849(0x1e2)+p+_0x3f6849(0x1d7)+_0x54f169+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x4112e0+_0x3f6849(0x1e6),_0x2813c6=document[_0x3f6849(0x1eb)](_0x3f6849(0x1d4));return _0x2813c6[_0x3f6849(0x1ed)]=_0x1a90f1,_0x2813c6[_0x3f6849(0x1d3)]='offline-printing-css',_0x2813c6;}exports[_0x208f74(0x1ec)]=p,exports['PRINT_CONTAINER_CLASS']=n,exports[_0x208f74(0x1e4)]=N,exports['PaperSizePxMap']=m,exports['PrintAlign']=g,exports[_0x208f74(0x1dc)]=i,exports[_0x208f74(0x1e3)]=o,exports[_0x208f74(0x1db)]=e,exports[_0x208f74(0x1f5)]=c,exports[_0x208f74(0x1ca)]=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
+ function _0x5bf2(){const _0x5b9b02=['End','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.','Origin','Statement','Middle',',\x20.','Normal','FitPage','FitHeight','Legal','4SUWcUb','Portrait','style','6489658pOvMvy','Tabloid','None','offline-printing-css','\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\x20width:\x20','1324431JJKCcB','innerHTML','8lEbgFI','\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','printing-canvas-container','Folio','823434bkhlja','createElement','Start','3773390NCrtCF','Letter','6983968dRdGKm','Narrow','FitWidth','Executive','Landscape','23570380pUuUdE','\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','px\x20','9ITnbsS','1200888vkVCmJ'];_0x5bf2=function(){return _0x5b9b02;};return _0x5bf2();}const _0x3bee1c=_0x1d13;(function(_0x283dd8,_0x1d1611){const _0x231588=_0x1d13,_0x12d0a4=_0x283dd8();while(!![]){try{const _0x49771d=-parseInt(_0x231588(0x1ab))/0x1+-parseInt(_0x231588(0x1ad))/0x2*(parseInt(_0x231588(0x1b2))/0x3)+parseInt(_0x231588(0x1a2))/0x4*(-parseInt(_0x231588(0x1b5))/0x5)+-parseInt(_0x231588(0x1c0))/0x6+parseInt(_0x231588(0x1a5))/0x7+parseInt(_0x231588(0x1b7))/0x8*(parseInt(_0x231588(0x1bf))/0x9)+parseInt(_0x231588(0x1bc))/0xa;if(_0x49771d===_0x1d1611)break;else _0x12d0a4['push'](_0x12d0a4['shift']());}catch(_0x119270){_0x12d0a4['push'](_0x12d0a4['shift']());}}}(_0x5bf2,0xbe6b7));var o=(_0x3b789d=>(_0x3b789d[_0x3bee1c(0x1b6)]=_0x3bee1c(0x1b6),_0x3b789d[_0x3bee1c(0x1a6)]=_0x3bee1c(0x1a6),_0x3b789d[_0x3bee1c(0x1a1)]=_0x3bee1c(0x1a1),_0x3b789d[_0x3bee1c(0x1c4)]='Statement',_0x3b789d[_0x3bee1c(0x1ba)]=_0x3bee1c(0x1ba),_0x3b789d[_0x3bee1c(0x1b1)]=_0x3bee1c(0x1b1),_0x3b789d['A3']='A3',_0x3b789d['A4']='A4',_0x3b789d['A5']='A5',_0x3b789d['B4']='B4',_0x3b789d['B5']='B5',_0x3b789d))(o||{}),i=(_0x41cc6d=>(_0x41cc6d[_0x3bee1c(0x1a3)]=_0x3bee1c(0x1a3),_0x41cc6d[_0x3bee1c(0x1bb)]=_0x3bee1c(0x1bb),_0x41cc6d))(i||{}),w=(_0x4bdc1e=>(_0x4bdc1e[_0x3bee1c(0x1c3)]=_0x3bee1c(0x1c3),_0x4bdc1e['FitWidth']=_0x3bee1c(0x1b9),_0x4bdc1e['FitHeight']=_0x3bee1c(0x1a0),_0x4bdc1e[_0x3bee1c(0x19f)]=_0x3bee1c(0x19f),_0x4bdc1e[_0x3bee1c(0x1af)]='Custom',_0x4bdc1e))(w||{}),m=(_0x3c6b80=>(_0x3c6b80[_0x3bee1c(0x1b4)]=_0x3bee1c(0x1b4),_0x3c6b80['End']=_0x3bee1c(0x1c1),_0x3c6b80[_0x3bee1c(0x1c5)]=_0x3bee1c(0x1c5),_0x3c6b80))(m||{}),e=(_0x50e43b=>(_0x50e43b['Normal']=_0x3bee1c(0x1c7),_0x50e43b[_0x3bee1c(0x1b8)]=_0x3bee1c(0x1b8),_0x50e43b['Wide']='Wide',_0x50e43b[_0x3bee1c(0x1a7)]=_0x3bee1c(0x1a7),_0x50e43b))(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[_0x3bee1c(0x1ba)]]:{'w':0x2b8,'h':0x3f0},[o['Folio']]:{'w':0x330,'h':0x4e0},[o[_0x3bee1c(0x1a1)]]:{'w':0x330,'h':0x540},[o['Letter']]:{'w':0x330,'h':0x420},[o[_0x3bee1c(0x1c4)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x3bee1c(0x1b8)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x3bee1c(0x1a7)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x3bee1c(0x1b0),p='printing-canvas';function N(_0x2fd4e0,_0x50c197){const _0x1022ed=_0x3bee1c,{w:_0x406372,h:_0x54fee4}=g[_0x2fd4e0],_0x1bdb63=_0x50c197===i[_0x1022ed(0x1a3)]?_0x406372:_0x54fee4,_0x573144=_0x50c197===i[_0x1022ed(0x1a3)]?_0x54fee4:_0x406372,_0xc3fe64=_0x1022ed(0x1bd)+_0x1bdb63+_0x1022ed(0x1be)+_0x573144+_0x1022ed(0x1c2)+l+_0x1022ed(0x1c6)+l+_0x1022ed(0x1ae)+p+_0x1022ed(0x1a9)+_0x573144+_0x1022ed(0x1aa)+_0x1bdb63+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x1a0612=document[_0x1022ed(0x1b3)](_0x1022ed(0x1a4));return _0x1a0612[_0x1022ed(0x1ac)]=_0xc3fe64,_0x1a0612['className']=_0x1022ed(0x1a8),_0x1a0612;}function _0x1d13(_0x5228e1,_0x32ec7c){const _0x5bf2f2=_0x5bf2();return _0x1d13=function(_0x1d137b,_0x28590e){_0x1d137b=_0x1d137b-0x19f;let _0x1502dd=_0x5bf2f2[_0x1d137b];return _0x1502dd;},_0x1d13(_0x5228e1,_0x32ec7c);}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 _0x247e(){const _0x1c31d1=['Executive','1563368vwyCEA','Landscape','351266fieUqx','defineProperty','Portrait','Origin','PrintPaperSize','5312619KJCwpe','Statement','amd','PRINT_CONTAINER_CLASS','12bUCmuN','Tabloid','Start','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','None','px\x20','PaperMarginMap','Legal','10yQVrXc','function','offline-printing-css','PrintScale','558244SvMmNE','printing-canvas','1353513SBTneR','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Folio','4704898kjxQQy','innerHTML','25qhGLWC','End',',\x20.','FitPage','printing-canvas-container','Normal','PRINT_CANVAS_CLASS','exports','Middle','1474234BZijIs','Custom','Narrow','createElement','createPrintStyle','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','FitWidth','FitHeight','3GpiqCX','Wide','PaperSizePxMap','Letter'];_0x247e=function(){return _0x1c31d1;};return _0x247e();}function _0x27ed(_0x59c4e5,_0x39ef7d){const _0x247eb7=_0x247e();return _0x27ed=function(_0x27eddf,_0x5912af){_0x27eddf=_0x27eddf-0x173;let _0x588313=_0x247eb7[_0x27eddf];return _0x588313;},_0x27ed(_0x59c4e5,_0x39ef7d);}(function(_0x217768,_0x203dc6){const _0x65d5d5=_0x27ed,_0x279f8d=_0x217768();while(!![]){try{const _0x3a6b79=parseInt(_0x65d5d5(0x175))/0x1+-parseInt(_0x65d5d5(0x19a))/0x2*(-parseInt(_0x65d5d5(0x1a2))/0x3)+parseInt(_0x65d5d5(0x18a))/0x4*(-parseInt(_0x65d5d5(0x191))/0x5)+-parseInt(_0x65d5d5(0x17e))/0x6*(-parseInt(_0x65d5d5(0x18c))/0x7)+-parseInt(_0x65d5d5(0x173))/0x8+parseInt(_0x65d5d5(0x17a))/0x9*(-parseInt(_0x65d5d5(0x186))/0xa)+parseInt(_0x65d5d5(0x18f))/0xb;if(_0x3a6b79===_0x203dc6)break;else _0x279f8d['push'](_0x279f8d['shift']());}catch(_0x1437d0){_0x279f8d['push'](_0x279f8d['shift']());}}}(_0x247e,0x665e6),function(_0x5e5db2,_0x4c6f3a){const _0x350f70=_0x27ed;typeof exports=='object'&&typeof module<'u'?_0x4c6f3a(exports):typeof define==_0x350f70(0x187)&&define[_0x350f70(0x17c)]?define([_0x350f70(0x198)],_0x4c6f3a):(_0x5e5db2=typeof globalThis<'u'?globalThis:_0x5e5db2||self,_0x4c6f3a(_0x5e5db2['UniverPrint']={}));}(this,function(_0x45b456){'use strict';const _0x150223=_0x27ed;var _0x116040=(_0x4fb9ee=>(_0x4fb9ee[_0x150223(0x1a5)]=_0x150223(0x1a5),_0x4fb9ee[_0x150223(0x17f)]='Tabloid',_0x4fb9ee['Legal']=_0x150223(0x185),_0x4fb9ee['Statement']='Statement',_0x4fb9ee[_0x150223(0x1a6)]=_0x150223(0x1a6),_0x4fb9ee[_0x150223(0x18e)]=_0x150223(0x18e),_0x4fb9ee['A3']='A3',_0x4fb9ee['A4']='A4',_0x4fb9ee['A5']='A5',_0x4fb9ee['B4']='B4',_0x4fb9ee['B5']='B5',_0x4fb9ee))(_0x116040||{}),_0x4a7d89=(_0x5682c=>(_0x5682c[_0x150223(0x177)]=_0x150223(0x177),_0x5682c['Landscape']=_0x150223(0x174),_0x5682c))(_0x4a7d89||{}),_0x2fe0f4=(_0x2ed8e9=>(_0x2ed8e9[_0x150223(0x178)]=_0x150223(0x178),_0x2ed8e9['FitWidth']=_0x150223(0x1a0),_0x2ed8e9[_0x150223(0x1a1)]=_0x150223(0x1a1),_0x2ed8e9[_0x150223(0x194)]=_0x150223(0x194),_0x2ed8e9[_0x150223(0x19b)]='Custom',_0x2ed8e9))(_0x2fe0f4||{}),_0x1ea8fb=(_0x44c39f=>(_0x44c39f[_0x150223(0x180)]=_0x150223(0x180),_0x44c39f[_0x150223(0x192)]=_0x150223(0x192),_0x44c39f[_0x150223(0x199)]=_0x150223(0x199),_0x44c39f))(_0x1ea8fb||{}),_0x1c64e0=(_0x35f366=>(_0x35f366[_0x150223(0x196)]=_0x150223(0x196),_0x35f366['Narrow']='Narrow',_0x35f366[_0x150223(0x1a3)]='Wide',_0x35f366[_0x150223(0x182)]=_0x150223(0x182),_0x35f366))(_0x1c64e0||{});const _0x4b5a71={[_0x116040['A3']]:{'w':0x463,'h':0x633},[_0x116040['A4']]:{'w':0x31a,'h':0x464},[_0x116040['A5']]:{'w':0x22f,'h':0x31a},[_0x116040['B4']]:{'w':0x3b0,'h':0x540},[_0x116040['B5']]:{'w':0x299,'h':0x3b0},[_0x116040[_0x150223(0x1a6)]]:{'w':0x2b8,'h':0x3f0},[_0x116040[_0x150223(0x18e)]]:{'w':0x330,'h':0x4e0},[_0x116040[_0x150223(0x185)]]:{'w':0x330,'h':0x540},[_0x116040[_0x150223(0x1a5)]]:{'w':0x330,'h':0x420},[_0x116040[_0x150223(0x17b)]]:{'w':0x210,'h':0x330},[_0x116040['Tabloid']]:{'w':0x420,'h':0x660}},_0x5e9722={[_0x1c64e0['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x1c64e0[_0x150223(0x19c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x1c64e0[_0x150223(0x1a3)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x1c64e0[_0x150223(0x182)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x2a9055=_0x150223(0x195),_0x75e7e2=_0x150223(0x18b);function _0x32d187(_0x38cb9f,_0x1fecf1){const _0x5d6bc7=_0x150223,{w:_0x488ec0,h:_0x1e9f0d}=_0x4b5a71[_0x38cb9f],_0x18ee79=_0x1fecf1===_0x4a7d89['Portrait']?_0x488ec0:_0x1e9f0d,_0x277e64=_0x1fecf1===_0x4a7d89['Portrait']?_0x1e9f0d:_0x488ec0,_0xad39a8='\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'+_0x18ee79+_0x5d6bc7(0x183)+_0x277e64+'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.'+_0x2a9055+_0x5d6bc7(0x193)+_0x2a9055+_0x5d6bc7(0x18d)+_0x75e7e2+_0x5d6bc7(0x19f)+_0x277e64+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x18ee79+_0x5d6bc7(0x181),_0x492da2=document[_0x5d6bc7(0x19d)]('style');return _0x492da2[_0x5d6bc7(0x190)]=_0xad39a8,_0x492da2['className']=_0x5d6bc7(0x188),_0x492da2;}_0x45b456[_0x150223(0x197)]=_0x75e7e2,_0x45b456[_0x150223(0x17d)]=_0x2a9055,_0x45b456[_0x150223(0x184)]=_0x5e9722,_0x45b456[_0x150223(0x1a4)]=_0x4b5a71,_0x45b456['PrintAlign']=_0x1ea8fb,_0x45b456['PrintDirection']=_0x4a7d89,_0x45b456['PrintPaperMargin']=_0x1c64e0,_0x45b456[_0x150223(0x179)]=_0x116040,_0x45b456[_0x150223(0x189)]=_0x2fe0f4,_0x45b456[_0x150223(0x19e)]=_0x32d187,Object[_0x150223(0x176)](_0x45b456,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",
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
  ".": {