@univerjs-pro/print 0.5.0-beta.0 → 0.5.0-beta.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 _0x693532=_0x35c2;function _0x35c2(_0x5b0781,_0x426475){const _0x56de60=_0x56de();return _0x35c2=function(_0x35c2e2,_0x509200){_0x35c2e2=_0x35c2e2-0x1dc;let _0x2ad072=_0x56de60[_0x35c2e2];return _0x2ad072;},_0x35c2(_0x5b0781,_0x426475);}(function(_0x287504,_0x4b0b03){const _0x2d688c=_0x35c2,_0x58c456=_0x287504();while(!![]){try{const _0x32ebb6=parseInt(_0x2d688c(0x1fe))/0x1*(-parseInt(_0x2d688c(0x204))/0x2)+-parseInt(_0x2d688c(0x1f3))/0x3*(parseInt(_0x2d688c(0x1ea))/0x4)+-parseInt(_0x2d688c(0x1f6))/0x5+-parseInt(_0x2d688c(0x1f8))/0x6+-parseInt(_0x2d688c(0x1e7))/0x7+parseInt(_0x2d688c(0x1e0))/0x8+parseInt(_0x2d688c(0x207))/0x9*(parseInt(_0x2d688c(0x20b))/0xa);if(_0x32ebb6===_0x4b0b03)break;else _0x58c456['push'](_0x58c456['shift']());}catch(_0x1cd435){_0x58c456['push'](_0x58c456['shift']());}}}(_0x56de,0x34e7e));Object[_0x693532(0x1e6)](exports,Symbol[_0x693532(0x1fc)],{'value':_0x693532(0x1f5)});function _0x56de(){const _0x5e7df7=['Start','PRINT_CONTAINER_CLASS','Narrow','FitPage','defineProperty','2903362koRkpl','createElement','printing-canvas-container','40844lIyDRs','PrintPaperMargin','Executive','Portrait','FitHeight','Landscape','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Letter','Tabloid','42yYZkgt','Middle','Module','677160jmqzXc','Legal','730188LvNLjJ','Folio','className','Custom','toStringTag','End','157lmgGCB','Wide','px\x20','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','3764NJUAKi','PrintDirection','Origin','567yvvNdW','innerHTML','Normal','Statement','192580gefmCK',',\x20.','PrintScale','printing-canvas','createPrintStyle','910176WAfTme','None'];_0x56de=function(){return _0x5e7df7;};return _0x56de();}var e=(_0x41814b=>(_0x41814b[_0x693532(0x1f1)]=_0x693532(0x1f1),_0x41814b[_0x693532(0x1f2)]='Tabloid',_0x41814b[_0x693532(0x1f7)]=_0x693532(0x1f7),_0x41814b[_0x693532(0x20a)]=_0x693532(0x20a),_0x41814b[_0x693532(0x1ec)]='Executive',_0x41814b[_0x693532(0x1f9)]=_0x693532(0x1f9),_0x41814b['A3']='A3',_0x41814b['A4']='A4',_0x41814b['A5']='A5',_0x41814b['B4']='B4',_0x41814b['B5']='B5',_0x41814b))(e||{}),i=(_0x178b15=>(_0x178b15[_0x693532(0x1ed)]=_0x693532(0x1ed),_0x178b15[_0x693532(0x1ef)]=_0x693532(0x1ef),_0x178b15))(i||{}),c=(_0x1032f9=>(_0x1032f9['Origin']=_0x693532(0x206),_0x1032f9[_0x693532(0x201)]=_0x693532(0x201),_0x1032f9[_0x693532(0x1ee)]=_0x693532(0x1ee),_0x1032f9[_0x693532(0x1e5)]=_0x693532(0x1e5),_0x1032f9[_0x693532(0x1fb)]=_0x693532(0x1fb),_0x1032f9))(c||{}),g=(_0x474cc5=>(_0x474cc5['Start']=_0x693532(0x1e2),_0x474cc5[_0x693532(0x1fd)]=_0x693532(0x1fd),_0x474cc5[_0x693532(0x1f4)]='Middle',_0x474cc5))(g||{}),o=(_0x3f5237=>(_0x3f5237[_0x693532(0x209)]='Normal',_0x3f5237[_0x693532(0x1e4)]=_0x693532(0x1e4),_0x3f5237[_0x693532(0x1ff)]='Wide',_0x3f5237['None']=_0x693532(0x1e1),_0x3f5237))(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['Executive']]:{'w':0x2b8,'h':0x3f0},[e[_0x693532(0x1f9)]]:{'w':0x330,'h':0x4e0},[e[_0x693532(0x1f7)]]:{'w':0x330,'h':0x540},[e['Letter']]:{'w':0x330,'h':0x420},[e[_0x693532(0x20a)]]:{'w':0x210,'h':0x330},[e[_0x693532(0x1f2)]]:{'w':0x420,'h':0x660}},N={[o[_0x693532(0x209)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x693532(0x1e4)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x693532(0x1ff)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x693532(0x1e1)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x693532(0x1e9),p=_0x693532(0x1de);function A(_0xbc94d2,_0x4488db){const _0x457e57=_0x693532,{w:_0x156324,h:_0x5a5947}=m[_0xbc94d2],_0x403e07=_0x4488db===i[_0x457e57(0x1ed)]?_0x156324:_0x5a5947,_0x3b1697=_0x4488db===i[_0x457e57(0x1ed)]?_0x5a5947:_0x156324,_0x2c447c='\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'+_0x403e07+_0x457e57(0x200)+_0x3b1697+_0x457e57(0x202)+n+_0x457e57(0x1dc)+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+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x3b1697+_0x457e57(0x203)+_0x403e07+_0x457e57(0x1f0),_0x5f51d0=document[_0x457e57(0x1e8)]('style');return _0x5f51d0[_0x457e57(0x208)]=_0x2c447c,_0x5f51d0[_0x457e57(0x1fa)]='offline-printing-css',_0x5f51d0;}exports['PRINT_CANVAS_CLASS']=p,exports[_0x693532(0x1e3)]=n,exports['PaperMarginMap']=N,exports['PaperSizePxMap']=m,exports['PrintAlign']=g,exports[_0x693532(0x205)]=i,exports[_0x693532(0x1eb)]=o,exports['PrintPaperSize']=e,exports[_0x693532(0x1dd)]=c,exports[_0x693532(0x1df)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5ce798=_0x3802;(function(_0x214e11,_0xc85509){const _0x420ea2=_0x3802,_0x1b3125=_0x214e11();while(!![]){try{const _0x5517ff=parseInt(_0x420ea2(0xe9))/0x1*(parseInt(_0x420ea2(0xf0))/0x2)+-parseInt(_0x420ea2(0xf3))/0x3+parseInt(_0x420ea2(0xfa))/0x4+-parseInt(_0x420ea2(0xf9))/0x5+parseInt(_0x420ea2(0xe5))/0x6+-parseInt(_0x420ea2(0xee))/0x7*(-parseInt(_0x420ea2(0xd9))/0x8)+parseInt(_0x420ea2(0xe0))/0x9*(parseInt(_0x420ea2(0xd7))/0xa);if(_0x5517ff===_0xc85509)break;else _0x1b3125['push'](_0x1b3125['shift']());}catch(_0x1a3c89){_0x1b3125['push'](_0x1b3125['shift']());}}}(_0x1eca,0xdf974));var o=(_0xf3b231=>(_0xf3b231['Letter']='Letter',_0xf3b231['Tabloid']=_0x5ce798(0xec),_0xf3b231[_0x5ce798(0xe4)]=_0x5ce798(0xe4),_0xf3b231[_0x5ce798(0xea)]=_0x5ce798(0xea),_0xf3b231[_0x5ce798(0xed)]='Executive',_0xf3b231[_0x5ce798(0xe3)]=_0x5ce798(0xe3),_0xf3b231['A3']='A3',_0xf3b231['A4']='A4',_0xf3b231['A5']='A5',_0xf3b231['B4']='B4',_0xf3b231['B5']='B5',_0xf3b231))(o||{}),i=(_0x15edd5=>(_0x15edd5[_0x5ce798(0xf6)]=_0x5ce798(0xf6),_0x15edd5[_0x5ce798(0xe7)]='Landscape',_0x15edd5))(i||{}),w=(_0x5607fe=>(_0x5607fe[_0x5ce798(0xeb)]=_0x5ce798(0xeb),_0x5607fe[_0x5ce798(0xef)]=_0x5ce798(0xef),_0x5607fe['FitHeight']=_0x5ce798(0xfc),_0x5607fe['FitPage']='FitPage',_0x5607fe[_0x5ce798(0xf4)]=_0x5ce798(0xf4),_0x5607fe))(w||{}),m=(_0x8480d6=>(_0x8480d6['Start']=_0x5ce798(0xf1),_0x8480d6['End']=_0x5ce798(0xf8),_0x8480d6[_0x5ce798(0xdd)]='Middle',_0x8480d6))(m||{}),e=(_0x1c7cc3=>(_0x1c7cc3[_0x5ce798(0xe2)]=_0x5ce798(0xe2),_0x1c7cc3[_0x5ce798(0x100)]=_0x5ce798(0x100),_0x1c7cc3[_0x5ce798(0xff)]=_0x5ce798(0xff),_0x1c7cc3[_0x5ce798(0xd8)]=_0x5ce798(0xd8),_0x1c7cc3))(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[_0x5ce798(0xe3)]]:{'w':0x330,'h':0x4e0},[o[_0x5ce798(0xe4)]]:{'w':0x330,'h':0x540},[o[_0x5ce798(0xdb)]]:{'w':0x330,'h':0x420},[o[_0x5ce798(0xea)]]:{'w':0x210,'h':0x330},[o[_0x5ce798(0xec)]]:{'w':0x420,'h':0x660}},v={[e[_0x5ce798(0xe2)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x5ce798(0x100)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x5ce798(0xff)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x5ce798(0xd8)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x5ce798(0xde),p='printing-canvas';function N(_0x319895,_0x427ae8){const _0x5e6b0b=_0x5ce798,{w:_0x38c91f,h:_0x1c5aba}=g[_0x319895],_0x4d6734=_0x427ae8===i[_0x5e6b0b(0xf6)]?_0x38c91f:_0x1c5aba,_0x4d65d6=_0x427ae8===i[_0x5e6b0b(0xf6)]?_0x1c5aba:_0x38c91f,_0x30782f=_0x5e6b0b(0xf5)+_0x4d6734+_0x5e6b0b(0xdf)+_0x4d65d6+_0x5e6b0b(0xdc)+l+',\x20.'+l+_0x5e6b0b(0xfb)+p+_0x5e6b0b(0xfd)+_0x4d65d6+_0x5e6b0b(0xf7)+_0x4d6734+_0x5e6b0b(0xe1),_0x2e6318=document[_0x5e6b0b(0xf2)](_0x5e6b0b(0xe8));return _0x2e6318[_0x5e6b0b(0xe6)]=_0x30782f,_0x2e6318[_0x5e6b0b(0xda)]=_0x5e6b0b(0xfe),_0x2e6318;}function _0x1eca(){const _0x5e1319=['3851388TabudH','Custom','\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','Portrait','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','End','7332965PCsTIT','2842780LUcnmK','\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.','FitHeight','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','offline-printing-css','Wide','Narrow','8509030HUJHYp','None','88SCwmSS','className','Letter','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.','Middle','printing-canvas-container','px\x20','18ezREKh','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Normal','Folio','Legal','1776018wmsbbe','innerHTML','Landscape','style','920467wxrLnX','Statement','Origin','Tabloid','Executive','23702XctcUp','FitWidth','2gReRhK','Start','createElement'];_0x1eca=function(){return _0x5e1319;};return _0x1eca();}function _0x3802(_0x22f58e,_0x580870){const _0x1eca54=_0x1eca();return _0x3802=function(_0x380292,_0x21aa9b){_0x380292=_0x380292-0xd7;let _0x3f7f1e=_0x1eca54[_0x380292];return _0x3f7f1e;},_0x3802(_0x22f58e,_0x580870);}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 _0x2b16(_0x574115,_0x3d6ce2){const _0x2429ba=_0x2429();return _0x2b16=function(_0x2b1619,_0x3b0527){_0x2b1619=_0x2b1619-0x1f1;let _0x5cf65a=_0x2429ba[_0x2b1619];return _0x5cf65a;},_0x2b16(_0x574115,_0x3d6ce2);}(function(_0xbedad7,_0x451c05){const _0x5b1f88=_0x2b16,_0x57a2b7=_0xbedad7();while(!![]){try{const _0x388cc6=-parseInt(_0x5b1f88(0x1fd))/0x1+-parseInt(_0x5b1f88(0x1f6))/0x2+-parseInt(_0x5b1f88(0x208))/0x3*(-parseInt(_0x5b1f88(0x1ff))/0x4)+parseInt(_0x5b1f88(0x219))/0x5+parseInt(_0x5b1f88(0x1f4))/0x6*(parseInt(_0x5b1f88(0x217))/0x7)+-parseInt(_0x5b1f88(0x1f3))/0x8+parseInt(_0x5b1f88(0x218))/0x9;if(_0x388cc6===_0x451c05)break;else _0x57a2b7['push'](_0x57a2b7['shift']());}catch(_0x1a9d96){_0x57a2b7['push'](_0x57a2b7['shift']());}}}(_0x2429,0x755f2),function(_0x5ec018,_0x3de2f8){const _0x2e7f8a=_0x2b16;typeof exports==_0x2e7f8a(0x1fa)&&typeof module<'u'?_0x3de2f8(exports):typeof define==_0x2e7f8a(0x20e)&&define[_0x2e7f8a(0x213)]?define([_0x2e7f8a(0x1f8)],_0x3de2f8):(_0x5ec018=typeof globalThis<'u'?globalThis:_0x5ec018||self,_0x3de2f8(_0x5ec018[_0x2e7f8a(0x202)]={}));}(this,function(_0x3eeeb9){'use strict';const _0x2d21d2=_0x2b16;var _0x52f6ae=(_0x3482cd=>(_0x3482cd['Letter']=_0x2d21d2(0x207),_0x3482cd[_0x2d21d2(0x21c)]='Tabloid',_0x3482cd[_0x2d21d2(0x20d)]=_0x2d21d2(0x20d),_0x3482cd[_0x2d21d2(0x215)]=_0x2d21d2(0x215),_0x3482cd[_0x2d21d2(0x1f9)]=_0x2d21d2(0x1f9),_0x3482cd[_0x2d21d2(0x20f)]=_0x2d21d2(0x20f),_0x3482cd['A3']='A3',_0x3482cd['A4']='A4',_0x3482cd['A5']='A5',_0x3482cd['B4']='B4',_0x3482cd['B5']='B5',_0x3482cd))(_0x52f6ae||{}),_0x5a7dc0=(_0x37fb8c=>(_0x37fb8c[_0x2d21d2(0x212)]=_0x2d21d2(0x212),_0x37fb8c[_0x2d21d2(0x216)]='Landscape',_0x37fb8c))(_0x5a7dc0||{}),_0x42571e=(_0x51033f=>(_0x51033f[_0x2d21d2(0x1f1)]='Origin',_0x51033f[_0x2d21d2(0x21a)]=_0x2d21d2(0x21a),_0x51033f[_0x2d21d2(0x20b)]=_0x2d21d2(0x20b),_0x51033f[_0x2d21d2(0x201)]='FitPage',_0x51033f[_0x2d21d2(0x223)]=_0x2d21d2(0x223),_0x51033f))(_0x42571e||{}),_0x32f058=(_0x4db823=>(_0x4db823[_0x2d21d2(0x20c)]=_0x2d21d2(0x20c),_0x4db823['End']=_0x2d21d2(0x224),_0x4db823[_0x2d21d2(0x200)]=_0x2d21d2(0x200),_0x4db823))(_0x32f058||{}),_0x2a689e=(_0x3be7bc=>(_0x3be7bc['Normal']='Normal',_0x3be7bc['Narrow']=_0x2d21d2(0x1f2),_0x3be7bc[_0x2d21d2(0x21e)]=_0x2d21d2(0x21e),_0x3be7bc[_0x2d21d2(0x205)]=_0x2d21d2(0x205),_0x3be7bc))(_0x2a689e||{});const _0x2f15f5={[_0x52f6ae['A3']]:{'w':0x463,'h':0x633},[_0x52f6ae['A4']]:{'w':0x31a,'h':0x464},[_0x52f6ae['A5']]:{'w':0x22f,'h':0x31a},[_0x52f6ae['B4']]:{'w':0x3b0,'h':0x540},[_0x52f6ae['B5']]:{'w':0x299,'h':0x3b0},[_0x52f6ae['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x52f6ae['Folio']]:{'w':0x330,'h':0x4e0},[_0x52f6ae['Legal']]:{'w':0x330,'h':0x540},[_0x52f6ae[_0x2d21d2(0x207)]]:{'w':0x330,'h':0x420},[_0x52f6ae[_0x2d21d2(0x215)]]:{'w':0x210,'h':0x330},[_0x52f6ae['Tabloid']]:{'w':0x420,'h':0x660}},_0x1845a9={[_0x2a689e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x2a689e[_0x2d21d2(0x1f2)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x2a689e[_0x2d21d2(0x21e)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x2a689e['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x106118=_0x2d21d2(0x211),_0x273c2b=_0x2d21d2(0x1fe);function _0x14d223(_0x3640b9,_0x47d0c3){const _0x5b9dc9=_0x2d21d2,{w:_0x37cfdb,h:_0x4ed376}=_0x2f15f5[_0x3640b9],_0x272e53=_0x47d0c3===_0x5a7dc0[_0x5b9dc9(0x212)]?_0x37cfdb:_0x4ed376,_0x5d2bc5=_0x47d0c3===_0x5a7dc0['Portrait']?_0x4ed376:_0x37cfdb,_0x54e884='\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'+_0x272e53+_0x5b9dc9(0x20a)+_0x5d2bc5+'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.'+_0x106118+_0x5b9dc9(0x225)+_0x106118+'\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.'+_0x273c2b+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x5d2bc5+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x272e53+_0x5b9dc9(0x1f7),_0x3bb777=document['createElement']('style');return _0x3bb777[_0x5b9dc9(0x209)]=_0x54e884,_0x3bb777[_0x5b9dc9(0x1fc)]=_0x5b9dc9(0x1f5),_0x3bb777;}_0x3eeeb9[_0x2d21d2(0x221)]=_0x273c2b,_0x3eeeb9[_0x2d21d2(0x21d)]=_0x106118,_0x3eeeb9[_0x2d21d2(0x21f)]=_0x1845a9,_0x3eeeb9[_0x2d21d2(0x214)]=_0x2f15f5,_0x3eeeb9['PrintAlign']=_0x32f058,_0x3eeeb9[_0x2d21d2(0x203)]=_0x5a7dc0,_0x3eeeb9[_0x2d21d2(0x222)]=_0x2a689e,_0x3eeeb9[_0x2d21d2(0x204)]=_0x52f6ae,_0x3eeeb9[_0x2d21d2(0x206)]=_0x42571e,_0x3eeeb9[_0x2d21d2(0x21b)]=_0x14d223,Object[_0x2d21d2(0x210)](_0x3eeeb9,Symbol[_0x2d21d2(0x220)],{'value':_0x2d21d2(0x1fb)});}));function _0x2429(){const _0x39409a=['131577uvLXDo','innerHTML','px\x20','FitHeight','Start','Legal','function','Folio','defineProperty','printing-canvas-container','Portrait','amd','PaperSizePxMap','Statement','Landscape','7ABGtKR','5699313tkjhYA','2481690MBDuPo','FitWidth','createPrintStyle','Tabloid','PRINT_CONTAINER_CLASS','Wide','PaperMarginMap','toStringTag','PRINT_CANVAS_CLASS','PrintPaperMargin','Custom','End',',\x20.','Origin','Narrow','6546208tSiiGt','4270734kEHcLS','offline-printing-css','1177670RVqFzP','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','exports','Executive','object','Module','className','655263jDqeAG','printing-canvas','64KMZeBb','Middle','FitPage','UniverProPrint','PrintDirection','PrintPaperSize','None','PrintScale','Letter'];_0x2429=function(){return _0x39409a;};return _0x2429();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.5.0-beta.
|
|
3
|
+
"version": "0.5.0-beta.1",
|
|
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.6.3",
|
|
46
46
|
"vite": "^5.4.11",
|
|
47
47
|
"vitest": "^2.1.5",
|
|
48
|
-
"@univerjs-infra/shared": "0.5.0-beta.
|
|
48
|
+
"@univerjs-infra/shared": "0.5.0-beta.1"
|
|
49
49
|
},
|
|
50
50
|
"space": {
|
|
51
51
|
".": {
|