@univerjs-pro/print 0.6.0 → 0.6.1-nightly.202502221605

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';const _0x3a61f9=_0x5450;function _0x54e5(){const _0x3334a4=['End','313334XBBfDZ','PRINT_CONTAINER_CLASS','Origin','Folio','435970YeSvWU','1665456iFDRwA','Wide','3238792ILqRsu','PrintScale','innerHTML','98RwjASh','Executive','Portrait','262062BjSZhm','FitPage','2237982XNYldL',',\x20.','PrintDirection','Module','Start','Normal','px\x20','Narrow','Legal','defineProperty','None','style','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','toStringTag','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.','createPrintStyle','40Vdelnr','PrintAlign','FitWidth','Tabloid','PaperMarginMap','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','PRINT_CANVAS_CLASS','\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.','Landscape','FitHeight','101961TcBcDM','PrintPaperSize','Letter','offline-printing-css','Statement'];_0x54e5=function(){return _0x3334a4;};return _0x54e5();}(function(_0x27e697,_0x7da55a){const _0xeb2252=_0x5450,_0x1e41ea=_0x27e697();while(!![]){try{const _0x4f343c=-parseInt(_0xeb2252(0x121))/0x1+-parseInt(_0xeb2252(0x126))/0x2*(-parseInt(_0xeb2252(0x145))/0x3)+-parseInt(_0xeb2252(0x13b))/0x4*(-parseInt(_0xeb2252(0x120))/0x5)+-parseInt(_0xeb2252(0x12b))/0x6+-parseInt(_0xeb2252(0x11c))/0x7+parseInt(_0xeb2252(0x123))/0x8+parseInt(_0xeb2252(0x129))/0x9;if(_0x4f343c===_0x7da55a)break;else _0x1e41ea['push'](_0x1e41ea['shift']());}catch(_0x3cb6de){_0x1e41ea['push'](_0x1e41ea['shift']());}}}(_0x54e5,0xd8cf7));Object[_0x3a61f9(0x134)](exports,Symbol[_0x3a61f9(0x138)],{'value':_0x3a61f9(0x12e)});var e=(_0x370218=>(_0x370218['Letter']='Letter',_0x370218[_0x3a61f9(0x13e)]=_0x3a61f9(0x13e),_0x370218[_0x3a61f9(0x133)]=_0x3a61f9(0x133),_0x370218['Statement']=_0x3a61f9(0x11a),_0x370218[_0x3a61f9(0x127)]=_0x3a61f9(0x127),_0x370218[_0x3a61f9(0x11f)]=_0x3a61f9(0x11f),_0x370218['A3']='A3',_0x370218['A4']='A4',_0x370218['A5']='A5',_0x370218['B4']='B4',_0x370218['B5']='B5',_0x370218))(e||{}),i=(_0xfcefc5=>(_0xfcefc5['Portrait']=_0x3a61f9(0x128),_0xfcefc5[_0x3a61f9(0x143)]=_0x3a61f9(0x143),_0xfcefc5))(i||{}),c=(_0xeb97de=>(_0xeb97de[_0x3a61f9(0x11e)]=_0x3a61f9(0x11e),_0xeb97de[_0x3a61f9(0x13d)]='FitWidth',_0xeb97de['FitHeight']=_0x3a61f9(0x144),_0xeb97de[_0x3a61f9(0x12a)]=_0x3a61f9(0x12a),_0xeb97de['Custom']='Custom',_0xeb97de))(c||{}),g=(_0x559f80=>(_0x559f80[_0x3a61f9(0x12f)]=_0x3a61f9(0x12f),_0x559f80[_0x3a61f9(0x11b)]=_0x3a61f9(0x11b),_0x559f80['Middle']='Middle',_0x559f80))(g||{}),o=(_0x86f29f=>(_0x86f29f[_0x3a61f9(0x130)]=_0x3a61f9(0x130),_0x86f29f[_0x3a61f9(0x132)]='Narrow',_0x86f29f[_0x3a61f9(0x122)]=_0x3a61f9(0x122),_0x86f29f[_0x3a61f9(0x135)]=_0x3a61f9(0x135),_0x86f29f))(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[_0x3a61f9(0x11f)]]:{'w':0x330,'h':0x4e0},[e['Legal']]:{'w':0x330,'h':0x540},[e[_0x3a61f9(0x118)]]:{'w':0x330,'h':0x420},[e[_0x3a61f9(0x11a)]]:{'w':0x210,'h':0x330},[e[_0x3a61f9(0x13e)]]:{'w':0x420,'h':0x660}},N={[o[_0x3a61f9(0x130)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x3a61f9(0x132)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x3a61f9(0x122)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n='printing-canvas-container',p='printing-canvas';function _0x5450(_0x5bc023,_0x44b2dd){const _0x54e50c=_0x54e5();return _0x5450=function(_0x5450fc,_0x4ba03c){_0x5450fc=_0x5450fc-0x118;let _0x3f382c=_0x54e50c[_0x5450fc];return _0x3f382c;},_0x5450(_0x5bc023,_0x44b2dd);}function A(_0x43a0e3,_0x223147){const _0x4dd0d9=_0x3a61f9,{w:_0xc4bc98,h:_0x48e9b}=m[_0x43a0e3],_0x1307a0=_0x223147===i[_0x4dd0d9(0x128)]?_0xc4bc98:_0x48e9b,_0x31df85=_0x223147===i['Portrait']?_0x48e9b:_0xc4bc98,_0x20f41b='\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'+_0x1307a0+_0x4dd0d9(0x131)+_0x31df85+_0x4dd0d9(0x139)+n+_0x4dd0d9(0x12c)+n+_0x4dd0d9(0x142)+p+_0x4dd0d9(0x137)+_0x31df85+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x1307a0+_0x4dd0d9(0x140),_0x15470b=document['createElement'](_0x4dd0d9(0x136));return _0x15470b[_0x4dd0d9(0x125)]=_0x20f41b,_0x15470b['className']=_0x4dd0d9(0x119),_0x15470b;}exports[_0x3a61f9(0x141)]=p,exports[_0x3a61f9(0x11d)]=n,exports[_0x3a61f9(0x13f)]=N,exports['PaperSizePxMap']=m,exports[_0x3a61f9(0x13c)]=g,exports[_0x3a61f9(0x12d)]=i,exports['PrintPaperMargin']=o,exports[_0x3a61f9(0x146)]=e,exports[_0x3a61f9(0x124)]=c,exports[_0x3a61f9(0x13a)]=A;
1
+ 'use strict';const _0x10f6b9=_0x3c59;function _0x476b(){const _0x1e8517=['498559sNoZVf','toStringTag','14YPYGWB','px\x20','PrintPaperMargin','Normal','PRINT_CANVAS_CLASS','PrintDirection','style','1961644ZcOWGr','10IYyJRr','Narrow','Letter','None','FitHeight','1919336lRdmZn','106068sIFlmc','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.','innerHTML','152841tlArbv','Landscape','createElement','Module','Statement','5JLYPAe','513824XOeJGV','6990219IYkxDf','Legal','\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','Executive','className','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','Wide','printing-canvas','\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.','PrintScale',',\x20.','Portrait','FitPage','\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','PrintAlign','Tabloid','FitWidth','Start','End'];_0x476b=function(){return _0x1e8517;};return _0x476b();}(function(_0x3139d3,_0x5ab34a){const _0x421a38=_0x3c59,_0x13302b=_0x3139d3();while(!![]){try{const _0x28ff75=-parseInt(_0x421a38(0x14b))/0x1+parseInt(_0x421a38(0x15a))/0x2+-parseInt(_0x421a38(0x15e))/0x3+parseInt(_0x421a38(0x154))/0x4*(-parseInt(_0x421a38(0x163))/0x5)+-parseInt(_0x421a38(0x15b))/0x6+-parseInt(_0x421a38(0x14d))/0x7*(parseInt(_0x421a38(0x164))/0x8)+-parseInt(_0x421a38(0x165))/0x9*(-parseInt(_0x421a38(0x155))/0xa);if(_0x28ff75===_0x5ab34a)break;else _0x13302b['push'](_0x13302b['shift']());}catch(_0x4f2fbc){_0x13302b['push'](_0x13302b['shift']());}}}(_0x476b,0x865a4));Object['defineProperty'](exports,Symbol[_0x10f6b9(0x14c)],{'value':_0x10f6b9(0x161)});function _0x3c59(_0x1b4a8c,_0x5e7a3a){const _0x476bb9=_0x476b();return _0x3c59=function(_0x3c595d,_0x48e605){_0x3c595d=_0x3c595d-0x149;let _0x12cbd2=_0x476bb9[_0x3c595d];return _0x12cbd2;},_0x3c59(_0x1b4a8c,_0x5e7a3a);}var e=(_0x2041c2=>(_0x2041c2['Letter']=_0x10f6b9(0x157),_0x2041c2[_0x10f6b9(0x176)]='Tabloid',_0x2041c2[_0x10f6b9(0x166)]='Legal',_0x2041c2[_0x10f6b9(0x162)]='Statement',_0x2041c2[_0x10f6b9(0x169)]=_0x10f6b9(0x169),_0x2041c2['Folio']='Folio',_0x2041c2['A3']='A3',_0x2041c2['A4']='A4',_0x2041c2['A5']='A5',_0x2041c2['B4']='B4',_0x2041c2['B5']='B5',_0x2041c2))(e||{}),i=(_0x4ac69a=>(_0x4ac69a[_0x10f6b9(0x172)]=_0x10f6b9(0x172),_0x4ac69a[_0x10f6b9(0x15f)]=_0x10f6b9(0x15f),_0x4ac69a))(i||{}),c=(_0xd9c97f=>(_0xd9c97f['Origin']='Origin',_0xd9c97f[_0x10f6b9(0x177)]=_0x10f6b9(0x177),_0xd9c97f[_0x10f6b9(0x159)]=_0x10f6b9(0x159),_0xd9c97f[_0x10f6b9(0x173)]='FitPage',_0xd9c97f['Custom']='Custom',_0xd9c97f))(c||{}),g=(_0x1b475a=>(_0x1b475a[_0x10f6b9(0x149)]=_0x10f6b9(0x149),_0x1b475a[_0x10f6b9(0x14a)]=_0x10f6b9(0x14a),_0x1b475a['Middle']='Middle',_0x1b475a))(g||{}),o=(_0x4472df=>(_0x4472df[_0x10f6b9(0x150)]=_0x10f6b9(0x150),_0x4472df[_0x10f6b9(0x156)]=_0x10f6b9(0x156),_0x4472df[_0x10f6b9(0x16d)]=_0x10f6b9(0x16d),_0x4472df['None']='None',_0x4472df))(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[_0x10f6b9(0x169)]]:{'w':0x2b8,'h':0x3f0},[e['Folio']]:{'w':0x330,'h':0x4e0},[e[_0x10f6b9(0x166)]]:{'w':0x330,'h':0x540},[e[_0x10f6b9(0x157)]]:{'w':0x330,'h':0x420},[e['Statement']]:{'w':0x210,'h':0x330},[e[_0x10f6b9(0x176)]]:{'w':0x420,'h':0x660}},N={[o[_0x10f6b9(0x150)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x10f6b9(0x156)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x10f6b9(0x158)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x10f6b9(0x168),p=_0x10f6b9(0x16e);function A(_0x295a3e,_0x5a10e8){const _0x1fe6c3=_0x10f6b9,{w:_0x32811e,h:_0x5938f6}=m[_0x295a3e],_0x54cf60=_0x5a10e8===i[_0x1fe6c3(0x172)]?_0x32811e:_0x5938f6,_0x3f752c=_0x5a10e8===i[_0x1fe6c3(0x172)]?_0x5938f6:_0x32811e,_0x1cc312=_0x1fe6c3(0x174)+_0x54cf60+_0x1fe6c3(0x14e)+_0x3f752c+_0x1fe6c3(0x15c)+n+_0x1fe6c3(0x171)+n+_0x1fe6c3(0x16f)+p+_0x1fe6c3(0x167)+_0x3f752c+_0x1fe6c3(0x16c)+_0x54cf60+_0x1fe6c3(0x16b),_0x4b86e4=document[_0x1fe6c3(0x160)](_0x1fe6c3(0x153));return _0x4b86e4[_0x1fe6c3(0x15d)]=_0x1cc312,_0x4b86e4[_0x1fe6c3(0x16a)]='offline-printing-css',_0x4b86e4;}exports[_0x10f6b9(0x151)]=p,exports['PRINT_CONTAINER_CLASS']=n,exports['PaperMarginMap']=N,exports['PaperSizePxMap']=m,exports[_0x10f6b9(0x175)]=g,exports[_0x10f6b9(0x152)]=i,exports[_0x10f6b9(0x14f)]=o,exports['PrintPaperSize']=e,exports[_0x10f6b9(0x170)]=c,exports['createPrintStyle']=A;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x28cc08=_0x5bb4;(function(_0x5f1dda,_0x3cc23a){const _0x51def7=_0x5bb4,_0x12d4b9=_0x5f1dda();while(!![]){try{const _0x217860=parseInt(_0x51def7(0x180))/0x1*(-parseInt(_0x51def7(0x198))/0x2)+-parseInt(_0x51def7(0x1a3))/0x3+parseInt(_0x51def7(0x18c))/0x4+-parseInt(_0x51def7(0x19e))/0x5*(-parseInt(_0x51def7(0x196))/0x6)+-parseInt(_0x51def7(0x17f))/0x7*(parseInt(_0x51def7(0x18d))/0x8)+parseInt(_0x51def7(0x185))/0x9+-parseInt(_0x51def7(0x181))/0xa*(-parseInt(_0x51def7(0x19a))/0xb);if(_0x217860===_0x3cc23a)break;else _0x12d4b9['push'](_0x12d4b9['shift']());}catch(_0x242b3f){_0x12d4b9['push'](_0x12d4b9['shift']());}}}(_0xbbf8,0x3f4c6));var o=(_0x3b59ce=>(_0x3b59ce[_0x28cc08(0x17d)]='Letter',_0x3b59ce[_0x28cc08(0x183)]=_0x28cc08(0x183),_0x3b59ce[_0x28cc08(0x1a2)]=_0x28cc08(0x1a2),_0x3b59ce[_0x28cc08(0x18a)]='Statement',_0x3b59ce['Executive']='Executive',_0x3b59ce[_0x28cc08(0x195)]=_0x28cc08(0x195),_0x3b59ce['A3']='A3',_0x3b59ce['A4']='A4',_0x3b59ce['A5']='A5',_0x3b59ce['B4']='B4',_0x3b59ce['B5']='B5',_0x3b59ce))(o||{}),i=(_0x86548d=>(_0x86548d[_0x28cc08(0x184)]=_0x28cc08(0x184),_0x86548d[_0x28cc08(0x186)]=_0x28cc08(0x186),_0x86548d))(i||{}),w=(_0xbe32c4=>(_0xbe32c4['Origin']='Origin',_0xbe32c4[_0x28cc08(0x1a4)]=_0x28cc08(0x1a4),_0xbe32c4[_0x28cc08(0x19c)]=_0x28cc08(0x19c),_0xbe32c4[_0x28cc08(0x17e)]=_0x28cc08(0x17e),_0xbe32c4[_0x28cc08(0x192)]=_0x28cc08(0x192),_0xbe32c4))(w||{}),m=(_0x40912a=>(_0x40912a[_0x28cc08(0x18e)]=_0x28cc08(0x18e),_0x40912a[_0x28cc08(0x191)]=_0x28cc08(0x191),_0x40912a[_0x28cc08(0x1a1)]=_0x28cc08(0x1a1),_0x40912a))(m||{}),e=(_0x1fc290=>(_0x1fc290[_0x28cc08(0x182)]=_0x28cc08(0x182),_0x1fc290[_0x28cc08(0x189)]=_0x28cc08(0x189),_0x1fc290['Wide']='Wide',_0x1fc290['None']=_0x28cc08(0x18b),_0x1fc290))(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[_0x28cc08(0x18f)]]:{'w':0x2b8,'h':0x3f0},[o[_0x28cc08(0x195)]]:{'w':0x330,'h':0x4e0},[o[_0x28cc08(0x1a2)]]:{'w':0x330,'h':0x540},[o['Letter']]:{'w':0x330,'h':0x420},[o[_0x28cc08(0x18a)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e[_0x28cc08(0x182)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x28cc08(0x189)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x28cc08(0x18b)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p=_0x28cc08(0x1a0);function _0x5bb4(_0x38ede0,_0x9bf7b5){const _0xbbf8b8=_0xbbf8();return _0x5bb4=function(_0x5bb4b7,_0xf93e56){_0x5bb4b7=_0x5bb4b7-0x17d;let _0x5b0017=_0xbbf8b8[_0x5bb4b7];return _0x5b0017;},_0x5bb4(_0x38ede0,_0x9bf7b5);}function N(_0x1cb473,_0x394690){const _0x3ec0dd=_0x28cc08,{w:_0x568932,h:_0xe75129}=g[_0x1cb473],_0x40a4e5=_0x394690===i[_0x3ec0dd(0x184)]?_0x568932:_0xe75129,_0x14172c=_0x394690===i['Portrait']?_0xe75129:_0x568932,_0x198229=_0x3ec0dd(0x190)+_0x40a4e5+_0x3ec0dd(0x188)+_0x14172c+'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+_0x3ec0dd(0x19d)+p+_0x3ec0dd(0x19b)+_0x14172c+_0x3ec0dd(0x19f)+_0x40a4e5+_0x3ec0dd(0x194),_0x592164=document[_0x3ec0dd(0x197)](_0x3ec0dd(0x193));return _0x592164['innerHTML']=_0x198229,_0x592164[_0x3ec0dd(0x187)]=_0x3ec0dd(0x199),_0x592164;}function _0xbbf8(){const _0xfceeb4=['px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Folio','1306704FEXKok','createElement','840758yBMyYC','offline-printing-css','5741989IprWEw','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','FitHeight','\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.','5wIhMZS','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','printing-canvas','Middle','Legal','1211631rigcep','FitWidth','Letter','FitPage','14HEINAe','1sGInxi','10FVKCTW','Normal','Tabloid','Portrait','42399jsOgNO','Landscape','className','px\x20','Narrow','Statement','None','1996904OpjfvJ','640776JuBuHR','Start','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','End','Custom','style'];_0xbbf8=function(){return _0xfceeb4;};return _0xbbf8();}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 _0x11dcd5=_0x39e5;(function(_0x2f44b9,_0xf6a033){const _0x2a2f9d=_0x39e5,_0x359e14=_0x2f44b9();while(!![]){try{const _0xbcbc34=-parseInt(_0x2a2f9d(0xd0))/0x1+parseInt(_0x2a2f9d(0xd4))/0x2*(-parseInt(_0x2a2f9d(0xe7))/0x3)+parseInt(_0x2a2f9d(0xc1))/0x4*(parseInt(_0x2a2f9d(0xdf))/0x5)+parseInt(_0x2a2f9d(0xd9))/0x6+-parseInt(_0x2a2f9d(0xde))/0x7*(parseInt(_0x2a2f9d(0xdc))/0x8)+parseInt(_0x2a2f9d(0xce))/0x9*(-parseInt(_0x2a2f9d(0xe5))/0xa)+parseInt(_0x2a2f9d(0xcf))/0xb;if(_0xbcbc34===_0xf6a033)break;else _0x359e14['push'](_0x359e14['shift']());}catch(_0x6f8f88){_0x359e14['push'](_0x359e14['shift']());}}}(_0xd299,0xb8587));function _0xd299(){const _0x4c60f2=['\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','Statement','Middle','73366dBhlny','printing-canvas','\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.','className','FitHeight','1018752BbxiEn','Executive','Normal','160zIvQvk',',\x20.','117446DgVLWp','655565sAefMa','Custom','Start','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','End','5677240hWZtJm','style','3PwsBMe','createElement','printing-canvas-container','offline-printing-css','FitWidth','32TbxoOp','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Legal','Portrait','Landscape','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','px\x20','Wide','Letter','Tabloid','Narrow','innerHTML','9xyKmiy','5406687lQasfj','15167jxNQPn'];_0xd299=function(){return _0x4c60f2;};return _0xd299();}function _0x39e5(_0x2561fa,_0x2c2ef7){const _0xd299ee=_0xd299();return _0x39e5=function(_0x39e5d2,_0xe4b08e){_0x39e5d2=_0x39e5d2-0xc0;let _0x4d5406=_0xd299ee[_0x39e5d2];return _0x4d5406;},_0x39e5(_0x2561fa,_0x2c2ef7);}var o=(_0x3db8e5=>(_0x3db8e5[_0x11dcd5(0xca)]='Letter',_0x3db8e5[_0x11dcd5(0xcb)]=_0x11dcd5(0xcb),_0x3db8e5['Legal']=_0x11dcd5(0xc3),_0x3db8e5[_0x11dcd5(0xd2)]=_0x11dcd5(0xd2),_0x3db8e5['Executive']='Executive',_0x3db8e5['Folio']='Folio',_0x3db8e5['A3']='A3',_0x3db8e5['A4']='A4',_0x3db8e5['A5']='A5',_0x3db8e5['B4']='B4',_0x3db8e5['B5']='B5',_0x3db8e5))(o||{}),i=(_0x51f77a=>(_0x51f77a['Portrait']=_0x11dcd5(0xc4),_0x51f77a['Landscape']=_0x11dcd5(0xc5),_0x51f77a))(i||{}),w=(_0x2a45d2=>(_0x2a45d2[_0x11dcd5(0xc7)]=_0x11dcd5(0xc7),_0x2a45d2[_0x11dcd5(0xc0)]='FitWidth',_0x2a45d2[_0x11dcd5(0xd8)]=_0x11dcd5(0xd8),_0x2a45d2['FitPage']=_0x11dcd5(0xe2),_0x2a45d2[_0x11dcd5(0xe0)]=_0x11dcd5(0xe0),_0x2a45d2))(w||{}),m=(_0x17fcfd=>(_0x17fcfd[_0x11dcd5(0xe1)]='Start',_0x17fcfd[_0x11dcd5(0xe4)]=_0x11dcd5(0xe4),_0x17fcfd[_0x11dcd5(0xd3)]=_0x11dcd5(0xd3),_0x17fcfd))(m||{}),e=(_0x5edc07=>(_0x5edc07[_0x11dcd5(0xdb)]=_0x11dcd5(0xdb),_0x5edc07[_0x11dcd5(0xcc)]=_0x11dcd5(0xcc),_0x5edc07[_0x11dcd5(0xc9)]=_0x11dcd5(0xc9),_0x5edc07['None']='None',_0x5edc07))(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[_0x11dcd5(0xda)]]:{'w':0x2b8,'h':0x3f0},[o['Folio']]:{'w':0x330,'h':0x4e0},[o[_0x11dcd5(0xc3)]]:{'w':0x330,'h':0x540},[o['Letter']]:{'w':0x330,'h':0x420},[o[_0x11dcd5(0xd2)]]:{'w':0x210,'h':0x330},[o[_0x11dcd5(0xcb)]]:{'w':0x420,'h':0x660}},v={[e[_0x11dcd5(0xdb)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x11dcd5(0xcc)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x11dcd5(0xc9)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x11dcd5(0xe9),p=_0x11dcd5(0xd5);function N(_0x81b084,_0x5eeb9d){const _0x507120=_0x11dcd5,{w:_0x1be843,h:_0x1c808e}=g[_0x81b084],_0x47f5f2=_0x5eeb9d===i['Portrait']?_0x1be843:_0x1c808e,_0xfd201=_0x5eeb9d===i[_0x507120(0xc4)]?_0x1c808e:_0x1be843,_0x1cc481=_0x507120(0xd1)+_0x47f5f2+_0x507120(0xc8)+_0xfd201+_0x507120(0xc6)+l+_0x507120(0xdd)+l+_0x507120(0xd6)+p+_0x507120(0xc2)+_0xfd201+_0x507120(0xe3)+_0x47f5f2+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x4ab8cb=document[_0x507120(0xe8)](_0x507120(0xe6));return _0x4ab8cb[_0x507120(0xcd)]=_0x1cc481,_0x4ab8cb[_0x507120(0xd7)]=_0x507120(0xea),_0x4ab8cb;}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 _0x28f3(_0x378b9b,_0x41c192){const _0x347f86=_0x347f();return _0x28f3=function(_0x28f34,_0x3cf65a){_0x28f34=_0x28f34-0x111;let _0x396aef=_0x347f86[_0x28f34];return _0x396aef;},_0x28f3(_0x378b9b,_0x41c192);}function _0x347f(){const _0x4ab58a=['Narrow','811456UzQMfz','Letter','createPrintStyle','Custom','style','exports','PrintPaperMargin','PaperSizePxMap','\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','440720GVPEgP','PRINT_CANVAS_CLASS','FitHeight','Normal','End','PaperMarginMap','Landscape','Wide','object','Origin','Module','toStringTag','FitWidth','96JeeVnt','createElement','888622xrylrL','6wSlEwe','defineProperty','Portrait','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','None','innerHTML','FitPage','169139HsVvjX','Statement','Legal',',\x20.','PrintScale','PrintAlign','printing-canvas','className','3912nNircV','PrintDirection','Middle','function','Folio','PrintPaperSize','106155xsqqnw','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.','px\x20','Start','Tabloid','266490HbVmkC','Executive','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','PRINT_CONTAINER_CLASS'];_0x347f=function(){return _0x4ab58a;};return _0x347f();}(function(_0xefad81,_0x1e0ba4){const _0x2ef6b8=_0x28f3,_0x4ea764=_0xefad81();while(!![]){try{const _0x4af6fd=parseInt(_0x2ef6b8(0x13f))/0x1+-parseInt(_0x2ef6b8(0x11a))/0x2+-parseInt(_0x2ef6b8(0x135))/0x3*(-parseInt(_0x2ef6b8(0x147))/0x4)+-parseInt(_0x2ef6b8(0x128))/0x5*(-parseInt(_0x2ef6b8(0x138))/0x6)+parseInt(_0x2ef6b8(0x137))/0x7+-parseInt(_0x2ef6b8(0x11f))/0x8+-parseInt(_0x2ef6b8(0x115))/0x9;if(_0x4af6fd===_0x1e0ba4)break;else _0x4ea764['push'](_0x4ea764['shift']());}catch(_0x2322cc){_0x4ea764['push'](_0x4ea764['shift']());}}}(_0x347f,0x2945d),function(_0x114137,_0x2efc24){const _0x37f30e=_0x28f3;typeof exports==_0x37f30e(0x130)&&typeof module<'u'?_0x2efc24(exports):typeof define==_0x37f30e(0x112)&&define['amd']?define([_0x37f30e(0x124)],_0x2efc24):(_0x114137=typeof globalThis<'u'?globalThis:_0x114137||self,_0x2efc24(_0x114137['UniverProPrint']={}));}(this,function(_0xaf137b){'use strict';const _0x3d0575=_0x28f3;var _0x174808=(_0x34ede5=>(_0x34ede5['Letter']=_0x3d0575(0x120),_0x34ede5[_0x3d0575(0x119)]=_0x3d0575(0x119),_0x34ede5[_0x3d0575(0x141)]=_0x3d0575(0x141),_0x34ede5[_0x3d0575(0x140)]=_0x3d0575(0x140),_0x34ede5[_0x3d0575(0x11b)]=_0x3d0575(0x11b),_0x34ede5['Folio']=_0x3d0575(0x113),_0x34ede5['A3']='A3',_0x34ede5['A4']='A4',_0x34ede5['A5']='A5',_0x34ede5['B4']='B4',_0x34ede5['B5']='B5',_0x34ede5))(_0x174808||{}),_0x5157ae=(_0x24df7e=>(_0x24df7e[_0x3d0575(0x13a)]=_0x3d0575(0x13a),_0x24df7e[_0x3d0575(0x12e)]=_0x3d0575(0x12e),_0x24df7e))(_0x5157ae||{}),_0x1159fa=(_0x14994a=>(_0x14994a[_0x3d0575(0x131)]='Origin',_0x14994a[_0x3d0575(0x134)]='FitWidth',_0x14994a[_0x3d0575(0x12a)]=_0x3d0575(0x12a),_0x14994a['FitPage']=_0x3d0575(0x13e),_0x14994a[_0x3d0575(0x122)]=_0x3d0575(0x122),_0x14994a))(_0x1159fa||{}),_0x38b847=(_0x4fc2dc=>(_0x4fc2dc[_0x3d0575(0x118)]=_0x3d0575(0x118),_0x4fc2dc[_0x3d0575(0x12c)]='End',_0x4fc2dc[_0x3d0575(0x111)]=_0x3d0575(0x111),_0x4fc2dc))(_0x38b847||{}),_0x3bd5bd=(_0x41ec33=>(_0x41ec33[_0x3d0575(0x12b)]='Normal',_0x41ec33['Narrow']=_0x3d0575(0x11e),_0x41ec33[_0x3d0575(0x12f)]=_0x3d0575(0x12f),_0x41ec33[_0x3d0575(0x13c)]=_0x3d0575(0x13c),_0x41ec33))(_0x3bd5bd||{});const _0xffc504={[_0x174808['A3']]:{'w':0x463,'h':0x633},[_0x174808['A4']]:{'w':0x31a,'h':0x464},[_0x174808['A5']]:{'w':0x22f,'h':0x31a},[_0x174808['B4']]:{'w':0x3b0,'h':0x540},[_0x174808['B5']]:{'w':0x299,'h':0x3b0},[_0x174808[_0x3d0575(0x11b)]]:{'w':0x2b8,'h':0x3f0},[_0x174808[_0x3d0575(0x113)]]:{'w':0x330,'h':0x4e0},[_0x174808[_0x3d0575(0x141)]]:{'w':0x330,'h':0x540},[_0x174808[_0x3d0575(0x120)]]:{'w':0x330,'h':0x420},[_0x174808[_0x3d0575(0x140)]]:{'w':0x210,'h':0x330},[_0x174808[_0x3d0575(0x119)]]:{'w':0x420,'h':0x660}},_0x9dbf24={[_0x3bd5bd[_0x3d0575(0x12b)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x3bd5bd['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x3bd5bd[_0x3d0575(0x12f)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x3bd5bd[_0x3d0575(0x13c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x1a8a09='printing-canvas-container',_0x491aa0=_0x3d0575(0x145);function _0x262a45(_0x4197ae,_0x3185fe){const _0x431443=_0x3d0575,{w:_0x1d8072,h:_0x5a878f}=_0xffc504[_0x4197ae],_0x550439=_0x3185fe===_0x5157ae[_0x431443(0x13a)]?_0x1d8072:_0x5a878f,_0x1f3e4a=_0x3185fe===_0x5157ae['Portrait']?_0x5a878f:_0x1d8072,_0x282549=_0x431443(0x127)+_0x550439+_0x431443(0x117)+_0x1f3e4a+_0x431443(0x116)+_0x1a8a09+_0x431443(0x142)+_0x1a8a09+'\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.'+_0x491aa0+_0x431443(0x11c)+_0x1f3e4a+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x550439+_0x431443(0x13b),_0xdfdae3=document[_0x431443(0x136)](_0x431443(0x123));return _0xdfdae3[_0x431443(0x13d)]=_0x282549,_0xdfdae3[_0x431443(0x146)]='offline-printing-css',_0xdfdae3;}_0xaf137b[_0x3d0575(0x129)]=_0x491aa0,_0xaf137b[_0x3d0575(0x11d)]=_0x1a8a09,_0xaf137b[_0x3d0575(0x12d)]=_0x9dbf24,_0xaf137b[_0x3d0575(0x126)]=_0xffc504,_0xaf137b[_0x3d0575(0x144)]=_0x38b847,_0xaf137b[_0x3d0575(0x148)]=_0x5157ae,_0xaf137b[_0x3d0575(0x125)]=_0x3bd5bd,_0xaf137b[_0x3d0575(0x114)]=_0x174808,_0xaf137b[_0x3d0575(0x143)]=_0x1159fa,_0xaf137b[_0x3d0575(0x121)]=_0x262a45,Object[_0x3d0575(0x139)](_0xaf137b,Symbol[_0x3d0575(0x133)],{'value':_0x3d0575(0x132)});}));
1
+ function _0x1648(){const _0x1f1012=['Legal','189236yAZTmz','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PrintDirection','PRINT_CONTAINER_CLASS','exports','PrintAlign','Custom','toStringTag','2279512ylwpes','offline-printing-css','None','Tabloid','Landscape','Module','amd','Letter','559618ifqXgy','2UiKUgB','defineProperty','PrintScale','Normal','Statement','createElement','FitPage','\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.','Origin','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Executive','78484xmfZUS',',\x20.','px\x20','FitHeight','Folio','24xuWcMB','564fUzZsU','object','Wide','407529ObYgNr','Portrait','End','PaperSizePxMap','style','190SujmVp','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','PaperMarginMap','2281433nIHbxc','PrintPaperMargin','FitWidth','px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Narrow','5046775TqKysL','84coLWKG'];_0x1648=function(){return _0x1f1012;};return _0x1648();}function _0x3dcb(_0x354a1d,_0x5a7d1f){const _0x1648b9=_0x1648();return _0x3dcb=function(_0x3dcb62,_0x1e97d6){_0x3dcb62=_0x3dcb62-0x182;let _0x21c7f8=_0x1648b9[_0x3dcb62];return _0x21c7f8;},_0x3dcb(_0x354a1d,_0x5a7d1f);}(function(_0x1e628d,_0x17d7e7){const _0x68948e=_0x3dcb,_0x21d265=_0x1e628d();while(!![]){try{const _0x5c333f=-parseInt(_0x68948e(0x1a6))/0x1*(-parseInt(_0x68948e(0x1a5))/0x2)+parseInt(_0x68948e(0x1b6))/0x3*(-parseInt(_0x68948e(0x195))/0x4)+-parseInt(_0x68948e(0x192))/0x5+parseInt(_0x68948e(0x182))/0x6*(parseInt(_0x68948e(0x1b1))/0x7)+-parseInt(_0x68948e(0x19d))/0x8+-parseInt(_0x68948e(0x185))/0x9*(parseInt(_0x68948e(0x18a))/0xa)+parseInt(_0x68948e(0x18d))/0xb*(parseInt(_0x68948e(0x193))/0xc);if(_0x5c333f===_0x17d7e7)break;else _0x21d265['push'](_0x21d265['shift']());}catch(_0x1781a4){_0x21d265['push'](_0x21d265['shift']());}}}(_0x1648,0x81f26),function(_0x4830a3,_0x29dd42){const _0x422d9e=_0x3dcb;typeof exports==_0x422d9e(0x183)&&typeof module<'u'?_0x29dd42(exports):typeof define=='function'&&define[_0x422d9e(0x1a3)]?define([_0x422d9e(0x199)],_0x29dd42):(_0x4830a3=typeof globalThis<'u'?globalThis:_0x4830a3||self,_0x29dd42(_0x4830a3['UniverProPrint']={}));}(this,function(_0x4383b0){'use strict';const _0x4c7dfa=_0x3dcb;var _0x4f15fc=(_0x1c76c7=>(_0x1c76c7[_0x4c7dfa(0x1a4)]=_0x4c7dfa(0x1a4),_0x1c76c7[_0x4c7dfa(0x1a0)]='Tabloid',_0x1c76c7[_0x4c7dfa(0x194)]='Legal',_0x1c76c7[_0x4c7dfa(0x1aa)]=_0x4c7dfa(0x1aa),_0x1c76c7['Executive']=_0x4c7dfa(0x1b0),_0x1c76c7[_0x4c7dfa(0x1b5)]=_0x4c7dfa(0x1b5),_0x1c76c7['A3']='A3',_0x1c76c7['A4']='A4',_0x1c76c7['A5']='A5',_0x1c76c7['B4']='B4',_0x1c76c7['B5']='B5',_0x1c76c7))(_0x4f15fc||{}),_0x3c44b8=(_0x4b17a5=>(_0x4b17a5[_0x4c7dfa(0x186)]=_0x4c7dfa(0x186),_0x4b17a5[_0x4c7dfa(0x1a1)]='Landscape',_0x4b17a5))(_0x3c44b8||{}),_0xd65248=(_0x4294fd=>(_0x4294fd['Origin']=_0x4c7dfa(0x1ae),_0x4294fd[_0x4c7dfa(0x18f)]=_0x4c7dfa(0x18f),_0x4294fd[_0x4c7dfa(0x1b4)]='FitHeight',_0x4294fd[_0x4c7dfa(0x1ac)]=_0x4c7dfa(0x1ac),_0x4294fd['Custom']=_0x4c7dfa(0x19b),_0x4294fd))(_0xd65248||{}),_0x86641f=(_0x3792c5=>(_0x3792c5['Start']='Start',_0x3792c5['End']=_0x4c7dfa(0x187),_0x3792c5['Middle']='Middle',_0x3792c5))(_0x86641f||{}),_0x1e08c3=(_0x58a0f4=>(_0x58a0f4[_0x4c7dfa(0x1a9)]=_0x4c7dfa(0x1a9),_0x58a0f4[_0x4c7dfa(0x191)]=_0x4c7dfa(0x191),_0x58a0f4[_0x4c7dfa(0x184)]=_0x4c7dfa(0x184),_0x58a0f4[_0x4c7dfa(0x19f)]='None',_0x58a0f4))(_0x1e08c3||{});const _0x3523ad={[_0x4f15fc['A3']]:{'w':0x463,'h':0x633},[_0x4f15fc['A4']]:{'w':0x31a,'h':0x464},[_0x4f15fc['A5']]:{'w':0x22f,'h':0x31a},[_0x4f15fc['B4']]:{'w':0x3b0,'h':0x540},[_0x4f15fc['B5']]:{'w':0x299,'h':0x3b0},[_0x4f15fc['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x4f15fc[_0x4c7dfa(0x1b5)]]:{'w':0x330,'h':0x4e0},[_0x4f15fc['Legal']]:{'w':0x330,'h':0x540},[_0x4f15fc['Letter']]:{'w':0x330,'h':0x420},[_0x4f15fc[_0x4c7dfa(0x1aa)]]:{'w':0x210,'h':0x330},[_0x4f15fc[_0x4c7dfa(0x1a0)]]:{'w':0x420,'h':0x660}},_0x3b70f7={[_0x1e08c3[_0x4c7dfa(0x1a9)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x1e08c3[_0x4c7dfa(0x191)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x1e08c3[_0x4c7dfa(0x184)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x1e08c3[_0x4c7dfa(0x19f)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x3af92b='printing-canvas-container',_0xd19e40='printing-canvas';function _0x2495dd(_0x501e86,_0x27631f){const _0xe6c1c6=_0x4c7dfa,{w:_0x26a692,h:_0x20c8ab}=_0x3523ad[_0x501e86],_0x585915=_0x27631f===_0x3c44b8[_0xe6c1c6(0x186)]?_0x26a692:_0x20c8ab,_0x5a8ac5=_0x27631f===_0x3c44b8[_0xe6c1c6(0x186)]?_0x20c8ab:_0x26a692,_0x3deaa4='\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'+_0x585915+_0xe6c1c6(0x1b3)+_0x5a8ac5+_0xe6c1c6(0x190)+_0x3af92b+_0xe6c1c6(0x1b2)+_0x3af92b+_0xe6c1c6(0x1ad)+_0xd19e40+_0xe6c1c6(0x1af)+_0x5a8ac5+_0xe6c1c6(0x196)+_0x585915+_0xe6c1c6(0x18b),_0x547080=document[_0xe6c1c6(0x1ab)](_0xe6c1c6(0x189));return _0x547080['innerHTML']=_0x3deaa4,_0x547080['className']=_0xe6c1c6(0x19e),_0x547080;}_0x4383b0['PRINT_CANVAS_CLASS']=_0xd19e40,_0x4383b0[_0x4c7dfa(0x198)]=_0x3af92b,_0x4383b0[_0x4c7dfa(0x18c)]=_0x3b70f7,_0x4383b0[_0x4c7dfa(0x188)]=_0x3523ad,_0x4383b0[_0x4c7dfa(0x19a)]=_0x86641f,_0x4383b0[_0x4c7dfa(0x197)]=_0x3c44b8,_0x4383b0[_0x4c7dfa(0x18e)]=_0x1e08c3,_0x4383b0['PrintPaperSize']=_0x4f15fc,_0x4383b0[_0x4c7dfa(0x1a8)]=_0xd65248,_0x4383b0['createPrintStyle']=_0x2495dd,Object[_0x4c7dfa(0x1a7)](_0x4383b0,Symbol[_0x4c7dfa(0x19c)],{'value':_0x4c7dfa(0x1a2)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.6.0",
3
+ "version": "0.6.1-nightly.202502221605",
4
4
  "private": false,
5
5
  "description": "Print module for UniverJS",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -43,9 +43,9 @@
43
43
  ],
44
44
  "devDependencies": {
45
45
  "typescript": "^5.7.3",
46
- "vite": "^6.1.0",
47
- "vitest": "^3.0.5",
48
- "@univerjs-infra/shared": "0.6.0"
46
+ "vite": "^6.1.1",
47
+ "vitest": "^3.0.6",
48
+ "@univerjs-infra/shared": "0.6.1"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",