@univerjs-pro/print 0.14.0 → 0.15.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/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +4 -4
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x4cd35f=_0x51ee;(function(_0x5de8e2,_0x5f4fcc){const _0x3fb2e9=_0x51ee,_0x1c39dd=_0x5de8e2();while(!![]){try{const _0xff88b6=-parseInt(_0x3fb2e9(0x111))/0x1*(parseInt(_0x3fb2e9(0xee))/0x2)+parseInt(_0x3fb2e9(0xef))/0x3+-parseInt(_0x3fb2e9(0x105))/0x4*(-parseInt(_0x3fb2e9(0x10b))/0x5)+-parseInt(_0x3fb2e9(0xed))/0x6+-parseInt(_0x3fb2e9(0xe9))/0x7+parseInt(_0x3fb2e9(0x103))/0x8*(-parseInt(_0x3fb2e9(0x104))/0x9)+parseInt(_0x3fb2e9(0xf8))/0xa;if(_0xff88b6===_0x5f4fcc)break;else _0x1c39dd['push'](_0x1c39dd['shift']());}catch(_0x5d429e){_0x1c39dd['push'](_0x1c39dd['shift']());}}}(_0x2615,0xdd9d2));function _0x2615(){const _0x5ac3ec=['Wide','13333496WEQEzl','9uEjOuJ','796xkTyJW','FitPage','Landscape','FitWidth','PrintDirection','printing-canvas','23455mFOoHE','Normal','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Middle','createElement','printing-canvas-container','44ASJsFB','PRINT_CANVAS_CLASS','3036803gnLRyB','px\x20','PrintPaperMargin','offline-printing-css','3691866RQKNUj','4078SBdMyJ','282009JDYRiH','None','FitHeight','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','innerHTML','PRINT_CONTAINER_CLASS','className','PaperMarginMap','defineProperty','26857610kVEGFs','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','PrintAlign','End',',\x20.','Origin','Narrow','PrintScale','Module','Custom'];_0x2615=function(){return _0x5ac3ec;};return _0x2615();}Object[_0x4cd35f(0xf7)](exports,Symbol['toStringTag'],{'value':_0x4cd35f(0x100)});function _0x51ee(_0x424fcd,_0x24bc16){_0x424fcd=_0x424fcd-0xe9;const _0x261588=_0x2615();let _0x51eeac=_0x261588[_0x424fcd];return _0x51eeac;}var i=(_0x3b6693=>(_0x3b6693['Portrait']='Portrait',_0x3b6693[_0x4cd35f(0x107)]=_0x4cd35f(0x107),_0x3b6693))(i||{}),l=(_0x5988e4=>(_0x5988e4[_0x4cd35f(0xfd)]='Origin',_0x5988e4[_0x4cd35f(0x108)]='FitWidth',_0x5988e4[_0x4cd35f(0xf1)]=_0x4cd35f(0xf1),_0x5988e4['FitPage']=_0x4cd35f(0x106),_0x5988e4[_0x4cd35f(0x101)]='Custom',_0x5988e4))(l||{}),m=(_0x57fe30=>(_0x57fe30['Start']='Start',_0x57fe30['End']=_0x4cd35f(0xfb),_0x57fe30[_0x4cd35f(0x10e)]='Middle',_0x57fe30))(m||{}),o=(_0x41980=>(_0x41980[_0x4cd35f(0x10c)]='Normal',_0x41980['Narrow']=_0x4cd35f(0xfe),_0x41980[_0x4cd35f(0x102)]=_0x4cd35f(0x102),_0x41980[_0x4cd35f(0xf0)]=_0x4cd35f(0xf0),_0x41980[_0x4cd35f(0x101)]='Custom',_0x41980))(o||{});const g={[o[_0x4cd35f(0x10c)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x4cd35f(0xfe)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x4cd35f(0x102)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x4cd35f(0xf0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x4cd35f(0x101)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x4cd35f(0x110),n=_0x4cd35f(0x10a);function h(_0x3995cc,_0x4ef141,_0x6d24c2){const _0x53ebda=_0x4cd35f,_0x1e26ea=_0x6d24c2===i['Portrait']?_0x3995cc:_0x4ef141,_0x142452=_0x6d24c2===i['Portrait']?_0x4ef141:_0x3995cc,_0x56156a='\x0a\x20\x20\x20\x20.'+n+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x1e26ea+_0x53ebda(0xea)+_0x142452+_0x53ebda(0xf2)+r+_0x53ebda(0xfc)+r+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+n+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x142452+_0x53ebda(0x10d)+_0x1e26ea+_0x53ebda(0xf9),_0x1a4bbd=document[_0x53ebda(0x10f)]('style');return _0x1a4bbd[_0x53ebda(0xf3)]=_0x56156a,_0x1a4bbd[_0x53ebda(0xf5)]=_0x53ebda(0xec),_0x1a4bbd;}exports[_0x4cd35f(0x112)]=n,exports[_0x4cd35f(0xf4)]=r,exports[_0x4cd35f(0xf6)]=g,exports[_0x4cd35f(0xfa)]=m,exports[_0x4cd35f(0x109)]=i,exports[_0x4cd35f(0xeb)]=o,exports[_0x4cd35f(0xff)]=l,exports['createPrintStyle']=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x15b66c=_0xe18e;(function(_0x1a804c,_0x13c7f3){const _0xe7cc3e=_0xe18e,_0x4a47f0=_0x1a804c();while(!![]){try{const _0x5ef4de=parseInt(_0xe7cc3e(0x121))/0x1*(-parseInt(_0xe7cc3e(0x10c))/0x2)+-parseInt(_0xe7cc3e(0x123))/0x3+parseInt(_0xe7cc3e(0x103))/0x4*(-parseInt(_0xe7cc3e(0x11e))/0x5)+-parseInt(_0xe7cc3e(0x120))/0x6*(parseInt(_0xe7cc3e(0x116))/0x7)+-parseInt(_0xe7cc3e(0x101))/0x8*(-parseInt(_0xe7cc3e(0x111))/0x9)+parseInt(_0xe7cc3e(0x104))/0xa*(-parseInt(_0xe7cc3e(0x119))/0xb)+parseInt(_0xe7cc3e(0x11a))/0xc*(parseInt(_0xe7cc3e(0x108))/0xd);if(_0x5ef4de===_0x13c7f3)break;else _0x4a47f0['push'](_0x4a47f0['shift']());}catch(_0x5c54fa){_0x4a47f0['push'](_0x4a47f0['shift']());}}}(_0x3773,0x93dac));var e=(_0x3ab2a1=>(_0x3ab2a1[_0x15b66c(0x125)]=_0x15b66c(0x125),_0x3ab2a1['Landscape']=_0x15b66c(0x11d),_0x3ab2a1))(e||{}),h=(_0x5e96b0=>(_0x5e96b0[_0x15b66c(0x10a)]=_0x15b66c(0x10a),_0x5e96b0['FitWidth']=_0x15b66c(0x10e),_0x5e96b0[_0x15b66c(0x126)]='FitHeight',_0x5e96b0[_0x15b66c(0x114)]=_0x15b66c(0x114),_0x5e96b0[_0x15b66c(0x122)]=_0x15b66c(0x122),_0x5e96b0))(h||{}),l=(_0x362aa3=>(_0x362aa3[_0x15b66c(0x118)]=_0x15b66c(0x118),_0x362aa3[_0x15b66c(0x102)]=_0x15b66c(0x102),_0x362aa3[_0x15b66c(0x109)]=_0x15b66c(0x109),_0x362aa3))(l||{}),o=(_0x9c4ce0=>(_0x9c4ce0[_0x15b66c(0x11b)]=_0x15b66c(0x11b),_0x9c4ce0[_0x15b66c(0x113)]=_0x15b66c(0x113),_0x9c4ce0[_0x15b66c(0x100)]=_0x15b66c(0x100),_0x9c4ce0[_0x15b66c(0x106)]='None',_0x9c4ce0[_0x15b66c(0x122)]='Custom',_0x9c4ce0))(o||{});function _0xe18e(_0x4d908a,_0x3cf348){_0x4d908a=_0x4d908a-0x100;const _0x3773d7=_0x3773();let _0xe18e6=_0x3773d7[_0x4d908a];return _0xe18e6;}const c={[o[_0x15b66c(0x11b)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x15b66c(0x100)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x15b66c(0x106)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x15b66c(0x122)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x15b66c(0x115),d=_0x15b66c(0x107);function g(_0x1680a6,_0x4b759b,_0x3dee94){const _0x2d9c9a=_0x15b66c,_0x43ace4=_0x3dee94===e['Portrait']?_0x1680a6:_0x4b759b,_0x2524c5=_0x3dee94===e[_0x2d9c9a(0x125)]?_0x4b759b:_0x1680a6,_0x5ae90b=_0x2d9c9a(0x127)+d+_0x2d9c9a(0x11f)+_0x43ace4+_0x2d9c9a(0x112)+_0x2524c5+'px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+p+_0x2d9c9a(0x124)+p+_0x2d9c9a(0x10d)+d+_0x2d9c9a(0x105)+_0x2524c5+_0x2d9c9a(0x10f)+_0x43ace4+_0x2d9c9a(0x11c),_0x33616a=document[_0x2d9c9a(0x110)]('style');return _0x33616a[_0x2d9c9a(0x10b)]=_0x5ae90b,_0x33616a[_0x2d9c9a(0x117)]='offline-printing-css',_0x33616a;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,l as PrintAlign,e as PrintDirection,o as PrintPaperMargin,h as PrintScale,g as createPrintStyle};function _0x3773(){const _0x32aea9=['38511OOkeEw','12llquTQ','Normal','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','Landscape','61345ZsWeeQ','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','8250RzRAmI','58687ZnrFdm','Custom','1276038ZEDRKk',',\x20.','Portrait','FitHeight','\x0a\x20\x20\x20\x20.','Wide','229480zseKkv','End','228SSRJgZ','2830fIOMIv','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','None','printing-canvas','34919677WtMaFR','Middle','Origin','innerHTML','10lvvsTh','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','FitWidth','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','createElement','207ICrKnw','px\x20','Narrow','FitPage','printing-canvas-container','1687OiWvEh','className','Start'];_0x3773=function(){return _0x32aea9;};return _0x3773();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x15b66c=_0xe18e;(function(_0x1a804c,_0x13c7f3){const _0xe7cc3e=_0xe18e,_0x4a47f0=_0x1a804c();while(!![]){try{const _0x5ef4de=parseInt(_0xe7cc3e(0x121))/0x1*(-parseInt(_0xe7cc3e(0x10c))/0x2)+-parseInt(_0xe7cc3e(0x123))/0x3+parseInt(_0xe7cc3e(0x103))/0x4*(-parseInt(_0xe7cc3e(0x11e))/0x5)+-parseInt(_0xe7cc3e(0x120))/0x6*(parseInt(_0xe7cc3e(0x116))/0x7)+-parseInt(_0xe7cc3e(0x101))/0x8*(-parseInt(_0xe7cc3e(0x111))/0x9)+parseInt(_0xe7cc3e(0x104))/0xa*(-parseInt(_0xe7cc3e(0x119))/0xb)+parseInt(_0xe7cc3e(0x11a))/0xc*(parseInt(_0xe7cc3e(0x108))/0xd);if(_0x5ef4de===_0x13c7f3)break;else _0x4a47f0['push'](_0x4a47f0['shift']());}catch(_0x5c54fa){_0x4a47f0['push'](_0x4a47f0['shift']());}}}(_0x3773,0x93dac));var e=(_0x3ab2a1=>(_0x3ab2a1[_0x15b66c(0x125)]=_0x15b66c(0x125),_0x3ab2a1['Landscape']=_0x15b66c(0x11d),_0x3ab2a1))(e||{}),h=(_0x5e96b0=>(_0x5e96b0[_0x15b66c(0x10a)]=_0x15b66c(0x10a),_0x5e96b0['FitWidth']=_0x15b66c(0x10e),_0x5e96b0[_0x15b66c(0x126)]='FitHeight',_0x5e96b0[_0x15b66c(0x114)]=_0x15b66c(0x114),_0x5e96b0[_0x15b66c(0x122)]=_0x15b66c(0x122),_0x5e96b0))(h||{}),l=(_0x362aa3=>(_0x362aa3[_0x15b66c(0x118)]=_0x15b66c(0x118),_0x362aa3[_0x15b66c(0x102)]=_0x15b66c(0x102),_0x362aa3[_0x15b66c(0x109)]=_0x15b66c(0x109),_0x362aa3))(l||{}),o=(_0x9c4ce0=>(_0x9c4ce0[_0x15b66c(0x11b)]=_0x15b66c(0x11b),_0x9c4ce0[_0x15b66c(0x113)]=_0x15b66c(0x113),_0x9c4ce0[_0x15b66c(0x100)]=_0x15b66c(0x100),_0x9c4ce0[_0x15b66c(0x106)]='None',_0x9c4ce0[_0x15b66c(0x122)]='Custom',_0x9c4ce0))(o||{});function _0xe18e(_0x4d908a,_0x3cf348){_0x4d908a=_0x4d908a-0x100;const _0x3773d7=_0x3773();let _0xe18e6=_0x3773d7[_0x4d908a];return _0xe18e6;}const c={[o[_0x15b66c(0x11b)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x15b66c(0x100)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x15b66c(0x106)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x15b66c(0x122)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x15b66c(0x115),d=_0x15b66c(0x107);function g(_0x1680a6,_0x4b759b,_0x3dee94){const _0x2d9c9a=_0x15b66c,_0x43ace4=_0x3dee94===e['Portrait']?_0x1680a6:_0x4b759b,_0x2524c5=_0x3dee94===e[_0x2d9c9a(0x125)]?_0x4b759b:_0x1680a6,_0x5ae90b=_0x2d9c9a(0x127)+d+_0x2d9c9a(0x11f)+_0x43ace4+_0x2d9c9a(0x112)+_0x2524c5+'px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+p+_0x2d9c9a(0x124)+p+_0x2d9c9a(0x10d)+d+_0x2d9c9a(0x105)+_0x2524c5+_0x2d9c9a(0x10f)+_0x43ace4+_0x2d9c9a(0x11c),_0x33616a=document[_0x2d9c9a(0x110)]('style');return _0x33616a[_0x2d9c9a(0x10b)]=_0x5ae90b,_0x33616a[_0x2d9c9a(0x117)]='offline-printing-css',_0x33616a;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,l as PrintAlign,e as PrintDirection,o as PrintPaperMargin,h as PrintScale,g as createPrintStyle};function _0x3773(){const _0x32aea9=['38511OOkeEw','12llquTQ','Normal','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','Landscape','61345ZsWeeQ','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','8250RzRAmI','58687ZnrFdm','Custom','1276038ZEDRKk',',\x20.','Portrait','FitHeight','\x0a\x20\x20\x20\x20.','Wide','229480zseKkv','End','228SSRJgZ','2830fIOMIv','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','None','printing-canvas','34919677WtMaFR','Middle','Origin','innerHTML','10lvvsTh','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','FitWidth','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','createElement','207ICrKnw','px\x20','Narrow','FitPage','printing-canvas-container','1687OiWvEh','className','Start'];_0x3773=function(){return _0x32aea9;};return _0x3773();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x125cd3,_0x2f46df){const _0x4ce444=_0x49ce,_0x5524e6=_0x125cd3();while(!![]){try{const _0x44254c=-parseInt(_0x4ce444(0xed))/0x1+-parseInt(_0x4ce444(0xfd))/0x2+-parseInt(_0x4ce444(0xf9))/0x3*(-parseInt(_0x4ce444(0xfe))/0x4)+-parseInt(_0x4ce444(0xf0))/0x5*(-parseInt(_0x4ce444(0xf5))/0x6)+-parseInt(_0x4ce444(0xdf))/0x7*(-parseInt(_0x4ce444(0xea))/0x8)+parseInt(_0x4ce444(0xe6))/0x9*(parseInt(_0x4ce444(0xe7))/0xa)+-parseInt(_0x4ce444(0xf6))/0xb;if(_0x44254c===_0x2f46df)break;else _0x5524e6['push'](_0x5524e6['shift']());}catch(_0x52f0e4){_0x5524e6['push'](_0x5524e6['shift']());}}}(_0xcbed,0x904f9),function(_0x45a70d,_0x10872d){const _0xe14bdf=_0x49ce;typeof exports==_0xe14bdf(0x100)&&typeof module<'u'?_0x10872d(exports):typeof define==_0xe14bdf(0x105)&&define[_0xe14bdf(0xec)]?define(['exports'],_0x10872d):(_0x45a70d=typeof globalThis<'u'?globalThis:_0x45a70d||self,_0x10872d(_0x45a70d[_0xe14bdf(0xdb)]={}));}(this,function(_0x1f79e4){'use strict';const _0x588f40=_0x49ce;var _0x2a7f97=(_0x10861a=>(_0x10861a[_0x588f40(0xe9)]=_0x588f40(0xe9),_0x10861a[_0x588f40(0xe8)]=_0x588f40(0xe8),_0x10861a))(_0x2a7f97||{}),_0x4f4fb9=(_0xdf4a3c=>(_0xdf4a3c[_0x588f40(0xdd)]='Origin',_0xdf4a3c[_0x588f40(0xe3)]=_0x588f40(0xe3),_0xdf4a3c[_0x588f40(0xef)]=_0x588f40(0xef),_0xdf4a3c['FitPage']='FitPage',_0xdf4a3c[_0x588f40(0x108)]='Custom',_0xdf4a3c))(_0x4f4fb9||{}),_0x52763b=(_0xca2756=>(_0xca2756['Start']='Start',_0xca2756[_0x588f40(0xf7)]=_0x588f40(0xf7),_0xca2756[_0x588f40(0xfb)]='Middle',_0xca2756))(_0x52763b||{}),_0x277d0f=(_0x1f90dc=>(_0x1f90dc[_0x588f40(0xe1)]=_0x588f40(0xe1),_0x1f90dc['Narrow']='Narrow',_0x1f90dc[_0x588f40(0xe0)]=_0x588f40(0xe0),_0x1f90dc[_0x588f40(0xee)]='None',_0x1f90dc[_0x588f40(0x108)]=_0x588f40(0x108),_0x1f90dc))(_0x277d0f||{});const _0x5a18fd={[_0x277d0f[_0x588f40(0xe1)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x277d0f['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x277d0f[_0x588f40(0xe0)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x277d0f[_0x588f40(0xee)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x277d0f[_0x588f40(0x108)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x2172cd='printing-canvas-container',_0x1d1fcb='printing-canvas';function _0xd43a55(_0x1f594,_0x2624db,_0x13326f){const _0x21f362=_0x588f40,_0x538d79=_0x13326f===_0x2a7f97['Portrait']?_0x1f594:_0x2624db,_0x5cff30=_0x13326f===_0x2a7f97[_0x21f362(0xe9)]?_0x2624db:_0x1f594,_0x26fb3b=_0x21f362(0xfa)+_0x1d1fcb+_0x21f362(0xfc)+_0x538d79+_0x21f362(0xe2)+_0x5cff30+_0x21f362(0xf4)+_0x2172cd+',\x20.'+_0x2172cd+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+_0x1d1fcb+_0x21f362(0xde)+_0x5cff30+_0x21f362(0x107)+_0x538d79+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}',_0x48bbaf=document[_0x21f362(0xdc)](_0x21f362(0xf3));return _0x48bbaf[_0x21f362(0xeb)]=_0x26fb3b,_0x48bbaf[_0x21f362(0xf2)]=_0x21f362(0xf8),_0x48bbaf;}_0x1f79e4[_0x588f40(0xe5)]=_0x1d1fcb,_0x1f79e4[_0x588f40(0xe4)]=_0x2172cd,_0x1f79e4[_0x588f40(0xf1)]=_0x5a18fd,_0x1f79e4[_0x588f40(0x103)]=_0x52763b,_0x1f79e4[_0x588f40(0x102)]=_0x2a7f97,_0x1f79e4[_0x588f40(0xff)]=_0x277d0f,_0x1f79e4[_0x588f40(0x104)]=_0x4f4fb9,_0x1f79e4[_0x588f40(0x101)]=_0xd43a55,Object[_0x588f40(0x106)](_0x1f79e4,Symbol['toStringTag'],{'value':_0x588f40(0xda)});}));function _0x49ce(_0x6992bd,_0x268437){_0x6992bd=_0x6992bd-0xda;const _0xcbed97=_0xcbed();let _0x49ce46=_0xcbed97[_0x6992bd];return _0x49ce46;}function _0xcbed(){const _0xa3507b=['PRINT_CONTAINER_CLASS','PRINT_CANVAS_CLASS','9QNhBKT','10443010XjrwFi','Landscape','Portrait','1136neqFxG','innerHTML','amd','469787qmTvxY','None','FitHeight','890dmGgBw','PaperMarginMap','className','style','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','13182FsoyhF','14122317gaWYIz','End','offline-printing-css','3fPkyMG','\x0a\x20\x20\x20\x20.','Middle','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','1619396JHZXFY','2862760sRqmjb','PrintPaperMargin','object','createPrintStyle','PrintDirection','PrintAlign','PrintScale','function','defineProperty','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Custom','Module','UniverProPrint','createElement','Origin','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','49462AubPvh','Wide','Normal','px\x20','FitWidth'];_0xcbed=function(){return _0xa3507b;};return _0xcbed();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
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.9.3",
|
|
46
|
-
"vite": "^7.
|
|
47
|
-
"vitest": "^4.0.
|
|
48
|
-
"@univerjs-infra/shared": "0.
|
|
46
|
+
"vite": "^7.3.0",
|
|
47
|
+
"vitest": "^4.0.16",
|
|
48
|
+
"@univerjs-infra/shared": "0.15.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|