@univerjs-pro/print 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +4 -4
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x161e9d=_0x2096;function _0x2096(_0xbde77b,_0x4b0820){const _0x4754ce=_0x4754();return _0x2096=function(_0x20965b,_0x44bd81){_0x20965b=_0x20965b-0x12e;let _0x1d7551=_0x4754ce[_0x20965b];return _0x1d7551;},_0x2096(_0xbde77b,_0x4b0820);}(function(_0x32143d,_0x56e3be){const _0x54582c=_0x2096,_0x156b71=_0x32143d();while(!![]){try{const _0x5af6bb=-parseInt(_0x54582c(0x133))/0x1*(parseInt(_0x54582c(0x139))/0x2)+-parseInt(_0x54582c(0x153))/0x3+parseInt(_0x54582c(0x13a))/0x4+-parseInt(_0x54582c(0x154))/0x5*(-parseInt(_0x54582c(0x148))/0x6)+parseInt(_0x54582c(0x15a))/0x7+parseInt(_0x54582c(0x14e))/0x8*(-parseInt(_0x54582c(0x12f))/0x9)+parseInt(_0x54582c(0x147))/0xa;if(_0x5af6bb===_0x56e3be)break;else _0x156b71['push'](_0x156b71['shift']());}catch(_0x10f880){_0x156b71['push'](_0x156b71['shift']());}}}(_0x4754,0xd8373));function _0x4754(){const _0xfd5914=['\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','63ggoUhq','End','createPrintStyle','Landscape','1PfQpHG','Start','Letter','Folio','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.','Normal','1554384nzYQET','5586044XpEvbe','Narrow','PrintAlign','defineProperty','\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.','Portrait',',\x20.','printing-canvas','px\x20','Wide','Custom','PrintDirection','Module','4349010PtHcYX','2233908RSpChe','PaperSizePxMap','None','innerHTML','style','PrintPaperSize','1825048kAOHHq','FitHeight','PRINT_CONTAINER_CLASS','createElement','PrintScale','1167939Lhhywk','20nzRzhH','className','Tabloid','Legal','toStringTag','PaperMarginMap','2298499YufxkJ','Executive','printing-canvas-container','Origin','FitWidth','offline-printing-css','Statement','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','FitPage','Middle','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'];_0x4754=function(){return _0xfd5914;};return _0x4754();}Object[_0x161e9d(0x13d)](exports,Symbol[_0x161e9d(0x158)],{'value':_0x161e9d(0x146)});var e=(_0x41f132=>(_0x41f132[_0x161e9d(0x135)]=_0x161e9d(0x135),_0x41f132['Tabloid']=_0x161e9d(0x156),_0x41f132[_0x161e9d(0x157)]='Legal',_0x41f132[_0x161e9d(0x160)]=_0x161e9d(0x160),_0x41f132['Executive']=_0x161e9d(0x15b),_0x41f132[_0x161e9d(0x136)]='Folio',_0x41f132['A3']='A3',_0x41f132['A4']='A4',_0x41f132['A5']='A5',_0x41f132['B4']='B4',_0x41f132['B5']='B5',_0x41f132))(e||{}),i=(_0x48fd16=>(_0x48fd16[_0x161e9d(0x13f)]='Portrait',_0x48fd16[_0x161e9d(0x132)]=_0x161e9d(0x132),_0x48fd16))(i||{}),c=(_0x457a2c=>(_0x457a2c[_0x161e9d(0x15d)]=_0x161e9d(0x15d),_0x457a2c[_0x161e9d(0x15e)]=_0x161e9d(0x15e),_0x457a2c[_0x161e9d(0x14f)]=_0x161e9d(0x14f),_0x457a2c[_0x161e9d(0x162)]=_0x161e9d(0x162),_0x457a2c['Custom']=_0x161e9d(0x144),_0x457a2c))(c||{}),g=(_0x4ceaa1=>(_0x4ceaa1['Start']=_0x161e9d(0x134),_0x4ceaa1[_0x161e9d(0x130)]=_0x161e9d(0x130),_0x4ceaa1[_0x161e9d(0x163)]='Middle',_0x4ceaa1))(g||{}),o=(_0x28068f=>(_0x28068f[_0x161e9d(0x138)]=_0x161e9d(0x138),_0x28068f['Narrow']=_0x161e9d(0x13b),_0x28068f[_0x161e9d(0x143)]=_0x161e9d(0x143),_0x28068f[_0x161e9d(0x14a)]=_0x161e9d(0x14a),_0x28068f))(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[_0x161e9d(0x15b)]]:{'w':0x2b8,'h':0x3f0},[e[_0x161e9d(0x136)]]:{'w':0x330,'h':0x4e0},[e['Legal']]:{'w':0x330,'h':0x540},[e['Letter']]:{'w':0x330,'h':0x420},[e[_0x161e9d(0x160)]]:{'w':0x210,'h':0x330},[e[_0x161e9d(0x156)]]:{'w':0x420,'h':0x660}},N={[o[_0x161e9d(0x138)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x161e9d(0x13b)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x161e9d(0x143)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x161e9d(0x14a)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x161e9d(0x15c),p=_0x161e9d(0x141);function A(_0x4ad394,_0x3146d2){const _0x4279f7=_0x161e9d,{w:_0x59e0fc,h:_0x3e6ab7}=m[_0x4ad394],_0x5bd1c9=_0x3146d2===i[_0x4279f7(0x13f)]?_0x59e0fc:_0x3e6ab7,_0x413544=_0x3146d2===i['Portrait']?_0x3e6ab7:_0x59e0fc,_0x437869=_0x4279f7(0x12e)+_0x5bd1c9+_0x4279f7(0x142)+_0x413544+_0x4279f7(0x137)+n+_0x4279f7(0x140)+n+_0x4279f7(0x13e)+p+_0x4279f7(0x164)+_0x413544+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5bd1c9+_0x4279f7(0x161),_0x509272=document[_0x4279f7(0x151)](_0x4279f7(0x14c));return _0x509272[_0x4279f7(0x14b)]=_0x437869,_0x509272[_0x4279f7(0x155)]=_0x4279f7(0x15f),_0x509272;}exports['PRINT_CANVAS_CLASS']=p,exports[_0x161e9d(0x150)]=n,exports[_0x161e9d(0x159)]=N,exports[_0x161e9d(0x149)]=m,exports[_0x161e9d(0x13c)]=g,exports[_0x161e9d(0x145)]=i,exports['PrintPaperMargin']=o,exports[_0x161e9d(0x14d)]=e,exports[_0x161e9d(0x152)]=c,exports[_0x161e9d(0x131)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x315f2a=_0x8294;function _0x8294(_0x1b985d,_0x7947c1){const _0xe8d88e=_0xe8d8();return _0x8294=function(_0x8294b9,_0x364967){_0x8294b9=_0x8294b9-0x130;let _0x20bfa5=_0xe8d88e[_0x8294b9];return _0x20bfa5;},_0x8294(_0x1b985d,_0x7947c1);}function _0xe8d8(){const _0x4107f4=['9105489LQSNRs','2445546jnuCLl','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.','Origin','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Custom','245181miFeRM','Wide','6RslHxN','px\x20','createElement','innerHTML','Tabloid','1538202VqCQER','20NzLTRD','Normal','FitHeight','FitPage','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.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Letter','Legal','6675505TlBNmw','style','Executive','8436960ATBSia','Middle','Folio','None','Narrow','20ORxCem','Landscape','End','Portrait','5016376dxWgpG','Start','Statement'];_0xe8d8=function(){return _0x4107f4;};return _0xe8d8();}(function(_0x3088c0,_0x3a5ab7){const _0x5cab54=_0x8294,_0xa4d53e=_0x3088c0();while(!![]){try{const _0xe2e593=parseInt(_0x5cab54(0x134))/0x1+-parseInt(_0x5cab54(0x14e))/0x2+parseInt(_0x5cab54(0x154))/0x3*(parseInt(_0x5cab54(0x146))/0x4)+-parseInt(_0x5cab54(0x13e))/0x5*(parseInt(_0x5cab54(0x156))/0x6)+-parseInt(_0x5cab54(0x141))/0x7+parseInt(_0x5cab54(0x14a))/0x8+parseInt(_0x5cab54(0x14d))/0x9*(parseInt(_0x5cab54(0x135))/0xa);if(_0xe2e593===_0x3a5ab7)break;else _0xa4d53e['push'](_0xa4d53e['shift']());}catch(_0x3e8e8e){_0xa4d53e['push'](_0xa4d53e['shift']());}}}(_0xe8d8,0xcba7c));var o=(_0x71eb22=>(_0x71eb22[_0x315f2a(0x13c)]='Letter',_0x71eb22[_0x315f2a(0x133)]=_0x315f2a(0x133),_0x71eb22[_0x315f2a(0x13d)]=_0x315f2a(0x13d),_0x71eb22[_0x315f2a(0x14c)]=_0x315f2a(0x14c),_0x71eb22[_0x315f2a(0x140)]=_0x315f2a(0x140),_0x71eb22[_0x315f2a(0x143)]=_0x315f2a(0x143),_0x71eb22['A3']='A3',_0x71eb22['A4']='A4',_0x71eb22['A5']='A5',_0x71eb22['B4']='B4',_0x71eb22['B5']='B5',_0x71eb22))(o||{}),i=(_0x5a8b07=>(_0x5a8b07[_0x315f2a(0x149)]=_0x315f2a(0x149),_0x5a8b07[_0x315f2a(0x147)]=_0x315f2a(0x147),_0x5a8b07))(i||{}),w=(_0x143b74=>(_0x143b74[_0x315f2a(0x151)]='Origin',_0x143b74[_0x315f2a(0x139)]=_0x315f2a(0x139),_0x143b74[_0x315f2a(0x137)]=_0x315f2a(0x137),_0x143b74[_0x315f2a(0x138)]=_0x315f2a(0x138),_0x143b74[_0x315f2a(0x153)]=_0x315f2a(0x153),_0x143b74))(w||{}),m=(_0x1ebbc5=>(_0x1ebbc5[_0x315f2a(0x14b)]=_0x315f2a(0x14b),_0x1ebbc5[_0x315f2a(0x148)]='End',_0x1ebbc5[_0x315f2a(0x142)]=_0x315f2a(0x142),_0x1ebbc5))(m||{}),e=(_0x509084=>(_0x509084[_0x315f2a(0x136)]=_0x315f2a(0x136),_0x509084[_0x315f2a(0x145)]=_0x315f2a(0x145),_0x509084[_0x315f2a(0x155)]='Wide',_0x509084[_0x315f2a(0x144)]=_0x315f2a(0x144),_0x509084))(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[_0x315f2a(0x140)]]:{'w':0x2b8,'h':0x3f0},[o[_0x315f2a(0x143)]]:{'w':0x330,'h':0x4e0},[o[_0x315f2a(0x13d)]]:{'w':0x330,'h':0x540},[o[_0x315f2a(0x13c)]]:{'w':0x330,'h':0x420},[o[_0x315f2a(0x14c)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x315f2a(0x145)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x315f2a(0x155)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x315f2a(0x144)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p=_0x315f2a(0x14f);function N(_0x4869f3,_0x9e9fd1){const _0x4cc4da=_0x315f2a,{w:_0x5c6720,h:_0x3c9a7f}=g[_0x4869f3],_0x1d1eba=_0x9e9fd1===i[_0x4cc4da(0x149)]?_0x5c6720:_0x3c9a7f,_0x7c44a0=_0x9e9fd1===i[_0x4cc4da(0x149)]?_0x3c9a7f:_0x5c6720,_0x5b31fa='\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'+_0x1d1eba+_0x4cc4da(0x130)+_0x7c44a0+_0x4cc4da(0x13a)+l+',\x20.'+l+_0x4cc4da(0x150)+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'+_0x7c44a0+_0x4cc4da(0x13b)+_0x1d1eba+_0x4cc4da(0x152),_0x11885f=document[_0x4cc4da(0x131)](_0x4cc4da(0x13f));return _0x11885f[_0x4cc4da(0x132)]=_0x5b31fa,_0x11885f['className']='offline-printing-css',_0x11885f;}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
|
-
|
|
1
|
+
(function(_0x5125d2,_0x58ebe0){const _0x36892b=_0x4bd8,_0x4b5f69=_0x5125d2();while(!![]){try{const _0x195186=-parseInt(_0x36892b(0x1e0))/0x1+parseInt(_0x36892b(0x1dc))/0x2+parseInt(_0x36892b(0x1f7))/0x3+-parseInt(_0x36892b(0x1f3))/0x4+-parseInt(_0x36892b(0x1ee))/0x5*(-parseInt(_0x36892b(0x1c7))/0x6)+parseInt(_0x36892b(0x1f6))/0x7*(-parseInt(_0x36892b(0x1f1))/0x8)+parseInt(_0x36892b(0x1f5))/0x9;if(_0x195186===_0x58ebe0)break;else _0x4b5f69['push'](_0x4b5f69['shift']());}catch(_0x5541d0){_0x4b5f69['push'](_0x4b5f69['shift']());}}}(_0x1362,0x7c3d8),function(_0x4f5e95,_0x4df1c2){const _0x15d470=_0x4bd8;typeof exports==_0x15d470(0x1d6)&&typeof module<'u'?_0x4df1c2(exports):typeof define=='function'&&define[_0x15d470(0x1e6)]?define([_0x15d470(0x1d3)],_0x4df1c2):(_0x4f5e95=typeof globalThis<'u'?globalThis:_0x4f5e95||self,_0x4df1c2(_0x4f5e95[_0x15d470(0x1d5)]={}));}(this,function(_0x6d91c4){'use strict';const _0x2bb0a0=_0x4bd8;var _0x2ab4ff=(_0x2f8983=>(_0x2f8983[_0x2bb0a0(0x1cc)]='Letter',_0x2f8983[_0x2bb0a0(0x1dd)]=_0x2bb0a0(0x1dd),_0x2f8983[_0x2bb0a0(0x1f0)]=_0x2bb0a0(0x1f0),_0x2f8983[_0x2bb0a0(0x1d0)]='Statement',_0x2f8983[_0x2bb0a0(0x1ca)]=_0x2bb0a0(0x1ca),_0x2f8983[_0x2bb0a0(0x1ed)]=_0x2bb0a0(0x1ed),_0x2f8983['A3']='A3',_0x2f8983['A4']='A4',_0x2f8983['A5']='A5',_0x2f8983['B4']='B4',_0x2f8983['B5']='B5',_0x2f8983))(_0x2ab4ff||{}),_0x1d2440=(_0x3fdb8d=>(_0x3fdb8d[_0x2bb0a0(0x1ef)]=_0x2bb0a0(0x1ef),_0x3fdb8d[_0x2bb0a0(0x1c5)]='Landscape',_0x3fdb8d))(_0x1d2440||{}),_0x28508e=(_0x4a917f=>(_0x4a917f['Origin']=_0x2bb0a0(0x1ec),_0x4a917f[_0x2bb0a0(0x1d8)]=_0x2bb0a0(0x1d8),_0x4a917f[_0x2bb0a0(0x1c6)]=_0x2bb0a0(0x1c6),_0x4a917f[_0x2bb0a0(0x1de)]='FitPage',_0x4a917f[_0x2bb0a0(0x1e5)]=_0x2bb0a0(0x1e5),_0x4a917f))(_0x28508e||{}),_0x3b7f8c=(_0x3109ee=>(_0x3109ee['Start']='Start',_0x3109ee[_0x2bb0a0(0x1d7)]='End',_0x3109ee[_0x2bb0a0(0x1c8)]=_0x2bb0a0(0x1c8),_0x3109ee))(_0x3b7f8c||{}),_0x56eb0f=(_0x28e854=>(_0x28e854[_0x2bb0a0(0x1cd)]='Normal',_0x28e854[_0x2bb0a0(0x1cf)]='Narrow',_0x28e854[_0x2bb0a0(0x1e2)]=_0x2bb0a0(0x1e2),_0x28e854[_0x2bb0a0(0x1d9)]=_0x2bb0a0(0x1d9),_0x28e854))(_0x56eb0f||{});const _0x238232={[_0x2ab4ff['A3']]:{'w':0x463,'h':0x633},[_0x2ab4ff['A4']]:{'w':0x31a,'h':0x464},[_0x2ab4ff['A5']]:{'w':0x22f,'h':0x31a},[_0x2ab4ff['B4']]:{'w':0x3b0,'h':0x540},[_0x2ab4ff['B5']]:{'w':0x299,'h':0x3b0},[_0x2ab4ff[_0x2bb0a0(0x1ca)]]:{'w':0x2b8,'h':0x3f0},[_0x2ab4ff[_0x2bb0a0(0x1ed)]]:{'w':0x330,'h':0x4e0},[_0x2ab4ff[_0x2bb0a0(0x1f0)]]:{'w':0x330,'h':0x540},[_0x2ab4ff['Letter']]:{'w':0x330,'h':0x420},[_0x2ab4ff[_0x2bb0a0(0x1d0)]]:{'w':0x210,'h':0x330},[_0x2ab4ff[_0x2bb0a0(0x1dd)]]:{'w':0x420,'h':0x660}},_0x1b9db9={[_0x56eb0f[_0x2bb0a0(0x1cd)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x56eb0f[_0x2bb0a0(0x1cf)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x56eb0f['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x56eb0f['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x593e45='printing-canvas-container',_0x1a3906=_0x2bb0a0(0x1db);function _0x12721d(_0x21d213,_0x4f1aba){const _0x55ea7c=_0x2bb0a0,{w:_0x5e9cbd,h:_0x1b0537}=_0x238232[_0x21d213],_0x478747=_0x4f1aba===_0x1d2440['Portrait']?_0x5e9cbd:_0x1b0537,_0x4b824a=_0x4f1aba===_0x1d2440[_0x55ea7c(0x1ef)]?_0x1b0537:_0x5e9cbd,_0xd8b5db='\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'+_0x478747+_0x55ea7c(0x1e9)+_0x4b824a+_0x55ea7c(0x1ea)+_0x593e45+',\x20.'+_0x593e45+_0x55ea7c(0x1c9)+_0x1a3906+_0x55ea7c(0x1f4)+_0x4b824a+_0x55ea7c(0x1f2)+_0x478747+_0x55ea7c(0x1da),_0x48ea94=document[_0x55ea7c(0x1d2)](_0x55ea7c(0x1df));return _0x48ea94[_0x55ea7c(0x1eb)]=_0xd8b5db,_0x48ea94[_0x55ea7c(0x1e1)]=_0x55ea7c(0x1e8),_0x48ea94;}_0x6d91c4[_0x2bb0a0(0x1e7)]=_0x1a3906,_0x6d91c4['PRINT_CONTAINER_CLASS']=_0x593e45,_0x6d91c4[_0x2bb0a0(0x1e3)]=_0x1b9db9,_0x6d91c4[_0x2bb0a0(0x1cb)]=_0x238232,_0x6d91c4[_0x2bb0a0(0x1e4)]=_0x3b7f8c,_0x6d91c4[_0x2bb0a0(0x1c4)]=_0x1d2440,_0x6d91c4[_0x2bb0a0(0x1d4)]=_0x56eb0f,_0x6d91c4[_0x2bb0a0(0x1d1)]=_0x2ab4ff,_0x6d91c4['PrintScale']=_0x28508e,_0x6d91c4['createPrintStyle']=_0x12721d,Object['defineProperty'](_0x6d91c4,Symbol[_0x2bb0a0(0x1ce)],{'value':'Module'});}));function _0x4bd8(_0x51020d,_0x552417){const _0x136275=_0x1362();return _0x4bd8=function(_0x4bd8da,_0x34dbfb){_0x4bd8da=_0x4bd8da-0x1c4;let _0x3923a2=_0x136275[_0x4bd8da];return _0x3923a2;},_0x4bd8(_0x51020d,_0x552417);}function _0x1362(){const _0x38ce20=['offline-printing-css','px\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.','innerHTML','Origin','Folio','67780awWUMb','Portrait','Legal','40LetHIW','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','3701208KdMKQf','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','9159921RNDLaP','42413VdDbGF','1521888VcRElE','PrintDirection','Landscape','FitHeight','48QfKqGx','Middle','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Executive','PaperSizePxMap','Letter','Normal','toStringTag','Narrow','Statement','PrintPaperSize','createElement','exports','PrintPaperMargin','UniverProPrint','object','End','FitWidth','None','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','printing-canvas','1678294KWTuYx','Tabloid','FitPage','style','1008175jnPoCt','className','Wide','PaperMarginMap','PrintAlign','Custom','amd','PRINT_CANVAS_CLASS'];_0x1362=function(){return _0x38ce20;};return _0x1362();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
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.
|
|
47
|
-
"vitest": "^3.0.
|
|
48
|
-
"@univerjs-infra/shared": "0.6.
|
|
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",
|