@univerjs-pro/print 1.0.0-alpha.7 → 1.0.0-beta.0
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 _0x4446ab=_0x5a6d;function _0x513f(){const _0xf1e01c=['Normal','2560OIBxKN','1007412nQrAjb','createElement','FitPage','Custom','offline-printing-css','4725230FUdXqL','829105nkVsfK','Module','PrintDirection','printing-canvas','Start','4QMxNfK','PrintScale','Portrait','PrintAlign','Middle','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.','3165474VbspWR',',\x20.','573464AbZQZz','style','None','\x0a\x20\x20\x20\x20.','18RiMckg','className','Wide','Origin','defineProperty','PRINT_CONTAINER_CLASS','innerHTML','2011704qtzryO','11543MIFlQx','FitHeight','FitWidth','PaperMarginMap','\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','Landscape','End','px\x20','toStringTag','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'];_0x513f=function(){return _0xf1e01c;};return _0x513f();}(function(_0x570d95,_0x465aba){const _0x42dc7c=_0x5a6d,_0x268389=_0x570d95();while(!![]){try{const _0x2d3342=-parseInt(_0x42dc7c(0xe8))/0x1+-parseInt(_0x42dc7c(0xd5))/0x2+parseInt(_0x42dc7c(0xe6))/0x3*(parseInt(_0x42dc7c(0xe0))/0x4)+-parseInt(_0x42dc7c(0xdb))/0x5+parseInt(_0x42dc7c(0xf3))/0x6+-parseInt(_0x42dc7c(0xf4))/0x7*(parseInt(_0x42dc7c(0xd4))/0x8)+parseInt(_0x42dc7c(0xec))/0x9*(parseInt(_0x42dc7c(0xda))/0xa);if(_0x2d3342===_0x465aba)break;else _0x268389['push'](_0x268389['shift']());}catch(_0x325b71){_0x268389['push'](_0x268389['shift']());}}}(_0x513f,0x89e51),Object[_0x4446ab(0xf0)](exports,Symbol[_0x4446ab(0xd1)],{'value':_0x4446ab(0xdc)}));function _0x5a6d(_0x71afba,_0x582501){_0x71afba=_0x71afba-0xcc;const _0x513f92=_0x513f();let _0x5a6d65=_0x513f92[_0x71afba];return _0x5a6d65;}let e=function(_0x5ca8b4){const _0x303640=_0x4446ab;return _0x5ca8b4['Portrait']=_0x303640(0xe2),_0x5ca8b4['Landscape']=_0x303640(0xce),_0x5ca8b4;}({}),t=function(_0x58e7b5){const _0x46cbf1=_0x4446ab;return _0x58e7b5[_0x46cbf1(0xef)]='Origin',_0x58e7b5[_0x46cbf1(0xf6)]=_0x46cbf1(0xf6),_0x58e7b5[_0x46cbf1(0xf5)]=_0x46cbf1(0xf5),_0x58e7b5[_0x46cbf1(0xd7)]=_0x46cbf1(0xd7),_0x58e7b5[_0x46cbf1(0xd8)]=_0x46cbf1(0xd8),_0x58e7b5;}({}),n=function(_0x48948e){const _0x14c808=_0x4446ab;return _0x48948e[_0x14c808(0xdf)]=_0x14c808(0xdf),_0x48948e[_0x14c808(0xcf)]=_0x14c808(0xcf),_0x48948e[_0x14c808(0xe4)]=_0x14c808(0xe4),_0x48948e;}({}),r=function(_0x5e6488){const _0x213a93=_0x4446ab;return _0x5e6488[_0x213a93(0xd3)]=_0x213a93(0xd3),_0x5e6488['Narrow']='Narrow',_0x5e6488[_0x213a93(0xee)]='Wide',_0x5e6488[_0x213a93(0xea)]=_0x213a93(0xea),_0x5e6488[_0x213a93(0xd8)]=_0x213a93(0xd8),_0x5e6488;}({});const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a='printing-canvas-container',o=_0x4446ab(0xde);function s(_0x30b744,_0x41636f,_0x295a3b){const _0x33a17e=_0x4446ab;let _0xd38bde=_0x295a3b===_0x33a17e(0xe2)?_0x30b744:_0x41636f,_0x14bce5=_0x295a3b===_0x33a17e(0xe2)?_0x41636f:_0x30b744,_0x8186e1=_0x33a17e(0xeb)+o+_0x33a17e(0xcd)+_0xd38bde+_0x33a17e(0xd0)+_0x14bce5+_0x33a17e(0xe5)+a+_0x33a17e(0xe7)+a+'\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.'+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'+_0x14bce5+_0x33a17e(0xd2)+_0xd38bde+'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}',_0x107b9e=document[_0x33a17e(0xd6)](_0x33a17e(0xe9));return _0x107b9e[_0x33a17e(0xf2)]=_0x8186e1,_0x107b9e[_0x33a17e(0xed)]=_0x33a17e(0xd9),_0x107b9e;}exports['PRINT_CANVAS_CLASS']=o,exports[_0x4446ab(0xf1)]=a,exports[_0x4446ab(0xcc)]=i,exports[_0x4446ab(0xe3)]=n,exports[_0x4446ab(0xdd)]=e,exports['PrintPaperMargin']=r,exports[_0x4446ab(0xe1)]=t,exports['createPrintStyle']=s;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x351f49=_0x1263;(function(_0x5f3e1f,_0x13a38a){const _0x59aaad=_0x1263,_0x2ad0bd=_0x5f3e1f();while(!![]){try{const _0xc730dc=-parseInt(_0x59aaad(0xd1))/0x1*(-parseInt(_0x59aaad(0xc8))/0x2)+parseInt(_0x59aaad(0xd7))/0x3*(-parseInt(_0x59aaad(0xcd))/0x4)+parseInt(_0x59aaad(0xbb))/0x5+-parseInt(_0x59aaad(0xdc))/0x6+-parseInt(_0x59aaad(0xbf))/0x7*(-parseInt(_0x59aaad(0xd5))/0x8)+parseInt(_0x59aaad(0xcf))/0x9*(parseInt(_0x59aaad(0xc6))/0xa)+-parseInt(_0x59aaad(0xbc))/0xb*(-parseInt(_0x59aaad(0xc2))/0xc);if(_0xc730dc===_0x13a38a)break;else _0x2ad0bd['push'](_0x2ad0bd['shift']());}catch(_0xfb06db){_0x2ad0bd['push'](_0x2ad0bd['shift']());}}}(_0x5182,0xad4a5));let e=function(_0x14e9c5){const _0x1fb864=_0x1263;return _0x14e9c5[_0x1fb864(0xd4)]=_0x1fb864(0xd4),_0x14e9c5[_0x1fb864(0xdb)]='Landscape',_0x14e9c5;}({}),t=function(_0x413bd6){const _0x310ce9=_0x1263;return _0x413bd6['Origin']=_0x310ce9(0xce),_0x413bd6[_0x310ce9(0xcc)]='FitWidth',_0x413bd6[_0x310ce9(0xc0)]=_0x310ce9(0xc0),_0x413bd6[_0x310ce9(0xd0)]=_0x310ce9(0xd0),_0x413bd6['Custom']=_0x310ce9(0xd9),_0x413bd6;}({}),n=function(_0x437efa){const _0x4f39f8=_0x1263;return _0x437efa['Start']=_0x4f39f8(0xca),_0x437efa[_0x4f39f8(0xdd)]=_0x4f39f8(0xdd),_0x437efa['Middle']=_0x4f39f8(0xc4),_0x437efa;}({}),r=function(_0x320b56){const _0x341db1=_0x1263;return _0x320b56[_0x341db1(0xc1)]=_0x341db1(0xc1),_0x320b56[_0x341db1(0xc9)]=_0x341db1(0xc9),_0x320b56[_0x341db1(0xbe)]=_0x341db1(0xbe),_0x320b56[_0x341db1(0xcb)]=_0x341db1(0xcb),_0x320b56[_0x341db1(0xd9)]='Custom',_0x320b56;}({});const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x351f49(0xd8),o='printing-canvas';function _0x5182(){const _0x1c6cdc=['4016585IZHPkS','11hnRCXr','offline-printing-css','Wide','4382VujwjE','FitHeight','Normal','2856156nGAFIj','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.','Middle','\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.','90osKzzG','\x0a\x20\x20\x20\x20.','2oLgyPB','Narrow','Start','None','FitWidth','212UkXYXz','Origin','177462GJRJxU','FitPage','285617cruvuQ',',\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','Portrait','12456UFRYnn','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}','59307cIlPgD','printing-canvas-container','Custom','px\x20','Landscape','4329222UGEyqf','End','createElement','style'];_0x5182=function(){return _0x1c6cdc;};return _0x5182();}function s(_0x20c705,_0x3bee26,_0x2994e5){const _0x2d5c8b=_0x351f49;let _0x5514b2=_0x2994e5==='Portrait'?_0x20c705:_0x3bee26,_0x2d0b14=_0x2994e5==='Portrait'?_0x3bee26:_0x20c705,_0x226083=_0x2d5c8b(0xc7)+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'+_0x5514b2+_0x2d5c8b(0xda)+_0x2d0b14+_0x2d5c8b(0xc3)+a+_0x2d5c8b(0xd2)+a+_0x2d5c8b(0xc5)+o+_0x2d5c8b(0xd3)+_0x2d0b14+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5514b2+_0x2d5c8b(0xd6),_0x335994=document[_0x2d5c8b(0xde)](_0x2d5c8b(0xdf));return _0x335994['innerHTML']=_0x226083,_0x335994['className']=_0x2d5c8b(0xbd),_0x335994;}function _0x1263(_0x5de0b8,_0x1c1b4c){_0x5de0b8=_0x5de0b8-0xbb;const _0x5182b6=_0x5182();let _0x126354=_0x5182b6[_0x5de0b8];return _0x126354;}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 _0x351f49=_0x1263;(function(_0x5f3e1f,_0x13a38a){const _0x59aaad=_0x1263,_0x2ad0bd=_0x5f3e1f();while(!![]){try{const _0xc730dc=-parseInt(_0x59aaad(0xd1))/0x1*(-parseInt(_0x59aaad(0xc8))/0x2)+parseInt(_0x59aaad(0xd7))/0x3*(-parseInt(_0x59aaad(0xcd))/0x4)+parseInt(_0x59aaad(0xbb))/0x5+-parseInt(_0x59aaad(0xdc))/0x6+-parseInt(_0x59aaad(0xbf))/0x7*(-parseInt(_0x59aaad(0xd5))/0x8)+parseInt(_0x59aaad(0xcf))/0x9*(parseInt(_0x59aaad(0xc6))/0xa)+-parseInt(_0x59aaad(0xbc))/0xb*(-parseInt(_0x59aaad(0xc2))/0xc);if(_0xc730dc===_0x13a38a)break;else _0x2ad0bd['push'](_0x2ad0bd['shift']());}catch(_0xfb06db){_0x2ad0bd['push'](_0x2ad0bd['shift']());}}}(_0x5182,0xad4a5));let e=function(_0x14e9c5){const _0x1fb864=_0x1263;return _0x14e9c5[_0x1fb864(0xd4)]=_0x1fb864(0xd4),_0x14e9c5[_0x1fb864(0xdb)]='Landscape',_0x14e9c5;}({}),t=function(_0x413bd6){const _0x310ce9=_0x1263;return _0x413bd6['Origin']=_0x310ce9(0xce),_0x413bd6[_0x310ce9(0xcc)]='FitWidth',_0x413bd6[_0x310ce9(0xc0)]=_0x310ce9(0xc0),_0x413bd6[_0x310ce9(0xd0)]=_0x310ce9(0xd0),_0x413bd6['Custom']=_0x310ce9(0xd9),_0x413bd6;}({}),n=function(_0x437efa){const _0x4f39f8=_0x1263;return _0x437efa['Start']=_0x4f39f8(0xca),_0x437efa[_0x4f39f8(0xdd)]=_0x4f39f8(0xdd),_0x437efa['Middle']=_0x4f39f8(0xc4),_0x437efa;}({}),r=function(_0x320b56){const _0x341db1=_0x1263;return _0x320b56[_0x341db1(0xc1)]=_0x341db1(0xc1),_0x320b56[_0x341db1(0xc9)]=_0x341db1(0xc9),_0x320b56[_0x341db1(0xbe)]=_0x341db1(0xbe),_0x320b56[_0x341db1(0xcb)]=_0x341db1(0xcb),_0x320b56[_0x341db1(0xd9)]='Custom',_0x320b56;}({});const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x351f49(0xd8),o='printing-canvas';function _0x5182(){const _0x1c6cdc=['4016585IZHPkS','11hnRCXr','offline-printing-css','Wide','4382VujwjE','FitHeight','Normal','2856156nGAFIj','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.','Middle','\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.','90osKzzG','\x0a\x20\x20\x20\x20.','2oLgyPB','Narrow','Start','None','FitWidth','212UkXYXz','Origin','177462GJRJxU','FitPage','285617cruvuQ',',\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','Portrait','12456UFRYnn','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}','59307cIlPgD','printing-canvas-container','Custom','px\x20','Landscape','4329222UGEyqf','End','createElement','style'];_0x5182=function(){return _0x1c6cdc;};return _0x5182();}function s(_0x20c705,_0x3bee26,_0x2994e5){const _0x2d5c8b=_0x351f49;let _0x5514b2=_0x2994e5==='Portrait'?_0x20c705:_0x3bee26,_0x2d0b14=_0x2994e5==='Portrait'?_0x3bee26:_0x20c705,_0x226083=_0x2d5c8b(0xc7)+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'+_0x5514b2+_0x2d5c8b(0xda)+_0x2d0b14+_0x2d5c8b(0xc3)+a+_0x2d5c8b(0xd2)+a+_0x2d5c8b(0xc5)+o+_0x2d5c8b(0xd3)+_0x2d0b14+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5514b2+_0x2d5c8b(0xd6),_0x335994=document[_0x2d5c8b(0xde)](_0x2d5c8b(0xdf));return _0x335994['innerHTML']=_0x226083,_0x335994['className']=_0x2d5c8b(0xbd),_0x335994;}function _0x1263(_0x5de0b8,_0x1c1b4c){_0x5de0b8=_0x5de0b8-0xbb;const _0x5182b6=_0x5182();let _0x126354=_0x5182b6[_0x5de0b8];return _0x126354;}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/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x7e7b58,_0x2e0b79){const _0x2d1dcb=_0x2a05,_0x2c890a=_0x7e7b58();while(!![]){try{const _0x4379fa=parseInt(_0x2d1dcb(0xe9))/0x1*(parseInt(_0x2d1dcb(0xf0))/0x2)+-parseInt(_0x2d1dcb(0xe3))/0x3+parseInt(_0x2d1dcb(0xe4))/0x4*(-parseInt(_0x2d1dcb(0x106))/0x5)+parseInt(_0x2d1dcb(0xfd))/0x6*(parseInt(_0x2d1dcb(0xfe))/0x7)+parseInt(_0x2d1dcb(0xe0))/0x8+-parseInt(_0x2d1dcb(0xf8))/0x9+-parseInt(_0x2d1dcb(0xf1))/0xa;if(_0x4379fa===_0x2e0b79)break;else _0x2c890a['push'](_0x2c890a['shift']());}catch(_0xdca2dc){_0x2c890a['push'](_0x2c890a['shift']());}}}(_0x310d,0x8631f),function(_0x35a3a5,_0x9c8eb3){const _0x279451=_0x2a05;typeof exports==_0x279451(0xe1)&&typeof module<'u'?_0x9c8eb3(exports):typeof define=='function'&&define[_0x279451(0x10e)]?define([_0x279451(0xf2)],_0x9c8eb3):(_0x35a3a5=typeof globalThis<'u'?globalThis:_0x35a3a5||self,_0x9c8eb3(_0x35a3a5[_0x279451(0xef)]={}));}(this,function(_0x5564ad){const _0x4e1e80=_0x2a05;Object[_0x4e1e80(0x10d)](_0x5564ad,Symbol[_0x4e1e80(0xe8)],{'value':_0x4e1e80(0xf3)});let _0x27f892=function(_0x4d2f48){const _0x13d276=_0x4e1e80;return _0x4d2f48['Portrait']='Portrait',_0x4d2f48[_0x13d276(0xf5)]='Landscape',_0x4d2f48;}({}),_0x4a1a1f=function(_0x5b792b){const _0x5062c3=_0x4e1e80;return _0x5b792b[_0x5062c3(0x110)]='Origin',_0x5b792b[_0x5062c3(0xf9)]=_0x5062c3(0xf9),_0x5b792b['FitHeight']=_0x5062c3(0x108),_0x5b792b['FitPage']='FitPage',_0x5b792b[_0x5062c3(0xeb)]='Custom',_0x5b792b;}({}),_0x684e12=function(_0xaf711f){const _0x5492ac=_0x4e1e80;return _0xaf711f[_0x5492ac(0xe2)]=_0x5492ac(0xe2),_0xaf711f[_0x5492ac(0x107)]=_0x5492ac(0x107),_0xaf711f[_0x5492ac(0xe7)]=_0x5492ac(0xe7),_0xaf711f;}({}),_0x11c975=function(_0x94ec1c){const _0x424c9b=_0x4e1e80;return _0x94ec1c[_0x424c9b(0xea)]=_0x424c9b(0xea),_0x94ec1c[_0x424c9b(0x10c)]=_0x424c9b(0x10c),_0x94ec1c[_0x424c9b(0x104)]='Wide',_0x94ec1c[_0x424c9b(0xf6)]='None',_0x94ec1c['Custom']='Custom',_0x94ec1c;}({}),_0x490e15={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x374a08='printing-canvas-container',_0x10c20f=_0x4e1e80(0x109);function _0x1fd373(_0x943aa9,_0xbc1171,_0x50ae3a){const _0x39a18a=_0x4e1e80;let _0x5e4abb=_0x50ae3a===_0x39a18a(0x105)?_0x943aa9:_0xbc1171,_0x3155a2=_0x50ae3a==='Portrait'?_0xbc1171:_0x943aa9,_0x19d21c=_0x39a18a(0xe5)+_0x10c20f+_0x39a18a(0xf4)+_0x5e4abb+_0x39a18a(0xe6)+_0x3155a2+_0x39a18a(0x100)+_0x374a08+_0x39a18a(0xff)+_0x374a08+'\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.'+_0x10c20f+_0x39a18a(0x10a)+_0x3155a2+_0x39a18a(0x10b)+_0x5e4abb+'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}',_0x59ab57=document[_0x39a18a(0xfa)](_0x39a18a(0xf7));return _0x59ab57[_0x39a18a(0x102)]=_0x19d21c,_0x59ab57['className']=_0x39a18a(0xed),_0x59ab57;}_0x5564ad[_0x4e1e80(0xfc)]=_0x10c20f,_0x5564ad[_0x4e1e80(0x10f)]=_0x374a08,_0x5564ad['PaperMarginMap']=_0x490e15,_0x5564ad[_0x4e1e80(0xec)]=_0x684e12,_0x5564ad[_0x4e1e80(0xee)]=_0x27f892,_0x5564ad[_0x4e1e80(0xfb)]=_0x11c975,_0x5564ad[_0x4e1e80(0x101)]=_0x4a1a1f,_0x5564ad[_0x4e1e80(0x103)]=_0x1fd373;}));function _0x2a05(_0x254066,_0x18d29e){_0x254066=_0x254066-0xe0;const _0x310dec=_0x310d();let _0x2a05a3=_0x310dec[_0x254066];return _0x2a05a3;}function _0x310d(){const _0x1de7ae=['createElement','PrintPaperMargin','PRINT_CANVAS_CLASS','836904xpagUG','28dGxBAn',',\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.','PrintScale','innerHTML','createPrintStyle','Wide','Portrait','170165NftxqK','End','FitHeight','printing-canvas','\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','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Narrow','defineProperty','amd','PRINT_CONTAINER_CLASS','Origin','6135072YNlnua','object','Start','863637RDRLUb','28oDJLrr','\x0a\x20\x20\x20\x20.','px\x20','Middle','toStringTag','259096QogQfL','Normal','Custom','PrintAlign','offline-printing-css','PrintDirection','UniverProPrint','4GVlHni','3370240FBcUTH','exports','Module','\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','Landscape','None','style','3871935AsuMPc','FitWidth'];_0x310d=function(){return _0x1de7ae;};return _0x310d();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-beta.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared print utilities for Univer Pro.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"typescript": "^6.0.3",
|
|
52
52
|
"vitest": "^4.1.10",
|
|
53
|
-
"@univerjs-infra/shared": "1.0.0-
|
|
53
|
+
"@univerjs-infra/shared": "1.0.0-beta.0"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "vitest run",
|