@univerjs-pro/print 0.6.3 → 0.6.4-nightly.202503101606
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 +2 -2
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x1491(_0x25942e,_0x14e244){const _0x49772c=_0x4977();return _0x1491=function(_0x1491b4,_0x338f03){_0x1491b4=_0x1491b4-0x1ef;let _0x597868=_0x49772c[_0x1491b4];return _0x597868;},_0x1491(_0x25942e,_0x14e244);}const _0x149f26=_0x1491;(function(_0x31cc4b,_0x436430){const _0x56b1a5=_0x1491,_0xb2bb10=_0x31cc4b();while(!![]){try{const _0x7f4e66=-parseInt(_0x56b1a5(0x1fc))/0x1+-parseInt(_0x56b1a5(0x202))/0x2+-parseInt(_0x56b1a5(0x219))/0x3+-parseInt(_0x56b1a5(0x1f8))/0x4+parseInt(_0x56b1a5(0x1fd))/0x5+parseInt(_0x56b1a5(0x20f))/0x6*(-parseInt(_0x56b1a5(0x21c))/0x7)+parseInt(_0x56b1a5(0x214))/0x8;if(_0x7f4e66===_0x436430)break;else _0xb2bb10['push'](_0xb2bb10['shift']());}catch(_0x104d97){_0xb2bb10['push'](_0xb2bb10['shift']());}}}(_0x4977,0xa0aec));Object[_0x149f26(0x210)](exports,Symbol[_0x149f26(0x201)],{'value':_0x149f26(0x200)});var e=(_0x16793b=>(_0x16793b['Letter']='Letter',_0x16793b['Tabloid']=_0x149f26(0x204),_0x16793b[_0x149f26(0x211)]=_0x149f26(0x211),_0x16793b[_0x149f26(0x21b)]=_0x149f26(0x21b),_0x16793b['Executive']='Executive',_0x16793b['Folio']='Folio',_0x16793b['A3']='A3',_0x16793b['A4']='A4',_0x16793b['A5']='A5',_0x16793b['B4']='B4',_0x16793b['B5']='B5',_0x16793b))(e||{}),i=(_0x283cdd=>(_0x283cdd['Portrait']='Portrait',_0x283cdd['Landscape']='Landscape',_0x283cdd))(i||{}),c=(_0x13bb31=>(_0x13bb31[_0x149f26(0x20c)]=_0x149f26(0x20c),_0x13bb31[_0x149f26(0x1f4)]=_0x149f26(0x1f4),_0x13bb31['FitHeight']=_0x149f26(0x1f2),_0x13bb31['FitPage']=_0x149f26(0x1ef),_0x13bb31[_0x149f26(0x207)]=_0x149f26(0x207),_0x13bb31))(c||{}),g=(_0x325c1c=>(_0x325c1c[_0x149f26(0x1f7)]=_0x149f26(0x1f7),_0x325c1c[_0x149f26(0x20a)]=_0x149f26(0x20a),_0x325c1c[_0x149f26(0x208)]=_0x149f26(0x208),_0x325c1c))(g||{}),o=(_0x1e7bfe=>(_0x1e7bfe['Normal']=_0x149f26(0x20e),_0x1e7bfe[_0x149f26(0x1f6)]=_0x149f26(0x1f6),_0x1e7bfe['Wide']=_0x149f26(0x217),_0x1e7bfe[_0x149f26(0x1f5)]=_0x149f26(0x1f5),_0x1e7bfe))(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[_0x149f26(0x213)]]:{'w':0x2b8,'h':0x3f0},[e[_0x149f26(0x1f0)]]:{'w':0x330,'h':0x4e0},[e['Legal']]:{'w':0x330,'h':0x540},[e[_0x149f26(0x205)]]:{'w':0x330,'h':0x420},[e[_0x149f26(0x21b)]]:{'w':0x210,'h':0x330},[e[_0x149f26(0x204)]]:{'w':0x420,'h':0x660}},N={[o[_0x149f26(0x20e)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x149f26(0x217)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x149f26(0x216),p=_0x149f26(0x215);function A(_0x2e1da1,_0x374969){const _0x5ab605=_0x149f26,{w:_0x1720e8,h:_0x6659c3}=m[_0x2e1da1],_0x48a7f1=_0x374969===i[_0x5ab605(0x21a)]?_0x1720e8:_0x6659c3,_0x5d5efd=_0x374969===i[_0x5ab605(0x21a)]?_0x6659c3:_0x1720e8,_0x1950a8=_0x5ab605(0x1f9)+_0x48a7f1+_0x5ab605(0x1f1)+_0x5d5efd+'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+',\x20.'+n+'\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+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x5d5efd+_0x5ab605(0x20b)+_0x48a7f1+_0x5ab605(0x209),_0x42af47=document['createElement'](_0x5ab605(0x1fa));return _0x42af47['innerHTML']=_0x1950a8,_0x42af47['className']=_0x5ab605(0x20d),_0x42af47;}exports[_0x149f26(0x212)]=p,exports[_0x149f26(0x1f3)]=n,exports[_0x149f26(0x218)]=N,exports[_0x149f26(0x1ff)]=m,exports['PrintAlign']=g,exports['PrintDirection']=i,exports[_0x149f26(0x1fe)]=o,exports[_0x149f26(0x206)]=e,exports[_0x149f26(0x203)]=c,exports[_0x149f26(0x1fb)]=A;function _0x4977(){const _0x278fbe=['style','createPrintStyle','829310ZKOUrh','2928945KPmvTp','PrintPaperMargin','PaperSizePxMap','Module','toStringTag','1089418VqysRS','PrintScale','Tabloid','Letter','PrintPaperSize','Custom','Middle','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','End','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Origin','offline-printing-css','Normal','12324RdLGlm','defineProperty','Legal','PRINT_CANVAS_CLASS','Executive','17421240JhcvoE','printing-canvas','printing-canvas-container','Wide','PaperMarginMap','1653489mvCHjr','Portrait','Statement','371lhVPkL','FitPage','Folio','px\x20','FitHeight','PRINT_CONTAINER_CLASS','FitWidth','None','Narrow','Start','284976inCtJL','\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'];_0x4977=function(){return _0x278fbe;};return _0x4977();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x26bdc7=_0x5dab;(function(_0x2613f5,_0x577681){const _0x1d1e2c=_0x5dab,_0x29d52b=_0x2613f5();while(!![]){try{const _0x4f72b0=parseInt(_0x1d1e2c(0xef))/0x1*(-parseInt(_0x1d1e2c(0x107))/0x2)+-parseInt(_0x1d1e2c(0xfb))/0x3*(parseInt(_0x1d1e2c(0x109))/0x4)+parseInt(_0x1d1e2c(0xea))/0x5*(-parseInt(_0x1d1e2c(0x110))/0x6)+-parseInt(_0x1d1e2c(0x10b))/0x7*(-parseInt(_0x1d1e2c(0x10a))/0x8)+-parseInt(_0x1d1e2c(0x101))/0x9+-parseInt(_0x1d1e2c(0x108))/0xa+parseInt(_0x1d1e2c(0xf3))/0xb;if(_0x4f72b0===_0x577681)break;else _0x29d52b['push'](_0x29d52b['shift']());}catch(_0x583b22){_0x29d52b['push'](_0x29d52b['shift']());}}}(_0x3ed4,0x2b811));function _0x3ed4(){const _0x3718aa=[',\x20.','createElement','End','Wide','12diGRZM','Folio','Custom','685MRaFBf','None','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','FitPage','Landscape','292701cXFyKF','Origin','Tabloid','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','7551621SyLXMb','style','Narrow','Executive','innerHTML','px\x20','Middle','Start','61071LzEsPs','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','printing-canvas','Letter','Normal','1568484UzQFRY','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','\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','FitWidth','Portrait','2zNtVBZ','111730wyKhaU','8gOqLDj','16ZwRSbY','37870ZMlQhV'];_0x3ed4=function(){return _0x3718aa;};return _0x3ed4();}var o=(_0x12d07f=>(_0x12d07f[_0x26bdc7(0xff)]=_0x26bdc7(0xff),_0x12d07f[_0x26bdc7(0xf1)]=_0x26bdc7(0xf1),_0x12d07f[_0x26bdc7(0x104)]=_0x26bdc7(0x104),_0x12d07f[_0x26bdc7(0xfd)]=_0x26bdc7(0xfd),_0x12d07f[_0x26bdc7(0xf6)]=_0x26bdc7(0xf6),_0x12d07f[_0x26bdc7(0xe8)]='Folio',_0x12d07f['A3']='A3',_0x12d07f['A4']='A4',_0x12d07f['A5']='A5',_0x12d07f['B4']='B4',_0x12d07f['B5']='B5',_0x12d07f))(o||{}),i=(_0x24c29c=>(_0x24c29c[_0x26bdc7(0x106)]=_0x26bdc7(0x106),_0x24c29c[_0x26bdc7(0xee)]=_0x26bdc7(0xee),_0x24c29c))(i||{}),w=(_0xc3773=>(_0xc3773[_0x26bdc7(0xf0)]=_0x26bdc7(0xf0),_0xc3773['FitWidth']=_0x26bdc7(0x105),_0xc3773['FitHeight']='FitHeight',_0xc3773['FitPage']=_0x26bdc7(0xed),_0xc3773[_0x26bdc7(0xe9)]=_0x26bdc7(0xe9),_0xc3773))(w||{}),m=(_0x1319b0=>(_0x1319b0['Start']=_0x26bdc7(0xfa),_0x1319b0[_0x26bdc7(0x10e)]=_0x26bdc7(0x10e),_0x1319b0['Middle']=_0x26bdc7(0xf9),_0x1319b0))(m||{}),e=(_0x56b895=>(_0x56b895['Normal']='Normal',_0x56b895[_0x26bdc7(0xf5)]=_0x26bdc7(0xf5),_0x56b895[_0x26bdc7(0x10f)]=_0x26bdc7(0x10f),_0x56b895['None']=_0x26bdc7(0xeb),_0x56b895))(e||{});function _0x5dab(_0x547715,_0x1d5b42){const _0x3ed444=_0x3ed4();return _0x5dab=function(_0x5dabaf,_0x16dd6f){_0x5dabaf=_0x5dabaf-0xe8;let _0x1800d6=_0x3ed444[_0x5dabaf];return _0x1800d6;},_0x5dab(_0x547715,_0x1d5b42);}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[_0x26bdc7(0xe8)]]:{'w':0x330,'h':0x4e0},[o[_0x26bdc7(0x104)]]:{'w':0x330,'h':0x540},[o[_0x26bdc7(0xff)]]:{'w':0x330,'h':0x420},[o['Statement']]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e[_0x26bdc7(0x100)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x26bdc7(0xf5)]]:{'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='printing-canvas-container',p=_0x26bdc7(0xfe);function N(_0x4ddf02,_0x2c10e0){const _0x4dfa01=_0x26bdc7,{w:_0x261b28,h:_0x4b9db5}=g[_0x4ddf02],_0x467fd9=_0x2c10e0===i[_0x4dfa01(0x106)]?_0x261b28:_0x4b9db5,_0xa0dbe9=_0x2c10e0===i[_0x4dfa01(0x106)]?_0x4b9db5:_0x261b28,_0xfbf75a=_0x4dfa01(0x103)+_0x467fd9+_0x4dfa01(0xf8)+_0xa0dbe9+_0x4dfa01(0xfc)+l+_0x4dfa01(0x10c)+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+_0x4dfa01(0xec)+_0xa0dbe9+_0x4dfa01(0xf2)+_0x467fd9+_0x4dfa01(0x102),_0x217867=document[_0x4dfa01(0x10d)](_0x4dfa01(0xf4));return _0x217867[_0x4dfa01(0xf7)]=_0xfbf75a,_0x217867['className']='offline-printing-css',_0x217867;}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 _0x30eb(){const _0x25b762=['Origin','Landscape','PrintAlign','Wide','innerHTML','toStringTag','Normal','None','Legal','px\x20','End','FitHeight','Middle','181491bVOxpc','20474894LhFTSg','Tabloid','Letter','PRINT_CONTAINER_CLASS','550160SXVRzx','exports','178386zDdarY','Start','16RixXGW','161zEhqlM','Narrow','12hXxTtR','object','28aXBGHr','PRINT_CANVAS_CLASS','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Executive','Folio','\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.','1260621WxaTDy','PrintDirection','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.','8219140Ttepqf','Portrait','UniverProPrint','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','58931SmUhaD','Custom','printing-canvas',',\x20.','className','Statement','FitWidth','function','defineProperty','PrintPaperSize'];_0x30eb=function(){return _0x25b762;};return _0x30eb();}function _0x2727(_0x5d2ae7,_0x4b2c3a){const _0x30eb1e=_0x30eb();return _0x2727=function(_0x27277e,_0x138706){_0x27277e=_0x27277e-0x186;let _0x341ab2=_0x30eb1e[_0x27277e];return _0x341ab2;},_0x2727(_0x5d2ae7,_0x4b2c3a);}(function(_0x3ad6f3,_0x2db646){const _0x4eec08=_0x2727,_0xd1430d=_0x3ad6f3();while(!![]){try{const _0x47aa2c=-parseInt(_0x4eec08(0x196))/0x1*(parseInt(_0x4eec08(0x188))/0x2)+parseInt(_0x4eec08(0x1ad))/0x3*(-parseInt(_0x4eec08(0x186))/0x4)+parseInt(_0x4eec08(0x1b2))/0x5+-parseInt(_0x4eec08(0x1b4))/0x6*(-parseInt(_0x4eec08(0x1b7))/0x7)+-parseInt(_0x4eec08(0x1b6))/0x8*(parseInt(_0x4eec08(0x18f))/0x9)+-parseInt(_0x4eec08(0x192))/0xa+parseInt(_0x4eec08(0x1ae))/0xb;if(_0x47aa2c===_0x2db646)break;else _0xd1430d['push'](_0xd1430d['shift']());}catch(_0x40441){_0xd1430d['push'](_0xd1430d['shift']());}}}(_0x30eb,0x8573e),function(_0x51e3ea,_0x870522){const _0x1ef852=_0x2727;typeof exports==_0x1ef852(0x187)&&typeof module<'u'?_0x870522(exports):typeof define==_0x1ef852(0x19d)&&define['amd']?define([_0x1ef852(0x1b3)],_0x870522):(_0x51e3ea=typeof globalThis<'u'?globalThis:_0x51e3ea||self,_0x870522(_0x51e3ea[_0x1ef852(0x194)]={}));}(this,function(_0x156807){'use strict';const _0xc7cebd=_0x2727;var _0x35c0c1=(_0x52d05b=>(_0x52d05b[_0xc7cebd(0x1b0)]='Letter',_0x52d05b[_0xc7cebd(0x1af)]='Tabloid',_0x52d05b['Legal']=_0xc7cebd(0x1a8),_0x52d05b[_0xc7cebd(0x19b)]='Statement',_0x52d05b['Executive']=_0xc7cebd(0x18c),_0x52d05b['Folio']=_0xc7cebd(0x18d),_0x52d05b['A3']='A3',_0x52d05b['A4']='A4',_0x52d05b['A5']='A5',_0x52d05b['B4']='B4',_0x52d05b['B5']='B5',_0x52d05b))(_0x35c0c1||{}),_0x42aef9=(_0x366af4=>(_0x366af4[_0xc7cebd(0x193)]='Portrait',_0x366af4[_0xc7cebd(0x1a1)]=_0xc7cebd(0x1a1),_0x366af4))(_0x42aef9||{}),_0x4c7bde=(_0x4aca4c=>(_0x4aca4c[_0xc7cebd(0x1a0)]=_0xc7cebd(0x1a0),_0x4aca4c[_0xc7cebd(0x19c)]=_0xc7cebd(0x19c),_0x4aca4c[_0xc7cebd(0x1ab)]=_0xc7cebd(0x1ab),_0x4aca4c[_0xc7cebd(0x18a)]=_0xc7cebd(0x18a),_0x4aca4c[_0xc7cebd(0x197)]=_0xc7cebd(0x197),_0x4aca4c))(_0x4c7bde||{}),_0x9fd95=(_0x5bfa76=>(_0x5bfa76[_0xc7cebd(0x1b5)]=_0xc7cebd(0x1b5),_0x5bfa76[_0xc7cebd(0x1aa)]=_0xc7cebd(0x1aa),_0x5bfa76[_0xc7cebd(0x1ac)]=_0xc7cebd(0x1ac),_0x5bfa76))(_0x9fd95||{}),_0x2af9a7=(_0x529dc=>(_0x529dc[_0xc7cebd(0x1a6)]='Normal',_0x529dc[_0xc7cebd(0x1b8)]=_0xc7cebd(0x1b8),_0x529dc[_0xc7cebd(0x1a3)]='Wide',_0x529dc[_0xc7cebd(0x1a7)]=_0xc7cebd(0x1a7),_0x529dc))(_0x2af9a7||{});const _0x54dc6f={[_0x35c0c1['A3']]:{'w':0x463,'h':0x633},[_0x35c0c1['A4']]:{'w':0x31a,'h':0x464},[_0x35c0c1['A5']]:{'w':0x22f,'h':0x31a},[_0x35c0c1['B4']]:{'w':0x3b0,'h':0x540},[_0x35c0c1['B5']]:{'w':0x299,'h':0x3b0},[_0x35c0c1[_0xc7cebd(0x18c)]]:{'w':0x2b8,'h':0x3f0},[_0x35c0c1[_0xc7cebd(0x18d)]]:{'w':0x330,'h':0x4e0},[_0x35c0c1[_0xc7cebd(0x1a8)]]:{'w':0x330,'h':0x540},[_0x35c0c1[_0xc7cebd(0x1b0)]]:{'w':0x330,'h':0x420},[_0x35c0c1[_0xc7cebd(0x19b)]]:{'w':0x210,'h':0x330},[_0x35c0c1[_0xc7cebd(0x1af)]]:{'w':0x420,'h':0x660}},_0x21ba3d={[_0x2af9a7[_0xc7cebd(0x1a6)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x2af9a7[_0xc7cebd(0x1b8)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x2af9a7['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x2af9a7[_0xc7cebd(0x1a7)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x43ec41='printing-canvas-container',_0x4a6b89=_0xc7cebd(0x198);function _0x5f1024(_0x2ed50e,_0x4fcd45){const _0x364281=_0xc7cebd,{w:_0x490a3b,h:_0x3cf631}=_0x54dc6f[_0x2ed50e],_0x37b509=_0x4fcd45===_0x42aef9[_0x364281(0x193)]?_0x490a3b:_0x3cf631,_0xe2f21c=_0x4fcd45===_0x42aef9[_0x364281(0x193)]?_0x3cf631:_0x490a3b,_0x4c142a='\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'+_0x37b509+_0x364281(0x1a9)+_0xe2f21c+_0x364281(0x191)+_0x43ec41+_0x364281(0x199)+_0x43ec41+_0x364281(0x18e)+_0x4a6b89+_0x364281(0x195)+_0xe2f21c+_0x364281(0x18b)+_0x37b509+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x177629=document['createElement']('style');return _0x177629[_0x364281(0x1a4)]=_0x4c142a,_0x177629[_0x364281(0x19a)]='offline-printing-css',_0x177629;}_0x156807[_0xc7cebd(0x189)]=_0x4a6b89,_0x156807[_0xc7cebd(0x1b1)]=_0x43ec41,_0x156807['PaperMarginMap']=_0x21ba3d,_0x156807['PaperSizePxMap']=_0x54dc6f,_0x156807[_0xc7cebd(0x1a2)]=_0x9fd95,_0x156807[_0xc7cebd(0x190)]=_0x42aef9,_0x156807['PrintPaperMargin']=_0x2af9a7,_0x156807[_0xc7cebd(0x19f)]=_0x35c0c1,_0x156807['PrintScale']=_0x4c7bde,_0x156807['createPrintStyle']=_0x5f1024,Object[_0xc7cebd(0x19e)](_0x156807,Symbol[_0xc7cebd(0x1a5)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4-nightly.202503101606",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"typescript": "^5.8.2",
|
|
46
46
|
"vite": "^6.2.0",
|
|
47
47
|
"vitest": "^3.0.7",
|
|
48
|
-
"@univerjs-infra/shared": "0.6.
|
|
48
|
+
"@univerjs-infra/shared": "0.6.4"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|