@univerjs-pro/print 0.5.5 → 0.6.0-alpha.0
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 _0x25807b=_0x11fa;(function(_0x56d047,_0x48e4e9){const _0x509807=_0x11fa,_0xb94384=_0x56d047();while(!![]){try{const _0x48b74e=parseInt(_0x509807(0x173))/0x1*(-parseInt(_0x509807(0x186))/0x2)+parseInt(_0x509807(0x169))/0x3*(-parseInt(_0x509807(0x176))/0x4)+-parseInt(_0x509807(0x17e))/0x5*(parseInt(_0x509807(0x185))/0x6)+parseInt(_0x509807(0x167))/0x7*(-parseInt(_0x509807(0x15c))/0x8)+parseInt(_0x509807(0x160))/0x9*(-parseInt(_0x509807(0x168))/0xa)+-parseInt(_0x509807(0x16e))/0xb*(-parseInt(_0x509807(0x188))/0xc)+parseInt(_0x509807(0x17a))/0xd*(parseInt(_0x509807(0x18e))/0xe);if(_0x48b74e===_0x48e4e9)break;else _0xb94384['push'](_0xb94384['shift']());}catch(_0x153217){_0xb94384['push'](_0xb94384['shift']());}}}(_0x3030,0x8e666));Object[_0x25807b(0x183)](exports,Symbol[_0x25807b(0x17f)],{'value':_0x25807b(0x175)});var e=(_0x391743=>(_0x391743[_0x25807b(0x162)]=_0x25807b(0x162),_0x391743[_0x25807b(0x18a)]=_0x25807b(0x18a),_0x391743[_0x25807b(0x161)]='Legal',_0x391743[_0x25807b(0x15f)]=_0x25807b(0x15f),_0x391743[_0x25807b(0x166)]=_0x25807b(0x166),_0x391743[_0x25807b(0x189)]=_0x25807b(0x189),_0x391743['A3']='A3',_0x391743['A4']='A4',_0x391743['A5']='A5',_0x391743['B4']='B4',_0x391743['B5']='B5',_0x391743))(e||{}),i=(_0x4983fa=>(_0x4983fa[_0x25807b(0x17b)]=_0x25807b(0x17b),_0x4983fa[_0x25807b(0x181)]='Landscape',_0x4983fa))(i||{}),c=(_0x44b7d4=>(_0x44b7d4[_0x25807b(0x18f)]=_0x25807b(0x18f),_0x44b7d4[_0x25807b(0x174)]=_0x25807b(0x174),_0x44b7d4[_0x25807b(0x177)]=_0x25807b(0x177),_0x44b7d4[_0x25807b(0x191)]='FitPage',_0x44b7d4[_0x25807b(0x15e)]='Custom',_0x44b7d4))(c||{}),g=(_0x768ded=>(_0x768ded[_0x25807b(0x16a)]=_0x25807b(0x16a),_0x768ded[_0x25807b(0x17c)]=_0x25807b(0x17c),_0x768ded['Middle']=_0x25807b(0x18d),_0x768ded))(g||{}),o=(_0x34f53f=>(_0x34f53f[_0x25807b(0x184)]=_0x25807b(0x184),_0x34f53f[_0x25807b(0x15d)]=_0x25807b(0x15d),_0x34f53f[_0x25807b(0x16c)]=_0x25807b(0x16c),_0x34f53f[_0x25807b(0x187)]=_0x25807b(0x187),_0x34f53f))(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[_0x25807b(0x166)]]:{'w':0x2b8,'h':0x3f0},[e[_0x25807b(0x189)]]:{'w':0x330,'h':0x4e0},[e['Legal']]:{'w':0x330,'h':0x540},[e[_0x25807b(0x162)]]:{'w':0x330,'h':0x420},[e[_0x25807b(0x15f)]]:{'w':0x210,'h':0x330},[e[_0x25807b(0x18a)]]:{'w':0x420,'h':0x660}},N={[o[_0x25807b(0x184)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x25807b(0x16c)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n='printing-canvas-container',p=_0x25807b(0x180);function _0x11fa(_0x4bf87a,_0x4c96eb){const _0x30307b=_0x3030();return _0x11fa=function(_0x11faf9,_0x31a885){_0x11faf9=_0x11faf9-0x15c;let _0x229ae6=_0x30307b[_0x11faf9];return _0x229ae6;},_0x11fa(_0x4bf87a,_0x4c96eb);}function A(_0x14c5c5,_0x5a71e1){const _0x54d6d2=_0x25807b,{w:_0x28655d,h:_0x11173d}=m[_0x14c5c5],_0x9d93d5=_0x5a71e1===i[_0x54d6d2(0x17b)]?_0x28655d:_0x11173d,_0xc6e6fa=_0x5a71e1===i['Portrait']?_0x11173d:_0x28655d,_0x4d8e71=_0x54d6d2(0x163)+_0x9d93d5+_0x54d6d2(0x16f)+_0xc6e6fa+'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.'+n+_0x54d6d2(0x165)+n+_0x54d6d2(0x171)+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'+_0xc6e6fa+_0x54d6d2(0x164)+_0x9d93d5+_0x54d6d2(0x17d),_0x3a71a4=document[_0x54d6d2(0x18c)](_0x54d6d2(0x16d));return _0x3a71a4['innerHTML']=_0x4d8e71,_0x3a71a4[_0x54d6d2(0x190)]='offline-printing-css',_0x3a71a4;}exports['PRINT_CANVAS_CLASS']=p,exports['PRINT_CONTAINER_CLASS']=n,exports[_0x25807b(0x178)]=N,exports[_0x25807b(0x182)]=m,exports[_0x25807b(0x172)]=g,exports[_0x25807b(0x16b)]=i,exports[_0x25807b(0x170)]=o,exports['PrintPaperSize']=e,exports[_0x25807b(0x18b)]=c,exports[_0x25807b(0x179)]=A;function _0x3030(){const _0xebd09f=['FitHeight','PaperMarginMap','createPrintStyle','132847dGkBAO','Portrait','End','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','139255dIbxtK','toStringTag','printing-canvas','Landscape','PaperSizePxMap','defineProperty','Normal','66ytzniD','17932UtcKCP','None','8340vsGbPZ','Folio','Tabloid','PrintScale','createElement','Middle','1932SNVClh','Origin','className','FitPage','11912aPllJC','Narrow','Custom','Statement','1770849VlnHZa','Legal','Letter','\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;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20',',\x20.','Executive','581hjLBVI','10KJWkYw','129XhEsBa','Start','PrintDirection','Wide','style','14366MBoNrD','px\x20','PrintPaperMargin','\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','79LBMGdO','FitWidth','Module','37172Uqvktm'];_0x3030=function(){return _0xebd09f;};return _0x3030();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x286f(){const _0x511f5e=['2130376CSRDYP','5PUWbFp','18rJemTX','Middle','printing-canvas','className','offline-printing-css','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','1619300AXfYWl','Portrait','Legal','865188aAUlEQ','196934cADBJD','Statement','Letter','Tabloid','Normal','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.','176trVbyH','Executive','Custom','style','End','Start','None','Landscape','Narrow','Origin','309460jLgmmv','285948hlQYxp','\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.','14ZeGjSQ','Folio','px\x20','Wide','FitWidth','FitHeight','289330zOwtaz','createElement'];_0x286f=function(){return _0x511f5e;};return _0x286f();}const _0x564ca8=_0x1ca9;(function(_0x342209,_0x69f255){const _0x58a614=_0x1ca9,_0x16cac7=_0x342209();while(!![]){try{const _0x51395d=parseInt(_0x58a614(0x19a))/0x1*(-parseInt(_0x58a614(0x17e))/0x2)+parseInt(_0x58a614(0x18f))/0x3+parseInt(_0x58a614(0x17a))/0x4+-parseInt(_0x58a614(0x18e))/0x5+parseInt(_0x58a614(0x17d))/0x6*(-parseInt(_0x58a614(0x191))/0x7)+parseInt(_0x58a614(0x199))/0x8*(parseInt(_0x58a614(0x19b))/0x9)+-parseInt(_0x58a614(0x197))/0xa*(-parseInt(_0x58a614(0x184))/0xb);if(_0x51395d===_0x69f255)break;else _0x16cac7['push'](_0x16cac7['shift']());}catch(_0x4c3379){_0x16cac7['push'](_0x16cac7['shift']());}}}(_0x286f,0x9f6f0));var o=(_0x50d4f4=>(_0x50d4f4[_0x564ca8(0x180)]=_0x564ca8(0x180),_0x50d4f4[_0x564ca8(0x181)]=_0x564ca8(0x181),_0x50d4f4['Legal']='Legal',_0x50d4f4[_0x564ca8(0x17f)]=_0x564ca8(0x17f),_0x50d4f4[_0x564ca8(0x185)]='Executive',_0x50d4f4[_0x564ca8(0x192)]='Folio',_0x50d4f4['A3']='A3',_0x50d4f4['A4']='A4',_0x50d4f4['A5']='A5',_0x50d4f4['B4']='B4',_0x50d4f4['B5']='B5',_0x50d4f4))(o||{}),i=(_0x1b6bf0=>(_0x1b6bf0[_0x564ca8(0x17b)]=_0x564ca8(0x17b),_0x1b6bf0[_0x564ca8(0x18b)]=_0x564ca8(0x18b),_0x1b6bf0))(i||{}),w=(_0x555da1=>(_0x555da1[_0x564ca8(0x18d)]=_0x564ca8(0x18d),_0x555da1[_0x564ca8(0x195)]=_0x564ca8(0x195),_0x555da1[_0x564ca8(0x196)]=_0x564ca8(0x196),_0x555da1[_0x564ca8(0x177)]=_0x564ca8(0x177),_0x555da1[_0x564ca8(0x186)]=_0x564ca8(0x186),_0x555da1))(w||{}),m=(_0x4b990c=>(_0x4b990c[_0x564ca8(0x189)]='Start',_0x4b990c[_0x564ca8(0x188)]='End',_0x4b990c[_0x564ca8(0x19c)]=_0x564ca8(0x19c),_0x4b990c))(m||{}),e=(_0x46cfa1=>(_0x46cfa1[_0x564ca8(0x182)]=_0x564ca8(0x182),_0x46cfa1[_0x564ca8(0x18c)]=_0x564ca8(0x18c),_0x46cfa1[_0x564ca8(0x194)]='Wide',_0x46cfa1[_0x564ca8(0x18a)]=_0x564ca8(0x18a),_0x46cfa1))(e||{});function _0x1ca9(_0x3842a1,_0x58fe9d){const _0x286f95=_0x286f();return _0x1ca9=function(_0x1ca919,_0x2c244d){_0x1ca919=_0x1ca919-0x175;let _0x1ef541=_0x286f95[_0x1ca919];return _0x1ef541;},_0x1ca9(_0x3842a1,_0x58fe9d);}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[_0x564ca8(0x185)]]:{'w':0x2b8,'h':0x3f0},[o[_0x564ca8(0x192)]]:{'w':0x330,'h':0x4e0},[o[_0x564ca8(0x17c)]]:{'w':0x330,'h':0x540},[o[_0x564ca8(0x180)]]:{'w':0x330,'h':0x420},[o['Statement']]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e[_0x564ca8(0x182)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x564ca8(0x18c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x564ca8(0x194)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p=_0x564ca8(0x19d);function N(_0x407dc6,_0x1d2516){const _0x1979d6=_0x564ca8,{w:_0x490bc2,h:_0x456c5d}=g[_0x407dc6],_0x426401=_0x1d2516===i[_0x1979d6(0x17b)]?_0x490bc2:_0x456c5d,_0x320fcc=_0x1d2516===i['Portrait']?_0x456c5d:_0x490bc2,_0x39513a='\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'+_0x426401+_0x1979d6(0x193)+_0x320fcc+_0x1979d6(0x183)+l+',\x20.'+l+_0x1979d6(0x190)+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'+_0x320fcc+_0x1979d6(0x178)+_0x426401+_0x1979d6(0x179),_0x29a630=document[_0x1979d6(0x198)](_0x1979d6(0x187));return _0x29a630['innerHTML']=_0x39513a,_0x29a630[_0x1979d6(0x175)]=_0x1979d6(0x176),_0x29a630;}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 _0x1163(_0xa12ed,_0x45bfd4){const _0x5e3c40=_0x5e3c();return _0x1163=function(_0x116323,_0x4f31f9){_0x116323=_0x116323-0x110;let _0x3ae485=_0x5e3c40[_0x116323];return _0x3ae485;},_0x1163(_0xa12ed,_0x45bfd4);}function _0x5e3c(){const _0xcbe1e7=['Portrait','Middle','Origin','Statement','px\x20','Tabloid','33890gAWSUV','PrintPaperSize','103968BqnOab','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','function','Start','PaperSizePxMap','className','FitHeight','PrintAlign','1AxHswX','Narrow',',\x20.','toStringTag','1319402HtaVgH','19229NjfdOA','exports','Letter','Wide','\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.','PaperMarginMap','3862224eyztHy','1360236DYTlgw','FitWidth','Normal','object','Executive','3883URpnpZ','createElement','PRINT_CONTAINER_CLASS','2575ksNQtL','FitPage','Landscape','Module','Legal','End','createPrintStyle','536aFsjuD','UniverProPrint','None','44HHuHnq','style','PRINT_CANVAS_CLASS','Folio'];_0x5e3c=function(){return _0xcbe1e7;};return _0x5e3c();}(function(_0xa6b5d6,_0x105926){const _0x33d4d7=_0x1163,_0x5db127=_0xa6b5d6();while(!![]){try{const _0xff448f=-parseInt(_0x33d4d7(0x113))/0x1*(parseInt(_0x33d4d7(0x117))/0x2)+parseInt(_0x33d4d7(0x11f))/0x3+-parseInt(_0x33d4d7(0x131))/0x4*(parseInt(_0x33d4d7(0x127))/0x5)+parseInt(_0x33d4d7(0x13d))/0x6+-parseInt(_0x33d4d7(0x118))/0x7*(parseInt(_0x33d4d7(0x12e))/0x8)+-parseInt(_0x33d4d7(0x11e))/0x9+-parseInt(_0x33d4d7(0x13b))/0xa*(-parseInt(_0x33d4d7(0x124))/0xb);if(_0xff448f===_0x105926)break;else _0x5db127['push'](_0x5db127['shift']());}catch(_0x31e56a){_0x5db127['push'](_0x5db127['shift']());}}}(_0x5e3c,0x5ed9a),function(_0x1f6f52,_0x490ba7){const _0x1655c1=_0x1163;typeof exports==_0x1655c1(0x122)&&typeof module<'u'?_0x490ba7(exports):typeof define==_0x1655c1(0x13f)&&define['amd']?define([_0x1655c1(0x119)],_0x490ba7):(_0x1f6f52=typeof globalThis<'u'?globalThis:_0x1f6f52||self,_0x490ba7(_0x1f6f52[_0x1655c1(0x12f)]={}));}(this,function(_0x4b7ced){'use strict';const _0x4ff8c0=_0x1163;var _0x3b0f7f=(_0x5eb89b=>(_0x5eb89b['Letter']=_0x4ff8c0(0x11a),_0x5eb89b['Tabloid']=_0x4ff8c0(0x13a),_0x5eb89b[_0x4ff8c0(0x12b)]='Legal',_0x5eb89b[_0x4ff8c0(0x138)]='Statement',_0x5eb89b[_0x4ff8c0(0x123)]=_0x4ff8c0(0x123),_0x5eb89b['Folio']=_0x4ff8c0(0x134),_0x5eb89b['A3']='A3',_0x5eb89b['A4']='A4',_0x5eb89b['A5']='A5',_0x5eb89b['B4']='B4',_0x5eb89b['B5']='B5',_0x5eb89b))(_0x3b0f7f||{}),_0x1a7513=(_0x566488=>(_0x566488[_0x4ff8c0(0x135)]=_0x4ff8c0(0x135),_0x566488['Landscape']=_0x4ff8c0(0x129),_0x566488))(_0x1a7513||{}),_0x47e02c=(_0x54d137=>(_0x54d137['Origin']=_0x4ff8c0(0x137),_0x54d137[_0x4ff8c0(0x120)]=_0x4ff8c0(0x120),_0x54d137[_0x4ff8c0(0x111)]=_0x4ff8c0(0x111),_0x54d137[_0x4ff8c0(0x128)]=_0x4ff8c0(0x128),_0x54d137['Custom']='Custom',_0x54d137))(_0x47e02c||{}),_0x3ae3fa=(_0x55c665=>(_0x55c665['Start']=_0x4ff8c0(0x140),_0x55c665[_0x4ff8c0(0x12c)]=_0x4ff8c0(0x12c),_0x55c665['Middle']=_0x4ff8c0(0x136),_0x55c665))(_0x3ae3fa||{}),_0x1655b9=(_0x191294=>(_0x191294['Normal']=_0x4ff8c0(0x121),_0x191294['Narrow']=_0x4ff8c0(0x114),_0x191294['Wide']=_0x4ff8c0(0x11b),_0x191294['None']=_0x4ff8c0(0x130),_0x191294))(_0x1655b9||{});const _0x11f785={[_0x3b0f7f['A3']]:{'w':0x463,'h':0x633},[_0x3b0f7f['A4']]:{'w':0x31a,'h':0x464},[_0x3b0f7f['A5']]:{'w':0x22f,'h':0x31a},[_0x3b0f7f['B4']]:{'w':0x3b0,'h':0x540},[_0x3b0f7f['B5']]:{'w':0x299,'h':0x3b0},[_0x3b0f7f[_0x4ff8c0(0x123)]]:{'w':0x2b8,'h':0x3f0},[_0x3b0f7f['Folio']]:{'w':0x330,'h':0x4e0},[_0x3b0f7f[_0x4ff8c0(0x12b)]]:{'w':0x330,'h':0x540},[_0x3b0f7f['Letter']]:{'w':0x330,'h':0x420},[_0x3b0f7f[_0x4ff8c0(0x138)]]:{'w':0x210,'h':0x330},[_0x3b0f7f[_0x4ff8c0(0x13a)]]:{'w':0x420,'h':0x660}},_0x4c2951={[_0x1655b9[_0x4ff8c0(0x121)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x1655b9[_0x4ff8c0(0x114)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x1655b9[_0x4ff8c0(0x11b)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x1655b9[_0x4ff8c0(0x130)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x2fc711='printing-canvas-container',_0x1609c5='printing-canvas';function _0x5a88bc(_0x586cf8,_0x11ea75){const _0x1f08e0=_0x4ff8c0,{w:_0x5ed7b5,h:_0xa32974}=_0x11f785[_0x586cf8],_0xc5a116=_0x11ea75===_0x1a7513[_0x1f08e0(0x135)]?_0x5ed7b5:_0xa32974,_0x1f091b=_0x11ea75===_0x1a7513[_0x1f08e0(0x135)]?_0xa32974:_0x5ed7b5,_0x3d513b='\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'+_0xc5a116+_0x1f08e0(0x139)+_0x1f091b+'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.'+_0x2fc711+_0x1f08e0(0x115)+_0x2fc711+_0x1f08e0(0x11c)+_0x1609c5+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x1f091b+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0xc5a116+_0x1f08e0(0x13e),_0x45a7b2=document[_0x1f08e0(0x125)](_0x1f08e0(0x132));return _0x45a7b2['innerHTML']=_0x3d513b,_0x45a7b2[_0x1f08e0(0x110)]='offline-printing-css',_0x45a7b2;}_0x4b7ced[_0x4ff8c0(0x133)]=_0x1609c5,_0x4b7ced[_0x4ff8c0(0x126)]=_0x2fc711,_0x4b7ced[_0x4ff8c0(0x11d)]=_0x4c2951,_0x4b7ced[_0x4ff8c0(0x141)]=_0x11f785,_0x4b7ced[_0x4ff8c0(0x112)]=_0x3ae3fa,_0x4b7ced['PrintDirection']=_0x1a7513,_0x4b7ced['PrintPaperMargin']=_0x1655b9,_0x4b7ced[_0x4ff8c0(0x13c)]=_0x3b0f7f,_0x4b7ced['PrintScale']=_0x47e02c,_0x4b7ced[_0x4ff8c0(0x12d)]=_0x5a88bc,Object['defineProperty'](_0x4b7ced,Symbol[_0x4ff8c0(0x116)],{'value':_0x4ff8c0(0x12a)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0-alpha.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"typescript": "^5.7.
|
|
45
|
+
"typescript": "^5.7.3",
|
|
46
46
|
"vite": "^6.0.7",
|
|
47
47
|
"vitest": "^2.1.8",
|
|
48
|
-
"@univerjs-infra/shared": "0.
|
|
48
|
+
"@univerjs-infra/shared": "0.6.0-alpha.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|