@univerjs-pro/print 0.25.0 → 0.25.2
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 +2 -2
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x4820(_0x4fe8a5,_0x4114dd){_0x4fe8a5=_0x4fe8a5-0x18b;const _0x2efb93=_0x2efb();let _0x4820f1=_0x2efb93[_0x4fe8a5];return _0x4820f1;}const _0x239256=_0x4820;(function(_0x3fa312,_0x5a60a5){const _0x257057=_0x4820,_0x2c5cd4=_0x3fa312();while(!![]){try{const _0x56a037=parseInt(_0x257057(0x1b5))/0x1*(parseInt(_0x257057(0x1b1))/0x2)+parseInt(_0x257057(0x1ad))/0x3+-parseInt(_0x257057(0x1ac))/0x4+-parseInt(_0x257057(0x1ae))/0x5*(parseInt(_0x257057(0x18b))/0x6)+-parseInt(_0x257057(0x1a9))/0x7*(parseInt(_0x257057(0x1b3))/0x8)+-parseInt(_0x257057(0x1b9))/0x9*(-parseInt(_0x257057(0x193))/0xa)+parseInt(_0x257057(0x199))/0xb*(parseInt(_0x257057(0x1b7))/0xc);if(_0x56a037===_0x5a60a5)break;else _0x2c5cd4['push'](_0x2c5cd4['shift']());}catch(_0x211368){_0x2c5cd4['push'](_0x2c5cd4['shift']());}}}(_0x2efb,0x5ea65),Object[_0x239256(0x18c)](exports,Symbol[_0x239256(0x1a7)],{'value':_0x239256(0x19a)}));let e=function(_0x40fc67){const _0x3c5834=_0x239256;return _0x40fc67[_0x3c5834(0x196)]=_0x3c5834(0x196),_0x40fc67[_0x3c5834(0x19c)]=_0x3c5834(0x19c),_0x40fc67;}({}),t=function(_0x23f6d8){const _0x55db17=_0x239256;return _0x23f6d8[_0x55db17(0x1ab)]=_0x55db17(0x1ab),_0x23f6d8[_0x55db17(0x1a3)]=_0x55db17(0x1a3),_0x23f6d8[_0x55db17(0x1a6)]='FitHeight',_0x23f6d8[_0x55db17(0x192)]=_0x55db17(0x192),_0x23f6d8[_0x55db17(0x1b6)]=_0x55db17(0x1b6),_0x23f6d8;}({}),n=function(_0x25f4a9){const _0x403264=_0x239256;return _0x25f4a9['Start']=_0x403264(0x19b),_0x25f4a9[_0x403264(0x1a4)]=_0x403264(0x1a4),_0x25f4a9[_0x403264(0x190)]=_0x403264(0x190),_0x25f4a9;}({}),r=function(_0x5ad72d){const _0x3f7b4e=_0x239256;return _0x5ad72d['Normal']=_0x3f7b4e(0x195),_0x5ad72d[_0x3f7b4e(0x191)]=_0x3f7b4e(0x191),_0x5ad72d[_0x3f7b4e(0x1a2)]=_0x3f7b4e(0x1a2),_0x5ad72d['None']=_0x3f7b4e(0x19e),_0x5ad72d[_0x3f7b4e(0x1b6)]=_0x3f7b4e(0x1b6),_0x5ad72d;}({});const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x239256(0x18d),o='printing-canvas';function s(_0xa339c3,_0x17682d,_0x1dd5ab){const _0x1b040e=_0x239256;let _0x3f2fd9=_0x1dd5ab===_0x1b040e(0x196)?_0xa339c3:_0x17682d,_0x40df07=_0x1dd5ab==='Portrait'?_0x17682d:_0xa339c3,_0x24f859='\x0a\x20\x20\x20\x20.'+o+_0x1b040e(0x1af)+_0x3f2fd9+_0x1b040e(0x1a1)+_0x40df07+_0x1b040e(0x1b0)+a+_0x1b040e(0x197)+a+_0x1b040e(0x19f)+o+_0x1b040e(0x194)+_0x40df07+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x3f2fd9+_0x1b040e(0x1a8),_0x1da586=document['createElement'](_0x1b040e(0x198));return _0x1da586[_0x1b040e(0x1b4)]=_0x24f859,_0x1da586['className']=_0x1b040e(0x1a0),_0x1da586;}exports['PRINT_CANVAS_CLASS']=o,exports[_0x239256(0x18f)]=a,exports[_0x239256(0x19d)]=i,exports[_0x239256(0x1b2)]=n,exports[_0x239256(0x1a5)]=e,exports[_0x239256(0x1aa)]=r,exports[_0x239256(0x18e)]=t,exports[_0x239256(0x1b8)]=s;function _0x2efb(){const _0x485e7d=['End','PrintDirection','FitHeight','toStringTag','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}','7iLYpoV','PrintPaperMargin','Origin','2509324OFnPwC','1811226MHNAaH','5YrjZvL','\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','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.','252842lKZitS','PrintAlign','3604584NOCdrz','innerHTML','3JLVOQP','Custom','4537752TFtfNj','createPrintStyle','171olicxI','318774gPszXZ','defineProperty','printing-canvas-container','PrintScale','PRINT_CONTAINER_CLASS','Middle','Narrow','FitPage','82930rFFUgx','\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','Normal','Portrait',',\x20.','style','11SbnnDZ','Module','Start','Landscape','PaperMarginMap','None','\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.','offline-printing-css','px\x20','Wide','FitWidth'];_0x2efb=function(){return _0x485e7d;};return _0x2efb();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x180871=_0x360f;function _0x555c(){const _0xa49dc4=['FitHeight','280445gkOCNZ','Origin','242BFyJPN','\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.','27947764tIMFjg','Landscape','Custom','px\x20','printing-canvas','51oyspRs','Wide','className','10064DJmqaR','213916WvqQhQ','6180910oGAxKH','54iDOALV','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.','Normal','offline-printing-css','FitWidth','\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','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}','FitPage','321444IefSuA','1336760DsICge','style','Portrait','364iTJaje','Middle','\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','2ByMsvy','9dsMiFY','printing-canvas-container','innerHTML'];_0x555c=function(){return _0xa49dc4;};return _0x555c();}(function(_0x10a389,_0x1eedf1){const _0x4d4483=_0x360f,_0x11575c=_0x10a389();while(!![]){try{const _0x4e5437=-parseInt(_0x4d4483(0x95))/0x1*(-parseInt(_0x4d4483(0x9b))/0x2)+-parseInt(_0x4d4483(0xa9))/0x3*(parseInt(_0x4d4483(0x8a))/0x4)+-parseInt(_0x4d4483(0xa0))/0x5*(parseInt(_0x4d4483(0x8c))/0x6)+-parseInt(_0x4d4483(0x98))/0x7*(parseInt(_0x4d4483(0x89))/0x8)+parseInt(_0x4d4483(0x9c))/0x9*(-parseInt(_0x4d4483(0x8b))/0xa)+-parseInt(_0x4d4483(0xa2))/0xb*(parseInt(_0x4d4483(0x94))/0xc)+parseInt(_0x4d4483(0xa4))/0xd;if(_0x4e5437===_0x1eedf1)break;else _0x11575c['push'](_0x11575c['shift']());}catch(_0x358f25){_0x11575c['push'](_0x11575c['shift']());}}}(_0x555c,0xc344f));let e=function(_0x464382){const _0x3e3bc8=_0x360f;return _0x464382[_0x3e3bc8(0x97)]=_0x3e3bc8(0x97),_0x464382[_0x3e3bc8(0xa5)]=_0x3e3bc8(0xa5),_0x464382;}({}),t=function(_0x44c54d){const _0xe313f3=_0x360f;return _0x44c54d[_0xe313f3(0xa1)]='Origin',_0x44c54d[_0xe313f3(0x90)]=_0xe313f3(0x90),_0x44c54d['FitHeight']=_0xe313f3(0x9f),_0x44c54d[_0xe313f3(0x93)]=_0xe313f3(0x93),_0x44c54d['Custom']=_0xe313f3(0xa6),_0x44c54d;}({}),n=function(_0x1aef53){const _0xfebcf6=_0x360f;return _0x1aef53['Start']='Start',_0x1aef53['End']='End',_0x1aef53['Middle']=_0xfebcf6(0x99),_0x1aef53;}({}),r=function(_0x5896f9){const _0x2c1f91=_0x360f;return _0x5896f9[_0x2c1f91(0x8e)]=_0x2c1f91(0x8e),_0x5896f9['Narrow']='Narrow',_0x5896f9[_0x2c1f91(0xaa)]=_0x2c1f91(0xaa),_0x5896f9['None']='None',_0x5896f9[_0x2c1f91(0xa6)]=_0x2c1f91(0xa6),_0x5896f9;}({});const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x180871(0x9d),o=_0x180871(0xa8);function _0x360f(_0x4a2135,_0x1908dd){_0x4a2135=_0x4a2135-0x88;const _0x555c89=_0x555c();let _0x360f4a=_0x555c89[_0x4a2135];return _0x360f4a;}function s(_0x533e6e,_0x426c4c,_0x380f58){const _0x1f0fb8=_0x180871;let _0x3e67f4=_0x380f58===_0x1f0fb8(0x97)?_0x533e6e:_0x426c4c,_0x2a25b4=_0x380f58===_0x1f0fb8(0x97)?_0x426c4c:_0x533e6e,_0x202b5a='\x0a\x20\x20\x20\x20.'+o+_0x1f0fb8(0x91)+_0x3e67f4+_0x1f0fb8(0xa7)+_0x2a25b4+_0x1f0fb8(0x8d)+a+',\x20.'+a+_0x1f0fb8(0xa3)+o+_0x1f0fb8(0x9a)+_0x2a25b4+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x3e67f4+_0x1f0fb8(0x92),_0x1a4582=document['createElement'](_0x1f0fb8(0x96));return _0x1a4582[_0x1f0fb8(0x9e)]=_0x202b5a,_0x1a4582[_0x1f0fb8(0x88)]=_0x1f0fb8(0x8f),_0x1a4582;}export{o as PRINT_CANVAS_CLASS,a as PRINT_CONTAINER_CLASS,i as PaperMarginMap,n as PrintAlign,e as PrintDirection,r as PrintPaperMargin,t as PrintScale,s as createPrintStyle};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x180871=_0x360f;function _0x555c(){const _0xa49dc4=['FitHeight','280445gkOCNZ','Origin','242BFyJPN','\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.','27947764tIMFjg','Landscape','Custom','px\x20','printing-canvas','51oyspRs','Wide','className','10064DJmqaR','213916WvqQhQ','6180910oGAxKH','54iDOALV','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.','Normal','offline-printing-css','FitWidth','\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','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}','FitPage','321444IefSuA','1336760DsICge','style','Portrait','364iTJaje','Middle','\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','2ByMsvy','9dsMiFY','printing-canvas-container','innerHTML'];_0x555c=function(){return _0xa49dc4;};return _0x555c();}(function(_0x10a389,_0x1eedf1){const _0x4d4483=_0x360f,_0x11575c=_0x10a389();while(!![]){try{const _0x4e5437=-parseInt(_0x4d4483(0x95))/0x1*(-parseInt(_0x4d4483(0x9b))/0x2)+-parseInt(_0x4d4483(0xa9))/0x3*(parseInt(_0x4d4483(0x8a))/0x4)+-parseInt(_0x4d4483(0xa0))/0x5*(parseInt(_0x4d4483(0x8c))/0x6)+-parseInt(_0x4d4483(0x98))/0x7*(parseInt(_0x4d4483(0x89))/0x8)+parseInt(_0x4d4483(0x9c))/0x9*(-parseInt(_0x4d4483(0x8b))/0xa)+-parseInt(_0x4d4483(0xa2))/0xb*(parseInt(_0x4d4483(0x94))/0xc)+parseInt(_0x4d4483(0xa4))/0xd;if(_0x4e5437===_0x1eedf1)break;else _0x11575c['push'](_0x11575c['shift']());}catch(_0x358f25){_0x11575c['push'](_0x11575c['shift']());}}}(_0x555c,0xc344f));let e=function(_0x464382){const _0x3e3bc8=_0x360f;return _0x464382[_0x3e3bc8(0x97)]=_0x3e3bc8(0x97),_0x464382[_0x3e3bc8(0xa5)]=_0x3e3bc8(0xa5),_0x464382;}({}),t=function(_0x44c54d){const _0xe313f3=_0x360f;return _0x44c54d[_0xe313f3(0xa1)]='Origin',_0x44c54d[_0xe313f3(0x90)]=_0xe313f3(0x90),_0x44c54d['FitHeight']=_0xe313f3(0x9f),_0x44c54d[_0xe313f3(0x93)]=_0xe313f3(0x93),_0x44c54d['Custom']=_0xe313f3(0xa6),_0x44c54d;}({}),n=function(_0x1aef53){const _0xfebcf6=_0x360f;return _0x1aef53['Start']='Start',_0x1aef53['End']='End',_0x1aef53['Middle']=_0xfebcf6(0x99),_0x1aef53;}({}),r=function(_0x5896f9){const _0x2c1f91=_0x360f;return _0x5896f9[_0x2c1f91(0x8e)]=_0x2c1f91(0x8e),_0x5896f9['Narrow']='Narrow',_0x5896f9[_0x2c1f91(0xaa)]=_0x2c1f91(0xaa),_0x5896f9['None']='None',_0x5896f9[_0x2c1f91(0xa6)]=_0x2c1f91(0xa6),_0x5896f9;}({});const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x180871(0x9d),o=_0x180871(0xa8);function _0x360f(_0x4a2135,_0x1908dd){_0x4a2135=_0x4a2135-0x88;const _0x555c89=_0x555c();let _0x360f4a=_0x555c89[_0x4a2135];return _0x360f4a;}function s(_0x533e6e,_0x426c4c,_0x380f58){const _0x1f0fb8=_0x180871;let _0x3e67f4=_0x380f58===_0x1f0fb8(0x97)?_0x533e6e:_0x426c4c,_0x2a25b4=_0x380f58===_0x1f0fb8(0x97)?_0x426c4c:_0x533e6e,_0x202b5a='\x0a\x20\x20\x20\x20.'+o+_0x1f0fb8(0x91)+_0x3e67f4+_0x1f0fb8(0xa7)+_0x2a25b4+_0x1f0fb8(0x8d)+a+',\x20.'+a+_0x1f0fb8(0xa3)+o+_0x1f0fb8(0x9a)+_0x2a25b4+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x3e67f4+_0x1f0fb8(0x92),_0x1a4582=document['createElement'](_0x1f0fb8(0x96));return _0x1a4582[_0x1f0fb8(0x9e)]=_0x202b5a,_0x1a4582[_0x1f0fb8(0x88)]=_0x1f0fb8(0x8f),_0x1a4582;}export{o as PRINT_CANVAS_CLASS,a as PRINT_CONTAINER_CLASS,i as PaperMarginMap,n as PrintAlign,e as PrintDirection,r as PrintPaperMargin,t as PrintScale,s as createPrintStyle};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x40df(){const _0x216940=['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}','5861165aouMre','createPrintStyle','End','PrintAlign','toStringTag','PrintDirection','createElement','FitPage','defineProperty','FitWidth','amd','886976iFzqMw','Start','247730GZuYRP','style','className','None','1264sEowkT','Module','6TbHofl','PRINT_CONTAINER_CLASS','UniverProPrint','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.','\x0a\x20\x20\x20\x20.','\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','Middle','px\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','20160qnkBAl','PaperMarginMap','176EASoiS','Portrait','Origin','PrintScale','Custom','Wide','Narrow','204815wXtJKc','innerHTML','3412756UtaDUd','\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','PRINT_CANVAS_CLASS','Normal','PrintPaperMargin','69462evDMQp','3avMeQI'];_0x40df=function(){return _0x216940;};return _0x40df();}function _0x168d(_0x17855d,_0x5e668a){_0x17855d=_0x17855d-0x1b5;const _0x40df63=_0x40df();let _0x168d00=_0x40df63[_0x17855d];return _0x168d00;}(function(_0x13af52,_0x113d7a){const _0x7be68c=_0x168d,_0x25b8d8=_0x13af52();while(!![]){try{const _0x12c0ee=parseInt(_0x7be68c(0x1c5))/0x1+-parseInt(_0x7be68c(0x1da))/0x2+parseInt(_0x7be68c(0x1cd))/0x3*(parseInt(_0x7be68c(0x1c7))/0x4)+-parseInt(_0x7be68c(0x1cf))/0x5*(parseInt(_0x7be68c(0x1e2))/0x6)+parseInt(_0x7be68c(0x1dc))/0x7+parseInt(_0x7be68c(0x1e0))/0x8*(parseInt(_0x7be68c(0x1cc))/0x9)+-parseInt(_0x7be68c(0x1bc))/0xa*(parseInt(_0x7be68c(0x1be))/0xb);if(_0x12c0ee===_0x113d7a)break;else _0x25b8d8['push'](_0x25b8d8['shift']());}catch(_0x4a1761){_0x25b8d8['push'](_0x25b8d8['shift']());}}}(_0x40df,0xa251d),function(_0x3341b6,_0x1f37f1){const _0x293d4c=_0x168d;typeof exports=='object'&&typeof module<'u'?_0x1f37f1(exports):typeof define=='function'&&define[_0x293d4c(0x1d9)]?define(['exports'],_0x1f37f1):(_0x3341b6=typeof globalThis<'u'?globalThis:_0x3341b6||self,_0x1f37f1(_0x3341b6[_0x293d4c(0x1b5)]={}));}(this,function(_0x52a5da){const _0x561006=_0x168d;Object[_0x561006(0x1d7)](_0x52a5da,Symbol[_0x561006(0x1d3)],{'value':_0x561006(0x1e1)});let _0x59d8df=function(_0x3fe168){const _0x6cb1e4=_0x561006;return _0x3fe168[_0x6cb1e4(0x1bf)]=_0x6cb1e4(0x1bf),_0x3fe168['Landscape']='Landscape',_0x3fe168;}({}),_0x3d6538=function(_0x48a900){const _0x7837a7=_0x561006;return _0x48a900[_0x7837a7(0x1c0)]='Origin',_0x48a900[_0x7837a7(0x1d8)]=_0x7837a7(0x1d8),_0x48a900['FitHeight']='FitHeight',_0x48a900[_0x7837a7(0x1d6)]='FitPage',_0x48a900[_0x7837a7(0x1c2)]=_0x7837a7(0x1c2),_0x48a900;}({}),_0x455d32=function(_0xf867c4){const _0x5d2bea=_0x561006;return _0xf867c4['Start']=_0x5d2bea(0x1db),_0xf867c4[_0x5d2bea(0x1d1)]=_0x5d2bea(0x1d1),_0xf867c4['Middle']=_0x5d2bea(0x1b9),_0xf867c4;}({}),_0x496889=function(_0x40753f){const _0x326acc=_0x561006;return _0x40753f[_0x326acc(0x1ca)]=_0x326acc(0x1ca),_0x40753f['Narrow']=_0x326acc(0x1c4),_0x40753f[_0x326acc(0x1c3)]=_0x326acc(0x1c3),_0x40753f['None']=_0x326acc(0x1df),_0x40753f[_0x326acc(0x1c2)]=_0x326acc(0x1c2),_0x40753f;}({}),_0x3e331d={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x402088='printing-canvas-container',_0x59049d='printing-canvas';function _0x651ecd(_0x3c2322,_0x378938,_0x1c22c6){const _0x2f149e=_0x561006;let _0x1d6550=_0x1c22c6===_0x2f149e(0x1bf)?_0x3c2322:_0x378938,_0x2ab081=_0x1c22c6===_0x2f149e(0x1bf)?_0x378938:_0x3c2322,_0x4027e2=_0x2f149e(0x1b7)+_0x59049d+_0x2f149e(0x1c8)+_0x1d6550+_0x2f149e(0x1ba)+_0x2ab081+_0x2f149e(0x1b6)+_0x402088+',\x20.'+_0x402088+'\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.'+_0x59049d+_0x2f149e(0x1b8)+_0x2ab081+_0x2f149e(0x1bb)+_0x1d6550+_0x2f149e(0x1ce),_0x428050=document[_0x2f149e(0x1d5)](_0x2f149e(0x1dd));return _0x428050[_0x2f149e(0x1c6)]=_0x4027e2,_0x428050[_0x2f149e(0x1de)]='offline-printing-css',_0x428050;}_0x52a5da[_0x561006(0x1c9)]=_0x59049d,_0x52a5da[_0x561006(0x1e3)]=_0x402088,_0x52a5da[_0x561006(0x1bd)]=_0x3e331d,_0x52a5da[_0x561006(0x1d2)]=_0x455d32,_0x52a5da[_0x561006(0x1d4)]=_0x59d8df,_0x52a5da[_0x561006(0x1cb)]=_0x496889,_0x52a5da[_0x561006(0x1c1)]=_0x3d6538,_0x52a5da[_0x561006(0x1d0)]=_0x651ecd;}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared print utilities for Univer Pro.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"typescript": "^6.0.3",
|
|
52
52
|
"vitest": "^4.1.6",
|
|
53
|
-
"@univerjs-infra/shared": "0.25.
|
|
53
|
+
"@univerjs-infra/shared": "0.25.2"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "vitest run",
|