@univerjs-pro/print 0.17.0 → 0.18.0-insiders.20260328-d26c36e
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/types/common/constant.d.ts +2 -1
- package/lib/umd/index.js +1 -1
- package/package.json +7 -6
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0xca443=_0x4699;function _0x38b2(){const _0x4b464f=['640CwxXpr','FitPage','458664jPfqhH','Start','PrintDirection','innerHTML','PrintPaperMargin','End','Middle','Wide','defineProperty','Custom','FitHeight','Landscape','922952qVcCMl','1148172eCrurv','printing-canvas','offline-printing-css','px\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','Module','553806ujeKQv','\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','PrintScale','7VoMLBg','381106DJHnMm','5hIFVcT','toStringTag','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}','653936lCxbZa','\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','printing-canvas-container','style','FitWidth','PRINT_CONTAINER_CLASS','Narrow','142281BsUGff','Portrait','createElement',',\x20.','createPrintStyle','PrintAlign','Normal','Origin','None','PaperMarginMap'];_0x38b2=function(){return _0x4b464f;};return _0x38b2();}(function(_0x103abe,_0x500644){const _0x264d16=_0x4699,_0x59f994=_0x103abe();while(!![]){try{const _0x3da4ce=parseInt(_0x264d16(0xa0))/0x1+-parseInt(_0x264d16(0x95))/0x2+-parseInt(_0x264d16(0xb7))/0x3+-parseInt(_0x264d16(0xa4))/0x4*(parseInt(_0x264d16(0xa1))/0x5)+-parseInt(_0x264d16(0x9b))/0x6*(parseInt(_0x264d16(0x9f))/0x7)+-parseInt(_0x264d16(0x94))/0x8+-parseInt(_0x264d16(0xab))/0x9*(-parseInt(_0x264d16(0xb5))/0xa);if(_0x3da4ce===_0x500644)break;else _0x59f994['push'](_0x59f994['shift']());}catch(_0x17e687){_0x59f994['push'](_0x59f994['shift']());}}}(_0x38b2,0x47f62),Object[_0xca443(0xbf)](exports,Symbol[_0xca443(0xa2)],{'value':_0xca443(0x9a)}));let e=function(_0x2a78e1){const _0x283b08=_0xca443;return _0x2a78e1[_0x283b08(0xac)]=_0x283b08(0xac),_0x2a78e1[_0x283b08(0x93)]=_0x283b08(0x93),_0x2a78e1;}({}),t=function(_0x2266ce){const _0x47f829=_0xca443;return _0x2266ce[_0x47f829(0xb2)]=_0x47f829(0xb2),_0x2266ce['FitWidth']=_0x47f829(0xa8),_0x2266ce[_0x47f829(0x92)]=_0x47f829(0x92),_0x2266ce[_0x47f829(0xb6)]=_0x47f829(0xb6),_0x2266ce[_0x47f829(0x91)]=_0x47f829(0x91),_0x2266ce;}({}),n=function(_0xb4f3ca){const _0x56d3c9=_0xca443;return _0xb4f3ca[_0x56d3c9(0xb8)]=_0x56d3c9(0xb8),_0xb4f3ca[_0x56d3c9(0xbc)]=_0x56d3c9(0xbc),_0xb4f3ca['Middle']=_0x56d3c9(0xbd),_0xb4f3ca;}({}),r=function(_0x46a986){const _0x4c6760=_0xca443;return _0x46a986[_0x4c6760(0xb1)]=_0x4c6760(0xb1),_0x46a986['Narrow']=_0x4c6760(0xaa),_0x46a986[_0x4c6760(0xbe)]=_0x4c6760(0xbe),_0x46a986[_0x4c6760(0xb3)]=_0x4c6760(0xb3),_0x46a986['Custom']='Custom',_0x46a986;}({});const i={[r[_0xca443(0xb1)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[r[_0xca443(0xaa)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[r[_0xca443(0xbe)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[r[_0xca443(0xb3)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[r[_0xca443(0x91)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0xca443(0xa6),o=_0xca443(0x96);function _0x4699(_0x5bc9db,_0x24f067){_0x5bc9db=_0x5bc9db-0x91;const _0x38b28f=_0x38b2();let _0x469984=_0x38b28f[_0x5bc9db];return _0x469984;}function s(_0x591d56,_0x4f36b2,_0x1bcb8e){const _0x397fb8=_0xca443;let _0x318b55=_0x1bcb8e===e[_0x397fb8(0xac)]?_0x591d56:_0x4f36b2,_0x246ee0=_0x1bcb8e===e[_0x397fb8(0xac)]?_0x4f36b2:_0x591d56,_0x564ee1='\x0a\x20\x20\x20\x20.'+o+_0x397fb8(0x99)+_0x318b55+_0x397fb8(0x98)+_0x246ee0+'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.'+a+_0x397fb8(0xae)+a+_0x397fb8(0x9c)+o+_0x397fb8(0xa5)+_0x246ee0+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x318b55+_0x397fb8(0xa3),_0x5563d7=document[_0x397fb8(0xad)](_0x397fb8(0xa7));return _0x5563d7[_0x397fb8(0xba)]=_0x564ee1,_0x5563d7['className']=_0x397fb8(0x97),_0x5563d7;}exports[_0xca443(0x9d)]=o,exports[_0xca443(0xa9)]=a,exports[_0xca443(0xb4)]=i,exports[_0xca443(0xb0)]=n,exports[_0xca443(0xb9)]=e,exports[_0xca443(0xbb)]=r,exports[_0xca443(0x9e)]=t,exports[_0xca443(0xaf)]=s;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x31b12a=_0x5f43;(function(_0x20f66d,_0x1bcb0a){const _0x38e3dd=_0x5f43,_0xe4b0fd=_0x20f66d();while(!![]){try{const _0x2f9004=parseInt(_0x38e3dd(0x1c9))/0x1+parseInt(_0x38e3dd(0x1d8))/0x2+parseInt(_0x38e3dd(0x1cc))/0x3+-parseInt(_0x38e3dd(0x1d9))/0x4*(parseInt(_0x38e3dd(0x1e4))/0x5)+-parseInt(_0x38e3dd(0x1d6))/0x6+-parseInt(_0x38e3dd(0x1d7))/0x7*(parseInt(_0x38e3dd(0x1c4))/0x8)+-parseInt(_0x38e3dd(0x1d3))/0x9*(-parseInt(_0x38e3dd(0x1de))/0xa);if(_0x2f9004===_0x1bcb0a)break;else _0xe4b0fd['push'](_0xe4b0fd['shift']());}catch(_0x5dc4e1){_0xe4b0fd['push'](_0xe4b0fd['shift']());}}}(_0x2c85,0xdac94));let e=function(_0x200d2d){const _0x5971af=_0x5f43;return _0x200d2d[_0x5971af(0x1df)]=_0x5971af(0x1df),_0x200d2d['Landscape']=_0x5971af(0x1c3),_0x200d2d;}({}),t=function(_0x180102){const _0x457cf5=_0x5f43;return _0x180102[_0x457cf5(0x1c6)]=_0x457cf5(0x1c6),_0x180102[_0x457cf5(0x1c2)]=_0x457cf5(0x1c2),_0x180102[_0x457cf5(0x1d5)]=_0x457cf5(0x1d5),_0x180102[_0x457cf5(0x1c7)]=_0x457cf5(0x1c7),_0x180102[_0x457cf5(0x1d0)]=_0x457cf5(0x1d0),_0x180102;}({}),n=function(_0x588a54){const _0x454ea9=_0x5f43;return _0x588a54[_0x454ea9(0x1e2)]=_0x454ea9(0x1e2),_0x588a54['End']=_0x454ea9(0x1dd),_0x588a54['Middle']=_0x454ea9(0x1ce),_0x588a54;}({}),r=function(_0x497587){const _0x5a3ec6=_0x5f43;return _0x497587[_0x5a3ec6(0x1d2)]='Normal',_0x497587[_0x5a3ec6(0x1c5)]=_0x5a3ec6(0x1c5),_0x497587[_0x5a3ec6(0x1d4)]=_0x5a3ec6(0x1d4),_0x497587[_0x5a3ec6(0x1d1)]=_0x5a3ec6(0x1d1),_0x497587[_0x5a3ec6(0x1d0)]=_0x5a3ec6(0x1d0),_0x497587;}({});const i={[r[_0x31b12a(0x1d2)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[r[_0x31b12a(0x1c5)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[r[_0x31b12a(0x1d4)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[r[_0x31b12a(0x1d1)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[r[_0x31b12a(0x1d0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x31b12a(0x1cf),o=_0x31b12a(0x1e3);function _0x5f43(_0x281822,_0x1dd56f){_0x281822=_0x281822-0x1c2;const _0x2c858f=_0x2c85();let _0x5f433c=_0x2c858f[_0x281822];return _0x5f433c;}function s(_0x1a2638,_0x56fbd6,_0x2c4181){const _0x40c549=_0x31b12a;let _0x297933=_0x2c4181===e['Portrait']?_0x1a2638:_0x56fbd6,_0x6ac83e=_0x2c4181===e['Portrait']?_0x56fbd6:_0x1a2638,_0x3dfb3e=_0x40c549(0x1ca)+o+_0x40c549(0x1c8)+_0x297933+_0x40c549(0x1cd)+_0x6ac83e+_0x40c549(0x1db)+a+',\x20.'+a+_0x40c549(0x1da)+o+_0x40c549(0x1cb)+_0x6ac83e+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x297933+_0x40c549(0x1e0),_0x50ed41=document['createElement'](_0x40c549(0x1e1));return _0x50ed41['innerHTML']=_0x3dfb3e,_0x50ed41[_0x40c549(0x1dc)]='offline-printing-css',_0x50ed41;}function _0x2c85(){const _0xb615ef=['10381928pOqLPD','Narrow','Origin','FitPage','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','555517YRcKhQ','\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','5077074zSJTrE','px\x20','Middle','printing-canvas-container','Custom','None','Normal','645777BOWZdo','Wide','FitHeight','7640106IQogDF','7leBPiQ','1761050qqNQrY','304vdLKSj','\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.','className','End','120xMCHvF','Portrait','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}','style','Start','printing-canvas','34355MaEGNg','FitWidth','Landscape'];_0x2c85=function(){return _0xb615ef;};return _0x2c85();}export{o as PRINT_CANVAS_CLASS,a as PRINT_CONTAINER_CLASS,i as PaperMarginMap,n as PrintAlign,e as PrintDirection,r as PrintPaperMargin,t as PrintScale,s as createPrintStyle};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x31b12a=_0x5f43;(function(_0x20f66d,_0x1bcb0a){const _0x38e3dd=_0x5f43,_0xe4b0fd=_0x20f66d();while(!![]){try{const _0x2f9004=parseInt(_0x38e3dd(0x1c9))/0x1+parseInt(_0x38e3dd(0x1d8))/0x2+parseInt(_0x38e3dd(0x1cc))/0x3+-parseInt(_0x38e3dd(0x1d9))/0x4*(parseInt(_0x38e3dd(0x1e4))/0x5)+-parseInt(_0x38e3dd(0x1d6))/0x6+-parseInt(_0x38e3dd(0x1d7))/0x7*(parseInt(_0x38e3dd(0x1c4))/0x8)+-parseInt(_0x38e3dd(0x1d3))/0x9*(-parseInt(_0x38e3dd(0x1de))/0xa);if(_0x2f9004===_0x1bcb0a)break;else _0xe4b0fd['push'](_0xe4b0fd['shift']());}catch(_0x5dc4e1){_0xe4b0fd['push'](_0xe4b0fd['shift']());}}}(_0x2c85,0xdac94));let e=function(_0x200d2d){const _0x5971af=_0x5f43;return _0x200d2d[_0x5971af(0x1df)]=_0x5971af(0x1df),_0x200d2d['Landscape']=_0x5971af(0x1c3),_0x200d2d;}({}),t=function(_0x180102){const _0x457cf5=_0x5f43;return _0x180102[_0x457cf5(0x1c6)]=_0x457cf5(0x1c6),_0x180102[_0x457cf5(0x1c2)]=_0x457cf5(0x1c2),_0x180102[_0x457cf5(0x1d5)]=_0x457cf5(0x1d5),_0x180102[_0x457cf5(0x1c7)]=_0x457cf5(0x1c7),_0x180102[_0x457cf5(0x1d0)]=_0x457cf5(0x1d0),_0x180102;}({}),n=function(_0x588a54){const _0x454ea9=_0x5f43;return _0x588a54[_0x454ea9(0x1e2)]=_0x454ea9(0x1e2),_0x588a54['End']=_0x454ea9(0x1dd),_0x588a54['Middle']=_0x454ea9(0x1ce),_0x588a54;}({}),r=function(_0x497587){const _0x5a3ec6=_0x5f43;return _0x497587[_0x5a3ec6(0x1d2)]='Normal',_0x497587[_0x5a3ec6(0x1c5)]=_0x5a3ec6(0x1c5),_0x497587[_0x5a3ec6(0x1d4)]=_0x5a3ec6(0x1d4),_0x497587[_0x5a3ec6(0x1d1)]=_0x5a3ec6(0x1d1),_0x497587[_0x5a3ec6(0x1d0)]=_0x5a3ec6(0x1d0),_0x497587;}({});const i={[r[_0x31b12a(0x1d2)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[r[_0x31b12a(0x1c5)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[r[_0x31b12a(0x1d4)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[r[_0x31b12a(0x1d1)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[r[_0x31b12a(0x1d0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x31b12a(0x1cf),o=_0x31b12a(0x1e3);function _0x5f43(_0x281822,_0x1dd56f){_0x281822=_0x281822-0x1c2;const _0x2c858f=_0x2c85();let _0x5f433c=_0x2c858f[_0x281822];return _0x5f433c;}function s(_0x1a2638,_0x56fbd6,_0x2c4181){const _0x40c549=_0x31b12a;let _0x297933=_0x2c4181===e['Portrait']?_0x1a2638:_0x56fbd6,_0x6ac83e=_0x2c4181===e['Portrait']?_0x56fbd6:_0x1a2638,_0x3dfb3e=_0x40c549(0x1ca)+o+_0x40c549(0x1c8)+_0x297933+_0x40c549(0x1cd)+_0x6ac83e+_0x40c549(0x1db)+a+',\x20.'+a+_0x40c549(0x1da)+o+_0x40c549(0x1cb)+_0x6ac83e+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x297933+_0x40c549(0x1e0),_0x50ed41=document['createElement'](_0x40c549(0x1e1));return _0x50ed41['innerHTML']=_0x3dfb3e,_0x50ed41[_0x40c549(0x1dc)]='offline-printing-css',_0x50ed41;}function _0x2c85(){const _0xb615ef=['10381928pOqLPD','Narrow','Origin','FitPage','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','555517YRcKhQ','\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','5077074zSJTrE','px\x20','Middle','printing-canvas-container','Custom','None','Normal','645777BOWZdo','Wide','FitHeight','7640106IQogDF','7leBPiQ','1761050qqNQrY','304vdLKSj','\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.','className','End','120xMCHvF','Portrait','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}','style','Start','printing-canvas','34355MaEGNg','FitWidth','Landscape'];_0x2c85=function(){return _0xb615ef;};return _0x2c85();}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};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { IPrintMargin
|
|
1
|
+
import type { IPrintMargin } from './types';
|
|
2
|
+
import { PrintPaperMargin } from './types';
|
|
2
3
|
export declare const PaperMarginMap: Record<PrintPaperMargin, IPrintMargin>;
|
|
3
4
|
export declare const PRINT_CONTAINER_CLASS = "printing-canvas-container";
|
|
4
5
|
export declare const PRINT_CANVAS_CLASS = "printing-canvas";
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2620d1,_0xb67556){const _0x29c229=_0x2e19,_0x5798b8=_0x2620d1();while(!![]){try{const _0x1b24c9=-parseInt(_0x29c229(0xc1))/0x1+parseInt(_0x29c229(0xc3))/0x2*(parseInt(_0x29c229(0x9b))/0x3)+-parseInt(_0x29c229(0x9d))/0x4*(parseInt(_0x29c229(0xa2))/0x5)+parseInt(_0x29c229(0x96))/0x6+parseInt(_0x29c229(0xb5))/0x7*(-parseInt(_0x29c229(0x9f))/0x8)+-parseInt(_0x29c229(0xb7))/0x9*(-parseInt(_0x29c229(0xac))/0xa)+-parseInt(_0x29c229(0xbf))/0xb*(-parseInt(_0x29c229(0xa7))/0xc);if(_0x1b24c9===_0xb67556)break;else _0x5798b8['push'](_0x5798b8['shift']());}catch(_0xb719b1){_0x5798b8['push'](_0x5798b8['shift']());}}}(_0x4f84,0xb6146),function(_0x52e719,_0x54aaeb){const _0x173e05=_0x2e19;typeof exports=='object'&&typeof module<'u'?_0x54aaeb(exports):typeof define==_0x173e05(0xad)&&define['amd']?define(['exports'],_0x54aaeb):(_0x52e719=typeof globalThis<'u'?globalThis:_0x52e719||self,_0x54aaeb(_0x52e719[_0x173e05(0xaf)]={}));}(this,function(_0x48a0a4){const _0x3bf54f=_0x2e19;Object[_0x3bf54f(0xaa)](_0x48a0a4,Symbol[_0x3bf54f(0xa5)],{'value':_0x3bf54f(0xb9)});let _0x331a34=function(_0x4dcc4e){const _0x44a6f5=_0x3bf54f;return _0x4dcc4e['Portrait']=_0x44a6f5(0x9e),_0x4dcc4e[_0x44a6f5(0xb4)]=_0x44a6f5(0xb4),_0x4dcc4e;}({}),_0x58b77a=function(_0x283e48){const _0x3f7d8e=_0x3bf54f;return _0x283e48[_0x3f7d8e(0xbe)]=_0x3f7d8e(0xbe),_0x283e48[_0x3f7d8e(0xb6)]='FitWidth',_0x283e48[_0x3f7d8e(0x97)]=_0x3f7d8e(0x97),_0x283e48[_0x3f7d8e(0xa8)]='FitPage',_0x283e48[_0x3f7d8e(0xa3)]=_0x3f7d8e(0xa3),_0x283e48;}({}),_0x2f24a2=function(_0x132c36){const _0x282c86=_0x3bf54f;return _0x132c36[_0x282c86(0x9c)]=_0x282c86(0x9c),_0x132c36[_0x282c86(0xbd)]=_0x282c86(0xbd),_0x132c36[_0x282c86(0xa4)]=_0x282c86(0xa4),_0x132c36;}({}),_0x5b295c=function(_0x15f890){const _0x2a60cb=_0x3bf54f;return _0x15f890[_0x2a60cb(0xc0)]=_0x2a60cb(0xc0),_0x15f890['Narrow']=_0x2a60cb(0xab),_0x15f890[_0x2a60cb(0xba)]=_0x2a60cb(0xba),_0x15f890[_0x2a60cb(0xb0)]=_0x2a60cb(0xb0),_0x15f890[_0x2a60cb(0xa3)]=_0x2a60cb(0xa3),_0x15f890;}({}),_0xb781a8={[_0x5b295c[_0x3bf54f(0xc0)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x5b295c[_0x3bf54f(0xab)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x5b295c['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x5b295c['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x5b295c['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x255e99=_0x3bf54f(0x9a),_0x19c69b=_0x3bf54f(0xae);function _0x781c30(_0x147704,_0x29ce23,_0x2836b3){const _0x394fd8=_0x3bf54f;let _0x2f1ffa=_0x2836b3===_0x331a34[_0x394fd8(0x9e)]?_0x147704:_0x29ce23,_0x3521ca=_0x2836b3===_0x331a34['Portrait']?_0x29ce23:_0x147704,_0x43c7a6=_0x394fd8(0xc4)+_0x19c69b+_0x394fd8(0xa9)+_0x2f1ffa+'px\x20'+_0x3521ca+_0x394fd8(0xbc)+_0x255e99+',\x20.'+_0x255e99+'\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.'+_0x19c69b+_0x394fd8(0xb8)+_0x3521ca+_0x394fd8(0xc2)+_0x2f1ffa+_0x394fd8(0xc5),_0x3a7100=document['createElement'](_0x394fd8(0xa0));return _0x3a7100[_0x394fd8(0xb1)]=_0x43c7a6,_0x3a7100[_0x394fd8(0xbb)]=_0x394fd8(0xb2),_0x3a7100;}_0x48a0a4[_0x3bf54f(0x99)]=_0x19c69b,_0x48a0a4['PRINT_CONTAINER_CLASS']=_0x255e99,_0x48a0a4['PaperMarginMap']=_0xb781a8,_0x48a0a4['PrintAlign']=_0x2f24a2,_0x48a0a4[_0x3bf54f(0x98)]=_0x331a34,_0x48a0a4[_0x3bf54f(0xb3)]=_0x5b295c,_0x48a0a4[_0x3bf54f(0xa1)]=_0x58b77a,_0x48a0a4[_0x3bf54f(0xa6)]=_0x781c30;}));function _0x2e19(_0x1077bc,_0xcd8f7){_0x1077bc=_0x1077bc-0x96;const _0x4f841f=_0x4f84();let _0x2e1953=_0x4f841f[_0x1077bc];return _0x2e1953;}function _0x4f84(){const _0x59a612=['px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','254tkRZeg','\x0a\x20\x20\x20\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}','459060EMhwwv','FitHeight','PrintDirection','PRINT_CANVAS_CLASS','printing-canvas-container','3195APZQka','Start','44ehceis','Portrait','292088PBkQSU','style','PrintScale','164995GVfhoc','Custom','Middle','toStringTag','createPrintStyle','36MEnaky','FitPage','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','defineProperty','Narrow','1113910RScIQF','function','printing-canvas','UniverProPrint','None','innerHTML','offline-printing-css','PrintPaperMargin','Landscape','224aSCyii','FitWidth','18ZUuuSa','\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','Module','Wide','className','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','Origin','11845636iOcfnz','Normal','1388036BGyJKl'];_0x4f84=function(){return _0x59a612;};return _0x4f84();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0-insiders.20260328-d26c36e",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,17 +42,18 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"typescript": "^
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"@univerjs-infra/shared": "0.17.0"
|
|
45
|
+
"typescript": "^6.0.2",
|
|
46
|
+
"vitest": "^4.1.1",
|
|
47
|
+
"@univerjs-infra/shared": "0.18.0"
|
|
49
48
|
},
|
|
50
49
|
"scripts": {
|
|
51
50
|
"test": "vitest run",
|
|
52
51
|
"test:watch": "vitest",
|
|
53
52
|
"coverage": "vitest run --coverage",
|
|
54
53
|
"typecheck": "tsc --noEmit",
|
|
55
|
-
"build": "univer-cli build"
|
|
54
|
+
"build:bundle": "univer-cli build",
|
|
55
|
+
"build:types": "tsc -p tsconfig.node.json",
|
|
56
|
+
"build": "pnpm run build:bundle && pnpm run build:types"
|
|
56
57
|
},
|
|
57
58
|
"module": "./lib/es/index.js"
|
|
58
59
|
}
|