@univerjs-pro/print 0.4.0 → 0.4.1-experimental.20241023-bbb123f
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/umd/index.js +1 -1
- package/package.json +2 -2
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x5d76bb=_0x4d89;(function(_0x49b971,_0x45dde1){const _0x273e43=_0x4d89,_0x2d393b=_0x49b971();while(!![]){try{const _0x1c3f16=-parseInt(_0x273e43(0x96))/0x1*(-parseInt(_0x273e43(0xaa))/0x2)+parseInt(_0x273e43(0xb2))/0x3+-parseInt(_0x273e43(0xaf))/0x4*(-parseInt(_0x273e43(0x90))/0x5)+-parseInt(_0x273e43(0x87))/0x6*(parseInt(_0x273e43(0xb6))/0x7)+parseInt(_0x273e43(0xa8))/0x8*(-parseInt(_0x273e43(0x97))/0x9)+parseInt(_0x273e43(0x8d))/0xa*(-parseInt(_0x273e43(0xa6))/0xb)+-parseInt(_0x273e43(0x92))/0xc*(-parseInt(_0x273e43(0x8c))/0xd);if(_0x1c3f16===_0x45dde1)break;else _0x2d393b['push'](_0x2d393b['shift']());}catch(_0x4bda9d){_0x2d393b['push'](_0x2d393b['shift']());}}}(_0xcdc6,0x762a3));function _0x4d89(_0x191381,_0x201602){const _0xcdc69c=_0xcdc6();return _0x4d89=function(_0x4d8976,_0x47eabc){_0x4d8976=_0x4d8976-0x87;let _0x3faa27=_0xcdc69c[_0x4d8976];return _0x3faa27;},_0x4d89(_0x191381,_0x201602);}function _0xcdc6(){const _0x457103=['PRINT_CANVAS_CLASS','FitPage','626664acrkoK','Portrait','Start','createElement','7WuuPAO','printing-canvas','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','toStringTag','defineProperty','PaperMarginMap','Custom','PrintDirection','1171638VeqnQR','Landscape','Middle','Executive','PRINT_CONTAINER_CLASS','319904hStmmP','4531190pYfkpA','Letter','PrintPaperMargin','5IIWmRg','End','624hkHFXD','px\x20','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Folio','1LbsiTv','180kbmBcL','Normal','PrintPaperSize','createPrintStyle','style','innerHTML','printing-canvas-container','className','Tabloid','None','PrintAlign','Module','Wide','Statement','Narrow','11OHJrwU','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.','198712jaFxlt','FitHeight','265096WUfwsz','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','Legal','FitWidth','32492KAjpmi'];_0xcdc6=function(){return _0x457103;};return _0xcdc6();}Object[_0x5d76bb(0xba)](exports,Symbol[_0x5d76bb(0xb9)],{'value':_0x5d76bb(0xa2)});var e=(_0x205525=>(_0x205525[_0x5d76bb(0x8e)]=_0x5d76bb(0x8e),_0x205525[_0x5d76bb(0x9f)]=_0x5d76bb(0x9f),_0x205525['Legal']=_0x5d76bb(0xad),_0x205525[_0x5d76bb(0xa4)]=_0x5d76bb(0xa4),_0x205525[_0x5d76bb(0x8a)]=_0x5d76bb(0x8a),_0x205525[_0x5d76bb(0x95)]='Folio',_0x205525['A3']='A3',_0x205525['A4']='A4',_0x205525['A5']='A5',_0x205525['B4']='B4',_0x205525['B5']='B5',_0x205525))(e||{}),i=(_0x497e05=>(_0x497e05[_0x5d76bb(0xb3)]='Portrait',_0x497e05[_0x5d76bb(0x88)]=_0x5d76bb(0x88),_0x497e05))(i||{}),c=(_0x5d0c88=>(_0x5d0c88['Origin']=_0x5d76bb(0xab),_0x5d0c88['FitWidth']=_0x5d76bb(0xae),_0x5d0c88[_0x5d76bb(0xa9)]=_0x5d76bb(0xa9),_0x5d0c88[_0x5d76bb(0xb1)]=_0x5d76bb(0xb1),_0x5d0c88[_0x5d76bb(0xbc)]=_0x5d76bb(0xbc),_0x5d0c88))(c||{}),g=(_0x5d9faf=>(_0x5d9faf['Start']=_0x5d76bb(0xb4),_0x5d9faf[_0x5d76bb(0x91)]=_0x5d76bb(0x91),_0x5d9faf[_0x5d76bb(0x89)]=_0x5d76bb(0x89),_0x5d9faf))(g||{}),o=(_0x54b23f=>(_0x54b23f[_0x5d76bb(0x98)]=_0x5d76bb(0x98),_0x54b23f[_0x5d76bb(0xa5)]=_0x5d76bb(0xa5),_0x54b23f[_0x5d76bb(0xa3)]=_0x5d76bb(0xa3),_0x54b23f['None']=_0x5d76bb(0xa0),_0x54b23f))(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[_0x5d76bb(0x8a)]]:{'w':0x2b8,'h':0x3f0},[e[_0x5d76bb(0x95)]]:{'w':0x330,'h':0x4e0},[e[_0x5d76bb(0xad)]]:{'w':0x330,'h':0x540},[e[_0x5d76bb(0x8e)]]:{'w':0x330,'h':0x420},[e[_0x5d76bb(0xa4)]]:{'w':0x210,'h':0x330},[e[_0x5d76bb(0x9f)]]:{'w':0x420,'h':0x660}},N={[o[_0x5d76bb(0x98)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5d76bb(0xa5)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x5d76bb(0xa3)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x5d76bb(0xa0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x5d76bb(0x9d),p=_0x5d76bb(0xb7);function A(_0x4046f2,_0x14b29a){const _0x4e9b60=_0x5d76bb,{w:_0x3eb6f7,h:_0x507172}=m[_0x4046f2],_0x264d03=_0x14b29a===i[_0x4e9b60(0xb3)]?_0x3eb6f7:_0x507172,_0x3458e4=_0x14b29a===i['Portrait']?_0x507172:_0x3eb6f7,_0x1de04e='\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'+_0x264d03+_0x4e9b60(0x93)+_0x3458e4+_0x4e9b60(0xa7)+n+',\x20.'+n+_0x4e9b60(0x94)+p+_0x4e9b60(0xac)+_0x3458e4+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x264d03+_0x4e9b60(0xb8),_0x5cb420=document[_0x4e9b60(0xb5)](_0x4e9b60(0x9b));return _0x5cb420[_0x4e9b60(0x9c)]=_0x1de04e,_0x5cb420[_0x4e9b60(0x9e)]='offline-printing-css',_0x5cb420;}exports[_0x5d76bb(0xb0)]=p,exports[_0x5d76bb(0x8b)]=n,exports[_0x5d76bb(0xbb)]=N,exports['PaperSizePxMap']=m,exports[_0x5d76bb(0xa1)]=g,exports[_0x5d76bb(0xbd)]=i,exports[_0x5d76bb(0x8f)]=o,exports[_0x5d76bb(0x99)]=e,exports['PrintScale']=c,exports[_0x5d76bb(0x9a)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x242a3e=_0x3b0b;(function(_0x5b044e,_0x151e29){const _0x421302=_0x3b0b,_0xda804b=_0x5b044e();while(!![]){try{const _0x2b9830=-parseInt(_0x421302(0x15b))/0x1*(-parseInt(_0x421302(0x163))/0x2)+parseInt(_0x421302(0x164))/0x3*(-parseInt(_0x421302(0x152))/0x4)+-parseInt(_0x421302(0x14b))/0x5+parseInt(_0x421302(0x161))/0x6*(-parseInt(_0x421302(0x15d))/0x7)+parseInt(_0x421302(0x160))/0x8*(-parseInt(_0x421302(0x158))/0x9)+-parseInt(_0x421302(0x157))/0xa+parseInt(_0x421302(0x148))/0xb;if(_0x2b9830===_0x151e29)break;else _0xda804b['push'](_0xda804b['shift']());}catch(_0x452d55){_0xda804b['push'](_0xda804b['shift']());}}}(_0x2c8f,0x5cf7a));function _0x2c8f(){const _0x69fe89=['21027160uUhwpo','FitPage','Origin','528950dGsvIn','Narrow','Tabloid','Legal','Portrait','Folio','FitWidth','176SrNeqC','Executive','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.','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','7219440BFkhNH','12681kQYvvu','Landscape','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','3IaCogC','Middle','7jcDcZZ','offline-printing-css',',\x20.','1136cYbVHi','666114ybkvHq','createElement','200710FfqVkR','47250RNAYLo','End','Start','Wide','className','Custom','px\x20','Statement','None','Letter','Normal'];_0x2c8f=function(){return _0x69fe89;};return _0x2c8f();}var o=(_0x5d7ecc=>(_0x5d7ecc[_0x242a3e(0x16d)]=_0x242a3e(0x16d),_0x5d7ecc[_0x242a3e(0x14d)]='Tabloid',_0x5d7ecc['Legal']=_0x242a3e(0x14e),_0x5d7ecc[_0x242a3e(0x16b)]=_0x242a3e(0x16b),_0x5d7ecc[_0x242a3e(0x153)]=_0x242a3e(0x153),_0x5d7ecc[_0x242a3e(0x150)]='Folio',_0x5d7ecc['A3']='A3',_0x5d7ecc['A4']='A4',_0x5d7ecc['A5']='A5',_0x5d7ecc['B4']='B4',_0x5d7ecc['B5']='B5',_0x5d7ecc))(o||{}),i=(_0x477a2e=>(_0x477a2e[_0x242a3e(0x14f)]=_0x242a3e(0x14f),_0x477a2e[_0x242a3e(0x159)]=_0x242a3e(0x159),_0x477a2e))(i||{}),w=(_0x15df67=>(_0x15df67[_0x242a3e(0x14a)]=_0x242a3e(0x14a),_0x15df67['FitWidth']=_0x242a3e(0x151),_0x15df67['FitHeight']=_0x242a3e(0x154),_0x15df67[_0x242a3e(0x149)]=_0x242a3e(0x149),_0x15df67[_0x242a3e(0x169)]='Custom',_0x15df67))(w||{}),m=(_0x220ea6=>(_0x220ea6[_0x242a3e(0x166)]=_0x242a3e(0x166),_0x220ea6[_0x242a3e(0x165)]=_0x242a3e(0x165),_0x220ea6[_0x242a3e(0x15c)]=_0x242a3e(0x15c),_0x220ea6))(m||{}),e=(_0x401c5b=>(_0x401c5b[_0x242a3e(0x147)]=_0x242a3e(0x147),_0x401c5b[_0x242a3e(0x14c)]=_0x242a3e(0x14c),_0x401c5b[_0x242a3e(0x167)]=_0x242a3e(0x167),_0x401c5b['None']=_0x242a3e(0x16c),_0x401c5b))(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['Letter']]:{'w':0x330,'h':0x420},[o[_0x242a3e(0x16b)]]:{'w':0x210,'h':0x330},[o[_0x242a3e(0x14d)]]:{'w':0x420,'h':0x660}},v={[e[_0x242a3e(0x147)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x242a3e(0x14c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x242a3e(0x16c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p='printing-canvas';function _0x3b0b(_0x5bbb8b,_0xd035fd){const _0x2c8f4d=_0x2c8f();return _0x3b0b=function(_0x3b0b52,_0x3eaf4e){_0x3b0b52=_0x3b0b52-0x147;let _0x3313cf=_0x2c8f4d[_0x3b0b52];return _0x3313cf;},_0x3b0b(_0x5bbb8b,_0xd035fd);}function N(_0x15c25d,_0x3a386e){const _0x38094c=_0x242a3e,{w:_0x1fdc46,h:_0x46715b}=g[_0x15c25d],_0x3678ef=_0x3a386e===i[_0x38094c(0x14f)]?_0x1fdc46:_0x46715b,_0x327987=_0x3a386e===i[_0x38094c(0x14f)]?_0x46715b:_0x1fdc46,_0x104d1a=_0x38094c(0x15a)+_0x3678ef+_0x38094c(0x16a)+_0x327987+'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+_0x38094c(0x15f)+l+_0x38094c(0x155)+p+_0x38094c(0x156)+_0x327987+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x3678ef+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0xbaa151=document[_0x38094c(0x162)]('style');return _0xbaa151['innerHTML']=_0x104d1a,_0xbaa151[_0x38094c(0x168)]=_0x38094c(0x15e),_0xbaa151;}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(
|
|
1
|
+
function _0xe6de(_0x381118,_0x2a0fd2){const _0x2581a0=_0x2581();return _0xe6de=function(_0xe6de00,_0x144fac){_0xe6de00=_0xe6de00-0xeb;let _0x1afd14=_0x2581a0[_0xe6de00];return _0x1afd14;},_0xe6de(_0x381118,_0x2a0fd2);}(function(_0x15254e,_0x30c727){const _0x34ccfd=_0xe6de,_0x15605f=_0x15254e();while(!![]){try{const _0x2bd01f=parseInt(_0x34ccfd(0x103))/0x1+-parseInt(_0x34ccfd(0x10d))/0x2*(-parseInt(_0x34ccfd(0x119))/0x3)+-parseInt(_0x34ccfd(0x10b))/0x4*(parseInt(_0x34ccfd(0xfb))/0x5)+parseInt(_0x34ccfd(0xf5))/0x6*(-parseInt(_0x34ccfd(0x116))/0x7)+-parseInt(_0x34ccfd(0x118))/0x8*(parseInt(_0x34ccfd(0xfe))/0x9)+-parseInt(_0x34ccfd(0x104))/0xa*(-parseInt(_0x34ccfd(0x11b))/0xb)+-parseInt(_0x34ccfd(0x120))/0xc*(-parseInt(_0x34ccfd(0xfc))/0xd);if(_0x2bd01f===_0x30c727)break;else _0x15605f['push'](_0x15605f['shift']());}catch(_0x54d261){_0x15605f['push'](_0x15605f['shift']());}}}(_0x2581,0x82b1b),function(_0x5efc04,_0x4c0c21){const _0x466314=_0xe6de;typeof exports==_0x466314(0x112)&&typeof module<'u'?_0x4c0c21(exports):typeof define==_0x466314(0x106)&&define['amd']?define([_0x466314(0x115)],_0x4c0c21):(_0x5efc04=typeof globalThis<'u'?globalThis:_0x5efc04||self,_0x4c0c21(_0x5efc04[_0x466314(0xf9)]={}));}(this,function(_0x4d6fa4){'use strict';const _0x2954dd=_0xe6de;var _0x2081ff=(_0x257653=>(_0x257653['Letter']=_0x2954dd(0xf3),_0x257653[_0x2954dd(0x11e)]=_0x2954dd(0x11e),_0x257653[_0x2954dd(0xf1)]='Legal',_0x257653[_0x2954dd(0x10e)]=_0x2954dd(0x10e),_0x257653[_0x2954dd(0xff)]=_0x2954dd(0xff),_0x257653[_0x2954dd(0xeb)]=_0x2954dd(0xeb),_0x257653['A3']='A3',_0x257653['A4']='A4',_0x257653['A5']='A5',_0x257653['B4']='B4',_0x257653['B5']='B5',_0x257653))(_0x2081ff||{}),_0x201cb2=(_0x379b93=>(_0x379b93[_0x2954dd(0x10f)]=_0x2954dd(0x10f),_0x379b93[_0x2954dd(0x11a)]='Landscape',_0x379b93))(_0x201cb2||{}),_0x3b2660=(_0x56a687=>(_0x56a687[_0x2954dd(0xfd)]=_0x2954dd(0xfd),_0x56a687[_0x2954dd(0x100)]=_0x2954dd(0x100),_0x56a687[_0x2954dd(0xed)]=_0x2954dd(0xed),_0x56a687[_0x2954dd(0x111)]='FitPage',_0x56a687[_0x2954dd(0x117)]=_0x2954dd(0x117),_0x56a687))(_0x3b2660||{}),_0x215610=(_0xcf5ff9=>(_0xcf5ff9['Start']=_0x2954dd(0x122),_0xcf5ff9[_0x2954dd(0x114)]=_0x2954dd(0x114),_0xcf5ff9[_0x2954dd(0xfa)]='Middle',_0xcf5ff9))(_0x215610||{}),_0x3e729=(_0x12d29c=>(_0x12d29c['Normal']='Normal',_0x12d29c[_0x2954dd(0xf2)]=_0x2954dd(0xf2),_0x12d29c[_0x2954dd(0x110)]=_0x2954dd(0x110),_0x12d29c[_0x2954dd(0xf8)]='None',_0x12d29c))(_0x3e729||{});const _0x1d2154={[_0x2081ff['A3']]:{'w':0x463,'h':0x633},[_0x2081ff['A4']]:{'w':0x31a,'h':0x464},[_0x2081ff['A5']]:{'w':0x22f,'h':0x31a},[_0x2081ff['B4']]:{'w':0x3b0,'h':0x540},[_0x2081ff['B5']]:{'w':0x299,'h':0x3b0},[_0x2081ff[_0x2954dd(0xff)]]:{'w':0x2b8,'h':0x3f0},[_0x2081ff[_0x2954dd(0xeb)]]:{'w':0x330,'h':0x4e0},[_0x2081ff[_0x2954dd(0xf1)]]:{'w':0x330,'h':0x540},[_0x2081ff[_0x2954dd(0xf3)]]:{'w':0x330,'h':0x420},[_0x2081ff[_0x2954dd(0x10e)]]:{'w':0x210,'h':0x330},[_0x2081ff[_0x2954dd(0x11e)]]:{'w':0x420,'h':0x660}},_0x5d6d4c={[_0x3e729[_0x2954dd(0x101)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x3e729['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x3e729[_0x2954dd(0x110)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x3e729[_0x2954dd(0xf8)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x23917b=_0x2954dd(0x109),_0x2b0e82='printing-canvas';function _0x15a383(_0x5603f0,_0x3ce830){const _0x4b76f0=_0x2954dd,{w:_0x5f1109,h:_0x1a2e85}=_0x1d2154[_0x5603f0],_0x2d5b34=_0x3ce830===_0x201cb2[_0x4b76f0(0x10f)]?_0x5f1109:_0x1a2e85,_0x3f0d96=_0x3ce830===_0x201cb2[_0x4b76f0(0x10f)]?_0x1a2e85:_0x5f1109,_0x51db44=_0x4b76f0(0xec)+_0x2d5b34+_0x4b76f0(0x10a)+_0x3f0d96+'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.'+_0x23917b+_0x4b76f0(0xef)+_0x23917b+'\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.'+_0x2b0e82+_0x4b76f0(0xf4)+_0x3f0d96+_0x4b76f0(0x11f)+_0x2d5b34+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x1b374c=document['createElement'](_0x4b76f0(0x10c));return _0x1b374c[_0x4b76f0(0x102)]=_0x51db44,_0x1b374c[_0x4b76f0(0x11c)]='offline-printing-css',_0x1b374c;}_0x4d6fa4['PRINT_CANVAS_CLASS']=_0x2b0e82,_0x4d6fa4['PRINT_CONTAINER_CLASS']=_0x23917b,_0x4d6fa4[_0x2954dd(0x105)]=_0x5d6d4c,_0x4d6fa4[_0x2954dd(0xf7)]=_0x1d2154,_0x4d6fa4[_0x2954dd(0xf0)]=_0x215610,_0x4d6fa4[_0x2954dd(0x108)]=_0x201cb2,_0x4d6fa4[_0x2954dd(0x113)]=_0x3e729,_0x4d6fa4[_0x2954dd(0xf6)]=_0x2081ff,_0x4d6fa4['PrintScale']=_0x3b2660,_0x4d6fa4[_0x2954dd(0x107)]=_0x15a383,Object[_0x2954dd(0x121)](_0x4d6fa4,Symbol[_0x2954dd(0xee)],{'value':_0x2954dd(0x11d)});}));function _0x2581(){const _0x16c1a3=['exports','1477VnrhSL','Custom','8WnGHXg','2983371WqnNNj','Landscape','132cXmcht','className','Module','Tabloid','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','12lRJduf','defineProperty','Start','Folio','\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','FitHeight','toStringTag',',\x20.','PrintAlign','Legal','Narrow','Letter','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','29094NPgLux','PrintPaperSize','PaperSizePxMap','None','UniverPrint','Middle','7210OHKYPG','12635064VLxbbB','Origin','4131045VTebuT','Executive','FitWidth','Normal','innerHTML','30000MXGgiQ','566730ELsrKA','PaperMarginMap','function','createPrintStyle','PrintDirection','printing-canvas-container','px\x20','1828zFFlFl','style','2dIDjUV','Statement','Portrait','Wide','FitPage','object','PrintPaperMargin','End'];_0x2581=function(){return _0x16c1a3;};return _0x2581();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1-experimental.20241023-bbb123f",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"typescript": "5.6.3",
|
|
47
47
|
"vite": "^5.4.8",
|
|
48
48
|
"vitest": "^2.1.2",
|
|
49
|
-
"@univerjs-infra/shared": "0.4.
|
|
49
|
+
"@univerjs-infra/shared": "0.4.1"
|
|
50
50
|
},
|
|
51
51
|
"univerSpace": {
|
|
52
52
|
".": {
|