@univerjs-pro/print 0.5.2 → 0.5.3-experimental.20250106-4af1f4e
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 _0x294f84=_0x8fcb;(function(_0x3ad112,_0xa7d296){const _0x52f759=_0x8fcb,_0x2acfbc=_0x3ad112();while(!![]){try{const _0x1c33fe=-parseInt(_0x52f759(0xc6))/0x1*(-parseInt(_0x52f759(0xdc))/0x2)+-parseInt(_0x52f759(0xde))/0x3+parseInt(_0x52f759(0xda))/0x4+-parseInt(_0x52f759(0xce))/0x5*(parseInt(_0x52f759(0xae))/0x6)+parseInt(_0x52f759(0xd8))/0x7+parseInt(_0x52f759(0xdd))/0x8+parseInt(_0x52f759(0xcc))/0x9;if(_0x1c33fe===_0xa7d296)break;else _0x2acfbc['push'](_0x2acfbc['shift']());}catch(_0x4e91df){_0x2acfbc['push'](_0x2acfbc['shift']());}}}(_0x1114,0x80cae));Object[_0x294f84(0xbd)](exports,Symbol['toStringTag'],{'value':_0x294f84(0xc1)});var e=(_0x39eacd=>(_0x39eacd[_0x294f84(0xc7)]=_0x294f84(0xc7),_0x39eacd[_0x294f84(0xb1)]='Tabloid',_0x39eacd[_0x294f84(0xba)]='Legal',_0x39eacd['Statement']=_0x294f84(0xca),_0x39eacd[_0x294f84(0xd6)]=_0x294f84(0xd6),_0x39eacd[_0x294f84(0xb6)]=_0x294f84(0xb6),_0x39eacd['A3']='A3',_0x39eacd['A4']='A4',_0x39eacd['A5']='A5',_0x39eacd['B4']='B4',_0x39eacd['B5']='B5',_0x39eacd))(e||{}),i=(_0x40340b=>(_0x40340b[_0x294f84(0xd7)]=_0x294f84(0xd7),_0x40340b[_0x294f84(0xd2)]='Landscape',_0x40340b))(i||{}),c=(_0x3f085f=>(_0x3f085f[_0x294f84(0xaf)]=_0x294f84(0xaf),_0x3f085f[_0x294f84(0xc3)]=_0x294f84(0xc3),_0x3f085f['FitHeight']=_0x294f84(0xc0),_0x3f085f[_0x294f84(0xcf)]=_0x294f84(0xcf),_0x3f085f['Custom']=_0x294f84(0xc8),_0x3f085f))(c||{}),g=(_0x1d3532=>(_0x1d3532[_0x294f84(0xcb)]=_0x294f84(0xcb),_0x1d3532[_0x294f84(0xd4)]=_0x294f84(0xd4),_0x1d3532['Middle']=_0x294f84(0xb3),_0x1d3532))(g||{}),o=(_0x4d548e=>(_0x4d548e[_0x294f84(0xb4)]=_0x294f84(0xb4),_0x4d548e['Narrow']=_0x294f84(0xcd),_0x4d548e['Wide']=_0x294f84(0xb7),_0x4d548e[_0x294f84(0xc4)]='None',_0x4d548e))(o||{});function _0x8fcb(_0x1b110a,_0x2c7e34){const _0x111478=_0x1114();return _0x8fcb=function(_0x8fcbd1,_0x5f8034){_0x8fcbd1=_0x8fcbd1-0xae;let _0x3e54db=_0x111478[_0x8fcbd1];return _0x3e54db;},_0x8fcb(_0x1b110a,_0x2c7e34);}function _0x1114(){const _0x21985d=['2563512hplONl','2862588IUYggb','1950pydfSc','Origin','printing-canvas-container','Tabloid',',\x20.','Middle','Normal','style','Folio','Wide','createPrintStyle','\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','\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;\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.','defineProperty','\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.','PRINT_CANVAS_CLASS','FitHeight','Module','PaperMarginMap','FitWidth','None','PrintPaperSize','135283cxWUyP','Letter','Custom','PrintDirection','Statement','Start','4967946pgDzBC','Narrow','7335yPpScS','FitPage','className','offline-printing-css','Landscape','printing-canvas','End','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Executive','Portrait','1214899aChMCS','PrintPaperMargin','1485532ePNudJ','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','8tqgbeU'];_0x1114=function(){return _0x21985d;};return _0x1114();}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[_0x294f84(0xd6)]]:{'w':0x2b8,'h':0x3f0},[e['Folio']]:{'w':0x330,'h':0x4e0},[e[_0x294f84(0xba)]]:{'w':0x330,'h':0x540},[e[_0x294f84(0xc7)]]:{'w':0x330,'h':0x420},[e[_0x294f84(0xca)]]:{'w':0x210,'h':0x330},[e['Tabloid']]:{'w':0x420,'h':0x660}},N={[o[_0x294f84(0xb4)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x294f84(0xcd)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x294f84(0xb7)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x294f84(0xc4)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x294f84(0xb0),p=_0x294f84(0xd3);function A(_0x16126a,_0x438551){const _0x49c851=_0x294f84,{w:_0x12d300,h:_0x2c6860}=m[_0x16126a],_0x805129=_0x438551===i[_0x49c851(0xd7)]?_0x12d300:_0x2c6860,_0x5057a3=_0x438551===i[_0x49c851(0xd7)]?_0x2c6860:_0x12d300,_0x374db2=_0x49c851(0xbb)+_0x805129+'px\x20'+_0x5057a3+_0x49c851(0xbc)+n+_0x49c851(0xb2)+n+_0x49c851(0xbe)+p+_0x49c851(0xb9)+_0x5057a3+_0x49c851(0xd5)+_0x805129+_0x49c851(0xdb),_0x5a0ce9=document['createElement'](_0x49c851(0xb5));return _0x5a0ce9['innerHTML']=_0x374db2,_0x5a0ce9[_0x49c851(0xd0)]=_0x49c851(0xd1),_0x5a0ce9;}exports[_0x294f84(0xbf)]=p,exports['PRINT_CONTAINER_CLASS']=n,exports[_0x294f84(0xc2)]=N,exports['PaperSizePxMap']=m,exports['PrintAlign']=g,exports[_0x294f84(0xc9)]=i,exports[_0x294f84(0xd9)]=o,exports[_0x294f84(0xc5)]=e,exports['PrintScale']=c,exports[_0x294f84(0xb8)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x18371d=_0x49e6;function _0x49e6(_0x2b423e,_0xcabaaf){const _0x4d9907=_0x4d99();return _0x49e6=function(_0x49e61a,_0x4ba547){_0x49e61a=_0x49e61a-0x1db;let _0x462202=_0x4d9907[_0x49e61a];return _0x462202;},_0x49e6(_0x2b423e,_0xcabaaf);}(function(_0x1bb89a,_0x56f224){const _0x573b80=_0x49e6,_0x670c30=_0x1bb89a();while(!![]){try{const _0x5a7300=-parseInt(_0x573b80(0x1fc))/0x1*(parseInt(_0x573b80(0x1ee))/0x2)+parseInt(_0x573b80(0x1dd))/0x3+-parseInt(_0x573b80(0x1ea))/0x4+parseInt(_0x573b80(0x1f3))/0x5*(parseInt(_0x573b80(0x1df))/0x6)+-parseInt(_0x573b80(0x1de))/0x7*(parseInt(_0x573b80(0x1fd))/0x8)+-parseInt(_0x573b80(0x1f1))/0x9+parseInt(_0x573b80(0x1e6))/0xa;if(_0x5a7300===_0x56f224)break;else _0x670c30['push'](_0x670c30['shift']());}catch(_0x3d2a10){_0x670c30['push'](_0x670c30['shift']());}}}(_0x4d99,0x1dc3e));var o=(_0xce62db=>(_0xce62db[_0x18371d(0x1fb)]=_0x18371d(0x1fb),_0xce62db[_0x18371d(0x1e2)]=_0x18371d(0x1e2),_0xce62db[_0x18371d(0x1e5)]=_0x18371d(0x1e5),_0xce62db['Statement']=_0x18371d(0x1f2),_0xce62db['Executive']=_0x18371d(0x1e7),_0xce62db[_0x18371d(0x1e8)]=_0x18371d(0x1e8),_0xce62db['A3']='A3',_0xce62db['A4']='A4',_0xce62db['A5']='A5',_0xce62db['B4']='B4',_0xce62db['B5']='B5',_0xce62db))(o||{}),i=(_0x10519d=>(_0x10519d[_0x18371d(0x1e0)]=_0x18371d(0x1e0),_0x10519d[_0x18371d(0x1ed)]='Landscape',_0x10519d))(i||{}),w=(_0xc5776b=>(_0xc5776b[_0x18371d(0x1f8)]=_0x18371d(0x1f8),_0xc5776b[_0x18371d(0x206)]=_0x18371d(0x206),_0xc5776b['FitHeight']=_0x18371d(0x1f5),_0xc5776b[_0x18371d(0x204)]=_0x18371d(0x204),_0xc5776b['Custom']=_0x18371d(0x1f9),_0xc5776b))(w||{}),m=(_0x18a0b4=>(_0x18a0b4[_0x18371d(0x1dc)]=_0x18371d(0x1dc),_0x18a0b4[_0x18371d(0x205)]=_0x18371d(0x205),_0x18a0b4[_0x18371d(0x200)]=_0x18371d(0x200),_0x18a0b4))(m||{}),e=(_0x50efa6=>(_0x50efa6[_0x18371d(0x1fa)]=_0x18371d(0x1fa),_0x50efa6[_0x18371d(0x1fe)]=_0x18371d(0x1fe),_0x50efa6['Wide']='Wide',_0x50efa6[_0x18371d(0x1f6)]=_0x18371d(0x1f6),_0x50efa6))(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['Executive']]:{'w':0x2b8,'h':0x3f0},[o[_0x18371d(0x1e8)]]:{'w':0x330,'h':0x4e0},[o[_0x18371d(0x1e5)]]:{'w':0x330,'h':0x540},[o['Letter']]:{'w':0x330,'h':0x420},[o['Statement']]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e[_0x18371d(0x1fa)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x18371d(0x1fe)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x18371d(0x1ef)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x18371d(0x1f6)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x18371d(0x201),p=_0x18371d(0x1e9);function N(_0x2443b9,_0x5d49fc){const _0x110502=_0x18371d,{w:_0x274361,h:_0x18a151}=g[_0x2443b9],_0x2fd39e=_0x5d49fc===i[_0x110502(0x1e0)]?_0x274361:_0x18a151,_0x1f5642=_0x5d49fc===i[_0x110502(0x1e0)]?_0x18a151:_0x274361,_0x4bdcd1=_0x110502(0x1ec)+_0x2fd39e+_0x110502(0x1eb)+_0x1f5642+_0x110502(0x203)+l+_0x110502(0x1f4)+l+_0x110502(0x1e3)+p+_0x110502(0x202)+_0x1f5642+_0x110502(0x1f0)+_0x2fd39e+_0x110502(0x1ff),_0x3043e2=document[_0x110502(0x1e4)](_0x110502(0x1e1));return _0x3043e2['innerHTML']=_0x4bdcd1,_0x3043e2[_0x110502(0x1db)]=_0x110502(0x1f7),_0x3043e2;}function _0x4d99(){const _0x272462=['7506qNlDlI','Wide','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','513576nfROeC','Statement','15vZPCQG',',\x20.','FitHeight','None','offline-printing-css','Origin','Custom','Normal','Letter','31ruDtrS','1209544elhwlb','Narrow','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Middle','printing-canvas-container','\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.','FitPage','End','FitWidth','className','Start','426543UPmEFY','7sUwDWv','292038GOZljo','Portrait','style','Tabloid','\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.','createElement','Legal','2645270bctyVW','Executive','Folio','printing-canvas','424836IKNNyo','px\x20','\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','Landscape'];_0x4d99=function(){return _0x272462;};return _0x4d99();}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 _0x21cf(_0x69d080,_0x3aad44){const _0x32200e=_0x3220();return _0x21cf=function(_0x21cfbd,_0x40610c){_0x21cfbd=_0x21cfbd-0x100;let _0x2b2aea=_0x32200e[_0x21cfbd];return _0x2b2aea;},_0x21cf(_0x69d080,_0x3aad44);}(function(_0x2eb982,_0x3f58f8){const _0x576a3b=_0x21cf,_0x27b31c=_0x2eb982();while(!![]){try{const _0x53e3b8=parseInt(_0x576a3b(0x134))/0x1*(parseInt(_0x576a3b(0x114))/0x2)+-parseInt(_0x576a3b(0x138))/0x3*(-parseInt(_0x576a3b(0x123))/0x4)+parseInt(_0x576a3b(0x129))/0x5+-parseInt(_0x576a3b(0x12f))/0x6*(parseInt(_0x576a3b(0x118))/0x7)+-parseInt(_0x576a3b(0x135))/0x8*(-parseInt(_0x576a3b(0x127))/0x9)+parseInt(_0x576a3b(0x11c))/0xa*(-parseInt(_0x576a3b(0x10f))/0xb)+-parseInt(_0x576a3b(0x125))/0xc*(parseInt(_0x576a3b(0x130))/0xd);if(_0x53e3b8===_0x3f58f8)break;else _0x27b31c['push'](_0x27b31c['shift']());}catch(_0x4e84e5){_0x27b31c['push'](_0x27b31c['shift']());}}}(_0x3220,0x7f3a3),function(_0x105373,_0x4bc861){const _0x47caf9=_0x21cf;typeof exports==_0x47caf9(0x110)&&typeof module<'u'?_0x4bc861(exports):typeof define==_0x47caf9(0x136)&&define['amd']?define([_0x47caf9(0x109)],_0x4bc861):(_0x105373=typeof globalThis<'u'?globalThis:_0x105373||self,_0x4bc861(_0x105373[_0x47caf9(0x120)]={}));}(this,function(_0x445614){'use strict';const _0x23e88c=_0x21cf;var _0x7892ba=(_0x26c3a0=>(_0x26c3a0['Letter']=_0x23e88c(0x105),_0x26c3a0[_0x23e88c(0x103)]='Tabloid',_0x26c3a0['Legal']=_0x23e88c(0x12e),_0x26c3a0[_0x23e88c(0x108)]=_0x23e88c(0x108),_0x26c3a0[_0x23e88c(0x11e)]='Executive',_0x26c3a0[_0x23e88c(0x124)]='Folio',_0x26c3a0['A3']='A3',_0x26c3a0['A4']='A4',_0x26c3a0['A5']='A5',_0x26c3a0['B4']='B4',_0x26c3a0['B5']='B5',_0x26c3a0))(_0x7892ba||{}),_0x4632d4=(_0x302176=>(_0x302176['Portrait']='Portrait',_0x302176['Landscape']=_0x23e88c(0x117),_0x302176))(_0x4632d4||{}),_0x12cb6a=(_0x37c5de=>(_0x37c5de[_0x23e88c(0x102)]=_0x23e88c(0x102),_0x37c5de[_0x23e88c(0x10d)]='FitWidth',_0x37c5de[_0x23e88c(0x115)]=_0x23e88c(0x115),_0x37c5de['FitPage']=_0x23e88c(0x137),_0x37c5de[_0x23e88c(0x113)]=_0x23e88c(0x113),_0x37c5de))(_0x12cb6a||{}),_0x398cd3=(_0x5429df=>(_0x5429df[_0x23e88c(0x11a)]=_0x23e88c(0x11a),_0x5429df[_0x23e88c(0x139)]=_0x23e88c(0x139),_0x5429df[_0x23e88c(0x12a)]='Middle',_0x5429df))(_0x398cd3||{}),_0x590a27=(_0x1c7fad=>(_0x1c7fad[_0x23e88c(0x100)]='Normal',_0x1c7fad[_0x23e88c(0x10a)]='Narrow',_0x1c7fad[_0x23e88c(0x119)]=_0x23e88c(0x119),_0x1c7fad[_0x23e88c(0x126)]='None',_0x1c7fad))(_0x590a27||{});const _0x1b9aa4={[_0x7892ba['A3']]:{'w':0x463,'h':0x633},[_0x7892ba['A4']]:{'w':0x31a,'h':0x464},[_0x7892ba['A5']]:{'w':0x22f,'h':0x31a},[_0x7892ba['B4']]:{'w':0x3b0,'h':0x540},[_0x7892ba['B5']]:{'w':0x299,'h':0x3b0},[_0x7892ba[_0x23e88c(0x11e)]]:{'w':0x2b8,'h':0x3f0},[_0x7892ba[_0x23e88c(0x124)]]:{'w':0x330,'h':0x4e0},[_0x7892ba[_0x23e88c(0x12e)]]:{'w':0x330,'h':0x540},[_0x7892ba[_0x23e88c(0x105)]]:{'w':0x330,'h':0x420},[_0x7892ba[_0x23e88c(0x108)]]:{'w':0x210,'h':0x330},[_0x7892ba[_0x23e88c(0x103)]]:{'w':0x420,'h':0x660}},_0x37816={[_0x590a27[_0x23e88c(0x100)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x590a27['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x590a27[_0x23e88c(0x119)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x590a27['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x11ba88=_0x23e88c(0x12c),_0x1b1931=_0x23e88c(0x107);function _0x4646d5(_0x5870e8,_0x537af7){const _0x963ab9=_0x23e88c,{w:_0x2cf59d,h:_0x17b801}=_0x1b9aa4[_0x5870e8],_0x475eea=_0x537af7===_0x4632d4[_0x963ab9(0x133)]?_0x2cf59d:_0x17b801,_0x1b2597=_0x537af7===_0x4632d4[_0x963ab9(0x133)]?_0x17b801:_0x2cf59d,_0x563273=_0x963ab9(0x132)+_0x475eea+'px\x20'+_0x1b2597+_0x963ab9(0x104)+_0x11ba88+_0x963ab9(0x11d)+_0x11ba88+_0x963ab9(0x10c)+_0x1b1931+_0x963ab9(0x131)+_0x1b2597+_0x963ab9(0x112)+_0x475eea+_0x963ab9(0x122),_0x14d877=document['createElement']('style');return _0x14d877[_0x963ab9(0x111)]=_0x563273,_0x14d877[_0x963ab9(0x11b)]=_0x963ab9(0x121),_0x14d877;}_0x445614[_0x23e88c(0x116)]=_0x1b1931,_0x445614['PRINT_CONTAINER_CLASS']=_0x11ba88,_0x445614[_0x23e88c(0x12b)]=_0x37816,_0x445614[_0x23e88c(0x10b)]=_0x1b9aa4,_0x445614[_0x23e88c(0x12d)]=_0x398cd3,_0x445614[_0x23e88c(0x106)]=_0x4632d4,_0x445614['PrintPaperMargin']=_0x590a27,_0x445614[_0x23e88c(0x11f)]=_0x7892ba,_0x445614['PrintScale']=_0x12cb6a,_0x445614[_0x23e88c(0x10e)]=_0x4646d5,Object[_0x23e88c(0x101)](_0x445614,Symbol['toStringTag'],{'value':_0x23e88c(0x128)});}));function _0x3220(){const _0x4adbed=['3524VSmIFO','Folio','120864XhCjCJ','None','54jwoDyL','Module','4132250dPWFbN','Middle','PaperMarginMap','printing-canvas-container','PrintAlign','Legal','60ZIHyxZ','1417SLQyuU','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','\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','34kbaFaH','400648uyPVIP','function','FitPage','2505zPODTl','End','Normal','defineProperty','Origin','Tabloid','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.','Letter','PrintDirection','printing-canvas','Statement','exports','Narrow','PaperSizePxMap','\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.','FitWidth','createPrintStyle','3845534bNQUmp','object','innerHTML','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Custom','7972pBCZPO','FitHeight','PRINT_CANVAS_CLASS','Landscape','20671CHIQRJ','Wide','Start','className','10urQWcg',',\x20.','Executive','PrintPaperSize','UniverProPrint','offline-printing-css','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}'];_0x3220=function(){return _0x4adbed;};return _0x3220();}
|
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-4af1f4e",
|
|
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",
|