@univerjs-pro/print 1.0.0-alpha.8 → 1.0.0-beta.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 _0x107fa5=_0x282e;function _0x282e(_0x257340,_0xec5a8e){_0x257340=_0x257340-0x1ad;const _0x13c628=_0x13c6();let _0x282e76=_0x13c628[_0x257340];return _0x282e76;}(function(_0x1937b4,_0x598620){const _0x59e48b=_0x282e,_0x218c1e=_0x1937b4();while(!![]){try{const _0x14626a=-parseInt(_0x59e48b(0x1ce))/0x1+parseInt(_0x59e48b(0x1ad))/0x2+parseInt(_0x59e48b(0x1c1))/0x3+-parseInt(_0x59e48b(0x1cf))/0x4*(parseInt(_0x59e48b(0x1ae))/0x5)+-parseInt(_0x59e48b(0x1bf))/0x6+-parseInt(_0x59e48b(0x1b9))/0x7+parseInt(_0x59e48b(0x1bc))/0x8;if(_0x14626a===_0x598620)break;else _0x218c1e['push'](_0x218c1e['shift']());}catch(_0x1985c5){_0x218c1e['push'](_0x218c1e['shift']());}}}(_0x13c6,0xaf05c),Object[_0x107fa5(0x1b2)](exports,Symbol[_0x107fa5(0x1bb)],{'value':_0x107fa5(0x1c5)}));let e=function(_0x2ccfdb){const _0x1de07e=_0x107fa5;return _0x2ccfdb[_0x1de07e(0x1ca)]='Portrait',_0x2ccfdb['Landscape']='Landscape',_0x2ccfdb;}({}),t=function(_0x4ae503){const _0x4692aa=_0x107fa5;return _0x4ae503[_0x4692aa(0x1b6)]=_0x4692aa(0x1b6),_0x4ae503[_0x4692aa(0x1cc)]='FitWidth',_0x4ae503['FitHeight']=_0x4692aa(0x1b1),_0x4ae503[_0x4692aa(0x1b7)]=_0x4692aa(0x1b7),_0x4ae503['Custom']=_0x4692aa(0x1c8),_0x4ae503;}({}),n=function(_0x1c0d51){const _0x2a75ac=_0x107fa5;return _0x1c0d51[_0x2a75ac(0x1be)]='Start',_0x1c0d51[_0x2a75ac(0x1b8)]=_0x2a75ac(0x1b8),_0x1c0d51[_0x2a75ac(0x1d1)]=_0x2a75ac(0x1d1),_0x1c0d51;}({}),r=function(_0x65cc25){const _0x4072c5=_0x107fa5;return _0x65cc25[_0x4072c5(0x1d2)]=_0x4072c5(0x1d2),_0x65cc25[_0x4072c5(0x1b3)]=_0x4072c5(0x1b3),_0x65cc25[_0x4072c5(0x1d0)]='Wide',_0x65cc25['None']=_0x4072c5(0x1c9),_0x65cc25[_0x4072c5(0x1c8)]=_0x4072c5(0x1c8),_0x65cc25;}({});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=_0x107fa5(0x1c4),o=_0x107fa5(0x1c7);function s(_0x2601a9,_0x491560,_0x4ad045){const _0x400134=_0x107fa5;let _0x147316=_0x4ad045==='Portrait'?_0x2601a9:_0x491560,_0x467b5f=_0x4ad045==='Portrait'?_0x491560:_0x2601a9,_0x44d058='\x0a\x20\x20\x20\x20.'+o+'\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'+_0x147316+_0x400134(0x1c3)+_0x467b5f+_0x400134(0x1c0)+a+',\x20.'+a+_0x400134(0x1ba)+o+'\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'+_0x467b5f+_0x400134(0x1b0)+_0x147316+_0x400134(0x1c2),_0x61c6ff=document['createElement']('style');return _0x61c6ff[_0x400134(0x1bd)]=_0x44d058,_0x61c6ff[_0x400134(0x1b4)]=_0x400134(0x1c6),_0x61c6ff;}function _0x13c6(){const _0x510ffa=['\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.','toStringTag','19272712RFvBPt','innerHTML','Start','2156304xTiYvA','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.','1697571QJMYRs','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}','px\x20','printing-canvas-container','Module','offline-printing-css','printing-canvas','Custom','None','Portrait','createPrintStyle','FitWidth','PRINT_CANVAS_CLASS','1300644NvbgoI','12fFosgn','Wide','Middle','Normal','PRINT_CONTAINER_CLASS','PaperMarginMap','2354880oIDYRw','1765745fRRtQf','PrintScale','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitHeight','defineProperty','Narrow','className','PrintDirection','Origin','FitPage','End','5012133Bpduuw'];_0x13c6=function(){return _0x510ffa;};return _0x13c6();}exports[_0x107fa5(0x1cd)]=o,exports[_0x107fa5(0x1d3)]=a,exports[_0x107fa5(0x1d4)]=i,exports['PrintAlign']=n,exports[_0x107fa5(0x1b5)]=e,exports['PrintPaperMargin']=r,exports[_0x107fa5(0x1af)]=t,exports[_0x107fa5(0x1cb)]=s;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x5dccaf=_0x1e9b;(function(_0x2ae594,_0x4b77dd){const _0x6807ba=_0x1e9b,_0x1d2e9e=_0x2ae594();while(!![]){try{const _0x21da69=-parseInt(_0x6807ba(0x1b6))/0x1+parseInt(_0x6807ba(0x1af))/0x2+parseInt(_0x6807ba(0x1a3))/0x3+-parseInt(_0x6807ba(0x197))/0x4*(-parseInt(_0x6807ba(0x1ad))/0x5)+-parseInt(_0x6807ba(0x1a0))/0x6+parseInt(_0x6807ba(0x1b3))/0x7*(-parseInt(_0x6807ba(0x1b1))/0x8)+parseInt(_0x6807ba(0x1a6))/0x9;if(_0x21da69===_0x4b77dd)break;else _0x1d2e9e['push'](_0x1d2e9e['shift']());}catch(_0x57648b){_0x1d2e9e['push'](_0x1d2e9e['shift']());}}}(_0x2298,0xd4dde));let e=function(_0x517147){const _0xfcf85a=_0x1e9b;return _0x517147[_0xfcf85a(0x1ae)]='Portrait',_0x517147['Landscape']=_0xfcf85a(0x1b5),_0x517147;}({}),t=function(_0x5bd73e){const _0x1cff6d=_0x1e9b;return _0x5bd73e[_0x1cff6d(0x1ab)]=_0x1cff6d(0x1ab),_0x5bd73e['FitWidth']='FitWidth',_0x5bd73e[_0x1cff6d(0x1ac)]='FitHeight',_0x5bd73e[_0x1cff6d(0x1a7)]=_0x1cff6d(0x1a7),_0x5bd73e[_0x1cff6d(0x1b4)]=_0x1cff6d(0x1b4),_0x5bd73e;}({}),n=function(_0x1ff061){const _0x1dd256=_0x1e9b;return _0x1ff061['Start']=_0x1dd256(0x1a9),_0x1ff061['End']=_0x1dd256(0x1a5),_0x1ff061[_0x1dd256(0x1a4)]='Middle',_0x1ff061;}({}),r=function(_0x55d253){const _0x4efea1=_0x1e9b;return _0x55d253[_0x4efea1(0x19c)]='Normal',_0x55d253[_0x4efea1(0x1b0)]=_0x4efea1(0x1b0),_0x55d253[_0x4efea1(0x19f)]=_0x4efea1(0x19f),_0x55d253[_0x4efea1(0x1b2)]='None',_0x55d253['Custom']=_0x4efea1(0x1b4),_0x55d253;}({});function _0x1e9b(_0x553ee5,_0x3f8c2b){_0x553ee5=_0x553ee5-0x197;const _0x229873=_0x2298();let _0x1e9bce=_0x229873[_0x553ee5];return _0x1e9bce;}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=_0x5dccaf(0x19b),o='printing-canvas';function s(_0x2b39c8,_0x55b506,_0xd1e04f){const _0x31d164=_0x5dccaf;let _0x5a0335=_0xd1e04f==='Portrait'?_0x2b39c8:_0x55b506,_0x54e60f=_0xd1e04f==='Portrait'?_0x55b506:_0x2b39c8,_0x44b5e3='\x0a\x20\x20\x20\x20.'+o+_0x31d164(0x1a8)+_0x5a0335+'px\x20'+_0x54e60f+_0x31d164(0x198)+a+_0x31d164(0x1aa)+a+_0x31d164(0x19d)+o+_0x31d164(0x199)+_0x54e60f+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5a0335+'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}',_0x246db4=document[_0x31d164(0x19e)](_0x31d164(0x1a1));return _0x246db4[_0x31d164(0x1a2)]=_0x44b5e3,_0x246db4['className']=_0x31d164(0x19a),_0x246db4;}function _0x2298(){const _0x2c14aa=['innerHTML','3122655uQceqP','Middle','End','5587632OPvXMS','FitPage','\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',',\x20.','Origin','FitHeight','20itCfuq','Portrait','998332hoioZI','Narrow','42544qnwVkR','None','7VMuDrP','Custom','Landscape','1276945mdUQYR','557948blwZty','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.','\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','offline-printing-css','printing-canvas-container','Normal','\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.','createElement','Wide','3388092ZivAuO','style'];_0x2298=function(){return _0x2c14aa;};return _0x2298();}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
|
-
|
|
1
|
+
const _0x5dccaf=_0x1e9b;(function(_0x2ae594,_0x4b77dd){const _0x6807ba=_0x1e9b,_0x1d2e9e=_0x2ae594();while(!![]){try{const _0x21da69=-parseInt(_0x6807ba(0x1b6))/0x1+parseInt(_0x6807ba(0x1af))/0x2+parseInt(_0x6807ba(0x1a3))/0x3+-parseInt(_0x6807ba(0x197))/0x4*(-parseInt(_0x6807ba(0x1ad))/0x5)+-parseInt(_0x6807ba(0x1a0))/0x6+parseInt(_0x6807ba(0x1b3))/0x7*(-parseInt(_0x6807ba(0x1b1))/0x8)+parseInt(_0x6807ba(0x1a6))/0x9;if(_0x21da69===_0x4b77dd)break;else _0x1d2e9e['push'](_0x1d2e9e['shift']());}catch(_0x57648b){_0x1d2e9e['push'](_0x1d2e9e['shift']());}}}(_0x2298,0xd4dde));let e=function(_0x517147){const _0xfcf85a=_0x1e9b;return _0x517147[_0xfcf85a(0x1ae)]='Portrait',_0x517147['Landscape']=_0xfcf85a(0x1b5),_0x517147;}({}),t=function(_0x5bd73e){const _0x1cff6d=_0x1e9b;return _0x5bd73e[_0x1cff6d(0x1ab)]=_0x1cff6d(0x1ab),_0x5bd73e['FitWidth']='FitWidth',_0x5bd73e[_0x1cff6d(0x1ac)]='FitHeight',_0x5bd73e[_0x1cff6d(0x1a7)]=_0x1cff6d(0x1a7),_0x5bd73e[_0x1cff6d(0x1b4)]=_0x1cff6d(0x1b4),_0x5bd73e;}({}),n=function(_0x1ff061){const _0x1dd256=_0x1e9b;return _0x1ff061['Start']=_0x1dd256(0x1a9),_0x1ff061['End']=_0x1dd256(0x1a5),_0x1ff061[_0x1dd256(0x1a4)]='Middle',_0x1ff061;}({}),r=function(_0x55d253){const _0x4efea1=_0x1e9b;return _0x55d253[_0x4efea1(0x19c)]='Normal',_0x55d253[_0x4efea1(0x1b0)]=_0x4efea1(0x1b0),_0x55d253[_0x4efea1(0x19f)]=_0x4efea1(0x19f),_0x55d253[_0x4efea1(0x1b2)]='None',_0x55d253['Custom']=_0x4efea1(0x1b4),_0x55d253;}({});function _0x1e9b(_0x553ee5,_0x3f8c2b){_0x553ee5=_0x553ee5-0x197;const _0x229873=_0x2298();let _0x1e9bce=_0x229873[_0x553ee5];return _0x1e9bce;}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=_0x5dccaf(0x19b),o='printing-canvas';function s(_0x2b39c8,_0x55b506,_0xd1e04f){const _0x31d164=_0x5dccaf;let _0x5a0335=_0xd1e04f==='Portrait'?_0x2b39c8:_0x55b506,_0x54e60f=_0xd1e04f==='Portrait'?_0x55b506:_0x2b39c8,_0x44b5e3='\x0a\x20\x20\x20\x20.'+o+_0x31d164(0x1a8)+_0x5a0335+'px\x20'+_0x54e60f+_0x31d164(0x198)+a+_0x31d164(0x1aa)+a+_0x31d164(0x19d)+o+_0x31d164(0x199)+_0x54e60f+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5a0335+'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}',_0x246db4=document[_0x31d164(0x19e)](_0x31d164(0x1a1));return _0x246db4[_0x31d164(0x1a2)]=_0x44b5e3,_0x246db4['className']=_0x31d164(0x19a),_0x246db4;}function _0x2298(){const _0x2c14aa=['innerHTML','3122655uQceqP','Middle','End','5587632OPvXMS','FitPage','\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',',\x20.','Origin','FitHeight','20itCfuq','Portrait','998332hoioZI','Narrow','42544qnwVkR','None','7VMuDrP','Custom','Landscape','1276945mdUQYR','557948blwZty','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.','\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','offline-printing-css','printing-canvas-container','Normal','\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.','createElement','Wide','3388092ZivAuO','style'];_0x2298=function(){return _0x2c14aa;};return _0x2298();}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 _0x1207(_0x2150af,_0x2cc4d2){_0x2150af=_0x2150af-0x153;const _0x32f33f=_0x32f3();let _0x1207ec=_0x32f33f[_0x2150af];return _0x1207ec;}function _0x32f3(){const _0x340fd3=['1964854duTiOB','148998PnYoLu','Origin','createElement','Wide','524671weBZuJ','\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','Landscape','exports','PRINT_CANVAS_CLASS','1743435pfxuFP','PrintAlign','40FCpnWc','PrintPaperMargin','toStringTag','innerHTML','3750slFQLo','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}','createPrintStyle',',\x20.','FitPage','842838NshkeW','\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','Portrait','Normal','End','Module','Narrow','Start','8045PWUhLE','FitHeight','object','\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.','FitWidth','12489260wZaZIi','px\x20','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','None','PrintDirection','64SubZLj','Middle','UniverProPrint','function','className','Custom'];_0x32f3=function(){return _0x340fd3;};return _0x32f3();}(function(_0x31834d,_0x1bad84){const _0x2cdb7a=_0x1207,_0x23e9d3=_0x31834d();while(!![]){try{const _0x27105b=parseInt(_0x2cdb7a(0x15d))/0x1+parseInt(_0x2cdb7a(0x175))/0x2+-parseInt(_0x2cdb7a(0x176))/0x3*(-parseInt(_0x2cdb7a(0x16f))/0x4)+parseInt(_0x2cdb7a(0x165))/0x5*(-parseInt(_0x2cdb7a(0x158))/0x6)+parseInt(_0x2cdb7a(0x17a))/0x7*(parseInt(_0x2cdb7a(0x154))/0x8)+-parseInt(_0x2cdb7a(0x17f))/0x9+-parseInt(_0x2cdb7a(0x16a))/0xa;if(_0x27105b===_0x1bad84)break;else _0x23e9d3['push'](_0x23e9d3['shift']());}catch(_0x39da7c){_0x23e9d3['push'](_0x23e9d3['shift']());}}}(_0x32f3,0x85674),function(_0x291c26,_0x5f2dc9){const _0x2afae2=_0x1207;typeof exports==_0x2afae2(0x167)&&typeof module<'u'?_0x5f2dc9(exports):typeof define==_0x2afae2(0x172)&&define['amd']?define([_0x2afae2(0x17d)],_0x5f2dc9):(_0x291c26=typeof globalThis<'u'?globalThis:_0x291c26||self,_0x5f2dc9(_0x291c26[_0x2afae2(0x171)]={}));}(this,function(_0xbd91c8){const _0x17ffb4=_0x1207;Object['defineProperty'](_0xbd91c8,Symbol[_0x17ffb4(0x156)],{'value':_0x17ffb4(0x162)});let _0x46a6de=function(_0x3a62a6){const _0x4a225f=_0x17ffb4;return _0x3a62a6[_0x4a225f(0x15f)]=_0x4a225f(0x15f),_0x3a62a6[_0x4a225f(0x17c)]=_0x4a225f(0x17c),_0x3a62a6;}({}),_0xd7f93a=function(_0x43899b){const _0x15196c=_0x17ffb4;return _0x43899b[_0x15196c(0x177)]=_0x15196c(0x177),_0x43899b[_0x15196c(0x169)]=_0x15196c(0x169),_0x43899b[_0x15196c(0x166)]=_0x15196c(0x166),_0x43899b[_0x15196c(0x15c)]=_0x15196c(0x15c),_0x43899b['Custom']=_0x15196c(0x174),_0x43899b;}({}),_0x100d6a=function(_0x4842f4){const _0x4ee8fe=_0x17ffb4;return _0x4842f4[_0x4ee8fe(0x164)]=_0x4ee8fe(0x164),_0x4842f4[_0x4ee8fe(0x161)]='End',_0x4842f4[_0x4ee8fe(0x170)]=_0x4ee8fe(0x170),_0x4842f4;}({}),_0x182d8a=function(_0x5de7e4){const _0x514af1=_0x17ffb4;return _0x5de7e4['Normal']=_0x514af1(0x160),_0x5de7e4[_0x514af1(0x163)]='Narrow',_0x5de7e4[_0x514af1(0x179)]=_0x514af1(0x179),_0x5de7e4[_0x514af1(0x16d)]=_0x514af1(0x16d),_0x5de7e4[_0x514af1(0x174)]=_0x514af1(0x174),_0x5de7e4;}({}),_0xe51cf={'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}},_0x3aad76='printing-canvas-container',_0x34ab0d='printing-canvas';function _0x1228f4(_0x2a0e08,_0x1fd760,_0x202745){const _0x1c712b=_0x17ffb4;let _0xe5cebb=_0x202745===_0x1c712b(0x15f)?_0x2a0e08:_0x1fd760,_0x5d2122=_0x202745===_0x1c712b(0x15f)?_0x1fd760:_0x2a0e08,_0x240ddb='\x0a\x20\x20\x20\x20.'+_0x34ab0d+_0x1c712b(0x15e)+_0xe5cebb+_0x1c712b(0x16b)+_0x5d2122+_0x1c712b(0x16c)+_0x3aad76+_0x1c712b(0x15b)+_0x3aad76+_0x1c712b(0x168)+_0x34ab0d+_0x1c712b(0x17b)+_0x5d2122+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0xe5cebb+_0x1c712b(0x159),_0x1a0d1a=document[_0x1c712b(0x178)]('style');return _0x1a0d1a[_0x1c712b(0x157)]=_0x240ddb,_0x1a0d1a[_0x1c712b(0x173)]='offline-printing-css',_0x1a0d1a;}_0xbd91c8[_0x17ffb4(0x17e)]=_0x34ab0d,_0xbd91c8['PRINT_CONTAINER_CLASS']=_0x3aad76,_0xbd91c8['PaperMarginMap']=_0xe51cf,_0xbd91c8[_0x17ffb4(0x153)]=_0x100d6a,_0xbd91c8[_0x17ffb4(0x16e)]=_0x46a6de,_0xbd91c8[_0x17ffb4(0x155)]=_0x182d8a,_0xbd91c8['PrintScale']=_0xd7f93a,_0xbd91c8[_0x17ffb4(0x15a)]=_0x1228f4;}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-beta.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.10",
|
|
53
|
-
"@univerjs-infra/shared": "1.0.0-
|
|
53
|
+
"@univerjs-infra/shared": "1.0.0-beta.1"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "vitest run",
|