@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,41 +1,41 @@
|
|
|
1
|
-
import { Color } from
|
|
2
|
-
import { Font } from
|
|
3
|
-
import { LinearScale } from
|
|
4
|
-
import { XYGraph } from
|
|
5
|
-
export declare class Axis {
|
|
6
|
-
private widget;
|
|
7
|
-
readonly index: number;
|
|
8
|
-
linearScale?: LinearScale;
|
|
9
|
-
private _effectiveMinimum?;
|
|
10
|
-
private _effectiveMaximum?;
|
|
11
|
-
constructor(widget: XYGraph, index: number);
|
|
12
|
-
get scale(): number;
|
|
13
|
-
private getValue;
|
|
14
|
-
isDateEnabled(): boolean;
|
|
15
|
-
isHorizontal(): boolean;
|
|
16
|
-
isVertical(): boolean;
|
|
17
|
-
isPrimary(): boolean;
|
|
18
|
-
get effectiveMinimum(): number;
|
|
19
|
-
set effectiveMinimum(effectiveMinimum: number);
|
|
20
|
-
get effectiveMaximum(): number;
|
|
21
|
-
set effectiveMaximum(effectiveMaximum: number);
|
|
22
|
-
performAutoScale(): void;
|
|
23
|
-
applyZoom(center: number, ratio: number): void;
|
|
24
|
-
get autoScale(): boolean;
|
|
25
|
-
get autoScaleTreshold(): number;
|
|
26
|
-
get axisColor(): Color;
|
|
27
|
-
get axisTitle(): string;
|
|
28
|
-
get dashGridLine(): boolean;
|
|
29
|
-
get gridColor(): Color;
|
|
30
|
-
get leftBottomSide(): boolean;
|
|
31
|
-
get logScale(): boolean;
|
|
32
|
-
private get maximum();
|
|
33
|
-
private get minimum();
|
|
34
|
-
get scaleFont(): Font;
|
|
35
|
-
get scaleFormat(): string;
|
|
36
|
-
get showGrid(): boolean;
|
|
37
|
-
get timeFormat(): number;
|
|
38
|
-
get titleFont(): Font;
|
|
39
|
-
get visible(): boolean;
|
|
40
|
-
get yAxis(): boolean;
|
|
41
|
-
}
|
|
1
|
+
import { Color } from "../../../Color";
|
|
2
|
+
import { Font } from "../../../Font";
|
|
3
|
+
import { LinearScale } from "../LinearScale";
|
|
4
|
+
import { XYGraph } from "./XYGraph";
|
|
5
|
+
export declare class Axis {
|
|
6
|
+
private widget;
|
|
7
|
+
readonly index: number;
|
|
8
|
+
linearScale?: LinearScale;
|
|
9
|
+
private _effectiveMinimum?;
|
|
10
|
+
private _effectiveMaximum?;
|
|
11
|
+
constructor(widget: XYGraph, index: number);
|
|
12
|
+
get scale(): number;
|
|
13
|
+
private getValue;
|
|
14
|
+
isDateEnabled(): boolean;
|
|
15
|
+
isHorizontal(): boolean;
|
|
16
|
+
isVertical(): boolean;
|
|
17
|
+
isPrimary(): boolean;
|
|
18
|
+
get effectiveMinimum(): number;
|
|
19
|
+
set effectiveMinimum(effectiveMinimum: number);
|
|
20
|
+
get effectiveMaximum(): number;
|
|
21
|
+
set effectiveMaximum(effectiveMaximum: number);
|
|
22
|
+
performAutoScale(): void;
|
|
23
|
+
applyZoom(center: number, ratio: number): void;
|
|
24
|
+
get autoScale(): boolean;
|
|
25
|
+
get autoScaleTreshold(): number;
|
|
26
|
+
get axisColor(): Color;
|
|
27
|
+
get axisTitle(): string;
|
|
28
|
+
get dashGridLine(): boolean;
|
|
29
|
+
get gridColor(): Color;
|
|
30
|
+
get leftBottomSide(): boolean;
|
|
31
|
+
get logScale(): boolean;
|
|
32
|
+
private get maximum();
|
|
33
|
+
private get minimum();
|
|
34
|
+
get scaleFont(): Font;
|
|
35
|
+
get scaleFormat(): string;
|
|
36
|
+
get showGrid(): boolean;
|
|
37
|
+
get timeFormat(): number;
|
|
38
|
+
get titleFont(): Font;
|
|
39
|
+
get visible(): boolean;
|
|
40
|
+
get yAxis(): boolean;
|
|
41
|
+
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { Axis } from
|
|
2
|
-
export interface Command {
|
|
3
|
-
undo(): void;
|
|
4
|
-
redo(): void;
|
|
5
|
-
}
|
|
6
|
-
export declare class ZoomCommand implements Command {
|
|
7
|
-
private xAxis;
|
|
8
|
-
private yAxis;
|
|
9
|
-
private beforeXRanges;
|
|
10
|
-
private beforeYRanges;
|
|
11
|
-
private afterXRanges;
|
|
12
|
-
private afterYRanges;
|
|
13
|
-
constructor(xAxis: Axis[], yAxis: Axis[]);
|
|
14
|
-
saveState(): void;
|
|
15
|
-
undo(): void;
|
|
16
|
-
redo(): void;
|
|
17
|
-
}
|
|
18
|
-
export declare class CommandBuffer {
|
|
19
|
-
private undoStack;
|
|
20
|
-
private redoStack;
|
|
21
|
-
canUndo(): boolean;
|
|
22
|
-
canRedo(): boolean;
|
|
23
|
-
add(command: Command): void;
|
|
24
|
-
undo(): void;
|
|
25
|
-
redo(): void;
|
|
26
|
-
}
|
|
1
|
+
import { Axis } from "./Axis";
|
|
2
|
+
export interface Command {
|
|
3
|
+
undo(): void;
|
|
4
|
+
redo(): void;
|
|
5
|
+
}
|
|
6
|
+
export declare class ZoomCommand implements Command {
|
|
7
|
+
private xAxis;
|
|
8
|
+
private yAxis;
|
|
9
|
+
private beforeXRanges;
|
|
10
|
+
private beforeYRanges;
|
|
11
|
+
private afterXRanges;
|
|
12
|
+
private afterYRanges;
|
|
13
|
+
constructor(xAxis: Axis[], yAxis: Axis[]);
|
|
14
|
+
saveState(): void;
|
|
15
|
+
undo(): void;
|
|
16
|
+
redo(): void;
|
|
17
|
+
}
|
|
18
|
+
export declare class CommandBuffer {
|
|
19
|
+
private undoStack;
|
|
20
|
+
private redoStack;
|
|
21
|
+
canUndo(): boolean;
|
|
22
|
+
canRedo(): boolean;
|
|
23
|
+
add(command: Command): void;
|
|
24
|
+
undo(): void;
|
|
25
|
+
redo(): void;
|
|
26
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { OpiGrabEvent, OpiMouseEvent } from
|
|
2
|
-
import { HitRegionSpecification } from
|
|
3
|
-
import { Bounds } from
|
|
4
|
-
import { XYGraph } from
|
|
5
|
-
export declare class PlotAreaRegion implements HitRegionSpecification {
|
|
6
|
-
private widget;
|
|
7
|
-
id: string;
|
|
8
|
-
cursor?: string;
|
|
9
|
-
selection?: Bounds;
|
|
10
|
-
private grabStart?;
|
|
11
|
-
private prevGrabEvent?;
|
|
12
|
-
private grabZoomCommand?;
|
|
13
|
-
constructor(id: string, widget: XYGraph);
|
|
14
|
-
tooltip(): string | undefined;
|
|
15
|
-
mouseDown(evt: OpiMouseEvent): void;
|
|
16
|
-
grab(evt: OpiGrabEvent): void;
|
|
17
|
-
grabEnd(): void;
|
|
18
|
-
click(evt: OpiMouseEvent): void;
|
|
19
|
-
private rangeZoomXAxes;
|
|
20
|
-
private rangeZoomYAxes;
|
|
21
|
-
private pan;
|
|
22
|
-
}
|
|
1
|
+
import { OpiGrabEvent, OpiMouseEvent } from "../../../EventHandler";
|
|
2
|
+
import { HitRegionSpecification } from "../../../HitRegionSpecification";
|
|
3
|
+
import { Bounds } from "../../../positioning";
|
|
4
|
+
import { XYGraph } from "./XYGraph";
|
|
5
|
+
export declare class PlotAreaRegion implements HitRegionSpecification {
|
|
6
|
+
private widget;
|
|
7
|
+
id: string;
|
|
8
|
+
cursor?: string;
|
|
9
|
+
selection?: Bounds;
|
|
10
|
+
private grabStart?;
|
|
11
|
+
private prevGrabEvent?;
|
|
12
|
+
private grabZoomCommand?;
|
|
13
|
+
constructor(id: string, widget: XYGraph);
|
|
14
|
+
tooltip(): string | undefined;
|
|
15
|
+
mouseDown(evt: OpiMouseEvent): void;
|
|
16
|
+
grab(evt: OpiGrabEvent): void;
|
|
17
|
+
grabEnd(): void;
|
|
18
|
+
click(evt: OpiMouseEvent): void;
|
|
19
|
+
private rangeZoomXAxes;
|
|
20
|
+
private rangeZoomYAxes;
|
|
21
|
+
private pan;
|
|
22
|
+
}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { Color } from
|
|
2
|
-
import { Graphics } from
|
|
3
|
-
import { Point } from
|
|
4
|
-
import { XYGraph } from
|
|
5
|
-
export declare class Trace {
|
|
6
|
-
private widget;
|
|
7
|
-
private i;
|
|
8
|
-
private traceData?;
|
|
9
|
-
private xPVInstance?;
|
|
10
|
-
private yPVInstance?;
|
|
11
|
-
private xPVListener;
|
|
12
|
-
private yPVListener;
|
|
13
|
-
constructor(widget: XYGraph, i: number);
|
|
14
|
-
init(): void;
|
|
15
|
-
snapshot(): import("./TraceBuffer").Sample[];
|
|
16
|
-
drawTrace(g: Graphics, points: Point[]): void;
|
|
17
|
-
drawPoint(g: Graphics, point: Point): void;
|
|
18
|
-
clearData(): void;
|
|
19
|
-
get scale(): number;
|
|
20
|
-
private getValue;
|
|
21
|
-
get antiAlias(): boolean;
|
|
22
|
-
get bufferSize(): number;
|
|
23
|
-
get concatenateData(): boolean;
|
|
24
|
-
get lineWidth(): number;
|
|
25
|
-
get name(): string;
|
|
26
|
-
get plotMode(): number;
|
|
27
|
-
get pointSize(): number;
|
|
28
|
-
get pointStyle(): number;
|
|
29
|
-
get traceColor(): Color;
|
|
30
|
-
get traceType(): number;
|
|
31
|
-
get updateDelay(): number;
|
|
32
|
-
get updateMode(): number;
|
|
33
|
-
get visible(): boolean;
|
|
34
|
-
get xAxisIndex(): number;
|
|
35
|
-
get xPV(): string;
|
|
36
|
-
get yAxisIndex(): number;
|
|
37
|
-
get yPV(): string;
|
|
38
|
-
}
|
|
1
|
+
import { Color } from "../../../Color";
|
|
2
|
+
import { Graphics } from "../../../Graphics";
|
|
3
|
+
import { Point } from "../../../positioning";
|
|
4
|
+
import { XYGraph } from "./XYGraph";
|
|
5
|
+
export declare class Trace {
|
|
6
|
+
private widget;
|
|
7
|
+
private i;
|
|
8
|
+
private traceData?;
|
|
9
|
+
private xPVInstance?;
|
|
10
|
+
private yPVInstance?;
|
|
11
|
+
private xPVListener;
|
|
12
|
+
private yPVListener;
|
|
13
|
+
constructor(widget: XYGraph, i: number);
|
|
14
|
+
init(): void;
|
|
15
|
+
snapshot(): import("./TraceBuffer").Sample[];
|
|
16
|
+
drawTrace(g: Graphics, points: Point[]): void;
|
|
17
|
+
drawPoint(g: Graphics, point: Point): void;
|
|
18
|
+
clearData(): void;
|
|
19
|
+
get scale(): number;
|
|
20
|
+
private getValue;
|
|
21
|
+
get antiAlias(): boolean;
|
|
22
|
+
get bufferSize(): number;
|
|
23
|
+
get concatenateData(): boolean;
|
|
24
|
+
get lineWidth(): number;
|
|
25
|
+
get name(): string;
|
|
26
|
+
get plotMode(): number;
|
|
27
|
+
get pointSize(): number;
|
|
28
|
+
get pointStyle(): number;
|
|
29
|
+
get traceColor(): Color;
|
|
30
|
+
get traceType(): number;
|
|
31
|
+
get updateDelay(): number;
|
|
32
|
+
get updateMode(): number;
|
|
33
|
+
get visible(): boolean;
|
|
34
|
+
get xAxisIndex(): number;
|
|
35
|
+
get xPV(): string;
|
|
36
|
+
get yAxisIndex(): number;
|
|
37
|
+
get yPV(): string;
|
|
38
|
+
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
export interface Sample {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
|
-
}
|
|
5
|
-
export declare class TraceBuffer {
|
|
6
|
-
private bufferSize;
|
|
7
|
-
private plotMode;
|
|
8
|
-
private updateMode;
|
|
9
|
-
private concatenateData;
|
|
10
|
-
private chronological;
|
|
11
|
-
private traceData;
|
|
12
|
-
private x;
|
|
13
|
-
private xPending;
|
|
14
|
-
private y;
|
|
15
|
-
private yTimestamp?;
|
|
16
|
-
private yPending;
|
|
17
|
-
private xArray;
|
|
18
|
-
private xArrayPending;
|
|
19
|
-
private yArray;
|
|
20
|
-
private yArrayPending;
|
|
21
|
-
constructor(bufferSize: number, plotMode: number, updateMode: number, concatenateData: boolean, chronological: boolean);
|
|
22
|
-
clear(): void;
|
|
23
|
-
snapshot(): Sample[];
|
|
24
|
-
updateX(x: number): void;
|
|
25
|
-
updateY(y: number, timestamp?: number): void;
|
|
26
|
-
updateXArray(xArray: number[]): void;
|
|
27
|
-
updateYArray(yArray: number[]): void;
|
|
28
|
-
private maybeAddPoint;
|
|
29
|
-
private maybeAddArray;
|
|
30
|
-
private addPoint;
|
|
31
|
-
private addArray;
|
|
32
|
-
}
|
|
1
|
+
export interface Sample {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
}
|
|
5
|
+
export declare class TraceBuffer {
|
|
6
|
+
private bufferSize;
|
|
7
|
+
private plotMode;
|
|
8
|
+
private updateMode;
|
|
9
|
+
private concatenateData;
|
|
10
|
+
private chronological;
|
|
11
|
+
private traceData;
|
|
12
|
+
private x;
|
|
13
|
+
private xPending;
|
|
14
|
+
private y;
|
|
15
|
+
private yTimestamp?;
|
|
16
|
+
private yPending;
|
|
17
|
+
private xArray;
|
|
18
|
+
private xArrayPending;
|
|
19
|
+
private yArray;
|
|
20
|
+
private yArrayPending;
|
|
21
|
+
constructor(bufferSize: number, plotMode: number, updateMode: number, concatenateData: boolean, chronological: boolean);
|
|
22
|
+
clear(): void;
|
|
23
|
+
snapshot(): Sample[];
|
|
24
|
+
updateX(x: number): void;
|
|
25
|
+
updateY(y: number, timestamp?: number): void;
|
|
26
|
+
updateXArray(xArray: number[]): void;
|
|
27
|
+
updateYArray(yArray: number[]): void;
|
|
28
|
+
private maybeAddPoint;
|
|
29
|
+
private maybeAddArray;
|
|
30
|
+
private addPoint;
|
|
31
|
+
private addArray;
|
|
32
|
+
}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { Color } from
|
|
2
|
-
import { Display } from
|
|
3
|
-
import { Font } from
|
|
4
|
-
import { Graphics } from
|
|
5
|
-
import { Range } from
|
|
6
|
-
import { Widget } from
|
|
7
|
-
import { AbstractContainerWidget } from
|
|
8
|
-
import { Axis } from
|
|
9
|
-
import { Trace } from
|
|
10
|
-
import { XYGraphToolbar } from
|
|
11
|
-
export declare class XYGraph extends Widget {
|
|
12
|
-
toolbar?: XYGraphToolbar;
|
|
13
|
-
private plotAreaRegion?;
|
|
14
|
-
private axes;
|
|
15
|
-
private traces;
|
|
16
|
-
autoScaleAllowed: boolean;
|
|
17
|
-
constructor(display: Display, parent: AbstractContainerWidget);
|
|
18
|
-
init(): void;
|
|
19
|
-
draw(g: Graphics): void;
|
|
20
|
-
private drawToolbar;
|
|
21
|
-
private drawTitle;
|
|
22
|
-
private drawAxes;
|
|
23
|
-
private drawPlotArea;
|
|
24
|
-
private drawZoomSelection;
|
|
25
|
-
private drawLegend;
|
|
26
|
-
setCursor(cursor: string | undefined): void;
|
|
27
|
-
calculateAutoscaledRange(axis: Axis): Range | undefined;
|
|
28
|
-
performAutoScale(): void;
|
|
29
|
-
clearGraph(): void;
|
|
30
|
-
getAxes(): Axis[];
|
|
31
|
-
getXAxes(): Axis[];
|
|
32
|
-
getYAxes(): Axis[];
|
|
33
|
-
getAxis(index: number): Axis;
|
|
34
|
-
getTrace(index: number): Trace;
|
|
35
|
-
get axisCount(): number;
|
|
36
|
-
get plotAreaBackgroundColor(): Color;
|
|
37
|
-
get showLegend(): boolean;
|
|
38
|
-
get showPlotAreaBorder(): boolean;
|
|
39
|
-
get showToolbar(): boolean;
|
|
40
|
-
get title(): string;
|
|
41
|
-
get titleFont(): Font;
|
|
42
|
-
get traceCount(): number;
|
|
43
|
-
get transparent(): boolean;
|
|
44
|
-
}
|
|
1
|
+
import { Color } from "../../../Color";
|
|
2
|
+
import { Display } from "../../../Display";
|
|
3
|
+
import { Font } from "../../../Font";
|
|
4
|
+
import { Graphics } from "../../../Graphics";
|
|
5
|
+
import { Range } from "../../../Range";
|
|
6
|
+
import { Widget } from "../../../Widget";
|
|
7
|
+
import { AbstractContainerWidget } from "../../others/AbstractContainerWidget";
|
|
8
|
+
import { Axis } from "./Axis";
|
|
9
|
+
import { Trace } from "./Trace";
|
|
10
|
+
import { XYGraphToolbar } from "./XYGraphToolbar";
|
|
11
|
+
export declare class XYGraph extends Widget {
|
|
12
|
+
toolbar?: XYGraphToolbar;
|
|
13
|
+
private plotAreaRegion?;
|
|
14
|
+
private axes;
|
|
15
|
+
private traces;
|
|
16
|
+
autoScaleAllowed: boolean;
|
|
17
|
+
constructor(display: Display, parent: AbstractContainerWidget);
|
|
18
|
+
init(): void;
|
|
19
|
+
draw(g: Graphics): void;
|
|
20
|
+
private drawToolbar;
|
|
21
|
+
private drawTitle;
|
|
22
|
+
private drawAxes;
|
|
23
|
+
private drawPlotArea;
|
|
24
|
+
private drawZoomSelection;
|
|
25
|
+
private drawLegend;
|
|
26
|
+
setCursor(cursor: string | undefined): void;
|
|
27
|
+
calculateAutoscaledRange(axis: Axis): Range | undefined;
|
|
28
|
+
performAutoScale(): void;
|
|
29
|
+
clearGraph(): void;
|
|
30
|
+
getAxes(): Axis[];
|
|
31
|
+
getXAxes(): Axis[];
|
|
32
|
+
getYAxes(): Axis[];
|
|
33
|
+
getAxis(index: number): Axis;
|
|
34
|
+
getTrace(index: number): Trace;
|
|
35
|
+
get axisCount(): number;
|
|
36
|
+
get plotAreaBackgroundColor(): Color;
|
|
37
|
+
get showLegend(): boolean;
|
|
38
|
+
get showPlotAreaBorder(): boolean;
|
|
39
|
+
get showToolbar(): boolean;
|
|
40
|
+
get title(): string;
|
|
41
|
+
get titleFont(): Font;
|
|
42
|
+
get traceCount(): number;
|
|
43
|
+
get transparent(): boolean;
|
|
44
|
+
}
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { Graphics } from
|
|
2
|
-
import { HitRegionSpecification } from
|
|
3
|
-
import { Bounds } from
|
|
4
|
-
import { Command } from
|
|
5
|
-
import { XYGraph } from
|
|
6
|
-
declare class Button {
|
|
7
|
-
private imageFile;
|
|
8
|
-
private disabledImageFile;
|
|
9
|
-
private action;
|
|
10
|
-
readonly imageElement: HTMLImageElement;
|
|
11
|
-
readonly disabledImageElement: HTMLImageElement;
|
|
12
|
-
readonly loadPromise: Promise<void>;
|
|
13
|
-
readonly disabledLoadPromise: Promise<void>;
|
|
14
|
-
toggleButton: boolean;
|
|
15
|
-
toolButton: boolean;
|
|
16
|
-
pushed: boolean;
|
|
17
|
-
disabled: boolean;
|
|
18
|
-
region: HitRegionSpecification;
|
|
19
|
-
constructor(toolbar: XYGraphToolbar, imageFile: string, disabledImageFile: string, tooltip: string, action: () => void);
|
|
20
|
-
loadImage(prefix: string): void;
|
|
21
|
-
}
|
|
22
|
-
export declare class XYGraphToolbar {
|
|
23
|
-
readonly xyGraph: XYGraph;
|
|
24
|
-
private buttons;
|
|
25
|
-
private showLegend;
|
|
26
|
-
private autoScale;
|
|
27
|
-
private rubberbandZoom;
|
|
28
|
-
private horizontalZoom;
|
|
29
|
-
private verticalZoom;
|
|
30
|
-
private zoomIn;
|
|
31
|
-
private zoomOut;
|
|
32
|
-
private panning;
|
|
33
|
-
private mouseArrow;
|
|
34
|
-
private undo;
|
|
35
|
-
private redo;
|
|
36
|
-
private camera;
|
|
37
|
-
private imagesLoaded;
|
|
38
|
-
currentTool:
|
|
39
|
-
private commandBuffer;
|
|
40
|
-
constructor(xyGraph: XYGraph);
|
|
41
|
-
updateState(): void;
|
|
42
|
-
addCommand(command: Command): void;
|
|
43
|
-
toggleTool(button: Button): void;
|
|
44
|
-
private createToolButton;
|
|
45
|
-
private createToggleButton;
|
|
46
|
-
private createButton;
|
|
47
|
-
draw(g: Graphics, area: Bounds): number;
|
|
48
|
-
private maybeWrap;
|
|
49
|
-
private drawSeparator;
|
|
50
|
-
private drawButton;
|
|
51
|
-
get scale(): number;
|
|
52
|
-
get buttonSize(): number;
|
|
53
|
-
}
|
|
54
|
-
export {};
|
|
1
|
+
import { Graphics } from "../../../Graphics";
|
|
2
|
+
import { HitRegionSpecification } from "../../../HitRegionSpecification";
|
|
3
|
+
import { Bounds } from "../../../positioning";
|
|
4
|
+
import { Command } from "./CommandBuffer";
|
|
5
|
+
import { XYGraph } from "./XYGraph";
|
|
6
|
+
declare class Button {
|
|
7
|
+
private imageFile;
|
|
8
|
+
private disabledImageFile;
|
|
9
|
+
private action;
|
|
10
|
+
readonly imageElement: HTMLImageElement;
|
|
11
|
+
readonly disabledImageElement: HTMLImageElement;
|
|
12
|
+
readonly loadPromise: Promise<void>;
|
|
13
|
+
readonly disabledLoadPromise: Promise<void>;
|
|
14
|
+
toggleButton: boolean;
|
|
15
|
+
toolButton: boolean;
|
|
16
|
+
pushed: boolean;
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
region: HitRegionSpecification;
|
|
19
|
+
constructor(toolbar: XYGraphToolbar, imageFile: string, disabledImageFile: string, tooltip: string, action: () => void);
|
|
20
|
+
loadImage(prefix: string): void;
|
|
21
|
+
}
|
|
22
|
+
export declare class XYGraphToolbar {
|
|
23
|
+
readonly xyGraph: XYGraph;
|
|
24
|
+
private buttons;
|
|
25
|
+
private showLegend;
|
|
26
|
+
private autoScale;
|
|
27
|
+
private rubberbandZoom;
|
|
28
|
+
private horizontalZoom;
|
|
29
|
+
private verticalZoom;
|
|
30
|
+
private zoomIn;
|
|
31
|
+
private zoomOut;
|
|
32
|
+
private panning;
|
|
33
|
+
private mouseArrow;
|
|
34
|
+
private undo;
|
|
35
|
+
private redo;
|
|
36
|
+
private camera;
|
|
37
|
+
private imagesLoaded;
|
|
38
|
+
currentTool: "rubberband-zoom" | "horizontal-zoom" | "vertical-zoom" | "zoom-in" | "zoom-out" | "panning" | "default";
|
|
39
|
+
private commandBuffer;
|
|
40
|
+
constructor(xyGraph: XYGraph);
|
|
41
|
+
updateState(): void;
|
|
42
|
+
addCommand(command: Command): void;
|
|
43
|
+
toggleTool(button: Button): void;
|
|
44
|
+
private createToolButton;
|
|
45
|
+
private createToggleButton;
|
|
46
|
+
private createButton;
|
|
47
|
+
draw(g: Graphics, area: Bounds): number;
|
|
48
|
+
private maybeWrap;
|
|
49
|
+
private drawSeparator;
|
|
50
|
+
private drawButton;
|
|
51
|
+
get scale(): number;
|
|
52
|
+
get buttonSize(): number;
|
|
53
|
+
}
|
|
54
|
+
export {};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Display } from
|
|
2
|
-
import { MacroSet } from
|
|
3
|
-
import { Widget } from
|
|
4
|
-
import { Connection } from
|
|
5
|
-
export declare abstract class AbstractContainerWidget extends Widget {
|
|
6
|
-
_widgets: Widget[];
|
|
7
|
-
_connections: Connection[];
|
|
8
|
-
/**
|
|
9
|
-
* Scale relative to immediate parent.
|
|
10
|
-
*/
|
|
11
|
-
relativeScale: number;
|
|
12
|
-
constructor(display: Display, parent?: AbstractContainerWidget);
|
|
13
|
-
expandContainerMacros(text: string): string;
|
|
14
|
-
findWidget(wuid: string): Widget | undefined;
|
|
15
|
-
findWidgetByName(name: string): Widget | undefined;
|
|
16
|
-
hide(): void;
|
|
17
|
-
destroy(): void;
|
|
18
|
-
get widgets(): Widget[];
|
|
19
|
-
get connections(): Connection[];
|
|
20
|
-
get macros(): MacroSet;
|
|
21
|
-
}
|
|
1
|
+
import { Display } from "../../Display";
|
|
2
|
+
import { MacroSet } from "../../macros";
|
|
3
|
+
import { Widget } from "../../Widget";
|
|
4
|
+
import { Connection } from "./Connection";
|
|
5
|
+
export declare abstract class AbstractContainerWidget extends Widget {
|
|
6
|
+
_widgets: Widget[];
|
|
7
|
+
_connections: Connection[];
|
|
8
|
+
/**
|
|
9
|
+
* Scale relative to immediate parent.
|
|
10
|
+
*/
|
|
11
|
+
relativeScale: number;
|
|
12
|
+
constructor(display: Display, parent?: AbstractContainerWidget);
|
|
13
|
+
expandContainerMacros(text: string): string;
|
|
14
|
+
findWidget(wuid: string): Widget | undefined;
|
|
15
|
+
findWidgetByName(name: string): Widget | undefined;
|
|
16
|
+
hide(): void;
|
|
17
|
+
destroy(): void;
|
|
18
|
+
get widgets(): Widget[];
|
|
19
|
+
get connections(): Connection[];
|
|
20
|
+
get macros(): MacroSet;
|
|
21
|
+
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { Color } from
|
|
2
|
-
import { Display } from
|
|
3
|
-
import { Graphics } from
|
|
4
|
-
import { Point } from
|
|
5
|
-
import { Widget } from
|
|
6
|
-
import { XMLNode } from
|
|
7
|
-
export declare class Connection extends Widget {
|
|
8
|
-
private sourceWidget?;
|
|
9
|
-
private targetWidget?;
|
|
10
|
-
constructor(display: Display);
|
|
11
|
-
parseNode(node: XMLNode): void;
|
|
12
|
-
draw(g: Graphics): void;
|
|
13
|
-
private drawPath;
|
|
14
|
-
private drawManhattanConnection;
|
|
15
|
-
private getDashArray;
|
|
16
|
-
private drawDirectConnection;
|
|
17
|
-
private getManhattanAnchor;
|
|
18
|
-
private getPosition;
|
|
19
|
-
private route;
|
|
20
|
-
private drawStartArrow;
|
|
21
|
-
private drawStopArrow;
|
|
22
|
-
private calculateArrowPoints;
|
|
23
|
-
get minDist(): number;
|
|
24
|
-
get tol(): number;
|
|
25
|
-
get tolxtol(): number;
|
|
26
|
-
get name(): string;
|
|
27
|
-
get arrows(): number;
|
|
28
|
-
get fillArrow(): boolean;
|
|
29
|
-
get arrowLength(): number;
|
|
30
|
-
get lineColor(): Color;
|
|
31
|
-
get lineStyle(): number;
|
|
32
|
-
get lineWidth(): number;
|
|
33
|
-
get router(): number;
|
|
34
|
-
get sourceTerm(): string;
|
|
35
|
-
get sourceWuid(): string;
|
|
36
|
-
get targetTerm(): string;
|
|
37
|
-
get targetWuid(): string;
|
|
38
|
-
get points(): Point[];
|
|
39
|
-
}
|
|
1
|
+
import { Color } from "../../Color";
|
|
2
|
+
import { Display } from "../../Display";
|
|
3
|
+
import { Graphics } from "../../Graphics";
|
|
4
|
+
import { Point } from "../../positioning";
|
|
5
|
+
import { Widget } from "../../Widget";
|
|
6
|
+
import { XMLNode } from "../../XMLNode";
|
|
7
|
+
export declare class Connection extends Widget {
|
|
8
|
+
private sourceWidget?;
|
|
9
|
+
private targetWidget?;
|
|
10
|
+
constructor(display: Display);
|
|
11
|
+
parseNode(node: XMLNode): void;
|
|
12
|
+
draw(g: Graphics): void;
|
|
13
|
+
private drawPath;
|
|
14
|
+
private drawManhattanConnection;
|
|
15
|
+
private getDashArray;
|
|
16
|
+
private drawDirectConnection;
|
|
17
|
+
private getManhattanAnchor;
|
|
18
|
+
private getPosition;
|
|
19
|
+
private route;
|
|
20
|
+
private drawStartArrow;
|
|
21
|
+
private drawStopArrow;
|
|
22
|
+
private calculateArrowPoints;
|
|
23
|
+
get minDist(): number;
|
|
24
|
+
get tol(): number;
|
|
25
|
+
get tolxtol(): number;
|
|
26
|
+
get name(): string;
|
|
27
|
+
get arrows(): number;
|
|
28
|
+
get fillArrow(): boolean;
|
|
29
|
+
get arrowLength(): number;
|
|
30
|
+
get lineColor(): Color;
|
|
31
|
+
get lineStyle(): number;
|
|
32
|
+
get lineWidth(): number;
|
|
33
|
+
get router(): number;
|
|
34
|
+
get sourceTerm(): string;
|
|
35
|
+
get sourceWuid(): string;
|
|
36
|
+
get targetTerm(): string;
|
|
37
|
+
get targetWuid(): string;
|
|
38
|
+
get points(): Point[];
|
|
39
|
+
}
|