@univerjs-pro/print 0.5.5 → 0.6.0-experimental.20250125-1d060b9
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 -3
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4ad3e5=_0x17dc;(function(_0x4149e9,_0x58ca3c){const _0x137b32=_0x17dc,_0x304855=_0x4149e9();while(!![]){try{const _0x2453f2=parseInt(_0x137b32(0x17a))/0x1+parseInt(_0x137b32(0x15f))/0x2+-parseInt(_0x137b32(0x15b))/0x3*(-parseInt(_0x137b32(0x169))/0x4)+parseInt(_0x137b32(0x166))/0x5+parseInt(_0x137b32(0x16d))/0x6*(parseInt(_0x137b32(0x15c))/0x7)+parseInt(_0x137b32(0x168))/0x8*(-parseInt(_0x137b32(0x162))/0x9)+parseInt(_0x137b32(0x174))/0xa*(-parseInt(_0x137b32(0x156))/0xb);if(_0x2453f2===_0x58ca3c)break;else _0x304855['push'](_0x304855['shift']());}catch(_0xcb9446){_0x304855['push'](_0x304855['shift']());}}}(_0x19c2,0x386ff));function _0x19c2(){const _0x2bfdba=['150EXvakJ','Narrow','Middle','defineProperty','None','PaperMarginMap','Start','1964930tphGAq','FitPage','End','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.','Folio','Tabloid','265471MHrlNW','PrintPaperMargin','createElement','Origin','Landscape','Legal','PRINT_CONTAINER_CLASS','Executive','Letter','createPrintStyle','PrintDirection','22xdWLGA','FitHeight','printing-canvas','px\x20','printing-canvas-container','3AwOOAi','31479oIsyBw','PRINT_CANVAS_CLASS','Module','406632RqKMLB','Normal','FitWidth','4338sktWxV','Portrait','Wide','\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.','1942420JREegO','Custom','7088LWPuAi','326036OiqjaP',',\x20.','PrintPaperSize','PrintScale'];_0x19c2=function(){return _0x2bfdba;};return _0x19c2();}Object[_0x4ad3e5(0x170)](exports,Symbol['toStringTag'],{'value':_0x4ad3e5(0x15e)});var e=(_0x5bde77=>(_0x5bde77['Letter']=_0x4ad3e5(0x153),_0x5bde77[_0x4ad3e5(0x179)]=_0x4ad3e5(0x179),_0x5bde77[_0x4ad3e5(0x150)]=_0x4ad3e5(0x150),_0x5bde77['Statement']='Statement',_0x5bde77[_0x4ad3e5(0x152)]=_0x4ad3e5(0x152),_0x5bde77[_0x4ad3e5(0x178)]='Folio',_0x5bde77['A3']='A3',_0x5bde77['A4']='A4',_0x5bde77['A5']='A5',_0x5bde77['B4']='B4',_0x5bde77['B5']='B5',_0x5bde77))(e||{}),i=(_0x366eb8=>(_0x366eb8['Portrait']=_0x4ad3e5(0x163),_0x366eb8[_0x4ad3e5(0x14f)]=_0x4ad3e5(0x14f),_0x366eb8))(i||{}),c=(_0x5cd4a5=>(_0x5cd4a5[_0x4ad3e5(0x14e)]=_0x4ad3e5(0x14e),_0x5cd4a5[_0x4ad3e5(0x161)]=_0x4ad3e5(0x161),_0x5cd4a5[_0x4ad3e5(0x157)]=_0x4ad3e5(0x157),_0x5cd4a5['FitPage']=_0x4ad3e5(0x175),_0x5cd4a5[_0x4ad3e5(0x167)]=_0x4ad3e5(0x167),_0x5cd4a5))(c||{}),g=(_0x216796=>(_0x216796[_0x4ad3e5(0x173)]='Start',_0x216796[_0x4ad3e5(0x176)]=_0x4ad3e5(0x176),_0x216796[_0x4ad3e5(0x16f)]='Middle',_0x216796))(g||{}),o=(_0x6aa7f8=>(_0x6aa7f8[_0x4ad3e5(0x160)]='Normal',_0x6aa7f8[_0x4ad3e5(0x16e)]=_0x4ad3e5(0x16e),_0x6aa7f8[_0x4ad3e5(0x164)]='Wide',_0x6aa7f8[_0x4ad3e5(0x171)]=_0x4ad3e5(0x171),_0x6aa7f8))(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[_0x4ad3e5(0x178)]]:{'w':0x330,'h':0x4e0},[e[_0x4ad3e5(0x150)]]:{'w':0x330,'h':0x540},[e[_0x4ad3e5(0x153)]]:{'w':0x330,'h':0x420},[e['Statement']]:{'w':0x210,'h':0x330},[e[_0x4ad3e5(0x179)]]:{'w':0x420,'h':0x660}},N={[o[_0x4ad3e5(0x160)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x4ad3e5(0x16e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x4ad3e5(0x164)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x4ad3e5(0x171)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x4ad3e5(0x15a),p=_0x4ad3e5(0x158);function _0x17dc(_0x51c9cf,_0x9836a){const _0x19c211=_0x19c2();return _0x17dc=function(_0x17dcf5,_0x3e46e0){_0x17dcf5=_0x17dcf5-0x14c;let _0x7f1b80=_0x19c211[_0x17dcf5];return _0x7f1b80;},_0x17dc(_0x51c9cf,_0x9836a);}function A(_0x5d23f1,_0x25e0e3){const _0x451416=_0x4ad3e5,{w:_0x41e889,h:_0x5c6d35}=m[_0x5d23f1],_0x37f386=_0x25e0e3===i['Portrait']?_0x41e889:_0x5c6d35,_0x190099=_0x25e0e3===i[_0x451416(0x163)]?_0x5c6d35:_0x41e889,_0x2e7662='\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'+_0x37f386+_0x451416(0x159)+_0x190099+_0x451416(0x177)+n+_0x451416(0x16a)+n+_0x451416(0x165)+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'+_0x190099+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x37f386+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x38bf9c=document[_0x451416(0x14d)]('style');return _0x38bf9c['innerHTML']=_0x2e7662,_0x38bf9c['className']='offline-printing-css',_0x38bf9c;}exports[_0x4ad3e5(0x15d)]=p,exports[_0x4ad3e5(0x151)]=n,exports[_0x4ad3e5(0x172)]=N,exports['PaperSizePxMap']=m,exports['PrintAlign']=g,exports[_0x4ad3e5(0x155)]=i,exports[_0x4ad3e5(0x14c)]=o,exports[_0x4ad3e5(0x16b)]=e,exports[_0x4ad3e5(0x16c)]=c,exports[_0x4ad3e5(0x154)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x9f164a=_0x2177;(function(_0x270f44,_0x232aea){const _0x1824c9=_0x2177,_0x27091b=_0x270f44();while(!![]){try{const _0x5104c2=parseInt(_0x1824c9(0xd0))/0x1*(-parseInt(_0x1824c9(0xd9))/0x2)+-parseInt(_0x1824c9(0xe2))/0x3*(-parseInt(_0x1824c9(0xd3))/0x4)+parseInt(_0x1824c9(0xdb))/0x5*(parseInt(_0x1824c9(0xcb))/0x6)+parseInt(_0x1824c9(0xc6))/0x7+-parseInt(_0x1824c9(0xcf))/0x8*(-parseInt(_0x1824c9(0xef))/0x9)+-parseInt(_0x1824c9(0xea))/0xa+-parseInt(_0x1824c9(0xcc))/0xb*(parseInt(_0x1824c9(0xe7))/0xc);if(_0x5104c2===_0x232aea)break;else _0x27091b['push'](_0x27091b['shift']());}catch(_0x1b04bb){_0x27091b['push'](_0x27091b['shift']());}}}(_0x52fb,0xa064b));var o=(_0x343151=>(_0x343151[_0x9f164a(0xe3)]=_0x9f164a(0xe3),_0x343151[_0x9f164a(0xdd)]='Tabloid',_0x343151[_0x9f164a(0xe6)]='Legal',_0x343151[_0x9f164a(0xec)]=_0x9f164a(0xec),_0x343151[_0x9f164a(0xf1)]=_0x9f164a(0xf1),_0x343151['Folio']=_0x9f164a(0xc9),_0x343151['A3']='A3',_0x343151['A4']='A4',_0x343151['A5']='A5',_0x343151['B4']='B4',_0x343151['B5']='B5',_0x343151))(o||{}),i=(_0x183320=>(_0x183320['Portrait']=_0x9f164a(0xd1),_0x183320[_0x9f164a(0xd7)]=_0x9f164a(0xd7),_0x183320))(i||{}),w=(_0x497d31=>(_0x497d31[_0x9f164a(0xca)]='Origin',_0x497d31[_0x9f164a(0xe8)]='FitWidth',_0x497d31[_0x9f164a(0xce)]=_0x9f164a(0xce),_0x497d31[_0x9f164a(0xe5)]=_0x9f164a(0xe5),_0x497d31['Custom']=_0x9f164a(0xe1),_0x497d31))(w||{}),m=(_0x1d124c=>(_0x1d124c[_0x9f164a(0xde)]='Start',_0x1d124c[_0x9f164a(0xdf)]=_0x9f164a(0xdf),_0x1d124c[_0x9f164a(0xd5)]=_0x9f164a(0xd5),_0x1d124c))(m||{}),e=(_0x4415cb=>(_0x4415cb[_0x9f164a(0xd6)]='Normal',_0x4415cb[_0x9f164a(0xdc)]=_0x9f164a(0xdc),_0x4415cb[_0x9f164a(0xcd)]=_0x9f164a(0xcd),_0x4415cb[_0x9f164a(0xe4)]=_0x9f164a(0xe4),_0x4415cb))(e||{});function _0x2177(_0x53342b,_0x50ff7f){const _0x52fb07=_0x52fb();return _0x2177=function(_0x2177a1,_0x38e7c7){_0x2177a1=_0x2177a1-0xc6;let _0x2157ef=_0x52fb07[_0x2177a1];return _0x2157ef;},_0x2177(_0x53342b,_0x50ff7f);}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[_0x9f164a(0xf1)]]:{'w':0x2b8,'h':0x3f0},[o[_0x9f164a(0xc9)]]:{'w':0x330,'h':0x4e0},[o[_0x9f164a(0xe6)]]:{'w':0x330,'h':0x540},[o[_0x9f164a(0xe3)]]:{'w':0x330,'h':0x420},[o[_0x9f164a(0xec)]]:{'w':0x210,'h':0x330},[o[_0x9f164a(0xdd)]]:{'w':0x420,'h':0x660}},v={[e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x9f164a(0xdc)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x9f164a(0xcd)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x9f164a(0xe4)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p=_0x9f164a(0xd2);function N(_0x288934,_0x41cf7e){const _0x424e55=_0x9f164a,{w:_0x4ec596,h:_0x4086b2}=g[_0x288934],_0x5bb4bc=_0x41cf7e===i[_0x424e55(0xd1)]?_0x4ec596:_0x4086b2,_0x31e7f1=_0x41cf7e===i['Portrait']?_0x4086b2:_0x4ec596,_0xd5abcb='\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'+_0x5bb4bc+_0x424e55(0xd4)+_0x31e7f1+_0x424e55(0xed)+l+_0x424e55(0xd8)+l+_0x424e55(0xf0)+p+_0x424e55(0xe9)+_0x31e7f1+_0x424e55(0xe0)+_0x5bb4bc+_0x424e55(0xee),_0x1cb6e2=document[_0x424e55(0xeb)]('style');return _0x1cb6e2[_0x424e55(0xda)]=_0xd5abcb,_0x1cb6e2[_0x424e55(0xc8)]=_0x424e55(0xc7),_0x1cb6e2;}function _0x52fb(){const _0x1e37fc=['7787577AuLLCp','offline-printing-css','className','Folio','Origin','18UiqCnh','1816573ncEDGp','Wide','FitHeight','144HjluSA','1042upicbj','Portrait','printing-canvas','3855732FrswSt','px\x20','Middle','Normal','Landscape',',\x20.','14IpfjNs','innerHTML','325895BDfWAo','Narrow','Tabloid','Start','End','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Custom','3rdaNrQ','Letter','None','FitPage','Legal','84uNSoie','FitWidth','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','13119170pJAgWG','createElement','Statement','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\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','430101KszpgV','\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'];_0x52fb=function(){return _0x1e37fc;};return _0x52fb();}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 _0x3b39(_0x57dbf5,_0x56ed2e){const _0x42759c=_0x4275();return _0x3b39=function(_0x3b395e,_0x5cdef5){_0x3b395e=_0x3b395e-0xae;let _0x4432f5=_0x42759c[_0x3b395e];return _0x4432f5;},_0x3b39(_0x57dbf5,_0x56ed2e);}(function(_0x599c7d,_0x519d1c){const _0x9bf02=_0x3b39,_0x49a110=_0x599c7d();while(!![]){try{const _0x24bd7a=-parseInt(_0x9bf02(0xc6))/0x1+-parseInt(_0x9bf02(0xd2))/0x2+-parseInt(_0x9bf02(0xd6))/0x3+-parseInt(_0x9bf02(0xb0))/0x4+-parseInt(_0x9bf02(0xcd))/0x5*(-parseInt(_0x9bf02(0xaf))/0x6)+parseInt(_0x9bf02(0xd0))/0x7*(-parseInt(_0x9bf02(0xb4))/0x8)+-parseInt(_0x9bf02(0xc0))/0x9*(-parseInt(_0x9bf02(0xd9))/0xa);if(_0x24bd7a===_0x519d1c)break;else _0x49a110['push'](_0x49a110['shift']());}catch(_0x415d7b){_0x49a110['push'](_0x49a110['shift']());}}}(_0x4275,0xd9ea7),function(_0x9752a7,_0x4be3f8){const _0x267f62=_0x3b39;typeof exports=='object'&&typeof module<'u'?_0x4be3f8(exports):typeof define=='function'&&define['amd']?define([_0x267f62(0xc9)],_0x4be3f8):(_0x9752a7=typeof globalThis<'u'?globalThis:_0x9752a7||self,_0x4be3f8(_0x9752a7[_0x267f62(0xd3)]={}));}(this,function(_0x4bd035){'use strict';const _0x107aa4=_0x3b39;var _0xcfba57=(_0x2e8c3f=>(_0x2e8c3f[_0x107aa4(0xbd)]=_0x107aa4(0xbd),_0x2e8c3f[_0x107aa4(0xd5)]='Tabloid',_0x2e8c3f[_0x107aa4(0xb3)]=_0x107aa4(0xb3),_0x2e8c3f[_0x107aa4(0xba)]=_0x107aa4(0xba),_0x2e8c3f['Executive']=_0x107aa4(0xd4),_0x2e8c3f['Folio']=_0x107aa4(0xb6),_0x2e8c3f['A3']='A3',_0x2e8c3f['A4']='A4',_0x2e8c3f['A5']='A5',_0x2e8c3f['B4']='B4',_0x2e8c3f['B5']='B5',_0x2e8c3f))(_0xcfba57||{}),_0x224f51=(_0x247196=>(_0x247196['Portrait']='Portrait',_0x247196['Landscape']='Landscape',_0x247196))(_0x224f51||{}),_0x37dfa6=(_0x22cff8=>(_0x22cff8['Origin']='Origin',_0x22cff8['FitWidth']='FitWidth',_0x22cff8[_0x107aa4(0xb9)]=_0x107aa4(0xb9),_0x22cff8[_0x107aa4(0xc8)]=_0x107aa4(0xc8),_0x22cff8[_0x107aa4(0xbc)]=_0x107aa4(0xbc),_0x22cff8))(_0x37dfa6||{}),_0xce3280=(_0x3703d0=>(_0x3703d0[_0x107aa4(0xcb)]=_0x107aa4(0xcb),_0x3703d0['End']=_0x107aa4(0xbb),_0x3703d0['Middle']=_0x107aa4(0xc2),_0x3703d0))(_0xce3280||{}),_0x1745c9=(_0xba4227=>(_0xba4227[_0x107aa4(0xc3)]=_0x107aa4(0xc3),_0xba4227[_0x107aa4(0xc1)]='Narrow',_0xba4227[_0x107aa4(0xc7)]=_0x107aa4(0xc7),_0xba4227[_0x107aa4(0xc4)]=_0x107aa4(0xc4),_0xba4227))(_0x1745c9||{});const _0x56f5c9={[_0xcfba57['A3']]:{'w':0x463,'h':0x633},[_0xcfba57['A4']]:{'w':0x31a,'h':0x464},[_0xcfba57['A5']]:{'w':0x22f,'h':0x31a},[_0xcfba57['B4']]:{'w':0x3b0,'h':0x540},[_0xcfba57['B5']]:{'w':0x299,'h':0x3b0},[_0xcfba57[_0x107aa4(0xd4)]]:{'w':0x2b8,'h':0x3f0},[_0xcfba57[_0x107aa4(0xb6)]]:{'w':0x330,'h':0x4e0},[_0xcfba57[_0x107aa4(0xb3)]]:{'w':0x330,'h':0x540},[_0xcfba57[_0x107aa4(0xbd)]]:{'w':0x330,'h':0x420},[_0xcfba57[_0x107aa4(0xba)]]:{'w':0x210,'h':0x330},[_0xcfba57['Tabloid']]:{'w':0x420,'h':0x660}},_0x4032c8={[_0x1745c9[_0x107aa4(0xc3)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x1745c9[_0x107aa4(0xc1)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x1745c9['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x1745c9['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x327957=_0x107aa4(0xce),_0x2b0271=_0x107aa4(0xdb);function _0x5bd37c(_0x2fe086,_0x5d37bd){const _0x40f9be=_0x107aa4,{w:_0x187c61,h:_0xb71500}=_0x56f5c9[_0x2fe086],_0x97e07d=_0x5d37bd===_0x224f51[_0x40f9be(0xbe)]?_0x187c61:_0xb71500,_0x12b422=_0x5d37bd===_0x224f51[_0x40f9be(0xbe)]?_0xb71500:_0x187c61,_0x171ffb='\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'+_0x97e07d+_0x40f9be(0xb2)+_0x12b422+'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.'+_0x327957+_0x40f9be(0xcf)+_0x327957+_0x40f9be(0xda)+_0x2b0271+_0x40f9be(0xd7)+_0x12b422+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x97e07d+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x35c0bc=document[_0x40f9be(0xd8)](_0x40f9be(0xc5));return _0x35c0bc['innerHTML']=_0x171ffb,_0x35c0bc[_0x40f9be(0xd1)]='offline-printing-css',_0x35c0bc;}_0x4bd035['PRINT_CANVAS_CLASS']=_0x2b0271,_0x4bd035[_0x107aa4(0xca)]=_0x327957,_0x4bd035[_0x107aa4(0xae)]=_0x4032c8,_0x4bd035[_0x107aa4(0xbf)]=_0x56f5c9,_0x4bd035[_0x107aa4(0xcc)]=_0xce3280,_0x4bd035[_0x107aa4(0xb7)]=_0x224f51,_0x4bd035[_0x107aa4(0xb1)]=_0x1745c9,_0x4bd035['PrintPaperSize']=_0xcfba57,_0x4bd035['PrintScale']=_0x37dfa6,_0x4bd035['createPrintStyle']=_0x5bd37c,Object[_0x107aa4(0xb5)](_0x4bd035,Symbol['toStringTag'],{'value':_0x107aa4(0xb8)});}));function _0x4275(){const _0x3b3b6e=['7mKjnVa','className','2516954ijBfjg','UniverProPrint','Executive','Tabloid','1410867IvyABh','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','createElement','630QQpyvT','\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','PaperMarginMap','30HZctnX','3093664zsgKCo','PrintPaperMargin','px\x20','Legal','5634416mPSRNO','defineProperty','Folio','PrintDirection','Module','FitHeight','Statement','End','Custom','Letter','Portrait','PaperSizePxMap','466605ayaCHa','Narrow','Middle','Normal','None','style','427138PbGcGQ','Wide','FitPage','exports','PRINT_CONTAINER_CLASS','Start','PrintAlign','1259970UOgSNH','printing-canvas-container',',\x20.'];_0x4275=function(){return _0x3b3b6e;};return _0x4275();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0-experimental.20250125-1d060b9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"typescript": "^5.7.
|
|
45
|
+
"typescript": "^5.7.3",
|
|
46
46
|
"vite": "^6.0.7",
|
|
47
47
|
"vitest": "^2.1.8",
|
|
48
|
-
"@univerjs-infra/shared": "0.
|
|
48
|
+
"@univerjs-infra/shared": "0.6.0-alpha.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|