@univerjs-pro/print 0.6.7 → 0.6.9
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/index.js +1 -0
- 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';const _0x1ff83a=_0x298e;function _0x298e(_0x764117,_0x1a280b){const _0x2800d0=_0x2800();return _0x298e=function(_0x298e33,_0x5ccb8a){_0x298e33=_0x298e33-0x10f;let _0x96c63c=_0x2800d0[_0x298e33];return _0x96c63c;},_0x298e(_0x764117,_0x1a280b);}(function(_0x2dbca7,_0x32de01){const _0x243b7b=_0x298e,_0xf21e3d=_0x2dbca7();while(!![]){try{const _0x3dae9a=-parseInt(_0x243b7b(0x127))/0x1*(parseInt(_0x243b7b(0x134))/0x2)+-parseInt(_0x243b7b(0x117))/0x3+parseInt(_0x243b7b(0x122))/0x4+-parseInt(_0x243b7b(0x136))/0x5*(parseInt(_0x243b7b(0x111))/0x6)+-parseInt(_0x243b7b(0x114))/0x7+-parseInt(_0x243b7b(0x130))/0x8*(parseInt(_0x243b7b(0x137))/0x9)+parseInt(_0x243b7b(0x12a))/0xa;if(_0x3dae9a===_0x32de01)break;else _0xf21e3d['push'](_0xf21e3d['shift']());}catch(_0x521431){_0xf21e3d['push'](_0xf21e3d['shift']());}}}(_0x2800,0xdd881));Object['defineProperty'](exports,Symbol[_0x1ff83a(0x120)],{'value':_0x1ff83a(0x13e)});var e=(_0x1265a4=>(_0x1265a4['Letter']=_0x1ff83a(0x11f),_0x1265a4[_0x1ff83a(0x11a)]=_0x1ff83a(0x11a),_0x1265a4[_0x1ff83a(0x112)]='Legal',_0x1265a4[_0x1ff83a(0x123)]=_0x1ff83a(0x123),_0x1265a4['Executive']=_0x1ff83a(0x119),_0x1265a4[_0x1ff83a(0x129)]='Folio',_0x1265a4['A3']='A3',_0x1265a4['A4']='A4',_0x1265a4['A5']='A5',_0x1265a4['B4']='B4',_0x1265a4['B5']='B5',_0x1265a4))(e||{}),i=(_0x3be25a=>(_0x3be25a[_0x1ff83a(0x113)]='Portrait',_0x3be25a[_0x1ff83a(0x13c)]='Landscape',_0x3be25a))(i||{}),c=(_0x595840=>(_0x595840[_0x1ff83a(0x115)]='Origin',_0x595840[_0x1ff83a(0x11c)]=_0x1ff83a(0x11c),_0x595840[_0x1ff83a(0x116)]='FitHeight',_0x595840['FitPage']='FitPage',_0x595840['Custom']=_0x1ff83a(0x12f),_0x595840))(c||{}),g=(_0x3e8a5a=>(_0x3e8a5a[_0x1ff83a(0x133)]=_0x1ff83a(0x133),_0x3e8a5a[_0x1ff83a(0x138)]=_0x1ff83a(0x138),_0x3e8a5a[_0x1ff83a(0x121)]=_0x1ff83a(0x121),_0x3e8a5a))(g||{}),o=(_0x3907f4=>(_0x3907f4[_0x1ff83a(0x12c)]=_0x1ff83a(0x12c),_0x3907f4[_0x1ff83a(0x118)]='Narrow',_0x3907f4[_0x1ff83a(0x12b)]=_0x1ff83a(0x12b),_0x3907f4[_0x1ff83a(0x124)]=_0x1ff83a(0x124),_0x3907f4))(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[_0x1ff83a(0x129)]]:{'w':0x330,'h':0x4e0},[e[_0x1ff83a(0x112)]]:{'w':0x330,'h':0x540},[e[_0x1ff83a(0x11f)]]:{'w':0x330,'h':0x420},[e['Statement']]:{'w':0x210,'h':0x330},[e[_0x1ff83a(0x11a)]]:{'w':0x420,'h':0x660}},N={[o[_0x1ff83a(0x12c)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x1ff83a(0x118)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x1ff83a(0x12b)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n='printing-canvas-container',p=_0x1ff83a(0x139);function A(_0x42c171,_0x474174){const _0x363086=_0x1ff83a,{w:_0x23ff04,h:_0x1dec58}=m[_0x42c171],_0x5c78ca=_0x474174===i[_0x363086(0x113)]?_0x23ff04:_0x1dec58,_0x365fda=_0x474174===i[_0x363086(0x113)]?_0x1dec58:_0x23ff04,_0xd4d7fe='\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'+_0x5c78ca+_0x363086(0x131)+_0x365fda+_0x363086(0x11b)+n+_0x363086(0x13d)+n+_0x363086(0x125)+p+_0x363086(0x10f)+_0x365fda+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5c78ca+_0x363086(0x110),_0x297ced=document[_0x363086(0x13f)](_0x363086(0x132));return _0x297ced[_0x363086(0x13a)]=_0xd4d7fe,_0x297ced[_0x363086(0x12e)]=_0x363086(0x128),_0x297ced;}function _0x2800(){const _0x2582b7=['2390SSqWRy','477ipIiJh','End','printing-canvas','innerHTML','PaperMarginMap','Landscape',',\x20.','Module','createElement','\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;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','4422pVgSvW','Legal','Portrait','6572090ZeKIVi','Origin','FitHeight','4691337PhAnys','Narrow','Executive','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.','FitWidth','PaperSizePxMap','PrintDirection','Letter','toStringTag','Middle','6335676FzoHur','Statement','None','\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.','PrintScale','14107gDVoYm','offline-printing-css','Folio','42181670wMrxRw','Wide','Normal','createPrintStyle','className','Custom','195032CmCXwY','px\x20','style','Start','106UOAumT','PrintPaperSize'];_0x2800=function(){return _0x2582b7;};return _0x2800();}exports['PRINT_CANVAS_CLASS']=p,exports['PRINT_CONTAINER_CLASS']=n,exports[_0x1ff83a(0x13b)]=N,exports[_0x1ff83a(0x11d)]=m,exports['PrintAlign']=g,exports[_0x1ff83a(0x11e)]=i,exports['PrintPaperMargin']=o,exports[_0x1ff83a(0x135)]=e,exports[_0x1ff83a(0x126)]=c,exports[_0x1ff83a(0x12d)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x32dd97=_0x496c;(function(_0x483ce1,_0x31f630){const _0x4b661c=_0x496c,_0x2064c6=_0x483ce1();while(!![]){try{const _0x30c110=-parseInt(_0x4b661c(0x81))/0x1*(-parseInt(_0x4b661c(0x9c))/0x2)+-parseInt(_0x4b661c(0x7b))/0x3*(-parseInt(_0x4b661c(0x9a))/0x4)+-parseInt(_0x4b661c(0x90))/0x5+parseInt(_0x4b661c(0x91))/0x6+-parseInt(_0x4b661c(0x9d))/0x7*(-parseInt(_0x4b661c(0x88))/0x8)+-parseInt(_0x4b661c(0x8a))/0x9*(-parseInt(_0x4b661c(0x8f))/0xa)+parseInt(_0x4b661c(0x8d))/0xb*(-parseInt(_0x4b661c(0x98))/0xc);if(_0x30c110===_0x31f630)break;else _0x2064c6['push'](_0x2064c6['shift']());}catch(_0x267407){_0x2064c6['push'](_0x2064c6['shift']());}}}(_0x25af,0xb2d5d));var o=(_0xc6b3c9=>(_0xc6b3c9[_0x32dd97(0x74)]=_0x32dd97(0x74),_0xc6b3c9[_0x32dd97(0x75)]='Tabloid',_0xc6b3c9[_0x32dd97(0x97)]='Legal',_0xc6b3c9[_0x32dd97(0x95)]='Statement',_0xc6b3c9['Executive']=_0x32dd97(0x92),_0xc6b3c9[_0x32dd97(0x72)]=_0x32dd97(0x72),_0xc6b3c9['A3']='A3',_0xc6b3c9['A4']='A4',_0xc6b3c9['A5']='A5',_0xc6b3c9['B4']='B4',_0xc6b3c9['B5']='B5',_0xc6b3c9))(o||{}),i=(_0x52f8d4=>(_0x52f8d4[_0x32dd97(0x84)]='Portrait',_0x52f8d4[_0x32dd97(0x77)]=_0x32dd97(0x77),_0x52f8d4))(i||{}),w=(_0x1233d3=>(_0x1233d3[_0x32dd97(0x94)]=_0x32dd97(0x94),_0x1233d3[_0x32dd97(0x9b)]=_0x32dd97(0x9b),_0x1233d3[_0x32dd97(0x9e)]=_0x32dd97(0x9e),_0x1233d3[_0x32dd97(0x89)]=_0x32dd97(0x89),_0x1233d3['Custom']=_0x32dd97(0x7d),_0x1233d3))(w||{}),m=(_0x5ddf71=>(_0x5ddf71[_0x32dd97(0x99)]='Start',_0x5ddf71['End']=_0x32dd97(0x7a),_0x5ddf71[_0x32dd97(0x85)]=_0x32dd97(0x85),_0x5ddf71))(m||{}),e=(_0x3176c8=>(_0x3176c8[_0x32dd97(0x7f)]=_0x32dd97(0x7f),_0x3176c8[_0x32dd97(0x86)]=_0x32dd97(0x86),_0x3176c8['Wide']=_0x32dd97(0x73),_0x3176c8['None']=_0x32dd97(0x79),_0x3176c8))(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[_0x32dd97(0x92)]]:{'w':0x2b8,'h':0x3f0},[o[_0x32dd97(0x72)]]:{'w':0x330,'h':0x4e0},[o[_0x32dd97(0x97)]]:{'w':0x330,'h':0x540},[o[_0x32dd97(0x74)]]:{'w':0x330,'h':0x420},[o[_0x32dd97(0x95)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e[_0x32dd97(0x7f)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x32dd97(0x79)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x32dd97(0x78),p=_0x32dd97(0x82);function _0x496c(_0x57a580,_0x592f4d){const _0x25afc1=_0x25af();return _0x496c=function(_0x496cc9,_0x238e6a){_0x496cc9=_0x496cc9-0x72;let _0x1b0aed=_0x25afc1[_0x496cc9];return _0x1b0aed;},_0x496c(_0x57a580,_0x592f4d);}function N(_0x2ded57,_0x38ac71){const _0x92c994=_0x32dd97,{w:_0x3e1440,h:_0x23f755}=g[_0x2ded57],_0x191996=_0x38ac71===i['Portrait']?_0x3e1440:_0x23f755,_0x4942b5=_0x38ac71===i[_0x92c994(0x84)]?_0x23f755:_0x3e1440,_0xcbfc1d='\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'+_0x191996+_0x92c994(0x8e)+_0x4942b5+_0x92c994(0x76)+l+_0x92c994(0x8c)+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+_0x92c994(0x96)+_0x4942b5+_0x92c994(0x7c)+_0x191996+_0x92c994(0x87),_0x453062=document[_0x92c994(0x93)](_0x92c994(0x80));return _0x453062[_0x92c994(0x8b)]=_0xcbfc1d,_0x453062[_0x92c994(0x83)]=_0x92c994(0x7e),_0x453062;}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};function _0x25af(){const _0x292363=['className','Portrait','Middle','Narrow','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','1598464bGkfCK','FitPage','9yLaiwy','innerHTML',',\x20.','11zOvToH','px\x20','7172590GusnWg','7184140EwkbZm','6552486ClmsnP','Executive','createElement','Origin','Statement','\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','26574864hlcBfI','Start','4LcctfS','FitWidth','29076dVmQfq','49NmXObh','FitHeight','Folio','Wide','Letter','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.','Landscape','printing-canvas-container','None','End','1652337bUVsHJ','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Custom','offline-printing-css','Normal','style','43DGWfYy','printing-canvas'];_0x25af=function(){return _0x292363;};return _0x25af();}
|
package/lib/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x32dd97=_0x496c;(function(_0x483ce1,_0x31f630){const _0x4b661c=_0x496c,_0x2064c6=_0x483ce1();while(!![]){try{const _0x30c110=-parseInt(_0x4b661c(0x81))/0x1*(-parseInt(_0x4b661c(0x9c))/0x2)+-parseInt(_0x4b661c(0x7b))/0x3*(-parseInt(_0x4b661c(0x9a))/0x4)+-parseInt(_0x4b661c(0x90))/0x5+parseInt(_0x4b661c(0x91))/0x6+-parseInt(_0x4b661c(0x9d))/0x7*(-parseInt(_0x4b661c(0x88))/0x8)+-parseInt(_0x4b661c(0x8a))/0x9*(-parseInt(_0x4b661c(0x8f))/0xa)+parseInt(_0x4b661c(0x8d))/0xb*(-parseInt(_0x4b661c(0x98))/0xc);if(_0x30c110===_0x31f630)break;else _0x2064c6['push'](_0x2064c6['shift']());}catch(_0x267407){_0x2064c6['push'](_0x2064c6['shift']());}}}(_0x25af,0xb2d5d));var o=(_0xc6b3c9=>(_0xc6b3c9[_0x32dd97(0x74)]=_0x32dd97(0x74),_0xc6b3c9[_0x32dd97(0x75)]='Tabloid',_0xc6b3c9[_0x32dd97(0x97)]='Legal',_0xc6b3c9[_0x32dd97(0x95)]='Statement',_0xc6b3c9['Executive']=_0x32dd97(0x92),_0xc6b3c9[_0x32dd97(0x72)]=_0x32dd97(0x72),_0xc6b3c9['A3']='A3',_0xc6b3c9['A4']='A4',_0xc6b3c9['A5']='A5',_0xc6b3c9['B4']='B4',_0xc6b3c9['B5']='B5',_0xc6b3c9))(o||{}),i=(_0x52f8d4=>(_0x52f8d4[_0x32dd97(0x84)]='Portrait',_0x52f8d4[_0x32dd97(0x77)]=_0x32dd97(0x77),_0x52f8d4))(i||{}),w=(_0x1233d3=>(_0x1233d3[_0x32dd97(0x94)]=_0x32dd97(0x94),_0x1233d3[_0x32dd97(0x9b)]=_0x32dd97(0x9b),_0x1233d3[_0x32dd97(0x9e)]=_0x32dd97(0x9e),_0x1233d3[_0x32dd97(0x89)]=_0x32dd97(0x89),_0x1233d3['Custom']=_0x32dd97(0x7d),_0x1233d3))(w||{}),m=(_0x5ddf71=>(_0x5ddf71[_0x32dd97(0x99)]='Start',_0x5ddf71['End']=_0x32dd97(0x7a),_0x5ddf71[_0x32dd97(0x85)]=_0x32dd97(0x85),_0x5ddf71))(m||{}),e=(_0x3176c8=>(_0x3176c8[_0x32dd97(0x7f)]=_0x32dd97(0x7f),_0x3176c8[_0x32dd97(0x86)]=_0x32dd97(0x86),_0x3176c8['Wide']=_0x32dd97(0x73),_0x3176c8['None']=_0x32dd97(0x79),_0x3176c8))(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[_0x32dd97(0x92)]]:{'w':0x2b8,'h':0x3f0},[o[_0x32dd97(0x72)]]:{'w':0x330,'h':0x4e0},[o[_0x32dd97(0x97)]]:{'w':0x330,'h':0x540},[o[_0x32dd97(0x74)]]:{'w':0x330,'h':0x420},[o[_0x32dd97(0x95)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e[_0x32dd97(0x7f)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x32dd97(0x79)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x32dd97(0x78),p=_0x32dd97(0x82);function _0x496c(_0x57a580,_0x592f4d){const _0x25afc1=_0x25af();return _0x496c=function(_0x496cc9,_0x238e6a){_0x496cc9=_0x496cc9-0x72;let _0x1b0aed=_0x25afc1[_0x496cc9];return _0x1b0aed;},_0x496c(_0x57a580,_0x592f4d);}function N(_0x2ded57,_0x38ac71){const _0x92c994=_0x32dd97,{w:_0x3e1440,h:_0x23f755}=g[_0x2ded57],_0x191996=_0x38ac71===i['Portrait']?_0x3e1440:_0x23f755,_0x4942b5=_0x38ac71===i[_0x92c994(0x84)]?_0x23f755:_0x3e1440,_0xcbfc1d='\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'+_0x191996+_0x92c994(0x8e)+_0x4942b5+_0x92c994(0x76)+l+_0x92c994(0x8c)+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+_0x92c994(0x96)+_0x4942b5+_0x92c994(0x7c)+_0x191996+_0x92c994(0x87),_0x453062=document[_0x92c994(0x93)](_0x92c994(0x80));return _0x453062[_0x92c994(0x8b)]=_0xcbfc1d,_0x453062[_0x92c994(0x83)]=_0x92c994(0x7e),_0x453062;}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};function _0x25af(){const _0x292363=['className','Portrait','Middle','Narrow','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','1598464bGkfCK','FitPage','9yLaiwy','innerHTML',',\x20.','11zOvToH','px\x20','7172590GusnWg','7184140EwkbZm','6552486ClmsnP','Executive','createElement','Origin','Statement','\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','26574864hlcBfI','Start','4LcctfS','FitWidth','29076dVmQfq','49NmXObh','FitHeight','Folio','Wide','Letter','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.','Landscape','printing-canvas-container','None','End','1652337bUVsHJ','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Custom','offline-printing-css','Normal','style','43DGWfYy','printing-canvas'];_0x25af=function(){return _0x292363;};return _0x25af();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2b45(_0x511408,_0x600a53){const _0x3a2f56=_0x3a2f();return _0x2b45=function(_0x2b459b,_0xcf074c){_0x2b459b=_0x2b459b-0x19a;let _0x15ade6=_0x3a2f56[_0x2b459b];return _0x15ade6;},_0x2b45(_0x511408,_0x600a53);}function _0x3a2f(){const _0x398bbe=['FitPage','PrintAlign','PrintPaperSize','FitWidth','printing-canvas-container','16233WuNXfj','3233076SHBnzf','object','86568OHGNvL','\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.','PrintPaperMargin','Narrow','FitHeight','Executive','Statement','toStringTag','PaperMarginMap','Origin','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','765254uPmlvO','Landscape','Middle','Letter','Folio','None','8MjAmCS','Normal','6830541eEoMzU','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.','709961ucxDvw','Custom','Start','Tabloid','Wide','style','476kUpmKv','PRINT_CONTAINER_CLASS','innerHTML','amd','End','5515180xGwDQy','\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','defineProperty','PrintScale','PRINT_CANVAS_CLASS','\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','className'];_0x3a2f=function(){return _0x398bbe;};return _0x3a2f();}(function(_0x37039d,_0x26d194){const _0x36965f=_0x2b45,_0x14d70d=_0x37039d();while(!![]){try{const _0x1bb944=parseInt(_0x36965f(0x1b4))/0x1+parseInt(_0x36965f(0x1ba))/0x2*(-parseInt(_0x36965f(0x19c))/0x3)+parseInt(_0x36965f(0x19f))/0x4+parseInt(_0x36965f(0x1bf))/0x5+-parseInt(_0x36965f(0x19d))/0x6+-parseInt(_0x36965f(0x1aa))/0x7+-parseInt(_0x36965f(0x1b0))/0x8*(-parseInt(_0x36965f(0x1b2))/0x9);if(_0x1bb944===_0x26d194)break;else _0x14d70d['push'](_0x14d70d['shift']());}catch(_0x3158bf){_0x14d70d['push'](_0x14d70d['shift']());}}}(_0x3a2f,0xa08c2),function(_0x19c967,_0x293e20){const _0x23ade=_0x2b45;typeof exports==_0x23ade(0x19e)&&typeof module<'u'?_0x293e20(exports):typeof define=='function'&&define[_0x23ade(0x1bd)]?define(['exports'],_0x293e20):(_0x19c967=typeof globalThis<'u'?globalThis:_0x19c967||self,_0x293e20(_0x19c967['UniverProPrint']={}));}(this,function(_0x3f62b0){'use strict';const _0x4b6edc=_0x2b45;var _0x3eefe5=(_0x38da95=>(_0x38da95[_0x4b6edc(0x1ad)]=_0x4b6edc(0x1ad),_0x38da95[_0x4b6edc(0x1b7)]=_0x4b6edc(0x1b7),_0x38da95[_0x4b6edc(0x1c6)]=_0x4b6edc(0x1c6),_0x38da95['Statement']=_0x4b6edc(0x1a5),_0x38da95[_0x4b6edc(0x1a4)]=_0x4b6edc(0x1a4),_0x38da95[_0x4b6edc(0x1ae)]='Folio',_0x38da95['A3']='A3',_0x38da95['A4']='A4',_0x38da95['A5']='A5',_0x38da95['B4']='B4',_0x38da95['B5']='B5',_0x38da95))(_0x3eefe5||{}),_0xc3347=(_0x3d1802=>(_0x3d1802[_0x4b6edc(0x1c1)]=_0x4b6edc(0x1c1),_0x3d1802['Landscape']=_0x4b6edc(0x1ab),_0x3d1802))(_0xc3347||{}),_0x364b8c=(_0x2115b8=>(_0x2115b8['Origin']=_0x4b6edc(0x1a8),_0x2115b8['FitWidth']=_0x4b6edc(0x19a),_0x2115b8[_0x4b6edc(0x1a3)]=_0x4b6edc(0x1a3),_0x2115b8[_0x4b6edc(0x1c8)]='FitPage',_0x2115b8[_0x4b6edc(0x1b5)]=_0x4b6edc(0x1b5),_0x2115b8))(_0x364b8c||{}),_0x1dacba=(_0x51d1d3=>(_0x51d1d3[_0x4b6edc(0x1b6)]=_0x4b6edc(0x1b6),_0x51d1d3[_0x4b6edc(0x1be)]=_0x4b6edc(0x1be),_0x51d1d3[_0x4b6edc(0x1ac)]=_0x4b6edc(0x1ac),_0x51d1d3))(_0x1dacba||{}),_0x4d6845=(_0x1c8f2e=>(_0x1c8f2e['Normal']='Normal',_0x1c8f2e[_0x4b6edc(0x1a2)]=_0x4b6edc(0x1a2),_0x1c8f2e['Wide']=_0x4b6edc(0x1b8),_0x1c8f2e[_0x4b6edc(0x1af)]=_0x4b6edc(0x1af),_0x1c8f2e))(_0x4d6845||{});const _0x2e4b04={[_0x3eefe5['A3']]:{'w':0x463,'h':0x633},[_0x3eefe5['A4']]:{'w':0x31a,'h':0x464},[_0x3eefe5['A5']]:{'w':0x22f,'h':0x31a},[_0x3eefe5['B4']]:{'w':0x3b0,'h':0x540},[_0x3eefe5['B5']]:{'w':0x299,'h':0x3b0},[_0x3eefe5[_0x4b6edc(0x1a4)]]:{'w':0x2b8,'h':0x3f0},[_0x3eefe5[_0x4b6edc(0x1ae)]]:{'w':0x330,'h':0x4e0},[_0x3eefe5['Legal']]:{'w':0x330,'h':0x540},[_0x3eefe5[_0x4b6edc(0x1ad)]]:{'w':0x330,'h':0x420},[_0x3eefe5[_0x4b6edc(0x1a5)]]:{'w':0x210,'h':0x330},[_0x3eefe5['Tabloid']]:{'w':0x420,'h':0x660}},_0x1318b3={[_0x4d6845[_0x4b6edc(0x1b1)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x4d6845['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x4d6845[_0x4b6edc(0x1b8)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x4d6845[_0x4b6edc(0x1af)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x35cb9a=_0x4b6edc(0x19b),_0x486657='printing-canvas';function _0x376a90(_0x16a33d,_0x19e65c){const _0x5b3dc3=_0x4b6edc,{w:_0x14b0bd,h:_0xfe9e12}=_0x2e4b04[_0x16a33d],_0x130687=_0x19e65c===_0xc3347['Portrait']?_0x14b0bd:_0xfe9e12,_0x3e489e=_0x19e65c===_0xc3347['Portrait']?_0xfe9e12:_0x14b0bd,_0x47b812=_0x5b3dc3(0x1c0)+_0x130687+'px\x20'+_0x3e489e+_0x5b3dc3(0x1b3)+_0x35cb9a+',\x20.'+_0x35cb9a+_0x5b3dc3(0x1a0)+_0x486657+_0x5b3dc3(0x1c5)+_0x3e489e+_0x5b3dc3(0x1a9)+_0x130687+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x378923=document['createElement'](_0x5b3dc3(0x1b9));return _0x378923[_0x5b3dc3(0x1bc)]=_0x47b812,_0x378923[_0x5b3dc3(0x1c7)]='offline-printing-css',_0x378923;}_0x3f62b0[_0x4b6edc(0x1c4)]=_0x486657,_0x3f62b0[_0x4b6edc(0x1bb)]=_0x35cb9a,_0x3f62b0[_0x4b6edc(0x1a7)]=_0x1318b3,_0x3f62b0['PaperSizePxMap']=_0x2e4b04,_0x3f62b0[_0x4b6edc(0x1c9)]=_0x1dacba,_0x3f62b0['PrintDirection']=_0xc3347,_0x3f62b0[_0x4b6edc(0x1a1)]=_0x4d6845,_0x3f62b0[_0x4b6edc(0x1ca)]=_0x3eefe5,_0x3f62b0[_0x4b6edc(0x1c3)]=_0x364b8c,_0x3f62b0['createPrintStyle']=_0x376a90,Object[_0x4b6edc(0x1c2)](_0x3f62b0,Symbol[_0x4b6edc(0x1a6)],{'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.9",
|
|
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.2",
|
|
47
47
|
"vitest": "^3.0.9",
|
|
48
|
-
"@univerjs-infra/shared": "0.6.
|
|
48
|
+
"@univerjs-infra/shared": "0.6.9"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|