add public api

This commit is contained in:
tisilent
2023-10-18 00:29:56 +08:00
parent 4245283e05
commit 7dab4601d2
19 changed files with 56 additions and 17 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ import { ImageRenderer } from './ImageRenderer';
import { ImageStorage, CELL_SIZE_DEFAULT } from './ImageStorage';
import { SixelHandler } from './SixelHandler';
import { ITerminalExt, IImageAddonOptions, IResetHandler } from './Types';
import { ImageAddon as IImageApi } from 'xterm-addon-image'
// default values of addon ctor options
const DEFAULT_OPTIONS: IImageAddonOptions = {
@@ -48,7 +48,7 @@ const enum GaStatus {
}
export class ImageAddon implements ITerminalAddon {
export class ImageAddon implements ITerminalAddon , IImageApi {
private _opts: IImageAddonOptions;
private _defaultOpts: IImageAddonOptions;
private _storage: ImageStorage | undefined;
+2 -1
View File
@@ -14,7 +14,8 @@
"baseUrl": ".",
"paths": {
"browser/*": [ "../../../src/browser/*" ],
"common/*": [ "../../../src/common/*" ]
"common/*": [ "../../../src/common/*" ],
"xterm-addon-image": [ "../typings/xterm-addon-image.d.ts" ]
}
},
"include": [