@univerjs-pro/print 0.22.0 → 0.22.1
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
|
-
const
|
|
1
|
+
const _0x395fd8=_0xc1ee;(function(_0x17bd3c,_0x4d83a5){const _0x2f1cfc=_0xc1ee,_0x7bc760=_0x17bd3c();while(!![]){try{const _0x571bc9=-parseInt(_0x2f1cfc(0x12b))/0x1*(parseInt(_0x2f1cfc(0x124))/0x2)+parseInt(_0x2f1cfc(0x11e))/0x3+parseInt(_0x2f1cfc(0x105))/0x4+parseInt(_0x2f1cfc(0x11b))/0x5*(parseInt(_0x2f1cfc(0x10c))/0x6)+-parseInt(_0x2f1cfc(0x12e))/0x7+parseInt(_0x2f1cfc(0x12f))/0x8+-parseInt(_0x2f1cfc(0x11c))/0x9*(-parseInt(_0x2f1cfc(0x113))/0xa);if(_0x571bc9===_0x4d83a5)break;else _0x7bc760['push'](_0x7bc760['shift']());}catch(_0x25be7c){_0x7bc760['push'](_0x7bc760['shift']());}}}(_0x2e42,0xeaf73),Object['defineProperty'](exports,Symbol[_0x395fd8(0x119)],{'value':_0x395fd8(0x11a)}));function _0x2e42(){const _0x36faea=['Middle','PRINT_CONTAINER_CLASS','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}','10mxTAsr','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.','Narrow','className','Origin','Custom','toStringTag','Module','709615rzIDMh','7743447STimvm','Portrait','3414972obTPJP','\x0a\x20\x20\x20\x20.',',\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','\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','927284BDDdeO','FitPage','PrintDirection','FitHeight','Start','createPrintStyle','\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.','2NcAgVI','printing-canvas-container','Wide','5640789QUVolH','642208MmMmZH','PaperMarginMap','1330804VPXMfP','PrintScale','innerHTML','FitWidth','PrintAlign','createElement','style','12SFeZOE','Landscape','offline-printing-css','End'];_0x2e42=function(){return _0x36faea;};return _0x2e42();}function _0xc1ee(_0x35966b,_0x4734f3){_0x35966b=_0x35966b-0x104;const _0x2e42a7=_0x2e42();let _0xc1eed=_0x2e42a7[_0x35966b];return _0xc1eed;}let PrintDirection=function(_0x5b34fc){const _0x203824=_0x395fd8;return _0x5b34fc[_0x203824(0x11d)]='Portrait',_0x5b34fc['Landscape']=_0x203824(0x10d),_0x5b34fc;}({}),PrintScale=function(_0x3ad1d9){const _0x34103a=_0x395fd8;return _0x3ad1d9[_0x34103a(0x117)]='Origin',_0x3ad1d9['FitWidth']=_0x34103a(0x108),_0x3ad1d9[_0x34103a(0x127)]=_0x34103a(0x127),_0x3ad1d9[_0x34103a(0x125)]='FitPage',_0x3ad1d9['Custom']='Custom',_0x3ad1d9;}({}),PrintAlign=function(_0x2673ef){const _0x54f21f=_0x395fd8;return _0x2673ef[_0x54f21f(0x128)]='Start',_0x2673ef[_0x54f21f(0x10f)]=_0x54f21f(0x10f),_0x2673ef['Middle']=_0x54f21f(0x110),_0x2673ef;}({}),PrintPaperMargin=function(_0x785ebe){const _0x289350=_0x395fd8;return _0x785ebe[_0x289350(0x123)]=_0x289350(0x123),_0x785ebe[_0x289350(0x115)]=_0x289350(0x115),_0x785ebe[_0x289350(0x12d)]=_0x289350(0x12d),_0x785ebe['None']='None',_0x785ebe[_0x289350(0x118)]=_0x289350(0x118),_0x785ebe;}({});const PaperMarginMap={[_0x395fd8(0x123)]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x395fd8(0x115)]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x395fd8(0x12d)]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},['None']:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x395fd8(0x118)]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},PRINT_CONTAINER_CLASS=_0x395fd8(0x12c),PRINT_CANVAS_CLASS='printing-canvas';function createPrintStyle(_0x29cffb,_0x773900,_0x42f5c7){const _0x30859a=_0x395fd8,_0x3041eb=_0x42f5c7===_0x30859a(0x11d)?_0x29cffb:_0x773900,_0x5ac420=_0x42f5c7===_0x30859a(0x11d)?_0x773900:_0x29cffb,_0xc6487=_0x30859a(0x11f)+PRINT_CANVAS_CLASS+_0x30859a(0x121)+_0x3041eb+'px\x20'+_0x5ac420+_0x30859a(0x114)+PRINT_CONTAINER_CLASS+_0x30859a(0x120)+PRINT_CONTAINER_CLASS+_0x30859a(0x12a)+PRINT_CANVAS_CLASS+_0x30859a(0x122)+_0x5ac420+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x3041eb+_0x30859a(0x112),_0x1aa3d4=document[_0x30859a(0x10a)](_0x30859a(0x10b));return _0x1aa3d4[_0x30859a(0x107)]=_0xc6487,_0x1aa3d4[_0x30859a(0x116)]=_0x30859a(0x10e),_0x1aa3d4;}exports['PRINT_CANVAS_CLASS']=PRINT_CANVAS_CLASS,exports[_0x395fd8(0x111)]=PRINT_CONTAINER_CLASS,exports[_0x395fd8(0x104)]=PaperMarginMap,exports[_0x395fd8(0x109)]=PrintAlign,exports[_0x395fd8(0x126)]=PrintDirection,exports['PrintPaperMargin']=PrintPaperMargin,exports[_0x395fd8(0x106)]=PrintScale,exports[_0x395fd8(0x129)]=createPrintStyle;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3d7f(_0x2a059f,_0x395d5a){_0x2a059f=_0x2a059f-0x1a5;const _0x56c6e1=_0x56c6();let _0x3d7fb7=_0x56c6e1[_0x2a059f];return _0x3d7fb7;}const _0xd6c7cd=_0x3d7f;(function(_0x2e405c,_0x2d6f7b){const _0x164962=_0x3d7f,_0xcd2471=_0x2e405c();while(!![]){try{const _0x1ce8b4=parseInt(_0x164962(0x1c3))/0x1*(parseInt(_0x164962(0x1ad))/0x2)+parseInt(_0x164962(0x1c1))/0x3+parseInt(_0x164962(0x1aa))/0x4+-parseInt(_0x164962(0x1af))/0x5*(-parseInt(_0x164962(0x1ba))/0x6)+-parseInt(_0x164962(0x1c5))/0x7+-parseInt(_0x164962(0x1ac))/0x8+parseInt(_0x164962(0x1c4))/0x9;if(_0x1ce8b4===_0x2d6f7b)break;else _0xcd2471['push'](_0xcd2471['shift']());}catch(_0x306699){_0xcd2471['push'](_0xcd2471['shift']());}}}(_0x56c6,0xaa5b9));let PrintDirection=function(_0x5470af){const _0x147d38=_0x3d7f;return _0x5470af[_0x147d38(0x1a6)]='Portrait',_0x5470af[_0x147d38(0x1bd)]=_0x147d38(0x1bd),_0x5470af;}({}),PrintScale=function(_0x2d5dc5){const _0x484e6f=_0x3d7f;return _0x2d5dc5[_0x484e6f(0x1b3)]=_0x484e6f(0x1b3),_0x2d5dc5['FitWidth']='FitWidth',_0x2d5dc5[_0x484e6f(0x1bf)]='FitHeight',_0x2d5dc5[_0x484e6f(0x1b8)]=_0x484e6f(0x1b8),_0x2d5dc5['Custom']=_0x484e6f(0x1a5),_0x2d5dc5;}({}),PrintAlign=function(_0x4fbef5){const _0x3c6772=_0x3d7f;return _0x4fbef5[_0x3c6772(0x1c6)]=_0x3c6772(0x1c6),_0x4fbef5['End']='End',_0x4fbef5[_0x3c6772(0x1b0)]=_0x3c6772(0x1b0),_0x4fbef5;}({}),PrintPaperMargin=function(_0x29d2b7){const _0xe5edb5=_0x3d7f;return _0x29d2b7[_0xe5edb5(0x1b5)]=_0xe5edb5(0x1b5),_0x29d2b7['Narrow']=_0xe5edb5(0x1b1),_0x29d2b7['Wide']=_0xe5edb5(0x1b2),_0x29d2b7[_0xe5edb5(0x1a8)]=_0xe5edb5(0x1a8),_0x29d2b7[_0xe5edb5(0x1a5)]='Custom',_0x29d2b7;}({});const PaperMarginMap={[_0xd6c7cd(0x1b5)]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},['Narrow']:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0xd6c7cd(0x1b2)]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},['None']:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0xd6c7cd(0x1a5)]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},PRINT_CONTAINER_CLASS=_0xd6c7cd(0x1bc),PRINT_CANVAS_CLASS=_0xd6c7cd(0x1b4);function createPrintStyle(_0x268c31,_0x4750d4,_0x51b82c){const _0x33b392=_0xd6c7cd,_0x3b00e1=_0x51b82c==='Portrait'?_0x268c31:_0x4750d4,_0x1947c4=_0x51b82c==='Portrait'?_0x4750d4:_0x268c31,_0x5205f4='\x0a\x20\x20\x20\x20.'+PRINT_CANVAS_CLASS+_0x33b392(0x1c0)+_0x3b00e1+_0x33b392(0x1a9)+_0x1947c4+_0x33b392(0x1ae)+PRINT_CONTAINER_CLASS+_0x33b392(0x1c7)+PRINT_CONTAINER_CLASS+_0x33b392(0x1bb)+PRINT_CANVAS_CLASS+_0x33b392(0x1b9)+_0x1947c4+_0x33b392(0x1c2)+_0x3b00e1+_0x33b392(0x1a7),_0x20d4c0=document[_0x33b392(0x1ab)](_0x33b392(0x1be));return _0x20d4c0[_0x33b392(0x1b6)]=_0x5205f4,_0x20d4c0[_0x33b392(0x1b7)]='offline-printing-css',_0x20d4c0;}export{PRINT_CANVAS_CLASS,PRINT_CONTAINER_CLASS,PaperMarginMap,PrintAlign,PrintDirection,PrintPaperMargin,PrintScale,createPrintStyle};function _0x56c6(){const _0x46f25b=['px\x20','1503832hjrGjf','createElement','8086640gBeitC','46KjzDRu','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.','25sQTnGL','Middle','Narrow','Wide','Origin','printing-canvas','Normal','innerHTML','className','FitPage','\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','709932dpOvWB','\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.','printing-canvas-container','Landscape','style','FitHeight','\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','836856HiKOYO','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','40300ZtJzxx','1299843FcdAFb','4264624IBJAYU','Start',',\x20.','Custom','Portrait','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}','None'];_0x56c6=function(){return _0x46f25b;};return _0x56c6();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3d7f(_0x2a059f,_0x395d5a){_0x2a059f=_0x2a059f-0x1a5;const _0x56c6e1=_0x56c6();let _0x3d7fb7=_0x56c6e1[_0x2a059f];return _0x3d7fb7;}const _0xd6c7cd=_0x3d7f;(function(_0x2e405c,_0x2d6f7b){const _0x164962=_0x3d7f,_0xcd2471=_0x2e405c();while(!![]){try{const _0x1ce8b4=parseInt(_0x164962(0x1c3))/0x1*(parseInt(_0x164962(0x1ad))/0x2)+parseInt(_0x164962(0x1c1))/0x3+parseInt(_0x164962(0x1aa))/0x4+-parseInt(_0x164962(0x1af))/0x5*(-parseInt(_0x164962(0x1ba))/0x6)+-parseInt(_0x164962(0x1c5))/0x7+-parseInt(_0x164962(0x1ac))/0x8+parseInt(_0x164962(0x1c4))/0x9;if(_0x1ce8b4===_0x2d6f7b)break;else _0xcd2471['push'](_0xcd2471['shift']());}catch(_0x306699){_0xcd2471['push'](_0xcd2471['shift']());}}}(_0x56c6,0xaa5b9));let PrintDirection=function(_0x5470af){const _0x147d38=_0x3d7f;return _0x5470af[_0x147d38(0x1a6)]='Portrait',_0x5470af[_0x147d38(0x1bd)]=_0x147d38(0x1bd),_0x5470af;}({}),PrintScale=function(_0x2d5dc5){const _0x484e6f=_0x3d7f;return _0x2d5dc5[_0x484e6f(0x1b3)]=_0x484e6f(0x1b3),_0x2d5dc5['FitWidth']='FitWidth',_0x2d5dc5[_0x484e6f(0x1bf)]='FitHeight',_0x2d5dc5[_0x484e6f(0x1b8)]=_0x484e6f(0x1b8),_0x2d5dc5['Custom']=_0x484e6f(0x1a5),_0x2d5dc5;}({}),PrintAlign=function(_0x4fbef5){const _0x3c6772=_0x3d7f;return _0x4fbef5[_0x3c6772(0x1c6)]=_0x3c6772(0x1c6),_0x4fbef5['End']='End',_0x4fbef5[_0x3c6772(0x1b0)]=_0x3c6772(0x1b0),_0x4fbef5;}({}),PrintPaperMargin=function(_0x29d2b7){const _0xe5edb5=_0x3d7f;return _0x29d2b7[_0xe5edb5(0x1b5)]=_0xe5edb5(0x1b5),_0x29d2b7['Narrow']=_0xe5edb5(0x1b1),_0x29d2b7['Wide']=_0xe5edb5(0x1b2),_0x29d2b7[_0xe5edb5(0x1a8)]=_0xe5edb5(0x1a8),_0x29d2b7[_0xe5edb5(0x1a5)]='Custom',_0x29d2b7;}({});const PaperMarginMap={[_0xd6c7cd(0x1b5)]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},['Narrow']:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0xd6c7cd(0x1b2)]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},['None']:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0xd6c7cd(0x1a5)]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},PRINT_CONTAINER_CLASS=_0xd6c7cd(0x1bc),PRINT_CANVAS_CLASS=_0xd6c7cd(0x1b4);function createPrintStyle(_0x268c31,_0x4750d4,_0x51b82c){const _0x33b392=_0xd6c7cd,_0x3b00e1=_0x51b82c==='Portrait'?_0x268c31:_0x4750d4,_0x1947c4=_0x51b82c==='Portrait'?_0x4750d4:_0x268c31,_0x5205f4='\x0a\x20\x20\x20\x20.'+PRINT_CANVAS_CLASS+_0x33b392(0x1c0)+_0x3b00e1+_0x33b392(0x1a9)+_0x1947c4+_0x33b392(0x1ae)+PRINT_CONTAINER_CLASS+_0x33b392(0x1c7)+PRINT_CONTAINER_CLASS+_0x33b392(0x1bb)+PRINT_CANVAS_CLASS+_0x33b392(0x1b9)+_0x1947c4+_0x33b392(0x1c2)+_0x3b00e1+_0x33b392(0x1a7),_0x20d4c0=document[_0x33b392(0x1ab)](_0x33b392(0x1be));return _0x20d4c0[_0x33b392(0x1b6)]=_0x5205f4,_0x20d4c0[_0x33b392(0x1b7)]='offline-printing-css',_0x20d4c0;}export{PRINT_CANVAS_CLASS,PRINT_CONTAINER_CLASS,PaperMarginMap,PrintAlign,PrintDirection,PrintPaperMargin,PrintScale,createPrintStyle};function _0x56c6(){const _0x46f25b=['px\x20','1503832hjrGjf','createElement','8086640gBeitC','46KjzDRu','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.','25sQTnGL','Middle','Narrow','Wide','Origin','printing-canvas','Normal','innerHTML','className','FitPage','\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','709932dpOvWB','\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.','printing-canvas-container','Landscape','style','FitHeight','\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','836856HiKOYO','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','40300ZtJzxx','1299843FcdAFb','4264624IBJAYU','Start',',\x20.','Custom','Portrait','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}','None'];_0x56c6=function(){return _0x46f25b;};return _0x56c6();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5da3(){const _0x539514=['\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','Landscape','offline-printing-css',',\x20.','1074156JLSzjs','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','\x0a\x20\x20\x20\x20.','PrintAlign','\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','exports','1037945IFchNE','PaperMarginMap','Narrow','3134840OBtOng','18pVgUHb','style','Portrait','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PrintScale','None','End','Origin','object','Middle','Start','FitWidth','Wide','Module','PrintDirection','\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.','34055568npNkmw','4026756XmjwmW','amd','defineProperty','2389107QyeWYe','5501656iRXcRu','PRINT_CANVAS_CLASS','innerHTML','Custom','14yYXzxO','toStringTag','PrintPaperMargin','createPrintStyle','FitHeight'];_0x5da3=function(){return _0x539514;};return _0x5da3();}function _0x166e(_0x3f7dd4,_0xdc7fe2){_0x3f7dd4=_0x3f7dd4-0x1e8;const _0x5da327=_0x5da3();let _0x166ed9=_0x5da327[_0x3f7dd4];return _0x166ed9;}(function(_0x34afce,_0x3a4934){const _0x58ee92=_0x166e,_0x16cdf6=_0x34afce();while(!![]){try{const _0x395457=-parseInt(_0x58ee92(0x1f4))/0x1+-parseInt(_0x58ee92(0x1fe))/0x2+parseInt(_0x58ee92(0x213))/0x3+parseInt(_0x58ee92(0x210))/0x4+-parseInt(_0x58ee92(0x1fb))/0x5*(parseInt(_0x58ee92(0x1ff))/0x6)+-parseInt(_0x58ee92(0x1eb))/0x7*(parseInt(_0x58ee92(0x214))/0x8)+parseInt(_0x58ee92(0x20f))/0x9;if(_0x395457===_0x3a4934)break;else _0x16cdf6['push'](_0x16cdf6['shift']());}catch(_0xc85058){_0x16cdf6['push'](_0x16cdf6['shift']());}}}(_0x5da3,0xe7435),function(_0x40cac6,_0x5440df){const _0x332b49=_0x166e;typeof exports==_0x332b49(0x207)&&typeof module<'u'?_0x5440df(exports):typeof define=='function'&&define[_0x332b49(0x211)]?define([_0x332b49(0x1fa)],_0x5440df):(_0x40cac6=typeof globalThis<'u'?globalThis:_0x40cac6||self,_0x5440df(_0x40cac6['UniverProPrint']={}));}(this,function(_0x368857){const _0x3ebd66=_0x166e;Object[_0x3ebd66(0x212)](_0x368857,Symbol[_0x3ebd66(0x1ec)],{'value':_0x3ebd66(0x20c)});let _0x204517=function(_0x2cdc97){const _0x31688e=_0x3ebd66;return _0x2cdc97[_0x31688e(0x201)]=_0x31688e(0x201),_0x2cdc97[_0x31688e(0x1f1)]='Landscape',_0x2cdc97;}({}),_0x2c1025=function(_0x1c9e7a){const _0x47a5cd=_0x3ebd66;return _0x1c9e7a[_0x47a5cd(0x206)]=_0x47a5cd(0x206),_0x1c9e7a[_0x47a5cd(0x20a)]='FitWidth',_0x1c9e7a[_0x47a5cd(0x1ef)]=_0x47a5cd(0x1ef),_0x1c9e7a[_0x47a5cd(0x1f6)]=_0x47a5cd(0x1f6),_0x1c9e7a[_0x47a5cd(0x1ea)]='Custom',_0x1c9e7a;}({}),_0x38841d=function(_0x18c4bb){const _0x1e924d=_0x3ebd66;return _0x18c4bb[_0x1e924d(0x209)]=_0x1e924d(0x209),_0x18c4bb['End']=_0x1e924d(0x205),_0x18c4bb[_0x1e924d(0x208)]=_0x1e924d(0x208),_0x18c4bb;}({}),_0x4fbbff=function(_0x2cb243){const _0x4c6f7e=_0x3ebd66;return _0x2cb243['Normal']='Normal',_0x2cb243[_0x4c6f7e(0x1fd)]='Narrow',_0x2cb243[_0x4c6f7e(0x20b)]='Wide',_0x2cb243[_0x4c6f7e(0x204)]='None',_0x2cb243['Custom']='Custom',_0x2cb243;}({}),_0x3f4f9f={'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}},_0x10df72='printing-canvas-container',_0x1e51a3='printing-canvas';function _0x568722(_0x3107e2,_0x363870,_0x19d87a){const _0x16eaf0=_0x3ebd66;let _0x202bb7=_0x19d87a===_0x16eaf0(0x201)?_0x3107e2:_0x363870,_0x4fcf7f=_0x19d87a===_0x16eaf0(0x201)?_0x363870:_0x3107e2,_0xb43b62=_0x16eaf0(0x1f7)+_0x1e51a3+_0x16eaf0(0x1f0)+_0x202bb7+'px\x20'+_0x4fcf7f+'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.'+_0x10df72+_0x16eaf0(0x1f3)+_0x10df72+_0x16eaf0(0x20e)+_0x1e51a3+_0x16eaf0(0x1f9)+_0x4fcf7f+_0x16eaf0(0x202)+_0x202bb7+_0x16eaf0(0x1f5),_0x25e03a=document['createElement'](_0x16eaf0(0x200));return _0x25e03a[_0x16eaf0(0x1e9)]=_0xb43b62,_0x25e03a['className']=_0x16eaf0(0x1f2),_0x25e03a;}_0x368857[_0x3ebd66(0x1e8)]=_0x1e51a3,_0x368857['PRINT_CONTAINER_CLASS']=_0x10df72,_0x368857[_0x3ebd66(0x1fc)]=_0x3f4f9f,_0x368857[_0x3ebd66(0x1f8)]=_0x38841d,_0x368857[_0x3ebd66(0x20d)]=_0x204517,_0x368857[_0x3ebd66(0x1ed)]=_0x4fbbff,_0x368857[_0x3ebd66(0x203)]=_0x2c1025,_0x368857[_0x3ebd66(0x1ee)]=_0x568722;}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.1",
|
|
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.4",
|
|
53
|
-
"@univerjs-infra/shared": "0.22.
|
|
53
|
+
"@univerjs-infra/shared": "0.22.1"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "vitest run",
|