@yamcs/opi 1.2.6 → 1.2.7
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/opi.js +1 -1
- package/dist/opi.js.map +1 -1
- package/dist/types/ColorMap.d.ts +1 -1
- package/dist/types/DialogHandler.d.ts +14 -0
- package/dist/types/Display.d.ts +58 -47
- package/dist/types/EventHandler.d.ts +3 -3
- package/dist/types/Font.d.ts +3 -1
- package/dist/types/FontResolver.d.ts +4 -0
- package/dist/types/Graphics.d.ts +11 -11
- package/dist/types/HitCanvas.d.ts +1 -1
- package/dist/types/HitRegionSpecification.d.ts +2 -2
- package/dist/types/PathResolver.d.ts +2 -2
- package/dist/types/Widget.d.ts +19 -13
- package/dist/types/XMLNode.d.ts +17 -17
- 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 +1 -55
- package/dist/types/events.d.ts +6 -6
- package/dist/types/index.d.ts +11 -8
- package/dist/types/properties.d.ts +14 -14
- package/dist/types/pv/FormulaPVProvider.d.ts +2 -2
- package/dist/types/pv/LocalPV.d.ts +4 -4
- package/dist/types/pv/PV.d.ts +3 -3
- package/dist/types/pv/PVEngine.d.ts +18 -8
- package/dist/types/pv/PVProvider.d.ts +1 -1
- package/dist/types/pv/Sample.d.ts +1 -1
- package/dist/types/pv/SimulatedPVProvider.d.ts +2 -2
- package/dist/types/pv/formulas/CompiledFormula.d.ts +1 -1
- package/dist/types/pv/formulas/FormulaCompiler.d.ts +1 -1
- package/dist/types/pv/formulas/ast.d.ts +16 -16
- package/dist/types/pv/sim.d.ts +1 -1
- package/dist/types/rules.d.ts +4 -4
- 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 +2 -2
- package/dist/types/scripting/ConsoleUtil.d.ts +1 -1
- package/dist/types/scripting/DisplayWrapper.d.ts +4 -2
- package/dist/types/scripting/FileUtil.d.ts +1 -1
- package/dist/types/scripting/GUIUtil.d.ts +4 -1
- package/dist/types/scripting/Java.d.ts +81 -15
- package/dist/types/scripting/MessageDialog.d.ts +3 -0
- package/dist/types/scripting/PVUtil.d.ts +6 -3
- package/dist/types/scripting/PVWrapper.d.ts +2 -1
- package/dist/types/scripting/ScriptEngine.d.ts +6 -2
- package/dist/types/scripting/ScriptUtil.d.ts +1 -1
- package/dist/types/scripting/SpreadSheetTable.d.ts +9 -2
- package/dist/types/scripting/SpreadSheetTableWrapper.d.ts +30 -0
- package/dist/types/scripting/TableWrapper.d.ts +6 -5
- package/dist/types/scripting/WidgetWrapper.d.ts +5 -2
- package/dist/types/scripting/XYGraphWrapper.d.ts +2 -2
- package/dist/types/scripting/utils.d.ts +4 -3
- package/dist/types/widgets/controls/ActionButton.d.ts +8 -6
- package/dist/types/widgets/controls/BooleanButton.d.ts +6 -6
- package/dist/types/widgets/controls/BooleanSwitch.d.ts +5 -5
- package/dist/types/widgets/controls/CheckBox.d.ts +6 -6
- package/dist/types/widgets/controls/ChoiceButton.d.ts +6 -6
- package/dist/types/widgets/controls/Combo.d.ts +5 -5
- package/dist/types/widgets/controls/ImageBooleanButton.d.ts +5 -5
- package/dist/types/widgets/controls/MenuButton.d.ts +6 -6
- package/dist/types/widgets/controls/NativeButton.d.ts +1 -1
- package/dist/types/widgets/controls/RadioBox.d.ts +6 -6
- package/dist/types/widgets/controls/Scrollbar.d.ts +5 -5
- package/dist/types/widgets/controls/TextInput.d.ts +5 -5
- package/dist/types/widgets/figures/Ramp.d.ts +3 -3
- package/dist/types/widgets/graphics/Arc.d.ts +4 -4
- package/dist/types/widgets/graphics/Ellipse.d.ts +5 -5
- package/dist/types/widgets/graphics/ImageWidget.d.ts +4 -4
- package/dist/types/widgets/graphics/Label.d.ts +5 -5
- package/dist/types/widgets/graphics/Polygon.d.ts +6 -6
- package/dist/types/widgets/graphics/Polyline.d.ts +5 -5
- package/dist/types/widgets/graphics/Rectangle.d.ts +5 -5
- package/dist/types/widgets/graphics/RoundedRectangle.d.ts +5 -5
- package/dist/types/widgets/monitors/ByteMonitor.d.ts +5 -5
- package/dist/types/widgets/monitors/Gauge.d.ts +6 -6
- package/dist/types/widgets/monitors/ImageBooleanIndicator.d.ts +5 -5
- package/dist/types/widgets/monitors/IntensityGraph.d.ts +7 -7
- package/dist/types/widgets/monitors/LED.d.ts +7 -7
- package/dist/types/widgets/monitors/LinearScale.d.ts +4 -4
- package/dist/types/widgets/monitors/Meter.d.ts +6 -6
- package/dist/types/widgets/monitors/ProgressBar.d.ts +6 -6
- package/dist/types/widgets/monitors/Tank.d.ts +6 -6
- package/dist/types/widgets/monitors/TextUpdate.d.ts +5 -5
- package/dist/types/widgets/monitors/Thermometer.d.ts +6 -6
- package/dist/types/widgets/monitors/xygraph/Axis.d.ts +4 -4
- package/dist/types/widgets/monitors/xygraph/CommandBuffer.d.ts +1 -1
- package/dist/types/widgets/monitors/xygraph/PlotAreaRegion.d.ts +4 -4
- package/dist/types/widgets/monitors/xygraph/Trace.d.ts +4 -4
- package/dist/types/widgets/monitors/xygraph/XYGraph.d.ts +10 -10
- package/dist/types/widgets/monitors/xygraph/XYGraphToolbar.d.ts +6 -6
- package/dist/types/widgets/others/AbstractContainerWidget.d.ts +4 -4
- package/dist/types/widgets/others/Connection.d.ts +6 -6
- package/dist/types/widgets/others/DisplayWidget.d.ts +6 -6
- package/dist/types/widgets/others/GroupingContainer.d.ts +3 -3
- package/dist/types/widgets/others/LinkingContainer.d.ts +4 -4
- package/dist/types/widgets/others/TabbedContainer.d.ts +5 -5
- package/dist/types/widgets/others/Table.d.ts +6 -6
- package/dist/types/widgets/others/WebBrowser.d.ts +4 -4
- package/package.json +3 -8
- package/dist/fonts/stylesheet.css +0 -83
- package/dist/opi.umd.js +0 -2
- package/dist/opi.umd.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Display } from
|
|
2
|
-
import { Graphics } from
|
|
3
|
-
import { Bounds } from
|
|
4
|
-
import { AutoScaleWidgets } from
|
|
5
|
-
import { XMLNode } from
|
|
6
|
-
import { AbstractContainerWidget } from
|
|
1
|
+
import { Display } from "../../Display";
|
|
2
|
+
import { Graphics } from "../../Graphics";
|
|
3
|
+
import { Bounds } from "../../positioning";
|
|
4
|
+
import { AutoScaleWidgets } from "../../scale";
|
|
5
|
+
import { XMLNode } from "../../XMLNode";
|
|
6
|
+
import { AbstractContainerWidget } from "./AbstractContainerWidget";
|
|
7
7
|
export declare class DisplayWidget extends AbstractContainerWidget {
|
|
8
8
|
constructor(display: Display, parent?: AbstractContainerWidget);
|
|
9
9
|
parseNode(node: XMLNode): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Graphics } from
|
|
2
|
-
import { XMLNode } from
|
|
3
|
-
import { AbstractContainerWidget } from
|
|
1
|
+
import { Graphics } from "../../Graphics";
|
|
2
|
+
import { XMLNode } from "../../XMLNode";
|
|
3
|
+
import { AbstractContainerWidget } from "./AbstractContainerWidget";
|
|
4
4
|
export declare class GroupingContainer extends AbstractContainerWidget {
|
|
5
5
|
parseNode(node: XMLNode): void;
|
|
6
6
|
beforeDrawBorder(g: Graphics): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Display } from
|
|
2
|
-
import { Graphics } from
|
|
3
|
-
import { XMLNode } from
|
|
4
|
-
import { AbstractContainerWidget } from
|
|
1
|
+
import { Display } from "../../Display";
|
|
2
|
+
import { Graphics } from "../../Graphics";
|
|
3
|
+
import { XMLNode } from "../../XMLNode";
|
|
4
|
+
import { AbstractContainerWidget } from "./AbstractContainerWidget";
|
|
5
5
|
export declare class LinkingContainer extends AbstractContainerWidget {
|
|
6
6
|
private linkedDisplay?;
|
|
7
7
|
resolvedOpiFile?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Display } from
|
|
2
|
-
import { Graphics } from
|
|
3
|
-
import { Point } from
|
|
4
|
-
import { XMLNode } from
|
|
5
|
-
import { AbstractContainerWidget } from
|
|
1
|
+
import { Display } from "../../Display";
|
|
2
|
+
import { Graphics } from "../../Graphics";
|
|
3
|
+
import { Point } from "../../positioning";
|
|
4
|
+
import { XMLNode } from "../../XMLNode";
|
|
5
|
+
import { AbstractContainerWidget } from "./AbstractContainerWidget";
|
|
6
6
|
export declare class TabbedContainer extends AbstractContainerWidget {
|
|
7
7
|
private tabs;
|
|
8
8
|
constructor(display: Display, parent: AbstractContainerWidget);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Display } from
|
|
2
|
-
import { Font } from
|
|
3
|
-
import { Graphics } from
|
|
4
|
-
import { SpreadSheetTable } from
|
|
5
|
-
import { Widget } from
|
|
6
|
-
import { AbstractContainerWidget } from
|
|
1
|
+
import { Display } from "../../Display";
|
|
2
|
+
import { Font } from "../../Font";
|
|
3
|
+
import { Graphics } from "../../Graphics";
|
|
4
|
+
import { SpreadSheetTable } from "../../scripting/SpreadSheetTable";
|
|
5
|
+
import { Widget } from "../../Widget";
|
|
6
|
+
import { AbstractContainerWidget } from "./AbstractContainerWidget";
|
|
7
7
|
export declare class Table extends Widget {
|
|
8
8
|
private tableWrapper?;
|
|
9
9
|
private table?;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Display } from
|
|
2
|
-
import { Graphics } from
|
|
3
|
-
import { Widget } from
|
|
4
|
-
import { AbstractContainerWidget } from
|
|
1
|
+
import { Display } from "../../Display";
|
|
2
|
+
import { Graphics } from "../../Graphics";
|
|
3
|
+
import { Widget } from "../../Widget";
|
|
4
|
+
import { AbstractContainerWidget } from "./AbstractContainerWidget";
|
|
5
5
|
export declare class WebBrowser extends Widget {
|
|
6
6
|
private iframe?;
|
|
7
7
|
private prevUrl?;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamcs/opi",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7",
|
|
4
4
|
"description": "OPI Display Renderer",
|
|
5
5
|
"author": "Yamcs Team <yamcs@spaceapplications.com>",
|
|
6
6
|
"repository": {
|
|
@@ -17,25 +17,20 @@
|
|
|
17
17
|
"peggy": "cd src/pv/formulas && peggy --format es -o parser.js formula-grammar.peggy",
|
|
18
18
|
"start": "node ./demo/server.js"
|
|
19
19
|
},
|
|
20
|
-
"main": "dist/opi.umd.js",
|
|
21
20
|
"module": "dist/opi.js",
|
|
22
21
|
"types": "dist/types/index.d.ts",
|
|
23
22
|
"files": [
|
|
24
23
|
"dist/"
|
|
25
24
|
],
|
|
26
25
|
"devDependencies": {
|
|
27
|
-
"@rollup/plugin-
|
|
28
|
-
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
29
|
-
"@types/fontfaceobserver": "2.1.0",
|
|
26
|
+
"@rollup/plugin-terser": "^0.1.0",
|
|
30
27
|
"@types/node": "^16.11.7",
|
|
31
28
|
"express": "^4.18.1",
|
|
32
|
-
"fontfaceobserver": "^2.0.13",
|
|
33
29
|
"morgan": "^1.10.0",
|
|
34
30
|
"nunjucks": "^3.2.2",
|
|
35
31
|
"peggy": "^2.0.1",
|
|
36
|
-
"rollup": "^
|
|
32
|
+
"rollup": "^3.3.0",
|
|
37
33
|
"rollup-plugin-copy": "^3.3.0",
|
|
38
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
39
34
|
"rollup-plugin-typescript2": "^0.34.1",
|
|
40
35
|
"typescript": "^4.3.5"
|
|
41
36
|
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: 'Liberation Mono';
|
|
3
|
-
src: url('LiberationMono-Regular.woff') format('woff');
|
|
4
|
-
font-weight: normal;
|
|
5
|
-
font-style: normal;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
@font-face {
|
|
9
|
-
font-family: 'Liberation Mono';
|
|
10
|
-
src: url('LiberationMono-Bold.woff') format('woff');
|
|
11
|
-
font-weight: bold;
|
|
12
|
-
font-style: normal;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@font-face {
|
|
16
|
-
font-family: 'Liberation Mono';
|
|
17
|
-
src: url('LiberationMono-Italic.woff') format('woff');
|
|
18
|
-
font-weight: normal;
|
|
19
|
-
font-style: italic;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@font-face {
|
|
23
|
-
font-family: 'Liberation Mono';
|
|
24
|
-
src: url('LiberationMono-BoldItalic.woff') format('woff');
|
|
25
|
-
font-weight: bold;
|
|
26
|
-
font-style: italic;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@font-face {
|
|
30
|
-
font-family: 'Liberation Sans';
|
|
31
|
-
src: url('LiberationSans-Regular.woff') format('woff');
|
|
32
|
-
font-weight: normal;
|
|
33
|
-
font-style: normal;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@font-face {
|
|
37
|
-
font-family: 'Liberation Sans';
|
|
38
|
-
src: url('LiberationSans-Bold.woff') format('woff');
|
|
39
|
-
font-weight: bold;
|
|
40
|
-
font-style: normal;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@font-face {
|
|
44
|
-
font-family: 'Liberation Sans';
|
|
45
|
-
src: url('LiberationSans-Italic.woff') format('woff');
|
|
46
|
-
font-weight: normal;
|
|
47
|
-
font-style: italic;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@font-face {
|
|
51
|
-
font-family: 'Liberation Sans';
|
|
52
|
-
src: url('LiberationSans-BoldItalic.woff') format('woff');
|
|
53
|
-
font-weight: bold;
|
|
54
|
-
font-style: italic;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@font-face {
|
|
58
|
-
font-family: 'Liberation Serif';
|
|
59
|
-
src: url('LiberationSerif-Regular.woff') format('woff');
|
|
60
|
-
font-weight: normal;
|
|
61
|
-
font-style: normal;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@font-face {
|
|
65
|
-
font-family: 'Liberation Serif';
|
|
66
|
-
src: url('LiberationSerif-Bold.woff') format('woff');
|
|
67
|
-
font-weight: bold;
|
|
68
|
-
font-style: normal;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
@font-face {
|
|
72
|
-
font-family: 'Liberation Serif';
|
|
73
|
-
src: url('LiberationSerif-Italic.woff') format('woff');
|
|
74
|
-
font-weight: normal;
|
|
75
|
-
font-style: italic;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
@font-face {
|
|
79
|
-
font-family: 'Liberation Serif';
|
|
80
|
-
src: url('LiberationSerif-BoldItalic.woff') format('woff');
|
|
81
|
-
font-weight: bold;
|
|
82
|
-
font-style: italic;
|
|
83
|
-
}
|