@univerjs-pro/print 0.6.6 → 0.6.7-nightly.202503261607
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 +4 -4
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x22f7bc=_0x5e18;(function(_0x1cabf7,_0x8db2a9){const _0x599672=_0x5e18,_0x134fd3=_0x1cabf7();while(!![]){try{const _0x49b8a3=-parseInt(_0x599672(0x167))/0x1+parseInt(_0x599672(0x15a))/0x2*(parseInt(_0x599672(0x177))/0x3)+parseInt(_0x599672(0x155))/0x4*(-parseInt(_0x599672(0x15e))/0x5)+parseInt(_0x599672(0x16f))/0x6*(-parseInt(_0x599672(0x166))/0x7)+parseInt(_0x599672(0x178))/0x8*(-parseInt(_0x599672(0x16c))/0x9)+parseInt(_0x599672(0x151))/0xa*(parseInt(_0x599672(0x174))/0xb)+parseInt(_0x599672(0x15f))/0xc;if(_0x49b8a3===_0x8db2a9)break;else _0x134fd3['push'](_0x134fd3['shift']());}catch(_0x107402){_0x134fd3['push'](_0x134fd3['shift']());}}}(_0x4b5f,0x4fea2));function _0x4b5f(){const _0x3dc5b5=['652225eGpCJU','653680Gojqxu','Landscape','Legal','Custom','None','414YwqBon','printing-canvas-container','offline-printing-css','12zTYLJi','\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','Folio','Narrow','Wide','11xjAXmb','PrintAlign','Middle','14763xFriHf','38504EyCnnm','Letter','\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}','PRINT_CANVAS_CLASS','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.','FitHeight','FitPage','createElement','PRINT_CONTAINER_CLASS','Executive','Module','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','2336170Nfyzee','PrintPaperSize','PaperMarginMap','\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.','28lKOSzD','createPrintStyle','Normal','Portrait',',\x20.','22NuvXeL','Tabloid','px\x20','defineProperty','121655SHKFTG','15255924feNmpQ','End','Statement','PrintPaperMargin','Start','printing-canvas','Origin'];_0x4b5f=function(){return _0x3dc5b5;};return _0x4b5f();}function _0x5e18(_0x3a14d0,_0x40dc73){const _0x4b5f3a=_0x4b5f();return _0x5e18=function(_0x5e18d6,_0x4e8812){_0x5e18d6=_0x5e18d6-0x149;let _0x5280b4=_0x4b5f3a[_0x5e18d6];return _0x5280b4;},_0x5e18(_0x3a14d0,_0x40dc73);}Object[_0x22f7bc(0x15d)](exports,Symbol['toStringTag'],{'value':_0x22f7bc(0x14f)});var e=(_0x550480=>(_0x550480['Letter']=_0x22f7bc(0x179),_0x550480[_0x22f7bc(0x15b)]=_0x22f7bc(0x15b),_0x550480[_0x22f7bc(0x169)]=_0x22f7bc(0x169),_0x550480['Statement']=_0x22f7bc(0x161),_0x550480[_0x22f7bc(0x14e)]=_0x22f7bc(0x14e),_0x550480['Folio']='Folio',_0x550480['A3']='A3',_0x550480['A4']='A4',_0x550480['A5']='A5',_0x550480['B4']='B4',_0x550480['B5']='B5',_0x550480))(e||{}),i=(_0x15cd1e=>(_0x15cd1e['Portrait']=_0x22f7bc(0x158),_0x15cd1e['Landscape']=_0x22f7bc(0x168),_0x15cd1e))(i||{}),c=(_0x21471f=>(_0x21471f[_0x22f7bc(0x165)]=_0x22f7bc(0x165),_0x21471f['FitWidth']='FitWidth',_0x21471f[_0x22f7bc(0x14a)]=_0x22f7bc(0x14a),_0x21471f[_0x22f7bc(0x14b)]=_0x22f7bc(0x14b),_0x21471f['Custom']=_0x22f7bc(0x16a),_0x21471f))(c||{}),g=(_0x5948b5=>(_0x5948b5[_0x22f7bc(0x163)]=_0x22f7bc(0x163),_0x5948b5[_0x22f7bc(0x160)]='End',_0x5948b5[_0x22f7bc(0x176)]=_0x22f7bc(0x176),_0x5948b5))(g||{}),o=(_0x54b9f2=>(_0x54b9f2[_0x22f7bc(0x157)]=_0x22f7bc(0x157),_0x54b9f2[_0x22f7bc(0x172)]=_0x22f7bc(0x172),_0x54b9f2[_0x22f7bc(0x173)]=_0x22f7bc(0x173),_0x54b9f2[_0x22f7bc(0x16b)]=_0x22f7bc(0x16b),_0x54b9f2))(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[_0x22f7bc(0x14e)]]:{'w':0x2b8,'h':0x3f0},[e[_0x22f7bc(0x171)]]:{'w':0x330,'h':0x4e0},[e[_0x22f7bc(0x169)]]:{'w':0x330,'h':0x540},[e[_0x22f7bc(0x179)]]:{'w':0x330,'h':0x420},[e[_0x22f7bc(0x161)]]:{'w':0x210,'h':0x330},[e[_0x22f7bc(0x15b)]]:{'w':0x420,'h':0x660}},N={[o[_0x22f7bc(0x157)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x22f7bc(0x172)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x22f7bc(0x173)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x22f7bc(0x16b)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x22f7bc(0x16d),p=_0x22f7bc(0x164);function A(_0x1ee578,_0x40ee3f){const _0x16909a=_0x22f7bc,{w:_0x5682d7,h:_0x5a0fe1}=m[_0x1ee578],_0x28c1c0=_0x40ee3f===i[_0x16909a(0x158)]?_0x5682d7:_0x5a0fe1,_0x39b763=_0x40ee3f===i[_0x16909a(0x158)]?_0x5a0fe1:_0x5682d7,_0x3e8ef1=_0x16909a(0x170)+_0x28c1c0+_0x16909a(0x15c)+_0x39b763+_0x16909a(0x149)+n+_0x16909a(0x159)+n+_0x16909a(0x154)+p+_0x16909a(0x17a)+_0x39b763+_0x16909a(0x150)+_0x28c1c0+_0x16909a(0x17b),_0x26d3dc=document[_0x16909a(0x14c)]('style');return _0x26d3dc['innerHTML']=_0x3e8ef1,_0x26d3dc['className']=_0x16909a(0x16e),_0x26d3dc;}exports[_0x22f7bc(0x17c)]=p,exports[_0x22f7bc(0x14d)]=n,exports[_0x22f7bc(0x153)]=N,exports['PaperSizePxMap']=m,exports[_0x22f7bc(0x175)]=g,exports['PrintDirection']=i,exports[_0x22f7bc(0x162)]=o,exports[_0x22f7bc(0x152)]=e,exports['PrintScale']=c,exports[_0x22f7bc(0x156)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x1fb461=_0x18bb;function _0x18bb(_0x2485f3,_0x384b25){const _0x460559=_0x4605();return _0x18bb=function(_0x18bbb1,_0x784c72){_0x18bbb1=_0x18bbb1-0x6f;let _0x47261e=_0x460559[_0x18bbb1];return _0x47261e;},_0x18bb(_0x2485f3,_0x384b25);}(function(_0x59d452,_0xc7da49){const _0x160c3e=_0x18bb,_0x7129c0=_0x59d452();while(!![]){try{const _0x337f90=parseInt(_0x160c3e(0x74))/0x1*(parseInt(_0x160c3e(0x85))/0x2)+parseInt(_0x160c3e(0x76))/0x3+parseInt(_0x160c3e(0x8c))/0x4*(-parseInt(_0x160c3e(0x7a))/0x5)+parseInt(_0x160c3e(0x77))/0x6*(-parseInt(_0x160c3e(0x78))/0x7)+-parseInt(_0x160c3e(0x7d))/0x8+-parseInt(_0x160c3e(0x72))/0x9*(parseInt(_0x160c3e(0x80))/0xa)+parseInt(_0x160c3e(0x84))/0xb;if(_0x337f90===_0xc7da49)break;else _0x7129c0['push'](_0x7129c0['shift']());}catch(_0x55aba3){_0x7129c0['push'](_0x7129c0['shift']());}}}(_0x4605,0xcd63e));var o=(_0x34088c=>(_0x34088c[_0x1fb461(0x81)]=_0x1fb461(0x81),_0x34088c['Tabloid']=_0x1fb461(0x8f),_0x34088c['Legal']=_0x1fb461(0x7c),_0x34088c['Statement']=_0x1fb461(0x82),_0x34088c[_0x1fb461(0x91)]=_0x1fb461(0x91),_0x34088c[_0x1fb461(0x7f)]=_0x1fb461(0x7f),_0x34088c['A3']='A3',_0x34088c['A4']='A4',_0x34088c['A5']='A5',_0x34088c['B4']='B4',_0x34088c['B5']='B5',_0x34088c))(o||{}),i=(_0x176ea4=>(_0x176ea4['Portrait']=_0x1fb461(0x93),_0x176ea4[_0x1fb461(0x90)]=_0x1fb461(0x90),_0x176ea4))(i||{}),w=(_0xaa5d40=>(_0xaa5d40['Origin']=_0x1fb461(0x6f),_0xaa5d40[_0x1fb461(0x94)]=_0x1fb461(0x94),_0xaa5d40['FitHeight']=_0x1fb461(0x87),_0xaa5d40[_0x1fb461(0x96)]='FitPage',_0xaa5d40[_0x1fb461(0x86)]=_0x1fb461(0x86),_0xaa5d40))(w||{}),m=(_0x2a534f=>(_0x2a534f['Start']='Start',_0x2a534f[_0x1fb461(0x8e)]=_0x1fb461(0x8e),_0x2a534f[_0x1fb461(0x7b)]=_0x1fb461(0x7b),_0x2a534f))(m||{}),e=(_0x1e908b=>(_0x1e908b[_0x1fb461(0x8d)]='Normal',_0x1e908b[_0x1fb461(0x88)]='Narrow',_0x1e908b[_0x1fb461(0x83)]='Wide',_0x1e908b['None']=_0x1fb461(0x73),_0x1e908b))(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[_0x1fb461(0x91)]]:{'w':0x2b8,'h':0x3f0},[o[_0x1fb461(0x7f)]]:{'w':0x330,'h':0x4e0},[o[_0x1fb461(0x7c)]]:{'w':0x330,'h':0x540},[o['Letter']]:{'w':0x330,'h':0x420},[o[_0x1fb461(0x82)]]:{'w':0x210,'h':0x330},[o[_0x1fb461(0x8f)]]:{'w':0x420,'h':0x660}},v={[e[_0x1fb461(0x8d)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x1fb461(0x88)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x1fb461(0x83)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x1fb461(0x73)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x1fb461(0x92),p=_0x1fb461(0x75);function N(_0x530cdd,_0x59374c){const _0x3f8ee9=_0x1fb461,{w:_0x42751e,h:_0x5b2ba5}=g[_0x530cdd],_0x130c00=_0x59374c===i[_0x3f8ee9(0x93)]?_0x42751e:_0x5b2ba5,_0x551752=_0x59374c===i[_0x3f8ee9(0x93)]?_0x5b2ba5:_0x42751e,_0x50e1e3='\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'+_0x130c00+'px\x20'+_0x551752+_0x3f8ee9(0x70)+l+',\x20.'+l+_0x3f8ee9(0x89)+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'+_0x551752+_0x3f8ee9(0x71)+_0x130c00+_0x3f8ee9(0x8a),_0x183857=document[_0x3f8ee9(0x8b)]('style');return _0x183857[_0x3f8ee9(0x7e)]=_0x50e1e3,_0x183857[_0x3f8ee9(0x79)]=_0x3f8ee9(0x95),_0x183857;}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 _0x4605(){const _0x3d3010=['20vjWpxS','Letter','Statement','Wide','17450708bmincY','120452YgZJIN','Custom','FitHeight','Narrow','\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;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','createElement','45184nXiLKG','Normal','End','Tabloid','Landscape','Executive','printing-canvas-container','Portrait','FitWidth','offline-printing-css','FitPage','Origin','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.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','4593969DcEulg','None','27xvVSAr','printing-canvas','2925879MhlKQX','6hXKonC','7367423WdNArq','className','235vQMnrx','Middle','Legal','5938096khnjMC','innerHTML','Folio'];_0x4605=function(){return _0x3d3010;};return _0x4605();}
|
package/lib/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x1fb461=_0x18bb;function _0x18bb(_0x2485f3,_0x384b25){const _0x460559=_0x4605();return _0x18bb=function(_0x18bbb1,_0x784c72){_0x18bbb1=_0x18bbb1-0x6f;let _0x47261e=_0x460559[_0x18bbb1];return _0x47261e;},_0x18bb(_0x2485f3,_0x384b25);}(function(_0x59d452,_0xc7da49){const _0x160c3e=_0x18bb,_0x7129c0=_0x59d452();while(!![]){try{const _0x337f90=parseInt(_0x160c3e(0x74))/0x1*(parseInt(_0x160c3e(0x85))/0x2)+parseInt(_0x160c3e(0x76))/0x3+parseInt(_0x160c3e(0x8c))/0x4*(-parseInt(_0x160c3e(0x7a))/0x5)+parseInt(_0x160c3e(0x77))/0x6*(-parseInt(_0x160c3e(0x78))/0x7)+-parseInt(_0x160c3e(0x7d))/0x8+-parseInt(_0x160c3e(0x72))/0x9*(parseInt(_0x160c3e(0x80))/0xa)+parseInt(_0x160c3e(0x84))/0xb;if(_0x337f90===_0xc7da49)break;else _0x7129c0['push'](_0x7129c0['shift']());}catch(_0x55aba3){_0x7129c0['push'](_0x7129c0['shift']());}}}(_0x4605,0xcd63e));var o=(_0x34088c=>(_0x34088c[_0x1fb461(0x81)]=_0x1fb461(0x81),_0x34088c['Tabloid']=_0x1fb461(0x8f),_0x34088c['Legal']=_0x1fb461(0x7c),_0x34088c['Statement']=_0x1fb461(0x82),_0x34088c[_0x1fb461(0x91)]=_0x1fb461(0x91),_0x34088c[_0x1fb461(0x7f)]=_0x1fb461(0x7f),_0x34088c['A3']='A3',_0x34088c['A4']='A4',_0x34088c['A5']='A5',_0x34088c['B4']='B4',_0x34088c['B5']='B5',_0x34088c))(o||{}),i=(_0x176ea4=>(_0x176ea4['Portrait']=_0x1fb461(0x93),_0x176ea4[_0x1fb461(0x90)]=_0x1fb461(0x90),_0x176ea4))(i||{}),w=(_0xaa5d40=>(_0xaa5d40['Origin']=_0x1fb461(0x6f),_0xaa5d40[_0x1fb461(0x94)]=_0x1fb461(0x94),_0xaa5d40['FitHeight']=_0x1fb461(0x87),_0xaa5d40[_0x1fb461(0x96)]='FitPage',_0xaa5d40[_0x1fb461(0x86)]=_0x1fb461(0x86),_0xaa5d40))(w||{}),m=(_0x2a534f=>(_0x2a534f['Start']='Start',_0x2a534f[_0x1fb461(0x8e)]=_0x1fb461(0x8e),_0x2a534f[_0x1fb461(0x7b)]=_0x1fb461(0x7b),_0x2a534f))(m||{}),e=(_0x1e908b=>(_0x1e908b[_0x1fb461(0x8d)]='Normal',_0x1e908b[_0x1fb461(0x88)]='Narrow',_0x1e908b[_0x1fb461(0x83)]='Wide',_0x1e908b['None']=_0x1fb461(0x73),_0x1e908b))(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[_0x1fb461(0x91)]]:{'w':0x2b8,'h':0x3f0},[o[_0x1fb461(0x7f)]]:{'w':0x330,'h':0x4e0},[o[_0x1fb461(0x7c)]]:{'w':0x330,'h':0x540},[o['Letter']]:{'w':0x330,'h':0x420},[o[_0x1fb461(0x82)]]:{'w':0x210,'h':0x330},[o[_0x1fb461(0x8f)]]:{'w':0x420,'h':0x660}},v={[e[_0x1fb461(0x8d)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x1fb461(0x88)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x1fb461(0x83)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x1fb461(0x73)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x1fb461(0x92),p=_0x1fb461(0x75);function N(_0x530cdd,_0x59374c){const _0x3f8ee9=_0x1fb461,{w:_0x42751e,h:_0x5b2ba5}=g[_0x530cdd],_0x130c00=_0x59374c===i[_0x3f8ee9(0x93)]?_0x42751e:_0x5b2ba5,_0x551752=_0x59374c===i[_0x3f8ee9(0x93)]?_0x5b2ba5:_0x42751e,_0x50e1e3='\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'+_0x130c00+'px\x20'+_0x551752+_0x3f8ee9(0x70)+l+',\x20.'+l+_0x3f8ee9(0x89)+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'+_0x551752+_0x3f8ee9(0x71)+_0x130c00+_0x3f8ee9(0x8a),_0x183857=document[_0x3f8ee9(0x8b)]('style');return _0x183857[_0x3f8ee9(0x7e)]=_0x50e1e3,_0x183857[_0x3f8ee9(0x79)]=_0x3f8ee9(0x95),_0x183857;}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 _0x4605(){const _0x3d3010=['20vjWpxS','Letter','Statement','Wide','17450708bmincY','120452YgZJIN','Custom','FitHeight','Narrow','\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;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','createElement','45184nXiLKG','Normal','End','Tabloid','Landscape','Executive','printing-canvas-container','Portrait','FitWidth','offline-printing-css','FitPage','Origin','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.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','4593969DcEulg','None','27xvVSAr','printing-canvas','2925879MhlKQX','6hXKonC','7367423WdNArq','className','235vQMnrx','Middle','Legal','5938096khnjMC','innerHTML','Folio'];_0x4605=function(){return _0x3d3010;};return _0x4605();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x394b(){const _0x3e02ed=['Statement','printing-canvas-container','12WUgpKv','PrintPaperSize','Folio','PaperMarginMap','className','None','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Legal','PRINT_CANVAS_CLASS','7343fwBEuR','Letter','printing-canvas','Wide','4603740kGJvEh','1754304VMIvHl','Middle','Custom','End','Normal','PrintDirection','PaperSizePxMap','UniverProPrint','\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','offline-printing-css','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.','Executive','Landscape','PRINT_CONTAINER_CLASS','Portrait','\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.','2696TYkmBq','function','Narrow','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','px\x20','279479GnXDMB','object','570051RWcjzO','Start','4FnVinL','Module','style','PrintAlign','Tabloid','createElement','toStringTag','FitWidth','FitHeight','PrintScale','1260325TLRlMs','innerHTML','FitPage','8437959xhBWKR'];_0x394b=function(){return _0x3e02ed;};return _0x394b();}function _0x53c3(_0x451573,_0x2a86dc){const _0x394b87=_0x394b();return _0x53c3=function(_0x53c3c,_0x335857){_0x53c3c=_0x53c3c-0x17a;let _0x18a7d5=_0x394b87[_0x53c3c];return _0x18a7d5;},_0x53c3(_0x451573,_0x2a86dc);}(function(_0x18cba6,_0x548666){const _0x17e02a=_0x53c3,_0x4c943b=_0x18cba6();while(!![]){try{const _0x4cdc5c=-parseInt(_0x17e02a(0x1a2))/0x1*(-parseInt(_0x17e02a(0x1a6))/0x2)+-parseInt(_0x17e02a(0x1a4))/0x3+parseInt(_0x17e02a(0x18d))/0x4+parseInt(_0x17e02a(0x1b0))/0x5*(parseInt(_0x17e02a(0x17f))/0x6)+-parseInt(_0x17e02a(0x188))/0x7*(parseInt(_0x17e02a(0x19d))/0x8)+-parseInt(_0x17e02a(0x17c))/0x9+parseInt(_0x17e02a(0x18c))/0xa;if(_0x4cdc5c===_0x548666)break;else _0x4c943b['push'](_0x4c943b['shift']());}catch(_0x8e4ef1){_0x4c943b['push'](_0x4c943b['shift']());}}}(_0x394b,0x756bd),function(_0x48d3ed,_0x16a001){const _0x144387=_0x53c3;typeof exports==_0x144387(0x1a3)&&typeof module<'u'?_0x16a001(exports):typeof define==_0x144387(0x19e)&&define['amd']?define(['exports'],_0x16a001):(_0x48d3ed=typeof globalThis<'u'?globalThis:_0x48d3ed||self,_0x16a001(_0x48d3ed[_0x144387(0x194)]={}));}(this,function(_0x5546f8){'use strict';const _0x43dd0e=_0x53c3;var _0x2bc74d=(_0x4f157b=>(_0x4f157b[_0x43dd0e(0x189)]=_0x43dd0e(0x189),_0x4f157b[_0x43dd0e(0x1aa)]=_0x43dd0e(0x1aa),_0x4f157b[_0x43dd0e(0x186)]='Legal',_0x4f157b[_0x43dd0e(0x17d)]=_0x43dd0e(0x17d),_0x4f157b[_0x43dd0e(0x198)]='Executive',_0x4f157b[_0x43dd0e(0x181)]=_0x43dd0e(0x181),_0x4f157b['A3']='A3',_0x4f157b['A4']='A4',_0x4f157b['A5']='A5',_0x4f157b['B4']='B4',_0x4f157b['B5']='B5',_0x4f157b))(_0x2bc74d||{}),_0x30f30c=(_0x2a915c=>(_0x2a915c[_0x43dd0e(0x19b)]=_0x43dd0e(0x19b),_0x2a915c[_0x43dd0e(0x199)]=_0x43dd0e(0x199),_0x2a915c))(_0x30f30c||{}),_0x189185=(_0x3c46fb=>(_0x3c46fb['Origin']='Origin',_0x3c46fb[_0x43dd0e(0x1ad)]='FitWidth',_0x3c46fb['FitHeight']=_0x43dd0e(0x1ae),_0x3c46fb[_0x43dd0e(0x17b)]='FitPage',_0x3c46fb['Custom']=_0x43dd0e(0x18f),_0x3c46fb))(_0x189185||{}),_0x59b871=(_0x2e674c=>(_0x2e674c['Start']=_0x43dd0e(0x1a5),_0x2e674c[_0x43dd0e(0x190)]=_0x43dd0e(0x190),_0x2e674c[_0x43dd0e(0x18e)]='Middle',_0x2e674c))(_0x59b871||{}),_0x59245b=(_0xa9e314=>(_0xa9e314[_0x43dd0e(0x191)]=_0x43dd0e(0x191),_0xa9e314[_0x43dd0e(0x19f)]=_0x43dd0e(0x19f),_0xa9e314[_0x43dd0e(0x18b)]=_0x43dd0e(0x18b),_0xa9e314[_0x43dd0e(0x184)]='None',_0xa9e314))(_0x59245b||{});const _0x5d387c={[_0x2bc74d['A3']]:{'w':0x463,'h':0x633},[_0x2bc74d['A4']]:{'w':0x31a,'h':0x464},[_0x2bc74d['A5']]:{'w':0x22f,'h':0x31a},[_0x2bc74d['B4']]:{'w':0x3b0,'h':0x540},[_0x2bc74d['B5']]:{'w':0x299,'h':0x3b0},[_0x2bc74d['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x2bc74d['Folio']]:{'w':0x330,'h':0x4e0},[_0x2bc74d['Legal']]:{'w':0x330,'h':0x540},[_0x2bc74d[_0x43dd0e(0x189)]]:{'w':0x330,'h':0x420},[_0x2bc74d[_0x43dd0e(0x17d)]]:{'w':0x210,'h':0x330},[_0x2bc74d[_0x43dd0e(0x1aa)]]:{'w':0x420,'h':0x660}},_0x31e1e1={[_0x59245b[_0x43dd0e(0x191)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x59245b[_0x43dd0e(0x19f)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x59245b[_0x43dd0e(0x18b)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x59245b[_0x43dd0e(0x184)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x5cb4a9=_0x43dd0e(0x17e),_0x4024be=_0x43dd0e(0x18a);function _0x316a3b(_0x20b8db,_0x39fb75){const _0x41cd78=_0x43dd0e,{w:_0x41a986,h:_0x27e5b0}=_0x5d387c[_0x20b8db],_0x3e9fb1=_0x39fb75===_0x30f30c[_0x41cd78(0x19b)]?_0x41a986:_0x27e5b0,_0x2ae8d3=_0x39fb75===_0x30f30c[_0x41cd78(0x19b)]?_0x27e5b0:_0x41a986,_0x20de0f=_0x41cd78(0x195)+_0x3e9fb1+_0x41cd78(0x1a1)+_0x2ae8d3+_0x41cd78(0x197)+_0x5cb4a9+',\x20.'+_0x5cb4a9+_0x41cd78(0x19c)+_0x4024be+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x2ae8d3+_0x41cd78(0x185)+_0x3e9fb1+_0x41cd78(0x1a0),_0x183372=document[_0x41cd78(0x1ab)](_0x41cd78(0x1a8));return _0x183372[_0x41cd78(0x17a)]=_0x20de0f,_0x183372[_0x41cd78(0x183)]=_0x41cd78(0x196),_0x183372;}_0x5546f8[_0x43dd0e(0x187)]=_0x4024be,_0x5546f8[_0x43dd0e(0x19a)]=_0x5cb4a9,_0x5546f8[_0x43dd0e(0x182)]=_0x31e1e1,_0x5546f8[_0x43dd0e(0x193)]=_0x5d387c,_0x5546f8[_0x43dd0e(0x1a9)]=_0x59b871,_0x5546f8[_0x43dd0e(0x192)]=_0x30f30c,_0x5546f8['PrintPaperMargin']=_0x59245b,_0x5546f8[_0x43dd0e(0x180)]=_0x2bc74d,_0x5546f8[_0x43dd0e(0x1af)]=_0x189185,_0x5546f8['createPrintStyle']=_0x316a3b,Object['defineProperty'](_0x5546f8,Symbol[_0x43dd0e(0x1ac)],{'value':_0x43dd0e(0x1a7)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7-nightly.202503261607",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^5.8.2",
|
|
46
|
-
"vite": "^6.2.
|
|
47
|
-
"vitest": "^3.0.
|
|
48
|
-
"@univerjs-infra/shared": "0.6.
|
|
46
|
+
"vite": "^6.2.2",
|
|
47
|
+
"vitest": "^3.0.9",
|
|
48
|
+
"@univerjs-infra/shared": "0.6.7"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|