@univerjs-pro/print 0.6.4 → 0.6.5-nightly.202503121607
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 _0x1ee968=_0x1358;(function(_0x3b102a,_0x2e206c){const _0x41f589=_0x1358,_0x7adce3=_0x3b102a();while(!![]){try{const _0x12ed0d=parseInt(_0x41f589(0x187))/0x1+-parseInt(_0x41f589(0x196))/0x2*(-parseInt(_0x41f589(0x18c))/0x3)+-parseInt(_0x41f589(0x17c))/0x4*(parseInt(_0x41f589(0x18b))/0x5)+parseInt(_0x41f589(0x182))/0x6+parseInt(_0x41f589(0x180))/0x7*(parseInt(_0x41f589(0x176))/0x8)+-parseInt(_0x41f589(0x1a5))/0x9*(-parseInt(_0x41f589(0x191))/0xa)+parseInt(_0x41f589(0x17e))/0xb*(-parseInt(_0x41f589(0x184))/0xc);if(_0x12ed0d===_0x2e206c)break;else _0x7adce3['push'](_0x7adce3['shift']());}catch(_0x58f102){_0x7adce3['push'](_0x7adce3['shift']());}}}(_0x5502,0x99f9e));Object[_0x1ee968(0x17a)](exports,Symbol[_0x1ee968(0x192)],{'value':'Module'});var e=(_0x534a90=>(_0x534a90[_0x1ee968(0x186)]=_0x1ee968(0x186),_0x534a90[_0x1ee968(0x183)]=_0x1ee968(0x183),_0x534a90[_0x1ee968(0x185)]=_0x1ee968(0x185),_0x534a90[_0x1ee968(0x179)]=_0x1ee968(0x179),_0x534a90[_0x1ee968(0x19f)]='Executive',_0x534a90['Folio']=_0x1ee968(0x18d),_0x534a90['A3']='A3',_0x534a90['A4']='A4',_0x534a90['A5']='A5',_0x534a90['B4']='B4',_0x534a90['B5']='B5',_0x534a90))(e||{}),i=(_0x4a08f7=>(_0x4a08f7['Portrait']=_0x1ee968(0x199),_0x4a08f7[_0x1ee968(0x198)]='Landscape',_0x4a08f7))(i||{}),c=(_0x28c585=>(_0x28c585[_0x1ee968(0x190)]='Origin',_0x28c585[_0x1ee968(0x188)]=_0x1ee968(0x188),_0x28c585[_0x1ee968(0x1a1)]=_0x1ee968(0x1a1),_0x28c585[_0x1ee968(0x17d)]=_0x1ee968(0x17d),_0x28c585[_0x1ee968(0x197)]=_0x1ee968(0x197),_0x28c585))(c||{}),g=(_0x109298=>(_0x109298[_0x1ee968(0x181)]=_0x1ee968(0x181),_0x109298[_0x1ee968(0x19c)]=_0x1ee968(0x19c),_0x109298[_0x1ee968(0x194)]='Middle',_0x109298))(g||{}),o=(_0x39fcd9=>(_0x39fcd9['Normal']=_0x1ee968(0x189),_0x39fcd9[_0x1ee968(0x18a)]=_0x1ee968(0x18a),_0x39fcd9[_0x1ee968(0x18e)]=_0x1ee968(0x18e),_0x39fcd9['None']='None',_0x39fcd9))(o||{});function _0x5502(){const _0x275117=['createPrintStyle','862KXfHDr','Custom','Landscape','Portrait','printing-canvas','innerHTML','End','\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.','PrintAlign','Executive','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','FitHeight','createElement','PRINT_CONTAINER_CLASS','PaperSizePxMap','6183KTWYSO','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PrintDirection','40BGmwSA','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.','className','Statement','defineProperty','PrintPaperMargin','20IcoOxV','FitPage','55vLjaXD','None','1653379wTrsBz','Start','4884606gPdqpb','Tabloid','7815372uTXXWL','Legal','Letter','600594HdVEZX','FitWidth','Normal','Narrow','340555hcGwyS','8715bePhFP','Folio','Wide',',\x20.','Origin','5530EkfMyf','toStringTag','style','Middle'];_0x5502=function(){return _0x275117;};return _0x5502();}function _0x1358(_0x2f54ba,_0x2802a8){const _0x5502d5=_0x5502();return _0x1358=function(_0x1358ef,_0x1148f9){_0x1358ef=_0x1358ef-0x176;let _0x4e32ae=_0x5502d5[_0x1358ef];return _0x4e32ae;},_0x1358(_0x2f54ba,_0x2802a8);}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[_0x1ee968(0x19f)]]:{'w':0x2b8,'h':0x3f0},[e[_0x1ee968(0x18d)]]:{'w':0x330,'h':0x4e0},[e[_0x1ee968(0x185)]]:{'w':0x330,'h':0x540},[e[_0x1ee968(0x186)]]:{'w':0x330,'h':0x420},[e[_0x1ee968(0x179)]]:{'w':0x210,'h':0x330},[e['Tabloid']]:{'w':0x420,'h':0x660}},N={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x1ee968(0x18a)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x1ee968(0x18e)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x1ee968(0x17f)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n='printing-canvas-container',p=_0x1ee968(0x19a);function A(_0x1a7379,_0x235f1e){const _0x507cf0=_0x1ee968,{w:_0x196acd,h:_0x1bee8d}=m[_0x1a7379],_0x478748=_0x235f1e===i[_0x507cf0(0x199)]?_0x196acd:_0x1bee8d,_0x174c55=_0x235f1e===i[_0x507cf0(0x199)]?_0x1bee8d:_0x196acd,_0x51ef8b='\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'+_0x478748+'px\x20'+_0x174c55+_0x507cf0(0x177)+n+_0x507cf0(0x18f)+n+_0x507cf0(0x19d)+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'+_0x174c55+_0x507cf0(0x1a6)+_0x478748+_0x507cf0(0x1a0),_0x5e7135=document[_0x507cf0(0x1a2)](_0x507cf0(0x193));return _0x5e7135[_0x507cf0(0x19b)]=_0x51ef8b,_0x5e7135[_0x507cf0(0x178)]='offline-printing-css',_0x5e7135;}exports['PRINT_CANVAS_CLASS']=p,exports[_0x1ee968(0x1a3)]=n,exports['PaperMarginMap']=N,exports[_0x1ee968(0x1a4)]=m,exports[_0x1ee968(0x19e)]=g,exports[_0x1ee968(0x1a7)]=i,exports[_0x1ee968(0x17b)]=o,exports['PrintPaperSize']=e,exports['PrintScale']=c,exports[_0x1ee968(0x195)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x551e9b=_0x1ac1;(function(_0x264e8b,_0x3d4b03){const _0x4ba994=_0x1ac1,_0xd2f85=_0x264e8b();while(!![]){try{const _0x2061cf=-parseInt(_0x4ba994(0xb6))/0x1+parseInt(_0x4ba994(0xb4))/0x2*(-parseInt(_0x4ba994(0xa9))/0x3)+parseInt(_0x4ba994(0xc2))/0x4+-parseInt(_0x4ba994(0xc7))/0x5*(parseInt(_0x4ba994(0xc1))/0x6)+parseInt(_0x4ba994(0xab))/0x7+-parseInt(_0x4ba994(0xcd))/0x8+parseInt(_0x4ba994(0xc0))/0x9;if(_0x2061cf===_0x3d4b03)break;else _0xd2f85['push'](_0xd2f85['shift']());}catch(_0x37dc59){_0xd2f85['push'](_0xd2f85['shift']());}}}(_0x350d,0x6bcfb));function _0x350d(){const _0x2edf81=['\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Statement','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Origin','458nqaaGl','\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.','433820TcfHqP','Middle','Portrait','Folio',',\x20.','createElement','Tabloid','offline-printing-css','printing-canvas','Normal','3713643qZSdFs','3594DpTMxU','1851860BzPejM','\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','Wide','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.','Legal','665FafiSG','Executive','Narrow','None','innerHTML','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','3351352QSUOYo','className','FitPage','2736VQlnqG','Letter','4950799kGIHzj','Landscape','End','style','Start'];_0x350d=function(){return _0x2edf81;};return _0x350d();}var o=(_0x331434=>(_0x331434['Letter']=_0x551e9b(0xaa),_0x331434['Tabloid']=_0x551e9b(0xbc),_0x331434[_0x551e9b(0xc6)]='Legal',_0x331434[_0x551e9b(0xb1)]=_0x551e9b(0xb1),_0x331434[_0x551e9b(0xc8)]=_0x551e9b(0xc8),_0x331434[_0x551e9b(0xb9)]='Folio',_0x331434['A3']='A3',_0x331434['A4']='A4',_0x331434['A5']='A5',_0x331434['B4']='B4',_0x331434['B5']='B5',_0x331434))(o||{}),i=(_0x13baf0=>(_0x13baf0[_0x551e9b(0xb8)]=_0x551e9b(0xb8),_0x13baf0['Landscape']=_0x551e9b(0xac),_0x13baf0))(i||{}),w=(_0x567d34=>(_0x567d34[_0x551e9b(0xb3)]=_0x551e9b(0xb3),_0x567d34['FitWidth']='FitWidth',_0x567d34['FitHeight']='FitHeight',_0x567d34['FitPage']=_0x551e9b(0xa8),_0x567d34['Custom']='Custom',_0x567d34))(w||{}),m=(_0x320432=>(_0x320432[_0x551e9b(0xaf)]=_0x551e9b(0xaf),_0x320432['End']=_0x551e9b(0xad),_0x320432[_0x551e9b(0xb7)]='Middle',_0x320432))(m||{}),e=(_0xd940f6=>(_0xd940f6[_0x551e9b(0xbf)]='Normal',_0xd940f6['Narrow']=_0x551e9b(0xc9),_0xd940f6[_0x551e9b(0xc4)]=_0x551e9b(0xc4),_0xd940f6[_0x551e9b(0xca)]='None',_0xd940f6))(e||{});function _0x1ac1(_0x2a88b2,_0x3b8c2c){const _0x350db6=_0x350d();return _0x1ac1=function(_0x1ac15d,_0x4c92a1){_0x1ac15d=_0x1ac15d-0xa7;let _0x301017=_0x350db6[_0x1ac15d];return _0x301017;},_0x1ac1(_0x2a88b2,_0x3b8c2c);}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[_0x551e9b(0xb9)]]:{'w':0x330,'h':0x4e0},[o['Legal']]:{'w':0x330,'h':0x540},[o[_0x551e9b(0xaa)]]:{'w':0x330,'h':0x420},[o['Statement']]:{'w':0x210,'h':0x330},[o[_0x551e9b(0xbc)]]:{'w':0x420,'h':0x660}},v={[e[_0x551e9b(0xbf)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x551e9b(0xc9)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x551e9b(0xca)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p=_0x551e9b(0xbe);function N(_0x1c3d2c,_0x54db67){const _0x166463=_0x551e9b,{w:_0x1db612,h:_0x3cd9aa}=g[_0x1c3d2c],_0x57961f=_0x54db67===i['Portrait']?_0x1db612:_0x3cd9aa,_0x4eaca5=_0x54db67===i[_0x166463(0xb8)]?_0x3cd9aa:_0x1db612,_0x196173=_0x166463(0xc3)+_0x57961f+'px\x20'+_0x4eaca5+_0x166463(0xc5)+l+_0x166463(0xba)+l+_0x166463(0xb5)+p+_0x166463(0xb0)+_0x4eaca5+_0x166463(0xb2)+_0x57961f+_0x166463(0xcc),_0x4b11d5=document[_0x166463(0xbb)](_0x166463(0xae));return _0x4b11d5[_0x166463(0xcb)]=_0x196173,_0x4b11d5[_0x166463(0xa7)]=_0x166463(0xbd),_0x4b11d5;}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 _0x5427(_0x31daa2,_0x245581){const _0x2d7a95=_0x2d7a();return _0x5427=function(_0x542740,_0x52c2cf){_0x542740=_0x542740-0xd6;let _0xe598a3=_0x2d7a95[_0x542740];return _0xe598a3;},_0x5427(_0x31daa2,_0x245581);}function _0x2d7a(){const _0x45917d=['toStringTag','28xMKoOw','274221mFFyNv','269185DPZbjZ','FitPage','defineProperty','PrintScale','Narrow','None','Statement','className','offline-printing-css','style','Executive','Module','60goFFvE','UniverProPrint','createPrintStyle','End','Landscape','PrintAlign','Origin','236GeRjfS','Tabloid','PrintDirection','1948AGAxrx','function','\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','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','amd','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.','FitHeight','PaperMarginMap','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','object','FitWidth','printing-canvas','PaperSizePxMap','Middle','Normal','Custom','930tLdWsw','printing-canvas-container','1902948eNCFVW','47740pWSKXb','Letter','Wide','PrintPaperSize','15841EpMomz','878262Cwkmpe','PRINT_CANVAS_CLASS','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','createElement','Start','8rAmrie','Folio'];_0x2d7a=function(){return _0x45917d;};return _0x2d7a();}(function(_0x3a33d2,_0x5538d2){const _0xd375a2=_0x5427,_0x2f8b73=_0x3a33d2();while(!![]){try{const _0x156ad0=parseInt(_0xd375a2(0xfe))/0x1*(-parseInt(_0xd375a2(0xfb))/0x2)+parseInt(_0xd375a2(0xde))/0x3+-parseInt(_0xd375a2(0xe6))/0x4*(parseInt(_0xd375a2(0xe8))/0x5)+-parseInt(_0xd375a2(0xd6))/0x6*(-parseInt(_0xd375a2(0xdd))/0x7)+-parseInt(_0xd375a2(0xe3))/0x8*(-parseInt(_0xd375a2(0xe7))/0x9)+-parseInt(_0xd375a2(0xf4))/0xa*(parseInt(_0xd375a2(0xd9))/0xb)+parseInt(_0xd375a2(0xd8))/0xc;if(_0x156ad0===_0x5538d2)break;else _0x2f8b73['push'](_0x2f8b73['shift']());}catch(_0x2b7146){_0x2f8b73['push'](_0x2f8b73['shift']());}}}(_0x2d7a,0x30c7c),function(_0x552824,_0x5913af){const _0x86dd84=_0x5427;typeof exports==_0x86dd84(0x109)&&typeof module<'u'?_0x5913af(exports):typeof define==_0x86dd84(0xff)&&define[_0x86dd84(0x104)]?define(['exports'],_0x5913af):(_0x552824=typeof globalThis<'u'?globalThis:_0x552824||self,_0x5913af(_0x552824[_0x86dd84(0xf5)]={}));}(this,function(_0x44abe8){'use strict';const _0x274810=_0x5427;var _0x2d1738=(_0x3d3e1b=>(_0x3d3e1b['Letter']=_0x274810(0xda),_0x3d3e1b[_0x274810(0xfc)]=_0x274810(0xfc),_0x3d3e1b[_0x274810(0x102)]=_0x274810(0x102),_0x3d3e1b[_0x274810(0xee)]=_0x274810(0xee),_0x3d3e1b[_0x274810(0xf2)]='Executive',_0x3d3e1b[_0x274810(0xe4)]=_0x274810(0xe4),_0x3d3e1b['A3']='A3',_0x3d3e1b['A4']='A4',_0x3d3e1b['A5']='A5',_0x3d3e1b['B4']='B4',_0x3d3e1b['B5']='B5',_0x3d3e1b))(_0x2d1738||{}),_0xd146c8=(_0x26a3e9=>(_0x26a3e9[_0x274810(0x101)]=_0x274810(0x101),_0x26a3e9[_0x274810(0xf8)]=_0x274810(0xf8),_0x26a3e9))(_0xd146c8||{}),_0x3e5f43=(_0x405e9c=>(_0x405e9c[_0x274810(0xfa)]=_0x274810(0xfa),_0x405e9c['FitWidth']=_0x274810(0x10a),_0x405e9c['FitHeight']=_0x274810(0x106),_0x405e9c['FitPage']=_0x274810(0xe9),_0x405e9c[_0x274810(0x10f)]='Custom',_0x405e9c))(_0x3e5f43||{}),_0x4ff101=(_0x5ef968=>(_0x5ef968['Start']=_0x274810(0xe2),_0x5ef968['End']=_0x274810(0xf7),_0x5ef968[_0x274810(0x10d)]=_0x274810(0x10d),_0x5ef968))(_0x4ff101||{}),_0x38ee2c=(_0x58369e=>(_0x58369e[_0x274810(0x10e)]=_0x274810(0x10e),_0x58369e[_0x274810(0xec)]=_0x274810(0xec),_0x58369e[_0x274810(0xdb)]='Wide',_0x58369e[_0x274810(0xed)]=_0x274810(0xed),_0x58369e))(_0x38ee2c||{});const _0x52f7c5={[_0x2d1738['A3']]:{'w':0x463,'h':0x633},[_0x2d1738['A4']]:{'w':0x31a,'h':0x464},[_0x2d1738['A5']]:{'w':0x22f,'h':0x31a},[_0x2d1738['B4']]:{'w':0x3b0,'h':0x540},[_0x2d1738['B5']]:{'w':0x299,'h':0x3b0},[_0x2d1738['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x2d1738['Folio']]:{'w':0x330,'h':0x4e0},[_0x2d1738['Legal']]:{'w':0x330,'h':0x540},[_0x2d1738[_0x274810(0xda)]]:{'w':0x330,'h':0x420},[_0x2d1738[_0x274810(0xee)]]:{'w':0x210,'h':0x330},[_0x2d1738[_0x274810(0xfc)]]:{'w':0x420,'h':0x660}},_0x36d597={[_0x38ee2c['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x38ee2c[_0x274810(0xec)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x38ee2c['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x38ee2c[_0x274810(0xed)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x51c52a=_0x274810(0xd7),_0x19d0af=_0x274810(0x10b);function _0x58d215(_0x47d7a4,_0x4a51b1){const _0x384820=_0x274810,{w:_0x18632f,h:_0x4ed4ea}=_0x52f7c5[_0x47d7a4],_0x4a1acb=_0x4a51b1===_0xd146c8[_0x384820(0x101)]?_0x18632f:_0x4ed4ea,_0x4b3480=_0x4a51b1===_0xd146c8[_0x384820(0x101)]?_0x4ed4ea:_0x18632f,_0x5aff23=_0x384820(0x100)+_0x4a1acb+'px\x20'+_0x4b3480+_0x384820(0x105)+_0x51c52a+',\x20.'+_0x51c52a+'\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.'+_0x19d0af+_0x384820(0x103)+_0x4b3480+_0x384820(0x108)+_0x4a1acb+_0x384820(0xe0),_0x591e7c=document[_0x384820(0xe1)](_0x384820(0xf1));return _0x591e7c['innerHTML']=_0x5aff23,_0x591e7c[_0x384820(0xef)]=_0x384820(0xf0),_0x591e7c;}_0x44abe8[_0x274810(0xdf)]=_0x19d0af,_0x44abe8['PRINT_CONTAINER_CLASS']=_0x51c52a,_0x44abe8[_0x274810(0x107)]=_0x36d597,_0x44abe8[_0x274810(0x10c)]=_0x52f7c5,_0x44abe8[_0x274810(0xf9)]=_0x4ff101,_0x44abe8[_0x274810(0xfd)]=_0xd146c8,_0x44abe8['PrintPaperMargin']=_0x38ee2c,_0x44abe8[_0x274810(0xdc)]=_0x2d1738,_0x44abe8[_0x274810(0xeb)]=_0x3e5f43,_0x44abe8[_0x274810(0xf6)]=_0x58d215,Object[_0x274810(0xea)](_0x44abe8,Symbol[_0x274810(0xe5)],{'value':_0x274810(0xf3)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.5-nightly.202503121607",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^5.8.2",
|
|
46
46
|
"vite": "^6.2.0",
|
|
47
|
-
"vitest": "^3.0.
|
|
48
|
-
"@univerjs-infra/shared": "0.6.
|
|
47
|
+
"vitest": "^3.0.8",
|
|
48
|
+
"@univerjs-infra/shared": "0.6.5"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|