@univerjs-pro/print 0.6.5 → 0.6.6-nightly.202503151606
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';
|
|
1
|
+
'use strict';function _0x3e07(){const _0x15ff56=['Start','11905QYanAe','54VaKOgc','FitHeight','Wide','Normal','Folio','px\x20','PrintScale','Statement','PrintAlign','PaperMarginMap','toStringTag','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','\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','End','642536Vzcqde','Tabloid','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.','Middle','278854knaQra','744107bYzUTg','innerHTML',',\x20.','Module','656178ffJSEj','Narrow','style','FitWidth','printing-canvas-container','PRINT_CANVAS_CLASS','Executive','381028sObohJ','PaperSizePxMap','125598RoWEwc','className','Letter','Custom','Origin','Portrait','PrintPaperMargin','PrintPaperSize','createElement','defineProperty','Legal','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.','360PnlnZd','1686Bzdndh','Landscape','6eotunu','\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'];_0x3e07=function(){return _0x15ff56;};return _0x3e07();}const _0x4ba5d2=_0x212f;(function(_0x42c9ef,_0x36d04b){const _0x358e11=_0x212f,_0x4a51e2=_0x42c9ef();while(!![]){try{const _0x1d70f1=parseInt(_0x358e11(0x12d))/0x1+-parseInt(_0x358e11(0x132))/0x2*(parseInt(_0x358e11(0x14a))/0x3)+parseInt(_0x358e11(0x139))/0x4+-parseInt(_0x358e11(0x118))/0x5*(-parseInt(_0x358e11(0x148))/0x6)+-parseInt(_0x358e11(0x12e))/0x7+-parseInt(_0x358e11(0x128))/0x8*(-parseInt(_0x358e11(0x119))/0x9)+parseInt(_0x358e11(0x147))/0xa*(-parseInt(_0x358e11(0x13b))/0xb);if(_0x1d70f1===_0x36d04b)break;else _0x4a51e2['push'](_0x4a51e2['shift']());}catch(_0x560fa1){_0x4a51e2['push'](_0x4a51e2['shift']());}}}(_0x3e07,0x55d3b));function _0x212f(_0xbf44d4,_0x64bf35){const _0x3e077b=_0x3e07();return _0x212f=function(_0x212f73,_0x14e5f2){_0x212f73=_0x212f73-0x117;let _0x485f35=_0x3e077b[_0x212f73];return _0x485f35;},_0x212f(_0xbf44d4,_0x64bf35);}Object[_0x4ba5d2(0x144)](exports,Symbol[_0x4ba5d2(0x123)],{'value':_0x4ba5d2(0x131)});var e=(_0x54a74e=>(_0x54a74e[_0x4ba5d2(0x13d)]=_0x4ba5d2(0x13d),_0x54a74e['Tabloid']=_0x4ba5d2(0x129),_0x54a74e['Legal']=_0x4ba5d2(0x145),_0x54a74e[_0x4ba5d2(0x120)]=_0x4ba5d2(0x120),_0x54a74e[_0x4ba5d2(0x138)]=_0x4ba5d2(0x138),_0x54a74e[_0x4ba5d2(0x11d)]=_0x4ba5d2(0x11d),_0x54a74e['A3']='A3',_0x54a74e['A4']='A4',_0x54a74e['A5']='A5',_0x54a74e['B4']='B4',_0x54a74e['B5']='B5',_0x54a74e))(e||{}),i=(_0x53d1d1=>(_0x53d1d1['Portrait']=_0x4ba5d2(0x140),_0x53d1d1[_0x4ba5d2(0x149)]=_0x4ba5d2(0x149),_0x53d1d1))(i||{}),c=(_0x30b0dc=>(_0x30b0dc[_0x4ba5d2(0x13f)]=_0x4ba5d2(0x13f),_0x30b0dc[_0x4ba5d2(0x135)]=_0x4ba5d2(0x135),_0x30b0dc['FitHeight']=_0x4ba5d2(0x11a),_0x30b0dc[_0x4ba5d2(0x12a)]=_0x4ba5d2(0x12a),_0x30b0dc[_0x4ba5d2(0x13e)]=_0x4ba5d2(0x13e),_0x30b0dc))(c||{}),g=(_0x30e011=>(_0x30e011[_0x4ba5d2(0x117)]=_0x4ba5d2(0x117),_0x30e011[_0x4ba5d2(0x127)]=_0x4ba5d2(0x127),_0x30e011[_0x4ba5d2(0x12c)]=_0x4ba5d2(0x12c),_0x30e011))(g||{}),o=(_0x240014=>(_0x240014['Normal']=_0x4ba5d2(0x11c),_0x240014['Narrow']=_0x4ba5d2(0x133),_0x240014[_0x4ba5d2(0x11b)]='Wide',_0x240014[_0x4ba5d2(0x126)]=_0x4ba5d2(0x126),_0x240014))(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[_0x4ba5d2(0x11d)]]:{'w':0x330,'h':0x4e0},[e[_0x4ba5d2(0x145)]]:{'w':0x330,'h':0x540},[e['Letter']]:{'w':0x330,'h':0x420},[e[_0x4ba5d2(0x120)]]:{'w':0x210,'h':0x330},[e['Tabloid']]:{'w':0x420,'h':0x660}},N={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x4ba5d2(0x11b)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x4ba5d2(0x126)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x4ba5d2(0x136),p='printing-canvas';function A(_0x44b2fe,_0x3c9fdd){const _0x5798ef=_0x4ba5d2,{w:_0x2a485b,h:_0x5c0886}=m[_0x44b2fe],_0x407156=_0x3c9fdd===i[_0x5798ef(0x140)]?_0x2a485b:_0x5c0886,_0x17a854=_0x3c9fdd===i[_0x5798ef(0x140)]?_0x5c0886:_0x2a485b,_0x356f1b=_0x5798ef(0x14b)+_0x407156+_0x5798ef(0x11e)+_0x17a854+_0x5798ef(0x146)+n+_0x5798ef(0x130)+n+_0x5798ef(0x12b)+p+_0x5798ef(0x125)+_0x17a854+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x407156+_0x5798ef(0x124),_0x365770=document[_0x5798ef(0x143)](_0x5798ef(0x134));return _0x365770[_0x5798ef(0x12f)]=_0x356f1b,_0x365770[_0x5798ef(0x13c)]='offline-printing-css',_0x365770;}exports[_0x4ba5d2(0x137)]=p,exports['PRINT_CONTAINER_CLASS']=n,exports[_0x4ba5d2(0x122)]=N,exports[_0x4ba5d2(0x13a)]=m,exports[_0x4ba5d2(0x121)]=g,exports['PrintDirection']=i,exports[_0x4ba5d2(0x141)]=o,exports[_0x4ba5d2(0x142)]=e,exports[_0x4ba5d2(0x11f)]=c,exports['createPrintStyle']=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xecfa3d=_0x4bc9;function _0x34ae(){const _0x5cb9fa=['Legal','px\x20','innerHTML','style','230909UdGJwu','printing-canvas-container','Folio','\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','Executive','printing-canvas','FitHeight','Start','Statement','Portrait','Normal','545552efmybp','Tabloid','className','FitPage','Letter','10535224IxlKbd','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','offline-printing-css','Custom','46675jxgqGS','16oLydhO','1904280EvvNGg','1320450MnxSKN','Landscape','Narrow','Wide','9iFoVyu','FitWidth','Origin','End','1184692KVCypn','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'];_0x34ae=function(){return _0x5cb9fa;};return _0x34ae();}(function(_0x4198b6,_0x522fc1){const _0xbcbfe=_0x4bc9,_0x12e0db=_0x4198b6();while(!![]){try{const _0x8756c=parseInt(_0xbcbfe(0x129))/0x1+-parseInt(_0xbcbfe(0x123))/0x2+-parseInt(_0xbcbfe(0x140))/0x3+-parseInt(_0xbcbfe(0x13e))/0x4*(-parseInt(_0xbcbfe(0x13d))/0x5)+-parseInt(_0xbcbfe(0x13f))/0x6+parseInt(_0xbcbfe(0x134))/0x7+-parseInt(_0xbcbfe(0x139))/0x8*(-parseInt(_0xbcbfe(0x144))/0x9);if(_0x8756c===_0x522fc1)break;else _0x12e0db['push'](_0x12e0db['shift']());}catch(_0x57092e){_0x12e0db['push'](_0x12e0db['shift']());}}}(_0x34ae,0x4c77c));function _0x4bc9(_0x5210eb,_0x58c449){const _0x34ae62=_0x34ae();return _0x4bc9=function(_0x4bc9a0,_0x5cd0c1){_0x4bc9a0=_0x4bc9a0-0x123;let _0x328f2d=_0x34ae62[_0x4bc9a0];return _0x328f2d;},_0x4bc9(_0x5210eb,_0x58c449);}var o=(_0x1bd7b9=>(_0x1bd7b9[_0xecfa3d(0x138)]=_0xecfa3d(0x138),_0x1bd7b9['Tabloid']=_0xecfa3d(0x135),_0x1bd7b9['Legal']=_0xecfa3d(0x125),_0x1bd7b9['Statement']='Statement',_0x1bd7b9['Executive']=_0xecfa3d(0x12d),_0x1bd7b9[_0xecfa3d(0x12b)]=_0xecfa3d(0x12b),_0x1bd7b9['A3']='A3',_0x1bd7b9['A4']='A4',_0x1bd7b9['A5']='A5',_0x1bd7b9['B4']='B4',_0x1bd7b9['B5']='B5',_0x1bd7b9))(o||{}),i=(_0x5d8be1=>(_0x5d8be1[_0xecfa3d(0x132)]=_0xecfa3d(0x132),_0x5d8be1[_0xecfa3d(0x141)]='Landscape',_0x5d8be1))(i||{}),w=(_0x417e1e=>(_0x417e1e['Origin']=_0xecfa3d(0x146),_0x417e1e[_0xecfa3d(0x145)]=_0xecfa3d(0x145),_0x417e1e[_0xecfa3d(0x12f)]=_0xecfa3d(0x12f),_0x417e1e[_0xecfa3d(0x137)]=_0xecfa3d(0x137),_0x417e1e[_0xecfa3d(0x13c)]=_0xecfa3d(0x13c),_0x417e1e))(w||{}),m=(_0x4e16ee=>(_0x4e16ee[_0xecfa3d(0x130)]='Start',_0x4e16ee[_0xecfa3d(0x147)]=_0xecfa3d(0x147),_0x4e16ee['Middle']='Middle',_0x4e16ee))(m||{}),e=(_0x7a21ae=>(_0x7a21ae[_0xecfa3d(0x133)]='Normal',_0x7a21ae[_0xecfa3d(0x142)]='Narrow',_0x7a21ae[_0xecfa3d(0x143)]=_0xecfa3d(0x143),_0x7a21ae['None']='None',_0x7a21ae))(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[_0xecfa3d(0x12d)]]:{'w':0x2b8,'h':0x3f0},[o[_0xecfa3d(0x12b)]]:{'w':0x330,'h':0x4e0},[o[_0xecfa3d(0x125)]]:{'w':0x330,'h':0x540},[o[_0xecfa3d(0x138)]]:{'w':0x330,'h':0x420},[o[_0xecfa3d(0x131)]]:{'w':0x210,'h':0x330},[o[_0xecfa3d(0x135)]]:{'w':0x420,'h':0x660}},v={[e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0xecfa3d(0x142)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0xecfa3d(0x12a),p=_0xecfa3d(0x12e);function N(_0x39a9fc,_0x196480){const _0x49d9d8=_0xecfa3d,{w:_0x48f168,h:_0x4c743e}=g[_0x39a9fc],_0x58b208=_0x196480===i['Portrait']?_0x48f168:_0x4c743e,_0x44298c=_0x196480===i[_0x49d9d8(0x132)]?_0x4c743e:_0x48f168,_0x5c8964=_0x49d9d8(0x12c)+_0x58b208+_0x49d9d8(0x126)+_0x44298c+'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+',\x20.'+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+_0x49d9d8(0x13a)+_0x44298c+_0x49d9d8(0x124)+_0x58b208+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x5b8429=document['createElement'](_0x49d9d8(0x128));return _0x5b8429[_0x49d9d8(0x127)]=_0x5c8964,_0x5b8429[_0x49d9d8(0x136)]=_0x49d9d8(0x13b),_0x5b8429;}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 _0x1ba5(_0x199d84,_0x2b75c7){const _0x4c7227=_0x4c72();return _0x1ba5=function(_0x1ba534,_0x4395ef){_0x1ba534=_0x1ba534-0x191;let _0x18ec19=_0x4c7227[_0x1ba534];return _0x18ec19;},_0x1ba5(_0x199d84,_0x2b75c7);}(function(_0x1baaf9,_0x19e553){const _0x2c1e51=_0x1ba5,_0x364084=_0x1baaf9();while(!![]){try{const _0x1428fb=parseInt(_0x2c1e51(0x1ba))/0x1+-parseInt(_0x2c1e51(0x1ab))/0x2+parseInt(_0x2c1e51(0x1bd))/0x3*(parseInt(_0x2c1e51(0x1c5))/0x4)+parseInt(_0x2c1e51(0x1c1))/0x5*(-parseInt(_0x2c1e51(0x195))/0x6)+parseInt(_0x2c1e51(0x192))/0x7+-parseInt(_0x2c1e51(0x1a9))/0x8*(parseInt(_0x2c1e51(0x1a1))/0x9)+-parseInt(_0x2c1e51(0x1a5))/0xa*(-parseInt(_0x2c1e51(0x1b4))/0xb);if(_0x1428fb===_0x19e553)break;else _0x364084['push'](_0x364084['shift']());}catch(_0x42d55c){_0x364084['push'](_0x364084['shift']());}}}(_0x4c72,0xe9e83),function(_0x4e7c1c,_0x31b75b){const _0x12c4b8=_0x1ba5;typeof exports=='object'&&typeof module<'u'?_0x31b75b(exports):typeof define==_0x12c4b8(0x1bc)&&define[_0x12c4b8(0x1b5)]?define(['exports'],_0x31b75b):(_0x4e7c1c=typeof globalThis<'u'?globalThis:_0x4e7c1c||self,_0x31b75b(_0x4e7c1c[_0x12c4b8(0x1a3)]={}));}(this,function(_0x14b3de){'use strict';const _0x36c129=_0x1ba5;var _0x1b8109=(_0x21a5f6=>(_0x21a5f6[_0x36c129(0x1ae)]='Letter',_0x21a5f6[_0x36c129(0x1b8)]=_0x36c129(0x1b8),_0x21a5f6[_0x36c129(0x1c2)]=_0x36c129(0x1c2),_0x21a5f6[_0x36c129(0x1b7)]='Statement',_0x21a5f6[_0x36c129(0x19e)]='Executive',_0x21a5f6[_0x36c129(0x1a8)]=_0x36c129(0x1a8),_0x21a5f6['A3']='A3',_0x21a5f6['A4']='A4',_0x21a5f6['A5']='A5',_0x21a5f6['B4']='B4',_0x21a5f6['B5']='B5',_0x21a5f6))(_0x1b8109||{}),_0x11cbdb=(_0xa9d75b=>(_0xa9d75b[_0x36c129(0x1a7)]=_0x36c129(0x1a7),_0xa9d75b[_0x36c129(0x1b3)]=_0x36c129(0x1b3),_0xa9d75b))(_0x11cbdb||{}),_0x4a0209=(_0x1e6bd3=>(_0x1e6bd3[_0x36c129(0x19b)]='Origin',_0x1e6bd3['FitWidth']='FitWidth',_0x1e6bd3[_0x36c129(0x1ad)]=_0x36c129(0x1ad),_0x1e6bd3[_0x36c129(0x193)]=_0x36c129(0x193),_0x1e6bd3['Custom']='Custom',_0x1e6bd3))(_0x4a0209||{}),_0x4b72dd=(_0x134b38=>(_0x134b38[_0x36c129(0x1c0)]=_0x36c129(0x1c0),_0x134b38[_0x36c129(0x1af)]=_0x36c129(0x1af),_0x134b38[_0x36c129(0x1b9)]='Middle',_0x134b38))(_0x4b72dd||{}),_0x17246e=(_0xabf76d=>(_0xabf76d['Normal']=_0x36c129(0x1c4),_0xabf76d[_0x36c129(0x198)]='Narrow',_0xabf76d[_0x36c129(0x1b6)]=_0x36c129(0x1b6),_0xabf76d[_0x36c129(0x199)]=_0x36c129(0x199),_0xabf76d))(_0x17246e||{});const _0x4ca2ef={[_0x1b8109['A3']]:{'w':0x463,'h':0x633},[_0x1b8109['A4']]:{'w':0x31a,'h':0x464},[_0x1b8109['A5']]:{'w':0x22f,'h':0x31a},[_0x1b8109['B4']]:{'w':0x3b0,'h':0x540},[_0x1b8109['B5']]:{'w':0x299,'h':0x3b0},[_0x1b8109[_0x36c129(0x19e)]]:{'w':0x2b8,'h':0x3f0},[_0x1b8109[_0x36c129(0x1a8)]]:{'w':0x330,'h':0x4e0},[_0x1b8109[_0x36c129(0x1c2)]]:{'w':0x330,'h':0x540},[_0x1b8109[_0x36c129(0x1ae)]]:{'w':0x330,'h':0x420},[_0x1b8109[_0x36c129(0x1b7)]]:{'w':0x210,'h':0x330},[_0x1b8109[_0x36c129(0x1b8)]]:{'w':0x420,'h':0x660}},_0x1988d5={[_0x17246e[_0x36c129(0x1c4)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x17246e['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x17246e[_0x36c129(0x1b6)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x17246e[_0x36c129(0x199)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x1b42f6=_0x36c129(0x19c),_0x103ccc='printing-canvas';function _0x5dad13(_0x4529ea,_0x32e73b){const _0x5ca333=_0x36c129,{w:_0x31a281,h:_0x1c49e2}=_0x4ca2ef[_0x4529ea],_0x575149=_0x32e73b===_0x11cbdb['Portrait']?_0x31a281:_0x1c49e2,_0x680c12=_0x32e73b===_0x11cbdb[_0x5ca333(0x1a7)]?_0x1c49e2:_0x31a281,_0x115a80=_0x5ca333(0x1c6)+_0x575149+'px\x20'+_0x680c12+_0x5ca333(0x19a)+_0x1b42f6+_0x5ca333(0x19f)+_0x1b42f6+'\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.'+_0x103ccc+_0x5ca333(0x1a2)+_0x680c12+_0x5ca333(0x1aa)+_0x575149+_0x5ca333(0x1b2),_0x246d94=document['createElement'](_0x5ca333(0x1a4));return _0x246d94[_0x5ca333(0x1b0)]=_0x115a80,_0x246d94[_0x5ca333(0x1b1)]=_0x5ca333(0x1bf),_0x246d94;}_0x14b3de[_0x36c129(0x1c3)]=_0x103ccc,_0x14b3de['PRINT_CONTAINER_CLASS']=_0x1b42f6,_0x14b3de[_0x36c129(0x1a0)]=_0x1988d5,_0x14b3de[_0x36c129(0x19d)]=_0x4ca2ef,_0x14b3de['PrintAlign']=_0x4b72dd,_0x14b3de[_0x36c129(0x197)]=_0x11cbdb,_0x14b3de[_0x36c129(0x1be)]=_0x17246e,_0x14b3de[_0x36c129(0x194)]=_0x1b8109,_0x14b3de[_0x36c129(0x1ac)]=_0x4a0209,_0x14b3de[_0x36c129(0x1bb)]=_0x5dad13,Object[_0x36c129(0x196)](_0x14b3de,Symbol[_0x36c129(0x191)],{'value':_0x36c129(0x1a6)});}));function _0x4c72(){const _0x1d3acc=['Start','5PzWykz','Legal','PRINT_CANVAS_CLASS','Normal','4VGOrPR','\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','toStringTag','1396878VCPMXf','FitPage','PrintPaperSize','4275558gqLvKy','defineProperty','PrintDirection','Narrow','None','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','printing-canvas-container','PaperSizePxMap','Executive',',\x20.','PaperMarginMap','6045201DgSqwu','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','UniverProPrint','style','490nKydTl','Module','Portrait','Folio','16sRkdui','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','3789018LVWGvf','PrintScale','FitHeight','Letter','End','innerHTML','className','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Landscape','573441YxWzkq','amd','Wide','Statement','Tabloid','Middle','1870861YmJXaQ','createPrintStyle','function','851187jxEpbz','PrintPaperMargin','offline-printing-css'];_0x4c72=function(){return _0x1d3acc;};return _0x4c72();}
|
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-nightly.202503151606",
|
|
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",
|