@univerjs-pro/print 0.6.5 → 0.6.6-experimental.20250317-28d180b
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 _0x3235e7=_0x1a1f;function _0x10cf(){const _0x4a11eb=['createElement','Narrow','704720ePmBdP','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\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.','Module','End','14708120yruPtj','Normal','Portrait','PrintDirection','Letter','Folio','PaperSizePxMap','Wide','PaperMarginMap','4402725aZUSDW','className','px\x20','PrintAlign','Legal','PrintPaperMargin','648833UZcGYk','4659130QQDBoZ','PrintPaperSize','Tabloid','createPrintStyle',',\x20.','1840550JDugGe','Start','4511052avezcB','Middle','FitHeight','PrintScale','60USxaJm','Executive','PRINT_CONTAINER_CLASS','style','PRINT_CANVAS_CLASS','Origin','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','printing-canvas-container','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','Custom','Landscape','None','defineProperty'];_0x10cf=function(){return _0x4a11eb;};return _0x10cf();}(function(_0x479289,_0x31e86c){const _0x120ae7=_0x1a1f,_0x55e911=_0x479289();while(!![]){try{const _0x1817d0=-parseInt(_0x120ae7(0xef))/0x1+parseInt(_0x120ae7(0xf5))/0x2+parseInt(_0x120ae7(0x11a))/0x3+-parseInt(_0x120ae7(0xf7))/0x4+-parseInt(_0x120ae7(0x10c))/0x5*(-parseInt(_0x120ae7(0xfb))/0x6)+parseInt(_0x120ae7(0xf0))/0x7+-parseInt(_0x120ae7(0x111))/0x8;if(_0x1817d0===_0x31e86c)break;else _0x55e911['push'](_0x55e911['shift']());}catch(_0x566cf0){_0x55e911['push'](_0x55e911['shift']());}}}(_0x10cf,0xcef99));Object[_0x3235e7(0x109)](exports,Symbol['toStringTag'],{'value':_0x3235e7(0x10f)});var e=(_0x35cf62=>(_0x35cf62['Letter']=_0x3235e7(0x115),_0x35cf62[_0x3235e7(0xf2)]=_0x3235e7(0xf2),_0x35cf62[_0x3235e7(0x11e)]='Legal',_0x35cf62['Statement']='Statement',_0x35cf62[_0x3235e7(0xfc)]=_0x3235e7(0xfc),_0x35cf62[_0x3235e7(0x116)]=_0x3235e7(0x116),_0x35cf62['A3']='A3',_0x35cf62['A4']='A4',_0x35cf62['A5']='A5',_0x35cf62['B4']='B4',_0x35cf62['B5']='B5',_0x35cf62))(e||{}),i=(_0x4cc399=>(_0x4cc399[_0x3235e7(0x113)]=_0x3235e7(0x113),_0x4cc399[_0x3235e7(0x107)]='Landscape',_0x4cc399))(i||{}),c=(_0x24e4dd=>(_0x24e4dd[_0x3235e7(0x100)]='Origin',_0x24e4dd[_0x3235e7(0x103)]=_0x3235e7(0x103),_0x24e4dd[_0x3235e7(0xf9)]=_0x3235e7(0xf9),_0x24e4dd['FitPage']='FitPage',_0x24e4dd['Custom']=_0x3235e7(0x106),_0x24e4dd))(c||{}),g=(_0x3ed8e7=>(_0x3ed8e7['Start']=_0x3235e7(0xf6),_0x3ed8e7[_0x3235e7(0x110)]=_0x3235e7(0x110),_0x3ed8e7[_0x3235e7(0xf8)]=_0x3235e7(0xf8),_0x3ed8e7))(g||{}),o=(_0x339f30=>(_0x339f30[_0x3235e7(0x112)]=_0x3235e7(0x112),_0x339f30[_0x3235e7(0x10b)]=_0x3235e7(0x10b),_0x339f30[_0x3235e7(0x118)]=_0x3235e7(0x118),_0x339f30[_0x3235e7(0x108)]=_0x3235e7(0x108),_0x339f30))(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[_0x3235e7(0xfc)]]:{'w':0x2b8,'h':0x3f0},[e[_0x3235e7(0x116)]]:{'w':0x330,'h':0x4e0},[e[_0x3235e7(0x11e)]]:{'w':0x330,'h':0x540},[e[_0x3235e7(0x115)]]:{'w':0x330,'h':0x420},[e['Statement']]:{'w':0x210,'h':0x330},[e[_0x3235e7(0xf2)]]:{'w':0x420,'h':0x660}},N={[o[_0x3235e7(0x112)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x3235e7(0x10b)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x3235e7(0x118)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x3235e7(0x108)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x3235e7(0x102),p=_0x3235e7(0x105);function A(_0x2fa67d,_0x58822d){const _0x1c2795=_0x3235e7,{w:_0xe4df9f,h:_0x5cf0a9}=m[_0x2fa67d],_0x2583b2=_0x58822d===i['Portrait']?_0xe4df9f:_0x5cf0a9,_0xa015bc=_0x58822d===i[_0x1c2795(0x113)]?_0x5cf0a9:_0xe4df9f,_0x31631b='\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'+_0x2583b2+_0x1c2795(0x11c)+_0xa015bc+_0x1c2795(0x10e)+n+_0x1c2795(0xf4)+n+_0x1c2795(0x104)+p+_0x1c2795(0x10d)+_0xa015bc+_0x1c2795(0x101)+_0x2583b2+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x3b622a=document[_0x1c2795(0x10a)](_0x1c2795(0xfe));return _0x3b622a['innerHTML']=_0x31631b,_0x3b622a[_0x1c2795(0x11b)]='offline-printing-css',_0x3b622a;}function _0x1a1f(_0x471e99,_0x2f479c){const _0x10cf21=_0x10cf();return _0x1a1f=function(_0x1a1f50,_0x1393de){_0x1a1f50=_0x1a1f50-0xee;let _0x5156a7=_0x10cf21[_0x1a1f50];return _0x5156a7;},_0x1a1f(_0x471e99,_0x2f479c);}exports[_0x3235e7(0xff)]=p,exports[_0x3235e7(0xfd)]=n,exports[_0x3235e7(0x119)]=N,exports[_0x3235e7(0x117)]=m,exports[_0x3235e7(0x11d)]=g,exports[_0x3235e7(0x114)]=i,exports[_0x3235e7(0xee)]=o,exports[_0x3235e7(0xf1)]=e,exports[_0x3235e7(0xfa)]=c,exports[_0x3235e7(0xf3)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1fc26d=_0x25c3;(function(_0xe2026e,_0x332da3){const _0x115869=_0x25c3,_0xb5eeb1=_0xe2026e();while(!![]){try{const _0x2ccb02=-parseInt(_0x115869(0x130))/0x1*(parseInt(_0x115869(0x147))/0x2)+parseInt(_0x115869(0x136))/0x3+parseInt(_0x115869(0x14a))/0x4+-parseInt(_0x115869(0x134))/0x5+-parseInt(_0x115869(0x13f))/0x6+-parseInt(_0x115869(0x13c))/0x7+parseInt(_0x115869(0x14e))/0x8;if(_0x2ccb02===_0x332da3)break;else _0xb5eeb1['push'](_0xb5eeb1['shift']());}catch(_0x5d6e25){_0xb5eeb1['push'](_0xb5eeb1['shift']());}}}(_0x4c39,0xf0264));var o=(_0x46edf5=>(_0x46edf5[_0x1fc26d(0x153)]='Letter',_0x46edf5[_0x1fc26d(0x14f)]=_0x1fc26d(0x14f),_0x46edf5['Legal']='Legal',_0x46edf5['Statement']='Statement',_0x46edf5['Executive']='Executive',_0x46edf5['Folio']=_0x1fc26d(0x143),_0x46edf5['A3']='A3',_0x46edf5['A4']='A4',_0x46edf5['A5']='A5',_0x46edf5['B4']='B4',_0x46edf5['B5']='B5',_0x46edf5))(o||{}),i=(_0xc11665=>(_0xc11665[_0x1fc26d(0x146)]=_0x1fc26d(0x146),_0xc11665[_0x1fc26d(0x14b)]='Landscape',_0xc11665))(i||{}),w=(_0xece214=>(_0xece214['Origin']='Origin',_0xece214['FitWidth']=_0x1fc26d(0x141),_0xece214[_0x1fc26d(0x144)]=_0x1fc26d(0x144),_0xece214[_0x1fc26d(0x149)]='FitPage',_0xece214['Custom']=_0x1fc26d(0x138),_0xece214))(w||{}),m=(_0x1373c4=>(_0x1373c4[_0x1fc26d(0x14d)]='Start',_0x1373c4['End']=_0x1fc26d(0x151),_0x1373c4[_0x1fc26d(0x135)]=_0x1fc26d(0x135),_0x1373c4))(m||{}),e=(_0x41fddf=>(_0x41fddf[_0x1fc26d(0x140)]=_0x1fc26d(0x140),_0x41fddf[_0x1fc26d(0x132)]=_0x1fc26d(0x132),_0x41fddf['Wide']='Wide',_0x41fddf['None']=_0x1fc26d(0x13d),_0x41fddf))(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[_0x1fc26d(0x13a)]]:{'w':0x2b8,'h':0x3f0},[o[_0x1fc26d(0x143)]]:{'w':0x330,'h':0x4e0},[o['Legal']]:{'w':0x330,'h':0x540},[o['Letter']]:{'w':0x330,'h':0x420},[o[_0x1fc26d(0x131)]]:{'w':0x210,'h':0x330},[o[_0x1fc26d(0x14f)]]:{'w':0x420,'h':0x660}},v={[e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x1fc26d(0x132)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x1fc26d(0x13d)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x1fc26d(0x148),p='printing-canvas';function N(_0x2ace4f,_0x55667b){const _0x167162=_0x1fc26d,{w:_0x541bdc,h:_0x41e9f9}=g[_0x2ace4f],_0x1bf885=_0x55667b===i[_0x167162(0x146)]?_0x541bdc:_0x41e9f9,_0xd56438=_0x55667b===i[_0x167162(0x146)]?_0x41e9f9:_0x541bdc,_0x2401c2=_0x167162(0x152)+_0x1bf885+_0x167162(0x13e)+_0xd56438+_0x167162(0x145)+l+_0x167162(0x150)+l+'\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+_0x167162(0x142)+_0xd56438+_0x167162(0x137)+_0x1bf885+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x12f058=document[_0x167162(0x13b)](_0x167162(0x139));return _0x12f058[_0x167162(0x14c)]=_0x2401c2,_0x12f058['className']=_0x167162(0x133),_0x12f058;}function _0x25c3(_0x46640e,_0x9dcf8e){const _0x4c39a0=_0x4c39();return _0x25c3=function(_0x25c38e,_0x5afbc6){_0x25c38e=_0x25c38e-0x130;let _0x4c6af1=_0x4c39a0[_0x25c38e];return _0x4c6af1;},_0x25c3(_0x46640e,_0x9dcf8e);}function _0x4c39(){const _0x3d9e25=['Custom','style','Executive','createElement','6752403BkGYlu','None','px\x20','5013672YPNReU','Normal','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','Folio','FitHeight','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.','Portrait','14fDlBRT','printing-canvas-container','FitPage','4429200wScFAw','Landscape','innerHTML','Start','8237552GVsbMt','Tabloid',',\x20.','End','\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','Letter','97803oYEeFi','Statement','Narrow','offline-printing-css','1402390AUrfaH','Middle','4835994ldQLfa','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'];_0x4c39=function(){return _0x3d9e25;};return _0x4c39();}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 _0x59aa(_0x5b09c7,_0x4f0519){const _0x419df4=_0x419d();return _0x59aa=function(_0x59aa7e,_0x124cf6){_0x59aa7e=_0x59aa7e-0x1b0;let _0x378e7b=_0x419df4[_0x59aa7e];return _0x378e7b;},_0x59aa(_0x5b09c7,_0x4f0519);}function _0x419d(){const _0x3bb057=['function','3577140gpNvHa','Executive','PrintDirection','306532NYxBuc','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','PrintAlign','printing-canvas-container','\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','Tabloid','3379608ExZNmM','Folio','1860711exOEuX','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\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.','302008FvgqfE','Narrow','offline-printing-css','End','18ztAepn','Custom','FitWidth','createPrintStyle','Start','PRINT_CANVAS_CLASS','object','1335705dBgAuN','createElement','Middle','Statement','PrintScale','toStringTag','Letter','Wide','Origin','5121000OAPtNd','UniverProPrint','Module','PaperSizePxMap','3NYyAjy','PaperMarginMap','FitPage','Portrait','70FTRBtv','exports','Normal','defineProperty','style','px\x20','printing-canvas','\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'];_0x419d=function(){return _0x3bb057;};return _0x419d();}(function(_0x18c987,_0x566188){const _0x51aced=_0x59aa,_0x565b96=_0x18c987();while(!![]){try{const _0x5951a0=parseInt(_0x51aced(0x1e0))/0x1*(parseInt(_0x51aced(0x1bd))/0x2)+parseInt(_0x51aced(0x1c5))/0x3+parseInt(_0x51aced(0x1c8))/0x4*(-parseInt(_0x51aced(0x1b0))/0x5)+-parseInt(_0x51aced(0x1cc))/0x6*(-parseInt(_0x51aced(0x1d3))/0x7)+-parseInt(_0x51aced(0x1dc))/0x8+parseInt(_0x51aced(0x1c3))/0x9+parseInt(_0x51aced(0x1ba))/0xa;if(_0x5951a0===_0x566188)break;else _0x565b96['push'](_0x565b96['shift']());}catch(_0x583428){_0x565b96['push'](_0x565b96['shift']());}}}(_0x419d,0xa81a9),function(_0xc1cc00,_0x2b5416){const _0x3a9538=_0x59aa;typeof exports==_0x3a9538(0x1d2)&&typeof module<'u'?_0x2b5416(exports):typeof define==_0x3a9538(0x1b9)&&define['amd']?define([_0x3a9538(0x1b1)],_0x2b5416):(_0xc1cc00=typeof globalThis<'u'?globalThis:_0xc1cc00||self,_0x2b5416(_0xc1cc00[_0x3a9538(0x1dd)]={}));}(this,function(_0x62dd44){'use strict';const _0x244d2b=_0x59aa;var _0x2910ae=(_0x30b158=>(_0x30b158[_0x244d2b(0x1d9)]=_0x244d2b(0x1d9),_0x30b158[_0x244d2b(0x1c2)]='Tabloid',_0x30b158[_0x244d2b(0x1b8)]=_0x244d2b(0x1b8),_0x30b158[_0x244d2b(0x1d6)]=_0x244d2b(0x1d6),_0x30b158[_0x244d2b(0x1bb)]=_0x244d2b(0x1bb),_0x30b158['Folio']=_0x244d2b(0x1c4),_0x30b158['A3']='A3',_0x30b158['A4']='A4',_0x30b158['A5']='A5',_0x30b158['B4']='B4',_0x30b158['B5']='B5',_0x30b158))(_0x2910ae||{}),_0x2b5034=(_0x579ea2=>(_0x579ea2[_0x244d2b(0x1e3)]=_0x244d2b(0x1e3),_0x579ea2['Landscape']='Landscape',_0x579ea2))(_0x2b5034||{}),_0x374c0f=(_0x1ec7fb=>(_0x1ec7fb[_0x244d2b(0x1db)]=_0x244d2b(0x1db),_0x1ec7fb['FitWidth']=_0x244d2b(0x1ce),_0x1ec7fb['FitHeight']='FitHeight',_0x1ec7fb[_0x244d2b(0x1e2)]=_0x244d2b(0x1e2),_0x1ec7fb[_0x244d2b(0x1cd)]=_0x244d2b(0x1cd),_0x1ec7fb))(_0x374c0f||{}),_0x454073=(_0xcff877=>(_0xcff877[_0x244d2b(0x1d0)]='Start',_0xcff877[_0x244d2b(0x1cb)]='End',_0xcff877['Middle']=_0x244d2b(0x1d5),_0xcff877))(_0x454073||{}),_0x200b33=(_0xde53aa=>(_0xde53aa[_0x244d2b(0x1b2)]=_0x244d2b(0x1b2),_0xde53aa['Narrow']=_0x244d2b(0x1c9),_0xde53aa[_0x244d2b(0x1da)]='Wide',_0xde53aa['None']='None',_0xde53aa))(_0x200b33||{});const _0x2b3fe1={[_0x2910ae['A3']]:{'w':0x463,'h':0x633},[_0x2910ae['A4']]:{'w':0x31a,'h':0x464},[_0x2910ae['A5']]:{'w':0x22f,'h':0x31a},[_0x2910ae['B4']]:{'w':0x3b0,'h':0x540},[_0x2910ae['B5']]:{'w':0x299,'h':0x3b0},[_0x2910ae[_0x244d2b(0x1bb)]]:{'w':0x2b8,'h':0x3f0},[_0x2910ae[_0x244d2b(0x1c4)]]:{'w':0x330,'h':0x4e0},[_0x2910ae['Legal']]:{'w':0x330,'h':0x540},[_0x2910ae['Letter']]:{'w':0x330,'h':0x420},[_0x2910ae[_0x244d2b(0x1d6)]]:{'w':0x210,'h':0x330},[_0x2910ae[_0x244d2b(0x1c2)]]:{'w':0x420,'h':0x660}},_0x48f8e2={[_0x200b33['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x200b33[_0x244d2b(0x1c9)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x200b33[_0x244d2b(0x1da)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x200b33['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x423d0d=_0x244d2b(0x1c0),_0x2d7137=_0x244d2b(0x1b6);function _0x10fa7d(_0xd0e8fd,_0xc9e985){const _0x245205=_0x244d2b,{w:_0x4e16c3,h:_0x5b988d}=_0x2b3fe1[_0xd0e8fd],_0x4727bd=_0xc9e985===_0x2b5034['Portrait']?_0x4e16c3:_0x5b988d,_0x14f318=_0xc9e985===_0x2b5034[_0x245205(0x1e3)]?_0x5b988d:_0x4e16c3,_0x421ea0=_0x245205(0x1c1)+_0x4727bd+_0x245205(0x1b5)+_0x14f318+_0x245205(0x1c7)+_0x423d0d+',\x20.'+_0x423d0d+_0x245205(0x1b7)+_0x2d7137+_0x245205(0x1c6)+_0x14f318+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x4727bd+_0x245205(0x1be),_0x45a8e6=document[_0x245205(0x1d4)](_0x245205(0x1b4));return _0x45a8e6['innerHTML']=_0x421ea0,_0x45a8e6['className']=_0x245205(0x1ca),_0x45a8e6;}_0x62dd44[_0x244d2b(0x1d1)]=_0x2d7137,_0x62dd44['PRINT_CONTAINER_CLASS']=_0x423d0d,_0x62dd44[_0x244d2b(0x1e1)]=_0x48f8e2,_0x62dd44[_0x244d2b(0x1df)]=_0x2b3fe1,_0x62dd44[_0x244d2b(0x1bf)]=_0x454073,_0x62dd44[_0x244d2b(0x1bc)]=_0x2b5034,_0x62dd44['PrintPaperMargin']=_0x200b33,_0x62dd44['PrintPaperSize']=_0x2910ae,_0x62dd44[_0x244d2b(0x1d7)]=_0x374c0f,_0x62dd44[_0x244d2b(0x1cf)]=_0x10fa7d,Object[_0x244d2b(0x1b3)](_0x62dd44,Symbol[_0x244d2b(0x1d8)],{'value':_0x244d2b(0x1de)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6-experimental.20250317-28d180b",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^5.8.2",
|
|
46
|
-
"vite": "^6.2.
|
|
46
|
+
"vite": "^6.2.1",
|
|
47
47
|
"vitest": "^3.0.8",
|
|
48
|
-
"@univerjs-infra/shared": "0.6.
|
|
48
|
+
"@univerjs-infra/shared": "0.6.6"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|