@yamcs/opi 1.2.7 → 1.2.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/fonts/LiberationMono-Bold.woff2 +0 -0
- package/dist/fonts/LiberationMono-BoldItalic.woff2 +0 -0
- package/dist/fonts/LiberationMono-Italic.woff2 +0 -0
- package/dist/fonts/LiberationMono-Regular.woff2 +0 -0
- package/dist/fonts/LiberationSans-Bold.woff2 +0 -0
- package/dist/fonts/LiberationSans-BoldItalic.woff2 +0 -0
- package/dist/fonts/LiberationSans-Italic.woff2 +0 -0
- package/dist/fonts/LiberationSans-Regular.woff2 +0 -0
- package/dist/fonts/LiberationSerif-Bold.woff2 +0 -0
- package/dist/fonts/LiberationSerif-BoldItalic.woff2 +0 -0
- package/dist/fonts/LiberationSerif-Italic.woff2 +0 -0
- package/dist/fonts/LiberationSerif-Regular.woff2 +0 -0
- package/dist/opi.js +1 -1
- package/dist/opi.js.map +1 -1
- package/dist/types/Color.d.ts +36 -36
- package/dist/types/ColorMap.d.ts +23 -23
- package/dist/types/ConsoleHandler.d.ts +10 -10
- package/dist/types/DecimalFormat.d.ts +36 -36
- package/dist/types/DialogHandler.d.ts +14 -14
- package/dist/types/Display.d.ts +141 -141
- package/dist/types/EventHandler.d.ts +34 -34
- package/dist/types/Font.d.ts +15 -15
- package/dist/types/FontResolver.d.ts +4 -4
- package/dist/types/Graphics.d.ts +172 -172
- package/dist/types/HitCanvas.d.ts +14 -14
- package/dist/types/HitRegionSpecification.d.ts +15 -15
- package/dist/types/PathResolver.d.ts +10 -10
- package/dist/types/Range.d.ts +4 -4
- package/dist/types/Widget.d.ts +118 -118
- package/dist/types/XMLNode.d.ts +83 -83
- package/dist/types/actions/Action.d.ts +10 -10
- package/dist/types/actions/ExecuteCommandAction.d.ts +10 -10
- package/dist/types/actions/ExecuteJavaScriptAction.d.ts +10 -10
- package/dist/types/actions/OpenDisplayAction.d.ts +11 -11
- package/dist/types/actions/OpenFileAction.d.ts +8 -8
- package/dist/types/actions/OpenWebpageAction.d.ts +8 -8
- package/dist/types/actions/PlaySoundAction.d.ts +8 -8
- package/dist/types/actions/WritePVAction.d.ts +11 -11
- package/dist/types/actions.d.ts +10 -10
- package/dist/types/events.d.ts +41 -41
- package/dist/types/index.d.ts +11 -11
- package/dist/types/macros.d.ts +9 -9
- package/dist/types/positioning.d.ts +57 -57
- package/dist/types/properties.d.ts +89 -89
- package/dist/types/pv/FormulaPVProvider.d.ts +10 -10
- package/dist/types/pv/LocalPV.d.ts +10 -10
- package/dist/types/pv/PV.d.ts +62 -62
- package/dist/types/pv/PVEngine.d.ts +57 -57
- package/dist/types/pv/PVProvider.d.ts +8 -8
- package/dist/types/pv/Sample.d.ts +11 -11
- package/dist/types/pv/SimulatedPVProvider.d.ts +10 -10
- package/dist/types/pv/formulas/CompiledFormula.d.ts +23 -23
- package/dist/types/pv/formulas/FormulaCompiler.d.ts +5 -5
- package/dist/types/pv/formulas/ast.d.ts +60 -60
- package/dist/types/pv/formulas/manual-test.d.ts +1 -1
- package/dist/types/pv/sim.d.ts +60 -60
- package/dist/types/rules.d.ts +26 -26
- package/dist/types/scale.d.ts +39 -39
- package/dist/types/scripting/ActionWrapper.d.ts +12 -12
- package/dist/types/scripting/ArrayList.d.ts +5 -5
- package/dist/types/scripting/ColorFontUtil.d.ts +19 -19
- package/dist/types/scripting/ConsoleUtil.d.ts +8 -8
- package/dist/types/scripting/DataUtil.d.ts +6 -6
- package/dist/types/scripting/DisplayWrapper.d.ts +9 -9
- package/dist/types/scripting/FileUtil.d.ts +6 -6
- package/dist/types/scripting/GUIUtil.d.ts +11 -11
- package/dist/types/scripting/Java.d.ts +84 -84
- package/dist/types/scripting/MessageDialog.d.ts +8 -8
- package/dist/types/scripting/PVUtil.d.ts +19 -19
- package/dist/types/scripting/PVWrapper.d.ts +11 -11
- package/dist/types/scripting/ScriptEngine.d.ts +12 -12
- package/dist/types/scripting/ScriptUtil.d.ts +7 -7
- package/dist/types/scripting/SpreadSheetTable.d.ts +43 -43
- package/dist/types/scripting/SpreadSheetTableWrapper.d.ts +30 -30
- package/dist/types/scripting/TableWrapper.d.ts +10 -10
- package/dist/types/scripting/WidgetWrapper.d.ts +28 -28
- package/dist/types/scripting/XYGraphWrapper.d.ts +9 -9
- package/dist/types/scripting/utils.d.ts +4 -4
- package/dist/types/scripts.d.ts +19 -19
- package/dist/types/utils.d.ts +2 -2
- package/dist/types/widgets/controls/ActionButton.d.ts +23 -23
- package/dist/types/widgets/controls/BooleanButton.d.ts +37 -37
- package/dist/types/widgets/controls/BooleanSwitch.d.ts +32 -32
- package/dist/types/widgets/controls/CheckBox.d.ts +24 -24
- package/dist/types/widgets/controls/ChoiceButton.d.ts +23 -23
- package/dist/types/widgets/controls/Combo.d.ts +20 -20
- package/dist/types/widgets/controls/ImageBooleanButton.d.ts +33 -33
- package/dist/types/widgets/controls/MenuButton.d.ts +18 -18
- package/dist/types/widgets/controls/NativeButton.d.ts +9 -9
- package/dist/types/widgets/controls/RadioBox.d.ts +26 -26
- package/dist/types/widgets/controls/Scrollbar.d.ts +51 -51
- package/dist/types/widgets/controls/TextInput.d.ts +27 -27
- package/dist/types/widgets/figures/Ramp.d.ts +36 -36
- package/dist/types/widgets/graphics/Arc.d.ts +15 -15
- package/dist/types/widgets/graphics/Ellipse.d.ts +20 -20
- package/dist/types/widgets/graphics/ImageHelper.d.ts +3 -3
- package/dist/types/widgets/graphics/ImageWidget.d.ts +19 -19
- package/dist/types/widgets/graphics/Label.d.ts +15 -15
- package/dist/types/widgets/graphics/Polygon.d.ts +19 -19
- package/dist/types/widgets/graphics/Polyline.d.ts +20 -20
- package/dist/types/widgets/graphics/Rectangle.d.ts +20 -20
- package/dist/types/widgets/graphics/RoundedRectangle.d.ts +22 -22
- package/dist/types/widgets/monitors/ByteMonitor.d.ts +27 -27
- package/dist/types/widgets/monitors/Gauge.d.ts +40 -40
- package/dist/types/widgets/monitors/ImageBooleanIndicator.d.ts +25 -25
- package/dist/types/widgets/monitors/IntensityGraph.d.ts +43 -43
- package/dist/types/widgets/monitors/LED.d.ts +37 -37
- package/dist/types/widgets/monitors/LinearScale.d.ts +66 -66
- package/dist/types/widgets/monitors/Meter.d.ts +39 -39
- package/dist/types/widgets/monitors/ProgressBar.d.ts +64 -64
- package/dist/types/widgets/monitors/Tank.d.ts +52 -52
- package/dist/types/widgets/monitors/TextUpdate.d.ts +17 -17
- package/dist/types/widgets/monitors/Thermometer.d.ts +58 -58
- package/dist/types/widgets/monitors/xygraph/Axis.d.ts +41 -41
- package/dist/types/widgets/monitors/xygraph/CommandBuffer.d.ts +26 -26
- package/dist/types/widgets/monitors/xygraph/PlotAreaRegion.d.ts +22 -22
- package/dist/types/widgets/monitors/xygraph/Trace.d.ts +38 -38
- package/dist/types/widgets/monitors/xygraph/TraceBuffer.d.ts +32 -32
- package/dist/types/widgets/monitors/xygraph/XYGraph.d.ts +44 -44
- package/dist/types/widgets/monitors/xygraph/XYGraphToolbar.d.ts +54 -54
- package/dist/types/widgets/others/AbstractContainerWidget.d.ts +21 -21
- package/dist/types/widgets/others/Connection.d.ts +39 -39
- package/dist/types/widgets/others/DisplayWidget.d.ts +13 -13
- package/dist/types/widgets/others/GroupingContainer.d.ts +8 -8
- package/dist/types/widgets/others/LinkingContainer.d.ts +19 -19
- package/dist/types/widgets/others/TabbedContainer.d.ts +24 -24
- package/dist/types/widgets/others/Table.d.ts +22 -22
- package/dist/types/widgets/others/WebBrowser.d.ts +14 -14
- package/package.json +4 -4
- package/dist/fonts/LiberationMono-Bold.woff +0 -0
- package/dist/fonts/LiberationMono-BoldItalic.woff +0 -0
- package/dist/fonts/LiberationMono-Italic.woff +0 -0
- package/dist/fonts/LiberationMono-Regular.woff +0 -0
- package/dist/fonts/LiberationSans-Bold.woff +0 -0
- package/dist/fonts/LiberationSans-BoldItalic.woff +0 -0
- package/dist/fonts/LiberationSans-Italic.woff +0 -0
- package/dist/fonts/LiberationSans-Regular.woff +0 -0
- package/dist/fonts/LiberationSerif-Bold.woff +0 -0
- package/dist/fonts/LiberationSerif-BoldItalic.woff +0 -0
- package/dist/fonts/LiberationSerif-Italic.woff +0 -0
- package/dist/fonts/LiberationSerif-Regular.woff +0 -0
package/dist/types/XMLNode.d.ts
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
import { ActionSet } from "./actions";
|
|
2
|
-
import { Color } from "./Color";
|
|
3
|
-
import { ColorMap } from "./ColorMap";
|
|
4
|
-
import { Font } from "./Font";
|
|
5
|
-
import { MacroSet } from "./macros";
|
|
6
|
-
import { RuleSet } from "./rules";
|
|
7
|
-
import { AutoScaleWidgets, ScaleOptions } from "./scale";
|
|
8
|
-
import { ScriptSet } from "./scripts";
|
|
9
|
-
export declare class XMLNode {
|
|
10
|
-
private node;
|
|
11
|
-
constructor(node: Node);
|
|
12
|
-
get name(): string;
|
|
13
|
-
static parseFromXML(xml: string): XMLNode;
|
|
14
|
-
/**
|
|
15
|
-
* Searches for a direct child with the specified name.
|
|
16
|
-
*
|
|
17
|
-
* @throws when no such child was found
|
|
18
|
-
*/
|
|
19
|
-
getNode(name: string): XMLNode;
|
|
20
|
-
/**
|
|
21
|
-
* Searches for all direct children with the specified name.
|
|
22
|
-
* If this name is undefined, all children are returned.
|
|
23
|
-
*/
|
|
24
|
-
getNodes(name?: string): XMLNode[];
|
|
25
|
-
hasNode(name: string): boolean;
|
|
26
|
-
hasAttribute(name: string): boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Returns the inner content of this node as a string
|
|
29
|
-
*/
|
|
30
|
-
getTextContent(defaultValue?: string): string;
|
|
31
|
-
/**
|
|
32
|
-
* Parses the child node contents of the given parent node as a string.
|
|
33
|
-
*
|
|
34
|
-
* @throws when no such child was found and defaultValue was undefined
|
|
35
|
-
*/
|
|
36
|
-
getString(name: string, defaultValue?: string): string;
|
|
37
|
-
getStringAttribute(name: string): string;
|
|
38
|
-
/**
|
|
39
|
-
* Parses the child node contents of the given parent node as a float.
|
|
40
|
-
*
|
|
41
|
-
* @throws when no such child was found and defaultValue was undefined.
|
|
42
|
-
*/
|
|
43
|
-
getFloat(name: string, defaultValue?: number): number;
|
|
44
|
-
/**
|
|
45
|
-
* Parses the child node contents of the given parent node as an integer.
|
|
46
|
-
*
|
|
47
|
-
* @throws when no such child was found and defaultValue was undefined.
|
|
48
|
-
*/
|
|
49
|
-
getInt(name: string, defaultValue?: number): number;
|
|
50
|
-
getIntAttribute(name: string): number;
|
|
51
|
-
/**
|
|
52
|
-
* Parses the child node contents of the given parent node as a boolean.
|
|
53
|
-
*
|
|
54
|
-
* @throws when no such child was found and defaultValue was undefined.
|
|
55
|
-
*/
|
|
56
|
-
getBoolean(name: string, defaultValue?: boolean): boolean;
|
|
57
|
-
getBooleanAttribute(name: string, defaultValue?: boolean): boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Parses the child node contents as a color.
|
|
60
|
-
*
|
|
61
|
-
* @throws when no such child was found and defaultValue was undefined.
|
|
62
|
-
*/
|
|
63
|
-
getColor(name: string, defaultValue?: Color): Color;
|
|
64
|
-
/**
|
|
65
|
-
* Parses the child node contents as a font.
|
|
66
|
-
*/
|
|
67
|
-
getFont(name: string): Font;
|
|
68
|
-
getPoints(name: string): {
|
|
69
|
-
x: number;
|
|
70
|
-
y: number;
|
|
71
|
-
}[];
|
|
72
|
-
getStringList(name: string): string[];
|
|
73
|
-
getStringTable(name: string): string[][];
|
|
74
|
-
getScripts(name: string): ScriptSet;
|
|
75
|
-
getScaleOptions(name: string): ScaleOptions;
|
|
76
|
-
getAutoScaleWidgets(name: string): AutoScaleWidgets;
|
|
77
|
-
getColorMap(name: string): ColorMap | undefined;
|
|
78
|
-
getRules(name: string): RuleSet;
|
|
79
|
-
getMacros(name: string): MacroSet;
|
|
80
|
-
getActions(name: string): ActionSet;
|
|
81
|
-
private parseColorNode;
|
|
82
|
-
private findChild;
|
|
83
|
-
}
|
|
1
|
+
import { ActionSet } from "./actions";
|
|
2
|
+
import { Color } from "./Color";
|
|
3
|
+
import { ColorMap } from "./ColorMap";
|
|
4
|
+
import { Font } from "./Font";
|
|
5
|
+
import { MacroSet } from "./macros";
|
|
6
|
+
import { RuleSet } from "./rules";
|
|
7
|
+
import { AutoScaleWidgets, ScaleOptions } from "./scale";
|
|
8
|
+
import { ScriptSet } from "./scripts";
|
|
9
|
+
export declare class XMLNode {
|
|
10
|
+
private node;
|
|
11
|
+
constructor(node: Node);
|
|
12
|
+
get name(): string;
|
|
13
|
+
static parseFromXML(xml: string): XMLNode;
|
|
14
|
+
/**
|
|
15
|
+
* Searches for a direct child with the specified name.
|
|
16
|
+
*
|
|
17
|
+
* @throws when no such child was found
|
|
18
|
+
*/
|
|
19
|
+
getNode(name: string): XMLNode;
|
|
20
|
+
/**
|
|
21
|
+
* Searches for all direct children with the specified name.
|
|
22
|
+
* If this name is undefined, all children are returned.
|
|
23
|
+
*/
|
|
24
|
+
getNodes(name?: string): XMLNode[];
|
|
25
|
+
hasNode(name: string): boolean;
|
|
26
|
+
hasAttribute(name: string): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Returns the inner content of this node as a string
|
|
29
|
+
*/
|
|
30
|
+
getTextContent(defaultValue?: string): string;
|
|
31
|
+
/**
|
|
32
|
+
* Parses the child node contents of the given parent node as a string.
|
|
33
|
+
*
|
|
34
|
+
* @throws when no such child was found and defaultValue was undefined
|
|
35
|
+
*/
|
|
36
|
+
getString(name: string, defaultValue?: string): string;
|
|
37
|
+
getStringAttribute(name: string): string;
|
|
38
|
+
/**
|
|
39
|
+
* Parses the child node contents of the given parent node as a float.
|
|
40
|
+
*
|
|
41
|
+
* @throws when no such child was found and defaultValue was undefined.
|
|
42
|
+
*/
|
|
43
|
+
getFloat(name: string, defaultValue?: number): number;
|
|
44
|
+
/**
|
|
45
|
+
* Parses the child node contents of the given parent node as an integer.
|
|
46
|
+
*
|
|
47
|
+
* @throws when no such child was found and defaultValue was undefined.
|
|
48
|
+
*/
|
|
49
|
+
getInt(name: string, defaultValue?: number): number;
|
|
50
|
+
getIntAttribute(name: string): number;
|
|
51
|
+
/**
|
|
52
|
+
* Parses the child node contents of the given parent node as a boolean.
|
|
53
|
+
*
|
|
54
|
+
* @throws when no such child was found and defaultValue was undefined.
|
|
55
|
+
*/
|
|
56
|
+
getBoolean(name: string, defaultValue?: boolean): boolean;
|
|
57
|
+
getBooleanAttribute(name: string, defaultValue?: boolean): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Parses the child node contents as a color.
|
|
60
|
+
*
|
|
61
|
+
* @throws when no such child was found and defaultValue was undefined.
|
|
62
|
+
*/
|
|
63
|
+
getColor(name: string, defaultValue?: Color): Color;
|
|
64
|
+
/**
|
|
65
|
+
* Parses the child node contents as a font.
|
|
66
|
+
*/
|
|
67
|
+
getFont(name: string): Font;
|
|
68
|
+
getPoints(name: string): {
|
|
69
|
+
x: number;
|
|
70
|
+
y: number;
|
|
71
|
+
}[];
|
|
72
|
+
getStringList(name: string): string[];
|
|
73
|
+
getStringTable(name: string): string[][];
|
|
74
|
+
getScripts(name: string): ScriptSet;
|
|
75
|
+
getScaleOptions(name: string): ScaleOptions;
|
|
76
|
+
getAutoScaleWidgets(name: string): AutoScaleWidgets;
|
|
77
|
+
getColorMap(name: string): ColorMap | undefined;
|
|
78
|
+
getRules(name: string): RuleSet;
|
|
79
|
+
getMacros(name: string): MacroSet;
|
|
80
|
+
getActions(name: string): ActionSet;
|
|
81
|
+
private parseColorNode;
|
|
82
|
+
private findChild;
|
|
83
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { PropertySet } from "../properties";
|
|
2
|
-
import { Widget } from "../Widget";
|
|
3
|
-
import { XMLNode } from "../XMLNode";
|
|
4
|
-
export declare abstract class Action {
|
|
5
|
-
properties: PropertySet;
|
|
6
|
-
constructor();
|
|
7
|
-
parseNode(node: XMLNode): void;
|
|
8
|
-
abstract execute(widget: Widget): void;
|
|
9
|
-
get description(): string;
|
|
10
|
-
}
|
|
1
|
+
import { PropertySet } from "../properties";
|
|
2
|
+
import { Widget } from "../Widget";
|
|
3
|
+
import { XMLNode } from "../XMLNode";
|
|
4
|
+
export declare abstract class Action {
|
|
5
|
+
properties: PropertySet;
|
|
6
|
+
constructor();
|
|
7
|
+
parseNode(node: XMLNode): void;
|
|
8
|
+
abstract execute(widget: Widget): void;
|
|
9
|
+
get description(): string;
|
|
10
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Widget } from "../Widget";
|
|
2
|
-
import { Action } from "./Action";
|
|
3
|
-
export declare class ExecuteCommandAction extends Action {
|
|
4
|
-
constructor();
|
|
5
|
-
execute(widget: Widget): void;
|
|
6
|
-
get command(): string;
|
|
7
|
-
get commandDirectory(): string;
|
|
8
|
-
get waitTime(): number;
|
|
9
|
-
toString(): string;
|
|
10
|
-
}
|
|
1
|
+
import { Widget } from "../Widget";
|
|
2
|
+
import { Action } from "./Action";
|
|
3
|
+
export declare class ExecuteCommandAction extends Action {
|
|
4
|
+
constructor();
|
|
5
|
+
execute(widget: Widget): void;
|
|
6
|
+
get command(): string;
|
|
7
|
+
get commandDirectory(): string;
|
|
8
|
+
get waitTime(): number;
|
|
9
|
+
toString(): string;
|
|
10
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Widget } from "../Widget";
|
|
2
|
-
import { Action } from "./Action";
|
|
3
|
-
export declare class ExecuteJavaScriptAction extends Action {
|
|
4
|
-
constructor();
|
|
5
|
-
execute(widget: Widget): void;
|
|
6
|
-
get path(): string;
|
|
7
|
-
get embedded(): boolean;
|
|
8
|
-
get scriptText(): string;
|
|
9
|
-
toString(): string;
|
|
10
|
-
}
|
|
1
|
+
import { Widget } from "../Widget";
|
|
2
|
+
import { Action } from "./Action";
|
|
3
|
+
export declare class ExecuteJavaScriptAction extends Action {
|
|
4
|
+
constructor();
|
|
5
|
+
execute(widget: Widget): void;
|
|
6
|
+
get path(): string;
|
|
7
|
+
get embedded(): boolean;
|
|
8
|
+
get scriptText(): string;
|
|
9
|
+
toString(): string;
|
|
10
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { MacroSet } from "../macros";
|
|
2
|
-
import { Widget } from "../Widget";
|
|
3
|
-
import { Action } from "./Action";
|
|
4
|
-
export declare class OpenDisplayAction extends Action {
|
|
5
|
-
constructor();
|
|
6
|
-
execute(widget: Widget): void;
|
|
7
|
-
get macros(): MacroSet;
|
|
8
|
-
get path(): string;
|
|
9
|
-
get mode(): number;
|
|
10
|
-
toString(): string;
|
|
11
|
-
}
|
|
1
|
+
import { MacroSet } from "../macros";
|
|
2
|
+
import { Widget } from "../Widget";
|
|
3
|
+
import { Action } from "./Action";
|
|
4
|
+
export declare class OpenDisplayAction extends Action {
|
|
5
|
+
constructor();
|
|
6
|
+
execute(widget: Widget): void;
|
|
7
|
+
get macros(): MacroSet;
|
|
8
|
+
get path(): string;
|
|
9
|
+
get mode(): number;
|
|
10
|
+
toString(): string;
|
|
11
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Widget } from "../Widget";
|
|
2
|
-
import { Action } from "./Action";
|
|
3
|
-
export declare class OpenFileAction extends Action {
|
|
4
|
-
constructor();
|
|
5
|
-
execute(widget: Widget): void;
|
|
6
|
-
get path(): string;
|
|
7
|
-
toString(): string;
|
|
8
|
-
}
|
|
1
|
+
import { Widget } from "../Widget";
|
|
2
|
+
import { Action } from "./Action";
|
|
3
|
+
export declare class OpenFileAction extends Action {
|
|
4
|
+
constructor();
|
|
5
|
+
execute(widget: Widget): void;
|
|
6
|
+
get path(): string;
|
|
7
|
+
toString(): string;
|
|
8
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Widget } from "../Widget";
|
|
2
|
-
import { Action } from "./Action";
|
|
3
|
-
export declare class OpenWebpageAction extends Action {
|
|
4
|
-
constructor();
|
|
5
|
-
execute(widget: Widget): void;
|
|
6
|
-
get hyperlink(): string;
|
|
7
|
-
toString(): string;
|
|
8
|
-
}
|
|
1
|
+
import { Widget } from "../Widget";
|
|
2
|
+
import { Action } from "./Action";
|
|
3
|
+
export declare class OpenWebpageAction extends Action {
|
|
4
|
+
constructor();
|
|
5
|
+
execute(widget: Widget): void;
|
|
6
|
+
get hyperlink(): string;
|
|
7
|
+
toString(): string;
|
|
8
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Widget } from "../Widget";
|
|
2
|
-
import { Action } from "./Action";
|
|
3
|
-
export declare class PlaySoundAction extends Action {
|
|
4
|
-
constructor();
|
|
5
|
-
execute(widget: Widget): void;
|
|
6
|
-
get path(): string;
|
|
7
|
-
toString(): string;
|
|
8
|
-
}
|
|
1
|
+
import { Widget } from "../Widget";
|
|
2
|
+
import { Action } from "./Action";
|
|
3
|
+
export declare class PlaySoundAction extends Action {
|
|
4
|
+
constructor();
|
|
5
|
+
execute(widget: Widget): void;
|
|
6
|
+
get path(): string;
|
|
7
|
+
toString(): string;
|
|
8
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Widget } from "../Widget";
|
|
2
|
-
import { Action } from "./Action";
|
|
3
|
-
export declare class WritePVAction extends Action {
|
|
4
|
-
constructor();
|
|
5
|
-
execute(widget: Widget): void;
|
|
6
|
-
get pvName(): string;
|
|
7
|
-
get value(): string;
|
|
8
|
-
get timeout(): number;
|
|
9
|
-
get confirmMessage(): string;
|
|
10
|
-
toString(): string;
|
|
11
|
-
}
|
|
1
|
+
import { Widget } from "../Widget";
|
|
2
|
+
import { Action } from "./Action";
|
|
3
|
+
export declare class WritePVAction extends Action {
|
|
4
|
+
constructor();
|
|
5
|
+
execute(widget: Widget): void;
|
|
6
|
+
get pvName(): string;
|
|
7
|
+
get value(): string;
|
|
8
|
+
get timeout(): number;
|
|
9
|
+
get confirmMessage(): string;
|
|
10
|
+
toString(): string;
|
|
11
|
+
}
|
package/dist/types/actions.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Action } from "./actions/Action";
|
|
2
|
-
export declare class ActionSet {
|
|
3
|
-
actions: (Action | null)[];
|
|
4
|
-
hookFirstActionToClick: boolean;
|
|
5
|
-
hookAllActionsToClick: boolean;
|
|
6
|
-
add(action: Action | null): void;
|
|
7
|
-
isClickable(): boolean | 0;
|
|
8
|
-
getAction(index: number): Action | null | undefined;
|
|
9
|
-
toString(): string;
|
|
10
|
-
}
|
|
1
|
+
import { Action } from "./actions/Action";
|
|
2
|
+
export declare class ActionSet {
|
|
3
|
+
actions: (Action | null)[];
|
|
4
|
+
hookFirstActionToClick: boolean;
|
|
5
|
+
hookAllActionsToClick: boolean;
|
|
6
|
+
add(action: Action | null): void;
|
|
7
|
+
isClickable(): boolean | 0;
|
|
8
|
+
getAction(index: number): Action | null | undefined;
|
|
9
|
+
toString(): string;
|
|
10
|
+
}
|
package/dist/types/events.d.ts
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
export interface OPIEvent {
|
|
2
|
-
detail?: any;
|
|
3
|
-
}
|
|
4
|
-
export interface OPIEventMap {
|
|
5
|
-
[index: string]: OPIEvent;
|
|
6
|
-
closedisplay: CloseDisplayEvent;
|
|
7
|
-
opendisplay: OpenDisplayEvent;
|
|
8
|
-
openpv: OpenPVEvent;
|
|
9
|
-
selection: SelectionEvent;
|
|
10
|
-
scale: ScaleEvent;
|
|
11
|
-
}
|
|
12
|
-
export interface SelectionEvent extends OPIEvent {
|
|
13
|
-
selected: string[];
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* A script or a button requested to open another display.
|
|
17
|
-
*/
|
|
18
|
-
export interface OpenDisplayEvent extends OPIEvent {
|
|
19
|
-
path: string;
|
|
20
|
-
replace: boolean;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* The user has selected a widget with a navigable PV.
|
|
24
|
-
*/
|
|
25
|
-
export interface OpenPVEvent extends OPIEvent {
|
|
26
|
-
pvName: string;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* A script or a button requested to close the current display.
|
|
30
|
-
*/
|
|
31
|
-
export interface CloseDisplayEvent extends OPIEvent {
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* This display scale has changed.
|
|
35
|
-
*/
|
|
36
|
-
export interface ScaleEvent extends OPIEvent {
|
|
37
|
-
scale: number;
|
|
38
|
-
}
|
|
39
|
-
export type OPIEventHandlers = {
|
|
40
|
-
[index: string]: Array<(ev: OPIEvent) => void>;
|
|
41
|
-
};
|
|
1
|
+
export interface OPIEvent {
|
|
2
|
+
detail?: any;
|
|
3
|
+
}
|
|
4
|
+
export interface OPIEventMap {
|
|
5
|
+
[index: string]: OPIEvent;
|
|
6
|
+
closedisplay: CloseDisplayEvent;
|
|
7
|
+
opendisplay: OpenDisplayEvent;
|
|
8
|
+
openpv: OpenPVEvent;
|
|
9
|
+
selection: SelectionEvent;
|
|
10
|
+
scale: ScaleEvent;
|
|
11
|
+
}
|
|
12
|
+
export interface SelectionEvent extends OPIEvent {
|
|
13
|
+
selected: string[];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A script or a button requested to open another display.
|
|
17
|
+
*/
|
|
18
|
+
export interface OpenDisplayEvent extends OPIEvent {
|
|
19
|
+
path: string;
|
|
20
|
+
replace: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The user has selected a widget with a navigable PV.
|
|
24
|
+
*/
|
|
25
|
+
export interface OpenPVEvent extends OPIEvent {
|
|
26
|
+
pvName: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* A script or a button requested to close the current display.
|
|
30
|
+
*/
|
|
31
|
+
export interface CloseDisplayEvent extends OPIEvent {
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* This display scale has changed.
|
|
35
|
+
*/
|
|
36
|
+
export interface ScaleEvent extends OPIEvent {
|
|
37
|
+
scale: number;
|
|
38
|
+
}
|
|
39
|
+
export type OPIEventHandlers = {
|
|
40
|
+
[index: string]: Array<(ev: OPIEvent) => void>;
|
|
41
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { ConsoleHandler, DefaultConsoleHandler } from "./ConsoleHandler";
|
|
2
|
-
export { DefaultDialogHandler, DialogHandler } from "./DialogHandler";
|
|
3
|
-
export { Display } from "./Display";
|
|
4
|
-
export { Font } from "./Font";
|
|
5
|
-
export { FontResolver } from "./FontResolver";
|
|
6
|
-
export { DefaultPathResolver, PathResolver } from "./PathResolver";
|
|
7
|
-
export { CompiledFormula, DataSourceStatus, } from "./pv/formulas/CompiledFormula";
|
|
8
|
-
export { FormulaCompiler } from "./pv/formulas/FormulaCompiler";
|
|
9
|
-
export { AlarmSeverity, PV } from "./pv/PV";
|
|
10
|
-
export { PVProvider } from "./pv/PVProvider";
|
|
11
|
-
export { Sample } from "./pv/Sample";
|
|
1
|
+
export { ConsoleHandler, DefaultConsoleHandler } from "./ConsoleHandler";
|
|
2
|
+
export { DefaultDialogHandler, DialogHandler } from "./DialogHandler";
|
|
3
|
+
export { Display } from "./Display";
|
|
4
|
+
export { Font } from "./Font";
|
|
5
|
+
export { FontResolver } from "./FontResolver";
|
|
6
|
+
export { DefaultPathResolver, PathResolver } from "./PathResolver";
|
|
7
|
+
export { CompiledFormula, DataSourceStatus, } from "./pv/formulas/CompiledFormula";
|
|
8
|
+
export { FormulaCompiler } from "./pv/formulas/FormulaCompiler";
|
|
9
|
+
export { AlarmSeverity, PV } from "./pv/PV";
|
|
10
|
+
export { PVProvider } from "./pv/PVProvider";
|
|
11
|
+
export { Sample } from "./pv/Sample";
|
package/dist/types/macros.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare class MacroSet {
|
|
2
|
-
includeParentMacros: boolean;
|
|
3
|
-
macros: {
|
|
4
|
-
[key: string]: string;
|
|
5
|
-
};
|
|
6
|
-
clear(): void;
|
|
7
|
-
set(name: string, replacement: string): void;
|
|
8
|
-
get(name: string): string | undefined;
|
|
9
|
-
}
|
|
1
|
+
export declare class MacroSet {
|
|
2
|
+
includeParentMacros: boolean;
|
|
3
|
+
macros: {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
};
|
|
6
|
+
clear(): void;
|
|
7
|
+
set(name: string, replacement: string): void;
|
|
8
|
+
get(name: string): string | undefined;
|
|
9
|
+
}
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
export interface Bounds {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
|
-
width: number;
|
|
5
|
-
height: number;
|
|
6
|
-
}
|
|
7
|
-
export interface Point {
|
|
8
|
-
x: number;
|
|
9
|
-
y: number;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Sets the specified attributes assuming they use border-box
|
|
13
|
-
* coordinates. This is effectively the same as shrinking by
|
|
14
|
-
* half the stroke size.
|
|
15
|
-
*/
|
|
16
|
-
export declare function toBorderBox(x: number, y: number, width: number, height: number, lineWidth: number): Bounds;
|
|
17
|
-
export declare function outline(x: number, y: number, width: number, height: number, strokeWidth: number): Bounds;
|
|
18
|
-
export declare function rotatePoint(x: number, y: number, cx: number, cy: number, angle: number): Point;
|
|
19
|
-
/**
|
|
20
|
-
* Returns new bounds where the width and height are shrinked.
|
|
21
|
-
*/
|
|
22
|
-
export declare function shrink(original: Bounds, v: number, h?: number): Bounds;
|
|
23
|
-
export declare function crispen(original: Bounds): Bounds;
|
|
24
|
-
export declare function intersect(area1: Bounds, area2: Bounds): Bounds;
|
|
25
|
-
export declare function translatePoint(point: Point, dx: number, dy: number): {
|
|
26
|
-
x: number;
|
|
27
|
-
y: number;
|
|
28
|
-
};
|
|
29
|
-
export declare function translatePoints(points: Point[], dx: number, dy: number): {
|
|
30
|
-
x: number;
|
|
31
|
-
y: number;
|
|
32
|
-
}[];
|
|
33
|
-
export declare function toRadians(degrees: number): number;
|
|
34
|
-
export declare function getDistance(p1: Point, p2: Point): number;
|
|
35
|
-
export declare function findRelativePoint(p0: Point, p1: Point, distanceRatio: number): Point;
|
|
36
|
-
export declare function convertPolarToCartesian(r: number, theta: number, bounds: Bounds): Point;
|
|
37
|
-
export declare function convertPolarToCartesian2(rx: number, ry: number, theta: number): Point;
|
|
38
|
-
/**
|
|
39
|
-
* Convert a point to a polar point
|
|
40
|
-
*
|
|
41
|
-
* @param pole pole of the polar coordinate system
|
|
42
|
-
* @param point the point to be converted
|
|
43
|
-
*/
|
|
44
|
-
export declare function convertCartesianToPolar(pole: Point, point: Point): PolarPoint;
|
|
45
|
-
export declare class PolarPoint {
|
|
46
|
-
readonly r: number;
|
|
47
|
-
readonly theta: number;
|
|
48
|
-
constructor(r: number, theta: number);
|
|
49
|
-
/**
|
|
50
|
-
* Transform the polar point to the {@link Point} in rectangular coordinates.
|
|
51
|
-
* The rectangular coordinates has the same origin as the polar coordinates.
|
|
52
|
-
*
|
|
53
|
-
* @return the point in rectangular coordinates
|
|
54
|
-
*/
|
|
55
|
-
toPoint(): Point;
|
|
56
|
-
}
|
|
57
|
-
export declare function scalePoints(points: Point[], scale: number): Point[];
|
|
1
|
+
export interface Bounds {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
}
|
|
7
|
+
export interface Point {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Sets the specified attributes assuming they use border-box
|
|
13
|
+
* coordinates. This is effectively the same as shrinking by
|
|
14
|
+
* half the stroke size.
|
|
15
|
+
*/
|
|
16
|
+
export declare function toBorderBox(x: number, y: number, width: number, height: number, lineWidth: number): Bounds;
|
|
17
|
+
export declare function outline(x: number, y: number, width: number, height: number, strokeWidth: number): Bounds;
|
|
18
|
+
export declare function rotatePoint(x: number, y: number, cx: number, cy: number, angle: number): Point;
|
|
19
|
+
/**
|
|
20
|
+
* Returns new bounds where the width and height are shrinked.
|
|
21
|
+
*/
|
|
22
|
+
export declare function shrink(original: Bounds, v: number, h?: number): Bounds;
|
|
23
|
+
export declare function crispen(original: Bounds): Bounds;
|
|
24
|
+
export declare function intersect(area1: Bounds, area2: Bounds): Bounds;
|
|
25
|
+
export declare function translatePoint(point: Point, dx: number, dy: number): {
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
};
|
|
29
|
+
export declare function translatePoints(points: Point[], dx: number, dy: number): {
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
}[];
|
|
33
|
+
export declare function toRadians(degrees: number): number;
|
|
34
|
+
export declare function getDistance(p1: Point, p2: Point): number;
|
|
35
|
+
export declare function findRelativePoint(p0: Point, p1: Point, distanceRatio: number): Point;
|
|
36
|
+
export declare function convertPolarToCartesian(r: number, theta: number, bounds: Bounds): Point;
|
|
37
|
+
export declare function convertPolarToCartesian2(rx: number, ry: number, theta: number): Point;
|
|
38
|
+
/**
|
|
39
|
+
* Convert a point to a polar point
|
|
40
|
+
*
|
|
41
|
+
* @param pole pole of the polar coordinate system
|
|
42
|
+
* @param point the point to be converted
|
|
43
|
+
*/
|
|
44
|
+
export declare function convertCartesianToPolar(pole: Point, point: Point): PolarPoint;
|
|
45
|
+
export declare class PolarPoint {
|
|
46
|
+
readonly r: number;
|
|
47
|
+
readonly theta: number;
|
|
48
|
+
constructor(r: number, theta: number);
|
|
49
|
+
/**
|
|
50
|
+
* Transform the polar point to the {@link Point} in rectangular coordinates.
|
|
51
|
+
* The rectangular coordinates has the same origin as the polar coordinates.
|
|
52
|
+
*
|
|
53
|
+
* @return the point in rectangular coordinates
|
|
54
|
+
*/
|
|
55
|
+
toPoint(): Point;
|
|
56
|
+
}
|
|
57
|
+
export declare function scalePoints(points: Point[], scale: number): Point[];
|