@yamcs/opi 1.4.2 → 1.4.3
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/opi.js +10 -10
- package/dist/opi.js.map +3 -3
- package/dist/opi.standalone.js +10 -10
- package/dist/types/Display.d.ts +1 -1
- package/dist/types/actions.d.ts +1 -1
- package/dist/types/pv/LocalPV.d.ts +2 -2
- package/dist/types/pv/formulas/parser.d.ts +3 -3
- package/dist/types/scripting/Java.d.ts +1 -1
- package/dist/types/scripting/PVUtil.d.ts +1 -1
- package/dist/types/widgets/controls/TextInput.d.ts +6 -0
- package/dist/types/widgets/graphics/ImageHelper.d.ts +3 -0
- package/dist/types/widgets/graphics/Polygon.d.ts +2 -0
- package/dist/types/widgets/graphics/Polyline.d.ts +6 -0
- package/package.json +1 -1
package/dist/types/Display.d.ts
CHANGED
|
@@ -137,7 +137,7 @@ export declare class Display {
|
|
|
137
137
|
*/
|
|
138
138
|
requestRepaint(): void;
|
|
139
139
|
setTooltip(tooltip: string | undefined): void;
|
|
140
|
-
createWidget(kind: string, parent: AbstractContainerWidget):
|
|
140
|
+
createWidget(kind: string, parent: AbstractContainerWidget): ArrayWidget | ActionButton | Arc | BooleanButton | BooleanSwitch | ByteMonitor | CheckBox | ChoiceButton | Combo | Ellipse | Gauge | GridLayout | GroupingContainer | ImageWidget | ImageBooleanButton | ImageBooleanIndicator | IntensityGraph | Knob | Label | LED | LinkingContainer | MenuButton | Meter | Polygon | Polyline | ProgressBar | RadioBox | Rectangle | RoundedRectangle | SashContainer | ScaledSlider | Scrollbar | Spinner | TabbedContainer | Table | Tank | TextInput | TextUpdate | Thermometer | ThumbWheel | WebBrowser | XYGraph | undefined;
|
|
141
141
|
/**
|
|
142
142
|
* Releases everything this Display holds outside of its own instance:
|
|
143
143
|
* the repaint loop, the resize observer, canvas/document event
|
package/dist/types/actions.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare class ActionSet {
|
|
|
4
4
|
hookFirstActionToClick: boolean;
|
|
5
5
|
hookAllActionsToClick: boolean;
|
|
6
6
|
add(action: Action | null): void;
|
|
7
|
-
isClickable():
|
|
7
|
+
isClickable(): boolean | 0;
|
|
8
8
|
getAction(index: number): Action | null | undefined;
|
|
9
9
|
toString(): string;
|
|
10
10
|
}
|
|
@@ -4,7 +4,7 @@ import { Sample } from "./Sample";
|
|
|
4
4
|
export type LocalPVType = "VDouble" | "VDoubleArray" | "VString" | "VStringArray";
|
|
5
5
|
export declare class LocalPV extends PV {
|
|
6
6
|
type?: LocalPVType | undefined;
|
|
7
|
-
readonly initializer?: any;
|
|
8
|
-
constructor(name: string, pvEngine: PVEngine, type?: LocalPVType | undefined, initializer?: any);
|
|
7
|
+
readonly initializer?: any | undefined;
|
|
8
|
+
constructor(name: string, pvEngine: PVEngine, type?: LocalPVType | undefined, initializer?: any | undefined);
|
|
9
9
|
setSample(sample: Sample): void;
|
|
10
10
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
declare const peg$allowedStartRules: string[];
|
|
1
2
|
declare class peg$SyntaxError extends SyntaxError {
|
|
3
|
+
static buildMessage(expected: any, found: any): string;
|
|
4
|
+
constructor(message: any, expected: any, found: any, location: any);
|
|
2
5
|
expected: any;
|
|
3
6
|
found: any;
|
|
4
7
|
location: any;
|
|
5
|
-
constructor(message: any, expected: any, found: any, location: any);
|
|
6
8
|
format(sources: any): string;
|
|
7
|
-
static buildMessage(expected: any, found: any): string;
|
|
8
9
|
}
|
|
9
10
|
declare function peg$parse(input: any, options: any): any;
|
|
10
|
-
declare const peg$allowedStartRules: string[];
|
|
11
11
|
export { peg$allowedStartRules as StartRules, peg$SyntaxError as SyntaxError, peg$parse as parse };
|
|
@@ -16,7 +16,7 @@ export declare class PVUtil {
|
|
|
16
16
|
getStringArray(pv: PVWrapper): string[];
|
|
17
17
|
getTimeInMilliseconds(pv: PVWrapper): number;
|
|
18
18
|
getTimeString(pv: PVWrapper, format?: string): string | null;
|
|
19
|
-
getSeverity(pv: PVWrapper):
|
|
19
|
+
getSeverity(pv: PVWrapper): 1 | 2 | 0 | -1;
|
|
20
20
|
getSeverityString(pv: PVWrapper): string;
|
|
21
21
|
getStatus(pv: PVWrapper): string;
|
|
22
22
|
getUnits(pv: PVWrapper): string | null;
|
|
@@ -12,6 +12,12 @@ export declare class TextInput extends Widget {
|
|
|
12
12
|
constructor(display: Display, parent: AbstractContainerWidget);
|
|
13
13
|
init(): void;
|
|
14
14
|
private clampToLimits;
|
|
15
|
+
/**
|
|
16
|
+
* Used when the PV has no value, or a string value. The text is written
|
|
17
|
+
* as-is, except when it is a decimal number outside of the configured
|
|
18
|
+
* limits. Then the nearest limit is written instead.
|
|
19
|
+
*/
|
|
20
|
+
private coerceText;
|
|
15
21
|
private finishEditing;
|
|
16
22
|
private cancelInput;
|
|
17
23
|
private computeDisplayText;
|
|
@@ -7,8 +7,10 @@ import { AbstractContainerWidget } from "../others/AbstractContainerWidget";
|
|
|
7
7
|
export declare class Polygon extends Widget {
|
|
8
8
|
private zeroDegreePoints;
|
|
9
9
|
private originPoints?;
|
|
10
|
+
private updatingPoints;
|
|
10
11
|
constructor(display: Display, parent: AbstractContainerWidget);
|
|
11
12
|
init(): void;
|
|
13
|
+
private setPointsInternal;
|
|
12
14
|
private updateZeroDegreePoints;
|
|
13
15
|
/**
|
|
14
16
|
* Mirrors AbstractPolyModel#doScale() in the Java reference, which is a
|
|
@@ -6,8 +6,10 @@ import { AbstractContainerWidget } from "../others/AbstractContainerWidget";
|
|
|
6
6
|
export declare class Polyline extends Widget {
|
|
7
7
|
private zeroDegreePoints;
|
|
8
8
|
private originPoints?;
|
|
9
|
+
private updatingPoints;
|
|
9
10
|
constructor(display: Display, parent: AbstractContainerWidget);
|
|
10
11
|
init(): void;
|
|
12
|
+
private setPointsInternal;
|
|
11
13
|
private updateZeroDegreePoints;
|
|
12
14
|
/**
|
|
13
15
|
* Mirrors AbstractPolyModel#doScale() in the Java reference, which is a
|
|
@@ -27,6 +29,10 @@ export declare class Polyline extends Widget {
|
|
|
27
29
|
* makes a keep_wh_ratio polyline barely move at all under
|
|
28
30
|
* non-uniform scaling, clustering near its design position instead
|
|
29
31
|
* of tracking the layout.
|
|
32
|
+
*
|
|
33
|
+
* originPoints must be latched *before* the base autoScale call below:
|
|
34
|
+
* that call writes x/y, which synchronously fires the x/y listeners
|
|
35
|
+
* above and translates PROP_POINTS as a side effect.
|
|
30
36
|
*/
|
|
31
37
|
autoScale(widthRatio: number, heightRatio: number): void;
|
|
32
38
|
draw(g: Graphics): void;
|