@univerjs-pro/print 0.20.0 → 0.20.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 _0x2b1873=_0x9ab0;(function(_0x48bf54,_0xf72337){const _0x5908a2=_0x9ab0,_0x2a6d7a=_0x48bf54();while(!![]){try{const _0x1e666b=-parseInt(_0x5908a2(0x8f))/0x1+parseInt(_0x5908a2(0x94))/0x2+parseInt(_0x5908a2(0x9b))/0x3*(parseInt(_0x5908a2(0x76))/0x4)+parseInt(_0x5908a2(0x92))/0x5*(-parseInt(_0x5908a2(0x7e))/0x6)+parseInt(_0x5908a2(0x83))/0x7*(-parseInt(_0x5908a2(0x7f))/0x8)+parseInt(_0x5908a2(0x7b))/0x9+-parseInt(_0x5908a2(0x84))/0xa*(-parseInt(_0x5908a2(0x79))/0xb);if(_0x1e666b===_0xf72337)break;else _0x2a6d7a['push'](_0x2a6d7a['shift']());}catch(_0x37b3b5){_0x2a6d7a['push'](_0x2a6d7a['shift']());}}}(_0x396b,0xc0cb0),Object[_0x2b1873(0x9e)](exports,Symbol['toStringTag'],{'value':_0x2b1873(0x8d)}));let e=function(_0x3951ad){const _0x4e2752=_0x2b1873;return _0x3951ad[_0x4e2752(0x9a)]=_0x4e2752(0x9a),_0x3951ad[_0x4e2752(0x93)]=_0x4e2752(0x93),_0x3951ad;}({}),t=function(_0x65d985){const _0xb3baa6=_0x2b1873;return _0x65d985['Origin']=_0xb3baa6(0x7a),_0x65d985[_0xb3baa6(0x89)]='FitWidth',_0x65d985[_0xb3baa6(0x72)]=_0xb3baa6(0x72),_0x65d985['FitPage']=_0xb3baa6(0x77),_0x65d985[_0xb3baa6(0x9d)]='Custom',_0x65d985;}({}),n=function(_0x5dcfca){const _0x1437fe=_0x2b1873;return _0x5dcfca[_0x1437fe(0x99)]=_0x1437fe(0x99),_0x5dcfca[_0x1437fe(0x7c)]=_0x1437fe(0x7c),_0x5dcfca[_0x1437fe(0x8a)]='Middle',_0x5dcfca;}({}),r=function(_0x4cda89){const _0x1ff7aa=_0x2b1873;return _0x4cda89[_0x1ff7aa(0x73)]=_0x1ff7aa(0x73),_0x4cda89['Narrow']='Narrow',_0x4cda89['Wide']=_0x1ff7aa(0x91),_0x4cda89[_0x1ff7aa(0x97)]=_0x1ff7aa(0x97),_0x4cda89[_0x1ff7aa(0x9d)]='Custom',_0x4cda89;}({});const i={[r['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[r['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[r[_0x2b1873(0x91)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[r['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[r[_0x2b1873(0x9d)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x2b1873(0x8e),o=_0x2b1873(0x74);function s(_0x3d7268,_0x102e77,_0x4f7dc1){const _0xfe5d1a=_0x2b1873;let _0x21fba0=_0x4f7dc1===e[_0xfe5d1a(0x9a)]?_0x3d7268:_0x102e77,_0x5eff98=_0x4f7dc1===e[_0xfe5d1a(0x9a)]?_0x102e77:_0x3d7268,_0x15aca9='\x0a\x20\x20\x20\x20.'+o+_0xfe5d1a(0x7d)+_0x21fba0+'px\x20'+_0x5eff98+_0xfe5d1a(0x98)+a+_0xfe5d1a(0x75)+a+_0xfe5d1a(0x90)+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'+_0x5eff98+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x21fba0+_0xfe5d1a(0x9c),_0x4078e7=document[_0xfe5d1a(0x81)](_0xfe5d1a(0x78));return _0x4078e7[_0xfe5d1a(0x8c)]=_0x15aca9,_0x4078e7[_0xfe5d1a(0x86)]=_0xfe5d1a(0x85),_0x4078e7;}function _0x9ab0(_0x1ddbe5,_0x4cdc68){_0x1ddbe5=_0x1ddbe5-0x72;const _0x396bf4=_0x396b();let _0x9ab05c=_0x396bf4[_0x1ddbe5];return _0x9ab05c;}exports[_0x2b1873(0x82)]=o,exports[_0x2b1873(0x8b)]=a,exports[_0x2b1873(0x95)]=i,exports['PrintAlign']=n,exports[_0x2b1873(0x87)]=e,exports[_0x2b1873(0x80)]=r,exports[_0x2b1873(0x96)]=t,exports[_0x2b1873(0x88)]=s;function _0x396b(){const _0x2247bb=['Middle','PRINT_CONTAINER_CLASS','innerHTML','Module','printing-canvas-container','1086450Fyswic','\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.','Wide','11785qGJhoy','Landscape','2201592XEtfYO','PaperMarginMap','PrintScale','None','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.','Start','Portrait','3qqFaUv','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}','Custom','defineProperty','FitHeight','Normal','printing-canvas',',\x20.','3310876otFKIO','FitPage','style','8657858ooLzwG','Origin','9774360wrvjAW','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','3162IbftJc','1366728CAeQnv','PrintPaperMargin','createElement','PRINT_CANVAS_CLASS','28PvFisp','10ZudDvK','offline-printing-css','className','PrintDirection','createPrintStyle','FitWidth'];_0x396b=function(){return _0x2247bb;};return _0x396b();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x13e8(_0x4743fc,_0x16db21){_0x4743fc=_0x4743fc-0xc6;const _0x4bcde2=_0x4bcd();let _0x13e814=_0x4bcde2[_0x4743fc];return _0x13e814;}const _0x363f15=_0x13e8;(function(_0x5f16ec,_0x11d616){const _0x2a3b25=_0x13e8,_0x573f50=_0x5f16ec();while(!![]){try{const _0x3f9c56=parseInt(_0x2a3b25(0xd0))/0x1*(-parseInt(_0x2a3b25(0xe0))/0x2)+parseInt(_0x2a3b25(0xe1))/0x3*(-parseInt(_0x2a3b25(0xdb))/0x4)+parseInt(_0x2a3b25(0xdf))/0x5*(-parseInt(_0x2a3b25(0xe6))/0x6)+parseInt(_0x2a3b25(0xd5))/0x7+parseInt(_0x2a3b25(0xe8))/0x8+-parseInt(_0x2a3b25(0xda))/0x9*(parseInt(_0x2a3b25(0xc6))/0xa)+-parseInt(_0x2a3b25(0xe4))/0xb*(-parseInt(_0x2a3b25(0xd8))/0xc);if(_0x3f9c56===_0x11d616)break;else _0x573f50['push'](_0x573f50['shift']());}catch(_0x6f9f8b){_0x573f50['push'](_0x573f50['shift']());}}}(_0x4bcd,0xc80a8));let e=function(_0x5b9e03){const _0x256331=_0x13e8;return _0x5b9e03[_0x256331(0xcb)]=_0x256331(0xcb),_0x5b9e03[_0x256331(0xe5)]=_0x256331(0xe5),_0x5b9e03;}({}),t=function(_0x498374){const _0x5aa8ed=_0x13e8;return _0x498374['Origin']=_0x5aa8ed(0xcc),_0x498374['FitWidth']=_0x5aa8ed(0xdc),_0x498374['FitHeight']=_0x5aa8ed(0xce),_0x498374[_0x5aa8ed(0xc7)]=_0x5aa8ed(0xc7),_0x498374[_0x5aa8ed(0xd6)]='Custom',_0x498374;}({}),n=function(_0x225846){const _0x16943d=_0x13e8;return _0x225846['Start']='Start',_0x225846[_0x16943d(0xd7)]=_0x16943d(0xd7),_0x225846['Middle']=_0x16943d(0xe9),_0x225846;}({}),r=function(_0x2c0a43){const _0x58f61e=_0x13e8;return _0x2c0a43[_0x58f61e(0xe7)]=_0x58f61e(0xe7),_0x2c0a43[_0x58f61e(0xd2)]=_0x58f61e(0xd2),_0x2c0a43[_0x58f61e(0xcf)]=_0x58f61e(0xcf),_0x2c0a43[_0x58f61e(0xc9)]=_0x58f61e(0xc9),_0x2c0a43[_0x58f61e(0xd6)]=_0x58f61e(0xd6),_0x2c0a43;}({});const i={[r[_0x363f15(0xe7)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[r['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[r[_0x363f15(0xcf)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[r[_0x363f15(0xc9)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[r['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x363f15(0xca),o='printing-canvas';function s(_0xcbd78,_0x26e545,_0x3dbd7b){const _0x55e8b7=_0x363f15;let _0x5375f7=_0x3dbd7b===e[_0x55e8b7(0xcb)]?_0xcbd78:_0x26e545,_0x37b550=_0x3dbd7b===e[_0x55e8b7(0xcb)]?_0x26e545:_0xcbd78,_0x2a6946='\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'+_0x5375f7+_0x55e8b7(0xcd)+_0x37b550+_0x55e8b7(0xe2)+a+',\x20.'+a+_0x55e8b7(0xd1)+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'+_0x37b550+_0x55e8b7(0xe3)+_0x5375f7+_0x55e8b7(0xc8),_0x560b96=document[_0x55e8b7(0xdd)](_0x55e8b7(0xd3));return _0x560b96[_0x55e8b7(0xde)]=_0x2a6946,_0x560b96[_0x55e8b7(0xd9)]=_0x55e8b7(0xd4),_0x560b96;}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};function _0x4bcd(){const _0x40dd03=['px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','2087151GyFgxV','Landscape','478320VAxHqs','Normal','9565056SgZwkE','Middle','481160TynfFp','FitPage','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}','None','printing-canvas-container','Portrait','Origin','px\x20','FitHeight','Wide','2502AyYDsa','\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.','Narrow','style','offline-printing-css','3708313roADnd','Custom','End','144XWTbQn','className','153DkCYwp','100tPftrP','FitWidth','createElement','innerHTML','25aSBQfi','368ieqhsd','180717KusDos','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.'];_0x4bcd=function(){return _0x40dd03;};return _0x4bcd();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x13e8(_0x4743fc,_0x16db21){_0x4743fc=_0x4743fc-0xc6;const _0x4bcde2=_0x4bcd();let _0x13e814=_0x4bcde2[_0x4743fc];return _0x13e814;}const _0x363f15=_0x13e8;(function(_0x5f16ec,_0x11d616){const _0x2a3b25=_0x13e8,_0x573f50=_0x5f16ec();while(!![]){try{const _0x3f9c56=parseInt(_0x2a3b25(0xd0))/0x1*(-parseInt(_0x2a3b25(0xe0))/0x2)+parseInt(_0x2a3b25(0xe1))/0x3*(-parseInt(_0x2a3b25(0xdb))/0x4)+parseInt(_0x2a3b25(0xdf))/0x5*(-parseInt(_0x2a3b25(0xe6))/0x6)+parseInt(_0x2a3b25(0xd5))/0x7+parseInt(_0x2a3b25(0xe8))/0x8+-parseInt(_0x2a3b25(0xda))/0x9*(parseInt(_0x2a3b25(0xc6))/0xa)+-parseInt(_0x2a3b25(0xe4))/0xb*(-parseInt(_0x2a3b25(0xd8))/0xc);if(_0x3f9c56===_0x11d616)break;else _0x573f50['push'](_0x573f50['shift']());}catch(_0x6f9f8b){_0x573f50['push'](_0x573f50['shift']());}}}(_0x4bcd,0xc80a8));let e=function(_0x5b9e03){const _0x256331=_0x13e8;return _0x5b9e03[_0x256331(0xcb)]=_0x256331(0xcb),_0x5b9e03[_0x256331(0xe5)]=_0x256331(0xe5),_0x5b9e03;}({}),t=function(_0x498374){const _0x5aa8ed=_0x13e8;return _0x498374['Origin']=_0x5aa8ed(0xcc),_0x498374['FitWidth']=_0x5aa8ed(0xdc),_0x498374['FitHeight']=_0x5aa8ed(0xce),_0x498374[_0x5aa8ed(0xc7)]=_0x5aa8ed(0xc7),_0x498374[_0x5aa8ed(0xd6)]='Custom',_0x498374;}({}),n=function(_0x225846){const _0x16943d=_0x13e8;return _0x225846['Start']='Start',_0x225846[_0x16943d(0xd7)]=_0x16943d(0xd7),_0x225846['Middle']=_0x16943d(0xe9),_0x225846;}({}),r=function(_0x2c0a43){const _0x58f61e=_0x13e8;return _0x2c0a43[_0x58f61e(0xe7)]=_0x58f61e(0xe7),_0x2c0a43[_0x58f61e(0xd2)]=_0x58f61e(0xd2),_0x2c0a43[_0x58f61e(0xcf)]=_0x58f61e(0xcf),_0x2c0a43[_0x58f61e(0xc9)]=_0x58f61e(0xc9),_0x2c0a43[_0x58f61e(0xd6)]=_0x58f61e(0xd6),_0x2c0a43;}({});const i={[r[_0x363f15(0xe7)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[r['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[r[_0x363f15(0xcf)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[r[_0x363f15(0xc9)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[r['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x363f15(0xca),o='printing-canvas';function s(_0xcbd78,_0x26e545,_0x3dbd7b){const _0x55e8b7=_0x363f15;let _0x5375f7=_0x3dbd7b===e[_0x55e8b7(0xcb)]?_0xcbd78:_0x26e545,_0x37b550=_0x3dbd7b===e[_0x55e8b7(0xcb)]?_0x26e545:_0xcbd78,_0x2a6946='\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'+_0x5375f7+_0x55e8b7(0xcd)+_0x37b550+_0x55e8b7(0xe2)+a+',\x20.'+a+_0x55e8b7(0xd1)+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'+_0x37b550+_0x55e8b7(0xe3)+_0x5375f7+_0x55e8b7(0xc8),_0x560b96=document[_0x55e8b7(0xdd)](_0x55e8b7(0xd3));return _0x560b96[_0x55e8b7(0xde)]=_0x2a6946,_0x560b96[_0x55e8b7(0xd9)]=_0x55e8b7(0xd4),_0x560b96;}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};function _0x4bcd(){const _0x40dd03=['px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','2087151GyFgxV','Landscape','478320VAxHqs','Normal','9565056SgZwkE','Middle','481160TynfFp','FitPage','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}','None','printing-canvas-container','Portrait','Origin','px\x20','FitHeight','Wide','2502AyYDsa','\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.','Narrow','style','offline-printing-css','3708313roADnd','Custom','End','144XWTbQn','className','153DkCYwp','100tPftrP','FitWidth','createElement','innerHTML','25aSBQfi','368ieqhsd','180717KusDos','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.'];_0x4bcd=function(){return _0x40dd03;};return _0x4bcd();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5d5a(_0x36e5b8,_0xc55d82){_0x36e5b8=_0x36e5b8-0x142;const _0x39c1a8=_0x39c1();let _0x5d5ac4=_0x39c1a8[_0x36e5b8];return _0x5d5ac4;}(function(_0x397f4d,_0x820dad){const _0x283ad8=_0x5d5a,_0x46142b=_0x397f4d();while(!![]){try{const _0x58e77c=parseInt(_0x283ad8(0x151))/0x1*(parseInt(_0x283ad8(0x150))/0x2)+-parseInt(_0x283ad8(0x146))/0x3+parseInt(_0x283ad8(0x148))/0x4+-parseInt(_0x283ad8(0x153))/0x5+-parseInt(_0x283ad8(0x14c))/0x6+-parseInt(_0x283ad8(0x162))/0x7*(parseInt(_0x283ad8(0x160))/0x8)+-parseInt(_0x283ad8(0x161))/0x9*(-parseInt(_0x283ad8(0x142))/0xa);if(_0x58e77c===_0x820dad)break;else _0x46142b['push'](_0x46142b['shift']());}catch(_0x67f4cb){_0x46142b['push'](_0x46142b['shift']());}}}(_0x39c1,0x7ade8),function(_0x3cabf4,_0x20b7b5){const _0x3cfec4=_0x5d5a;typeof exports=='object'&&typeof module<'u'?_0x20b7b5(exports):typeof define=='function'&&define[_0x3cfec4(0x14e)]?define([_0x3cfec4(0x15d)],_0x20b7b5):(_0x3cabf4=typeof globalThis<'u'?globalThis:_0x3cabf4||self,_0x20b7b5(_0x3cabf4[_0x3cfec4(0x170)]={}));}(this,function(_0x24212e){const _0x2e422b=_0x5d5a;Object[_0x2e422b(0x169)](_0x24212e,Symbol[_0x2e422b(0x16c)],{'value':_0x2e422b(0x14f)});let _0x385768=function(_0x1d290a){const _0x1ee1c8=_0x2e422b;return _0x1d290a['Portrait']=_0x1ee1c8(0x16e),_0x1d290a[_0x1ee1c8(0x144)]=_0x1ee1c8(0x144),_0x1d290a;}({}),_0x5a64df=function(_0xff03d4){const _0x42d211=_0x2e422b;return _0xff03d4['Origin']='Origin',_0xff03d4[_0x42d211(0x154)]=_0x42d211(0x154),_0xff03d4[_0x42d211(0x15c)]=_0x42d211(0x15c),_0xff03d4[_0x42d211(0x16d)]=_0x42d211(0x16d),_0xff03d4[_0x42d211(0x155)]=_0x42d211(0x155),_0xff03d4;}({}),_0x329429=function(_0x3d95fb){const _0x3d74d0=_0x2e422b;return _0x3d95fb['Start']=_0x3d74d0(0x14d),_0x3d95fb[_0x3d74d0(0x164)]=_0x3d74d0(0x164),_0x3d95fb['Middle']=_0x3d74d0(0x171),_0x3d95fb;}({}),_0x451234=function(_0x56c596){const _0x3310e0=_0x2e422b;return _0x56c596[_0x3310e0(0x152)]=_0x3310e0(0x152),_0x56c596[_0x3310e0(0x16b)]=_0x3310e0(0x16b),_0x56c596[_0x3310e0(0x165)]=_0x3310e0(0x165),_0x56c596[_0x3310e0(0x149)]='None',_0x56c596[_0x3310e0(0x155)]=_0x3310e0(0x155),_0x56c596;}({}),_0x55dbd9={[_0x451234[_0x2e422b(0x152)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x451234['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x451234[_0x2e422b(0x165)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x451234['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x451234[_0x2e422b(0x155)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x5d2b21=_0x2e422b(0x15b),_0x5301e4='printing-canvas';function _0x203ee9(_0x2a38ee,_0x5a5191,_0x912e88){const _0x2f49fa=_0x2e422b;let _0x14a8e6=_0x912e88===_0x385768['Portrait']?_0x2a38ee:_0x5a5191,_0x310665=_0x912e88===_0x385768[_0x2f49fa(0x16e)]?_0x5a5191:_0x2a38ee,_0x3e2cbc=_0x2f49fa(0x15a)+_0x5301e4+_0x2f49fa(0x15e)+_0x14a8e6+_0x2f49fa(0x15f)+_0x310665+_0x2f49fa(0x163)+_0x5d2b21+_0x2f49fa(0x143)+_0x5d2b21+_0x2f49fa(0x14a)+_0x5301e4+_0x2f49fa(0x167)+_0x310665+_0x2f49fa(0x166)+_0x14a8e6+_0x2f49fa(0x145),_0x4587dd=document[_0x2f49fa(0x168)](_0x2f49fa(0x158));return _0x4587dd[_0x2f49fa(0x147)]=_0x3e2cbc,_0x4587dd[_0x2f49fa(0x159)]=_0x2f49fa(0x156),_0x4587dd;}_0x24212e['PRINT_CANVAS_CLASS']=_0x5301e4,_0x24212e['PRINT_CONTAINER_CLASS']=_0x5d2b21,_0x24212e[_0x2e422b(0x16f)]=_0x55dbd9,_0x24212e[_0x2e422b(0x16a)]=_0x329429,_0x24212e['PrintDirection']=_0x385768,_0x24212e['PrintPaperMargin']=_0x451234,_0x24212e[_0x2e422b(0x157)]=_0x5a64df,_0x24212e[_0x2e422b(0x14b)]=_0x203ee9;}));function _0x39c1(){const _0x42e778=['14790uBjIud',',\x20.','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}','1501545bWNloD','innerHTML','3711540WEmIZQ','None','\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.','createPrintStyle','5926386GVXXgz','Start','amd','Module','28PzyCbU','24946nvnLrz','Normal','1770265DIoGdo','FitWidth','Custom','offline-printing-css','PrintScale','style','className','\x0a\x20\x20\x20\x20.','printing-canvas-container','FitHeight','exports','\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','px\x20','991472oRVzqn','8010qyHbTM','14lyQhdj','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.','End','Wide','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\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','createElement','defineProperty','PrintAlign','Narrow','toStringTag','FitPage','Portrait','PaperMarginMap','UniverProPrint','Middle'];_0x39c1=function(){return _0x42e778;};return _0x39c1();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^6.0.2",
|
|
46
46
|
"vitest": "^4.1.1",
|
|
47
|
-
"@univerjs-infra/shared": "0.20.
|
|
47
|
+
"@univerjs-infra/shared": "0.20.1"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"test": "vitest run",
|