@yamcs/opi 1.3.6 → 1.3.8
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/dist/types/Display.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { DialogHandler } from "./DialogHandler";
|
|
|
4
4
|
import { FontResolver } from "./FontResolver";
|
|
5
5
|
import { Formatter } from "./Formatter";
|
|
6
6
|
import { PathResolver } from "./PathResolver";
|
|
7
|
+
import { ScriptLoader } from "./ScriptLoader";
|
|
7
8
|
import { Widget } from "./Widget";
|
|
8
9
|
import { OPIEvent, OPIEventMap } from "./events";
|
|
9
10
|
import { Bounds } from "./positioning";
|
|
@@ -55,6 +56,7 @@ export declare class Display {
|
|
|
55
56
|
pvEngine: PVEngine;
|
|
56
57
|
private pathResolver;
|
|
57
58
|
private fontResolver?;
|
|
59
|
+
private scriptLoader;
|
|
58
60
|
private consoleHandler;
|
|
59
61
|
private dialogHandler;
|
|
60
62
|
formatter: Formatter;
|
|
@@ -89,6 +91,8 @@ export declare class Display {
|
|
|
89
91
|
addScriptLibrary(name: string, library: any): void;
|
|
90
92
|
setPathResolver(pathResolver: PathResolver): void;
|
|
91
93
|
getPathResolver(): PathResolver;
|
|
94
|
+
setScriptLoader(scriptLoader: ScriptLoader): void;
|
|
95
|
+
getScriptLoader(): ScriptLoader;
|
|
92
96
|
setConsoleHandler(consoleHandler: ConsoleHandler): void;
|
|
93
97
|
getConsoleHandler(): ConsoleHandler;
|
|
94
98
|
setDialogHandler(dialogHandler: DialogHandler): void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Display } from "./Display";
|
|
2
|
+
export interface ScriptLoader {
|
|
3
|
+
load(path: string): Promise<string | null>;
|
|
4
|
+
}
|
|
5
|
+
export declare class DefaultScriptLoader implements ScriptLoader {
|
|
6
|
+
private display;
|
|
7
|
+
private cache;
|
|
8
|
+
private ttl;
|
|
9
|
+
constructor(display: Display);
|
|
10
|
+
load(path: string): Promise<string | null>;
|
|
11
|
+
private removeOldEntries;
|
|
12
|
+
}
|
|
@@ -5,6 +5,7 @@ import { Widget } from "../../Widget";
|
|
|
5
5
|
import { AbstractContainerWidget } from "../others/AbstractContainerWidget";
|
|
6
6
|
export declare class TextUpdate extends Widget {
|
|
7
7
|
private areaRegion?;
|
|
8
|
+
private tooltipRegion?;
|
|
8
9
|
constructor(display: Display, parent: AbstractContainerWidget);
|
|
9
10
|
init(): void;
|
|
10
11
|
draw(g: Graphics): void;
|