@univerjs-pro/print 0.20.1 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +4 -4
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4ec85b=_0x2af4;(function(_0x1a8a82,_0x10bd8d){const _0x3ca086=_0x2af4,_0x130210=_0x1a8a82();while(!![]){try{const _0x4f874b=-parseInt(_0x3ca086(0x212))/0x1+parseInt(_0x3ca086(0x1fa))/0x2+-parseInt(_0x3ca086(0x1f7))/0x3*(-parseInt(_0x3ca086(0x210))/0x4)+parseInt(_0x3ca086(0x206))/0x5+parseInt(_0x3ca086(0x1ef))/0x6+-parseInt(_0x3ca086(0x20c))/0x7*(parseInt(_0x3ca086(0x20d))/0x8)+-parseInt(_0x3ca086(0x202))/0x9;if(_0x4f874b===_0x10bd8d)break;else _0x130210['push'](_0x130210['shift']());}catch(_0x48e336){_0x130210['push'](_0x130210['shift']());}}}(_0x567b,0xc691e),Object['defineProperty'](exports,Symbol[_0x4ec85b(0x1f3)],{'value':_0x4ec85b(0x20f)}));let PrintDirection=function(_0x2a2854){const _0x29925e=_0x4ec85b;return _0x2a2854[_0x29925e(0x207)]=_0x29925e(0x207),_0x2a2854['Landscape']=_0x29925e(0x205),_0x2a2854;}({}),PrintScale=function(_0x182bf8){const _0x2f7cf3=_0x4ec85b;return _0x182bf8[_0x2f7cf3(0x203)]=_0x2f7cf3(0x203),_0x182bf8[_0x2f7cf3(0x20a)]=_0x2f7cf3(0x20a),_0x182bf8[_0x2f7cf3(0x1fe)]=_0x2f7cf3(0x1fe),_0x182bf8[_0x2f7cf3(0x216)]=_0x2f7cf3(0x216),_0x182bf8[_0x2f7cf3(0x1fd)]=_0x2f7cf3(0x1fd),_0x182bf8;}({}),PrintAlign=function(_0x2d0b57){const _0x6fa10b=_0x4ec85b;return _0x2d0b57['Start']=_0x6fa10b(0x209),_0x2d0b57['End']=_0x6fa10b(0x1fb),_0x2d0b57[_0x6fa10b(0x1f4)]=_0x6fa10b(0x1f4),_0x2d0b57;}({}),PrintPaperMargin=function(_0x461d5c){const _0x4d7214=_0x4ec85b;return _0x461d5c[_0x4d7214(0x1fc)]=_0x4d7214(0x1fc),_0x461d5c[_0x4d7214(0x20e)]=_0x4d7214(0x20e),_0x461d5c[_0x4d7214(0x20b)]='Wide',_0x461d5c[_0x4d7214(0x211)]=_0x4d7214(0x211),_0x461d5c[_0x4d7214(0x1fd)]=_0x4d7214(0x1fd),_0x461d5c;}({});const PaperMarginMap={[PrintPaperMargin[_0x4ec85b(0x1fc)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[PrintPaperMargin[_0x4ec85b(0x20e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[PrintPaperMargin[_0x4ec85b(0x20b)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[PrintPaperMargin[_0x4ec85b(0x211)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[PrintPaperMargin[_0x4ec85b(0x1fd)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},PRINT_CONTAINER_CLASS='printing-canvas-container',PRINT_CANVAS_CLASS=_0x4ec85b(0x201);function createPrintStyle(_0x12648a,_0x9b8b0b,_0x3661bd){const _0xafbb7=_0x4ec85b,_0xa7f9bf=_0x3661bd===PrintDirection[_0xafbb7(0x207)]?_0x12648a:_0x9b8b0b,_0x3017d8=_0x3661bd===PrintDirection[_0xafbb7(0x207)]?_0x9b8b0b:_0x12648a,_0x1a2d58=_0xafbb7(0x215)+PRINT_CANVAS_CLASS+_0xafbb7(0x1f2)+_0xa7f9bf+'px\x20'+_0x3017d8+_0xafbb7(0x1f0)+PRINT_CONTAINER_CLASS+',\x20.'+PRINT_CONTAINER_CLASS+_0xafbb7(0x204)+PRINT_CANVAS_CLASS+_0xafbb7(0x213)+_0x3017d8+_0xafbb7(0x1f6)+_0xa7f9bf+_0xafbb7(0x1f9),_0x18596a=document[_0xafbb7(0x208)](_0xafbb7(0x1f5));return _0x18596a[_0xafbb7(0x1ee)]=_0x1a2d58,_0x18596a['className']=_0xafbb7(0x1f1),_0x18596a;}function _0x2af4(_0x373adf,_0x4192ed){_0x373adf=_0x373adf-0x1ee;const _0x567b7b=_0x567b();let _0x2af46f=_0x567b7b[_0x373adf];return _0x2af46f;}exports['PRINT_CANVAS_CLASS']=PRINT_CANVAS_CLASS,exports['PRINT_CONTAINER_CLASS']=PRINT_CONTAINER_CLASS,exports[_0x4ec85b(0x1f8)]=PaperMarginMap,exports[_0x4ec85b(0x214)]=PrintAlign,exports[_0x4ec85b(0x200)]=PrintDirection,exports[_0x4ec85b(0x1ff)]=PrintPaperMargin,exports['PrintScale']=PrintScale,exports['createPrintStyle']=createPrintStyle;function _0x567b(){const _0x51a08a=['582377gPOijt','\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','PrintAlign','\x0a\x20\x20\x20\x20.','FitPage','innerHTML','6171306glvFaE','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.','offline-printing-css','\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','toStringTag','Middle','style','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','3akZTbW','PaperMarginMap','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}','1669710iXUpAn','End','Normal','Custom','FitHeight','PrintPaperMargin','PrintDirection','printing-canvas','10181250QpqFbW','Origin','\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.','Landscape','5507300SIQlAV','Portrait','createElement','Start','FitWidth','Wide','504nMVqSv','152936ftszWF','Narrow','Module','3754108cJQJxh','None'];_0x567b=function(){return _0x51a08a;};return _0x567b();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1c8c(_0x143745,_0x1d5c0f){_0x143745=_0x143745-0x1a2;const _0x44fe66=_0x44fe();let _0x1c8cab=_0x44fe66[_0x143745];return _0x1c8cab;}const _0x8a449f=_0x1c8c;function _0x44fe(){const _0x347d69=['printing-canvas-container','innerHTML','8rNcObE','createElement','3150978eltuQv','Narrow','387LlFMlu','Start','Landscape','Middle','FitHeight','49317015xaZaoS','Wide','Custom','272858UgQIrq','3766257upYklz','FitWidth','64LXouob','491885FxAqLJ','offline-printing-css','px\x20','Normal','Portrait',',\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','Origin','\x0a\x20\x20\x20\x20.','1BRDgxv','36410hDLQYX','None','FitPage','printing-canvas','End','9502808KlfPVo','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'];_0x44fe=function(){return _0x347d69;};return _0x44fe();}(function(_0x247fa2,_0x45c642){const _0x203fc1=_0x1c8c,_0xb41d30=_0x247fa2();while(!![]){try{const _0x482af2=-parseInt(_0x203fc1(0x1b7))/0x1*(parseInt(_0x203fc1(0x1aa))/0x2)+-parseInt(_0x203fc1(0x1ab))/0x3+-parseInt(_0x203fc1(0x1ad))/0x4*(parseInt(_0x203fc1(0x1ae))/0x5)+parseInt(_0x203fc1(0x1c4))/0x6+-parseInt(_0x203fc1(0x1bd))/0x7*(parseInt(_0x203fc1(0x1c2))/0x8)+parseInt(_0x203fc1(0x1a2))/0x9*(parseInt(_0x203fc1(0x1b8))/0xa)+parseInt(_0x203fc1(0x1a7))/0xb;if(_0x482af2===_0x45c642)break;else _0xb41d30['push'](_0xb41d30['shift']());}catch(_0x7474ea){_0xb41d30['push'](_0xb41d30['shift']());}}}(_0x44fe,0xcd7c3));let PrintDirection=function(_0x313f92){const _0xa4fe91=_0x1c8c;return _0x313f92['Portrait']=_0xa4fe91(0x1b2),_0x313f92['Landscape']=_0xa4fe91(0x1a4),_0x313f92;}({}),PrintScale=function(_0x14951f){const _0x5d3b5f=_0x1c8c;return _0x14951f['Origin']=_0x5d3b5f(0x1b5),_0x14951f[_0x5d3b5f(0x1ac)]=_0x5d3b5f(0x1ac),_0x14951f[_0x5d3b5f(0x1a6)]=_0x5d3b5f(0x1a6),_0x14951f[_0x5d3b5f(0x1ba)]=_0x5d3b5f(0x1ba),_0x14951f[_0x5d3b5f(0x1a9)]=_0x5d3b5f(0x1a9),_0x14951f;}({}),PrintAlign=function(_0x142252){const _0x75e8c9=_0x1c8c;return _0x142252[_0x75e8c9(0x1a3)]='Start',_0x142252[_0x75e8c9(0x1bc)]='End',_0x142252[_0x75e8c9(0x1a5)]=_0x75e8c9(0x1a5),_0x142252;}({}),PrintPaperMargin=function(_0x2ba75e){const _0x4112d3=_0x1c8c;return _0x2ba75e[_0x4112d3(0x1b1)]=_0x4112d3(0x1b1),_0x2ba75e['Narrow']=_0x4112d3(0x1c5),_0x2ba75e[_0x4112d3(0x1a8)]=_0x4112d3(0x1a8),_0x2ba75e[_0x4112d3(0x1b9)]=_0x4112d3(0x1b9),_0x2ba75e[_0x4112d3(0x1a9)]=_0x4112d3(0x1a9),_0x2ba75e;}({});const PaperMarginMap={[PrintPaperMargin[_0x8a449f(0x1b1)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[PrintPaperMargin['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[PrintPaperMargin[_0x8a449f(0x1a8)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[PrintPaperMargin['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[PrintPaperMargin[_0x8a449f(0x1a9)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},PRINT_CONTAINER_CLASS=_0x8a449f(0x1c0),PRINT_CANVAS_CLASS=_0x8a449f(0x1bb);function createPrintStyle(_0x5c8ca5,_0x21605f,_0x23e8ca){const _0x2242e7=_0x8a449f,_0x355a70=_0x23e8ca===PrintDirection[_0x2242e7(0x1b2)]?_0x5c8ca5:_0x21605f,_0x410f5e=_0x23e8ca===PrintDirection[_0x2242e7(0x1b2)]?_0x21605f:_0x5c8ca5,_0x5315b9=_0x2242e7(0x1b6)+PRINT_CANVAS_CLASS+_0x2242e7(0x1b4)+_0x355a70+_0x2242e7(0x1b0)+_0x410f5e+_0x2242e7(0x1be)+PRINT_CONTAINER_CLASS+_0x2242e7(0x1b3)+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+'\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'+_0x410f5e+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x355a70+'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}',_0x376a57=document[_0x2242e7(0x1c3)](_0x2242e7(0x1bf));return _0x376a57[_0x2242e7(0x1c1)]=_0x5315b9,_0x376a57['className']=_0x2242e7(0x1af),_0x376a57;}export{PRINT_CANVAS_CLASS,PRINT_CONTAINER_CLASS,PaperMarginMap,PrintAlign,PrintDirection,PrintPaperMargin,PrintScale,createPrintStyle};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1c8c(_0x143745,_0x1d5c0f){_0x143745=_0x143745-0x1a2;const _0x44fe66=_0x44fe();let _0x1c8cab=_0x44fe66[_0x143745];return _0x1c8cab;}const _0x8a449f=_0x1c8c;function _0x44fe(){const _0x347d69=['printing-canvas-container','innerHTML','8rNcObE','createElement','3150978eltuQv','Narrow','387LlFMlu','Start','Landscape','Middle','FitHeight','49317015xaZaoS','Wide','Custom','272858UgQIrq','3766257upYklz','FitWidth','64LXouob','491885FxAqLJ','offline-printing-css','px\x20','Normal','Portrait',',\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','Origin','\x0a\x20\x20\x20\x20.','1BRDgxv','36410hDLQYX','None','FitPage','printing-canvas','End','9502808KlfPVo','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'];_0x44fe=function(){return _0x347d69;};return _0x44fe();}(function(_0x247fa2,_0x45c642){const _0x203fc1=_0x1c8c,_0xb41d30=_0x247fa2();while(!![]){try{const _0x482af2=-parseInt(_0x203fc1(0x1b7))/0x1*(parseInt(_0x203fc1(0x1aa))/0x2)+-parseInt(_0x203fc1(0x1ab))/0x3+-parseInt(_0x203fc1(0x1ad))/0x4*(parseInt(_0x203fc1(0x1ae))/0x5)+parseInt(_0x203fc1(0x1c4))/0x6+-parseInt(_0x203fc1(0x1bd))/0x7*(parseInt(_0x203fc1(0x1c2))/0x8)+parseInt(_0x203fc1(0x1a2))/0x9*(parseInt(_0x203fc1(0x1b8))/0xa)+parseInt(_0x203fc1(0x1a7))/0xb;if(_0x482af2===_0x45c642)break;else _0xb41d30['push'](_0xb41d30['shift']());}catch(_0x7474ea){_0xb41d30['push'](_0xb41d30['shift']());}}}(_0x44fe,0xcd7c3));let PrintDirection=function(_0x313f92){const _0xa4fe91=_0x1c8c;return _0x313f92['Portrait']=_0xa4fe91(0x1b2),_0x313f92['Landscape']=_0xa4fe91(0x1a4),_0x313f92;}({}),PrintScale=function(_0x14951f){const _0x5d3b5f=_0x1c8c;return _0x14951f['Origin']=_0x5d3b5f(0x1b5),_0x14951f[_0x5d3b5f(0x1ac)]=_0x5d3b5f(0x1ac),_0x14951f[_0x5d3b5f(0x1a6)]=_0x5d3b5f(0x1a6),_0x14951f[_0x5d3b5f(0x1ba)]=_0x5d3b5f(0x1ba),_0x14951f[_0x5d3b5f(0x1a9)]=_0x5d3b5f(0x1a9),_0x14951f;}({}),PrintAlign=function(_0x142252){const _0x75e8c9=_0x1c8c;return _0x142252[_0x75e8c9(0x1a3)]='Start',_0x142252[_0x75e8c9(0x1bc)]='End',_0x142252[_0x75e8c9(0x1a5)]=_0x75e8c9(0x1a5),_0x142252;}({}),PrintPaperMargin=function(_0x2ba75e){const _0x4112d3=_0x1c8c;return _0x2ba75e[_0x4112d3(0x1b1)]=_0x4112d3(0x1b1),_0x2ba75e['Narrow']=_0x4112d3(0x1c5),_0x2ba75e[_0x4112d3(0x1a8)]=_0x4112d3(0x1a8),_0x2ba75e[_0x4112d3(0x1b9)]=_0x4112d3(0x1b9),_0x2ba75e[_0x4112d3(0x1a9)]=_0x4112d3(0x1a9),_0x2ba75e;}({});const PaperMarginMap={[PrintPaperMargin[_0x8a449f(0x1b1)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[PrintPaperMargin['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[PrintPaperMargin[_0x8a449f(0x1a8)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[PrintPaperMargin['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[PrintPaperMargin[_0x8a449f(0x1a9)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},PRINT_CONTAINER_CLASS=_0x8a449f(0x1c0),PRINT_CANVAS_CLASS=_0x8a449f(0x1bb);function createPrintStyle(_0x5c8ca5,_0x21605f,_0x23e8ca){const _0x2242e7=_0x8a449f,_0x355a70=_0x23e8ca===PrintDirection[_0x2242e7(0x1b2)]?_0x5c8ca5:_0x21605f,_0x410f5e=_0x23e8ca===PrintDirection[_0x2242e7(0x1b2)]?_0x21605f:_0x5c8ca5,_0x5315b9=_0x2242e7(0x1b6)+PRINT_CANVAS_CLASS+_0x2242e7(0x1b4)+_0x355a70+_0x2242e7(0x1b0)+_0x410f5e+_0x2242e7(0x1be)+PRINT_CONTAINER_CLASS+_0x2242e7(0x1b3)+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+'\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'+_0x410f5e+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x355a70+'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}',_0x376a57=document[_0x2242e7(0x1c3)](_0x2242e7(0x1bf));return _0x376a57[_0x2242e7(0x1c1)]=_0x5315b9,_0x376a57['className']=_0x2242e7(0x1af),_0x376a57;}export{PRINT_CANVAS_CLASS,PRINT_CONTAINER_CLASS,PaperMarginMap,PrintAlign,PrintDirection,PrintPaperMargin,PrintScale,createPrintStyle};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x57b1(_0x258854,_0x5bad84){_0x258854=_0x258854-0x6c;const _0x301725=_0x3017();let _0x57b129=_0x301725[_0x258854];return _0x57b129;}(function(_0x368fad,_0x1a1b74){const _0x496705=_0x57b1,_0x3e16bb=_0x368fad();while(!![]){try{const _0x2a85d7=parseInt(_0x496705(0x82))/0x1+parseInt(_0x496705(0x97))/0x2*(parseInt(_0x496705(0x7c))/0x3)+-parseInt(_0x496705(0x6d))/0x4*(-parseInt(_0x496705(0x81))/0x5)+-parseInt(_0x496705(0x8e))/0x6+-parseInt(_0x496705(0x86))/0x7*(-parseInt(_0x496705(0x96))/0x8)+-parseInt(_0x496705(0x85))/0x9+-parseInt(_0x496705(0x8b))/0xa;if(_0x2a85d7===_0x1a1b74)break;else _0x3e16bb['push'](_0x3e16bb['shift']());}catch(_0x1540d8){_0x3e16bb['push'](_0x3e16bb['shift']());}}}(_0x3017,0xe995e),function(_0x3f8a33,_0x7d0c31){const _0x2772c1=_0x57b1;typeof exports=='object'&&typeof module<'u'?_0x7d0c31(exports):typeof define==_0x2772c1(0x83)&&define[_0x2772c1(0x73)]?define([_0x2772c1(0x89)],_0x7d0c31):(_0x3f8a33=typeof globalThis<'u'?globalThis:_0x3f8a33||self,_0x7d0c31(_0x3f8a33['UniverProPrint']={}));}(this,function(_0x20ca09){const _0x484e91=_0x57b1;Object[_0x484e91(0x72)](_0x20ca09,Symbol[_0x484e91(0x88)],{'value':'Module'});let _0x229f89=function(_0x3a9776){const _0x57a833=_0x484e91;return _0x3a9776[_0x57a833(0x92)]=_0x57a833(0x92),_0x3a9776[_0x57a833(0x7d)]=_0x57a833(0x7d),_0x3a9776;}({}),_0x3ae449=function(_0x48281b){const _0x24731e=_0x484e91;return _0x48281b[_0x24731e(0x6c)]=_0x24731e(0x6c),_0x48281b[_0x24731e(0x91)]=_0x24731e(0x91),_0x48281b['FitHeight']='FitHeight',_0x48281b[_0x24731e(0x70)]=_0x24731e(0x70),_0x48281b[_0x24731e(0x6e)]=_0x24731e(0x6e),_0x48281b;}({}),_0x1ce7eb=function(_0x5e08a1){const _0x37d02d=_0x484e91;return _0x5e08a1[_0x37d02d(0x8c)]=_0x37d02d(0x8c),_0x5e08a1[_0x37d02d(0x74)]=_0x37d02d(0x74),_0x5e08a1['Middle']=_0x37d02d(0x87),_0x5e08a1;}({}),_0x21bffd=function(_0x543b77){const _0x559ef0=_0x484e91;return _0x543b77['Normal']=_0x559ef0(0x76),_0x543b77[_0x559ef0(0x94)]='Narrow',_0x543b77[_0x559ef0(0x7f)]='Wide',_0x543b77[_0x559ef0(0x93)]=_0x559ef0(0x93),_0x543b77[_0x559ef0(0x6e)]=_0x559ef0(0x6e),_0x543b77;}({}),_0x428349={[_0x21bffd['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x21bffd[_0x484e91(0x94)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x21bffd[_0x484e91(0x7f)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x21bffd[_0x484e91(0x93)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x21bffd[_0x484e91(0x6e)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x2c4979=_0x484e91(0x84),_0x20a648=_0x484e91(0x95);function _0xbbf32f(_0x21c051,_0x2773a2,_0x16e487){const _0x545777=_0x484e91;let _0x39002b=_0x16e487===_0x229f89[_0x545777(0x92)]?_0x21c051:_0x2773a2,_0x5a82c0=_0x16e487===_0x229f89[_0x545777(0x92)]?_0x2773a2:_0x21c051,_0x1da204=_0x545777(0x80)+_0x20a648+'\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'+_0x39002b+_0x545777(0x7b)+_0x5a82c0+_0x545777(0x8f)+_0x2c4979+_0x545777(0x9a)+_0x2c4979+_0x545777(0x99)+_0x20a648+_0x545777(0x75)+_0x5a82c0+_0x545777(0x98)+_0x39002b+'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}',_0x37cbe2=document[_0x545777(0x90)](_0x545777(0x7e));return _0x37cbe2['innerHTML']=_0x1da204,_0x37cbe2[_0x545777(0x7a)]=_0x545777(0x8a),_0x37cbe2;}_0x20ca09[_0x484e91(0x71)]=_0x20a648,_0x20ca09[_0x484e91(0x79)]=_0x2c4979,_0x20ca09[_0x484e91(0x8d)]=_0x428349,_0x20ca09[_0x484e91(0x6f)]=_0x1ce7eb,_0x20ca09[_0x484e91(0x78)]=_0x229f89,_0x20ca09[_0x484e91(0x9b)]=_0x21bffd,_0x20ca09[_0x484e91(0x77)]=_0x3ae449,_0x20ca09['createPrintStyle']=_0xbbf32f;}));function _0x3017(){const _0x31374a=['PrintAlign','FitPage','PRINT_CANVAS_CLASS','defineProperty','amd','End','\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','PrintScale','PrintDirection','PRINT_CONTAINER_CLASS','className','px\x20','3dvkrLS','Landscape','style','Wide','\x0a\x20\x20\x20\x20.','5827790payTQb','1329735nJgUKq','function','printing-canvas-container','6070896PRBATQ','10354897oTxvJY','Middle','toStringTag','exports','offline-printing-css','19854650bopdhX','Start','PaperMarginMap','10124232GXwtYI','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.','createElement','FitWidth','Portrait','None','Narrow','printing-canvas','8NjyBgF','2659166ytSRbp','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\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.',',\x20.','PrintPaperMargin','Origin','4XqNDgD','Custom'];_0x3017=function(){return _0x31374a;};return _0x3017();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"typescript": "^6.0.
|
|
46
|
-
"vitest": "^4.1.
|
|
47
|
-
"@univerjs-infra/shared": "0.
|
|
45
|
+
"typescript": "^6.0.3",
|
|
46
|
+
"vitest": "^4.1.4",
|
|
47
|
+
"@univerjs-infra/shared": "0.21.0"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"test": "vitest run",
|