@univerjs-pro/print 0.20.1 → 0.21.0-insiders.20260422-d7fcb4d
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 _0x21cf85=_0x2420;(function(_0x3f38d2,_0x19d5af){const _0x5cff2c=_0x2420,_0x590284=_0x3f38d2();while(!![]){try{const _0x2bbd5b=parseInt(_0x5cff2c(0x1a7))/0x1+-parseInt(_0x5cff2c(0x19e))/0x2*(parseInt(_0x5cff2c(0x1ab))/0x3)+-parseInt(_0x5cff2c(0x19b))/0x4*(-parseInt(_0x5cff2c(0x1b8))/0x5)+parseInt(_0x5cff2c(0x1b3))/0x6*(-parseInt(_0x5cff2c(0x198))/0x7)+-parseInt(_0x5cff2c(0x1b4))/0x8*(-parseInt(_0x5cff2c(0x1b6))/0x9)+-parseInt(_0x5cff2c(0x1ba))/0xa+parseInt(_0x5cff2c(0x1a4))/0xb;if(_0x2bbd5b===_0x19d5af)break;else _0x590284['push'](_0x590284['shift']());}catch(_0x5e7ef5){_0x590284['push'](_0x590284['shift']());}}}(_0x1109,0xa0448),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x21cf85(0x1ae)}));function _0x2420(_0x55021d,_0x2e36e0){_0x55021d=_0x55021d-0x193;const _0x11099e=_0x1109();let _0x242034=_0x11099e[_0x55021d];return _0x242034;}let PrintDirection=function(_0x409041){return _0x409041['Portrait']='Portrait',_0x409041['Landscape']='Landscape',_0x409041;}({}),PrintScale=function(_0x11cd78){const _0x453ff8=_0x21cf85;return _0x11cd78[_0x453ff8(0x196)]='Origin',_0x11cd78[_0x453ff8(0x1bb)]=_0x453ff8(0x1bb),_0x11cd78[_0x453ff8(0x1b7)]=_0x453ff8(0x1b7),_0x11cd78['FitPage']='FitPage',_0x11cd78[_0x453ff8(0x1a5)]=_0x453ff8(0x1a5),_0x11cd78;}({}),PrintAlign=function(_0x2339be){const _0x5cd4b8=_0x21cf85;return _0x2339be[_0x5cd4b8(0x1a6)]='Start',_0x2339be[_0x5cd4b8(0x1a2)]=_0x5cd4b8(0x1a2),_0x2339be[_0x5cd4b8(0x1b9)]=_0x5cd4b8(0x1b9),_0x2339be;}({}),PrintPaperMargin=function(_0x516dd5){const _0x5be145=_0x21cf85;return _0x516dd5[_0x5be145(0x1a8)]=_0x5be145(0x1a8),_0x516dd5['Narrow']=_0x5be145(0x1aa),_0x516dd5['Wide']='Wide',_0x516dd5[_0x5be145(0x1b5)]=_0x5be145(0x1b5),_0x516dd5[_0x5be145(0x1a5)]=_0x5be145(0x1a5),_0x516dd5;}({});const PaperMarginMap={[PrintPaperMargin[_0x21cf85(0x1a8)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[PrintPaperMargin[_0x21cf85(0x1aa)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[PrintPaperMargin[_0x21cf85(0x193)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[PrintPaperMargin[_0x21cf85(0x1b5)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[PrintPaperMargin['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},PRINT_CONTAINER_CLASS=_0x21cf85(0x194),PRINT_CANVAS_CLASS=_0x21cf85(0x19a);function createPrintStyle(_0x175b38,_0x21ea55,_0x2bac81){const _0x21112b=_0x21cf85,_0x4887cf=_0x2bac81===PrintDirection[_0x21112b(0x19c)]?_0x175b38:_0x21ea55,_0x2a3d89=_0x2bac81===PrintDirection[_0x21112b(0x19c)]?_0x21ea55:_0x175b38,_0x49696e='\x0a\x20\x20\x20\x20.'+PRINT_CANVAS_CLASS+_0x21112b(0x1a3)+_0x4887cf+_0x21112b(0x1ac)+_0x2a3d89+_0x21112b(0x1a0)+PRINT_CONTAINER_CLASS+_0x21112b(0x1b1)+PRINT_CONTAINER_CLASS+_0x21112b(0x19f)+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'+_0x2a3d89+_0x21112b(0x1b2)+_0x4887cf+'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}',_0x53023a=document['createElement'](_0x21112b(0x1b0));return _0x53023a[_0x21112b(0x1af)]=_0x49696e,_0x53023a[_0x21112b(0x1ad)]=_0x21112b(0x195),_0x53023a;}exports['PRINT_CANVAS_CLASS']=PRINT_CANVAS_CLASS,exports[_0x21cf85(0x197)]=PRINT_CONTAINER_CLASS,exports[_0x21cf85(0x199)]=PaperMarginMap,exports['PrintAlign']=PrintAlign,exports[_0x21cf85(0x1a9)]=PrintDirection,exports[_0x21cf85(0x19d)]=PrintPaperMargin,exports['PrintScale']=PrintScale,exports[_0x21cf85(0x1a1)]=createPrintStyle;function _0x1109(){const _0x3ea1a5=['Origin','PRINT_CONTAINER_CLASS','7075628MYjyDY','PaperMarginMap','printing-canvas','4MLOlug','Portrait','PrintPaperMargin','24202qSdLev','\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.','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','createPrintStyle','End','\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','15297084XaToKM','Custom','Start','607767OSTlwc','Normal','PrintDirection','Narrow','294HeRKIH','px\x20','className','Module','innerHTML','style',',\x20.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','6OxzaqO','744tWBgFI','None','114687ANSsQo','FitHeight','2583085aOVyaf','Middle','8469690kDPFyo','FitWidth','Wide','printing-canvas-container','offline-printing-css'];_0x1109=function(){return _0x3ea1a5;};return _0x1109();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x4d3844=_0x43df;(function(_0x52a237,_0x23ace2){const _0x141bcc=_0x43df,_0x351600=_0x52a237();while(!![]){try{const _0xd36ab6=-parseInt(_0x141bcc(0x1b6))/0x1+-parseInt(_0x141bcc(0x1c8))/0x2+parseInt(_0x141bcc(0x1c5))/0x3+parseInt(_0x141bcc(0x1ac))/0x4*(parseInt(_0x141bcc(0x1ba))/0x5)+parseInt(_0x141bcc(0x1bb))/0x6+parseInt(_0x141bcc(0x1c6))/0x7*(-parseInt(_0x141bcc(0x1ae))/0x8)+parseInt(_0x141bcc(0x1a9))/0x9*(-parseInt(_0x141bcc(0x1bf))/0xa);if(_0xd36ab6===_0x23ace2)break;else _0x351600['push'](_0x351600['shift']());}catch(_0x346679){_0x351600['push'](_0x351600['shift']());}}}(_0x5a02,0x27283));let PrintDirection=function(_0x5ad380){const _0xe6f9b5=_0x43df;return _0x5ad380['Portrait']=_0xe6f9b5(0x1af),_0x5ad380[_0xe6f9b5(0x1b2)]=_0xe6f9b5(0x1b2),_0x5ad380;}({}),PrintScale=function(_0x5a0b06){const _0x21670c=_0x43df;return _0x5a0b06['Origin']=_0x21670c(0x1b3),_0x5a0b06['FitWidth']='FitWidth',_0x5a0b06[_0x21670c(0x1c7)]='FitHeight',_0x5a0b06[_0x21670c(0x1b9)]=_0x21670c(0x1b9),_0x5a0b06[_0x21670c(0x1b0)]=_0x21670c(0x1b0),_0x5a0b06;}({}),PrintAlign=function(_0x543220){const _0x34534c=_0x43df;return _0x543220[_0x34534c(0x1b1)]=_0x34534c(0x1b1),_0x543220[_0x34534c(0x1c2)]=_0x34534c(0x1c2),_0x543220[_0x34534c(0x1c4)]=_0x34534c(0x1c4),_0x543220;}({}),PrintPaperMargin=function(_0x4e05ce){const _0x42ee3b=_0x43df;return _0x4e05ce[_0x42ee3b(0x1b5)]='Normal',_0x4e05ce[_0x42ee3b(0x1ad)]=_0x42ee3b(0x1ad),_0x4e05ce[_0x42ee3b(0x1b7)]=_0x42ee3b(0x1b7),_0x4e05ce[_0x42ee3b(0x1c0)]=_0x42ee3b(0x1c0),_0x4e05ce[_0x42ee3b(0x1b0)]=_0x42ee3b(0x1b0),_0x4e05ce;}({});function _0x43df(_0x4f6e24,_0x54f44d){_0x4f6e24=_0x4f6e24-0x1a8;const _0x5a0262=_0x5a02();let _0x43df03=_0x5a0262[_0x4f6e24];return _0x43df03;}const PaperMarginMap={[PrintPaperMargin[_0x4d3844(0x1b5)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[PrintPaperMargin[_0x4d3844(0x1ad)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[PrintPaperMargin[_0x4d3844(0x1b7)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[PrintPaperMargin['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[PrintPaperMargin[_0x4d3844(0x1b0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},PRINT_CONTAINER_CLASS='printing-canvas-container',PRINT_CANVAS_CLASS=_0x4d3844(0x1ab);function createPrintStyle(_0x2db7a1,_0x2d5cdf,_0x9967c){const _0x581b6e=_0x4d3844,_0xd2074=_0x9967c===PrintDirection['Portrait']?_0x2db7a1:_0x2d5cdf,_0x40eae2=_0x9967c===PrintDirection[_0x581b6e(0x1af)]?_0x2d5cdf:_0x2db7a1,_0x47572c=_0x581b6e(0x1aa)+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'+_0xd2074+_0x581b6e(0x1b8)+_0x40eae2+'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.'+PRINT_CONTAINER_CLASS+_0x581b6e(0x1b4)+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+_0x581b6e(0x1be)+_0x40eae2+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0xd2074+_0x581b6e(0x1bd),_0x27a089=document[_0x581b6e(0x1a8)](_0x581b6e(0x1bc));return _0x27a089['innerHTML']=_0x47572c,_0x27a089[_0x581b6e(0x1c3)]=_0x581b6e(0x1c1),_0x27a089;}function _0x5a02(){const _0x1c235f=['style','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','\x20{\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','802190aeUEAR','None','offline-printing-css','End','className','Middle','538512VWQOgd','259RxXfbB','FitHeight','106794nZFnUc','createElement','9ewTtAP','\x0a\x20\x20\x20\x20.','printing-canvas','4fWnYOk','Narrow','51928ZoPwEi','Portrait','Custom','Start','Landscape','Origin',',\x20.','Normal','83228ghSJwA','Wide','px\x20','FitPage','1315695OOmzMb','1048530hYZIDy'];_0x5a02=function(){return _0x1c235f;};return _0x5a02();}export{PRINT_CANVAS_CLASS,PRINT_CONTAINER_CLASS,PaperMarginMap,PrintAlign,PrintDirection,PrintPaperMargin,PrintScale,createPrintStyle};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x4d3844=_0x43df;(function(_0x52a237,_0x23ace2){const _0x141bcc=_0x43df,_0x351600=_0x52a237();while(!![]){try{const _0xd36ab6=-parseInt(_0x141bcc(0x1b6))/0x1+-parseInt(_0x141bcc(0x1c8))/0x2+parseInt(_0x141bcc(0x1c5))/0x3+parseInt(_0x141bcc(0x1ac))/0x4*(parseInt(_0x141bcc(0x1ba))/0x5)+parseInt(_0x141bcc(0x1bb))/0x6+parseInt(_0x141bcc(0x1c6))/0x7*(-parseInt(_0x141bcc(0x1ae))/0x8)+parseInt(_0x141bcc(0x1a9))/0x9*(-parseInt(_0x141bcc(0x1bf))/0xa);if(_0xd36ab6===_0x23ace2)break;else _0x351600['push'](_0x351600['shift']());}catch(_0x346679){_0x351600['push'](_0x351600['shift']());}}}(_0x5a02,0x27283));let PrintDirection=function(_0x5ad380){const _0xe6f9b5=_0x43df;return _0x5ad380['Portrait']=_0xe6f9b5(0x1af),_0x5ad380[_0xe6f9b5(0x1b2)]=_0xe6f9b5(0x1b2),_0x5ad380;}({}),PrintScale=function(_0x5a0b06){const _0x21670c=_0x43df;return _0x5a0b06['Origin']=_0x21670c(0x1b3),_0x5a0b06['FitWidth']='FitWidth',_0x5a0b06[_0x21670c(0x1c7)]='FitHeight',_0x5a0b06[_0x21670c(0x1b9)]=_0x21670c(0x1b9),_0x5a0b06[_0x21670c(0x1b0)]=_0x21670c(0x1b0),_0x5a0b06;}({}),PrintAlign=function(_0x543220){const _0x34534c=_0x43df;return _0x543220[_0x34534c(0x1b1)]=_0x34534c(0x1b1),_0x543220[_0x34534c(0x1c2)]=_0x34534c(0x1c2),_0x543220[_0x34534c(0x1c4)]=_0x34534c(0x1c4),_0x543220;}({}),PrintPaperMargin=function(_0x4e05ce){const _0x42ee3b=_0x43df;return _0x4e05ce[_0x42ee3b(0x1b5)]='Normal',_0x4e05ce[_0x42ee3b(0x1ad)]=_0x42ee3b(0x1ad),_0x4e05ce[_0x42ee3b(0x1b7)]=_0x42ee3b(0x1b7),_0x4e05ce[_0x42ee3b(0x1c0)]=_0x42ee3b(0x1c0),_0x4e05ce[_0x42ee3b(0x1b0)]=_0x42ee3b(0x1b0),_0x4e05ce;}({});function _0x43df(_0x4f6e24,_0x54f44d){_0x4f6e24=_0x4f6e24-0x1a8;const _0x5a0262=_0x5a02();let _0x43df03=_0x5a0262[_0x4f6e24];return _0x43df03;}const PaperMarginMap={[PrintPaperMargin[_0x4d3844(0x1b5)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[PrintPaperMargin[_0x4d3844(0x1ad)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[PrintPaperMargin[_0x4d3844(0x1b7)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[PrintPaperMargin['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[PrintPaperMargin[_0x4d3844(0x1b0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},PRINT_CONTAINER_CLASS='printing-canvas-container',PRINT_CANVAS_CLASS=_0x4d3844(0x1ab);function createPrintStyle(_0x2db7a1,_0x2d5cdf,_0x9967c){const _0x581b6e=_0x4d3844,_0xd2074=_0x9967c===PrintDirection['Portrait']?_0x2db7a1:_0x2d5cdf,_0x40eae2=_0x9967c===PrintDirection[_0x581b6e(0x1af)]?_0x2d5cdf:_0x2db7a1,_0x47572c=_0x581b6e(0x1aa)+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'+_0xd2074+_0x581b6e(0x1b8)+_0x40eae2+'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.'+PRINT_CONTAINER_CLASS+_0x581b6e(0x1b4)+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+_0x581b6e(0x1be)+_0x40eae2+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0xd2074+_0x581b6e(0x1bd),_0x27a089=document[_0x581b6e(0x1a8)](_0x581b6e(0x1bc));return _0x27a089['innerHTML']=_0x47572c,_0x27a089[_0x581b6e(0x1c3)]=_0x581b6e(0x1c1),_0x27a089;}function _0x5a02(){const _0x1c235f=['style','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','\x20{\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','802190aeUEAR','None','offline-printing-css','End','className','Middle','538512VWQOgd','259RxXfbB','FitHeight','106794nZFnUc','createElement','9ewTtAP','\x0a\x20\x20\x20\x20.','printing-canvas','4fWnYOk','Narrow','51928ZoPwEi','Portrait','Custom','Start','Landscape','Origin',',\x20.','Normal','83228ghSJwA','Wide','px\x20','FitPage','1315695OOmzMb','1048530hYZIDy'];_0x5a02=function(){return _0x1c235f;};return _0x5a02();}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 _0x3a95(_0x51df8a,_0x412e76){_0x51df8a=_0x51df8a-0x19e;const _0x38e21d=_0x38e2();let _0x3a9574=_0x38e21d[_0x51df8a];return _0x3a9574;}function _0x38e2(){const _0x37f551=['Portrait','object','PaperMarginMap','FitWidth','Start','5237885MTHdpo','487287qQIyfa','Landscape','50940padfyS','701512zThJkH','3435058tHhOWl','End','Custom','PRINT_CONTAINER_CLASS','Normal',',\x20.','None','PrintScale','PrintAlign','\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','Wide','printing-canvas-container','7iDrnjm','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','4fuEwqB','PrintDirection','Origin','\x0a\x20\x20\x20\x20.','189zbMxBk','exports','FitPage','Narrow','function','40ZHhHFE','defineProperty','className','createElement','printing-canvas','toStringTag','6000954ASnVPR','249810WvfnXf','px\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','PRINT_CANVAS_CLASS','Module','offline-printing-css','FitHeight','amd'];_0x38e2=function(){return _0x37f551;};return _0x38e2();}(function(_0x577d64,_0x34cbf8){const _0x43a745=_0x3a95,_0x7b7d2c=_0x577d64();while(!![]){try{const _0x2d8923=parseInt(_0x43a745(0x1ba))/0x1*(parseInt(_0x43a745(0x1ca))/0x2)+-parseInt(_0x43a745(0x1be))/0x3*(-parseInt(_0x43a745(0x1aa))/0x4)+-parseInt(_0x43a745(0x1a7))/0x5+-parseInt(_0x43a745(0x1c9))/0x6+parseInt(_0x43a745(0x1b8))/0x7*(parseInt(_0x43a745(0x1ab))/0x8)+parseInt(_0x43a745(0x1a8))/0x9+parseInt(_0x43a745(0x1c3))/0xa*(parseInt(_0x43a745(0x1ac))/0xb);if(_0x2d8923===_0x34cbf8)break;else _0x7b7d2c['push'](_0x7b7d2c['shift']());}catch(_0x3575f8){_0x7b7d2c['push'](_0x7b7d2c['shift']());}}}(_0x38e2,0x9d80d),function(_0x57411a,_0xabe1ba){const _0x2c60de=_0x3a95;typeof exports==_0x2c60de(0x1a3)&&typeof module<'u'?_0xabe1ba(exports):typeof define==_0x2c60de(0x1c2)&&define[_0x2c60de(0x1a1)]?define([_0x2c60de(0x1bf)],_0xabe1ba):(_0x57411a=typeof globalThis<'u'?globalThis:_0x57411a||self,_0xabe1ba(_0x57411a['UniverProPrint']={}));}(this,function(_0x3176c8){const _0x53bdb1=_0x3a95;Object[_0x53bdb1(0x1c4)](_0x3176c8,Symbol[_0x53bdb1(0x1c8)],{'value':_0x53bdb1(0x19e)});let _0x44658a=function(_0x4fa887){const _0x37f6d7=_0x53bdb1;return _0x4fa887[_0x37f6d7(0x1a2)]='Portrait',_0x4fa887[_0x37f6d7(0x1a9)]=_0x37f6d7(0x1a9),_0x4fa887;}({}),_0x9998a6=function(_0x2613ef){const _0x3baad6=_0x53bdb1;return _0x2613ef[_0x3baad6(0x1bc)]=_0x3baad6(0x1bc),_0x2613ef[_0x3baad6(0x1a5)]=_0x3baad6(0x1a5),_0x2613ef[_0x3baad6(0x1a0)]=_0x3baad6(0x1a0),_0x2613ef[_0x3baad6(0x1c0)]=_0x3baad6(0x1c0),_0x2613ef[_0x3baad6(0x1ae)]=_0x3baad6(0x1ae),_0x2613ef;}({}),_0x44e752=function(_0x401e94){const _0x295db2=_0x53bdb1;return _0x401e94[_0x295db2(0x1a6)]=_0x295db2(0x1a6),_0x401e94[_0x295db2(0x1ad)]=_0x295db2(0x1ad),_0x401e94['Middle']='Middle',_0x401e94;}({}),_0x3c3c04=function(_0x12a8a8){const _0x9d13ea=_0x53bdb1;return _0x12a8a8[_0x9d13ea(0x1b0)]=_0x9d13ea(0x1b0),_0x12a8a8[_0x9d13ea(0x1c1)]='Narrow',_0x12a8a8['Wide']='Wide',_0x12a8a8[_0x9d13ea(0x1b2)]='None',_0x12a8a8[_0x9d13ea(0x1ae)]='Custom',_0x12a8a8;}({}),_0x51291a={[_0x3c3c04[_0x53bdb1(0x1b0)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x3c3c04[_0x53bdb1(0x1c1)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x3c3c04[_0x53bdb1(0x1b6)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x3c3c04[_0x53bdb1(0x1b2)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x3c3c04[_0x53bdb1(0x1ae)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x75a122=_0x53bdb1(0x1b7),_0x447876=_0x53bdb1(0x1c7);function _0x5c632e(_0x15036f,_0x442d90,_0x318738){const _0x406c15=_0x53bdb1;let _0x3d2006=_0x318738===_0x44658a[_0x406c15(0x1a2)]?_0x15036f:_0x442d90,_0x24e32b=_0x318738===_0x44658a[_0x406c15(0x1a2)]?_0x442d90:_0x15036f,_0x29ac07=_0x406c15(0x1bd)+_0x447876+_0x406c15(0x1b5)+_0x3d2006+_0x406c15(0x1cb)+_0x24e32b+'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.'+_0x75a122+_0x406c15(0x1b1)+_0x75a122+'\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.'+_0x447876+_0x406c15(0x1cc)+_0x24e32b+_0x406c15(0x1b9)+_0x3d2006+'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}',_0x301d8b=document[_0x406c15(0x1c6)]('style');return _0x301d8b['innerHTML']=_0x29ac07,_0x301d8b[_0x406c15(0x1c5)]=_0x406c15(0x19f),_0x301d8b;}_0x3176c8[_0x53bdb1(0x1cd)]=_0x447876,_0x3176c8[_0x53bdb1(0x1af)]=_0x75a122,_0x3176c8[_0x53bdb1(0x1a4)]=_0x51291a,_0x3176c8[_0x53bdb1(0x1b4)]=_0x44e752,_0x3176c8[_0x53bdb1(0x1bb)]=_0x44658a,_0x3176c8['PrintPaperMargin']=_0x3c3c04,_0x3176c8[_0x53bdb1(0x1b3)]=_0x9998a6,_0x3176c8['createPrintStyle']=_0x5c632e;}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0-insiders.20260422-d7fcb4d",
|
|
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",
|