@univerjs-pro/print 1.0.0-alpha.4 → 1.0.0-alpha.5
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
|
-
function
|
|
1
|
+
const _0x836675=_0x5a5f;function _0x5a5f(_0x1da620,_0x407a33){_0x1da620=_0x1da620-0x6d;const _0x1359b0=_0x1359();let _0x5a5f23=_0x1359b0[_0x1da620];return _0x5a5f23;}(function(_0x212565,_0x537888){const _0x1c44b5=_0x5a5f,_0x1984ee=_0x212565();while(!![]){try{const _0x124489=-parseInt(_0x1c44b5(0x93))/0x1*(-parseInt(_0x1c44b5(0x7f))/0x2)+-parseInt(_0x1c44b5(0x70))/0x3*(parseInt(_0x1c44b5(0x8c))/0x4)+parseInt(_0x1c44b5(0x7b))/0x5+parseInt(_0x1c44b5(0x71))/0x6+parseInt(_0x1c44b5(0x7e))/0x7*(parseInt(_0x1c44b5(0x95))/0x8)+parseInt(_0x1c44b5(0x89))/0x9+-parseInt(_0x1c44b5(0x94))/0xa;if(_0x124489===_0x537888)break;else _0x1984ee['push'](_0x1984ee['shift']());}catch(_0x281eaa){_0x1984ee['push'](_0x1984ee['shift']());}}}(_0x1359,0x479a4),Object['defineProperty'](exports,Symbol[_0x836675(0x8f)],{'value':_0x836675(0x6f)}));function _0x1359(){const _0x4a9480=['PrintScale','Module','3ZkeyhI','2976282XqslXG','Landscape','Origin','PrintAlign','style','\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.','\x0a\x20\x20\x20\x20.','FitHeight','PRINT_CANVAS_CLASS','printing-canvas','120290IKgLlQ','offline-printing-css','createElement','287WeSfpe','38ekxSdT','Portrait','Middle',',\x20.','Start','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.','createPrintStyle','printing-canvas-container','\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','\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','2309769aTJzPY','px\x20','PrintPaperMargin','236932aPpsDF','Narrow','FitPage','toStringTag','PrintDirection','None','Normal','17560BJDCMI','7661510qYxxcq','1616sYqsME','Wide','Custom'];_0x1359=function(){return _0x4a9480;};return _0x1359();}let e=function(_0x1ea8c1){const _0x370256=_0x836675;return _0x1ea8c1[_0x370256(0x80)]=_0x370256(0x80),_0x1ea8c1[_0x370256(0x72)]=_0x370256(0x72),_0x1ea8c1;}({}),t=function(_0x21dbfa){const _0x2c8017=_0x836675;return _0x21dbfa[_0x2c8017(0x73)]=_0x2c8017(0x73),_0x21dbfa['FitWidth']='FitWidth',_0x21dbfa['FitHeight']=_0x2c8017(0x78),_0x21dbfa['FitPage']=_0x2c8017(0x8e),_0x21dbfa[_0x2c8017(0x6d)]=_0x2c8017(0x6d),_0x21dbfa;}({}),n=function(_0x26623b){const _0x1190f7=_0x836675;return _0x26623b['Start']=_0x1190f7(0x83),_0x26623b['End']='End',_0x26623b[_0x1190f7(0x81)]=_0x1190f7(0x81),_0x26623b;}({}),r=function(_0x386bb1){const _0x17bcf8=_0x836675;return _0x386bb1[_0x17bcf8(0x92)]=_0x17bcf8(0x92),_0x386bb1[_0x17bcf8(0x8d)]='Narrow',_0x386bb1[_0x17bcf8(0x96)]='Wide',_0x386bb1[_0x17bcf8(0x91)]=_0x17bcf8(0x91),_0x386bb1[_0x17bcf8(0x6d)]=_0x17bcf8(0x6d),_0x386bb1;}({});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=_0x836675(0x86),o=_0x836675(0x7a);function s(_0x13d0e5,_0x42d2ff,_0x16fd15){const _0x31b37a=_0x836675;let _0x554ffe=_0x16fd15===_0x31b37a(0x80)?_0x13d0e5:_0x42d2ff,_0x5f0f49=_0x16fd15==='Portrait'?_0x42d2ff:_0x13d0e5,_0x2d91df=_0x31b37a(0x77)+o+_0x31b37a(0x88)+_0x554ffe+_0x31b37a(0x8a)+_0x5f0f49+_0x31b37a(0x84)+a+_0x31b37a(0x82)+a+_0x31b37a(0x76)+o+_0x31b37a(0x87)+_0x5f0f49+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x554ffe+'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}',_0x21796b=document[_0x31b37a(0x7d)](_0x31b37a(0x75));return _0x21796b['innerHTML']=_0x2d91df,_0x21796b['className']=_0x31b37a(0x7c),_0x21796b;}exports[_0x836675(0x79)]=o,exports['PRINT_CONTAINER_CLASS']=a,exports['PaperMarginMap']=i,exports[_0x836675(0x74)]=n,exports[_0x836675(0x90)]=e,exports[_0x836675(0x8b)]=r,exports[_0x836675(0x6e)]=t,exports[_0x836675(0x85)]=s;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x3583ca=_0x40d3;(function(_0x49a6e2,_0x5c3dc2){const _0x32b654=_0x40d3,_0x137bd5=_0x49a6e2();while(!![]){try{const _0x4575c2=parseInt(_0x32b654(0x146))/0x1+-parseInt(_0x32b654(0x150))/0x2*(parseInt(_0x32b654(0x14d))/0x3)+parseInt(_0x32b654(0x155))/0x4*(-parseInt(_0x32b654(0x148))/0x5)+-parseInt(_0x32b654(0x156))/0x6+parseInt(_0x32b654(0x164))/0x7+-parseInt(_0x32b654(0x15e))/0x8*(-parseInt(_0x32b654(0x149))/0x9)+-parseInt(_0x32b654(0x16a))/0xa*(parseInt(_0x32b654(0x154))/0xb);if(_0x4575c2===_0x5c3dc2)break;else _0x137bd5['push'](_0x137bd5['shift']());}catch(_0x4f7840){_0x137bd5['push'](_0x137bd5['shift']());}}}(_0x5492,0x41fd1));function _0x5492(){const _0x45602e=['Custom','printing-canvas','FitPage','className','3009587hVWpCY','printing-canvas-container','\x0a\x20\x20\x20\x20.','offline-printing-css','Narrow','FitWidth','12310VTefjC','30179oYrUlw','Landscape','8630bLbrNr','261XGZmpm','px\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','style','3pTZaCd','FitHeight','\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','733846fUVCtq','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}','\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.','Start','11YCKaMK','136IgLfeh','192156wjtMvg','Middle','End','Origin','\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','None','createElement','Portrait','74216ZvXVXC','Wide'];_0x5492=function(){return _0x45602e;};return _0x5492();}let e=function(_0x40c51c){const _0x56983a=_0x40d3;return _0x40c51c[_0x56983a(0x15d)]='Portrait',_0x40c51c['Landscape']=_0x56983a(0x147),_0x40c51c;}({}),t=function(_0x5ed10e){const _0x109e73=_0x40d3;return _0x5ed10e[_0x109e73(0x159)]=_0x109e73(0x159),_0x5ed10e[_0x109e73(0x169)]=_0x109e73(0x169),_0x5ed10e[_0x109e73(0x14e)]=_0x109e73(0x14e),_0x5ed10e[_0x109e73(0x162)]=_0x109e73(0x162),_0x5ed10e[_0x109e73(0x160)]=_0x109e73(0x160),_0x5ed10e;}({}),n=function(_0x496942){const _0x4b60cb=_0x40d3;return _0x496942['Start']=_0x4b60cb(0x153),_0x496942['End']=_0x4b60cb(0x158),_0x496942[_0x4b60cb(0x157)]=_0x4b60cb(0x157),_0x496942;}({}),r=function(_0x48de60){const _0x581898=_0x40d3;return _0x48de60['Normal']='Normal',_0x48de60[_0x581898(0x168)]=_0x581898(0x168),_0x48de60[_0x581898(0x15f)]=_0x581898(0x15f),_0x48de60[_0x581898(0x15b)]=_0x581898(0x15b),_0x48de60['Custom']=_0x581898(0x160),_0x48de60;}({});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=_0x3583ca(0x165),o=_0x3583ca(0x161);function _0x40d3(_0x41c88a,_0x59de74){_0x41c88a=_0x41c88a-0x146;const _0x5492a6=_0x5492();let _0x40d3ea=_0x5492a6[_0x41c88a];return _0x40d3ea;}function s(_0x1415fb,_0x9fde8f,_0x26db67){const _0x33ca20=_0x3583ca;let _0x43b1e6=_0x26db67===_0x33ca20(0x15d)?_0x1415fb:_0x9fde8f,_0x250387=_0x26db67===_0x33ca20(0x15d)?_0x9fde8f:_0x1415fb,_0x2ae531=_0x33ca20(0x166)+o+_0x33ca20(0x15a)+_0x43b1e6+_0x33ca20(0x14a)+_0x250387+'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.'+a+',\x20.'+a+_0x33ca20(0x152)+o+_0x33ca20(0x14f)+_0x250387+_0x33ca20(0x14b)+_0x43b1e6+_0x33ca20(0x151),_0x1728ec=document[_0x33ca20(0x15c)](_0x33ca20(0x14c));return _0x1728ec['innerHTML']=_0x2ae531,_0x1728ec[_0x33ca20(0x163)]=_0x33ca20(0x167),_0x1728ec;}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 _0x3583ca=_0x40d3;(function(_0x49a6e2,_0x5c3dc2){const _0x32b654=_0x40d3,_0x137bd5=_0x49a6e2();while(!![]){try{const _0x4575c2=parseInt(_0x32b654(0x146))/0x1+-parseInt(_0x32b654(0x150))/0x2*(parseInt(_0x32b654(0x14d))/0x3)+parseInt(_0x32b654(0x155))/0x4*(-parseInt(_0x32b654(0x148))/0x5)+-parseInt(_0x32b654(0x156))/0x6+parseInt(_0x32b654(0x164))/0x7+-parseInt(_0x32b654(0x15e))/0x8*(-parseInt(_0x32b654(0x149))/0x9)+-parseInt(_0x32b654(0x16a))/0xa*(parseInt(_0x32b654(0x154))/0xb);if(_0x4575c2===_0x5c3dc2)break;else _0x137bd5['push'](_0x137bd5['shift']());}catch(_0x4f7840){_0x137bd5['push'](_0x137bd5['shift']());}}}(_0x5492,0x41fd1));function _0x5492(){const _0x45602e=['Custom','printing-canvas','FitPage','className','3009587hVWpCY','printing-canvas-container','\x0a\x20\x20\x20\x20.','offline-printing-css','Narrow','FitWidth','12310VTefjC','30179oYrUlw','Landscape','8630bLbrNr','261XGZmpm','px\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','style','3pTZaCd','FitHeight','\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','733846fUVCtq','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}','\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.','Start','11YCKaMK','136IgLfeh','192156wjtMvg','Middle','End','Origin','\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','None','createElement','Portrait','74216ZvXVXC','Wide'];_0x5492=function(){return _0x45602e;};return _0x5492();}let e=function(_0x40c51c){const _0x56983a=_0x40d3;return _0x40c51c[_0x56983a(0x15d)]='Portrait',_0x40c51c['Landscape']=_0x56983a(0x147),_0x40c51c;}({}),t=function(_0x5ed10e){const _0x109e73=_0x40d3;return _0x5ed10e[_0x109e73(0x159)]=_0x109e73(0x159),_0x5ed10e[_0x109e73(0x169)]=_0x109e73(0x169),_0x5ed10e[_0x109e73(0x14e)]=_0x109e73(0x14e),_0x5ed10e[_0x109e73(0x162)]=_0x109e73(0x162),_0x5ed10e[_0x109e73(0x160)]=_0x109e73(0x160),_0x5ed10e;}({}),n=function(_0x496942){const _0x4b60cb=_0x40d3;return _0x496942['Start']=_0x4b60cb(0x153),_0x496942['End']=_0x4b60cb(0x158),_0x496942[_0x4b60cb(0x157)]=_0x4b60cb(0x157),_0x496942;}({}),r=function(_0x48de60){const _0x581898=_0x40d3;return _0x48de60['Normal']='Normal',_0x48de60[_0x581898(0x168)]=_0x581898(0x168),_0x48de60[_0x581898(0x15f)]=_0x581898(0x15f),_0x48de60[_0x581898(0x15b)]=_0x581898(0x15b),_0x48de60['Custom']=_0x581898(0x160),_0x48de60;}({});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=_0x3583ca(0x165),o=_0x3583ca(0x161);function _0x40d3(_0x41c88a,_0x59de74){_0x41c88a=_0x41c88a-0x146;const _0x5492a6=_0x5492();let _0x40d3ea=_0x5492a6[_0x41c88a];return _0x40d3ea;}function s(_0x1415fb,_0x9fde8f,_0x26db67){const _0x33ca20=_0x3583ca;let _0x43b1e6=_0x26db67===_0x33ca20(0x15d)?_0x1415fb:_0x9fde8f,_0x250387=_0x26db67===_0x33ca20(0x15d)?_0x9fde8f:_0x1415fb,_0x2ae531=_0x33ca20(0x166)+o+_0x33ca20(0x15a)+_0x43b1e6+_0x33ca20(0x14a)+_0x250387+'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.'+a+',\x20.'+a+_0x33ca20(0x152)+o+_0x33ca20(0x14f)+_0x250387+_0x33ca20(0x14b)+_0x43b1e6+_0x33ca20(0x151),_0x1728ec=document[_0x33ca20(0x15c)](_0x33ca20(0x14c));return _0x1728ec['innerHTML']=_0x2ae531,_0x1728ec[_0x33ca20(0x163)]=_0x33ca20(0x167),_0x1728ec;}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 _0x3764(_0x1c19a3,_0x514ee4){_0x1c19a3=_0x1c19a3-0x106;const _0x23bc32=_0x23bc();let _0x3764a6=_0x23bc32[_0x1c19a3];return _0x3764a6;}(function(_0x259617,_0x15e58a){const _0xe82c67=_0x3764,_0x35277f=_0x259617();while(!![]){try{const _0x2ed1f5=-parseInt(_0xe82c67(0x11c))/0x1*(parseInt(_0xe82c67(0x131))/0x2)+-parseInt(_0xe82c67(0x118))/0x3*(-parseInt(_0xe82c67(0x115))/0x4)+parseInt(_0xe82c67(0x125))/0x5*(parseInt(_0xe82c67(0x10b))/0x6)+parseInt(_0xe82c67(0x11b))/0x7+parseInt(_0xe82c67(0x12b))/0x8+parseInt(_0xe82c67(0x114))/0x9+-parseInt(_0xe82c67(0x10f))/0xa*(-parseInt(_0xe82c67(0x127))/0xb);if(_0x2ed1f5===_0x15e58a)break;else _0x35277f['push'](_0x35277f['shift']());}catch(_0x21d82d){_0x35277f['push'](_0x35277f['shift']());}}}(_0x23bc,0xc9657),function(_0x4584f0,_0x1a413a){const _0x4d0a38=_0x3764;typeof exports==_0x4d0a38(0x106)&&typeof module<'u'?_0x1a413a(exports):typeof define=='function'&&define['amd']?define([_0x4d0a38(0x121)],_0x1a413a):(_0x4584f0=typeof globalThis<'u'?globalThis:_0x4584f0||self,_0x1a413a(_0x4584f0[_0x4d0a38(0x110)]={}));}(this,function(_0x2f6f89){const _0x26a5a0=_0x3764;Object['defineProperty'](_0x2f6f89,Symbol[_0x26a5a0(0x12c)],{'value':'Module'});let _0x5250ac=function(_0x5e77cc){const _0x20b962=_0x26a5a0;return _0x5e77cc[_0x20b962(0x129)]='Portrait',_0x5e77cc[_0x20b962(0x122)]=_0x20b962(0x122),_0x5e77cc;}({}),_0x54591f=function(_0x6c796){const _0x2a3d6a=_0x26a5a0;return _0x6c796['Origin']=_0x2a3d6a(0x10e),_0x6c796[_0x2a3d6a(0x107)]=_0x2a3d6a(0x107),_0x6c796[_0x2a3d6a(0x112)]=_0x2a3d6a(0x112),_0x6c796[_0x2a3d6a(0x109)]='FitPage',_0x6c796[_0x2a3d6a(0x108)]=_0x2a3d6a(0x108),_0x6c796;}({}),_0x54082e=function(_0xe4af5d){const _0x5d6adc=_0x26a5a0;return _0xe4af5d[_0x5d6adc(0x117)]=_0x5d6adc(0x117),_0xe4af5d[_0x5d6adc(0x12d)]=_0x5d6adc(0x12d),_0xe4af5d['Middle']='Middle',_0xe4af5d;}({}),_0x2ab77d=function(_0x31beef){const _0x113064=_0x26a5a0;return _0x31beef[_0x113064(0x126)]=_0x113064(0x126),_0x31beef[_0x113064(0x11e)]=_0x113064(0x11e),_0x31beef[_0x113064(0x113)]=_0x113064(0x113),_0x31beef[_0x113064(0x124)]=_0x113064(0x124),_0x31beef['Custom']=_0x113064(0x108),_0x31beef;}({}),_0x2a4c00={'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}},_0x558b40=_0x26a5a0(0x11a),_0xec24d5=_0x26a5a0(0x11f);function _0x543591(_0x80bb90,_0x3754f3,_0x35b3c2){const _0x2efd22=_0x26a5a0;let _0x4ce6a8=_0x35b3c2===_0x2efd22(0x129)?_0x80bb90:_0x3754f3,_0xa7e427=_0x35b3c2==='Portrait'?_0x3754f3:_0x80bb90,_0x4446cd=_0x2efd22(0x12e)+_0xec24d5+_0x2efd22(0x116)+_0x4ce6a8+_0x2efd22(0x120)+_0xa7e427+'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.'+_0x558b40+_0x2efd22(0x11d)+_0x558b40+_0x2efd22(0x12a)+_0xec24d5+_0x2efd22(0x128)+_0xa7e427+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x4ce6a8+_0x2efd22(0x10a),_0x592bce=document[_0x2efd22(0x123)]('style');return _0x592bce['innerHTML']=_0x4446cd,_0x592bce[_0x2efd22(0x10c)]='offline-printing-css',_0x592bce;}_0x2f6f89[_0x26a5a0(0x130)]=_0xec24d5,_0x2f6f89['PRINT_CONTAINER_CLASS']=_0x558b40,_0x2f6f89[_0x26a5a0(0x12f)]=_0x2a4c00,_0x2f6f89[_0x26a5a0(0x119)]=_0x54082e,_0x2f6f89[_0x26a5a0(0x111)]=_0x5250ac,_0x2f6f89['PrintPaperMargin']=_0x2ab77d,_0x2f6f89[_0x26a5a0(0x10d)]=_0x54591f,_0x2f6f89['createPrintStyle']=_0x543591;}));function _0x23bc(){const _0x1c1cea=['3444lkbJbR','className','PrintScale','Origin','10WjCrrJ','UniverProPrint','PrintDirection','FitHeight','Wide','773055dBSXPn','3244PBRdmQ','\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','Start','1506aGHJEr','PrintAlign','printing-canvas-container','374668JXXqiA','5JbkDBA',',\x20.','Narrow','printing-canvas','px\x20','exports','Landscape','createElement','None','4990whhovY','Normal','2809686qpAmJO','\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','Portrait','\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.','7664840eoGKXI','toStringTag','End','\x0a\x20\x20\x20\x20.','PaperMarginMap','PRINT_CANVAS_CLASS','603202fwafzP','object','FitWidth','Custom','FitPage','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}'];_0x23bc=function(){return _0x1c1cea;};return _0x23bc();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.5",
|
|
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.10",
|
|
53
|
-
"@univerjs-infra/shared": "1.0.0-alpha.
|
|
53
|
+
"@univerjs-infra/shared": "1.0.0-alpha.5"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "vitest run",
|