@univerjs-pro/print 0.5.2 → 0.5.3-nightly.202501041605
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 _0x4e65f2=_0x57ee;(function(_0x538e62,_0xfb11d1){const _0xde1cd7=_0x57ee,_0x2c056e=_0x538e62();while(!![]){try{const _0x1ad11d=-parseInt(_0xde1cd7(0x171))/0x1*(-parseInt(_0xde1cd7(0x17b))/0x2)+parseInt(_0xde1cd7(0x178))/0x3+parseInt(_0xde1cd7(0x18a))/0x4+-parseInt(_0xde1cd7(0x183))/0x5+parseInt(_0xde1cd7(0x170))/0x6*(parseInt(_0xde1cd7(0x18e))/0x7)+parseInt(_0xde1cd7(0x17d))/0x8+parseInt(_0xde1cd7(0x16b))/0x9*(-parseInt(_0xde1cd7(0x175))/0xa);if(_0x1ad11d===_0xfb11d1)break;else _0x2c056e['push'](_0x2c056e['shift']());}catch(_0x453ad1){_0x2c056e['push'](_0x2c056e['shift']());}}}(_0x434a,0xda1d9));Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x4e65f2(0x192)});function _0x57ee(_0x17e0da,_0x1ca7e1){const _0x434add=_0x434a();return _0x57ee=function(_0x57ee30,_0x42977e){_0x57ee30=_0x57ee30-0x164;let _0x23d2a9=_0x434add[_0x57ee30];return _0x23d2a9;},_0x57ee(_0x17e0da,_0x1ca7e1);}var e=(_0x184d60=>(_0x184d60['Letter']=_0x4e65f2(0x182),_0x184d60[_0x4e65f2(0x16a)]=_0x4e65f2(0x16a),_0x184d60[_0x4e65f2(0x195)]=_0x4e65f2(0x195),_0x184d60[_0x4e65f2(0x16d)]=_0x4e65f2(0x16d),_0x184d60[_0x4e65f2(0x181)]=_0x4e65f2(0x181),_0x184d60[_0x4e65f2(0x165)]=_0x4e65f2(0x165),_0x184d60['A3']='A3',_0x184d60['A4']='A4',_0x184d60['A5']='A5',_0x184d60['B4']='B4',_0x184d60['B5']='B5',_0x184d60))(e||{}),i=(_0x5e5044=>(_0x5e5044[_0x4e65f2(0x18c)]=_0x4e65f2(0x18c),_0x5e5044[_0x4e65f2(0x16c)]=_0x4e65f2(0x16c),_0x5e5044))(i||{}),c=(_0x17f411=>(_0x17f411[_0x4e65f2(0x17c)]=_0x4e65f2(0x17c),_0x17f411['FitWidth']=_0x4e65f2(0x173),_0x17f411[_0x4e65f2(0x172)]=_0x4e65f2(0x172),_0x17f411['FitPage']=_0x4e65f2(0x16e),_0x17f411[_0x4e65f2(0x184)]=_0x4e65f2(0x184),_0x17f411))(c||{}),g=(_0x2e988e=>(_0x2e988e[_0x4e65f2(0x198)]=_0x4e65f2(0x198),_0x2e988e['End']=_0x4e65f2(0x188),_0x2e988e['Middle']=_0x4e65f2(0x18f),_0x2e988e))(g||{}),o=(_0x5a8ec=>(_0x5a8ec[_0x4e65f2(0x169)]=_0x4e65f2(0x169),_0x5a8ec[_0x4e65f2(0x180)]='Narrow',_0x5a8ec[_0x4e65f2(0x17f)]=_0x4e65f2(0x17f),_0x5a8ec['None']=_0x4e65f2(0x18d),_0x5a8ec))(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[_0x4e65f2(0x181)]]:{'w':0x2b8,'h':0x3f0},[e[_0x4e65f2(0x165)]]:{'w':0x330,'h':0x4e0},[e[_0x4e65f2(0x195)]]:{'w':0x330,'h':0x540},[e[_0x4e65f2(0x182)]]:{'w':0x330,'h':0x420},[e[_0x4e65f2(0x16d)]]:{'w':0x210,'h':0x330},[e['Tabloid']]:{'w':0x420,'h':0x660}},N={[o[_0x4e65f2(0x169)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x4e65f2(0x180)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x4e65f2(0x174),p=_0x4e65f2(0x189);function A(_0x4b2ee5,_0x23c0a4){const _0x2ca0f7=_0x4e65f2,{w:_0x25e84f,h:_0x33cdf4}=m[_0x4b2ee5],_0x2bd539=_0x23c0a4===i[_0x2ca0f7(0x18c)]?_0x25e84f:_0x33cdf4,_0x507f7d=_0x23c0a4===i[_0x2ca0f7(0x18c)]?_0x33cdf4:_0x25e84f,_0x47065d=_0x2ca0f7(0x194)+_0x2bd539+_0x2ca0f7(0x179)+_0x507f7d+_0x2ca0f7(0x191)+n+',\x20.'+n+_0x2ca0f7(0x18b)+p+_0x2ca0f7(0x17e)+_0x507f7d+_0x2ca0f7(0x166)+_0x2bd539+_0x2ca0f7(0x196),_0x506f5e=document[_0x2ca0f7(0x190)](_0x2ca0f7(0x177));return _0x506f5e[_0x2ca0f7(0x176)]=_0x47065d,_0x506f5e[_0x2ca0f7(0x186)]=_0x2ca0f7(0x199),_0x506f5e;}function _0x434a(){const _0x2c1ef3=['2972180gguLpq','\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.','Portrait','None','8591450xsVeId','Middle','createElement','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','PaperMarginMap','\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','Legal','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','PRINT_CANVAS_CLASS','Start','offline-printing-css','PrintAlign','Folio','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PrintPaperMargin','PRINT_CONTAINER_CLASS','Normal','Tabloid','25850349dtkemm','Landscape','Statement','FitPage','PaperSizePxMap','6bAYHQY','10928LDAAVn','FitHeight','FitWidth','printing-canvas-container','10jeXeEs','innerHTML','style','2387361YVmJyO','px\x20','PrintDirection','94VxQIiw','Origin','5126224MYyXgf','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Wide','Narrow','Executive','Letter','774570PzpYwT','Custom','PrintScale','className','createPrintStyle','End','printing-canvas'];_0x434a=function(){return _0x2c1ef3;};return _0x434a();}exports[_0x4e65f2(0x197)]=p,exports[_0x4e65f2(0x168)]=n,exports[_0x4e65f2(0x193)]=N,exports[_0x4e65f2(0x16f)]=m,exports[_0x4e65f2(0x164)]=g,exports[_0x4e65f2(0x17a)]=i,exports[_0x4e65f2(0x167)]=o,exports['PrintPaperSize']=e,exports[_0x4e65f2(0x185)]=c,exports[_0x4e65f2(0x187)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x134ad1=_0xbc24;function _0xbc24(_0x50139b,_0x56ba9c){const _0x4e524b=_0x4e52();return _0xbc24=function(_0xbc24cc,_0xf1bf8f){_0xbc24cc=_0xbc24cc-0xff;let _0x3bb006=_0x4e524b[_0xbc24cc];return _0x3bb006;},_0xbc24(_0x50139b,_0x56ba9c);}(function(_0x583cfa,_0x25d131){const _0x44ed40=_0xbc24,_0x4567d2=_0x583cfa();while(!![]){try{const _0x1e503d=-parseInt(_0x44ed40(0x105))/0x1+parseInt(_0x44ed40(0x122))/0x2+parseInt(_0x44ed40(0x11c))/0x3*(-parseInt(_0x44ed40(0x10b))/0x4)+-parseInt(_0x44ed40(0x10f))/0x5+parseInt(_0x44ed40(0x116))/0x6*(-parseInt(_0x44ed40(0x100))/0x7)+-parseInt(_0x44ed40(0x121))/0x8+parseInt(_0x44ed40(0x110))/0x9;if(_0x1e503d===_0x25d131)break;else _0x4567d2['push'](_0x4567d2['shift']());}catch(_0x2c8cea){_0x4567d2['push'](_0x4567d2['shift']());}}}(_0x4e52,0x9fb3b));var o=(_0x4eb4e7=>(_0x4eb4e7[_0x134ad1(0x11d)]=_0x134ad1(0x11d),_0x4eb4e7[_0x134ad1(0x124)]=_0x134ad1(0x124),_0x4eb4e7[_0x134ad1(0x117)]=_0x134ad1(0x117),_0x4eb4e7[_0x134ad1(0x107)]='Statement',_0x4eb4e7[_0x134ad1(0x114)]=_0x134ad1(0x114),_0x4eb4e7[_0x134ad1(0x119)]=_0x134ad1(0x119),_0x4eb4e7['A3']='A3',_0x4eb4e7['A4']='A4',_0x4eb4e7['A5']='A5',_0x4eb4e7['B4']='B4',_0x4eb4e7['B5']='B5',_0x4eb4e7))(o||{}),i=(_0x15b278=>(_0x15b278[_0x134ad1(0x10a)]=_0x134ad1(0x10a),_0x15b278[_0x134ad1(0x11a)]='Landscape',_0x15b278))(i||{}),w=(_0x5d4aff=>(_0x5d4aff['Origin']=_0x134ad1(0x115),_0x5d4aff[_0x134ad1(0x112)]=_0x134ad1(0x112),_0x5d4aff[_0x134ad1(0x113)]=_0x134ad1(0x113),_0x5d4aff[_0x134ad1(0x120)]=_0x134ad1(0x120),_0x5d4aff[_0x134ad1(0x108)]=_0x134ad1(0x108),_0x5d4aff))(w||{}),m=(_0x4b72a3=>(_0x4b72a3['Start']=_0x134ad1(0x10d),_0x4b72a3[_0x134ad1(0x10c)]=_0x134ad1(0x10c),_0x4b72a3[_0x134ad1(0x103)]='Middle',_0x4b72a3))(m||{}),e=(_0xc0bdc=>(_0xc0bdc[_0x134ad1(0x11e)]=_0x134ad1(0x11e),_0xc0bdc[_0x134ad1(0x11b)]=_0x134ad1(0x11b),_0xc0bdc[_0x134ad1(0x118)]=_0x134ad1(0x118),_0xc0bdc[_0x134ad1(0x11f)]=_0x134ad1(0x11f),_0xc0bdc))(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[_0x134ad1(0x114)]]:{'w':0x2b8,'h':0x3f0},[o[_0x134ad1(0x119)]]:{'w':0x330,'h':0x4e0},[o[_0x134ad1(0x117)]]:{'w':0x330,'h':0x540},[o[_0x134ad1(0x11d)]]:{'w':0x330,'h':0x420},[o[_0x134ad1(0x107)]]:{'w':0x210,'h':0x330},[o[_0x134ad1(0x124)]]:{'w':0x420,'h':0x660}},v={[e[_0x134ad1(0x11e)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x134ad1(0x11b)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x134ad1(0x11f)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x134ad1(0x106),p='printing-canvas';function N(_0x3d57b5,_0x29800e){const _0x4eebe5=_0x134ad1,{w:_0x1c324f,h:_0x24cc95}=g[_0x3d57b5],_0x3769ba=_0x29800e===i['Portrait']?_0x1c324f:_0x24cc95,_0x57a13d=_0x29800e===i[_0x4eebe5(0x10a)]?_0x24cc95:_0x1c324f,_0x4a2522='\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'+_0x3769ba+_0x4eebe5(0x102)+_0x57a13d+_0x4eebe5(0x109)+l+_0x4eebe5(0x123)+l+_0x4eebe5(0x10e)+p+_0x4eebe5(0x125)+_0x57a13d+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x3769ba+_0x4eebe5(0x104),_0x2dfba8=document['createElement']('style');return _0x2dfba8[_0x4eebe5(0x111)]=_0x4a2522,_0x2dfba8[_0x4eebe5(0xff)]=_0x4eebe5(0x101),_0x2dfba8;}function _0x4e52(){const _0x2a0867=['Letter','Normal','None','FitPage','9168lGQWam','763518GXzfPp',',\x20.','Tabloid','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','className','7dYdsmM','offline-printing-css','px\x20','Middle','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','284886eRiwJm','printing-canvas-container','Statement','Custom','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','4RMewEc','End','Start','\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.','2551805IQTMvV','16810182qibuQg','innerHTML','FitWidth','FitHeight','Executive','Origin','3882258NSsSRf','Legal','Wide','Folio','Landscape','Narrow','455946uXykes'];_0x4e52=function(){return _0x2a0867;};return _0x4e52();}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 _0x57c5(_0x2f0ce0,_0x319c6a){const _0x3c194c=_0x3c19();return _0x57c5=function(_0x57c55e,_0x596f8e){_0x57c55e=_0x57c55e-0x1af;let _0xee1c36=_0x3c194c[_0x57c55e];return _0xee1c36;},_0x57c5(_0x2f0ce0,_0x319c6a);}(function(_0x1602d3,_0x42ccc4){const _0x3e7336=_0x57c5,_0x82f2=_0x1602d3();while(!![]){try{const _0x3f3592=-parseInt(_0x3e7336(0x1db))/0x1+-parseInt(_0x3e7336(0x1e5))/0x2+parseInt(_0x3e7336(0x1b8))/0x3+parseInt(_0x3e7336(0x1c2))/0x4+parseInt(_0x3e7336(0x1bb))/0x5+-parseInt(_0x3e7336(0x1d1))/0x6*(parseInt(_0x3e7336(0x1dc))/0x7)+parseInt(_0x3e7336(0x1bf))/0x8;if(_0x3f3592===_0x42ccc4)break;else _0x82f2['push'](_0x82f2['shift']());}catch(_0xae0cf9){_0x82f2['push'](_0x82f2['shift']());}}}(_0x3c19,0xe35f9),function(_0x4e9d3d,_0x456602){const _0x2e00a6=_0x57c5;typeof exports==_0x2e00a6(0x1ca)&&typeof module<'u'?_0x456602(exports):typeof define==_0x2e00a6(0x1c8)&&define[_0x2e00a6(0x1d3)]?define(['exports'],_0x456602):(_0x4e9d3d=typeof globalThis<'u'?globalThis:_0x4e9d3d||self,_0x456602(_0x4e9d3d[_0x2e00a6(0x1d7)]={}));}(this,function(_0x4ad1de){'use strict';const _0xf974a9=_0x57c5;var _0x58fcb1=(_0x2ffc8a=>(_0x2ffc8a[_0xf974a9(0x1bd)]='Letter',_0x2ffc8a[_0xf974a9(0x1df)]=_0xf974a9(0x1df),_0x2ffc8a[_0xf974a9(0x1b5)]='Legal',_0x2ffc8a[_0xf974a9(0x1cd)]='Statement',_0x2ffc8a[_0xf974a9(0x1dd)]=_0xf974a9(0x1dd),_0x2ffc8a['Folio']='Folio',_0x2ffc8a['A3']='A3',_0x2ffc8a['A4']='A4',_0x2ffc8a['A5']='A5',_0x2ffc8a['B4']='B4',_0x2ffc8a['B5']='B5',_0x2ffc8a))(_0x58fcb1||{}),_0x35f2ba=(_0x4e9d06=>(_0x4e9d06[_0xf974a9(0x1b7)]='Portrait',_0x4e9d06['Landscape']=_0xf974a9(0x1b9),_0x4e9d06))(_0x35f2ba||{}),_0x1067f9=(_0x400495=>(_0x400495[_0xf974a9(0x1d0)]=_0xf974a9(0x1d0),_0x400495[_0xf974a9(0x1e6)]=_0xf974a9(0x1e6),_0x400495[_0xf974a9(0x1d4)]=_0xf974a9(0x1d4),_0x400495[_0xf974a9(0x1de)]=_0xf974a9(0x1de),_0x400495['Custom']=_0xf974a9(0x1d8),_0x400495))(_0x1067f9||{}),_0x16789c=(_0x11f81f=>(_0x11f81f[_0xf974a9(0x1cb)]=_0xf974a9(0x1cb),_0x11f81f[_0xf974a9(0x1b6)]=_0xf974a9(0x1b6),_0x11f81f[_0xf974a9(0x1cf)]=_0xf974a9(0x1cf),_0x11f81f))(_0x16789c||{}),_0x4658e5=(_0x1781a7=>(_0x1781a7[_0xf974a9(0x1e0)]=_0xf974a9(0x1e0),_0x1781a7['Narrow']=_0xf974a9(0x1c0),_0x1781a7[_0xf974a9(0x1e2)]=_0xf974a9(0x1e2),_0x1781a7[_0xf974a9(0x1be)]=_0xf974a9(0x1be),_0x1781a7))(_0x4658e5||{});const _0x9a0a8e={[_0x58fcb1['A3']]:{'w':0x463,'h':0x633},[_0x58fcb1['A4']]:{'w':0x31a,'h':0x464},[_0x58fcb1['A5']]:{'w':0x22f,'h':0x31a},[_0x58fcb1['B4']]:{'w':0x3b0,'h':0x540},[_0x58fcb1['B5']]:{'w':0x299,'h':0x3b0},[_0x58fcb1[_0xf974a9(0x1dd)]]:{'w':0x2b8,'h':0x3f0},[_0x58fcb1[_0xf974a9(0x1c5)]]:{'w':0x330,'h':0x4e0},[_0x58fcb1['Legal']]:{'w':0x330,'h':0x540},[_0x58fcb1[_0xf974a9(0x1bd)]]:{'w':0x330,'h':0x420},[_0x58fcb1['Statement']]:{'w':0x210,'h':0x330},[_0x58fcb1[_0xf974a9(0x1df)]]:{'w':0x420,'h':0x660}},_0x228980={[_0x4658e5[_0xf974a9(0x1e0)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x4658e5[_0xf974a9(0x1c0)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x4658e5[_0xf974a9(0x1e2)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x4658e5[_0xf974a9(0x1be)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x1b98c9=_0xf974a9(0x1b0),_0x44017f='printing-canvas';function _0x4f9e4c(_0x3dc01f,_0x36ff02){const _0x4802a7=_0xf974a9,{w:_0x4c997f,h:_0x3bb483}=_0x9a0a8e[_0x3dc01f],_0x32a327=_0x36ff02===_0x35f2ba[_0x4802a7(0x1b7)]?_0x4c997f:_0x3bb483,_0x4ca254=_0x36ff02===_0x35f2ba['Portrait']?_0x3bb483:_0x4c997f,_0x3bd1c9=_0x4802a7(0x1b1)+_0x32a327+_0x4802a7(0x1e8)+_0x4ca254+_0x4802a7(0x1cc)+_0x1b98c9+_0x4802a7(0x1b2)+_0x1b98c9+_0x4802a7(0x1e7)+_0x44017f+_0x4802a7(0x1c4)+_0x4ca254+_0x4802a7(0x1c6)+_0x32a327+_0x4802a7(0x1d9),_0x273190=document['createElement'](_0x4802a7(0x1c9));return _0x273190[_0x4802a7(0x1ce)]=_0x3bd1c9,_0x273190[_0x4802a7(0x1e4)]=_0x4802a7(0x1da),_0x273190;}_0x4ad1de[_0xf974a9(0x1d6)]=_0x44017f,_0x4ad1de[_0xf974a9(0x1bc)]=_0x1b98c9,_0x4ad1de[_0xf974a9(0x1e1)]=_0x228980,_0x4ad1de[_0xf974a9(0x1d5)]=_0x9a0a8e,_0x4ad1de[_0xf974a9(0x1b3)]=_0x16789c,_0x4ad1de[_0xf974a9(0x1c3)]=_0x35f2ba,_0x4ad1de[_0xf974a9(0x1d2)]=_0x4658e5,_0x4ad1de[_0xf974a9(0x1c1)]=_0x58fcb1,_0x4ad1de[_0xf974a9(0x1af)]=_0x1067f9,_0x4ad1de[_0xf974a9(0x1b4)]=_0x4f9e4c,Object[_0xf974a9(0x1ba)](_0x4ad1de,Symbol[_0xf974a9(0x1c7)],{'value':_0xf974a9(0x1e3)});}));function _0x3c19(){const _0xf538af=['7bUFgOZ','Executive','FitPage','Tabloid','Normal','PaperMarginMap','Wide','Module','className','173354jmvRXa','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.','px\x20','PrintScale','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',',\x20.','PrintAlign','createPrintStyle','Legal','End','Portrait','5497317RRUjEr','Landscape','defineProperty','37270yrfIOA','PRINT_CONTAINER_CLASS','Letter','None','3163448tZLGhF','Narrow','PrintPaperSize','5583456kwxcIy','PrintDirection','\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','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','toStringTag','function','style','object','Start','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.','Statement','innerHTML','Middle','Origin','9481026AAfmLr','PrintPaperMargin','amd','FitHeight','PaperSizePxMap','PRINT_CANVAS_CLASS','UniverProPrint','Custom','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','offline-printing-css','1033019KVYgKH'];_0x3c19=function(){return _0xf538af;};return _0x3c19();}
|
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-nightly.202501041605",
|
|
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",
|