@univerjs-pro/print 0.6.8 → 0.6.9-experimental.20250406-d422c87
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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +2 -2
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x7c2fba=_0x4108;(function(_0x31f2d6,_0x49458d){const _0x40fbf2=_0x4108,_0x478837=_0x31f2d6();while(!![]){try{const _0x223292=parseInt(_0x40fbf2(0x121))/0x1+parseInt(_0x40fbf2(0x143))/0x2*(-parseInt(_0x40fbf2(0x118))/0x3)+parseInt(_0x40fbf2(0x12e))/0x4+parseInt(_0x40fbf2(0x130))/0x5*(-parseInt(_0x40fbf2(0x12b))/0x6)+-parseInt(_0x40fbf2(0x11e))/0x7+-parseInt(_0x40fbf2(0x12c))/0x8+-parseInt(_0x40fbf2(0x11f))/0x9*(-parseInt(_0x40fbf2(0x11d))/0xa);if(_0x223292===_0x49458d)break;else _0x478837['push'](_0x478837['shift']());}catch(_0xe6e7b3){_0x478837['push'](_0x478837['shift']());}}}(_0x1b52,0xd4533));function _0x4108(_0x1ee785,_0x1bd765){const _0x1b52e5=_0x1b52();return _0x4108=function(_0x410816,_0xa4df0a){_0x410816=_0x410816-0x114;let _0x2787ab=_0x1b52e5[_0x410816];return _0x2787ab;},_0x4108(_0x1ee785,_0x1bd765);}Object[_0x7c2fba(0x12d)](exports,Symbol[_0x7c2fba(0x13f)],{'value':'Module'});var e=(_0x23df30=>(_0x23df30[_0x7c2fba(0x131)]=_0x7c2fba(0x131),_0x23df30[_0x7c2fba(0x136)]='Tabloid',_0x23df30[_0x7c2fba(0x117)]='Legal',_0x23df30[_0x7c2fba(0x120)]=_0x7c2fba(0x120),_0x23df30[_0x7c2fba(0x134)]=_0x7c2fba(0x134),_0x23df30['Folio']=_0x7c2fba(0x12f),_0x23df30['A3']='A3',_0x23df30['A4']='A4',_0x23df30['A5']='A5',_0x23df30['B4']='B4',_0x23df30['B5']='B5',_0x23df30))(e||{}),i=(_0x97d159=>(_0x97d159['Portrait']=_0x7c2fba(0x139),_0x97d159[_0x7c2fba(0x13a)]=_0x7c2fba(0x13a),_0x97d159))(i||{}),c=(_0x3ae49e=>(_0x3ae49e[_0x7c2fba(0x13e)]=_0x7c2fba(0x13e),_0x3ae49e[_0x7c2fba(0x146)]='FitWidth',_0x3ae49e[_0x7c2fba(0x132)]='FitHeight',_0x3ae49e[_0x7c2fba(0x144)]='FitPage',_0x3ae49e[_0x7c2fba(0x11b)]=_0x7c2fba(0x11b),_0x3ae49e))(c||{}),g=(_0x40fd2c=>(_0x40fd2c[_0x7c2fba(0x114)]=_0x7c2fba(0x114),_0x40fd2c['End']=_0x7c2fba(0x126),_0x40fd2c[_0x7c2fba(0x135)]=_0x7c2fba(0x135),_0x40fd2c))(g||{}),o=(_0x4fcd0a=>(_0x4fcd0a[_0x7c2fba(0x13c)]=_0x7c2fba(0x13c),_0x4fcd0a['Narrow']=_0x7c2fba(0x125),_0x4fcd0a[_0x7c2fba(0x137)]=_0x7c2fba(0x137),_0x4fcd0a[_0x7c2fba(0x141)]=_0x7c2fba(0x141),_0x4fcd0a))(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[_0x7c2fba(0x134)]]:{'w':0x2b8,'h':0x3f0},[e[_0x7c2fba(0x12f)]]:{'w':0x330,'h':0x4e0},[e[_0x7c2fba(0x117)]]:{'w':0x330,'h':0x540},[e[_0x7c2fba(0x131)]]:{'w':0x330,'h':0x420},[e[_0x7c2fba(0x120)]]:{'w':0x210,'h':0x330},[e[_0x7c2fba(0x136)]]:{'w':0x420,'h':0x660}},N={[o[_0x7c2fba(0x13c)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x7c2fba(0x125)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x7c2fba(0x141)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x7c2fba(0x133),p=_0x7c2fba(0x12a);function A(_0x18b083,_0x45206f){const _0x16a81d=_0x7c2fba,{w:_0x48fccd,h:_0x4cf42b}=m[_0x18b083],_0x394a28=_0x45206f===i[_0x16a81d(0x139)]?_0x48fccd:_0x4cf42b,_0x280af9=_0x45206f===i['Portrait']?_0x4cf42b:_0x48fccd,_0x351eb4='\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'+_0x394a28+_0x16a81d(0x145)+_0x280af9+_0x16a81d(0x129)+n+_0x16a81d(0x147)+n+_0x16a81d(0x115)+p+_0x16a81d(0x138)+_0x280af9+_0x16a81d(0x128)+_0x394a28+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x5af706=document[_0x16a81d(0x124)](_0x16a81d(0x123));return _0x5af706[_0x16a81d(0x11a)]=_0x351eb4,_0x5af706[_0x16a81d(0x11c)]=_0x16a81d(0x13d),_0x5af706;}exports[_0x7c2fba(0x148)]=p,exports['PRINT_CONTAINER_CLASS']=n,exports[_0x7c2fba(0x142)]=N,exports[_0x7c2fba(0x140)]=m,exports[_0x7c2fba(0x127)]=g,exports[_0x7c2fba(0x13b)]=i,exports[_0x7c2fba(0x116)]=o,exports['PrintPaperSize']=e,exports[_0x7c2fba(0x122)]=c,exports[_0x7c2fba(0x119)]=A;function _0x1b52(){const _0x169c79=['5619948ESrCgo','Folio','1849715qwtuDD','Letter','FitHeight','printing-canvas-container','Executive','Middle','Tabloid','Wide','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Portrait','Landscape','PrintDirection','Normal','offline-printing-css','Origin','toStringTag','PaperSizePxMap','None','PaperMarginMap','36066ueZSbF','FitPage','px\x20','FitWidth',',\x20.','PRINT_CANVAS_CLASS','Start','\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','Legal','99Lowgml','createPrintStyle','innerHTML','Custom','className','60tUlHqJ','1584121NzsUas','2740293Xfvrqn','Statement','803910TTfkec','PrintScale','style','createElement','Narrow','End','PrintAlign','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','printing-canvas','18OMTrRW','9878840IxYrPj','defineProperty'];_0x1b52=function(){return _0x169c79;};return _0x1b52();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x40028d=_0x2a6f;(function(_0x5653a3,_0x130886){const _0x1ebb03=_0x2a6f,_0x1f2efb=_0x5653a3();while(!![]){try{const _0x2a5e47=parseInt(_0x1ebb03(0x109))/0x1*(parseInt(_0x1ebb03(0x103))/0x2)+-parseInt(_0x1ebb03(0x10c))/0x3+-parseInt(_0x1ebb03(0x106))/0x4+-parseInt(_0x1ebb03(0xf2))/0x5+-parseInt(_0x1ebb03(0xf9))/0x6*(-parseInt(_0x1ebb03(0xf5))/0x7)+parseInt(_0x1ebb03(0xef))/0x8+-parseInt(_0x1ebb03(0x10e))/0x9;if(_0x2a5e47===_0x130886)break;else _0x1f2efb['push'](_0x1f2efb['shift']());}catch(_0x909f34){_0x1f2efb['push'](_0x1f2efb['shift']());}}}(_0x265c,0x51531));function _0x2a6f(_0x24f3f8,_0x20416f){const _0x265c92=_0x265c();return _0x2a6f=function(_0x2a6fe5,_0x1272f4){_0x2a6fe5=_0x2a6fe5-0xef;let _0x460ab9=_0x265c92[_0x2a6fe5];return _0x460ab9;},_0x2a6f(_0x24f3f8,_0x20416f);}var o=(_0x23ddad=>(_0x23ddad['Letter']=_0x40028d(0xf4),_0x23ddad[_0x40028d(0xf3)]=_0x40028d(0xf3),_0x23ddad[_0x40028d(0x110)]=_0x40028d(0x110),_0x23ddad[_0x40028d(0xfd)]=_0x40028d(0xfd),_0x23ddad[_0x40028d(0x104)]=_0x40028d(0x104),_0x23ddad[_0x40028d(0x10a)]='Folio',_0x23ddad['A3']='A3',_0x23ddad['A4']='A4',_0x23ddad['A5']='A5',_0x23ddad['B4']='B4',_0x23ddad['B5']='B5',_0x23ddad))(o||{}),i=(_0x20204d=>(_0x20204d['Portrait']=_0x40028d(0xfe),_0x20204d[_0x40028d(0xf7)]=_0x40028d(0xf7),_0x20204d))(i||{}),w=(_0x4ad4e0=>(_0x4ad4e0[_0x40028d(0x107)]='Origin',_0x4ad4e0[_0x40028d(0xf8)]=_0x40028d(0xf8),_0x4ad4e0[_0x40028d(0xfc)]=_0x40028d(0xfc),_0x4ad4e0[_0x40028d(0x112)]=_0x40028d(0x112),_0x4ad4e0[_0x40028d(0x10d)]=_0x40028d(0x10d),_0x4ad4e0))(w||{}),m=(_0x11a679=>(_0x11a679[_0x40028d(0x101)]=_0x40028d(0x101),_0x11a679['End']='End',_0x11a679[_0x40028d(0xfa)]=_0x40028d(0xfa),_0x11a679))(m||{}),e=(_0x515f11=>(_0x515f11[_0x40028d(0x114)]=_0x40028d(0x114),_0x515f11['Narrow']=_0x40028d(0xfb),_0x515f11[_0x40028d(0x113)]='Wide',_0x515f11[_0x40028d(0xff)]=_0x40028d(0xff),_0x515f11))(e||{});const g={[o['A3']]:{'w':0x463,'h':0x633},[o['A4']]:{'w':0x31a,'h':0x464},[o['A5']]:{'w':0x22f,'h':0x31a},[o['B4']]:{'w':0x3b0,'h':0x540},[o['B5']]:{'w':0x299,'h':0x3b0},[o['Executive']]:{'w':0x2b8,'h':0x3f0},[o['Folio']]:{'w':0x330,'h':0x4e0},[o['Legal']]:{'w':0x330,'h':0x540},[o[_0x40028d(0xf4)]]:{'w':0x330,'h':0x420},[o[_0x40028d(0xfd)]]:{'w':0x210,'h':0x330},[o[_0x40028d(0xf3)]]:{'w':0x420,'h':0x660}},v={[e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x40028d(0xfb)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x40028d(0xff)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p=_0x40028d(0x100);function N(_0x379ff6,_0x418a63){const _0x58d13f=_0x40028d,{w:_0x296b40,h:_0x11faa9}=g[_0x379ff6],_0x214a94=_0x418a63===i[_0x58d13f(0xfe)]?_0x296b40:_0x11faa9,_0x1945ea=_0x418a63===i[_0x58d13f(0xfe)]?_0x11faa9:_0x296b40,_0x70f24c=_0x58d13f(0xf6)+_0x214a94+'px\x20'+_0x1945ea+_0x58d13f(0x115)+l+',\x20.'+l+_0x58d13f(0x102)+p+_0x58d13f(0xf1)+_0x1945ea+_0x58d13f(0x108)+_0x214a94+_0x58d13f(0x111),_0x1dc41f=document[_0x58d13f(0x105)](_0x58d13f(0xf0));return _0x1dc41f[_0x58d13f(0x10f)]=_0x70f24c,_0x1dc41f[_0x58d13f(0x116)]=_0x58d13f(0x10b),_0x1dc41f;}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};function _0x265c(){const _0x1368ee=['innerHTML','Legal','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','FitPage','Wide','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','4952680zwurJx','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','387625DtdrVO','Tabloid','Letter','749mZoUof','\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','Landscape','FitWidth','6054zgGRTX','Middle','Narrow','FitHeight','Statement','Portrait','None','printing-canvas','Start','\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.','1091086qDYdUx','Executive','createElement','1533248EBCvgN','Origin','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','1csaJGb','Folio','offline-printing-css','259908ONjHjl','Custom','3528117RbdvqA'];_0x265c=function(){return _0x1368ee;};return _0x265c();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x40028d=_0x2a6f;(function(_0x5653a3,_0x130886){const _0x1ebb03=_0x2a6f,_0x1f2efb=_0x5653a3();while(!![]){try{const _0x2a5e47=parseInt(_0x1ebb03(0x109))/0x1*(parseInt(_0x1ebb03(0x103))/0x2)+-parseInt(_0x1ebb03(0x10c))/0x3+-parseInt(_0x1ebb03(0x106))/0x4+-parseInt(_0x1ebb03(0xf2))/0x5+-parseInt(_0x1ebb03(0xf9))/0x6*(-parseInt(_0x1ebb03(0xf5))/0x7)+parseInt(_0x1ebb03(0xef))/0x8+-parseInt(_0x1ebb03(0x10e))/0x9;if(_0x2a5e47===_0x130886)break;else _0x1f2efb['push'](_0x1f2efb['shift']());}catch(_0x909f34){_0x1f2efb['push'](_0x1f2efb['shift']());}}}(_0x265c,0x51531));function _0x2a6f(_0x24f3f8,_0x20416f){const _0x265c92=_0x265c();return _0x2a6f=function(_0x2a6fe5,_0x1272f4){_0x2a6fe5=_0x2a6fe5-0xef;let _0x460ab9=_0x265c92[_0x2a6fe5];return _0x460ab9;},_0x2a6f(_0x24f3f8,_0x20416f);}var o=(_0x23ddad=>(_0x23ddad['Letter']=_0x40028d(0xf4),_0x23ddad[_0x40028d(0xf3)]=_0x40028d(0xf3),_0x23ddad[_0x40028d(0x110)]=_0x40028d(0x110),_0x23ddad[_0x40028d(0xfd)]=_0x40028d(0xfd),_0x23ddad[_0x40028d(0x104)]=_0x40028d(0x104),_0x23ddad[_0x40028d(0x10a)]='Folio',_0x23ddad['A3']='A3',_0x23ddad['A4']='A4',_0x23ddad['A5']='A5',_0x23ddad['B4']='B4',_0x23ddad['B5']='B5',_0x23ddad))(o||{}),i=(_0x20204d=>(_0x20204d['Portrait']=_0x40028d(0xfe),_0x20204d[_0x40028d(0xf7)]=_0x40028d(0xf7),_0x20204d))(i||{}),w=(_0x4ad4e0=>(_0x4ad4e0[_0x40028d(0x107)]='Origin',_0x4ad4e0[_0x40028d(0xf8)]=_0x40028d(0xf8),_0x4ad4e0[_0x40028d(0xfc)]=_0x40028d(0xfc),_0x4ad4e0[_0x40028d(0x112)]=_0x40028d(0x112),_0x4ad4e0[_0x40028d(0x10d)]=_0x40028d(0x10d),_0x4ad4e0))(w||{}),m=(_0x11a679=>(_0x11a679[_0x40028d(0x101)]=_0x40028d(0x101),_0x11a679['End']='End',_0x11a679[_0x40028d(0xfa)]=_0x40028d(0xfa),_0x11a679))(m||{}),e=(_0x515f11=>(_0x515f11[_0x40028d(0x114)]=_0x40028d(0x114),_0x515f11['Narrow']=_0x40028d(0xfb),_0x515f11[_0x40028d(0x113)]='Wide',_0x515f11[_0x40028d(0xff)]=_0x40028d(0xff),_0x515f11))(e||{});const g={[o['A3']]:{'w':0x463,'h':0x633},[o['A4']]:{'w':0x31a,'h':0x464},[o['A5']]:{'w':0x22f,'h':0x31a},[o['B4']]:{'w':0x3b0,'h':0x540},[o['B5']]:{'w':0x299,'h':0x3b0},[o['Executive']]:{'w':0x2b8,'h':0x3f0},[o['Folio']]:{'w':0x330,'h':0x4e0},[o['Legal']]:{'w':0x330,'h':0x540},[o[_0x40028d(0xf4)]]:{'w':0x330,'h':0x420},[o[_0x40028d(0xfd)]]:{'w':0x210,'h':0x330},[o[_0x40028d(0xf3)]]:{'w':0x420,'h':0x660}},v={[e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x40028d(0xfb)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x40028d(0xff)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p=_0x40028d(0x100);function N(_0x379ff6,_0x418a63){const _0x58d13f=_0x40028d,{w:_0x296b40,h:_0x11faa9}=g[_0x379ff6],_0x214a94=_0x418a63===i[_0x58d13f(0xfe)]?_0x296b40:_0x11faa9,_0x1945ea=_0x418a63===i[_0x58d13f(0xfe)]?_0x11faa9:_0x296b40,_0x70f24c=_0x58d13f(0xf6)+_0x214a94+'px\x20'+_0x1945ea+_0x58d13f(0x115)+l+',\x20.'+l+_0x58d13f(0x102)+p+_0x58d13f(0xf1)+_0x1945ea+_0x58d13f(0x108)+_0x214a94+_0x58d13f(0x111),_0x1dc41f=document[_0x58d13f(0x105)](_0x58d13f(0xf0));return _0x1dc41f[_0x58d13f(0x10f)]=_0x70f24c,_0x1dc41f[_0x58d13f(0x116)]=_0x58d13f(0x10b),_0x1dc41f;}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};function _0x265c(){const _0x1368ee=['innerHTML','Legal','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','FitPage','Wide','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','4952680zwurJx','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','387625DtdrVO','Tabloid','Letter','749mZoUof','\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','Landscape','FitWidth','6054zgGRTX','Middle','Narrow','FitHeight','Statement','Portrait','None','printing-canvas','Start','\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.','1091086qDYdUx','Executive','createElement','1533248EBCvgN','Origin','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','1csaJGb','Folio','offline-printing-css','259908ONjHjl','Custom','3528117RbdvqA'];_0x265c=function(){return _0x1368ee;};return _0x265c();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x27529c,_0x4fd0d1){const _0x2c477e=_0xc826,_0x2bdefa=_0x27529c();while(!![]){try{const _0x2048d2=-parseInt(_0x2c477e(0x1db))/0x1*(parseInt(_0x2c477e(0x1ee))/0x2)+-parseInt(_0x2c477e(0x1f9))/0x3*(-parseInt(_0x2c477e(0x1d9))/0x4)+-parseInt(_0x2c477e(0x1e8))/0x5+parseInt(_0x2c477e(0x1f8))/0x6*(parseInt(_0x2c477e(0x1d5))/0x7)+parseInt(_0x2c477e(0x1e9))/0x8+-parseInt(_0x2c477e(0x1e5))/0x9+parseInt(_0x2c477e(0x1f2))/0xa*(parseInt(_0x2c477e(0x1fd))/0xb);if(_0x2048d2===_0x4fd0d1)break;else _0x2bdefa['push'](_0x2bdefa['shift']());}catch(_0x38b661){_0x2bdefa['push'](_0x2bdefa['shift']());}}}(_0x5c52,0xa5c9e),function(_0x2e6332,_0x343775){const _0x44c6fd=_0xc826;typeof exports==_0x44c6fd(0x204)&&typeof module<'u'?_0x343775(exports):typeof define==_0x44c6fd(0x1cf)&&define[_0x44c6fd(0x1d6)]?define([_0x44c6fd(0x1f0)],_0x343775):(_0x2e6332=typeof globalThis<'u'?globalThis:_0x2e6332||self,_0x343775(_0x2e6332[_0x44c6fd(0x1f3)]={}));}(this,function(_0x48c153){'use strict';const _0x4f8fbe=_0xc826;var _0x5e23b2=(_0x84c9c6=>(_0x84c9c6[_0x4f8fbe(0x1dc)]=_0x4f8fbe(0x1dc),_0x84c9c6[_0x4f8fbe(0x1d2)]='Tabloid',_0x84c9c6[_0x4f8fbe(0x1d1)]=_0x4f8fbe(0x1d1),_0x84c9c6[_0x4f8fbe(0x1e7)]=_0x4f8fbe(0x1e7),_0x84c9c6[_0x4f8fbe(0x1e0)]=_0x4f8fbe(0x1e0),_0x84c9c6['Folio']=_0x4f8fbe(0x1fe),_0x84c9c6['A3']='A3',_0x84c9c6['A4']='A4',_0x84c9c6['A5']='A5',_0x84c9c6['B4']='B4',_0x84c9c6['B5']='B5',_0x84c9c6))(_0x5e23b2||{}),_0x1e635c=(_0x357c9f=>(_0x357c9f['Portrait']=_0x4f8fbe(0x1ed),_0x357c9f[_0x4f8fbe(0x1f1)]=_0x4f8fbe(0x1f1),_0x357c9f))(_0x1e635c||{}),_0x30973d=(_0x3b0bc5=>(_0x3b0bc5[_0x4f8fbe(0x1d4)]='Origin',_0x3b0bc5[_0x4f8fbe(0x1f5)]=_0x4f8fbe(0x1f5),_0x3b0bc5[_0x4f8fbe(0x1f7)]='FitHeight',_0x3b0bc5[_0x4f8fbe(0x1eb)]='FitPage',_0x3b0bc5[_0x4f8fbe(0x205)]=_0x4f8fbe(0x205),_0x3b0bc5))(_0x30973d||{}),_0x19e376=(_0x40bada=>(_0x40bada[_0x4f8fbe(0x201)]=_0x4f8fbe(0x201),_0x40bada['End']=_0x4f8fbe(0x1d8),_0x40bada['Middle']=_0x4f8fbe(0x1f6),_0x40bada))(_0x19e376||{}),_0x1b58b0=(_0x4c3451=>(_0x4c3451['Normal']=_0x4f8fbe(0x1de),_0x4c3451[_0x4f8fbe(0x1ea)]=_0x4f8fbe(0x1ea),_0x4c3451[_0x4f8fbe(0x1d3)]=_0x4f8fbe(0x1d3),_0x4c3451[_0x4f8fbe(0x1fc)]='None',_0x4c3451))(_0x1b58b0||{});const _0x4709={[_0x5e23b2['A3']]:{'w':0x463,'h':0x633},[_0x5e23b2['A4']]:{'w':0x31a,'h':0x464},[_0x5e23b2['A5']]:{'w':0x22f,'h':0x31a},[_0x5e23b2['B4']]:{'w':0x3b0,'h':0x540},[_0x5e23b2['B5']]:{'w':0x299,'h':0x3b0},[_0x5e23b2[_0x4f8fbe(0x1e0)]]:{'w':0x2b8,'h':0x3f0},[_0x5e23b2['Folio']]:{'w':0x330,'h':0x4e0},[_0x5e23b2[_0x4f8fbe(0x1d1)]]:{'w':0x330,'h':0x540},[_0x5e23b2[_0x4f8fbe(0x1dc)]]:{'w':0x330,'h':0x420},[_0x5e23b2['Statement']]:{'w':0x210,'h':0x330},[_0x5e23b2[_0x4f8fbe(0x1d2)]]:{'w':0x420,'h':0x660}},_0x1e7040={[_0x1b58b0[_0x4f8fbe(0x1de)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x1b58b0[_0x4f8fbe(0x1ea)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x1b58b0['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x1b58b0[_0x4f8fbe(0x1fc)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x516f63=_0x4f8fbe(0x202),_0x5d88f2=_0x4f8fbe(0x1e1);function _0x143f98(_0xa53e7,_0x497ef4){const _0x37f641=_0x4f8fbe,{w:_0x29548c,h:_0x48e8e0}=_0x4709[_0xa53e7],_0x1be769=_0x497ef4===_0x1e635c[_0x37f641(0x1ed)]?_0x29548c:_0x48e8e0,_0x551ca0=_0x497ef4===_0x1e635c[_0x37f641(0x1ed)]?_0x48e8e0:_0x29548c,_0x2cd434=_0x37f641(0x1e2)+_0x1be769+_0x37f641(0x1d7)+_0x551ca0+_0x37f641(0x203)+_0x516f63+_0x37f641(0x207)+_0x516f63+'\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.'+_0x5d88f2+_0x37f641(0x1ef)+_0x551ca0+_0x37f641(0x1da)+_0x1be769+_0x37f641(0x1ec),_0x23feba=document[_0x37f641(0x1dd)]('style');return _0x23feba[_0x37f641(0x1e6)]=_0x2cd434,_0x23feba['className']=_0x37f641(0x206),_0x23feba;}_0x48c153[_0x4f8fbe(0x1d0)]=_0x5d88f2,_0x48c153[_0x4f8fbe(0x208)]=_0x516f63,_0x48c153['PaperMarginMap']=_0x1e7040,_0x48c153[_0x4f8fbe(0x1e3)]=_0x4709,_0x48c153[_0x4f8fbe(0x1e4)]=_0x19e376,_0x48c153[_0x4f8fbe(0x1ff)]=_0x1e635c,_0x48c153[_0x4f8fbe(0x1f4)]=_0x1b58b0,_0x48c153['PrintPaperSize']=_0x5e23b2,_0x48c153[_0x4f8fbe(0x200)]=_0x30973d,_0x48c153[_0x4f8fbe(0x1df)]=_0x143f98,Object['defineProperty'](_0x48c153,Symbol[_0x4f8fbe(0x1fb)],{'value':_0x4f8fbe(0x1fa)});}));function _0xc826(_0x33ae83,_0x150c80){const _0x5c525c=_0x5c52();return _0xc826=function(_0xc826cc,_0x264047){_0xc826cc=_0xc826cc-0x1cf;let _0x282607=_0x5c525c[_0xc826cc];return _0x282607;},_0xc826(_0x33ae83,_0x150c80);}function _0x5c52(){const _0x234bff=['Origin','7tPtZND','amd','px\x20','End','4qEWkWX','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','23FtVrDz','Letter','createElement','Normal','createPrintStyle','Executive','printing-canvas','\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','PaperSizePxMap','PrintAlign','10986525gYkoyh','innerHTML','Statement','202745gjDmEB','6803568Dxnlyy','Narrow','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Portrait','66330NfyBfD','\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','Landscape','25750CSsKJX','UniverProPrint','PrintPaperMargin','FitWidth','Middle','FitHeight','1997490LQVvxa','859059bvyrhB','Module','toStringTag','None','5269iODjQV','Folio','PrintDirection','PrintScale','Start','printing-canvas-container','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.','object','Custom','offline-printing-css',',\x20.','PRINT_CONTAINER_CLASS','function','PRINT_CANVAS_CLASS','Legal','Tabloid','Wide'];_0x5c52=function(){return _0x234bff;};return _0x5c52();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.9-experimental.20250406-d422c87",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"typescript": "^5.8.2",
|
|
46
46
|
"vite": "^6.2.2",
|
|
47
47
|
"vitest": "^3.0.9",
|
|
48
|
-
"@univerjs-infra/shared": "0.6.
|
|
48
|
+
"@univerjs-infra/shared": "0.6.9"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|