@univerjs-pro/print 0.15.4 → 0.15.5
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
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5f334c=_0x1115;(function(_0x15aad4,_0x560fea){const _0x6ba5ed=_0x1115,_0x472dcc=_0x15aad4();while(!![]){try{const _0x23ee5d=parseInt(_0x6ba5ed(0xe9))/0x1*(-parseInt(_0x6ba5ed(0xe7))/0x2)+parseInt(_0x6ba5ed(0xd9))/0x3+parseInt(_0x6ba5ed(0xf2))/0x4*(-parseInt(_0x6ba5ed(0xf0))/0x5)+-parseInt(_0x6ba5ed(0xdf))/0x6+-parseInt(_0x6ba5ed(0xd7))/0x7*(-parseInt(_0x6ba5ed(0xf7))/0x8)+parseInt(_0x6ba5ed(0xda))/0x9*(-parseInt(_0x6ba5ed(0xf3))/0xa)+parseInt(_0x6ba5ed(0xe4))/0xb;if(_0x23ee5d===_0x560fea)break;else _0x472dcc['push'](_0x472dcc['shift']());}catch(_0x564f95){_0x472dcc['push'](_0x472dcc['shift']());}}}(_0x3804,0xccaf8));function _0x1115(_0xc84c5d,_0xce2305){_0xc84c5d=_0xc84c5d-0xd2;const _0x38047b=_0x3804();let _0x111526=_0x38047b[_0xc84c5d];return _0x111526;}Object['defineProperty'](exports,Symbol[_0x5f334c(0xe1)],{'value':_0x5f334c(0xe2)});function _0x3804(){const _0x26f5f2=['Middle','createElement','FitWidth','664YoFFwB','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.','innerHTML',',\x20.','Landscape','printing-canvas','Portrait','PaperMarginMap','81011ECwxcZ','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','1683789UWnTDt','517689JKBxCV','None','offline-printing-css','Origin','PRINT_CONTAINER_CLASS','235932fyvSQo','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}','toStringTag','Module','FitHeight','27882701gcCFCc','Narrow','printing-canvas-container','9314FQHkoi','FitPage','245eyIdmi','Normal','\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','Custom','Wide','PrintDirection','End','15sYHHWc','\x0a\x20\x20\x20\x20.','1183352MZkxuE','200aughKP'];_0x3804=function(){return _0x26f5f2;};return _0x3804();}var i=(_0xfc0651=>(_0xfc0651['Portrait']='Portrait',_0xfc0651[_0x5f334c(0xd3)]=_0x5f334c(0xd3),_0xfc0651))(i||{}),l=(_0x4626e4=>(_0x4626e4[_0x5f334c(0xdd)]='Origin',_0x4626e4[_0x5f334c(0xf6)]='FitWidth',_0x4626e4[_0x5f334c(0xe3)]=_0x5f334c(0xe3),_0x4626e4[_0x5f334c(0xe8)]='FitPage',_0x4626e4[_0x5f334c(0xec)]=_0x5f334c(0xec),_0x4626e4))(l||{}),m=(_0x2c5be6=>(_0x2c5be6['Start']='Start',_0x2c5be6[_0x5f334c(0xef)]='End',_0x2c5be6[_0x5f334c(0xf4)]=_0x5f334c(0xf4),_0x2c5be6))(m||{}),o=(_0x1d8c18=>(_0x1d8c18['Normal']=_0x5f334c(0xea),_0x1d8c18[_0x5f334c(0xe5)]=_0x5f334c(0xe5),_0x1d8c18[_0x5f334c(0xed)]=_0x5f334c(0xed),_0x1d8c18[_0x5f334c(0xdb)]=_0x5f334c(0xdb),_0x1d8c18[_0x5f334c(0xec)]=_0x5f334c(0xec),_0x1d8c18))(o||{});const g={[o[_0x5f334c(0xea)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5f334c(0xe5)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x5f334c(0xec)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x5f334c(0xe6),n=_0x5f334c(0xd4);function h(_0xe57389,_0x2b23ed,_0x4de728){const _0x5ddfcc=_0x5f334c,_0x7d4d9c=_0x4de728===i[_0x5ddfcc(0xd5)]?_0xe57389:_0x2b23ed,_0x25e81e=_0x4de728===i[_0x5ddfcc(0xd5)]?_0x2b23ed:_0xe57389,_0x3ba7d9=_0x5ddfcc(0xf1)+n+'\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'+_0x7d4d9c+'px\x20'+_0x25e81e+_0x5ddfcc(0xf8)+r+_0x5ddfcc(0xd2)+r+'\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.'+n+_0x5ddfcc(0xeb)+_0x25e81e+_0x5ddfcc(0xd8)+_0x7d4d9c+_0x5ddfcc(0xe0),_0x2772d2=document[_0x5ddfcc(0xf5)]('style');return _0x2772d2[_0x5ddfcc(0xf9)]=_0x3ba7d9,_0x2772d2['className']=_0x5ddfcc(0xdc),_0x2772d2;}exports['PRINT_CANVAS_CLASS']=n,exports[_0x5f334c(0xde)]=r,exports[_0x5f334c(0xd6)]=g,exports['PrintAlign']=m,exports[_0x5f334c(0xee)]=i,exports['PrintPaperMargin']=o,exports['PrintScale']=l,exports['createPrintStyle']=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x205860=_0x3004;(function(_0x35de9a,_0x4fcd34){const _0x34c0b3=_0x3004,_0xf36bf6=_0x35de9a();while(!![]){try{const _0x96388f=-parseInt(_0x34c0b3(0x137))/0x1+-parseInt(_0x34c0b3(0x140))/0x2*(-parseInt(_0x34c0b3(0x130))/0x3)+-parseInt(_0x34c0b3(0x12b))/0x4*(parseInt(_0x34c0b3(0x138))/0x5)+-parseInt(_0x34c0b3(0x128))/0x6*(-parseInt(_0x34c0b3(0x12a))/0x7)+-parseInt(_0x34c0b3(0x13d))/0x8*(-parseInt(_0x34c0b3(0x13a))/0x9)+-parseInt(_0x34c0b3(0x12e))/0xa*(parseInt(_0x34c0b3(0x132))/0xb)+parseInt(_0x34c0b3(0x131))/0xc;if(_0x96388f===_0x4fcd34)break;else _0xf36bf6['push'](_0xf36bf6['shift']());}catch(_0x20dc83){_0xf36bf6['push'](_0xf36bf6['shift']());}}}(_0x1c41,0x35942));var e=(_0x296267=>(_0x296267[_0x205860(0x12f)]=_0x205860(0x12f),_0x296267[_0x205860(0x13e)]=_0x205860(0x13e),_0x296267))(e||{}),h=(_0x4156fd=>(_0x4156fd[_0x205860(0x144)]=_0x205860(0x144),_0x4156fd['FitWidth']=_0x205860(0x148),_0x4156fd[_0x205860(0x139)]=_0x205860(0x139),_0x4156fd[_0x205860(0x133)]=_0x205860(0x133),_0x4156fd['Custom']='Custom',_0x4156fd))(h||{}),l=(_0x973671=>(_0x973671['Start']=_0x205860(0x134),_0x973671[_0x205860(0x146)]=_0x205860(0x146),_0x973671[_0x205860(0x145)]=_0x205860(0x145),_0x973671))(l||{}),o=(_0x5e69f8=>(_0x5e69f8[_0x205860(0x12d)]='Normal',_0x5e69f8[_0x205860(0x13b)]=_0x205860(0x13b),_0x5e69f8[_0x205860(0x147)]=_0x205860(0x147),_0x5e69f8['None']=_0x205860(0x143),_0x5e69f8[_0x205860(0x135)]='Custom',_0x5e69f8))(o||{});const c={[o[_0x205860(0x12d)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x205860(0x147)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x205860(0x143)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x205860(0x135)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x205860(0x127),d=_0x205860(0x136);function g(_0x36714a,_0x214c98,_0x49726e){const _0x4b01cc=_0x205860,_0x3e7e54=_0x49726e===e[_0x4b01cc(0x12f)]?_0x36714a:_0x214c98,_0x502dbd=_0x49726e===e[_0x4b01cc(0x12f)]?_0x214c98:_0x36714a,_0x4b28a1=_0x4b01cc(0x141)+d+_0x4b01cc(0x142)+_0x3e7e54+_0x4b01cc(0x129)+_0x502dbd+'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.'+p+',\x20.'+p+_0x4b01cc(0x126)+d+'\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'+_0x502dbd+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x3e7e54+_0x4b01cc(0x13f),_0x537ffb=document[_0x4b01cc(0x12c)](_0x4b01cc(0x13c));return _0x537ffb['innerHTML']=_0x4b28a1,_0x537ffb['className']='offline-printing-css',_0x537ffb;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,l as PrintAlign,e as PrintDirection,o as PrintPaperMargin,h as PrintScale,g as createPrintStyle};function _0x3004(_0x3a2e49,_0x4f5abc){_0x3a2e49=_0x3a2e49-0x126;const _0x1c4143=_0x1c41();let _0x300450=_0x1c4143[_0x3a2e49];return _0x300450;}function _0x1c41(){const _0x1eb904=['Narrow','style','2072vQQuJE','Landscape','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}','10znhhCL','\x0a\x20\x20\x20\x20.','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','None','Origin','Middle','End','Wide','FitWidth','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','printing-canvas-container','6XeVrQH','px\x20','1665265erDGHR','24132TIVZoF','createElement','Normal','20pxNSnT','Portrait','17133UwuQhK','2826396HaXMgm','151767JnQKhR','FitPage','Start','Custom','printing-canvas','337026qIhzVB','205wsXwAk','FitHeight','11448ZQXSwS'];_0x1c41=function(){return _0x1eb904;};return _0x1c41();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x205860=_0x3004;(function(_0x35de9a,_0x4fcd34){const _0x34c0b3=_0x3004,_0xf36bf6=_0x35de9a();while(!![]){try{const _0x96388f=-parseInt(_0x34c0b3(0x137))/0x1+-parseInt(_0x34c0b3(0x140))/0x2*(-parseInt(_0x34c0b3(0x130))/0x3)+-parseInt(_0x34c0b3(0x12b))/0x4*(parseInt(_0x34c0b3(0x138))/0x5)+-parseInt(_0x34c0b3(0x128))/0x6*(-parseInt(_0x34c0b3(0x12a))/0x7)+-parseInt(_0x34c0b3(0x13d))/0x8*(-parseInt(_0x34c0b3(0x13a))/0x9)+-parseInt(_0x34c0b3(0x12e))/0xa*(parseInt(_0x34c0b3(0x132))/0xb)+parseInt(_0x34c0b3(0x131))/0xc;if(_0x96388f===_0x4fcd34)break;else _0xf36bf6['push'](_0xf36bf6['shift']());}catch(_0x20dc83){_0xf36bf6['push'](_0xf36bf6['shift']());}}}(_0x1c41,0x35942));var e=(_0x296267=>(_0x296267[_0x205860(0x12f)]=_0x205860(0x12f),_0x296267[_0x205860(0x13e)]=_0x205860(0x13e),_0x296267))(e||{}),h=(_0x4156fd=>(_0x4156fd[_0x205860(0x144)]=_0x205860(0x144),_0x4156fd['FitWidth']=_0x205860(0x148),_0x4156fd[_0x205860(0x139)]=_0x205860(0x139),_0x4156fd[_0x205860(0x133)]=_0x205860(0x133),_0x4156fd['Custom']='Custom',_0x4156fd))(h||{}),l=(_0x973671=>(_0x973671['Start']=_0x205860(0x134),_0x973671[_0x205860(0x146)]=_0x205860(0x146),_0x973671[_0x205860(0x145)]=_0x205860(0x145),_0x973671))(l||{}),o=(_0x5e69f8=>(_0x5e69f8[_0x205860(0x12d)]='Normal',_0x5e69f8[_0x205860(0x13b)]=_0x205860(0x13b),_0x5e69f8[_0x205860(0x147)]=_0x205860(0x147),_0x5e69f8['None']=_0x205860(0x143),_0x5e69f8[_0x205860(0x135)]='Custom',_0x5e69f8))(o||{});const c={[o[_0x205860(0x12d)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x205860(0x147)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x205860(0x143)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x205860(0x135)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x205860(0x127),d=_0x205860(0x136);function g(_0x36714a,_0x214c98,_0x49726e){const _0x4b01cc=_0x205860,_0x3e7e54=_0x49726e===e[_0x4b01cc(0x12f)]?_0x36714a:_0x214c98,_0x502dbd=_0x49726e===e[_0x4b01cc(0x12f)]?_0x214c98:_0x36714a,_0x4b28a1=_0x4b01cc(0x141)+d+_0x4b01cc(0x142)+_0x3e7e54+_0x4b01cc(0x129)+_0x502dbd+'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.'+p+',\x20.'+p+_0x4b01cc(0x126)+d+'\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'+_0x502dbd+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x3e7e54+_0x4b01cc(0x13f),_0x537ffb=document[_0x4b01cc(0x12c)](_0x4b01cc(0x13c));return _0x537ffb['innerHTML']=_0x4b28a1,_0x537ffb['className']='offline-printing-css',_0x537ffb;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,l as PrintAlign,e as PrintDirection,o as PrintPaperMargin,h as PrintScale,g as createPrintStyle};function _0x3004(_0x3a2e49,_0x4f5abc){_0x3a2e49=_0x3a2e49-0x126;const _0x1c4143=_0x1c41();let _0x300450=_0x1c4143[_0x3a2e49];return _0x300450;}function _0x1c41(){const _0x1eb904=['Narrow','style','2072vQQuJE','Landscape','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}','10znhhCL','\x0a\x20\x20\x20\x20.','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','None','Origin','Middle','End','Wide','FitWidth','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','printing-canvas-container','6XeVrQH','px\x20','1665265erDGHR','24132TIVZoF','createElement','Normal','20pxNSnT','Portrait','17133UwuQhK','2826396HaXMgm','151767JnQKhR','FitPage','Start','Custom','printing-canvas','337026qIhzVB','205wsXwAk','FitHeight','11448ZQXSwS'];_0x1c41=function(){return _0x1eb904;};return _0x1c41();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2638(_0x3056cd,_0x30eb2a){_0x3056cd=_0x3056cd-0x1dd;const _0x521d01=_0x521d();let _0x2638d9=_0x521d01[_0x3056cd];return _0x2638d9;}function _0x521d(){const _0x2306b0=['Landscape','function',',\x20.','Origin','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','49664hcjgWm','Custom','PRINT_CONTAINER_CLASS','amd','Normal','UniverProPrint','PrintPaperMargin','FitHeight','\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.','None','72xRUwRb','546141GbKjju','innerHTML','11ejCYSh','Portrait','477zAckPN','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Middle','exports','4766867aiDsRN','Start','object','printing-canvas','printing-canvas-container','toStringTag','2744924YcxqPB','PrintAlign','6ojeres','createPrintStyle','672588hNnbkz','5240570jKemFu','FitWidth','PrintScale','148615ifrUTn','defineProperty','FitPage','Wide','\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','PaperMarginMap','offline-printing-css','Narrow'];_0x521d=function(){return _0x2306b0;};return _0x521d();}(function(_0xcee91,_0x3dfb30){const _0x34fd6b=_0x2638,_0x3803c1=_0xcee91();while(!![]){try{const _0x5a018f=-parseInt(_0x34fd6b(0x1f5))/0x1+parseInt(_0x34fd6b(0x1f3))/0x2*(parseInt(_0x34fd6b(0x1e3))/0x3)+-parseInt(_0x34fd6b(0x1f1))/0x4+-parseInt(_0x34fd6b(0x1f9))/0x5*(-parseInt(_0x34fd6b(0x1e2))/0x6)+parseInt(_0x34fd6b(0x1eb))/0x7+parseInt(_0x34fd6b(0x207))/0x8*(-parseInt(_0x34fd6b(0x1e7))/0x9)+-parseInt(_0x34fd6b(0x1f6))/0xa*(-parseInt(_0x34fd6b(0x1e5))/0xb);if(_0x5a018f===_0x3dfb30)break;else _0x3803c1['push'](_0x3803c1['shift']());}catch(_0xb86f90){_0x3803c1['push'](_0x3803c1['shift']());}}}(_0x521d,0x668ac),function(_0x1b12b6,_0x52e6b7){const _0x3d5ebd=_0x2638;typeof exports==_0x3d5ebd(0x1ed)&&typeof module<'u'?_0x52e6b7(exports):typeof define==_0x3d5ebd(0x202)&&define[_0x3d5ebd(0x20a)]?define([_0x3d5ebd(0x1ea)],_0x52e6b7):(_0x1b12b6=typeof globalThis<'u'?globalThis:_0x1b12b6||self,_0x52e6b7(_0x1b12b6[_0x3d5ebd(0x1dd)]={}));}(this,function(_0x30f4f8){'use strict';const _0x55e963=_0x2638;var _0x15091c=(_0x4d8168=>(_0x4d8168[_0x55e963(0x1e6)]=_0x55e963(0x1e6),_0x4d8168[_0x55e963(0x201)]=_0x55e963(0x201),_0x4d8168))(_0x15091c||{}),_0x556c3c=(_0x3bff1d=>(_0x3bff1d[_0x55e963(0x204)]=_0x55e963(0x204),_0x3bff1d[_0x55e963(0x1f7)]=_0x55e963(0x1f7),_0x3bff1d[_0x55e963(0x1df)]=_0x55e963(0x1df),_0x3bff1d[_0x55e963(0x1fb)]=_0x55e963(0x1fb),_0x3bff1d[_0x55e963(0x208)]=_0x55e963(0x208),_0x3bff1d))(_0x556c3c||{}),_0x36e64b=(_0x434174=>(_0x434174[_0x55e963(0x1ec)]='Start',_0x434174[_0x55e963(0x205)]=_0x55e963(0x205),_0x434174[_0x55e963(0x1e9)]=_0x55e963(0x1e9),_0x434174))(_0x36e64b||{}),_0x255101=(_0x4326c6=>(_0x4326c6[_0x55e963(0x20b)]=_0x55e963(0x20b),_0x4326c6[_0x55e963(0x200)]=_0x55e963(0x200),_0x4326c6[_0x55e963(0x1fc)]='Wide',_0x4326c6['None']=_0x55e963(0x1e1),_0x4326c6[_0x55e963(0x208)]=_0x55e963(0x208),_0x4326c6))(_0x255101||{});const _0x56cb97={[_0x255101[_0x55e963(0x20b)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x255101['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x255101[_0x55e963(0x1fc)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x255101['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x255101[_0x55e963(0x208)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x45b6a8=_0x55e963(0x1ef),_0x1bcf99=_0x55e963(0x1ee);function _0x524058(_0x2929b4,_0x4188ff,_0x3d619c){const _0x1cbe2e=_0x55e963,_0xee53ff=_0x3d619c===_0x15091c[_0x1cbe2e(0x1e6)]?_0x2929b4:_0x4188ff,_0x16eb01=_0x3d619c===_0x15091c[_0x1cbe2e(0x1e6)]?_0x4188ff:_0x2929b4,_0x4d4d5f='\x0a\x20\x20\x20\x20.'+_0x1bcf99+_0x1cbe2e(0x206)+_0xee53ff+'px\x20'+_0x16eb01+'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.'+_0x45b6a8+_0x1cbe2e(0x203)+_0x45b6a8+_0x1cbe2e(0x1e0)+_0x1bcf99+_0x1cbe2e(0x1fd)+_0x16eb01+_0x1cbe2e(0x1e8)+_0xee53ff+'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}',_0x422f34=document['createElement']('style');return _0x422f34[_0x1cbe2e(0x1e4)]=_0x4d4d5f,_0x422f34['className']=_0x1cbe2e(0x1ff),_0x422f34;}_0x30f4f8['PRINT_CANVAS_CLASS']=_0x1bcf99,_0x30f4f8[_0x55e963(0x209)]=_0x45b6a8,_0x30f4f8[_0x55e963(0x1fe)]=_0x56cb97,_0x30f4f8[_0x55e963(0x1f2)]=_0x36e64b,_0x30f4f8['PrintDirection']=_0x15091c,_0x30f4f8[_0x55e963(0x1de)]=_0x255101,_0x30f4f8[_0x55e963(0x1f8)]=_0x556c3c,_0x30f4f8[_0x55e963(0x1f4)]=_0x524058,Object[_0x55e963(0x1fa)](_0x30f4f8,Symbol[_0x55e963(0x1f0)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"typescript": "^5.9.3",
|
|
46
46
|
"vite": "^7.3.1",
|
|
47
47
|
"vitest": "^4.0.18",
|
|
48
|
-
"@univerjs-infra/shared": "0.15.
|
|
48
|
+
"@univerjs-infra/shared": "0.15.5"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|