@yamcs/opi 1.2.6 → 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/LICENSE +0 -35
- 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 -0
- package/dist/types/Display.d.ts +141 -130
- package/dist/types/EventHandler.d.ts +34 -34
- package/dist/types/Font.d.ts +15 -13
- package/dist/types/FontResolver.d.ts +4 -0
- 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 -112
- package/dist/types/XMLNode.d.ts +83 -83
- package/dist/types/actions/Action.d.ts +10 -0
- package/dist/types/actions/ExecuteCommandAction.d.ts +10 -0
- package/dist/types/actions/ExecuteJavaScriptAction.d.ts +10 -0
- package/dist/types/actions/OpenDisplayAction.d.ts +11 -0
- package/dist/types/actions/OpenFileAction.d.ts +8 -0
- package/dist/types/actions/OpenWebpageAction.d.ts +8 -0
- package/dist/types/actions/PlaySoundAction.d.ts +8 -0
- package/dist/types/actions/WritePVAction.d.ts +11 -0
- package/dist/types/actions.d.ts +10 -64
- package/dist/types/events.d.ts +41 -41
- package/dist/types/index.d.ts +11 -8
- 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 -47
- 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 -0
- package/dist/types/scripting/ArrayList.d.ts +5 -0
- 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 -7
- package/dist/types/scripting/FileUtil.d.ts +6 -6
- package/dist/types/scripting/GUIUtil.d.ts +11 -8
- package/dist/types/scripting/Java.d.ts +84 -18
- package/dist/types/scripting/MessageDialog.d.ts +8 -5
- package/dist/types/scripting/PVUtil.d.ts +19 -16
- package/dist/types/scripting/PVWrapper.d.ts +11 -10
- package/dist/types/scripting/ScriptEngine.d.ts +12 -8
- package/dist/types/scripting/ScriptUtil.d.ts +7 -7
- package/dist/types/scripting/SpreadSheetTable.d.ts +43 -36
- package/dist/types/scripting/SpreadSheetTableWrapper.d.ts +30 -0
- package/dist/types/scripting/TableWrapper.d.ts +10 -9
- package/dist/types/scripting/WidgetWrapper.d.ts +28 -25
- package/dist/types/scripting/XYGraphWrapper.d.ts +9 -9
- package/dist/types/scripting/utils.d.ts +4 -3
- 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 -21
- 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 +5 -10
- 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/fonts/stylesheet.css +0 -83
- package/dist/opi.umd.js +0 -2
- package/dist/opi.umd.js.map +0 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { Color } from
|
|
2
|
-
import { Display } from
|
|
3
|
-
import { Graphics } from
|
|
4
|
-
import { Widget } from
|
|
5
|
-
import { AbstractContainerWidget } from
|
|
6
|
-
export declare class BooleanSwitch extends Widget {
|
|
7
|
-
private manualToggleState;
|
|
8
|
-
private shaftRegion?;
|
|
9
|
-
constructor(display: Display, parent: AbstractContainerWidget);
|
|
10
|
-
init(): void;
|
|
11
|
-
private toggleOn;
|
|
12
|
-
private toggleOff;
|
|
13
|
-
get booleanValue(): boolean;
|
|
14
|
-
draw(g: Graphics): void;
|
|
15
|
-
private drawHorizontal;
|
|
16
|
-
private drawVertical;
|
|
17
|
-
private drawPedestal;
|
|
18
|
-
private drawHorizontalBar;
|
|
19
|
-
private drawVerticalBar;
|
|
20
|
-
get bit(): number;
|
|
21
|
-
get dataType(): number;
|
|
22
|
-
get toggleButton(): boolean;
|
|
23
|
-
get pushActionIndex(): number;
|
|
24
|
-
get releaseActionIndex(): number;
|
|
25
|
-
get effect3d(): boolean;
|
|
26
|
-
get onColor(): Color;
|
|
27
|
-
get onLabel(): string;
|
|
28
|
-
get onState(): string;
|
|
29
|
-
get offColor(): Color;
|
|
30
|
-
get offLabel(): string;
|
|
31
|
-
get offState(): string;
|
|
32
|
-
}
|
|
1
|
+
import { Color } from "../../Color";
|
|
2
|
+
import { Display } from "../../Display";
|
|
3
|
+
import { Graphics } from "../../Graphics";
|
|
4
|
+
import { Widget } from "../../Widget";
|
|
5
|
+
import { AbstractContainerWidget } from "../others/AbstractContainerWidget";
|
|
6
|
+
export declare class BooleanSwitch extends Widget {
|
|
7
|
+
private manualToggleState;
|
|
8
|
+
private shaftRegion?;
|
|
9
|
+
constructor(display: Display, parent: AbstractContainerWidget);
|
|
10
|
+
init(): void;
|
|
11
|
+
private toggleOn;
|
|
12
|
+
private toggleOff;
|
|
13
|
+
get booleanValue(): boolean;
|
|
14
|
+
draw(g: Graphics): void;
|
|
15
|
+
private drawHorizontal;
|
|
16
|
+
private drawVertical;
|
|
17
|
+
private drawPedestal;
|
|
18
|
+
private drawHorizontalBar;
|
|
19
|
+
private drawVerticalBar;
|
|
20
|
+
get bit(): number;
|
|
21
|
+
get dataType(): number;
|
|
22
|
+
get toggleButton(): boolean;
|
|
23
|
+
get pushActionIndex(): number;
|
|
24
|
+
get releaseActionIndex(): number;
|
|
25
|
+
get effect3d(): boolean;
|
|
26
|
+
get onColor(): Color;
|
|
27
|
+
get onLabel(): string;
|
|
28
|
+
get onState(): string;
|
|
29
|
+
get offColor(): Color;
|
|
30
|
+
get offLabel(): string;
|
|
31
|
+
get offState(): string;
|
|
32
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { Color } from
|
|
2
|
-
import { Display } from
|
|
3
|
-
import { Font } from
|
|
4
|
-
import { Graphics } from
|
|
5
|
-
import { Widget } from
|
|
6
|
-
import { AbstractContainerWidget } from
|
|
7
|
-
export declare class CheckBox extends Widget {
|
|
8
|
-
private hovered;
|
|
9
|
-
private manualToggleState;
|
|
10
|
-
private areaRegion?;
|
|
11
|
-
constructor(display: Display, parent: AbstractContainerWidget);
|
|
12
|
-
init(): void;
|
|
13
|
-
private toggleOn;
|
|
14
|
-
private toggleOff;
|
|
15
|
-
get booleanValue(): boolean;
|
|
16
|
-
draw(g: Graphics): void;
|
|
17
|
-
get boxSize(): number;
|
|
18
|
-
get gap(): number;
|
|
19
|
-
get bit(): number;
|
|
20
|
-
get enabled(): boolean;
|
|
21
|
-
get selectedColor(): Color;
|
|
22
|
-
get font(): Font;
|
|
23
|
-
get label(): string;
|
|
24
|
-
}
|
|
1
|
+
import { Color } from "../../Color";
|
|
2
|
+
import { Display } from "../../Display";
|
|
3
|
+
import { Font } from "../../Font";
|
|
4
|
+
import { Graphics } from "../../Graphics";
|
|
5
|
+
import { Widget } from "../../Widget";
|
|
6
|
+
import { AbstractContainerWidget } from "../others/AbstractContainerWidget";
|
|
7
|
+
export declare class CheckBox extends Widget {
|
|
8
|
+
private hovered;
|
|
9
|
+
private manualToggleState;
|
|
10
|
+
private areaRegion?;
|
|
11
|
+
constructor(display: Display, parent: AbstractContainerWidget);
|
|
12
|
+
init(): void;
|
|
13
|
+
private toggleOn;
|
|
14
|
+
private toggleOff;
|
|
15
|
+
get booleanValue(): boolean;
|
|
16
|
+
draw(g: Graphics): void;
|
|
17
|
+
get boxSize(): number;
|
|
18
|
+
get gap(): number;
|
|
19
|
+
get bit(): number;
|
|
20
|
+
get enabled(): boolean;
|
|
21
|
+
get selectedColor(): Color;
|
|
22
|
+
get font(): Font;
|
|
23
|
+
get label(): string;
|
|
24
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { Color } from
|
|
2
|
-
import { Display } from
|
|
3
|
-
import { Font } from
|
|
4
|
-
import { Graphics } from
|
|
5
|
-
import { Widget } from
|
|
6
|
-
import { AbstractContainerWidget } from
|
|
7
|
-
export declare class ChoiceButton extends Widget {
|
|
8
|
-
private pushedItem?;
|
|
9
|
-
private itemRegions;
|
|
10
|
-
constructor(display: Display, parent: AbstractContainerWidget);
|
|
11
|
-
init(): void;
|
|
12
|
-
draw(g: Graphics): void;
|
|
13
|
-
private drawHorizontal;
|
|
14
|
-
private drawVertical;
|
|
15
|
-
private drawButton;
|
|
16
|
-
private writeValue;
|
|
17
|
-
get enabled(): boolean;
|
|
18
|
-
get font(): Font;
|
|
19
|
-
get horizontal(): boolean;
|
|
20
|
-
get items(): string[];
|
|
21
|
-
get itemsFromPV(): boolean;
|
|
22
|
-
get selectedColor(): Color;
|
|
23
|
-
}
|
|
1
|
+
import { Color } from "../../Color";
|
|
2
|
+
import { Display } from "../../Display";
|
|
3
|
+
import { Font } from "../../Font";
|
|
4
|
+
import { Graphics } from "../../Graphics";
|
|
5
|
+
import { Widget } from "../../Widget";
|
|
6
|
+
import { AbstractContainerWidget } from "../others/AbstractContainerWidget";
|
|
7
|
+
export declare class ChoiceButton extends Widget {
|
|
8
|
+
private pushedItem?;
|
|
9
|
+
private itemRegions;
|
|
10
|
+
constructor(display: Display, parent: AbstractContainerWidget);
|
|
11
|
+
init(): void;
|
|
12
|
+
draw(g: Graphics): void;
|
|
13
|
+
private drawHorizontal;
|
|
14
|
+
private drawVertical;
|
|
15
|
+
private drawButton;
|
|
16
|
+
private writeValue;
|
|
17
|
+
get enabled(): boolean;
|
|
18
|
+
get font(): Font;
|
|
19
|
+
get horizontal(): boolean;
|
|
20
|
+
get items(): string[];
|
|
21
|
+
get itemsFromPV(): boolean;
|
|
22
|
+
get selectedColor(): Color;
|
|
23
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { Display } from
|
|
2
|
-
import { Font } from
|
|
3
|
-
import { Graphics } from
|
|
4
|
-
import { Widget } from
|
|
5
|
-
import { AbstractContainerWidget } from
|
|
6
|
-
export declare class Combo extends Widget {
|
|
7
|
-
private areaRegion?;
|
|
8
|
-
private selectEl?;
|
|
9
|
-
constructor(display: Display, parent: AbstractContainerWidget);
|
|
10
|
-
init(): void;
|
|
11
|
-
draw(g: Graphics): void;
|
|
12
|
-
private writeValue;
|
|
13
|
-
hide(): void;
|
|
14
|
-
destroy(): void;
|
|
15
|
-
get selectorWidth(): number;
|
|
16
|
-
get enabled(): boolean;
|
|
17
|
-
get font(): Font;
|
|
18
|
-
get items(): string[];
|
|
19
|
-
get itemsFromPV(): boolean;
|
|
20
|
-
}
|
|
1
|
+
import { Display } from "../../Display";
|
|
2
|
+
import { Font } from "../../Font";
|
|
3
|
+
import { Graphics } from "../../Graphics";
|
|
4
|
+
import { Widget } from "../../Widget";
|
|
5
|
+
import { AbstractContainerWidget } from "../others/AbstractContainerWidget";
|
|
6
|
+
export declare class Combo extends Widget {
|
|
7
|
+
private areaRegion?;
|
|
8
|
+
private selectEl?;
|
|
9
|
+
constructor(display: Display, parent: AbstractContainerWidget);
|
|
10
|
+
init(): void;
|
|
11
|
+
draw(g: Graphics): void;
|
|
12
|
+
private writeValue;
|
|
13
|
+
hide(): void;
|
|
14
|
+
destroy(): void;
|
|
15
|
+
get selectorWidth(): number;
|
|
16
|
+
get enabled(): boolean;
|
|
17
|
+
get font(): Font;
|
|
18
|
+
get items(): string[];
|
|
19
|
+
get itemsFromPV(): boolean;
|
|
20
|
+
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { Display } from
|
|
2
|
-
import { Font } from
|
|
3
|
-
import { Graphics } from
|
|
4
|
-
import { Widget } from
|
|
5
|
-
import { AbstractContainerWidget } from
|
|
6
|
-
export declare class ImageBooleanButton extends Widget {
|
|
7
|
-
private onImageElement?;
|
|
8
|
-
private onImageLoaded;
|
|
9
|
-
private offImageElement?;
|
|
10
|
-
private offImageLoaded;
|
|
11
|
-
private manualToggleState;
|
|
12
|
-
private areaRegion?;
|
|
13
|
-
constructor(display: Display, parent: AbstractContainerWidget);
|
|
14
|
-
init(): void;
|
|
15
|
-
private toggleOn;
|
|
16
|
-
private toggleOff;
|
|
17
|
-
get booleanValue(): boolean;
|
|
18
|
-
draw(g: Graphics): void;
|
|
19
|
-
get bit(): number;
|
|
20
|
-
get dataType(): number;
|
|
21
|
-
get toggleButton(): boolean;
|
|
22
|
-
get pushActionIndex(): number;
|
|
23
|
-
get releaseActionIndex(): number;
|
|
24
|
-
get showBooleanLabel(): boolean;
|
|
25
|
-
get effect3d(): boolean;
|
|
26
|
-
get onImage(): string;
|
|
27
|
-
get onLabel(): string;
|
|
28
|
-
get onState(): string;
|
|
29
|
-
get offImage(): string;
|
|
30
|
-
get offLabel(): string;
|
|
31
|
-
get offState(): string;
|
|
32
|
-
get font(): Font;
|
|
33
|
-
}
|
|
1
|
+
import { Display } from "../../Display";
|
|
2
|
+
import { Font } from "../../Font";
|
|
3
|
+
import { Graphics } from "../../Graphics";
|
|
4
|
+
import { Widget } from "../../Widget";
|
|
5
|
+
import { AbstractContainerWidget } from "../others/AbstractContainerWidget";
|
|
6
|
+
export declare class ImageBooleanButton extends Widget {
|
|
7
|
+
private onImageElement?;
|
|
8
|
+
private onImageLoaded;
|
|
9
|
+
private offImageElement?;
|
|
10
|
+
private offImageLoaded;
|
|
11
|
+
private manualToggleState;
|
|
12
|
+
private areaRegion?;
|
|
13
|
+
constructor(display: Display, parent: AbstractContainerWidget);
|
|
14
|
+
init(): void;
|
|
15
|
+
private toggleOn;
|
|
16
|
+
private toggleOff;
|
|
17
|
+
get booleanValue(): boolean;
|
|
18
|
+
draw(g: Graphics): void;
|
|
19
|
+
get bit(): number;
|
|
20
|
+
get dataType(): number;
|
|
21
|
+
get toggleButton(): boolean;
|
|
22
|
+
get pushActionIndex(): number;
|
|
23
|
+
get releaseActionIndex(): number;
|
|
24
|
+
get showBooleanLabel(): boolean;
|
|
25
|
+
get effect3d(): boolean;
|
|
26
|
+
get onImage(): string;
|
|
27
|
+
get onLabel(): string;
|
|
28
|
+
get onState(): string;
|
|
29
|
+
get offImage(): string;
|
|
30
|
+
get offLabel(): string;
|
|
31
|
+
get offState(): string;
|
|
32
|
+
get font(): Font;
|
|
33
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Color } from
|
|
2
|
-
import { Display } from
|
|
3
|
-
import { Font } from
|
|
4
|
-
import { Graphics } from
|
|
5
|
-
import { Widget } from
|
|
6
|
-
import { AbstractContainerWidget } from
|
|
7
|
-
export declare class MenuButton extends Widget {
|
|
8
|
-
private areaRegion?;
|
|
9
|
-
private selectEl?;
|
|
10
|
-
constructor(display: Display, parent: AbstractContainerWidget);
|
|
11
|
-
init(): void;
|
|
12
|
-
draw(g: Graphics): void;
|
|
13
|
-
hide(): void;
|
|
14
|
-
destroy(): void;
|
|
15
|
-
get font(): Font;
|
|
16
|
-
get backgroundColor(): Color;
|
|
17
|
-
get label(): string;
|
|
18
|
-
}
|
|
1
|
+
import { Color } from "../../Color";
|
|
2
|
+
import { Display } from "../../Display";
|
|
3
|
+
import { Font } from "../../Font";
|
|
4
|
+
import { Graphics } from "../../Graphics";
|
|
5
|
+
import { Widget } from "../../Widget";
|
|
6
|
+
import { AbstractContainerWidget } from "../others/AbstractContainerWidget";
|
|
7
|
+
export declare class MenuButton extends Widget {
|
|
8
|
+
private areaRegion?;
|
|
9
|
+
private selectEl?;
|
|
10
|
+
constructor(display: Display, parent: AbstractContainerWidget);
|
|
11
|
+
init(): void;
|
|
12
|
+
draw(g: Graphics): void;
|
|
13
|
+
hide(): void;
|
|
14
|
+
destroy(): void;
|
|
15
|
+
get font(): Font;
|
|
16
|
+
get backgroundColor(): Color;
|
|
17
|
+
get label(): string;
|
|
18
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ActionButton } from
|
|
2
|
-
/**
|
|
3
|
-
* This widget only exists in old displays.
|
|
4
|
-
* On desktops, it's supposed to use the "native" OS widgets.
|
|
5
|
-
*
|
|
6
|
-
* Treating it like a regular ActionButton is good enough for us.
|
|
7
|
-
*/
|
|
8
|
-
export declare class NativeButton extends ActionButton {
|
|
9
|
-
}
|
|
1
|
+
import { ActionButton } from "./ActionButton";
|
|
2
|
+
/**
|
|
3
|
+
* This widget only exists in old displays.
|
|
4
|
+
* On desktops, it's supposed to use the "native" OS widgets.
|
|
5
|
+
*
|
|
6
|
+
* Treating it like a regular ActionButton is good enough for us.
|
|
7
|
+
*/
|
|
8
|
+
export declare class NativeButton extends ActionButton {
|
|
9
|
+
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { Color } from
|
|
2
|
-
import { Display } from
|
|
3
|
-
import { Font } from
|
|
4
|
-
import { Graphics } from
|
|
5
|
-
import { Widget } from
|
|
6
|
-
import { AbstractContainerWidget } from
|
|
7
|
-
export declare class RadioBox extends Widget {
|
|
8
|
-
private hoveredItem?;
|
|
9
|
-
private itemRegions;
|
|
10
|
-
constructor(display: Display, parent: AbstractContainerWidget);
|
|
11
|
-
init(): void;
|
|
12
|
-
draw(g: Graphics): void;
|
|
13
|
-
private drawHorizontal;
|
|
14
|
-
private drawVertical;
|
|
15
|
-
private drawRadio;
|
|
16
|
-
private writeValue;
|
|
17
|
-
get radioRadius(): number;
|
|
18
|
-
get dotRadius(): number;
|
|
19
|
-
get gap(): number;
|
|
20
|
-
get enabled(): boolean;
|
|
21
|
-
get font(): Font;
|
|
22
|
-
get horizontal(): boolean;
|
|
23
|
-
get items(): string[];
|
|
24
|
-
get itemsFromPV(): boolean;
|
|
25
|
-
get selectedColor(): Color;
|
|
26
|
-
}
|
|
1
|
+
import { Color } from "../../Color";
|
|
2
|
+
import { Display } from "../../Display";
|
|
3
|
+
import { Font } from "../../Font";
|
|
4
|
+
import { Graphics } from "../../Graphics";
|
|
5
|
+
import { Widget } from "../../Widget";
|
|
6
|
+
import { AbstractContainerWidget } from "../others/AbstractContainerWidget";
|
|
7
|
+
export declare class RadioBox extends Widget {
|
|
8
|
+
private hoveredItem?;
|
|
9
|
+
private itemRegions;
|
|
10
|
+
constructor(display: Display, parent: AbstractContainerWidget);
|
|
11
|
+
init(): void;
|
|
12
|
+
draw(g: Graphics): void;
|
|
13
|
+
private drawHorizontal;
|
|
14
|
+
private drawVertical;
|
|
15
|
+
private drawRadio;
|
|
16
|
+
private writeValue;
|
|
17
|
+
get radioRadius(): number;
|
|
18
|
+
get dotRadius(): number;
|
|
19
|
+
get gap(): number;
|
|
20
|
+
get enabled(): boolean;
|
|
21
|
+
get font(): Font;
|
|
22
|
+
get horizontal(): boolean;
|
|
23
|
+
get items(): string[];
|
|
24
|
+
get itemsFromPV(): boolean;
|
|
25
|
+
get selectedColor(): Color;
|
|
26
|
+
}
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { Display } from
|
|
2
|
-
import { Font } from
|
|
3
|
-
import { Graphics } from
|
|
4
|
-
import { Widget } from
|
|
5
|
-
import { AbstractContainerWidget } from
|
|
6
|
-
export declare class Scrollbar extends Widget {
|
|
7
|
-
private decreaseRegion?;
|
|
8
|
-
private decreasePressed;
|
|
9
|
-
private increaseRegion?;
|
|
10
|
-
private increasePressed;
|
|
11
|
-
private pageDecreaseRegion?;
|
|
12
|
-
private pageDecreasePressed;
|
|
13
|
-
private pageIncreaseRegion?;
|
|
14
|
-
private pageIncreasePressed;
|
|
15
|
-
private thumbRegion?;
|
|
16
|
-
private grabStartValue?;
|
|
17
|
-
private dragRange?;
|
|
18
|
-
private actionTimeout?;
|
|
19
|
-
constructor(display: Display, parent: AbstractContainerWidget);
|
|
20
|
-
init(): void;
|
|
21
|
-
draw(g: Graphics): void;
|
|
22
|
-
private drawHorizontal;
|
|
23
|
-
private drawVertical;
|
|
24
|
-
private drawLeftButton;
|
|
25
|
-
private drawRightButton;
|
|
26
|
-
private drawUpButton;
|
|
27
|
-
private drawDownButton;
|
|
28
|
-
private drawRaisedButtonBorder;
|
|
29
|
-
private drawPressedButtonBorder;
|
|
30
|
-
private drawButtonBorder;
|
|
31
|
-
private stepIncreaseRepeatedly;
|
|
32
|
-
private stepDecreaseRepeatedly;
|
|
33
|
-
private stepIncrease;
|
|
34
|
-
private stepDecrease;
|
|
35
|
-
private pageIncreaseRepeatedly;
|
|
36
|
-
private pageDecreaseRepeatedly;
|
|
37
|
-
private pageIncrease;
|
|
38
|
-
private pageDecrease;
|
|
39
|
-
private setCoercedValue;
|
|
40
|
-
private getCoercedValue;
|
|
41
|
-
destroy(): void;
|
|
42
|
-
get enabled(): boolean;
|
|
43
|
-
get horizontal(): boolean;
|
|
44
|
-
get showValueTip(): boolean;
|
|
45
|
-
get font(): Font;
|
|
46
|
-
get minimum(): number;
|
|
47
|
-
get maximum(): number;
|
|
48
|
-
get stepIncrement(): number;
|
|
49
|
-
get pageIncrement(): number;
|
|
50
|
-
get barLength(): number;
|
|
51
|
-
}
|
|
1
|
+
import { Display } from "../../Display";
|
|
2
|
+
import { Font } from "../../Font";
|
|
3
|
+
import { Graphics } from "../../Graphics";
|
|
4
|
+
import { Widget } from "../../Widget";
|
|
5
|
+
import { AbstractContainerWidget } from "../others/AbstractContainerWidget";
|
|
6
|
+
export declare class Scrollbar extends Widget {
|
|
7
|
+
private decreaseRegion?;
|
|
8
|
+
private decreasePressed;
|
|
9
|
+
private increaseRegion?;
|
|
10
|
+
private increasePressed;
|
|
11
|
+
private pageDecreaseRegion?;
|
|
12
|
+
private pageDecreasePressed;
|
|
13
|
+
private pageIncreaseRegion?;
|
|
14
|
+
private pageIncreasePressed;
|
|
15
|
+
private thumbRegion?;
|
|
16
|
+
private grabStartValue?;
|
|
17
|
+
private dragRange?;
|
|
18
|
+
private actionTimeout?;
|
|
19
|
+
constructor(display: Display, parent: AbstractContainerWidget);
|
|
20
|
+
init(): void;
|
|
21
|
+
draw(g: Graphics): void;
|
|
22
|
+
private drawHorizontal;
|
|
23
|
+
private drawVertical;
|
|
24
|
+
private drawLeftButton;
|
|
25
|
+
private drawRightButton;
|
|
26
|
+
private drawUpButton;
|
|
27
|
+
private drawDownButton;
|
|
28
|
+
private drawRaisedButtonBorder;
|
|
29
|
+
private drawPressedButtonBorder;
|
|
30
|
+
private drawButtonBorder;
|
|
31
|
+
private stepIncreaseRepeatedly;
|
|
32
|
+
private stepDecreaseRepeatedly;
|
|
33
|
+
private stepIncrease;
|
|
34
|
+
private stepDecrease;
|
|
35
|
+
private pageIncreaseRepeatedly;
|
|
36
|
+
private pageDecreaseRepeatedly;
|
|
37
|
+
private pageIncrease;
|
|
38
|
+
private pageDecrease;
|
|
39
|
+
private setCoercedValue;
|
|
40
|
+
private getCoercedValue;
|
|
41
|
+
destroy(): void;
|
|
42
|
+
get enabled(): boolean;
|
|
43
|
+
get horizontal(): boolean;
|
|
44
|
+
get showValueTip(): boolean;
|
|
45
|
+
get font(): Font;
|
|
46
|
+
get minimum(): number;
|
|
47
|
+
get maximum(): number;
|
|
48
|
+
get stepIncrement(): number;
|
|
49
|
+
get pageIncrement(): number;
|
|
50
|
+
get barLength(): number;
|
|
51
|
+
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { Display } from
|
|
2
|
-
import { Font } from
|
|
3
|
-
import { Graphics } from
|
|
4
|
-
import { Widget } from
|
|
5
|
-
import { AbstractContainerWidget } from
|
|
6
|
-
export declare class TextInput extends Widget {
|
|
7
|
-
private areaRegion?;
|
|
8
|
-
private inputEl?;
|
|
9
|
-
private editing;
|
|
10
|
-
constructor(display: Display, parent: AbstractContainerWidget);
|
|
11
|
-
init(): void;
|
|
12
|
-
private cancelInput;
|
|
13
|
-
draw(g: Graphics): void;
|
|
14
|
-
hide(): void;
|
|
15
|
-
destroy(): void;
|
|
16
|
-
get value(): any;
|
|
17
|
-
set value(value: any);
|
|
18
|
-
get confirmMessage(): string;
|
|
19
|
-
get font(): Font;
|
|
20
|
-
get formatType(): number;
|
|
21
|
-
get horizAlignment(): number;
|
|
22
|
-
get multilineInput(): boolean;
|
|
23
|
-
get passwordInput(): boolean;
|
|
24
|
-
get precision(): number;
|
|
25
|
-
get precisionFromPV(): boolean;
|
|
26
|
-
get vertAlignment(): number;
|
|
27
|
-
}
|
|
1
|
+
import { Display } from "../../Display";
|
|
2
|
+
import { Font } from "../../Font";
|
|
3
|
+
import { Graphics } from "../../Graphics";
|
|
4
|
+
import { Widget } from "../../Widget";
|
|
5
|
+
import { AbstractContainerWidget } from "../others/AbstractContainerWidget";
|
|
6
|
+
export declare class TextInput extends Widget {
|
|
7
|
+
private areaRegion?;
|
|
8
|
+
private inputEl?;
|
|
9
|
+
private editing;
|
|
10
|
+
constructor(display: Display, parent: AbstractContainerWidget);
|
|
11
|
+
init(): void;
|
|
12
|
+
private cancelInput;
|
|
13
|
+
draw(g: Graphics): void;
|
|
14
|
+
hide(): void;
|
|
15
|
+
destroy(): void;
|
|
16
|
+
get value(): any;
|
|
17
|
+
set value(value: any);
|
|
18
|
+
get confirmMessage(): string;
|
|
19
|
+
get font(): Font;
|
|
20
|
+
get formatType(): number;
|
|
21
|
+
get horizAlignment(): number;
|
|
22
|
+
get multilineInput(): boolean;
|
|
23
|
+
get passwordInput(): boolean;
|
|
24
|
+
get precision(): number;
|
|
25
|
+
get precisionFromPV(): boolean;
|
|
26
|
+
get vertAlignment(): number;
|
|
27
|
+
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { Color } from
|
|
2
|
-
import { Graphics } from
|
|
3
|
-
import { Bounds } from
|
|
4
|
-
export declare class Ramp {
|
|
5
|
-
private rampWidth;
|
|
6
|
-
private startAngle;
|
|
7
|
-
private endAngle;
|
|
8
|
-
lolo: number;
|
|
9
|
-
loloColor: Color;
|
|
10
|
-
showLoLo: boolean;
|
|
11
|
-
lo: number;
|
|
12
|
-
loColor: Color;
|
|
13
|
-
showLo: boolean;
|
|
14
|
-
hi: number;
|
|
15
|
-
hiColor: Color;
|
|
16
|
-
showHi: boolean;
|
|
17
|
-
hihi: number;
|
|
18
|
-
hihiColor: Color;
|
|
19
|
-
showHiHi: boolean;
|
|
20
|
-
minimum: number;
|
|
21
|
-
maximum: number;
|
|
22
|
-
gradient: boolean;
|
|
23
|
-
logScale: boolean;
|
|
24
|
-
effect3d: boolean;
|
|
25
|
-
labelsOutside: boolean;
|
|
26
|
-
private range;
|
|
27
|
-
private lengthInDegrees;
|
|
28
|
-
private radius;
|
|
29
|
-
constructor(rampWidth: number, startAngle: number, endAngle: number);
|
|
30
|
-
draw(g: Graphics, scaleArea: Bounds, rampArea: Bounds): void;
|
|
31
|
-
drawRamp(g: Graphics, area: Bounds): void;
|
|
32
|
-
getRadius(): number;
|
|
33
|
-
getValuePosition(v: number, limit?: boolean): number;
|
|
34
|
-
getValueInRange(v: number): number;
|
|
35
|
-
private getRenderedRange;
|
|
36
|
-
}
|
|
1
|
+
import { Color } from "../../Color";
|
|
2
|
+
import { Graphics } from "../../Graphics";
|
|
3
|
+
import { Bounds } from "../../positioning";
|
|
4
|
+
export declare class Ramp {
|
|
5
|
+
private rampWidth;
|
|
6
|
+
private startAngle;
|
|
7
|
+
private endAngle;
|
|
8
|
+
lolo: number;
|
|
9
|
+
loloColor: Color;
|
|
10
|
+
showLoLo: boolean;
|
|
11
|
+
lo: number;
|
|
12
|
+
loColor: Color;
|
|
13
|
+
showLo: boolean;
|
|
14
|
+
hi: number;
|
|
15
|
+
hiColor: Color;
|
|
16
|
+
showHi: boolean;
|
|
17
|
+
hihi: number;
|
|
18
|
+
hihiColor: Color;
|
|
19
|
+
showHiHi: boolean;
|
|
20
|
+
minimum: number;
|
|
21
|
+
maximum: number;
|
|
22
|
+
gradient: boolean;
|
|
23
|
+
logScale: boolean;
|
|
24
|
+
effect3d: boolean;
|
|
25
|
+
labelsOutside: boolean;
|
|
26
|
+
private range;
|
|
27
|
+
private lengthInDegrees;
|
|
28
|
+
private radius;
|
|
29
|
+
constructor(rampWidth: number, startAngle: number, endAngle: number);
|
|
30
|
+
draw(g: Graphics, scaleArea: Bounds, rampArea: Bounds): void;
|
|
31
|
+
drawRamp(g: Graphics, area: Bounds): void;
|
|
32
|
+
getRadius(): number;
|
|
33
|
+
getValuePosition(v: number, limit?: boolean): number;
|
|
34
|
+
getValueInRange(v: number): number;
|
|
35
|
+
private getRenderedRange;
|
|
36
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Display } from
|
|
2
|
-
import { Graphics } from
|
|
3
|
-
import { Widget } from
|
|
4
|
-
import { AbstractContainerWidget } from
|
|
5
|
-
export declare class Arc extends Widget {
|
|
6
|
-
constructor(display: Display, parent: AbstractContainerWidget);
|
|
7
|
-
draw(g: Graphics): void;
|
|
8
|
-
private drawShape;
|
|
9
|
-
get alpha(): number;
|
|
10
|
-
get lineWidth(): number;
|
|
11
|
-
get lineStyle(): number;
|
|
12
|
-
get startAngle(): number;
|
|
13
|
-
get totalAngle(): number;
|
|
14
|
-
get fill(): boolean;
|
|
15
|
-
}
|
|
1
|
+
import { Display } from "../../Display";
|
|
2
|
+
import { Graphics } from "../../Graphics";
|
|
3
|
+
import { Widget } from "../../Widget";
|
|
4
|
+
import { AbstractContainerWidget } from "../others/AbstractContainerWidget";
|
|
5
|
+
export declare class Arc extends Widget {
|
|
6
|
+
constructor(display: Display, parent: AbstractContainerWidget);
|
|
7
|
+
draw(g: Graphics): void;
|
|
8
|
+
private drawShape;
|
|
9
|
+
get alpha(): number;
|
|
10
|
+
get lineWidth(): number;
|
|
11
|
+
get lineStyle(): number;
|
|
12
|
+
get startAngle(): number;
|
|
13
|
+
get totalAngle(): number;
|
|
14
|
+
get fill(): boolean;
|
|
15
|
+
}
|