@univerjs-pro/print 0.3.0-alpha.0 → 0.3.0-alpha.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 +2 -2
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4606d5=_0x5bbb;(function(_0x161977,_0x28ab39){const _0x16fb35=_0x5bbb,_0x372a10=_0x161977();while(!![]){try{const _0x250811=-parseInt(_0x16fb35(0x1fc))/0x1+parseInt(_0x16fb35(0x1e7))/0x2+-parseInt(_0x16fb35(0x1e3))/0x3*(parseInt(_0x16fb35(0x206))/0x4)+parseInt(_0x16fb35(0x1ec))/0x5*(-parseInt(_0x16fb35(0x1dc))/0x6)+-parseInt(_0x16fb35(0x1df))/0x7+-parseInt(_0x16fb35(0x201))/0x8*(-parseInt(_0x16fb35(0x1dd))/0x9)+parseInt(_0x16fb35(0x207))/0xa;if(_0x250811===_0x28ab39)break;else _0x372a10['push'](_0x372a10['shift']());}catch(_0x57697a){_0x372a10['push'](_0x372a10['shift']());}}}(_0xa0f6,0x62439));Object[_0x4606d5(0x1fa)](exports,Symbol[_0x4606d5(0x1e2)],{'value':_0x4606d5(0x1f2)});var e=(_0x38305a=>(_0x38305a[_0x4606d5(0x1e0)]='Letter',_0x38305a[_0x4606d5(0x1db)]=_0x4606d5(0x1db),_0x38305a['Legal']=_0x4606d5(0x1fd),_0x38305a[_0x4606d5(0x20a)]=_0x4606d5(0x20a),_0x38305a[_0x4606d5(0x1eb)]='Executive',_0x38305a[_0x4606d5(0x205)]=_0x4606d5(0x205),_0x38305a['A3']='A3',_0x38305a['A4']='A4',_0x38305a['A5']='A5',_0x38305a['B4']='B4',_0x38305a['B5']='B5',_0x38305a))(e||{}),i=(_0x24fbd4=>(_0x24fbd4['Portrait']=_0x4606d5(0x1f3),_0x24fbd4[_0x4606d5(0x1e1)]=_0x4606d5(0x1e1),_0x24fbd4))(i||{}),c=(_0x5362bf=>(_0x5362bf[_0x4606d5(0x209)]=_0x4606d5(0x209),_0x5362bf['FitWidth']=_0x4606d5(0x200),_0x5362bf['FitHeight']='FitHeight',_0x5362bf['FitPage']=_0x4606d5(0x204),_0x5362bf[_0x4606d5(0x1f5)]='Custom',_0x5362bf))(c||{}),g=(_0xdc485a=>(_0xdc485a[_0x4606d5(0x1f6)]='Start',_0xdc485a['End']='End',_0xdc485a[_0x4606d5(0x1f9)]=_0x4606d5(0x1f9),_0xdc485a))(g||{}),o=(_0x41b0de=>(_0x41b0de[_0x4606d5(0x1de)]=_0x4606d5(0x1de),_0x41b0de['Narrow']=_0x4606d5(0x20c),_0x41b0de[_0x4606d5(0x1f7)]=_0x4606d5(0x1f7),_0x41b0de[_0x4606d5(0x202)]=_0x4606d5(0x202),_0x41b0de))(o||{});function _0x5bbb(_0x44e0fc,_0x3b9acc){const _0xa0f638=_0xa0f6();return _0x5bbb=function(_0x5bbbb8,_0x447829){_0x5bbbb8=_0x5bbbb8-0x1db;let _0x17a873=_0xa0f638[_0x5bbbb8];return _0x17a873;},_0x5bbb(_0x44e0fc,_0x3b9acc);}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[_0x4606d5(0x1eb)]]:{'w':0x2b8,'h':0x3f0},[e[_0x4606d5(0x205)]]:{'w':0x330,'h':0x4e0},[e[_0x4606d5(0x1fd)]]:{'w':0x330,'h':0x540},[e[_0x4606d5(0x1e0)]]:{'w':0x330,'h':0x420},[e[_0x4606d5(0x20a)]]:{'w':0x210,'h':0x330},[e[_0x4606d5(0x1db)]]:{'w':0x420,'h':0x660}},N={[o[_0x4606d5(0x1de)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x4606d5(0x20c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x4606d5(0x1f7)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x4606d5(0x1e5),p=_0x4606d5(0x20e);function A(_0x2fed41,_0x219dd3){const _0x54825a=_0x4606d5,{w:_0x4c2d4f,h:_0x180330}=m[_0x2fed41],_0x343290=_0x219dd3===i[_0x54825a(0x1f3)]?_0x4c2d4f:_0x180330,_0x21bac7=_0x219dd3===i[_0x54825a(0x1f3)]?_0x180330:_0x4c2d4f,_0x2a9109=_0x54825a(0x1e4)+_0x343290+_0x54825a(0x1e6)+_0x21bac7+_0x54825a(0x1ea)+n+',\x20.'+n+_0x54825a(0x20d)+p+_0x54825a(0x203)+_0x21bac7+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x343290+_0x54825a(0x1f0),_0x458670=document[_0x54825a(0x208)]('style');return _0x458670[_0x54825a(0x1fb)]=_0x2a9109,_0x458670[_0x54825a(0x1f1)]=_0x54825a(0x1ed),_0x458670;}function _0xa0f6(){const _0x2bdce9=['PaperSizePxMap','PaperMarginMap','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','className','Module','Portrait','PRINT_CONTAINER_CLASS','Custom','Start','Wide','PrintAlign','Middle','defineProperty','innerHTML','533571yaECuA','Legal','PrintPaperSize','PrintDirection','FitWidth','8DcFpzi','None','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','FitPage','Folio','4IzEonk','9205500lGjakI','createElement','Origin','Statement','PRINT_CANVAS_CLASS','Narrow','\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.','printing-canvas','PrintScale','Tabloid','41190FHcYWd','2524563MkNqFZ','Normal','1613696qOxuCD','Letter','Landscape','toStringTag','16509tdIpaL','\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','printing-canvas-container','px\x20','916898GrwJwn','PrintPaperMargin','createPrintStyle','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.','Executive','355XSyDKk','offline-printing-css'];_0xa0f6=function(){return _0x2bdce9;};return _0xa0f6();}exports[_0x4606d5(0x20b)]=p,exports[_0x4606d5(0x1f4)]=n,exports[_0x4606d5(0x1ef)]=N,exports[_0x4606d5(0x1ee)]=m,exports[_0x4606d5(0x1f8)]=g,exports[_0x4606d5(0x1ff)]=i,exports[_0x4606d5(0x1e8)]=o,exports[_0x4606d5(0x1fe)]=e,exports[_0x4606d5(0x20f)]=c,exports[_0x4606d5(0x1e9)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x5ebf1a=_0x1255;(function(_0x58fe60,_0x5bc0e2){const _0x57b42c=_0x1255,_0x503839=_0x58fe60();while(!![]){try{const _0x4c0dc8=-parseInt(_0x57b42c(0xdc))/0x1*(parseInt(_0x57b42c(0xd5))/0x2)+-parseInt(_0x57b42c(0xd0))/0x3+parseInt(_0x57b42c(0xde))/0x4+-parseInt(_0x57b42c(0xe3))/0x5*(parseInt(_0x57b42c(0xdd))/0x6)+parseInt(_0x57b42c(0xda))/0x7+parseInt(_0x57b42c(0xc4))/0x8*(parseInt(_0x57b42c(0xd9))/0x9)+parseInt(_0x57b42c(0xe2))/0xa*(-parseInt(_0x57b42c(0xe6))/0xb);if(_0x4c0dc8===_0x5bc0e2)break;else _0x503839['push'](_0x503839['shift']());}catch(_0x238a70){_0x503839['push'](_0x503839['shift']());}}}(_0x1a16,0xdedf9));var o=(_0x469bc0=>(_0x469bc0[_0x5ebf1a(0xc8)]=_0x5ebf1a(0xc8),_0x469bc0[_0x5ebf1a(0xcc)]=_0x5ebf1a(0xcc),_0x469bc0['Legal']=_0x5ebf1a(0xe0),_0x469bc0[_0x5ebf1a(0xc0)]=_0x5ebf1a(0xc0),_0x469bc0[_0x5ebf1a(0xce)]=_0x5ebf1a(0xce),_0x469bc0[_0x5ebf1a(0xc9)]='Folio',_0x469bc0['A3']='A3',_0x469bc0['A4']='A4',_0x469bc0['A5']='A5',_0x469bc0['B4']='B4',_0x469bc0['B5']='B5',_0x469bc0))(o||{}),i=(_0x1a8f5f=>(_0x1a8f5f['Portrait']=_0x5ebf1a(0xe5),_0x1a8f5f['Landscape']=_0x5ebf1a(0xe7),_0x1a8f5f))(i||{}),w=(_0x3f8d39=>(_0x3f8d39[_0x5ebf1a(0xd7)]=_0x5ebf1a(0xd7),_0x3f8d39[_0x5ebf1a(0xc2)]=_0x5ebf1a(0xc2),_0x3f8d39[_0x5ebf1a(0xcd)]='FitHeight',_0x3f8d39[_0x5ebf1a(0xc7)]='FitPage',_0x3f8d39[_0x5ebf1a(0xe4)]=_0x5ebf1a(0xe4),_0x3f8d39))(w||{}),m=(_0x364ef5=>(_0x364ef5['Start']='Start',_0x364ef5['End']=_0x5ebf1a(0xe8),_0x364ef5['Middle']=_0x5ebf1a(0xbf),_0x364ef5))(m||{}),e=(_0x5993dd=>(_0x5993dd[_0x5ebf1a(0xdb)]=_0x5ebf1a(0xdb),_0x5993dd[_0x5ebf1a(0xd8)]=_0x5ebf1a(0xd8),_0x5993dd[_0x5ebf1a(0xdf)]='Wide',_0x5993dd[_0x5ebf1a(0xe9)]=_0x5ebf1a(0xe9),_0x5993dd))(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[_0x5ebf1a(0xce)]]:{'w':0x2b8,'h':0x3f0},[o[_0x5ebf1a(0xc9)]]:{'w':0x330,'h':0x4e0},[o['Legal']]:{'w':0x330,'h':0x540},[o['Letter']]:{'w':0x330,'h':0x420},[o[_0x5ebf1a(0xc0)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e[_0x5ebf1a(0xdb)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x5ebf1a(0xdf)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x5ebf1a(0xe9)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x5ebf1a(0xd4),p=_0x5ebf1a(0xeb);function _0x1255(_0x26bf61,_0x301311){const _0x1a16c5=_0x1a16();return _0x1255=function(_0x12551a,_0x559b6b){_0x12551a=_0x12551a-0xbf;let _0x52c3e7=_0x1a16c5[_0x12551a];return _0x52c3e7;},_0x1255(_0x26bf61,_0x301311);}function N(_0x2bf760,_0x3b3d1e){const _0x28a9fe=_0x5ebf1a,{w:_0x373259,h:_0x27ed39}=g[_0x2bf760],_0x1ba10c=_0x3b3d1e===i['Portrait']?_0x373259:_0x27ed39,_0x4fad98=_0x3b3d1e===i[_0x28a9fe(0xe5)]?_0x27ed39:_0x373259,_0xc94341=_0x28a9fe(0xc3)+_0x1ba10c+_0x28a9fe(0xd1)+_0x4fad98+_0x28a9fe(0xd2)+l+_0x28a9fe(0xc6)+l+_0x28a9fe(0xcf)+p+_0x28a9fe(0xcb)+_0x4fad98+_0x28a9fe(0xc5)+_0x1ba10c+_0x28a9fe(0xc1),_0x1acb9b=document[_0x28a9fe(0xca)](_0x28a9fe(0xd6));return _0x1acb9b[_0x28a9fe(0xd3)]=_0xc94341,_0x1acb9b[_0x28a9fe(0xe1)]=_0x28a9fe(0xea),_0x1acb9b;}function _0x1a16(){const _0x435ecb=['className','8637870GyQEwB','2060165itNaJg','Custom','Portrait','11fRXjnf','Landscape','End','None','offline-printing-css','printing-canvas','Middle','Statement','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','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','8wGWfTF','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20',',\x20.','FitPage','Letter','Folio','createElement','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Tabloid','FitHeight','Executive','\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.','4421787swYvlY','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','printing-canvas-container','402vgijzW','style','Origin','Narrow','13941549NQinve','5629491rDVGCw','Normal','654odxUXK','6KwHonM','5763272IFHWsV','Wide','Legal'];_0x1a16=function(){return _0x435ecb;};return _0x1a16();}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 _0x4967(_0x351b48,_0x142539){const _0x2fa12d=_0x2fa1();return _0x4967=function(_0x49675c,_0x50e360){_0x49675c=_0x49675c-0xe8;let _0x37320f=_0x2fa12d[_0x49675c];return _0x37320f;},_0x4967(_0x351b48,_0x142539);}(function(_0x53431d,_0x2a02f5){const _0x1eb527=_0x4967,_0x5e6c89=_0x53431d();while(!![]){try{const _0x17b0cb=-parseInt(_0x1eb527(0xf4))/0x1*(parseInt(_0x1eb527(0xf2))/0x2)+-parseInt(_0x1eb527(0x116))/0x3*(-parseInt(_0x1eb527(0x10d))/0x4)+-parseInt(_0x1eb527(0xec))/0x5*(-parseInt(_0x1eb527(0xf3))/0x6)+-parseInt(_0x1eb527(0xef))/0x7+parseInt(_0x1eb527(0xf1))/0x8+parseInt(_0x1eb527(0xee))/0x9*(parseInt(_0x1eb527(0xfb))/0xa)+-parseInt(_0x1eb527(0xf7))/0xb;if(_0x17b0cb===_0x2a02f5)break;else _0x5e6c89['push'](_0x5e6c89['shift']());}catch(_0x187b9e){_0x5e6c89['push'](_0x5e6c89['shift']());}}}(_0x2fa1,0x5b213),function(_0x5432d5,_0x13de5e){const _0x55c911=_0x4967;typeof exports==_0x55c911(0xe9)&&typeof module<'u'?_0x13de5e(exports):typeof define=='function'&&define[_0x55c911(0xf8)]?define([_0x55c911(0x10c)],_0x13de5e):(_0x5432d5=typeof globalThis<'u'?globalThis:_0x5432d5||self,_0x13de5e(_0x5432d5[_0x55c911(0x11e)]={}));}(this,function(_0x325439){'use strict';const _0x50cbc8=_0x4967;var _0x34d284=(_0x25931e=>(_0x25931e[_0x50cbc8(0xeb)]=_0x50cbc8(0xeb),_0x25931e[_0x50cbc8(0xed)]=_0x50cbc8(0xed),_0x25931e[_0x50cbc8(0x106)]='Legal',_0x25931e[_0x50cbc8(0x11a)]='Statement',_0x25931e['Executive']='Executive',_0x25931e[_0x50cbc8(0x114)]=_0x50cbc8(0x114),_0x25931e['A3']='A3',_0x25931e['A4']='A4',_0x25931e['A5']='A5',_0x25931e['B4']='B4',_0x25931e['B5']='B5',_0x25931e))(_0x34d284||{}),_0xf72c1e=(_0x3d65d3=>(_0x3d65d3[_0x50cbc8(0x105)]='Portrait',_0x3d65d3[_0x50cbc8(0xfa)]='Landscape',_0x3d65d3))(_0xf72c1e||{}),_0x28c389=(_0x2ffaf1=>(_0x2ffaf1[_0x50cbc8(0x119)]='Origin',_0x2ffaf1[_0x50cbc8(0x109)]=_0x50cbc8(0x109),_0x2ffaf1[_0x50cbc8(0xfe)]=_0x50cbc8(0xfe),_0x2ffaf1[_0x50cbc8(0x10e)]=_0x50cbc8(0x10e),_0x2ffaf1['Custom']='Custom',_0x2ffaf1))(_0x28c389||{}),_0x1fda5d=(_0x3eeb20=>(_0x3eeb20[_0x50cbc8(0xff)]='Start',_0x3eeb20[_0x50cbc8(0x113)]=_0x50cbc8(0x113),_0x3eeb20[_0x50cbc8(0x110)]=_0x50cbc8(0x110),_0x3eeb20))(_0x1fda5d||{}),_0x3fadf3=(_0x33f938=>(_0x33f938[_0x50cbc8(0xf6)]=_0x50cbc8(0xf6),_0x33f938['Narrow']=_0x50cbc8(0x115),_0x33f938['Wide']=_0x50cbc8(0x108),_0x33f938['None']='None',_0x33f938))(_0x3fadf3||{});const _0x4b587d={[_0x34d284['A3']]:{'w':0x463,'h':0x633},[_0x34d284['A4']]:{'w':0x31a,'h':0x464},[_0x34d284['A5']]:{'w':0x22f,'h':0x31a},[_0x34d284['B4']]:{'w':0x3b0,'h':0x540},[_0x34d284['B5']]:{'w':0x299,'h':0x3b0},[_0x34d284['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x34d284[_0x50cbc8(0x114)]]:{'w':0x330,'h':0x4e0},[_0x34d284[_0x50cbc8(0x106)]]:{'w':0x330,'h':0x540},[_0x34d284['Letter']]:{'w':0x330,'h':0x420},[_0x34d284[_0x50cbc8(0x11a)]]:{'w':0x210,'h':0x330},[_0x34d284[_0x50cbc8(0xed)]]:{'w':0x420,'h':0x660}},_0x49828e={[_0x3fadf3['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x3fadf3[_0x50cbc8(0x115)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x3fadf3[_0x50cbc8(0x108)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x3fadf3[_0x50cbc8(0x103)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x155a7c=_0x50cbc8(0x10b),_0x3696f5=_0x50cbc8(0xfd);function _0x4300f0(_0x16eb36,_0x59e600){const _0x3ed1ee=_0x50cbc8,{w:_0x3f08c8,h:_0x5b212e}=_0x4b587d[_0x16eb36],_0xca9241=_0x59e600===_0xf72c1e['Portrait']?_0x3f08c8:_0x5b212e,_0x3f0cff=_0x59e600===_0xf72c1e['Portrait']?_0x5b212e:_0x3f08c8,_0x37dbca=_0x3ed1ee(0xe8)+_0xca9241+'px\x20'+_0x3f0cff+_0x3ed1ee(0x117)+_0x155a7c+_0x3ed1ee(0x11d)+_0x155a7c+_0x3ed1ee(0x10a)+_0x3696f5+_0x3ed1ee(0xf9)+_0x3f0cff+_0x3ed1ee(0x100)+_0xca9241+_0x3ed1ee(0xf0),_0x2c7b09=document[_0x3ed1ee(0x118)]('style');return _0x2c7b09[_0x3ed1ee(0x102)]=_0x37dbca,_0x2c7b09[_0x3ed1ee(0x104)]=_0x3ed1ee(0x107),_0x2c7b09;}_0x325439['PRINT_CANVAS_CLASS']=_0x3696f5,_0x325439[_0x50cbc8(0xfc)]=_0x155a7c,_0x325439[_0x50cbc8(0x101)]=_0x49828e,_0x325439[_0x50cbc8(0x11c)]=_0x4b587d,_0x325439[_0x50cbc8(0x11b)]=_0x1fda5d,_0x325439[_0x50cbc8(0x112)]=_0xf72c1e,_0x325439['PrintPaperMargin']=_0x3fadf3,_0x325439[_0x50cbc8(0x111)]=_0x34d284,_0x325439[_0x50cbc8(0xf5)]=_0x28c389,_0x325439[_0x50cbc8(0x10f)]=_0x4300f0,Object['defineProperty'](_0x325439,Symbol[_0x50cbc8(0xea)],{'value':_0x50cbc8(0x11f)});}));function _0x2fa1(){const _0x52957b=['innerHTML','None','className','Portrait','Legal','offline-printing-css','Wide','FitWidth','\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.','printing-canvas-container','exports','15724qcMqqu','FitPage','createPrintStyle','Middle','PrintPaperSize','PrintDirection','End','Folio','Narrow','249wXbJXH','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.','createElement','Origin','Statement','PrintAlign','PaperSizePxMap',',\x20.','UniverPrint','Module','\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','object','toStringTag','Letter','185fHRpTP','Tabloid','90KTmmdy','3032092sURvmG','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','1567424rosIZW','152924zHkXGq','2586YQZvwy','2vnQIma','PrintScale','Normal','2292081RomDts','amd','\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','629570COuFNj','PRINT_CONTAINER_CLASS','printing-canvas','FitHeight','Start','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PaperMarginMap'];_0x2fa1=function(){return _0x52957b;};return _0x2fa1();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.3.0-alpha.
|
|
3
|
+
"version": "0.3.0-alpha.1",
|
|
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-alpha.
|
|
49
|
+
"@univerjs-infra/shared": "0.3.0-alpha.1"
|
|
50
50
|
},
|
|
51
51
|
"univerSpace": {
|
|
52
52
|
".": {
|