@univerjs-pro/print 0.5.2 → 0.5.3-experimental.20250106-e3b7a39
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 -16
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x513b5b=_0x8776;(function(_0x48d984,_0x5de6d6){const _0x58c2bd=_0x8776,_0xf4ad55=_0x48d984();while(!![]){try{const _0x1d39c7=parseInt(_0x58c2bd(0x96))/0x1*(-parseInt(_0x58c2bd(0x8a))/0x2)+-parseInt(_0x58c2bd(0x86))/0x3*(parseInt(_0x58c2bd(0x9c))/0x4)+parseInt(_0x58c2bd(0x97))/0x5+parseInt(_0x58c2bd(0x7e))/0x6+parseInt(_0x58c2bd(0x98))/0x7+-parseInt(_0x58c2bd(0x80))/0x8+parseInt(_0x58c2bd(0x88))/0x9;if(_0x1d39c7===_0x5de6d6)break;else _0xf4ad55['push'](_0xf4ad55['shift']());}catch(_0x31930f){_0xf4ad55['push'](_0xf4ad55['shift']());}}}(_0xabc8,0x5a82b));Object[_0x513b5b(0x95)](exports,Symbol['toStringTag'],{'value':_0x513b5b(0x76)});var e=(_0x205bb2=>(_0x205bb2[_0x513b5b(0x8f)]=_0x513b5b(0x8f),_0x205bb2[_0x513b5b(0x75)]='Tabloid',_0x205bb2[_0x513b5b(0x79)]='Legal',_0x205bb2[_0x513b5b(0x7d)]='Statement',_0x205bb2[_0x513b5b(0x7b)]=_0x513b5b(0x7b),_0x205bb2['Folio']='Folio',_0x205bb2['A3']='A3',_0x205bb2['A4']='A4',_0x205bb2['A5']='A5',_0x205bb2['B4']='B4',_0x205bb2['B5']='B5',_0x205bb2))(e||{}),i=(_0x1425b3=>(_0x1425b3[_0x513b5b(0x7c)]='Portrait',_0x1425b3[_0x513b5b(0x84)]=_0x513b5b(0x84),_0x1425b3))(i||{}),c=(_0x1a4766=>(_0x1a4766['Origin']=_0x513b5b(0x90),_0x1a4766[_0x513b5b(0x8d)]='FitWidth',_0x1a4766[_0x513b5b(0x9d)]=_0x513b5b(0x9d),_0x1a4766['FitPage']=_0x513b5b(0x9a),_0x1a4766[_0x513b5b(0x9b)]=_0x513b5b(0x9b),_0x1a4766))(c||{}),g=(_0x35c853=>(_0x35c853[_0x513b5b(0x94)]=_0x513b5b(0x94),_0x35c853[_0x513b5b(0x83)]=_0x513b5b(0x83),_0x35c853[_0x513b5b(0x89)]=_0x513b5b(0x89),_0x35c853))(g||{}),o=(_0x46bf13=>(_0x46bf13['Normal']='Normal',_0x46bf13[_0x513b5b(0x93)]=_0x513b5b(0x93),_0x46bf13[_0x513b5b(0x91)]=_0x513b5b(0x91),_0x46bf13[_0x513b5b(0x92)]='None',_0x46bf13))(o||{});function _0xabc8(){const _0x37d789=['Legal','offline-printing-css','Executive','Portrait','Statement','2220744MCMNet','PrintPaperSize','3591800XnWpyv','\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','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','End','Landscape','PrintDirection','18FZDPDs','style','3061899dVgVDU','Middle','611218mKPVVs','px\x20','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','FitWidth','Normal','Letter','Origin','Wide','None','Narrow','Start','defineProperty','1KVcRID','2725455QXjgSX','248549bWamoe','printing-canvas-container','FitPage','Custom','110412cuwdzw','FitHeight','createPrintStyle','PrintPaperMargin','Folio','PaperSizePxMap','Tabloid','Module','PRINT_CANVAS_CLASS','\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.'];_0xabc8=function(){return _0x37d789;};return _0xabc8();}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[_0x513b5b(0x73)]]:{'w':0x330,'h':0x4e0},[e[_0x513b5b(0x79)]]:{'w':0x330,'h':0x540},[e['Letter']]:{'w':0x330,'h':0x420},[e[_0x513b5b(0x7d)]]:{'w':0x210,'h':0x330},[e['Tabloid']]:{'w':0x420,'h':0x660}},N={[o[_0x513b5b(0x8e)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x513b5b(0x93)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x513b5b(0x99),p='printing-canvas';function A(_0x4e2a0f,_0x44a9d8){const _0xf647c2=_0x513b5b,{w:_0x3bfd8f,h:_0x3cdad0}=m[_0x4e2a0f],_0x5ac3f6=_0x44a9d8===i[_0xf647c2(0x7c)]?_0x3bfd8f:_0x3cdad0,_0x4e86db=_0x44a9d8===i[_0xf647c2(0x7c)]?_0x3cdad0:_0x3bfd8f,_0xa6024c=_0xf647c2(0x81)+_0x5ac3f6+_0xf647c2(0x8b)+_0x4e86db+'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+',\x20.'+n+_0xf647c2(0x78)+p+_0xf647c2(0x8c)+_0x4e86db+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5ac3f6+_0xf647c2(0x82),_0x5e8ce1=document['createElement'](_0xf647c2(0x87));return _0x5e8ce1['innerHTML']=_0xa6024c,_0x5e8ce1['className']=_0xf647c2(0x7a),_0x5e8ce1;}function _0x8776(_0x2989ca,_0x449689){const _0xabc82e=_0xabc8();return _0x8776=function(_0x8776da,_0x460011){_0x8776da=_0x8776da-0x71;let _0x37a980=_0xabc82e[_0x8776da];return _0x37a980;},_0x8776(_0x2989ca,_0x449689);}exports[_0x513b5b(0x77)]=p,exports['PRINT_CONTAINER_CLASS']=n,exports['PaperMarginMap']=N,exports[_0x513b5b(0x74)]=m,exports['PrintAlign']=g,exports[_0x513b5b(0x85)]=i,exports[_0x513b5b(0x72)]=o,exports[_0x513b5b(0x7f)]=e,exports['PrintScale']=c,exports[_0x513b5b(0x71)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x32d0(){const _0x25e088=['Wide','2512aGmYAI','4sKuCEA','Folio',',\x20.','Executive','Origin','FitWidth','FitHeight','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','printing-canvas-container','Normal','8827IGwCOG','End','Start','Legal','705528ASXWrd','printing-canvas','Statement','className','Middle','Portrait','14069270FnmeHX','\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.','None','Letter','Landscape','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','createElement','FitPage','927393QxirQb','Narrow','px\x20','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','389334IsjZrl','offline-printing-css','414512EubuqG','6255873FvjHLU','10axjFrO','Tabloid'];_0x32d0=function(){return _0x25e088;};return _0x32d0();}const _0x2987b2=_0x1aef;(function(_0xe018d9,_0x5bf46){const _0x52684e=_0x1aef,_0x56a059=_0xe018d9();while(!![]){try{const _0x3f5c27=-parseInt(_0x52684e(0x141))/0x1+parseInt(_0x52684e(0x143))/0x2+parseInt(_0x52684e(0x13d))/0x3*(-parseInt(_0x52684e(0x149))/0x4)+parseInt(_0x52684e(0x145))/0x5*(-parseInt(_0x52684e(0x157))/0x6)+-parseInt(_0x52684e(0x153))/0x7*(-parseInt(_0x52684e(0x148))/0x8)+-parseInt(_0x52684e(0x144))/0x9+parseInt(_0x52684e(0x135))/0xa;if(_0x3f5c27===_0x5bf46)break;else _0x56a059['push'](_0x56a059['shift']());}catch(_0x62d3f1){_0x56a059['push'](_0x56a059['shift']());}}}(_0x32d0,0x5d1d7));var o=(_0x48f8f4=>(_0x48f8f4[_0x2987b2(0x138)]=_0x2987b2(0x138),_0x48f8f4['Tabloid']=_0x2987b2(0x146),_0x48f8f4[_0x2987b2(0x156)]=_0x2987b2(0x156),_0x48f8f4[_0x2987b2(0x159)]='Statement',_0x48f8f4[_0x2987b2(0x14c)]=_0x2987b2(0x14c),_0x48f8f4[_0x2987b2(0x14a)]=_0x2987b2(0x14a),_0x48f8f4['A3']='A3',_0x48f8f4['A4']='A4',_0x48f8f4['A5']='A5',_0x48f8f4['B4']='B4',_0x48f8f4['B5']='B5',_0x48f8f4))(o||{}),i=(_0x313c59=>(_0x313c59[_0x2987b2(0x134)]=_0x2987b2(0x134),_0x313c59[_0x2987b2(0x139)]=_0x2987b2(0x139),_0x313c59))(i||{}),w=(_0x2abbb3=>(_0x2abbb3[_0x2987b2(0x14d)]=_0x2987b2(0x14d),_0x2abbb3[_0x2987b2(0x14e)]='FitWidth',_0x2abbb3[_0x2987b2(0x14f)]='FitHeight',_0x2abbb3[_0x2987b2(0x13c)]=_0x2987b2(0x13c),_0x2abbb3['Custom']='Custom',_0x2abbb3))(w||{}),m=(_0x559fa3=>(_0x559fa3[_0x2987b2(0x155)]=_0x2987b2(0x155),_0x559fa3['End']=_0x2987b2(0x154),_0x559fa3[_0x2987b2(0x15b)]=_0x2987b2(0x15b),_0x559fa3))(m||{}),e=(_0x2b8cce=>(_0x2b8cce[_0x2987b2(0x152)]=_0x2987b2(0x152),_0x2b8cce[_0x2987b2(0x13e)]=_0x2987b2(0x13e),_0x2b8cce[_0x2987b2(0x147)]=_0x2987b2(0x147),_0x2b8cce['None']=_0x2987b2(0x137),_0x2b8cce))(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[_0x2987b2(0x14c)]]:{'w':0x2b8,'h':0x3f0},[o['Folio']]:{'w':0x330,'h':0x4e0},[o['Legal']]:{'w':0x330,'h':0x540},[o[_0x2987b2(0x138)]]:{'w':0x330,'h':0x420},[o[_0x2987b2(0x159)]]:{'w':0x210,'h':0x330},[o[_0x2987b2(0x146)]]:{'w':0x420,'h':0x660}},v={[e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x2987b2(0x13e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x2987b2(0x137)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x2987b2(0x151),p=_0x2987b2(0x158);function _0x1aef(_0x94884f,_0x4dc0fc){const _0x32d083=_0x32d0();return _0x1aef=function(_0x1aef9e,_0x1a4e1f){_0x1aef9e=_0x1aef9e-0x134;let _0x1fb123=_0x32d083[_0x1aef9e];return _0x1fb123;},_0x1aef(_0x94884f,_0x4dc0fc);}function N(_0x547c05,_0x1b20e3){const _0xaf2fc1=_0x2987b2,{w:_0x3e5e4d,h:_0xc73b56}=g[_0x547c05],_0x258d1f=_0x1b20e3===i['Portrait']?_0x3e5e4d:_0xc73b56,_0x51ea18=_0x1b20e3===i['Portrait']?_0xc73b56:_0x3e5e4d,_0x1ce70b='\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'+_0x258d1f+_0xaf2fc1(0x13f)+_0x51ea18+'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+_0xaf2fc1(0x14b)+l+_0xaf2fc1(0x136)+p+_0xaf2fc1(0x140)+_0x51ea18+_0xaf2fc1(0x13a)+_0x258d1f+_0xaf2fc1(0x150),_0x25ded6=document[_0xaf2fc1(0x13b)]('style');return _0x25ded6['innerHTML']=_0x1ce70b,_0x25ded6[_0xaf2fc1(0x15a)]=_0xaf2fc1(0x142),_0x25ded6;}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 _0x45e3(_0xe43e53,_0x35f5ef){const _0x5cdff9=_0x5cdf();return _0x45e3=function(_0x45e3b7,_0x5ea05f){_0x45e3b7=_0x45e3b7-0x19d;let _0x204b36=_0x5cdff9[_0x45e3b7];return _0x204b36;},_0x45e3(_0xe43e53,_0x35f5ef);}function _0x5cdf(){const _0x4c8124=['Landscape','935668KpmuqG','px\x20',',\x20.','object','createPrintStyle','25lnLUnB','PrintPaperSize','\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.','11263758INGKWM','3ClwcaL','718634VjQCQV','amd','5219440Eybunz','offline-printing-css','Wide','Normal','End','Statement','11808oojpJn','PrintScale','UniverProPrint','3977784drEkDm','PRINT_CANVAS_CLASS','9nucwXG','Executive','PrintAlign','30BmcTnm','Custom','createElement','Start','Module','defineProperty','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','None','printing-canvas-container','Folio','Middle','Legal','style','Portrait','innerHTML','toStringTag','className','printing-canvas','258071Dwpifb','Tabloid','PrintDirection','FitHeight','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','exports','Letter','FitWidth','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Origin','PaperMarginMap'];_0x5cdf=function(){return _0x4c8124;};return _0x5cdf();}(function(_0x145835,_0x3f831f){const _0x1ab688=_0x45e3,_0x3c20c5=_0x145835();while(!![]){try{const _0x21f72b=parseInt(_0x1ab688(0x1c5))/0x1+-parseInt(_0x1ab688(0x1d1))/0x2*(parseInt(_0x1ab688(0x1a2))/0x3)+-parseInt(_0x1ab688(0x1ab))/0x4*(parseInt(_0x1ab688(0x19e))/0x5)+parseInt(_0x1ab688(0x1b3))/0x6*(-parseInt(_0x1ab688(0x1a3))/0x7)+parseInt(_0x1ab688(0x1ae))/0x8+parseInt(_0x1ab688(0x1b0))/0x9*(-parseInt(_0x1ab688(0x1a5))/0xa)+parseInt(_0x1ab688(0x1a1))/0xb;if(_0x21f72b===_0x3f831f)break;else _0x3c20c5['push'](_0x3c20c5['shift']());}catch(_0x18cee0){_0x3c20c5['push'](_0x3c20c5['shift']());}}}(_0x5cdf,0x3fd30),function(_0x5b719e,_0x75b6ca){const _0x88175e=_0x45e3;typeof exports==_0x88175e(0x1d4)&&typeof module<'u'?_0x75b6ca(exports):typeof define=='function'&&define[_0x88175e(0x1a4)]?define([_0x88175e(0x1ca)],_0x75b6ca):(_0x5b719e=typeof globalThis<'u'?globalThis:_0x5b719e||self,_0x75b6ca(_0x5b719e[_0x88175e(0x1ad)]={}));}(this,function(_0x2619d2){'use strict';const _0x4b93da=_0x45e3;var _0x364bc9=(_0x357b2e=>(_0x357b2e[_0x4b93da(0x1cb)]=_0x4b93da(0x1cb),_0x357b2e[_0x4b93da(0x1c6)]=_0x4b93da(0x1c6),_0x357b2e[_0x4b93da(0x1be)]=_0x4b93da(0x1be),_0x357b2e['Statement']=_0x4b93da(0x1aa),_0x357b2e[_0x4b93da(0x1b1)]=_0x4b93da(0x1b1),_0x357b2e['Folio']=_0x4b93da(0x1bc),_0x357b2e['A3']='A3',_0x357b2e['A4']='A4',_0x357b2e['A5']='A5',_0x357b2e['B4']='B4',_0x357b2e['B5']='B5',_0x357b2e))(_0x364bc9||{}),_0x2ac679=(_0x25abf9=>(_0x25abf9[_0x4b93da(0x1c0)]='Portrait',_0x25abf9[_0x4b93da(0x1d0)]=_0x4b93da(0x1d0),_0x25abf9))(_0x2ac679||{}),_0x41f6ce=(_0x45e2d8=>(_0x45e2d8[_0x4b93da(0x1ce)]=_0x4b93da(0x1ce),_0x45e2d8[_0x4b93da(0x1cc)]='FitWidth',_0x45e2d8[_0x4b93da(0x1c8)]=_0x4b93da(0x1c8),_0x45e2d8['FitPage']='FitPage',_0x45e2d8[_0x4b93da(0x1b4)]=_0x4b93da(0x1b4),_0x45e2d8))(_0x41f6ce||{}),_0x1f4a49=(_0x5ee3a6=>(_0x5ee3a6[_0x4b93da(0x1b6)]=_0x4b93da(0x1b6),_0x5ee3a6['End']=_0x4b93da(0x1a9),_0x5ee3a6[_0x4b93da(0x1bd)]=_0x4b93da(0x1bd),_0x5ee3a6))(_0x1f4a49||{}),_0x46dfea=(_0x1baa2c=>(_0x1baa2c[_0x4b93da(0x1a8)]='Normal',_0x1baa2c['Narrow']='Narrow',_0x1baa2c[_0x4b93da(0x1a7)]=_0x4b93da(0x1a7),_0x1baa2c[_0x4b93da(0x1ba)]=_0x4b93da(0x1ba),_0x1baa2c))(_0x46dfea||{});const _0x32edf7={[_0x364bc9['A3']]:{'w':0x463,'h':0x633},[_0x364bc9['A4']]:{'w':0x31a,'h':0x464},[_0x364bc9['A5']]:{'w':0x22f,'h':0x31a},[_0x364bc9['B4']]:{'w':0x3b0,'h':0x540},[_0x364bc9['B5']]:{'w':0x299,'h':0x3b0},[_0x364bc9[_0x4b93da(0x1b1)]]:{'w':0x2b8,'h':0x3f0},[_0x364bc9[_0x4b93da(0x1bc)]]:{'w':0x330,'h':0x4e0},[_0x364bc9[_0x4b93da(0x1be)]]:{'w':0x330,'h':0x540},[_0x364bc9[_0x4b93da(0x1cb)]]:{'w':0x330,'h':0x420},[_0x364bc9[_0x4b93da(0x1aa)]]:{'w':0x210,'h':0x330},[_0x364bc9[_0x4b93da(0x1c6)]]:{'w':0x420,'h':0x660}},_0x8e2446={[_0x46dfea['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x46dfea['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x46dfea['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x46dfea[_0x4b93da(0x1ba)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x428c23=_0x4b93da(0x1bb),_0x5a61ed=_0x4b93da(0x1c4);function _0x3d9784(_0x71f95c,_0xeae5b1){const _0x5f341c=_0x4b93da,{w:_0x14f971,h:_0x11a688}=_0x32edf7[_0x71f95c],_0x533cef=_0xeae5b1===_0x2ac679[_0x5f341c(0x1c0)]?_0x14f971:_0x11a688,_0x481054=_0xeae5b1===_0x2ac679[_0x5f341c(0x1c0)]?_0x11a688:_0x14f971,_0x262d77='\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'+_0x533cef+_0x5f341c(0x1d2)+_0x481054+'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.'+_0x428c23+_0x5f341c(0x1d3)+_0x428c23+_0x5f341c(0x1a0)+_0x5a61ed+_0x5f341c(0x1b9)+_0x481054+_0x5f341c(0x1c9)+_0x533cef+_0x5f341c(0x1cd),_0x5082ca=document[_0x5f341c(0x1b5)](_0x5f341c(0x1bf));return _0x5082ca[_0x5f341c(0x1c1)]=_0x262d77,_0x5082ca[_0x5f341c(0x1c3)]=_0x5f341c(0x1a6),_0x5082ca;}_0x2619d2[_0x4b93da(0x1af)]=_0x5a61ed,_0x2619d2['PRINT_CONTAINER_CLASS']=_0x428c23,_0x2619d2[_0x4b93da(0x1cf)]=_0x8e2446,_0x2619d2['PaperSizePxMap']=_0x32edf7,_0x2619d2[_0x4b93da(0x1b2)]=_0x1f4a49,_0x2619d2[_0x4b93da(0x1c7)]=_0x2ac679,_0x2619d2['PrintPaperMargin']=_0x46dfea,_0x2619d2[_0x4b93da(0x19f)]=_0x364bc9,_0x2619d2[_0x4b93da(0x1ac)]=_0x41f6ce,_0x2619d2[_0x4b93da(0x19d)]=_0x3d9784,Object[_0x4b93da(0x1b8)](_0x2619d2,Symbol[_0x4b93da(0x1c2)],{'value':_0x4b93da(0x1b7)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3-experimental.20250106-e3b7a39",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -43,22 +43,9 @@
|
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^5.7.2",
|
|
46
|
-
"vite": "^6.0.
|
|
46
|
+
"vite": "^6.0.6",
|
|
47
47
|
"vitest": "^2.1.8",
|
|
48
|
-
"@univerjs-infra/shared": "0.5.
|
|
49
|
-
},
|
|
50
|
-
"space": {
|
|
51
|
-
".": {
|
|
52
|
-
"import": "./lib/es/index.js",
|
|
53
|
-
"require": "./lib/cjs/index.js",
|
|
54
|
-
"types": "./lib/types/index.d.ts"
|
|
55
|
-
},
|
|
56
|
-
"./*": {
|
|
57
|
-
"import": "./lib/es/*",
|
|
58
|
-
"require": "./lib/cjs/*",
|
|
59
|
-
"types": "./lib/types/index.d.ts"
|
|
60
|
-
},
|
|
61
|
-
"./lib/*": "./lib/*"
|
|
48
|
+
"@univerjs-infra/shared": "0.5.3"
|
|
62
49
|
},
|
|
63
50
|
"scripts": {
|
|
64
51
|
"test": "vitest run",
|