@univerjs-pro/print 0.6.0 → 0.6.1-nightly.202502221605
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 +4 -4
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x10f6b9=_0x3c59;function _0x476b(){const _0x1e8517=['498559sNoZVf','toStringTag','14YPYGWB','px\x20','PrintPaperMargin','Normal','PRINT_CANVAS_CLASS','PrintDirection','style','1961644ZcOWGr','10IYyJRr','Narrow','Letter','None','FitHeight','1919336lRdmZn','106068sIFlmc','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','152841tlArbv','Landscape','createElement','Module','Statement','5JLYPAe','513824XOeJGV','6990219IYkxDf','Legal','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','printing-canvas-container','Executive','className','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Wide','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.','PrintScale',',\x20.','Portrait','FitPage','\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','PrintAlign','Tabloid','FitWidth','Start','End'];_0x476b=function(){return _0x1e8517;};return _0x476b();}(function(_0x3139d3,_0x5ab34a){const _0x421a38=_0x3c59,_0x13302b=_0x3139d3();while(!![]){try{const _0x28ff75=-parseInt(_0x421a38(0x14b))/0x1+parseInt(_0x421a38(0x15a))/0x2+-parseInt(_0x421a38(0x15e))/0x3+parseInt(_0x421a38(0x154))/0x4*(-parseInt(_0x421a38(0x163))/0x5)+-parseInt(_0x421a38(0x15b))/0x6+-parseInt(_0x421a38(0x14d))/0x7*(parseInt(_0x421a38(0x164))/0x8)+-parseInt(_0x421a38(0x165))/0x9*(-parseInt(_0x421a38(0x155))/0xa);if(_0x28ff75===_0x5ab34a)break;else _0x13302b['push'](_0x13302b['shift']());}catch(_0x4f2fbc){_0x13302b['push'](_0x13302b['shift']());}}}(_0x476b,0x865a4));Object['defineProperty'](exports,Symbol[_0x10f6b9(0x14c)],{'value':_0x10f6b9(0x161)});function _0x3c59(_0x1b4a8c,_0x5e7a3a){const _0x476bb9=_0x476b();return _0x3c59=function(_0x3c595d,_0x48e605){_0x3c595d=_0x3c595d-0x149;let _0x12cbd2=_0x476bb9[_0x3c595d];return _0x12cbd2;},_0x3c59(_0x1b4a8c,_0x5e7a3a);}var e=(_0x2041c2=>(_0x2041c2['Letter']=_0x10f6b9(0x157),_0x2041c2[_0x10f6b9(0x176)]='Tabloid',_0x2041c2[_0x10f6b9(0x166)]='Legal',_0x2041c2[_0x10f6b9(0x162)]='Statement',_0x2041c2[_0x10f6b9(0x169)]=_0x10f6b9(0x169),_0x2041c2['Folio']='Folio',_0x2041c2['A3']='A3',_0x2041c2['A4']='A4',_0x2041c2['A5']='A5',_0x2041c2['B4']='B4',_0x2041c2['B5']='B5',_0x2041c2))(e||{}),i=(_0x4ac69a=>(_0x4ac69a[_0x10f6b9(0x172)]=_0x10f6b9(0x172),_0x4ac69a[_0x10f6b9(0x15f)]=_0x10f6b9(0x15f),_0x4ac69a))(i||{}),c=(_0xd9c97f=>(_0xd9c97f['Origin']='Origin',_0xd9c97f[_0x10f6b9(0x177)]=_0x10f6b9(0x177),_0xd9c97f[_0x10f6b9(0x159)]=_0x10f6b9(0x159),_0xd9c97f[_0x10f6b9(0x173)]='FitPage',_0xd9c97f['Custom']='Custom',_0xd9c97f))(c||{}),g=(_0x1b475a=>(_0x1b475a[_0x10f6b9(0x149)]=_0x10f6b9(0x149),_0x1b475a[_0x10f6b9(0x14a)]=_0x10f6b9(0x14a),_0x1b475a['Middle']='Middle',_0x1b475a))(g||{}),o=(_0x4472df=>(_0x4472df[_0x10f6b9(0x150)]=_0x10f6b9(0x150),_0x4472df[_0x10f6b9(0x156)]=_0x10f6b9(0x156),_0x4472df[_0x10f6b9(0x16d)]=_0x10f6b9(0x16d),_0x4472df['None']='None',_0x4472df))(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[_0x10f6b9(0x169)]]:{'w':0x2b8,'h':0x3f0},[e['Folio']]:{'w':0x330,'h':0x4e0},[e[_0x10f6b9(0x166)]]:{'w':0x330,'h':0x540},[e[_0x10f6b9(0x157)]]:{'w':0x330,'h':0x420},[e['Statement']]:{'w':0x210,'h':0x330},[e[_0x10f6b9(0x176)]]:{'w':0x420,'h':0x660}},N={[o[_0x10f6b9(0x150)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x10f6b9(0x156)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x10f6b9(0x158)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x10f6b9(0x168),p=_0x10f6b9(0x16e);function A(_0x295a3e,_0x5a10e8){const _0x1fe6c3=_0x10f6b9,{w:_0x32811e,h:_0x5938f6}=m[_0x295a3e],_0x54cf60=_0x5a10e8===i[_0x1fe6c3(0x172)]?_0x32811e:_0x5938f6,_0x3f752c=_0x5a10e8===i[_0x1fe6c3(0x172)]?_0x5938f6:_0x32811e,_0x1cc312=_0x1fe6c3(0x174)+_0x54cf60+_0x1fe6c3(0x14e)+_0x3f752c+_0x1fe6c3(0x15c)+n+_0x1fe6c3(0x171)+n+_0x1fe6c3(0x16f)+p+_0x1fe6c3(0x167)+_0x3f752c+_0x1fe6c3(0x16c)+_0x54cf60+_0x1fe6c3(0x16b),_0x4b86e4=document[_0x1fe6c3(0x160)](_0x1fe6c3(0x153));return _0x4b86e4[_0x1fe6c3(0x15d)]=_0x1cc312,_0x4b86e4[_0x1fe6c3(0x16a)]='offline-printing-css',_0x4b86e4;}exports[_0x10f6b9(0x151)]=p,exports['PRINT_CONTAINER_CLASS']=n,exports['PaperMarginMap']=N,exports['PaperSizePxMap']=m,exports[_0x10f6b9(0x175)]=g,exports[_0x10f6b9(0x152)]=i,exports[_0x10f6b9(0x14f)]=o,exports['PrintPaperSize']=e,exports[_0x10f6b9(0x170)]=c,exports['createPrintStyle']=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x11dcd5=_0x39e5;(function(_0x2f44b9,_0xf6a033){const _0x2a2f9d=_0x39e5,_0x359e14=_0x2f44b9();while(!![]){try{const _0xbcbc34=-parseInt(_0x2a2f9d(0xd0))/0x1+parseInt(_0x2a2f9d(0xd4))/0x2*(-parseInt(_0x2a2f9d(0xe7))/0x3)+parseInt(_0x2a2f9d(0xc1))/0x4*(parseInt(_0x2a2f9d(0xdf))/0x5)+parseInt(_0x2a2f9d(0xd9))/0x6+-parseInt(_0x2a2f9d(0xde))/0x7*(parseInt(_0x2a2f9d(0xdc))/0x8)+parseInt(_0x2a2f9d(0xce))/0x9*(-parseInt(_0x2a2f9d(0xe5))/0xa)+parseInt(_0x2a2f9d(0xcf))/0xb;if(_0xbcbc34===_0xf6a033)break;else _0x359e14['push'](_0x359e14['shift']());}catch(_0x6f8f88){_0x359e14['push'](_0x359e14['shift']());}}}(_0xd299,0xb8587));function _0xd299(){const _0x4c60f2=['\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','Statement','Middle','73366dBhlny','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.','className','FitHeight','1018752BbxiEn','Executive','Normal','160zIvQvk',',\x20.','117446DgVLWp','655565sAefMa','Custom','Start','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','End','5677240hWZtJm','style','3PwsBMe','createElement','printing-canvas-container','offline-printing-css','FitWidth','32TbxoOp','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Legal','Portrait','Landscape','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.','Origin','px\x20','Wide','Letter','Tabloid','Narrow','innerHTML','9xyKmiy','5406687lQasfj','15167jxNQPn'];_0xd299=function(){return _0x4c60f2;};return _0xd299();}function _0x39e5(_0x2561fa,_0x2c2ef7){const _0xd299ee=_0xd299();return _0x39e5=function(_0x39e5d2,_0xe4b08e){_0x39e5d2=_0x39e5d2-0xc0;let _0x4d5406=_0xd299ee[_0x39e5d2];return _0x4d5406;},_0x39e5(_0x2561fa,_0x2c2ef7);}var o=(_0x3db8e5=>(_0x3db8e5[_0x11dcd5(0xca)]='Letter',_0x3db8e5[_0x11dcd5(0xcb)]=_0x11dcd5(0xcb),_0x3db8e5['Legal']=_0x11dcd5(0xc3),_0x3db8e5[_0x11dcd5(0xd2)]=_0x11dcd5(0xd2),_0x3db8e5['Executive']='Executive',_0x3db8e5['Folio']='Folio',_0x3db8e5['A3']='A3',_0x3db8e5['A4']='A4',_0x3db8e5['A5']='A5',_0x3db8e5['B4']='B4',_0x3db8e5['B5']='B5',_0x3db8e5))(o||{}),i=(_0x51f77a=>(_0x51f77a['Portrait']=_0x11dcd5(0xc4),_0x51f77a['Landscape']=_0x11dcd5(0xc5),_0x51f77a))(i||{}),w=(_0x2a45d2=>(_0x2a45d2[_0x11dcd5(0xc7)]=_0x11dcd5(0xc7),_0x2a45d2[_0x11dcd5(0xc0)]='FitWidth',_0x2a45d2[_0x11dcd5(0xd8)]=_0x11dcd5(0xd8),_0x2a45d2['FitPage']=_0x11dcd5(0xe2),_0x2a45d2[_0x11dcd5(0xe0)]=_0x11dcd5(0xe0),_0x2a45d2))(w||{}),m=(_0x17fcfd=>(_0x17fcfd[_0x11dcd5(0xe1)]='Start',_0x17fcfd[_0x11dcd5(0xe4)]=_0x11dcd5(0xe4),_0x17fcfd[_0x11dcd5(0xd3)]=_0x11dcd5(0xd3),_0x17fcfd))(m||{}),e=(_0x5edc07=>(_0x5edc07[_0x11dcd5(0xdb)]=_0x11dcd5(0xdb),_0x5edc07[_0x11dcd5(0xcc)]=_0x11dcd5(0xcc),_0x5edc07[_0x11dcd5(0xc9)]=_0x11dcd5(0xc9),_0x5edc07['None']='None',_0x5edc07))(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[_0x11dcd5(0xda)]]:{'w':0x2b8,'h':0x3f0},[o['Folio']]:{'w':0x330,'h':0x4e0},[o[_0x11dcd5(0xc3)]]:{'w':0x330,'h':0x540},[o['Letter']]:{'w':0x330,'h':0x420},[o[_0x11dcd5(0xd2)]]:{'w':0x210,'h':0x330},[o[_0x11dcd5(0xcb)]]:{'w':0x420,'h':0x660}},v={[e[_0x11dcd5(0xdb)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x11dcd5(0xcc)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x11dcd5(0xc9)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x11dcd5(0xe9),p=_0x11dcd5(0xd5);function N(_0x81b084,_0x5eeb9d){const _0x507120=_0x11dcd5,{w:_0x1be843,h:_0x1c808e}=g[_0x81b084],_0x47f5f2=_0x5eeb9d===i['Portrait']?_0x1be843:_0x1c808e,_0xfd201=_0x5eeb9d===i[_0x507120(0xc4)]?_0x1c808e:_0x1be843,_0x1cc481=_0x507120(0xd1)+_0x47f5f2+_0x507120(0xc8)+_0xfd201+_0x507120(0xc6)+l+_0x507120(0xdd)+l+_0x507120(0xd6)+p+_0x507120(0xc2)+_0xfd201+_0x507120(0xe3)+_0x47f5f2+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x4ab8cb=document[_0x507120(0xe8)](_0x507120(0xe6));return _0x4ab8cb[_0x507120(0xcd)]=_0x1cc481,_0x4ab8cb[_0x507120(0xd7)]=_0x507120(0xea),_0x4ab8cb;}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 _0x1648(){const _0x1f1012=['Legal','189236yAZTmz','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PrintDirection','PRINT_CONTAINER_CLASS','exports','PrintAlign','Custom','toStringTag','2279512ylwpes','offline-printing-css','None','Tabloid','Landscape','Module','amd','Letter','559618ifqXgy','2UiKUgB','defineProperty','PrintScale','Normal','Statement','createElement','FitPage','\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.','Origin','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Executive','78484xmfZUS',',\x20.','px\x20','FitHeight','Folio','24xuWcMB','564fUzZsU','object','Wide','407529ObYgNr','Portrait','End','PaperSizePxMap','style','190SujmVp','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','PaperMarginMap','2281433nIHbxc','PrintPaperMargin','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.','Narrow','5046775TqKysL','84coLWKG'];_0x1648=function(){return _0x1f1012;};return _0x1648();}function _0x3dcb(_0x354a1d,_0x5a7d1f){const _0x1648b9=_0x1648();return _0x3dcb=function(_0x3dcb62,_0x1e97d6){_0x3dcb62=_0x3dcb62-0x182;let _0x21c7f8=_0x1648b9[_0x3dcb62];return _0x21c7f8;},_0x3dcb(_0x354a1d,_0x5a7d1f);}(function(_0x1e628d,_0x17d7e7){const _0x68948e=_0x3dcb,_0x21d265=_0x1e628d();while(!![]){try{const _0x5c333f=-parseInt(_0x68948e(0x1a6))/0x1*(-parseInt(_0x68948e(0x1a5))/0x2)+parseInt(_0x68948e(0x1b6))/0x3*(-parseInt(_0x68948e(0x195))/0x4)+-parseInt(_0x68948e(0x192))/0x5+parseInt(_0x68948e(0x182))/0x6*(parseInt(_0x68948e(0x1b1))/0x7)+-parseInt(_0x68948e(0x19d))/0x8+-parseInt(_0x68948e(0x185))/0x9*(parseInt(_0x68948e(0x18a))/0xa)+parseInt(_0x68948e(0x18d))/0xb*(parseInt(_0x68948e(0x193))/0xc);if(_0x5c333f===_0x17d7e7)break;else _0x21d265['push'](_0x21d265['shift']());}catch(_0x1781a4){_0x21d265['push'](_0x21d265['shift']());}}}(_0x1648,0x81f26),function(_0x4830a3,_0x29dd42){const _0x422d9e=_0x3dcb;typeof exports==_0x422d9e(0x183)&&typeof module<'u'?_0x29dd42(exports):typeof define=='function'&&define[_0x422d9e(0x1a3)]?define([_0x422d9e(0x199)],_0x29dd42):(_0x4830a3=typeof globalThis<'u'?globalThis:_0x4830a3||self,_0x29dd42(_0x4830a3['UniverProPrint']={}));}(this,function(_0x4383b0){'use strict';const _0x4c7dfa=_0x3dcb;var _0x4f15fc=(_0x1c76c7=>(_0x1c76c7[_0x4c7dfa(0x1a4)]=_0x4c7dfa(0x1a4),_0x1c76c7[_0x4c7dfa(0x1a0)]='Tabloid',_0x1c76c7[_0x4c7dfa(0x194)]='Legal',_0x1c76c7[_0x4c7dfa(0x1aa)]=_0x4c7dfa(0x1aa),_0x1c76c7['Executive']=_0x4c7dfa(0x1b0),_0x1c76c7[_0x4c7dfa(0x1b5)]=_0x4c7dfa(0x1b5),_0x1c76c7['A3']='A3',_0x1c76c7['A4']='A4',_0x1c76c7['A5']='A5',_0x1c76c7['B4']='B4',_0x1c76c7['B5']='B5',_0x1c76c7))(_0x4f15fc||{}),_0x3c44b8=(_0x4b17a5=>(_0x4b17a5[_0x4c7dfa(0x186)]=_0x4c7dfa(0x186),_0x4b17a5[_0x4c7dfa(0x1a1)]='Landscape',_0x4b17a5))(_0x3c44b8||{}),_0xd65248=(_0x4294fd=>(_0x4294fd['Origin']=_0x4c7dfa(0x1ae),_0x4294fd[_0x4c7dfa(0x18f)]=_0x4c7dfa(0x18f),_0x4294fd[_0x4c7dfa(0x1b4)]='FitHeight',_0x4294fd[_0x4c7dfa(0x1ac)]=_0x4c7dfa(0x1ac),_0x4294fd['Custom']=_0x4c7dfa(0x19b),_0x4294fd))(_0xd65248||{}),_0x86641f=(_0x3792c5=>(_0x3792c5['Start']='Start',_0x3792c5['End']=_0x4c7dfa(0x187),_0x3792c5['Middle']='Middle',_0x3792c5))(_0x86641f||{}),_0x1e08c3=(_0x58a0f4=>(_0x58a0f4[_0x4c7dfa(0x1a9)]=_0x4c7dfa(0x1a9),_0x58a0f4[_0x4c7dfa(0x191)]=_0x4c7dfa(0x191),_0x58a0f4[_0x4c7dfa(0x184)]=_0x4c7dfa(0x184),_0x58a0f4[_0x4c7dfa(0x19f)]='None',_0x58a0f4))(_0x1e08c3||{});const _0x3523ad={[_0x4f15fc['A3']]:{'w':0x463,'h':0x633},[_0x4f15fc['A4']]:{'w':0x31a,'h':0x464},[_0x4f15fc['A5']]:{'w':0x22f,'h':0x31a},[_0x4f15fc['B4']]:{'w':0x3b0,'h':0x540},[_0x4f15fc['B5']]:{'w':0x299,'h':0x3b0},[_0x4f15fc['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x4f15fc[_0x4c7dfa(0x1b5)]]:{'w':0x330,'h':0x4e0},[_0x4f15fc['Legal']]:{'w':0x330,'h':0x540},[_0x4f15fc['Letter']]:{'w':0x330,'h':0x420},[_0x4f15fc[_0x4c7dfa(0x1aa)]]:{'w':0x210,'h':0x330},[_0x4f15fc[_0x4c7dfa(0x1a0)]]:{'w':0x420,'h':0x660}},_0x3b70f7={[_0x1e08c3[_0x4c7dfa(0x1a9)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x1e08c3[_0x4c7dfa(0x191)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x1e08c3[_0x4c7dfa(0x184)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x1e08c3[_0x4c7dfa(0x19f)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x3af92b='printing-canvas-container',_0xd19e40='printing-canvas';function _0x2495dd(_0x501e86,_0x27631f){const _0xe6c1c6=_0x4c7dfa,{w:_0x26a692,h:_0x20c8ab}=_0x3523ad[_0x501e86],_0x585915=_0x27631f===_0x3c44b8[_0xe6c1c6(0x186)]?_0x26a692:_0x20c8ab,_0x5a8ac5=_0x27631f===_0x3c44b8[_0xe6c1c6(0x186)]?_0x20c8ab:_0x26a692,_0x3deaa4='\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'+_0x585915+_0xe6c1c6(0x1b3)+_0x5a8ac5+_0xe6c1c6(0x190)+_0x3af92b+_0xe6c1c6(0x1b2)+_0x3af92b+_0xe6c1c6(0x1ad)+_0xd19e40+_0xe6c1c6(0x1af)+_0x5a8ac5+_0xe6c1c6(0x196)+_0x585915+_0xe6c1c6(0x18b),_0x547080=document[_0xe6c1c6(0x1ab)](_0xe6c1c6(0x189));return _0x547080['innerHTML']=_0x3deaa4,_0x547080['className']=_0xe6c1c6(0x19e),_0x547080;}_0x4383b0['PRINT_CANVAS_CLASS']=_0xd19e40,_0x4383b0[_0x4c7dfa(0x198)]=_0x3af92b,_0x4383b0[_0x4c7dfa(0x18c)]=_0x3b70f7,_0x4383b0[_0x4c7dfa(0x188)]=_0x3523ad,_0x4383b0[_0x4c7dfa(0x19a)]=_0x86641f,_0x4383b0[_0x4c7dfa(0x197)]=_0x3c44b8,_0x4383b0[_0x4c7dfa(0x18e)]=_0x1e08c3,_0x4383b0['PrintPaperSize']=_0x4f15fc,_0x4383b0[_0x4c7dfa(0x1a8)]=_0xd65248,_0x4383b0['createPrintStyle']=_0x2495dd,Object[_0x4c7dfa(0x1a7)](_0x4383b0,Symbol[_0x4c7dfa(0x19c)],{'value':_0x4c7dfa(0x1a2)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1-nightly.202502221605",
|
|
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.7.3",
|
|
46
|
-
"vite": "^6.1.
|
|
47
|
-
"vitest": "^3.0.
|
|
48
|
-
"@univerjs-infra/shared": "0.6.
|
|
46
|
+
"vite": "^6.1.1",
|
|
47
|
+
"vitest": "^3.0.6",
|
|
48
|
+
"@univerjs-infra/shared": "0.6.1"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|