@univerjs-pro/print 0.6.2 → 0.6.3-nightly.202503041606

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 _0x4e0678=_0x2156;(function(_0x18bc03,_0x1198d6){const _0x296d12=_0x2156,_0x5a4da8=_0x18bc03();while(!![]){try{const _0x2e74d7=-parseInt(_0x296d12(0x207))/0x1+parseInt(_0x296d12(0x20d))/0x2+-parseInt(_0x296d12(0x1e2))/0x3+-parseInt(_0x296d12(0x20b))/0x4+parseInt(_0x296d12(0x1fc))/0x5*(-parseInt(_0x296d12(0x1f1))/0x6)+parseInt(_0x296d12(0x1e7))/0x7*(-parseInt(_0x296d12(0x1e6))/0x8)+parseInt(_0x296d12(0x204))/0x9;if(_0x2e74d7===_0x1198d6)break;else _0x5a4da8['push'](_0x5a4da8['shift']());}catch(_0x378a46){_0x5a4da8['push'](_0x5a4da8['shift']());}}}(_0x59df,0xbc676));function _0x2156(_0x3da2fa,_0x517ed9){const _0x59dfc5=_0x59df();return _0x2156=function(_0x21568b,_0x5ebf39){_0x21568b=_0x21568b-0x1e2;let _0xdca40d=_0x59dfc5[_0x21568b];return _0xdca40d;},_0x2156(_0x3da2fa,_0x517ed9);}function _0x59df(){const _0x22e914=['1245576aHtFEt','7GmlmiS','FitWidth','PRINT_CONTAINER_CLASS','Portrait','Executive','PaperMarginMap','\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','printing-canvas','Middle','74700WJxUOD','style','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Letter','None','PrintScale','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.','PrintPaperSize','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','px\x20','PRINT_CANVAS_CLASS','475gQqcTn','defineProperty','toStringTag','Origin','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','Statement','Start','33256287XhJHYI','End','Normal','1354873sQrqHx','\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','Folio','Tabloid','4995068aWWDeR','FitHeight','2705884azbCKZ','PrintAlign','innerHTML','Landscape','className','Legal','Custom','1002888hAHeNC','PrintDirection','FitPage','PaperSizePxMap'];_0x59df=function(){return _0x22e914;};return _0x59df();}Object[_0x4e0678(0x1fd)](exports,Symbol[_0x4e0678(0x1fe)],{'value':'Module'});var e=(_0x5b1203=>(_0x5b1203[_0x4e0678(0x1f4)]=_0x4e0678(0x1f4),_0x5b1203[_0x4e0678(0x20a)]=_0x4e0678(0x20a),_0x5b1203[_0x4e0678(0x212)]='Legal',_0x5b1203[_0x4e0678(0x202)]=_0x4e0678(0x202),_0x5b1203[_0x4e0678(0x1eb)]=_0x4e0678(0x1eb),_0x5b1203['Folio']='Folio',_0x5b1203['A3']='A3',_0x5b1203['A4']='A4',_0x5b1203['A5']='A5',_0x5b1203['B4']='B4',_0x5b1203['B5']='B5',_0x5b1203))(e||{}),i=(_0x12a4ec=>(_0x12a4ec[_0x4e0678(0x1ea)]=_0x4e0678(0x1ea),_0x12a4ec['Landscape']=_0x4e0678(0x210),_0x12a4ec))(i||{}),c=(_0x1e80be=>(_0x1e80be[_0x4e0678(0x1ff)]=_0x4e0678(0x1ff),_0x1e80be['FitWidth']=_0x4e0678(0x1e8),_0x1e80be[_0x4e0678(0x20c)]='FitHeight',_0x1e80be[_0x4e0678(0x1e4)]=_0x4e0678(0x1e4),_0x1e80be[_0x4e0678(0x213)]=_0x4e0678(0x213),_0x1e80be))(c||{}),g=(_0x459a17=>(_0x459a17[_0x4e0678(0x203)]=_0x4e0678(0x203),_0x459a17[_0x4e0678(0x205)]='End',_0x459a17[_0x4e0678(0x1f0)]=_0x4e0678(0x1f0),_0x459a17))(g||{}),o=(_0x2ba505=>(_0x2ba505[_0x4e0678(0x206)]=_0x4e0678(0x206),_0x2ba505['Narrow']='Narrow',_0x2ba505[_0x4e0678(0x1ee)]=_0x4e0678(0x1ee),_0x2ba505[_0x4e0678(0x1f5)]=_0x4e0678(0x1f5),_0x2ba505))(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[_0x4e0678(0x1eb)]]:{'w':0x2b8,'h':0x3f0},[e[_0x4e0678(0x209)]]:{'w':0x330,'h':0x4e0},[e[_0x4e0678(0x212)]]:{'w':0x330,'h':0x540},[e['Letter']]:{'w':0x330,'h':0x420},[e[_0x4e0678(0x202)]]:{'w':0x210,'h':0x330},[e[_0x4e0678(0x20a)]]:{'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['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x4e0678(0x1f5)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n='printing-canvas-container',p=_0x4e0678(0x1ef);function A(_0x327e06,_0x31f258){const _0x2bb0ab=_0x4e0678,{w:_0x426b3e,h:_0x4596b2}=m[_0x327e06],_0x176f9e=_0x31f258===i[_0x2bb0ab(0x1ea)]?_0x426b3e:_0x4596b2,_0x51a46a=_0x31f258===i[_0x2bb0ab(0x1ea)]?_0x4596b2:_0x426b3e,_0x18f053=_0x2bb0ab(0x208)+_0x176f9e+_0x2bb0ab(0x1fa)+_0x51a46a+_0x2bb0ab(0x1f7)+n+',\x20.'+n+_0x2bb0ab(0x1ed)+p+_0x2bb0ab(0x201)+_0x51a46a+_0x2bb0ab(0x1f3)+_0x176f9e+_0x2bb0ab(0x1f9),_0x283a04=document['createElement'](_0x2bb0ab(0x1f2));return _0x283a04[_0x2bb0ab(0x20f)]=_0x18f053,_0x283a04[_0x2bb0ab(0x211)]='offline-printing-css',_0x283a04;}exports[_0x4e0678(0x1fb)]=p,exports[_0x4e0678(0x1e9)]=n,exports[_0x4e0678(0x1ec)]=N,exports[_0x4e0678(0x1e5)]=m,exports[_0x4e0678(0x20e)]=g,exports[_0x4e0678(0x1e3)]=i,exports['PrintPaperMargin']=o,exports[_0x4e0678(0x1f8)]=e,exports[_0x4e0678(0x1f6)]=c,exports[_0x4e0678(0x200)]=A;
1
+ 'use strict';const _0x1d16bc=_0x1cdf;function _0x1cdf(_0x28c700,_0x338560){const _0x5f49c6=_0x5f49();return _0x1cdf=function(_0x1cdf90,_0x1c2b1d){_0x1cdf90=_0x1cdf90-0x1bf;let _0x87876b=_0x5f49c6[_0x1cdf90];return _0x87876b;},_0x1cdf(_0x28c700,_0x338560);}(function(_0x2cb870,_0x178535){const _0x1eeb6c=_0x1cdf,_0x4815ad=_0x2cb870();while(!![]){try{const _0x36ce26=parseInt(_0x1eeb6c(0x1ec))/0x1*(-parseInt(_0x1eeb6c(0x1d4))/0x2)+parseInt(_0x1eeb6c(0x1eb))/0x3+parseInt(_0x1eeb6c(0x1f2))/0x4*(parseInt(_0x1eeb6c(0x1d0))/0x5)+-parseInt(_0x1eeb6c(0x1f0))/0x6*(parseInt(_0x1eeb6c(0x1c6))/0x7)+-parseInt(_0x1eeb6c(0x1d8))/0x8+parseInt(_0x1eeb6c(0x1cb))/0x9*(-parseInt(_0x1eeb6c(0x1de))/0xa)+-parseInt(_0x1eeb6c(0x1c7))/0xb*(-parseInt(_0x1eeb6c(0x1e4))/0xc);if(_0x36ce26===_0x178535)break;else _0x4815ad['push'](_0x4815ad['shift']());}catch(_0x3792d9){_0x4815ad['push'](_0x4815ad['shift']());}}}(_0x5f49,0x3025c));function _0x5f49(){const _0x186304=['Folio','Tabloid','px\x20','defineProperty','FitHeight','PrintScale','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.','21ODmlgT','22bUvgao','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Start','PrintPaperMargin','1284813hhyFYq','Narrow','printing-canvas','className','PrintDirection','5PuBqCJ','Letter','PrintPaperSize','FitPage','4jnIbEj','Origin','innerHTML','PrintAlign','2563784gdGgYY','Custom',',\x20.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','None','20GkHWuc','style','Middle','Statement','Normal','Landscape','6662196kVAPmq','FitWidth','Legal','printing-canvas-container','PRINT_CANVAS_CLASS','Wide','offline-printing-css','503271UGxcBa','148622FHDIJe','PaperSizePxMap','End','Executive','463458GhbRbs','Module','216196aYfPsE','Portrait','toStringTag','createElement'];_0x5f49=function(){return _0x186304;};return _0x5f49();}Object[_0x1d16bc(0x1c2)](exports,Symbol[_0x1d16bc(0x1f4)],{'value':_0x1d16bc(0x1f1)});var e=(_0x57d07a=>(_0x57d07a['Letter']='Letter',_0x57d07a[_0x1d16bc(0x1c0)]=_0x1d16bc(0x1c0),_0x57d07a[_0x1d16bc(0x1e6)]=_0x1d16bc(0x1e6),_0x57d07a['Statement']=_0x1d16bc(0x1e1),_0x57d07a[_0x1d16bc(0x1ef)]=_0x1d16bc(0x1ef),_0x57d07a[_0x1d16bc(0x1bf)]='Folio',_0x57d07a['A3']='A3',_0x57d07a['A4']='A4',_0x57d07a['A5']='A5',_0x57d07a['B4']='B4',_0x57d07a['B5']='B5',_0x57d07a))(e||{}),i=(_0x27e504=>(_0x27e504[_0x1d16bc(0x1f3)]='Portrait',_0x27e504[_0x1d16bc(0x1e3)]='Landscape',_0x27e504))(i||{}),c=(_0x699761=>(_0x699761[_0x1d16bc(0x1d5)]=_0x1d16bc(0x1d5),_0x699761[_0x1d16bc(0x1e5)]='FitWidth',_0x699761['FitHeight']=_0x1d16bc(0x1c3),_0x699761[_0x1d16bc(0x1d3)]=_0x1d16bc(0x1d3),_0x699761[_0x1d16bc(0x1d9)]=_0x1d16bc(0x1d9),_0x699761))(c||{}),g=(_0x3051c6=>(_0x3051c6['Start']=_0x1d16bc(0x1c9),_0x3051c6[_0x1d16bc(0x1ee)]=_0x1d16bc(0x1ee),_0x3051c6[_0x1d16bc(0x1e0)]=_0x1d16bc(0x1e0),_0x3051c6))(g||{}),o=(_0x3d4c53=>(_0x3d4c53[_0x1d16bc(0x1e2)]=_0x1d16bc(0x1e2),_0x3d4c53[_0x1d16bc(0x1cc)]=_0x1d16bc(0x1cc),_0x3d4c53[_0x1d16bc(0x1e9)]=_0x1d16bc(0x1e9),_0x3d4c53[_0x1d16bc(0x1dd)]='None',_0x3d4c53))(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[_0x1d16bc(0x1ef)]]:{'w':0x2b8,'h':0x3f0},[e[_0x1d16bc(0x1bf)]]:{'w':0x330,'h':0x4e0},[e[_0x1d16bc(0x1e6)]]:{'w':0x330,'h':0x540},[e[_0x1d16bc(0x1d1)]]:{'w':0x330,'h':0x420},[e[_0x1d16bc(0x1e1)]]:{'w':0x210,'h':0x330},[e[_0x1d16bc(0x1c0)]]:{'w':0x420,'h':0x660}},N={[o[_0x1d16bc(0x1e2)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x1d16bc(0x1cc)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x1d16bc(0x1e9)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x1d16bc(0x1dd)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x1d16bc(0x1e7),p=_0x1d16bc(0x1cd);function A(_0x60b3db,_0x2fe266){const _0x440c7d=_0x1d16bc,{w:_0x482167,h:_0x1fe276}=m[_0x60b3db],_0x53d915=_0x2fe266===i['Portrait']?_0x482167:_0x1fe276,_0x27d694=_0x2fe266===i['Portrait']?_0x1fe276:_0x482167,_0x4029e4='\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'+_0x53d915+_0x440c7d(0x1c1)+_0x27d694+_0x440c7d(0x1c5)+n+_0x440c7d(0x1da)+n+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+p+_0x440c7d(0x1dc)+_0x27d694+_0x440c7d(0x1c8)+_0x53d915+_0x440c7d(0x1db),_0x11da47=document[_0x440c7d(0x1f5)](_0x440c7d(0x1df));return _0x11da47[_0x440c7d(0x1d6)]=_0x4029e4,_0x11da47[_0x440c7d(0x1ce)]=_0x440c7d(0x1ea),_0x11da47;}exports[_0x1d16bc(0x1e8)]=p,exports['PRINT_CONTAINER_CLASS']=n,exports['PaperMarginMap']=N,exports[_0x1d16bc(0x1ed)]=m,exports[_0x1d16bc(0x1d7)]=g,exports[_0x1d16bc(0x1cf)]=i,exports[_0x1d16bc(0x1ca)]=o,exports[_0x1d16bc(0x1d2)]=e,exports[_0x1d16bc(0x1c4)]=c,exports['createPrintStyle']=A;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x337ce9=_0x1992;function _0x56f8(){const _0x7a06f=['Wide','innerHTML','None','Origin','Executive','2102118GiurhX','Start','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','printing-canvas-container','printing-canvas','5930454thPKdx','Landscape','Folio','Normal','Narrow','FitPage','261854jSsTgl','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.','16980016EvdqCq','Letter','className','2297937ZRobtN','Middle','End','510307mcLfWp',',\x20.','1153112yuxZvE','style','px\x20','Tabloid','Portrait','Custom','Legal','Statement','offline-printing-css','\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','5NAvLWg','FitWidth'];_0x56f8=function(){return _0x7a06f;};return _0x56f8();}(function(_0x449e72,_0x48405f){const _0xf9cd79=_0x1992,_0x231c43=_0x449e72();while(!![]){try{const _0x19e15f=-parseInt(_0xf9cd79(0x11c))/0x1+-parseInt(_0xf9cd79(0x111))/0x2+parseInt(_0xf9cd79(0x121))/0x3+parseInt(_0xf9cd79(0x126))/0x4+-parseInt(_0xf9cd79(0x130))/0x5*(parseInt(_0xf9cd79(0x116))/0x6)+-parseInt(_0xf9cd79(0x124))/0x7+parseInt(_0xf9cd79(0x11e))/0x8;if(_0x19e15f===_0x48405f)break;else _0x231c43['push'](_0x231c43['shift']());}catch(_0x2091a3){_0x231c43['push'](_0x231c43['shift']());}}}(_0x56f8,0xc3ee8));var o=(_0x5e6b58=>(_0x5e6b58[_0x337ce9(0x11f)]=_0x337ce9(0x11f),_0x5e6b58[_0x337ce9(0x129)]='Tabloid',_0x5e6b58[_0x337ce9(0x12c)]=_0x337ce9(0x12c),_0x5e6b58['Statement']=_0x337ce9(0x12d),_0x5e6b58[_0x337ce9(0x110)]=_0x337ce9(0x110),_0x5e6b58['Folio']=_0x337ce9(0x118),_0x5e6b58['A3']='A3',_0x5e6b58['A4']='A4',_0x5e6b58['A5']='A5',_0x5e6b58['B4']='B4',_0x5e6b58['B5']='B5',_0x5e6b58))(o||{}),i=(_0xf1b7d=>(_0xf1b7d[_0x337ce9(0x12a)]=_0x337ce9(0x12a),_0xf1b7d[_0x337ce9(0x117)]=_0x337ce9(0x117),_0xf1b7d))(i||{}),w=(_0x55b6bd=>(_0x55b6bd[_0x337ce9(0x10f)]='Origin',_0x55b6bd[_0x337ce9(0x131)]=_0x337ce9(0x131),_0x55b6bd['FitHeight']='FitHeight',_0x55b6bd[_0x337ce9(0x11b)]=_0x337ce9(0x11b),_0x55b6bd[_0x337ce9(0x12b)]=_0x337ce9(0x12b),_0x55b6bd))(w||{}),m=(_0xd85788=>(_0xd85788[_0x337ce9(0x112)]='Start',_0xd85788['End']=_0x337ce9(0x123),_0xd85788[_0x337ce9(0x122)]=_0x337ce9(0x122),_0xd85788))(m||{}),e=(_0x87251a=>(_0x87251a[_0x337ce9(0x119)]=_0x337ce9(0x119),_0x87251a[_0x337ce9(0x11a)]='Narrow',_0x87251a[_0x337ce9(0x132)]=_0x337ce9(0x132),_0x87251a[_0x337ce9(0x10e)]=_0x337ce9(0x10e),_0x87251a))(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[_0x337ce9(0x110)]]:{'w':0x2b8,'h':0x3f0},[o[_0x337ce9(0x118)]]:{'w':0x330,'h':0x4e0},[o[_0x337ce9(0x12c)]]:{'w':0x330,'h':0x540},[o[_0x337ce9(0x11f)]]:{'w':0x330,'h':0x420},[o[_0x337ce9(0x12d)]]:{'w':0x210,'h':0x330},[o[_0x337ce9(0x129)]]:{'w':0x420,'h':0x660}},v={[e[_0x337ce9(0x119)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x337ce9(0x132)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x337ce9(0x10e)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x337ce9(0x114),p=_0x337ce9(0x115);function N(_0x1c3a35,_0x43c9c7){const _0x48003e=_0x337ce9,{w:_0x27fceb,h:_0x5552e4}=g[_0x1c3a35],_0x29e51b=_0x43c9c7===i['Portrait']?_0x27fceb:_0x5552e4,_0x50d5df=_0x43c9c7===i[_0x48003e(0x12a)]?_0x5552e4:_0x27fceb,_0x3b5c6d=_0x48003e(0x12f)+_0x29e51b+_0x48003e(0x128)+_0x50d5df+_0x48003e(0x11d)+l+_0x48003e(0x125)+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+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x50d5df+_0x48003e(0x113)+_0x29e51b+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x1e8280=document['createElement'](_0x48003e(0x127));return _0x1e8280[_0x48003e(0x133)]=_0x3b5c6d,_0x1e8280[_0x48003e(0x120)]=_0x48003e(0x12e),_0x1e8280;}function _0x1992(_0x5727a3,_0x42a935){const _0x56f8cb=_0x56f8();return _0x1992=function(_0x199284,_0x8581c8){_0x199284=_0x199284-0x10e;let _0x25485b=_0x56f8cb[_0x199284];return _0x25485b;},_0x1992(_0x5727a3,_0x42a935);}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 _0x2064f0=_0x1ea9;(function(_0x531ad7,_0xca702d){const _0x1b04de=_0x1ea9,_0x5bfcb5=_0x531ad7();while(!![]){try{const _0x1d0532=-parseInt(_0x1b04de(0x16f))/0x1*(parseInt(_0x1b04de(0x162))/0x2)+parseInt(_0x1b04de(0x159))/0x3+parseInt(_0x1b04de(0x172))/0x4+parseInt(_0x1b04de(0x14f))/0x5+parseInt(_0x1b04de(0x15a))/0x6+-parseInt(_0x1b04de(0x166))/0x7*(-parseInt(_0x1b04de(0x160))/0x8)+-parseInt(_0x1b04de(0x156))/0x9;if(_0x1d0532===_0xca702d)break;else _0x5bfcb5['push'](_0x5bfcb5['shift']());}catch(_0x4176c4){_0x5bfcb5['push'](_0x5bfcb5['shift']());}}}(_0x5139,0xe77a6));function _0x1ea9(_0x3525f6,_0x27dde9){const _0x51390e=_0x5139();return _0x1ea9=function(_0x1ea91f,_0xed2dab){_0x1ea91f=_0x1ea91f-0x14a;let _0x35aa7c=_0x51390e[_0x1ea91f];return _0x35aa7c;},_0x1ea9(_0x3525f6,_0x27dde9);}var o=(_0x31ffa9=>(_0x31ffa9['Letter']='Letter',_0x31ffa9[_0x2064f0(0x16a)]=_0x2064f0(0x16a),_0x31ffa9[_0x2064f0(0x15f)]=_0x2064f0(0x15f),_0x31ffa9[_0x2064f0(0x161)]=_0x2064f0(0x161),_0x31ffa9[_0x2064f0(0x16e)]=_0x2064f0(0x16e),_0x31ffa9[_0x2064f0(0x170)]=_0x2064f0(0x170),_0x31ffa9['A3']='A3',_0x31ffa9['A4']='A4',_0x31ffa9['A5']='A5',_0x31ffa9['B4']='B4',_0x31ffa9['B5']='B5',_0x31ffa9))(o||{}),i=(_0x417f57=>(_0x417f57[_0x2064f0(0x15e)]=_0x2064f0(0x15e),_0x417f57[_0x2064f0(0x16d)]='Landscape',_0x417f57))(i||{}),w=(_0x3b96ac=>(_0x3b96ac[_0x2064f0(0x14e)]='Origin',_0x3b96ac[_0x2064f0(0x15b)]=_0x2064f0(0x15b),_0x3b96ac[_0x2064f0(0x150)]='FitHeight',_0x3b96ac['FitPage']=_0x2064f0(0x152),_0x3b96ac['Custom']=_0x2064f0(0x14a),_0x3b96ac))(w||{}),m=(_0x482316=>(_0x482316[_0x2064f0(0x16b)]=_0x2064f0(0x16b),_0x482316[_0x2064f0(0x16c)]=_0x2064f0(0x16c),_0x482316['Middle']=_0x2064f0(0x155),_0x482316))(m||{}),e=(_0x25d21a=>(_0x25d21a[_0x2064f0(0x167)]=_0x2064f0(0x167),_0x25d21a[_0x2064f0(0x154)]=_0x2064f0(0x154),_0x25d21a[_0x2064f0(0x14d)]=_0x2064f0(0x14d),_0x25d21a[_0x2064f0(0x157)]=_0x2064f0(0x157),_0x25d21a))(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[_0x2064f0(0x16e)]]:{'w':0x2b8,'h':0x3f0},[o[_0x2064f0(0x170)]]:{'w':0x330,'h':0x4e0},[o[_0x2064f0(0x15f)]]:{'w':0x330,'h':0x540},[o['Letter']]:{'w':0x330,'h':0x420},[o[_0x2064f0(0x161)]]:{'w':0x210,'h':0x330},[o[_0x2064f0(0x16a)]]:{'w':0x420,'h':0x660}},v={[e[_0x2064f0(0x167)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x2064f0(0x14d)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x2064f0(0x157)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x2064f0(0x151),p=_0x2064f0(0x164);function _0x5139(){const _0x2df358=['FitWidth','innerHTML','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Portrait','Legal','8691592tBPvsI','Statement','32762AUntsx','\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','px\x20','7xnDOSM','Normal','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.','className','Tabloid','Start','End','Landscape','Executive','49DBbdpQ','Folio','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','1890428RiNcWK','Custom','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','style','Wide','Origin','6217290gHInAy','FitHeight','printing-canvas-container','FitPage','offline-printing-css','Narrow','Middle','28261143gNjmJA','None',',\x20.','3692550AlzWMU','5145396LUeIKJ'];_0x5139=function(){return _0x2df358;};return _0x5139();}function N(_0xc7de0e,_0x4f0379){const _0x3103b5=_0x2064f0,{w:_0x2d577f,h:_0x320c7f}=g[_0xc7de0e],_0x1c026a=_0x4f0379===i['Portrait']?_0x2d577f:_0x320c7f,_0x104430=_0x4f0379===i[_0x3103b5(0x15e)]?_0x320c7f:_0x2d577f,_0x1c8ec3='\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'+_0x1c026a+_0x3103b5(0x165)+_0x104430+_0x3103b5(0x168)+l+_0x3103b5(0x158)+l+_0x3103b5(0x171)+p+_0x3103b5(0x163)+_0x104430+_0x3103b5(0x15d)+_0x1c026a+_0x3103b5(0x14b),_0x1a1974=document['createElement'](_0x3103b5(0x14c));return _0x1a1974[_0x3103b5(0x15c)]=_0x1c8ec3,_0x1a1974[_0x3103b5(0x169)]=_0x3103b5(0x153),_0x1a1974;}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 _0x739b(_0x1e24b0,_0x5a1e3b){const _0x4844b0=_0x4844();return _0x739b=function(_0x739bd0,_0x58de74){_0x739bd0=_0x739bd0-0xd9;let _0xce4027=_0x4844b0[_0x739bd0];return _0xce4027;},_0x739b(_0x1e24b0,_0x5a1e3b);}(function(_0x59c38e,_0x54fcf6){const _0x37c6d1=_0x739b,_0x3d620e=_0x59c38e();while(!![]){try{const _0x4ff658=-parseInt(_0x37c6d1(0xf8))/0x1+parseInt(_0x37c6d1(0xe5))/0x2*(-parseInt(_0x37c6d1(0xe6))/0x3)+parseInt(_0x37c6d1(0xe9))/0x4+parseInt(_0x37c6d1(0xfd))/0x5*(parseInt(_0x37c6d1(0xfc))/0x6)+parseInt(_0x37c6d1(0xea))/0x7+-parseInt(_0x37c6d1(0xdd))/0x8+parseInt(_0x37c6d1(0xda))/0x9;if(_0x4ff658===_0x54fcf6)break;else _0x3d620e['push'](_0x3d620e['shift']());}catch(_0x5b8e27){_0x3d620e['push'](_0x3d620e['shift']());}}}(_0x4844,0x379cc),function(_0x136d7e,_0x1febdf){const _0x481762=_0x739b;typeof exports==_0x481762(0xf2)&&typeof module<'u'?_0x1febdf(exports):typeof define==_0x481762(0xf5)&&define[_0x481762(0xee)]?define([_0x481762(0xdc)],_0x1febdf):(_0x136d7e=typeof globalThis<'u'?globalThis:_0x136d7e||self,_0x1febdf(_0x136d7e['UniverProPrint']={}));}(this,function(_0x5bfc03){'use strict';const _0x274140=_0x739b;var _0x36ac63=(_0x31e968=>(_0x31e968[_0x274140(0xe1)]=_0x274140(0xe1),_0x31e968[_0x274140(0xfb)]='Tabloid',_0x31e968[_0x274140(0xde)]=_0x274140(0xde),_0x31e968[_0x274140(0xe3)]=_0x274140(0xe3),_0x31e968[_0x274140(0xe2)]=_0x274140(0xe2),_0x31e968[_0x274140(0xe4)]=_0x274140(0xe4),_0x31e968['A3']='A3',_0x31e968['A4']='A4',_0x31e968['A5']='A5',_0x31e968['B4']='B4',_0x31e968['B5']='B5',_0x31e968))(_0x36ac63||{}),_0x195251=(_0x32767c=>(_0x32767c[_0x274140(0xeb)]='Portrait',_0x32767c[_0x274140(0x10a)]='Landscape',_0x32767c))(_0x195251||{}),_0x180e19=(_0x3144ca=>(_0x3144ca['Origin']='Origin',_0x3144ca[_0x274140(0xf9)]=_0x274140(0xf9),_0x3144ca[_0x274140(0x10c)]=_0x274140(0x10c),_0x3144ca[_0x274140(0xed)]=_0x274140(0xed),_0x3144ca[_0x274140(0x101)]=_0x274140(0x101),_0x3144ca))(_0x180e19||{}),_0x3c1eab=(_0x523f8c=>(_0x523f8c[_0x274140(0x107)]=_0x274140(0x107),_0x523f8c[_0x274140(0x100)]=_0x274140(0x100),_0x523f8c[_0x274140(0x105)]=_0x274140(0x105),_0x523f8c))(_0x3c1eab||{}),_0x40598e=(_0x512015=>(_0x512015[_0x274140(0xd9)]=_0x274140(0xd9),_0x512015[_0x274140(0xf6)]=_0x274140(0xf6),_0x512015['Wide']=_0x274140(0x10d),_0x512015[_0x274140(0xf3)]=_0x274140(0xf3),_0x512015))(_0x40598e||{});const _0x4b2246={[_0x36ac63['A3']]:{'w':0x463,'h':0x633},[_0x36ac63['A4']]:{'w':0x31a,'h':0x464},[_0x36ac63['A5']]:{'w':0x22f,'h':0x31a},[_0x36ac63['B4']]:{'w':0x3b0,'h':0x540},[_0x36ac63['B5']]:{'w':0x299,'h':0x3b0},[_0x36ac63['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x36ac63['Folio']]:{'w':0x330,'h':0x4e0},[_0x36ac63['Legal']]:{'w':0x330,'h':0x540},[_0x36ac63[_0x274140(0xe1)]]:{'w':0x330,'h':0x420},[_0x36ac63['Statement']]:{'w':0x210,'h':0x330},[_0x36ac63['Tabloid']]:{'w':0x420,'h':0x660}},_0x44fb84={[_0x40598e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x40598e['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x40598e[_0x274140(0x10d)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x40598e[_0x274140(0xf3)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x1472b2=_0x274140(0xdf),_0x2f4ead='printing-canvas';function _0x3062cf(_0x47ed78,_0x50ba11){const _0x1ad53f=_0x274140,{w:_0x411b3b,h:_0x456635}=_0x4b2246[_0x47ed78],_0x20d96d=_0x50ba11===_0x195251[_0x1ad53f(0xeb)]?_0x411b3b:_0x456635,_0xc30d74=_0x50ba11===_0x195251[_0x1ad53f(0xeb)]?_0x456635:_0x411b3b,_0x814d99=_0x1ad53f(0xf0)+_0x20d96d+_0x1ad53f(0x108)+_0xc30d74+_0x1ad53f(0x102)+_0x1472b2+_0x1ad53f(0x110)+_0x1472b2+_0x1ad53f(0xec)+_0x2f4ead+_0x1ad53f(0xf1)+_0xc30d74+_0x1ad53f(0xe0)+_0x20d96d+_0x1ad53f(0x10f),_0x4ec40d=document[_0x1ad53f(0x104)](_0x1ad53f(0xff));return _0x4ec40d[_0x1ad53f(0xf4)]=_0x814d99,_0x4ec40d[_0x1ad53f(0x103)]=_0x1ad53f(0xdb),_0x4ec40d;}_0x5bfc03[_0x274140(0x109)]=_0x2f4ead,_0x5bfc03['PRINT_CONTAINER_CLASS']=_0x1472b2,_0x5bfc03[_0x274140(0xfe)]=_0x44fb84,_0x5bfc03[_0x274140(0x10e)]=_0x4b2246,_0x5bfc03[_0x274140(0xfa)]=_0x3c1eab,_0x5bfc03['PrintDirection']=_0x195251,_0x5bfc03[_0x274140(0xe7)]=_0x40598e,_0x5bfc03[_0x274140(0xe8)]=_0x36ac63,_0x5bfc03[_0x274140(0x10b)]=_0x180e19,_0x5bfc03['createPrintStyle']=_0x3062cf,Object[_0x274140(0x106)](_0x5bfc03,Symbol[_0x274140(0xef)],{'value':_0x274140(0xf7)});}));function _0x4844(){const _0x2bc263=['printing-canvas-container','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Letter','Executive','Statement','Folio','2deSiDB','206865ZezxeH','PrintPaperMargin','PrintPaperSize','104024SycilP','404194dtXELS','Portrait','\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.','FitPage','amd','toStringTag','\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','object','None','innerHTML','function','Narrow','Module','433277iBkriF','FitWidth','PrintAlign','Tabloid','2112162ppZctC','5lCNtRH','PaperMarginMap','style','End','Custom','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.','className','createElement','Middle','defineProperty','Start','px\x20','PRINT_CANVAS_CLASS','Landscape','PrintScale','FitHeight','Wide','PaperSizePxMap','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',',\x20.','Normal','6197580aHAqKH','offline-printing-css','exports','3155000xgHDpQ','Legal'];_0x4844=function(){return _0x2bc263;};return _0x4844();}
1
+ (function(_0x375cee,_0x23468b){const _0xde2a08=_0x2a84,_0x33cd2f=_0x375cee();while(!![]){try{const _0x513872=-parseInt(_0xde2a08(0xe9))/0x1*(parseInt(_0xde2a08(0xb5))/0x2)+-parseInt(_0xde2a08(0xd3))/0x3*(-parseInt(_0xde2a08(0xdb))/0x4)+parseInt(_0xde2a08(0xeb))/0x5+parseInt(_0xde2a08(0xd8))/0x6*(-parseInt(_0xde2a08(0xd5))/0x7)+-parseInt(_0xde2a08(0xd7))/0x8+parseInt(_0xde2a08(0xce))/0x9*(-parseInt(_0xde2a08(0xd2))/0xa)+parseInt(_0xde2a08(0xe8))/0xb*(parseInt(_0xde2a08(0xd1))/0xc);if(_0x513872===_0x23468b)break;else _0x33cd2f['push'](_0x33cd2f['shift']());}catch(_0x27cfd1){_0x33cd2f['push'](_0x33cd2f['shift']());}}}(_0x694b,0xb7679),function(_0xacd70c,_0x1e8ef6){const _0x1e79b0=_0x2a84;typeof exports==_0x1e79b0(0xdf)&&typeof module<'u'?_0x1e8ef6(exports):typeof define==_0x1e79b0(0xb7)&&define[_0x1e79b0(0xea)]?define([_0x1e79b0(0xda)],_0x1e8ef6):(_0xacd70c=typeof globalThis<'u'?globalThis:_0xacd70c||self,_0x1e8ef6(_0xacd70c[_0x1e79b0(0xc5)]={}));}(this,function(_0x826f19){'use strict';const _0x1833e9=_0x2a84;var _0x538d01=(_0x502107=>(_0x502107[_0x1833e9(0xe4)]=_0x1833e9(0xe4),_0x502107[_0x1833e9(0xba)]=_0x1833e9(0xba),_0x502107[_0x1833e9(0xcb)]=_0x1833e9(0xcb),_0x502107['Statement']='Statement',_0x502107[_0x1833e9(0xec)]=_0x1833e9(0xec),_0x502107[_0x1833e9(0xbf)]='Folio',_0x502107['A3']='A3',_0x502107['A4']='A4',_0x502107['A5']='A5',_0x502107['B4']='B4',_0x502107['B5']='B5',_0x502107))(_0x538d01||{}),_0x57cc04=(_0x2ff449=>(_0x2ff449[_0x1833e9(0xc7)]=_0x1833e9(0xc7),_0x2ff449[_0x1833e9(0xe1)]='Landscape',_0x2ff449))(_0x57cc04||{}),_0x4a9ba9=(_0x37615a=>(_0x37615a['Origin']=_0x1833e9(0xd0),_0x37615a[_0x1833e9(0xbd)]=_0x1833e9(0xbd),_0x37615a[_0x1833e9(0xb8)]=_0x1833e9(0xb8),_0x37615a[_0x1833e9(0xd6)]='FitPage',_0x37615a['Custom']=_0x1833e9(0xc9),_0x37615a))(_0x4a9ba9||{}),_0x1d1676=(_0xf596ce=>(_0xf596ce[_0x1833e9(0xd4)]='Start',_0xf596ce[_0x1833e9(0xed)]=_0x1833e9(0xed),_0xf596ce[_0x1833e9(0xe2)]=_0x1833e9(0xe2),_0xf596ce))(_0x1d1676||{}),_0x1c073f=(_0x22c76b=>(_0x22c76b[_0x1833e9(0xe0)]=_0x1833e9(0xe0),_0x22c76b[_0x1833e9(0xe6)]='Narrow',_0x22c76b[_0x1833e9(0xc3)]=_0x1833e9(0xc3),_0x22c76b[_0x1833e9(0xdd)]=_0x1833e9(0xdd),_0x22c76b))(_0x1c073f||{});const _0x28b4f3={[_0x538d01['A3']]:{'w':0x463,'h':0x633},[_0x538d01['A4']]:{'w':0x31a,'h':0x464},[_0x538d01['A5']]:{'w':0x22f,'h':0x31a},[_0x538d01['B4']]:{'w':0x3b0,'h':0x540},[_0x538d01['B5']]:{'w':0x299,'h':0x3b0},[_0x538d01['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x538d01[_0x1833e9(0xbf)]]:{'w':0x330,'h':0x4e0},[_0x538d01['Legal']]:{'w':0x330,'h':0x540},[_0x538d01[_0x1833e9(0xe4)]]:{'w':0x330,'h':0x420},[_0x538d01[_0x1833e9(0xb6)]]:{'w':0x210,'h':0x330},[_0x538d01[_0x1833e9(0xba)]]:{'w':0x420,'h':0x660}},_0x1a902e={[_0x1c073f[_0x1833e9(0xe0)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x1c073f['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x1c073f[_0x1833e9(0xc3)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x1c073f[_0x1833e9(0xdd)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0xf6110d=_0x1833e9(0xd9),_0x49fd51=_0x1833e9(0xc8);function _0xf325bc(_0x3da94e,_0x59e7dd){const _0x3911e8=_0x1833e9,{w:_0x2e022a,h:_0xda0a49}=_0x28b4f3[_0x3da94e],_0xaf56a7=_0x59e7dd===_0x57cc04['Portrait']?_0x2e022a:_0xda0a49,_0x25dd29=_0x59e7dd===_0x57cc04[_0x3911e8(0xc7)]?_0xda0a49:_0x2e022a,_0x38562d=_0x3911e8(0xb9)+_0xaf56a7+_0x3911e8(0xe5)+_0x25dd29+'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.'+_0xf6110d+_0x3911e8(0xbc)+_0xf6110d+'\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.'+_0x49fd51+_0x3911e8(0xe7)+_0x25dd29+_0x3911e8(0xde)+_0xaf56a7+_0x3911e8(0xc1),_0x572d22=document['createElement'](_0x3911e8(0xc0));return _0x572d22['innerHTML']=_0x38562d,_0x572d22[_0x3911e8(0xc2)]='offline-printing-css',_0x572d22;}_0x826f19[_0x1833e9(0xc6)]=_0x49fd51,_0x826f19[_0x1833e9(0xc4)]=_0xf6110d,_0x826f19[_0x1833e9(0xdc)]=_0x1a902e,_0x826f19[_0x1833e9(0xcd)]=_0x28b4f3,_0x826f19[_0x1833e9(0xe3)]=_0x1d1676,_0x826f19['PrintDirection']=_0x57cc04,_0x826f19[_0x1833e9(0xca)]=_0x1c073f,_0x826f19[_0x1833e9(0xee)]=_0x538d01,_0x826f19[_0x1833e9(0xbe)]=_0x4a9ba9,_0x826f19[_0x1833e9(0xbb)]=_0xf325bc,Object[_0x1833e9(0xcc)](_0x826f19,Symbol[_0x1833e9(0xcf)],{'value':'Module'});}));function _0x2a84(_0x46dc0b,_0x31d325){const _0x694b11=_0x694b();return _0x2a84=function(_0x2a84e5,_0xf65498){_0x2a84e5=_0x2a84e5-0xb5;let _0x30a8a4=_0x694b11[_0x2a84e5];return _0x30a8a4;},_0x2a84(_0x46dc0b,_0x31d325);}function _0x694b(){const _0x2d9435=['Normal','Landscape','Middle','PrintAlign','Letter','px\x20','Narrow','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','97229PlXpWI','154549UAPFfu','amd','1141740EokGmr','Executive','End','PrintPaperSize','8NFYlCs','Statement','function','FitHeight','\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','Tabloid','createPrintStyle',',\x20.','FitWidth','PrintScale','Folio','style','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','className','Wide','PRINT_CONTAINER_CLASS','UniverProPrint','PRINT_CANVAS_CLASS','Portrait','printing-canvas','Custom','PrintPaperMargin','Legal','defineProperty','PaperSizePxMap','12001617VRhGTm','toStringTag','Origin','3924gEZqDd','10YKuCOB','57vPFDRC','Start','9562dmfMMr','FitPage','3546336dQtYup','4086lrauHN','printing-canvas-container','exports','201636rSQgcf','PaperMarginMap','None','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','object'];_0x694b=function(){return _0x2d9435;};return _0x694b();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.6.2",
3
+ "version": "0.6.3-nightly.202503041606",
4
4
  "private": false,
5
5
  "description": "Print module for UniverJS",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,10 +42,10 @@
42
42
  "lib"
43
43
  ],
44
44
  "devDependencies": {
45
- "typescript": "^5.7.3",
45
+ "typescript": "^5.8.2",
46
46
  "vite": "^6.2.0",
47
47
  "vitest": "^3.0.7",
48
- "@univerjs-infra/shared": "0.6.2"
48
+ "@univerjs-infra/shared": "0.6.3"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",