@univerjs-pro/print 0.21.0 → 0.21.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 _0x4aaaa3=_0x3198;function _0x4b94(){const _0x4e28f6=['865651HVxsQc','printing-canvas','265158ItDNhA','Landscape','px\x20','\x0a\x20\x20\x20\x20.','PrintPaperMargin','\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','PrintDirection','className','defineProperty','310308bhZetC','Module','85YdBqcL','End','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','innerHTML','createPrintStyle','PaperMarginMap','None','Wide','Origin','Normal','101892UScUpB','5667354EcUaMq','2012714QexBHY','Middle',',\x20.','Portrait','Narrow','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.','29760980cdhJBr','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}','PRINT_CANVAS_CLASS','Start','PrintScale','FitWidth','createElement','Custom','80WuBUCM','248nTlhpc','offline-printing-css'];_0x4b94=function(){return _0x4e28f6;};return _0x4b94();}(function(_0x2d2035,_0x503852){const _0x35d182=_0x3198,_0x33e6a8=_0x2d2035();while(!![]){try{const _0x362043=parseInt(_0x35d182(0x1fd))/0x1+parseInt(_0x35d182(0x217))/0x2+parseInt(_0x35d182(0x215))/0x3*(parseInt(_0x35d182(0x1fa))/0x4)+-parseInt(_0x35d182(0x20a))/0x5*(-parseInt(_0x35d182(0x208))/0x6)+-parseInt(_0x35d182(0x216))/0x7+-parseInt(_0x35d182(0x1fb))/0x8*(-parseInt(_0x35d182(0x1ff))/0x9)+-parseInt(_0x35d182(0x1f2))/0xa;if(_0x362043===_0x503852)break;else _0x33e6a8['push'](_0x33e6a8['shift']());}catch(_0x3982b5){_0x33e6a8['push'](_0x33e6a8['shift']());}}}(_0x4b94,0x88410),Object[_0x4aaaa3(0x207)](exports,Symbol['toStringTag'],{'value':_0x4aaaa3(0x209)}));let PrintDirection=function(_0x41f0b7){const _0x33bbd6=_0x4aaaa3;return _0x41f0b7['Portrait']=_0x33bbd6(0x21a),_0x41f0b7['Landscape']=_0x33bbd6(0x200),_0x41f0b7;}({}),PrintScale=function(_0x5a0ea0){const _0x19967c=_0x4aaaa3;return _0x5a0ea0[_0x19967c(0x213)]=_0x19967c(0x213),_0x5a0ea0['FitWidth']=_0x19967c(0x1f7),_0x5a0ea0['FitHeight']='FitHeight',_0x5a0ea0[_0x19967c(0x20c)]=_0x19967c(0x20c),_0x5a0ea0[_0x19967c(0x1f9)]='Custom',_0x5a0ea0;}({}),PrintAlign=function(_0x57e434){const _0x47d64a=_0x4aaaa3;return _0x57e434[_0x47d64a(0x1f5)]=_0x47d64a(0x1f5),_0x57e434[_0x47d64a(0x20b)]=_0x47d64a(0x20b),_0x57e434[_0x47d64a(0x218)]=_0x47d64a(0x218),_0x57e434;}({}),PrintPaperMargin=function(_0x36a40e){const _0x2a0c5f=_0x4aaaa3;return _0x36a40e[_0x2a0c5f(0x214)]=_0x2a0c5f(0x214),_0x36a40e[_0x2a0c5f(0x21b)]=_0x2a0c5f(0x21b),_0x36a40e['Wide']=_0x2a0c5f(0x212),_0x36a40e[_0x2a0c5f(0x211)]=_0x2a0c5f(0x211),_0x36a40e[_0x2a0c5f(0x1f9)]=_0x2a0c5f(0x1f9),_0x36a40e;}({});function _0x3198(_0x1c068a,_0x555116){_0x1c068a=_0x1c068a-0x1f2;const _0x4b94ea=_0x4b94();let _0x319853=_0x4b94ea[_0x1c068a];return _0x319853;}const PaperMarginMap={[PrintPaperMargin[_0x4aaaa3(0x214)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[PrintPaperMargin['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[PrintPaperMargin[_0x4aaaa3(0x212)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[PrintPaperMargin['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[PrintPaperMargin[_0x4aaaa3(0x1f9)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},PRINT_CONTAINER_CLASS='printing-canvas-container',PRINT_CANVAS_CLASS=_0x4aaaa3(0x1fe);function createPrintStyle(_0x32ad94,_0x3945a9,_0x25b5ab){const _0x247f27=_0x4aaaa3,_0x2c502a=_0x25b5ab===PrintDirection[_0x247f27(0x21a)]?_0x32ad94:_0x3945a9,_0x49087f=_0x25b5ab===PrintDirection[_0x247f27(0x21a)]?_0x3945a9:_0x32ad94,_0x407a90=_0x247f27(0x202)+PRINT_CANVAS_CLASS+'\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'+_0x2c502a+_0x247f27(0x201)+_0x49087f+_0x247f27(0x21c)+PRINT_CONTAINER_CLASS+_0x247f27(0x219)+PRINT_CONTAINER_CLASS+'\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.'+PRINT_CANVAS_CLASS+_0x247f27(0x204)+_0x49087f+_0x247f27(0x20d)+_0x2c502a+_0x247f27(0x1f3),_0x184aae=document[_0x247f27(0x1f8)]('style');return _0x184aae[_0x247f27(0x20e)]=_0x407a90,_0x184aae[_0x247f27(0x206)]=_0x247f27(0x1fc),_0x184aae;}exports[_0x4aaaa3(0x1f4)]=PRINT_CANVAS_CLASS,exports['PRINT_CONTAINER_CLASS']=PRINT_CONTAINER_CLASS,exports[_0x4aaaa3(0x210)]=PaperMarginMap,exports['PrintAlign']=PrintAlign,exports[_0x4aaaa3(0x205)]=PrintDirection,exports[_0x4aaaa3(0x203)]=PrintPaperMargin,exports[_0x4aaaa3(0x1f6)]=PrintScale,exports[_0x4aaaa3(0x20f)]=createPrintStyle;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x57e993=_0x5ea5;(function(_0x11dc9e,_0x5c80ab){const _0x1b59b5=_0x5ea5,_0x311b73=_0x11dc9e();while(!![]){try{const _0x3db212=-parseInt(_0x1b59b5(0x167))/0x1*(-parseInt(_0x1b59b5(0x14c))/0x2)+-parseInt(_0x1b59b5(0x169))/0x3*(-parseInt(_0x1b59b5(0x14a))/0x4)+-parseInt(_0x1b59b5(0x164))/0x5*(-parseInt(_0x1b59b5(0x162))/0x6)+-parseInt(_0x1b59b5(0x14e))/0x7+-parseInt(_0x1b59b5(0x15e))/0x8+parseInt(_0x1b59b5(0x15d))/0x9+parseInt(_0x1b59b5(0x158))/0xa*(-parseInt(_0x1b59b5(0x153))/0xb);if(_0x3db212===_0x5c80ab)break;else _0x311b73['push'](_0x311b73['shift']());}catch(_0x480411){_0x311b73['push'](_0x311b73['shift']());}}}(_0x3a87,0x7283d));let PrintDirection=function(_0x23f763){const _0x59da7c=_0x5ea5;return _0x23f763[_0x59da7c(0x151)]=_0x59da7c(0x151),_0x23f763[_0x59da7c(0x16b)]='Landscape',_0x23f763;}({}),PrintScale=function(_0x23b1fc){const _0x296d3a=_0x5ea5;return _0x23b1fc[_0x296d3a(0x150)]='Origin',_0x23b1fc['FitWidth']='FitWidth',_0x23b1fc[_0x296d3a(0x156)]=_0x296d3a(0x156),_0x23b1fc[_0x296d3a(0x163)]=_0x296d3a(0x163),_0x23b1fc[_0x296d3a(0x168)]='Custom',_0x23b1fc;}({}),PrintAlign=function(_0x4fef33){const _0x28a41e=_0x5ea5;return _0x4fef33[_0x28a41e(0x14f)]=_0x28a41e(0x14f),_0x4fef33['End']=_0x28a41e(0x15a),_0x4fef33['Middle']=_0x28a41e(0x166),_0x4fef33;}({}),PrintPaperMargin=function(_0x541d19){const _0x47da91=_0x5ea5;return _0x541d19['Normal']='Normal',_0x541d19[_0x47da91(0x14b)]=_0x47da91(0x14b),_0x541d19[_0x47da91(0x161)]='Wide',_0x541d19['None']=_0x47da91(0x15b),_0x541d19[_0x47da91(0x168)]=_0x47da91(0x168),_0x541d19;}({});function _0x5ea5(_0x3f06a1,_0x152a14){_0x3f06a1=_0x3f06a1-0x14a;const _0x3a87aa=_0x3a87();let _0x5ea5e7=_0x3a87aa[_0x3f06a1];return _0x5ea5e7;}const PaperMarginMap={[PrintPaperMargin['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[PrintPaperMargin['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[PrintPaperMargin[_0x57e993(0x161)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[PrintPaperMargin[_0x57e993(0x15b)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[PrintPaperMargin[_0x57e993(0x168)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},PRINT_CONTAINER_CLASS=_0x57e993(0x152),PRINT_CANVAS_CLASS=_0x57e993(0x16a);function createPrintStyle(_0x400b86,_0xcd0285,_0x23d573){const _0x1b425a=_0x57e993,_0x1e7254=_0x23d573===PrintDirection['Portrait']?_0x400b86:_0xcd0285,_0x3fbb89=_0x23d573===PrintDirection[_0x1b425a(0x151)]?_0xcd0285:_0x400b86,_0x5584fe=_0x1b425a(0x14d)+PRINT_CANVAS_CLASS+_0x1b425a(0x165)+_0x1e7254+_0x1b425a(0x154)+_0x3fbb89+_0x1b425a(0x15f)+PRINT_CONTAINER_CLASS+',\x20.'+PRINT_CONTAINER_CLASS+_0x1b425a(0x155)+PRINT_CANVAS_CLASS+_0x1b425a(0x159)+_0x3fbb89+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x1e7254+'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}',_0x679b21=document['createElement'](_0x1b425a(0x160));return _0x679b21[_0x1b425a(0x15c)]=_0x5584fe,_0x679b21[_0x1b425a(0x16c)]=_0x1b425a(0x157),_0x679b21;}export{PRINT_CANVAS_CLASS,PRINT_CONTAINER_CLASS,PaperMarginMap,PrintAlign,PrintDirection,PrintPaperMargin,PrintScale,createPrintStyle};function _0x3a87(){const _0x50d9e2=['142NWKxYw','\x0a\x20\x20\x20\x20.','5062841yRVvET','Start','Origin','Portrait','printing-canvas-container','1382029nCUhbr','px\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.','FitHeight','offline-printing-css','10SdtDLX','\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','End','None','innerHTML','5690727UNLhHB','5735456ECrbqN','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.','style','Wide','66lSOgee','FitPage','157310QICNSb','\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','Middle','3442bWJTPv','Custom','2436360YJqaJj','printing-canvas','Landscape','className','4VqWAwe','Narrow'];_0x3a87=function(){return _0x50d9e2;};return _0x3a87();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x57e993=_0x5ea5;(function(_0x11dc9e,_0x5c80ab){const _0x1b59b5=_0x5ea5,_0x311b73=_0x11dc9e();while(!![]){try{const _0x3db212=-parseInt(_0x1b59b5(0x167))/0x1*(-parseInt(_0x1b59b5(0x14c))/0x2)+-parseInt(_0x1b59b5(0x169))/0x3*(-parseInt(_0x1b59b5(0x14a))/0x4)+-parseInt(_0x1b59b5(0x164))/0x5*(-parseInt(_0x1b59b5(0x162))/0x6)+-parseInt(_0x1b59b5(0x14e))/0x7+-parseInt(_0x1b59b5(0x15e))/0x8+parseInt(_0x1b59b5(0x15d))/0x9+parseInt(_0x1b59b5(0x158))/0xa*(-parseInt(_0x1b59b5(0x153))/0xb);if(_0x3db212===_0x5c80ab)break;else _0x311b73['push'](_0x311b73['shift']());}catch(_0x480411){_0x311b73['push'](_0x311b73['shift']());}}}(_0x3a87,0x7283d));let PrintDirection=function(_0x23f763){const _0x59da7c=_0x5ea5;return _0x23f763[_0x59da7c(0x151)]=_0x59da7c(0x151),_0x23f763[_0x59da7c(0x16b)]='Landscape',_0x23f763;}({}),PrintScale=function(_0x23b1fc){const _0x296d3a=_0x5ea5;return _0x23b1fc[_0x296d3a(0x150)]='Origin',_0x23b1fc['FitWidth']='FitWidth',_0x23b1fc[_0x296d3a(0x156)]=_0x296d3a(0x156),_0x23b1fc[_0x296d3a(0x163)]=_0x296d3a(0x163),_0x23b1fc[_0x296d3a(0x168)]='Custom',_0x23b1fc;}({}),PrintAlign=function(_0x4fef33){const _0x28a41e=_0x5ea5;return _0x4fef33[_0x28a41e(0x14f)]=_0x28a41e(0x14f),_0x4fef33['End']=_0x28a41e(0x15a),_0x4fef33['Middle']=_0x28a41e(0x166),_0x4fef33;}({}),PrintPaperMargin=function(_0x541d19){const _0x47da91=_0x5ea5;return _0x541d19['Normal']='Normal',_0x541d19[_0x47da91(0x14b)]=_0x47da91(0x14b),_0x541d19[_0x47da91(0x161)]='Wide',_0x541d19['None']=_0x47da91(0x15b),_0x541d19[_0x47da91(0x168)]=_0x47da91(0x168),_0x541d19;}({});function _0x5ea5(_0x3f06a1,_0x152a14){_0x3f06a1=_0x3f06a1-0x14a;const _0x3a87aa=_0x3a87();let _0x5ea5e7=_0x3a87aa[_0x3f06a1];return _0x5ea5e7;}const PaperMarginMap={[PrintPaperMargin['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[PrintPaperMargin['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[PrintPaperMargin[_0x57e993(0x161)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[PrintPaperMargin[_0x57e993(0x15b)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[PrintPaperMargin[_0x57e993(0x168)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},PRINT_CONTAINER_CLASS=_0x57e993(0x152),PRINT_CANVAS_CLASS=_0x57e993(0x16a);function createPrintStyle(_0x400b86,_0xcd0285,_0x23d573){const _0x1b425a=_0x57e993,_0x1e7254=_0x23d573===PrintDirection['Portrait']?_0x400b86:_0xcd0285,_0x3fbb89=_0x23d573===PrintDirection[_0x1b425a(0x151)]?_0xcd0285:_0x400b86,_0x5584fe=_0x1b425a(0x14d)+PRINT_CANVAS_CLASS+_0x1b425a(0x165)+_0x1e7254+_0x1b425a(0x154)+_0x3fbb89+_0x1b425a(0x15f)+PRINT_CONTAINER_CLASS+',\x20.'+PRINT_CONTAINER_CLASS+_0x1b425a(0x155)+PRINT_CANVAS_CLASS+_0x1b425a(0x159)+_0x3fbb89+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x1e7254+'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}',_0x679b21=document['createElement'](_0x1b425a(0x160));return _0x679b21[_0x1b425a(0x15c)]=_0x5584fe,_0x679b21[_0x1b425a(0x16c)]=_0x1b425a(0x157),_0x679b21;}export{PRINT_CANVAS_CLASS,PRINT_CONTAINER_CLASS,PaperMarginMap,PrintAlign,PrintDirection,PrintPaperMargin,PrintScale,createPrintStyle};function _0x3a87(){const _0x50d9e2=['142NWKxYw','\x0a\x20\x20\x20\x20.','5062841yRVvET','Start','Origin','Portrait','printing-canvas-container','1382029nCUhbr','px\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.','FitHeight','offline-printing-css','10SdtDLX','\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','End','None','innerHTML','5690727UNLhHB','5735456ECrbqN','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.','style','Wide','66lSOgee','FitPage','157310QICNSb','\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','Middle','3442bWJTPv','Custom','2436360YJqaJj','printing-canvas','Landscape','className','4VqWAwe','Narrow'];_0x3a87=function(){return _0x50d9e2;};return _0x3a87();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0xf579(_0x46b971,_0x4f68ed){_0x46b971=_0x46b971-0x1e2;const _0x58f8fe=_0x58f8();let _0xf579bd=_0x58f8fe[_0x46b971];return _0xf579bd;}(function(_0x17b30e,_0x1ca288){const _0x2668cf=_0xf579,_0x5ac333=_0x17b30e();while(!![]){try{const _0x38458d=-parseInt(_0x2668cf(0x1fb))/0x1+-parseInt(_0x2668cf(0x1f0))/0x2+parseInt(_0x2668cf(0x1ec))/0x3*(-parseInt(_0x2668cf(0x204))/0x4)+parseInt(_0x2668cf(0x1e6))/0x5*(parseInt(_0x2668cf(0x202))/0x6)+parseInt(_0x2668cf(0x20b))/0x7+-parseInt(_0x2668cf(0x20e))/0x8+parseInt(_0x2668cf(0x1fa))/0x9;if(_0x38458d===_0x1ca288)break;else _0x5ac333['push'](_0x5ac333['shift']());}catch(_0x3f107b){_0x5ac333['push'](_0x5ac333['shift']());}}}(_0x58f8,0xac0b2),function(_0x55b405,_0x18c7b0){const _0x4f731a=_0xf579;typeof exports==_0x4f731a(0x203)&&typeof module<'u'?_0x18c7b0(exports):typeof define=='function'&&define['amd']?define([_0x4f731a(0x1fe)],_0x18c7b0):(_0x55b405=typeof globalThis<'u'?globalThis:_0x55b405||self,_0x18c7b0(_0x55b405[_0x4f731a(0x1f5)]={}));}(this,function(_0x56f8ae){const _0x2e8bff=_0xf579;Object['defineProperty'](_0x56f8ae,Symbol['toStringTag'],{'value':_0x2e8bff(0x1eb)});let _0x583599=function(_0x23c7a4){const _0x5c7f61=_0x2e8bff;return _0x23c7a4[_0x5c7f61(0x205)]='Portrait',_0x23c7a4[_0x5c7f61(0x200)]=_0x5c7f61(0x200),_0x23c7a4;}({}),_0x1b1068=function(_0x25d31d){const _0x5840e7=_0x2e8bff;return _0x25d31d['Origin']=_0x5840e7(0x1ea),_0x25d31d['FitWidth']=_0x5840e7(0x1e8),_0x25d31d[_0x5840e7(0x1e7)]=_0x5840e7(0x1e7),_0x25d31d[_0x5840e7(0x207)]='FitPage',_0x25d31d[_0x5840e7(0x1ef)]=_0x5840e7(0x1ef),_0x25d31d;}({}),_0x5cd6ff=function(_0x32b06f){const _0x5e9c22=_0x2e8bff;return _0x32b06f[_0x5e9c22(0x206)]=_0x5e9c22(0x206),_0x32b06f['End']=_0x5e9c22(0x201),_0x32b06f['Middle']=_0x5e9c22(0x1ed),_0x32b06f;}({}),_0x5dfbbc=function(_0x142bc6){const _0x253f89=_0x2e8bff;return _0x142bc6['Normal']=_0x253f89(0x1fc),_0x142bc6['Narrow']=_0x253f89(0x1f2),_0x142bc6['Wide']=_0x253f89(0x1e4),_0x142bc6[_0x253f89(0x1e5)]='None',_0x142bc6[_0x253f89(0x1ef)]=_0x253f89(0x1ef),_0x142bc6;}({}),_0x534a83={[_0x5dfbbc[_0x2e8bff(0x1fc)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x5dfbbc[_0x2e8bff(0x1f2)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x5dfbbc['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x5dfbbc[_0x2e8bff(0x1e5)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x5dfbbc[_0x2e8bff(0x1ef)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x18edb7=_0x2e8bff(0x1ff),_0x113f69=_0x2e8bff(0x1f7);function _0x2d7968(_0x211271,_0x13ca35,_0x1a20b8){const _0x857b43=_0x2e8bff;let _0x4383cc=_0x1a20b8===_0x583599[_0x857b43(0x205)]?_0x211271:_0x13ca35,_0x20e006=_0x1a20b8===_0x583599[_0x857b43(0x205)]?_0x13ca35:_0x211271,_0x44d54b='\x0a\x20\x20\x20\x20.'+_0x113f69+_0x857b43(0x1e9)+_0x4383cc+_0x857b43(0x1f6)+_0x20e006+'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.'+_0x18edb7+_0x857b43(0x209)+_0x18edb7+_0x857b43(0x20d)+_0x113f69+_0x857b43(0x1f3)+_0x20e006+_0x857b43(0x208)+_0x4383cc+'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}',_0x2dd3b3=document[_0x857b43(0x1ee)](_0x857b43(0x1f4));return _0x2dd3b3['innerHTML']=_0x44d54b,_0x2dd3b3[_0x857b43(0x1f9)]='offline-printing-css',_0x2dd3b3;}_0x56f8ae[_0x2e8bff(0x1e3)]=_0x113f69,_0x56f8ae['PRINT_CONTAINER_CLASS']=_0x18edb7,_0x56f8ae[_0x2e8bff(0x20a)]=_0x534a83,_0x56f8ae[_0x2e8bff(0x1e2)]=_0x5cd6ff,_0x56f8ae[_0x2e8bff(0x1fd)]=_0x583599,_0x56f8ae[_0x2e8bff(0x1f1)]=_0x5dfbbc,_0x56f8ae[_0x2e8bff(0x1f8)]=_0x1b1068,_0x56f8ae[_0x2e8bff(0x20c)]=_0x2d7968;}));function _0x58f8(){const _0xf1f366=['\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','style','UniverProPrint','px\x20','printing-canvas','PrintScale','className','14068998HvsQgZ','653553RWYXLG','Normal','PrintDirection','exports','printing-canvas-container','Landscape','End','1136046fbqRDt','object','2846556HroPed','Portrait','Start','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20',',\x20.','PaperMarginMap','9695301nGKyqc','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.','1105568dOFZIQ','PrintAlign','PRINT_CANVAS_CLASS','Wide','None','15nfHRyz','FitHeight','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','Origin','Module','3UbYiIk','Middle','createElement','Custom','2616420KYJwAB','PrintPaperMargin','Narrow'];_0x58f8=function(){return _0xf1f366;};return _0x58f8();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^6.0.3",
|
|
46
46
|
"vitest": "^4.1.4",
|
|
47
|
-
"@univerjs-infra/shared": "0.21.
|
|
47
|
+
"@univerjs-infra/shared": "0.21.1"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"test": "vitest run",
|