@univerjs-pro/print 0.3.0-alpha.0 → 0.3.0-nightly.202410101606
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 +3 -4
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1903cb=_0x3b30;(function(_0x39163a,_0x3ca995){const _0x244676=_0x3b30,_0x522a02=_0x39163a();while(!![]){try{const _0x3b7329=-parseInt(_0x244676(0x1f4))/0x1*(-parseInt(_0x244676(0x203))/0x2)+parseInt(_0x244676(0x1fb))/0x3*(parseInt(_0x244676(0x212))/0x4)+parseInt(_0x244676(0x1f5))/0x5*(-parseInt(_0x244676(0x1fd))/0x6)+-parseInt(_0x244676(0x214))/0x7*(-parseInt(_0x244676(0x209))/0x8)+-parseInt(_0x244676(0x20e))/0x9+parseInt(_0x244676(0x20d))/0xa*(parseInt(_0x244676(0x1f3))/0xb)+-parseInt(_0x244676(0x1f6))/0xc;if(_0x3b7329===_0x3ca995)break;else _0x522a02['push'](_0x522a02['shift']());}catch(_0x1348cf){_0x522a02['push'](_0x522a02['shift']());}}}(_0x55e5,0x380c4));function _0x3b30(_0x49f692,_0x548742){const _0x55e574=_0x55e5();return _0x3b30=function(_0x3b3087,_0x1004ef){_0x3b3087=_0x3b3087-0x1e4;let _0x4f309b=_0x55e574[_0x3b3087];return _0x4f309b;},_0x3b30(_0x49f692,_0x548742);}Object[_0x1903cb(0x202)](exports,Symbol[_0x1903cb(0x215)],{'value':_0x1903cb(0x20a)});var e=(_0x120314=>(_0x120314['Letter']='Letter',_0x120314[_0x1903cb(0x1f2)]=_0x1903cb(0x1f2),_0x120314['Legal']=_0x1903cb(0x1e6),_0x120314['Statement']=_0x1903cb(0x1e7),_0x120314[_0x1903cb(0x1f0)]=_0x1903cb(0x1f0),_0x120314[_0x1903cb(0x206)]=_0x1903cb(0x206),_0x120314['A3']='A3',_0x120314['A4']='A4',_0x120314['A5']='A5',_0x120314['B4']='B4',_0x120314['B5']='B5',_0x120314))(e||{}),i=(_0x566710=>(_0x566710[_0x1903cb(0x1e9)]=_0x1903cb(0x1e9),_0x566710[_0x1903cb(0x1e8)]=_0x1903cb(0x1e8),_0x566710))(i||{}),c=(_0x1c35a9=>(_0x1c35a9[_0x1903cb(0x20b)]=_0x1903cb(0x20b),_0x1c35a9[_0x1903cb(0x1f8)]=_0x1903cb(0x1f8),_0x1c35a9[_0x1903cb(0x201)]=_0x1903cb(0x201),_0x1c35a9[_0x1903cb(0x1f1)]=_0x1903cb(0x1f1),_0x1c35a9[_0x1903cb(0x1ef)]=_0x1903cb(0x1ef),_0x1c35a9))(c||{}),g=(_0x1205d7=>(_0x1205d7['Start']=_0x1903cb(0x1eb),_0x1205d7[_0x1903cb(0x1ee)]=_0x1903cb(0x1ee),_0x1205d7[_0x1903cb(0x210)]='Middle',_0x1205d7))(g||{}),o=(_0x393e83=>(_0x393e83[_0x1903cb(0x1f7)]=_0x1903cb(0x1f7),_0x393e83[_0x1903cb(0x216)]='Narrow',_0x393e83[_0x1903cb(0x213)]=_0x1903cb(0x213),_0x393e83[_0x1903cb(0x207)]=_0x1903cb(0x207),_0x393e83))(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[_0x1903cb(0x1f0)]]:{'w':0x2b8,'h':0x3f0},[e[_0x1903cb(0x206)]]:{'w':0x330,'h':0x4e0},[e[_0x1903cb(0x1e6)]]:{'w':0x330,'h':0x540},[e[_0x1903cb(0x20f)]]:{'w':0x330,'h':0x420},[e[_0x1903cb(0x1e7)]]:{'w':0x210,'h':0x330},[e[_0x1903cb(0x1f2)]]:{'w':0x420,'h':0x660}},N={[o[_0x1903cb(0x1f7)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x1903cb(0x216)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x1903cb(0x207)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x1903cb(0x1e5),p='printing-canvas';function _0x55e5(){const _0x193fa0=['FitWidth','\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','PrintPaperSize','1169769CoBCzj','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','2656578ONGlHU','style','PrintScale','PaperMarginMap','FitHeight','defineProperty','26bXqeuv','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','PrintPaperMargin','Folio','None','PrintAlign','1371656yQFnxA','Module','Origin','offline-printing-css','50pUxSFh','1562310fXjKDR','Letter','Middle','PRINT_CANVAS_CLASS','4aXvMEh','Wide','7IynUsx','toStringTag','Narrow','px\x20','innerHTML','printing-canvas-container','Legal','Statement','Landscape','Portrait','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Start',',\x20.','createElement','End','Custom','Executive','FitPage','Tabloid','488059bVmuFR','35157riypWG','5KoHhCC','4732092LXqszD','Normal'];_0x55e5=function(){return _0x193fa0;};return _0x55e5();}function A(_0x1d0fd7,_0x442669){const _0x4f24b0=_0x1903cb,{w:_0x1c2952,h:_0x492dd1}=m[_0x1d0fd7],_0x4e3b0b=_0x442669===i['Portrait']?_0x1c2952:_0x492dd1,_0xd98035=_0x442669===i['Portrait']?_0x492dd1:_0x1c2952,_0x3de4e3=_0x4f24b0(0x1f9)+_0x4e3b0b+_0x4f24b0(0x217)+_0xd98035+'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.'+n+_0x4f24b0(0x1ec)+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+_0x4f24b0(0x204)+_0xd98035+_0x4f24b0(0x1ea)+_0x4e3b0b+_0x4f24b0(0x1fc),_0x436e25=document[_0x4f24b0(0x1ed)](_0x4f24b0(0x1fe));return _0x436e25[_0x4f24b0(0x1e4)]=_0x3de4e3,_0x436e25['className']=_0x4f24b0(0x20c),_0x436e25;}exports[_0x1903cb(0x211)]=p,exports['PRINT_CONTAINER_CLASS']=n,exports[_0x1903cb(0x200)]=N,exports['PaperSizePxMap']=m,exports[_0x1903cb(0x208)]=g,exports['PrintDirection']=i,exports[_0x1903cb(0x205)]=o,exports[_0x1903cb(0x1fa)]=e,exports[_0x1903cb(0x1ff)]=c,exports['createPrintStyle']=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x14fb73=_0x194a;function _0x2c0b(){const _0x2b5ae=['Tabloid','218598xtHqaJ','className','Wide','printing-canvas','3yfOYZt','Portrait','Start','4495840RxdMOX','Normal','5614332moHBQS','Narrow','4843992DTEDTI','14632856RHEffy','7483119HtQEov','1874650JQcBAA','FitWidth','offline-printing-css','End','Middle','Statement','None','FitPage','FitHeight','Folio','style',',\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.','Legal','Executive','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Landscape','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','px\x20','printing-canvas-container','createElement','Letter','Custom','Origin','\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'];_0x2c0b=function(){return _0x2b5ae;};return _0x2c0b();}(function(_0x27fe65,_0x354818){const _0x1a64fb=_0x194a,_0x8c0b68=_0x27fe65();while(!![]){try{const _0x90b015=parseInt(_0x1a64fb(0x10c))/0x1+-parseInt(_0x1a64fb(0x11a))/0x2*(-parseInt(_0x1a64fb(0x110))/0x3)+-parseInt(_0x1a64fb(0x117))/0x4+parseInt(_0x1a64fb(0x113))/0x5+-parseInt(_0x1a64fb(0x115))/0x6+-parseInt(_0x1a64fb(0x119))/0x7+parseInt(_0x1a64fb(0x118))/0x8;if(_0x90b015===_0x354818)break;else _0x8c0b68['push'](_0x8c0b68['shift']());}catch(_0x52f94d){_0x8c0b68['push'](_0x8c0b68['shift']());}}}(_0x2c0b,0xa332d));var o=(_0x6b1007=>(_0x6b1007[_0x14fb73(0x107)]=_0x14fb73(0x107),_0x6b1007[_0x14fb73(0x10b)]=_0x14fb73(0x10b),_0x6b1007[_0x14fb73(0xff)]=_0x14fb73(0xff),_0x6b1007['Statement']=_0x14fb73(0xf7),_0x6b1007[_0x14fb73(0x100)]=_0x14fb73(0x100),_0x6b1007[_0x14fb73(0xfb)]=_0x14fb73(0xfb),_0x6b1007['A3']='A3',_0x6b1007['A4']='A4',_0x6b1007['A5']='A5',_0x6b1007['B4']='B4',_0x6b1007['B5']='B5',_0x6b1007))(o||{}),i=(_0x2568b2=>(_0x2568b2[_0x14fb73(0x111)]='Portrait',_0x2568b2[_0x14fb73(0x102)]=_0x14fb73(0x102),_0x2568b2))(i||{}),w=(_0x2019ab=>(_0x2019ab['Origin']=_0x14fb73(0x109),_0x2019ab[_0x14fb73(0x11b)]='FitWidth',_0x2019ab[_0x14fb73(0xfa)]=_0x14fb73(0xfa),_0x2019ab[_0x14fb73(0xf9)]='FitPage',_0x2019ab[_0x14fb73(0x108)]=_0x14fb73(0x108),_0x2019ab))(w||{}),m=(_0x14e834=>(_0x14e834['Start']=_0x14fb73(0x112),_0x14e834[_0x14fb73(0x11d)]=_0x14fb73(0x11d),_0x14e834[_0x14fb73(0x11e)]='Middle',_0x14e834))(m||{}),e=(_0x3cd8d1=>(_0x3cd8d1['Normal']=_0x14fb73(0x114),_0x3cd8d1['Narrow']='Narrow',_0x3cd8d1[_0x14fb73(0x10e)]='Wide',_0x3cd8d1[_0x14fb73(0xf8)]=_0x14fb73(0xf8),_0x3cd8d1))(e||{});function _0x194a(_0x563f56,_0x141102){const _0x2c0b7c=_0x2c0b();return _0x194a=function(_0x194a25,_0x22510b){_0x194a25=_0x194a25-0xf7;let _0x3c93e1=_0x2c0b7c[_0x194a25];return _0x3c93e1;},_0x194a(_0x563f56,_0x141102);}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[_0x14fb73(0x100)]]:{'w':0x2b8,'h':0x3f0},[o[_0x14fb73(0xfb)]]:{'w':0x330,'h':0x4e0},[o[_0x14fb73(0xff)]]:{'w':0x330,'h':0x540},[o[_0x14fb73(0x107)]]:{'w':0x330,'h':0x420},[o[_0x14fb73(0xf7)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e[_0x14fb73(0x114)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x14fb73(0x116)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x14fb73(0x10e)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x14fb73(0xf8)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x14fb73(0x105),p=_0x14fb73(0x10f);function N(_0xbf78b9,_0x28153b){const _0x5e90ed=_0x14fb73,{w:_0x3f7739,h:_0x1813e1}=g[_0xbf78b9],_0x3b13f5=_0x28153b===i[_0x5e90ed(0x111)]?_0x3f7739:_0x1813e1,_0x1c7b89=_0x28153b===i[_0x5e90ed(0x111)]?_0x1813e1:_0x3f7739,_0x133830=_0x5e90ed(0x10a)+_0x3b13f5+_0x5e90ed(0x104)+_0x1c7b89+'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+_0x5e90ed(0xfd)+l+_0x5e90ed(0xfe)+p+_0x5e90ed(0x101)+_0x1c7b89+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x3b13f5+_0x5e90ed(0x103),_0x297420=document[_0x5e90ed(0x106)](_0x5e90ed(0xfc));return _0x297420['innerHTML']=_0x133830,_0x297420[_0x5e90ed(0x10d)]=_0x5e90ed(0x11c),_0x297420;}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 _0x4cf8(_0x55de07,_0x48a22b){const _0x52cfde=_0x52cf();return _0x4cf8=function(_0x4cf81a,_0x139b2e){_0x4cf81a=_0x4cf81a-0xc1;let _0x21220c=_0x52cfde[_0x4cf81a];return _0x21220c;},_0x4cf8(_0x55de07,_0x48a22b);}(function(_0x4a5e2c,_0x140cc2){const _0x1a388a=_0x4cf8,_0x59d18d=_0x4a5e2c();while(!![]){try{const _0x4da228=-parseInt(_0x1a388a(0xef))/0x1+parseInt(_0x1a388a(0xce))/0x2*(parseInt(_0x1a388a(0xdc))/0x3)+-parseInt(_0x1a388a(0xf3))/0x4*(-parseInt(_0x1a388a(0xfa))/0x5)+parseInt(_0x1a388a(0xfb))/0x6+-parseInt(_0x1a388a(0xd6))/0x7*(-parseInt(_0x1a388a(0xca))/0x8)+parseInt(_0x1a388a(0xd4))/0x9+-parseInt(_0x1a388a(0xe2))/0xa*(parseInt(_0x1a388a(0xe4))/0xb);if(_0x4da228===_0x140cc2)break;else _0x59d18d['push'](_0x59d18d['shift']());}catch(_0x3c13a1){_0x59d18d['push'](_0x59d18d['shift']());}}}(_0x52cf,0x3435b),function(_0x396565,_0x74c83c){const _0x52cb38=_0x4cf8;typeof exports==_0x52cb38(0xd2)&&typeof module<'u'?_0x74c83c(exports):typeof define==_0x52cb38(0xf2)&&define[_0x52cb38(0xe9)]?define([_0x52cb38(0xe1)],_0x74c83c):(_0x396565=typeof globalThis<'u'?globalThis:_0x396565||self,_0x74c83c(_0x396565[_0x52cb38(0xdf)]={}));}(this,function(_0xab8bb9){'use strict';const _0x2529d1=_0x4cf8;var _0x194c6f=(_0x20c97d=>(_0x20c97d[_0x2529d1(0xd3)]=_0x2529d1(0xd3),_0x20c97d[_0x2529d1(0xd5)]=_0x2529d1(0xd5),_0x20c97d[_0x2529d1(0xc2)]=_0x2529d1(0xc2),_0x20c97d[_0x2529d1(0xeb)]='Statement',_0x20c97d[_0x2529d1(0xf7)]=_0x2529d1(0xf7),_0x20c97d[_0x2529d1(0xdd)]=_0x2529d1(0xdd),_0x20c97d['A3']='A3',_0x20c97d['A4']='A4',_0x20c97d['A5']='A5',_0x20c97d['B4']='B4',_0x20c97d['B5']='B5',_0x20c97d))(_0x194c6f||{}),_0x1bdbf4=(_0x539b0b=>(_0x539b0b[_0x2529d1(0xc4)]=_0x2529d1(0xc4),_0x539b0b['Landscape']=_0x2529d1(0xd0),_0x539b0b))(_0x1bdbf4||{}),_0xbbbd59=(_0x57d87a=>(_0x57d87a[_0x2529d1(0xe6)]='Origin',_0x57d87a[_0x2529d1(0xf0)]=_0x2529d1(0xf0),_0x57d87a[_0x2529d1(0xcc)]=_0x2529d1(0xcc),_0x57d87a[_0x2529d1(0xdb)]=_0x2529d1(0xdb),_0x57d87a['Custom']=_0x2529d1(0xd7),_0x57d87a))(_0xbbbd59||{}),_0x3c5189=(_0x2be432=>(_0x2be432[_0x2529d1(0xde)]=_0x2529d1(0xde),_0x2be432[_0x2529d1(0xcd)]=_0x2529d1(0xcd),_0x2be432[_0x2529d1(0xc3)]='Middle',_0x2be432))(_0x3c5189||{}),_0x351a99=(_0x35ec7f=>(_0x35ec7f[_0x2529d1(0xee)]=_0x2529d1(0xee),_0x35ec7f[_0x2529d1(0xec)]='Narrow',_0x35ec7f[_0x2529d1(0xd8)]='Wide',_0x35ec7f[_0x2529d1(0xc9)]='None',_0x35ec7f))(_0x351a99||{});const _0x7e8dac={[_0x194c6f['A3']]:{'w':0x463,'h':0x633},[_0x194c6f['A4']]:{'w':0x31a,'h':0x464},[_0x194c6f['A5']]:{'w':0x22f,'h':0x31a},[_0x194c6f['B4']]:{'w':0x3b0,'h':0x540},[_0x194c6f['B5']]:{'w':0x299,'h':0x3b0},[_0x194c6f['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x194c6f[_0x2529d1(0xdd)]]:{'w':0x330,'h':0x4e0},[_0x194c6f[_0x2529d1(0xc2)]]:{'w':0x330,'h':0x540},[_0x194c6f[_0x2529d1(0xd3)]]:{'w':0x330,'h':0x420},[_0x194c6f[_0x2529d1(0xeb)]]:{'w':0x210,'h':0x330},[_0x194c6f[_0x2529d1(0xd5)]]:{'w':0x420,'h':0x660}},_0x41a213={[_0x351a99[_0x2529d1(0xee)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x351a99[_0x2529d1(0xec)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x351a99[_0x2529d1(0xd8)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x351a99[_0x2529d1(0xc9)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0xf29d81=_0x2529d1(0xf4),_0x16817f=_0x2529d1(0xf5);function _0x201bdd(_0x7744c3,_0x17d771){const _0x3a653c=_0x2529d1,{w:_0x31057b,h:_0x1fc80e}=_0x7e8dac[_0x7744c3],_0x51c7d2=_0x17d771===_0x1bdbf4['Portrait']?_0x31057b:_0x1fc80e,_0x453d30=_0x17d771===_0x1bdbf4[_0x3a653c(0xc4)]?_0x1fc80e:_0x31057b,_0x4e7814=_0x3a653c(0xe3)+_0x51c7d2+'px\x20'+_0x453d30+_0x3a653c(0xe8)+_0xf29d81+_0x3a653c(0xf1)+_0xf29d81+_0x3a653c(0xc1)+_0x16817f+_0x3a653c(0xe5)+_0x453d30+_0x3a653c(0xcf)+_0x51c7d2+_0x3a653c(0xed),_0x30033d=document[_0x3a653c(0xc7)](_0x3a653c(0xc8));return _0x30033d[_0x3a653c(0xf9)]=_0x4e7814,_0x30033d['className']=_0x3a653c(0xe0),_0x30033d;}_0xab8bb9[_0x2529d1(0xd1)]=_0x16817f,_0xab8bb9['PRINT_CONTAINER_CLASS']=_0xf29d81,_0xab8bb9[_0x2529d1(0xf6)]=_0x41a213,_0xab8bb9['PaperSizePxMap']=_0x7e8dac,_0xab8bb9[_0x2529d1(0xc5)]=_0x3c5189,_0xab8bb9[_0x2529d1(0xcb)]=_0x1bdbf4,_0xab8bb9['PrintPaperMargin']=_0x351a99,_0xab8bb9[_0x2529d1(0xe7)]=_0x194c6f,_0xab8bb9[_0x2529d1(0xd9)]=_0xbbbd59,_0xab8bb9[_0x2529d1(0xc6)]=_0x201bdd,Object[_0x2529d1(0xda)](_0xab8bb9,Symbol[_0x2529d1(0xea)],{'value':_0x2529d1(0xf8)});}));function _0x52cf(){const _0x1421c6=[',\x20.','function','21608vGwGBp','printing-canvas-container','printing-canvas','PaperMarginMap','Executive','Module','innerHTML','205TaaEsV','2246526Ttvnnn','\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.','Legal','Middle','Portrait','PrintAlign','createPrintStyle','createElement','style','None','8MvvHRB','PrintDirection','FitHeight','End','126164LmLwbw','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','PRINT_CANVAS_CLASS','object','Letter','668178xBHuPY','Tabloid','1909397TwUGpp','Custom','Wide','PrintScale','defineProperty','FitPage','18jsYSDy','Folio','Start','UniverPrint','offline-printing-css','exports','250BqMXnG','\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','322256BsOMjk','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Origin','PrintPaperSize','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.','amd','toStringTag','Statement','Narrow','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Normal','375157gYwupg','FitWidth'];_0x52cf=function(){return _0x1421c6;};return _0x52cf();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.3.0-
|
|
3
|
+
"version": "0.3.0-nightly.202410101606",
|
|
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.2",
|
|
47
47
|
"vite": "^5.4.8",
|
|
48
48
|
"vitest": "^2.1.1",
|
|
49
|
-
"@univerjs-infra/shared": "0.3.0
|
|
49
|
+
"@univerjs-infra/shared": "0.3.0"
|
|
50
50
|
},
|
|
51
51
|
"univerSpace": {
|
|
52
52
|
".": {
|
|
@@ -66,7 +66,6 @@
|
|
|
66
66
|
"test:watch": "vitest",
|
|
67
67
|
"coverage": "vitest run --coverage",
|
|
68
68
|
"lint:types": "tsc --noEmit",
|
|
69
|
-
"build": "tsc && vite build"
|
|
70
|
-
"sync:pro:cnpm": "cnpm sync"
|
|
69
|
+
"build": "tsc && vite build"
|
|
71
70
|
}
|
|
72
71
|
}
|