@univerjs-pro/print 0.10.8 → 0.10.9
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 _0x446dd3=_0x47c2;(function(_0xa93dcb,_0x2bfb5c){const _0x3964ff=_0x47c2,_0x121237=_0xa93dcb();while(!![]){try{const _0x3dfd84=parseInt(_0x3964ff(0x168))/0x1+parseInt(_0x3964ff(0x170))/0x2*(-parseInt(_0x3964ff(0x16e))/0x3)+-parseInt(_0x3964ff(0x17d))/0x4+parseInt(_0x3964ff(0x174))/0x5+-parseInt(_0x3964ff(0x175))/0x6+-parseInt(_0x3964ff(0x185))/0x7+parseInt(_0x3964ff(0x165))/0x8;if(_0x3dfd84===_0x2bfb5c)break;else _0x121237['push'](_0x121237['shift']());}catch(_0x52ee7a){_0x121237['push'](_0x121237['shift']());}}}(_0x48e3,0x737e3));function _0x47c2(_0x3b4541,_0xc4baf2){const _0x48e325=_0x48e3();return _0x47c2=function(_0x47c2da,_0x12445e){_0x47c2da=_0x47c2da-0x160;let _0x1de474=_0x48e325[_0x47c2da];return _0x1de474;},_0x47c2(_0x3b4541,_0xc4baf2);}Object[_0x446dd3(0x16b)](exports,Symbol[_0x446dd3(0x166)],{'value':_0x446dd3(0x176)});var i=(_0x4b7de8=>(_0x4b7de8['Portrait']='Portrait',_0x4b7de8[_0x446dd3(0x16c)]='Landscape',_0x4b7de8))(i||{}),l=(_0x2d910c=>(_0x2d910c['Origin']='Origin',_0x2d910c['FitWidth']=_0x446dd3(0x160),_0x2d910c['FitHeight']=_0x446dd3(0x177),_0x2d910c[_0x446dd3(0x179)]=_0x446dd3(0x179),_0x2d910c[_0x446dd3(0x171)]=_0x446dd3(0x171),_0x2d910c))(l||{}),m=(_0x45e12e=>(_0x45e12e['Start']='Start',_0x45e12e[_0x446dd3(0x182)]='End',_0x45e12e[_0x446dd3(0x169)]=_0x446dd3(0x169),_0x45e12e))(m||{}),o=(_0x10d2f0=>(_0x10d2f0[_0x446dd3(0x181)]=_0x446dd3(0x181),_0x10d2f0[_0x446dd3(0x16a)]='Narrow',_0x10d2f0[_0x446dd3(0x17f)]=_0x446dd3(0x17f),_0x10d2f0[_0x446dd3(0x17b)]=_0x446dd3(0x17b),_0x10d2f0['Custom']='Custom',_0x10d2f0))(o||{});const g={[o[_0x446dd3(0x181)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x446dd3(0x16a)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x446dd3(0x17f)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x446dd3(0x171)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x446dd3(0x172),n=_0x446dd3(0x187);function h(_0xc38404,_0x1ea14b,_0x22d71b){const _0x36676c=_0x446dd3,_0x361a04=_0x22d71b===i['Portrait']?_0xc38404:_0x1ea14b,_0x304962=_0x22d71b===i[_0x36676c(0x162)]?_0x1ea14b:_0xc38404,_0x5687eb=_0x36676c(0x17c)+n+_0x36676c(0x16f)+_0x361a04+_0x36676c(0x189)+_0x304962+_0x36676c(0x16d)+r+_0x36676c(0x183)+r+_0x36676c(0x178)+n+'\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'+_0x304962+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x361a04+_0x36676c(0x18a),_0x5ad3cb=document['createElement'](_0x36676c(0x180));return _0x5ad3cb[_0x36676c(0x17a)]=_0x5687eb,_0x5ad3cb[_0x36676c(0x164)]=_0x36676c(0x163),_0x5ad3cb;}exports[_0x446dd3(0x17e)]=n,exports[_0x446dd3(0x188)]=r,exports[_0x446dd3(0x167)]=g,exports[_0x446dd3(0x173)]=m,exports[_0x446dd3(0x161)]=i,exports[_0x446dd3(0x186)]=o,exports['PrintScale']=l,exports[_0x446dd3(0x184)]=h;function _0x48e3(){const _0x5b1be3=['createPrintStyle','3132374gfoOxb','PrintPaperMargin','printing-canvas','PRINT_CONTAINER_CLASS','px\x20','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}','FitWidth','PrintDirection','Portrait','offline-printing-css','className','7659512QmiXbx','toStringTag','PaperMarginMap','604995RELRJW','Middle','Narrow','defineProperty','Landscape','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.','3UBABXm','\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','951874cGTstW','Custom','printing-canvas-container','PrintAlign','4610455GXMwCZ','1587522rMKhsz','Module','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.','FitPage','innerHTML','None','\x0a\x20\x20\x20\x20.','3293840lkxYXE','PRINT_CANVAS_CLASS','Wide','style','Normal','End',',\x20.'];_0x48e3=function(){return _0x5b1be3;};return _0x48e3();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x1a0b95=_0x2e63;(function(_0x3e5de3,_0x2592e5){const _0x54b326=_0x2e63,_0x280133=_0x3e5de3();while(!![]){try{const _0xe468e0=parseInt(_0x54b326(0x18b))/0x1+parseInt(_0x54b326(0x185))/0x2+parseInt(_0x54b326(0x17b))/0x3+-parseInt(_0x54b326(0x177))/0x4*(-parseInt(_0x54b326(0x16f))/0x5)+parseInt(_0x54b326(0x171))/0x6*(parseInt(_0x54b326(0x18c))/0x7)+-parseInt(_0x54b326(0x175))/0x8+parseInt(_0x54b326(0x17f))/0x9;if(_0xe468e0===_0x2592e5)break;else _0x280133['push'](_0x280133['shift']());}catch(_0x530022){_0x280133['push'](_0x280133['shift']());}}}(_0x2b33,0x9f5d5));var e=(_0x158a6d=>(_0x158a6d[_0x1a0b95(0x179)]=_0x1a0b95(0x179),_0x158a6d['Landscape']=_0x1a0b95(0x189),_0x158a6d))(e||{}),h=(_0x3a5107=>(_0x3a5107['Origin']=_0x1a0b95(0x18d),_0x3a5107[_0x1a0b95(0x17a)]=_0x1a0b95(0x17a),_0x3a5107[_0x1a0b95(0x188)]=_0x1a0b95(0x188),_0x3a5107[_0x1a0b95(0x17c)]='FitPage',_0x3a5107['Custom']=_0x1a0b95(0x173),_0x3a5107))(h||{}),l=(_0x58d801=>(_0x58d801[_0x1a0b95(0x180)]=_0x1a0b95(0x180),_0x58d801[_0x1a0b95(0x187)]='End',_0x58d801['Middle']=_0x1a0b95(0x183),_0x58d801))(l||{}),o=(_0x2fffa8=>(_0x2fffa8[_0x1a0b95(0x18f)]='Normal',_0x2fffa8['Narrow']=_0x1a0b95(0x176),_0x2fffa8[_0x1a0b95(0x184)]=_0x1a0b95(0x184),_0x2fffa8[_0x1a0b95(0x17d)]=_0x1a0b95(0x17d),_0x2fffa8['Custom']='Custom',_0x2fffa8))(o||{});const c={[o[_0x1a0b95(0x18f)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x1a0b95(0x176)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x1a0b95(0x184)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x1a0b95(0x18a),d='printing-canvas';function g(_0x47a248,_0x22d6bd,_0x3476c8){const _0x77bc68=_0x1a0b95,_0x38b337=_0x3476c8===e[_0x77bc68(0x179)]?_0x47a248:_0x22d6bd,_0x5741be=_0x3476c8===e[_0x77bc68(0x179)]?_0x22d6bd:_0x47a248,_0x3d9a8a=_0x77bc68(0x172)+d+_0x77bc68(0x186)+_0x38b337+_0x77bc68(0x17e)+_0x5741be+'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+_0x77bc68(0x181)+p+'\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.'+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'+_0x5741be+_0x77bc68(0x178)+_0x38b337+_0x77bc68(0x170),_0x2f70a8=document[_0x77bc68(0x174)]('style');return _0x2f70a8[_0x77bc68(0x182)]=_0x3d9a8a,_0x2f70a8['className']=_0x77bc68(0x18e),_0x2f70a8;}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 _0x2e63(_0x444a6a,_0x2fcc22){const _0x2b3311=_0x2b33();return _0x2e63=function(_0x2e63df,_0x349f48){_0x2e63df=_0x2e63df-0x16f;let _0x4bc2ac=_0x2b3311[_0x2e63df];return _0x4bc2ac;},_0x2e63(_0x444a6a,_0x2fcc22);}function _0x2b33(){const _0x171b37=[',\x20.','innerHTML','Middle','Wide','281286jKCYsd','\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','End','FitHeight','Landscape','printing-canvas-container','829687kWQrvZ','7IPLvYy','Origin','offline-printing-css','Normal','25wVECOu','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}','2426982RrDtgL','\x0a\x20\x20\x20\x20.','Custom','createElement','8881824WvKGXi','Narrow','214532hPxjdf','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Portrait','FitWidth','304998RqQpwz','FitPage','None','px\x20','164943NJNksT','Start'];_0x2b33=function(){return _0x171b37;};return _0x2b33();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x1a0b95=_0x2e63;(function(_0x3e5de3,_0x2592e5){const _0x54b326=_0x2e63,_0x280133=_0x3e5de3();while(!![]){try{const _0xe468e0=parseInt(_0x54b326(0x18b))/0x1+parseInt(_0x54b326(0x185))/0x2+parseInt(_0x54b326(0x17b))/0x3+-parseInt(_0x54b326(0x177))/0x4*(-parseInt(_0x54b326(0x16f))/0x5)+parseInt(_0x54b326(0x171))/0x6*(parseInt(_0x54b326(0x18c))/0x7)+-parseInt(_0x54b326(0x175))/0x8+parseInt(_0x54b326(0x17f))/0x9;if(_0xe468e0===_0x2592e5)break;else _0x280133['push'](_0x280133['shift']());}catch(_0x530022){_0x280133['push'](_0x280133['shift']());}}}(_0x2b33,0x9f5d5));var e=(_0x158a6d=>(_0x158a6d[_0x1a0b95(0x179)]=_0x1a0b95(0x179),_0x158a6d['Landscape']=_0x1a0b95(0x189),_0x158a6d))(e||{}),h=(_0x3a5107=>(_0x3a5107['Origin']=_0x1a0b95(0x18d),_0x3a5107[_0x1a0b95(0x17a)]=_0x1a0b95(0x17a),_0x3a5107[_0x1a0b95(0x188)]=_0x1a0b95(0x188),_0x3a5107[_0x1a0b95(0x17c)]='FitPage',_0x3a5107['Custom']=_0x1a0b95(0x173),_0x3a5107))(h||{}),l=(_0x58d801=>(_0x58d801[_0x1a0b95(0x180)]=_0x1a0b95(0x180),_0x58d801[_0x1a0b95(0x187)]='End',_0x58d801['Middle']=_0x1a0b95(0x183),_0x58d801))(l||{}),o=(_0x2fffa8=>(_0x2fffa8[_0x1a0b95(0x18f)]='Normal',_0x2fffa8['Narrow']=_0x1a0b95(0x176),_0x2fffa8[_0x1a0b95(0x184)]=_0x1a0b95(0x184),_0x2fffa8[_0x1a0b95(0x17d)]=_0x1a0b95(0x17d),_0x2fffa8['Custom']='Custom',_0x2fffa8))(o||{});const c={[o[_0x1a0b95(0x18f)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x1a0b95(0x176)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x1a0b95(0x184)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x1a0b95(0x18a),d='printing-canvas';function g(_0x47a248,_0x22d6bd,_0x3476c8){const _0x77bc68=_0x1a0b95,_0x38b337=_0x3476c8===e[_0x77bc68(0x179)]?_0x47a248:_0x22d6bd,_0x5741be=_0x3476c8===e[_0x77bc68(0x179)]?_0x22d6bd:_0x47a248,_0x3d9a8a=_0x77bc68(0x172)+d+_0x77bc68(0x186)+_0x38b337+_0x77bc68(0x17e)+_0x5741be+'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+_0x77bc68(0x181)+p+'\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.'+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'+_0x5741be+_0x77bc68(0x178)+_0x38b337+_0x77bc68(0x170),_0x2f70a8=document[_0x77bc68(0x174)]('style');return _0x2f70a8[_0x77bc68(0x182)]=_0x3d9a8a,_0x2f70a8['className']=_0x77bc68(0x18e),_0x2f70a8;}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 _0x2e63(_0x444a6a,_0x2fcc22){const _0x2b3311=_0x2b33();return _0x2e63=function(_0x2e63df,_0x349f48){_0x2e63df=_0x2e63df-0x16f;let _0x4bc2ac=_0x2b3311[_0x2e63df];return _0x4bc2ac;},_0x2e63(_0x444a6a,_0x2fcc22);}function _0x2b33(){const _0x171b37=[',\x20.','innerHTML','Middle','Wide','281286jKCYsd','\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','End','FitHeight','Landscape','printing-canvas-container','829687kWQrvZ','7IPLvYy','Origin','offline-printing-css','Normal','25wVECOu','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}','2426982RrDtgL','\x0a\x20\x20\x20\x20.','Custom','createElement','8881824WvKGXi','Narrow','214532hPxjdf','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Portrait','FitWidth','304998RqQpwz','FitPage','None','px\x20','164943NJNksT','Start'];_0x2b33=function(){return _0x171b37;};return _0x2b33();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4a246d,_0x350d85){const _0x539b31=_0x571e,_0x4ef3c0=_0x4a246d();while(!![]){try{const _0x56d938=parseInt(_0x539b31(0xec))/0x1+parseInt(_0x539b31(0xe8))/0x2+parseInt(_0x539b31(0xe6))/0x3*(-parseInt(_0x539b31(0xca))/0x4)+parseInt(_0x539b31(0xc7))/0x5+-parseInt(_0x539b31(0xdd))/0x6*(parseInt(_0x539b31(0xc6))/0x7)+-parseInt(_0x539b31(0xc9))/0x8+parseInt(_0x539b31(0xe7))/0x9*(parseInt(_0x539b31(0xcc))/0xa);if(_0x56d938===_0x350d85)break;else _0x4ef3c0['push'](_0x4ef3c0['shift']());}catch(_0x4b40a5){_0x4ef3c0['push'](_0x4ef3c0['shift']());}}}(_0x5ea0,0x488c1),function(_0xf48440,_0x5ce968){const _0xef4e6d=_0x571e;typeof exports==_0xef4e6d(0xd5)&&typeof module<'u'?_0x5ce968(exports):typeof define==_0xef4e6d(0xcb)&&define[_0xef4e6d(0xe0)]?define(['exports'],_0x5ce968):(_0xf48440=typeof globalThis<'u'?globalThis:_0xf48440||self,_0x5ce968(_0xf48440[_0xef4e6d(0xd3)]={}));}(this,function(_0x264c1b){'use strict';const _0x33a4f3=_0x571e;var _0x5724ba=(_0x149562=>(_0x149562[_0x33a4f3(0xe5)]=_0x33a4f3(0xe5),_0x149562[_0x33a4f3(0xd2)]=_0x33a4f3(0xd2),_0x149562))(_0x5724ba||{}),_0x11bc49=(_0xbf197=>(_0xbf197[_0x33a4f3(0xdb)]=_0x33a4f3(0xdb),_0xbf197[_0x33a4f3(0xde)]='FitWidth',_0xbf197[_0x33a4f3(0xe1)]='FitHeight',_0xbf197[_0x33a4f3(0xd7)]=_0x33a4f3(0xd7),_0xbf197[_0x33a4f3(0xe4)]=_0x33a4f3(0xe4),_0xbf197))(_0x11bc49||{}),_0xcdea52=(_0x1a1793=>(_0x1a1793['Start']='Start',_0x1a1793['End']=_0x33a4f3(0xf3),_0x1a1793[_0x33a4f3(0xdc)]=_0x33a4f3(0xdc),_0x1a1793))(_0xcdea52||{}),_0x2f2585=(_0x466860=>(_0x466860[_0x33a4f3(0xe9)]=_0x33a4f3(0xe9),_0x466860[_0x33a4f3(0xdf)]=_0x33a4f3(0xdf),_0x466860[_0x33a4f3(0xed)]=_0x33a4f3(0xed),_0x466860[_0x33a4f3(0xf2)]=_0x33a4f3(0xf2),_0x466860[_0x33a4f3(0xe4)]=_0x33a4f3(0xe4),_0x466860))(_0x2f2585||{});const _0x1f95aa={[_0x2f2585[_0x33a4f3(0xe9)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x2f2585[_0x33a4f3(0xdf)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x2f2585['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x2f2585[_0x33a4f3(0xf2)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x2f2585[_0x33a4f3(0xe4)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x2b343c='printing-canvas-container',_0x5dc4f1=_0x33a4f3(0xeb);function _0x3621ae(_0x21c76b,_0x1a6ec1,_0x31203e){const _0xa1a3b3=_0x33a4f3,_0x4f320c=_0x31203e===_0x5724ba[_0xa1a3b3(0xe5)]?_0x21c76b:_0x1a6ec1,_0x497f1c=_0x31203e===_0x5724ba[_0xa1a3b3(0xe5)]?_0x1a6ec1:_0x21c76b,_0x1183d5=_0xa1a3b3(0xee)+_0x5dc4f1+_0xa1a3b3(0xf0)+_0x4f320c+_0xa1a3b3(0xd4)+_0x497f1c+_0xa1a3b3(0xc8)+_0x2b343c+',\x20.'+_0x2b343c+_0xa1a3b3(0xe2)+_0x5dc4f1+_0xa1a3b3(0xef)+_0x497f1c+_0xa1a3b3(0xd1)+_0x4f320c+'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}',_0xe1c128=document['createElement'](_0xa1a3b3(0xce));return _0xe1c128[_0xa1a3b3(0xd9)]=_0x1183d5,_0xe1c128['className']=_0xa1a3b3(0xd6),_0xe1c128;}_0x264c1b[_0x33a4f3(0xcf)]=_0x5dc4f1,_0x264c1b['PRINT_CONTAINER_CLASS']=_0x2b343c,_0x264c1b[_0x33a4f3(0xf1)]=_0x1f95aa,_0x264c1b[_0x33a4f3(0xda)]=_0xcdea52,_0x264c1b[_0x33a4f3(0xd0)]=_0x5724ba,_0x264c1b[_0x33a4f3(0xcd)]=_0x2f2585,_0x264c1b[_0x33a4f3(0xe3)]=_0x11bc49,_0x264c1b[_0x33a4f3(0xd8)]=_0x3621ae,Object[_0x33a4f3(0xea)](_0x264c1b,Symbol['toStringTag'],{'value':'Module'});}));function _0x571e(_0x5b73d5,_0x3889b3){const _0x5ea077=_0x5ea0();return _0x571e=function(_0x571e42,_0x159d75){_0x571e42=_0x571e42-0xc6;let _0x21e014=_0x5ea077[_0x571e42];return _0x21e014;},_0x571e(_0x5b73d5,_0x3889b3);}function _0x5ea0(){const _0x21e89e=['Custom','Portrait','9651asvVEZ','9yMQmpr','650008ZPnVrp','Normal','defineProperty','printing-canvas','238389URUbXA','Wide','\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','\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','PaperMarginMap','None','End','14fixRDg','362670ePInKb','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.','17896tumXBm','412zWlSAz','function','5063060KmXqtt','PrintPaperMargin','style','PRINT_CANVAS_CLASS','PrintDirection','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','UniverProPrint','px\x20','object','offline-printing-css','FitPage','createPrintStyle','innerHTML','PrintAlign','Origin','Middle','1534476qXfpJP','FitWidth','Narrow','amd','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.','PrintScale'];_0x5ea0=function(){return _0x21e89e;};return _0x5ea0();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.9",
|
|
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.2",
|
|
46
46
|
"vite": "^7.1.3",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.10.
|
|
48
|
+
"@univerjs-infra/shared": "0.10.9"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|