raain-model 0.4.1 → 1.10.28
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/README.md +7 -11
- package/RELEASE.md +2 -0
- package/cartesian/CartesianMeasureValue.d.ts +41 -0
- package/{cartesians → cartesian}/CartesianMeasureValue.js +39 -21
- package/cartesian/CartesianMeasureValue.js.map +1 -0
- package/cartesian/CartesianValue.d.ts +9 -0
- package/cartesian/CartesianValue.js +12 -0
- package/cartesian/CartesianValue.js.map +1 -0
- package/cartesian/ICartesianMeasureValue.d.ts +29 -0
- package/cartesian/ICartesianMeasureValue.js.map +1 -0
- package/cartesian/LatLng.d.ts +12 -0
- package/cartesian/LatLng.js +31 -0
- package/cartesian/LatLng.js.map +1 -0
- package/{cartesians → cartesian}/RadarCartesianMeasureValue.d.ts +8 -4
- package/cartesian/RadarCartesianMeasureValue.js +22 -0
- package/cartesian/RadarCartesianMeasureValue.js.map +1 -0
- package/{cartesians → cartesian}/RainCartesianMeasureValue.d.ts +9 -5
- package/cartesian/RainCartesianMeasureValue.js +25 -0
- package/cartesian/RainCartesianMeasureValue.js.map +1 -0
- package/gauge/GaugeMeasure.d.ts +20 -0
- package/gauge/GaugeMeasure.js +24 -0
- package/gauge/GaugeMeasure.js.map +1 -0
- package/gauge/GaugeNode.d.ts +24 -0
- package/gauge/GaugeNode.js +31 -0
- package/gauge/GaugeNode.js.map +1 -0
- package/{gauges → gauge}/GaugeNodeMap.d.ts +11 -3
- package/{gauges → gauge}/GaugeNodeMap.js +3 -10
- package/gauge/GaugeNodeMap.js.map +1 -0
- package/index.d.ts +39 -30
- package/index.js +39 -30
- package/index.js.map +1 -1
- package/{organizations → organization}/EventNode.d.ts +9 -1
- package/{organizations → organization}/EventNode.js +8 -8
- package/organization/EventNode.js.map +1 -0
- package/{organizations → organization}/IVersion.js.map +1 -1
- package/organization/Link.js.map +1 -0
- package/organization/Measure.d.ts +20 -0
- package/organization/Measure.js +35 -0
- package/organization/Measure.js.map +1 -0
- package/{organizations → organization}/PeopleNode.d.ts +8 -2
- package/organization/PeopleNode.js +26 -0
- package/organization/PeopleNode.js.map +1 -0
- package/{organizations → organization}/RaainNode.d.ts +7 -3
- package/{organizations → organization}/RaainNode.js +7 -18
- package/organization/RaainNode.js.map +1 -0
- package/organization/TeamNode.d.ts +22 -0
- package/organization/TeamNode.js +32 -0
- package/organization/TeamNode.js.map +1 -0
- package/package.json +10 -8
- package/{polars → polar}/AbstractPolarMeasureValue.d.ts +13 -3
- package/{polars → polar}/AbstractPolarMeasureValue.js +30 -20
- package/polar/AbstractPolarMeasureValue.js.map +1 -0
- package/{polars → polar}/GaugePolarMeasureValue.d.ts +3 -1
- package/{polars → polar}/GaugePolarMeasureValue.js +2 -2
- package/polar/GaugePolarMeasureValue.js.map +1 -0
- package/{polars → polar}/IPolarMeasureValue.d.ts +9 -2
- package/polar/IPolarMeasureValue.js.map +1 -0
- package/{polars → polar}/MeasureValuePolarContainer.d.ts +5 -1
- package/polar/MeasureValuePolarContainer.js +22 -0
- package/polar/MeasureValuePolarContainer.js.map +1 -0
- package/{polars → polar}/PolarMeasureValue.d.ts +13 -3
- package/{polars → polar}/PolarMeasureValue.js +22 -16
- package/polar/PolarMeasureValue.js.map +1 -0
- package/polar/PolarValue.d.ts +10 -0
- package/polar/PolarValue.js +12 -0
- package/polar/PolarValue.js.map +1 -0
- package/{polars → polar}/RadarPolarMeasureValue.d.ts +4 -1
- package/{polars → polar}/RadarPolarMeasureValue.js +8 -8
- package/polar/RadarPolarMeasureValue.js.map +1 -0
- package/{polars → polar}/RainPolarMeasureValue.d.ts +6 -2
- package/{polars → polar}/RainPolarMeasureValue.js +15 -5
- package/polar/RainPolarMeasureValue.js.map +1 -0
- package/quality/QualityPoint.d.ts +35 -0
- package/quality/QualityPoint.js +63 -0
- package/quality/QualityPoint.js.map +1 -0
- package/quality/SpeedMatrix.d.ts +79 -0
- package/quality/SpeedMatrix.js +251 -0
- package/quality/SpeedMatrix.js.map +1 -0
- package/quality/SpeedMatrixContainer.d.ts +76 -0
- package/quality/SpeedMatrixContainer.js +310 -0
- package/quality/SpeedMatrixContainer.js.map +1 -0
- package/quality/history/CartesianGaugeHistory.d.ts +15 -0
- package/quality/history/CartesianGaugeHistory.js +14 -0
- package/quality/history/CartesianGaugeHistory.js.map +1 -0
- package/quality/history/CartesianRainHistory.d.ts +11 -0
- package/quality/history/CartesianRainHistory.js +12 -0
- package/quality/history/CartesianRainHistory.js.map +1 -0
- package/quality/history/PositionHistory.d.ts +20 -0
- package/quality/history/PositionHistory.js +17 -0
- package/quality/history/PositionHistory.js.map +1 -0
- package/quality/position/Position.d.ts +22 -0
- package/quality/position/Position.js +50 -0
- package/quality/position/Position.js.map +1 -0
- package/quality/position/PositionValue.d.ts +9 -0
- package/quality/position/PositionValue.js +12 -0
- package/quality/position/PositionValue.js.map +1 -0
- package/quality/tools/QualityTools.d.ts +24 -0
- package/quality/tools/QualityTools.js +182 -0
- package/quality/tools/QualityTools.js.map +1 -0
- package/radar/RadarMeasure.d.ts +17 -0
- package/radar/RadarMeasure.js +18 -0
- package/radar/RadarMeasure.js.map +1 -0
- package/radar/RadarNode.d.ts +24 -0
- package/radar/RadarNode.js +31 -0
- package/radar/RadarNode.js.map +1 -0
- package/radar/RadarNodeMap.d.ts +28 -0
- package/{radars → radar}/RadarNodeMap.js +5 -12
- package/radar/RadarNodeMap.js.map +1 -0
- package/rain/RainComputation.d.ts +34 -0
- package/{rains → rain}/RainComputation.js +8 -13
- package/rain/RainComputation.js.map +1 -0
- package/{rains → rain}/RainComputationAbstract.d.ts +9 -10
- package/rain/RainComputationAbstract.js +102 -0
- package/rain/RainComputationAbstract.js.map +1 -0
- package/rain/RainComputationMap.d.ts +32 -0
- package/{rains → rain}/RainComputationMap.js +3 -8
- package/rain/RainComputationMap.js.map +1 -0
- package/{rains → rain}/RainComputationQuality.d.ts +21 -8
- package/{rains → rain}/RainComputationQuality.js +3 -8
- package/rain/RainComputationQuality.js.map +1 -0
- package/rain/RainMeasure.d.ts +18 -0
- package/rain/RainMeasure.js +19 -0
- package/rain/RainMeasure.js.map +1 -0
- package/rain/RainNode.d.ts +38 -0
- package/rain/RainNode.js +127 -0
- package/rain/RainNode.js.map +1 -0
- package/cartesians/CartesianMeasureValue.d.ts +0 -27
- package/cartesians/CartesianMeasureValue.js.map +0 -1
- package/cartesians/CartesianValue.d.ts +0 -6
- package/cartesians/CartesianValue.js +0 -12
- package/cartesians/CartesianValue.js.map +0 -1
- package/cartesians/ICartesianMeasureValue.d.ts +0 -17
- package/cartesians/ICartesianMeasureValue.js.map +0 -1
- package/cartesians/RadarCartesianMeasureValue.js +0 -37
- package/cartesians/RadarCartesianMeasureValue.js.map +0 -1
- package/cartesians/RainCartesianMeasureValue.js +0 -40
- package/cartesians/RainCartesianMeasureValue.js.map +0 -1
- package/gauges/GaugeMeasure.d.ts +0 -12
- package/gauges/GaugeMeasure.js +0 -31
- package/gauges/GaugeMeasure.js.map +0 -1
- package/gauges/GaugeNode.d.ts +0 -15
- package/gauges/GaugeNode.js +0 -37
- package/gauges/GaugeNode.js.map +0 -1
- package/gauges/GaugeNodeMap.js.map +0 -1
- package/organizations/EventNode.js.map +0 -1
- package/organizations/Link.js.map +0 -1
- package/organizations/Measure.d.ts +0 -12
- package/organizations/Measure.js +0 -29
- package/organizations/Measure.js.map +0 -1
- package/organizations/PeopleNode.js +0 -34
- package/organizations/PeopleNode.js.map +0 -1
- package/organizations/QualityPoint.d.ts +0 -17
- package/organizations/QualityPoint.js +0 -16
- package/organizations/QualityPoint.js.map +0 -1
- package/organizations/RaainNode.js.map +0 -1
- package/organizations/TeamNode.d.ts +0 -15
- package/organizations/TeamNode.js +0 -38
- package/organizations/TeamNode.js.map +0 -1
- package/polars/AbstractPolarMeasureValue.js.map +0 -1
- package/polars/GaugePolarMeasureValue.js.map +0 -1
- package/polars/IPolarMeasureValue.js.map +0 -1
- package/polars/MeasureValuePolarContainer.js +0 -28
- package/polars/MeasureValuePolarContainer.js.map +0 -1
- package/polars/PolarMeasureValue.js.map +0 -1
- package/polars/PolarValue.d.ts +0 -6
- package/polars/PolarValue.js +0 -12
- package/polars/PolarValue.js.map +0 -1
- package/polars/RadarPolarMeasureValue.js.map +0 -1
- package/polars/RainPolarMeasureValue.js.map +0 -1
- package/radars/RadarMeasure.d.ts +0 -11
- package/radars/RadarMeasure.js +0 -24
- package/radars/RadarMeasure.js.map +0 -1
- package/radars/RadarNode.d.ts +0 -14
- package/radars/RadarNode.js +0 -35
- package/radars/RadarNode.js.map +0 -1
- package/radars/RadarNodeMap.d.ts +0 -16
- package/radars/RadarNodeMap.js.map +0 -1
- package/rains/RainComputation.d.ts +0 -34
- package/rains/RainComputation.js.map +0 -1
- package/rains/RainComputationAbstract.js +0 -113
- package/rains/RainComputationAbstract.js.map +0 -1
- package/rains/RainComputationMap.d.ts +0 -16
- package/rains/RainComputationMap.js.map +0 -1
- package/rains/RainComputationQuality.js.map +0 -1
- package/rains/RainMeasure.d.ts +0 -12
- package/rains/RainMeasure.js +0 -25
- package/rains/RainMeasure.js.map +0 -1
- package/rains/RainNode.d.ts +0 -23
- package/rains/RainNode.js +0 -116
- package/rains/RainNode.js.map +0 -1
- /package/{cartesians → cartesian}/ICartesianMeasureValue.js +0 -0
- /package/{organizations → organization}/IVersion.d.ts +0 -0
- /package/{organizations → organization}/IVersion.js +0 -0
- /package/{organizations → organization}/Link.d.ts +0 -0
- /package/{organizations → organization}/Link.js +0 -0
- /package/{polars → polar}/IPolarMeasureValue.js +0 -0
package/README.md
CHANGED
|
@@ -1,25 +1,21 @@
|
|
|
1
1
|
# raain-model
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> RAAIN model defined in [radartorain.com](https://api.radartorain.com) services.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
IN PROGRESS...
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
### Usage
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Will be used in :
|
|
10
10
|
|
|
11
|
-
Raain.io has Open API (in progress).
|
|
12
|
-
|
|
13
|
-
See [examples/](https://github.com/raainio/raain-model/blob/master/examples/v1/asCustomer.spec.js) directory for examples and usage scenario.
|
|
14
|
-
|
|
15
|
-
Used in :
|
|
16
11
|
- [https://radartorain.com](https://radartorain.com)
|
|
17
12
|
- [node-raain-tools](https://github.com/raainio/node-raain-tools)
|
|
18
|
-
- [https://
|
|
13
|
+
- [https://api.radartorain.com](https://api.radartorain.com)
|
|
19
14
|
|
|
20
15
|
## History
|
|
21
16
|
|
|
22
|
-
See [Release notes](
|
|
17
|
+
See [Release notes](./RELEASE.md).
|
|
23
18
|
|
|
24
19
|
## License
|
|
20
|
+
|
|
25
21
|
MIT
|
package/RELEASE.md
CHANGED
|
@@ -8,3 +8,5 @@
|
|
|
8
8
|
- v0.3.1 : Reformat Links, add IVersion
|
|
9
9
|
- v0.3.2+ : Bugs fixing (conversion, CI/CD)
|
|
10
10
|
- v0.4.1 : Cartesian values, Folder reorg (renaming of Polar objects : XX-MeasureValue => XX-PolarMeasureValue )
|
|
11
|
+
- v1.9.x : Cartesian improvements
|
|
12
|
+
- v1.10.x : Object constructor based on json only. Specs added.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ICartesianMeasureValue } from './ICartesianMeasureValue';
|
|
2
|
+
import { CartesianValue } from './CartesianValue';
|
|
3
|
+
import { LatLng } from './LatLng';
|
|
4
|
+
export declare class CartesianMeasureValue implements ICartesianMeasureValue {
|
|
5
|
+
protected cartesianValues: CartesianValue[];
|
|
6
|
+
protected cartesianPixelWidth: LatLng;
|
|
7
|
+
constructor(json: {
|
|
8
|
+
cartesianValues: string | CartesianValue[];
|
|
9
|
+
cartesianPixelWidth: {
|
|
10
|
+
lat: number;
|
|
11
|
+
lng: number;
|
|
12
|
+
} | LatLng;
|
|
13
|
+
});
|
|
14
|
+
static From(obj: any): CartesianMeasureValue;
|
|
15
|
+
getCartesianValuesStringified(): string;
|
|
16
|
+
getCartesianValues(): CartesianValue[];
|
|
17
|
+
setCartesianValues(cartesianValues: CartesianValue[]): void;
|
|
18
|
+
setCartesianValuesAsString(s: string): void;
|
|
19
|
+
toJSON(stringify?: boolean): JSON;
|
|
20
|
+
toJSONWithCartesianValuesStringified(): JSON;
|
|
21
|
+
getCartesianValue(json: {
|
|
22
|
+
lat: number;
|
|
23
|
+
lng: number;
|
|
24
|
+
}): CartesianValue;
|
|
25
|
+
getCartesianValueRounded(json: {
|
|
26
|
+
lat: number;
|
|
27
|
+
lng: number;
|
|
28
|
+
scale: number;
|
|
29
|
+
}): CartesianValue;
|
|
30
|
+
setCartesianValue(json: {
|
|
31
|
+
lat: number;
|
|
32
|
+
lng: number;
|
|
33
|
+
value: number;
|
|
34
|
+
}): void;
|
|
35
|
+
getCartesianPixelWidth(): LatLng;
|
|
36
|
+
setCartesianPixelWidth(latLng: {
|
|
37
|
+
lat: number;
|
|
38
|
+
lng: number;
|
|
39
|
+
} | LatLng): void;
|
|
40
|
+
protected setCartesianValuesAsAny(cartesianValues: any): void;
|
|
41
|
+
}
|
|
@@ -2,19 +2,29 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CartesianMeasureValue = void 0;
|
|
4
4
|
const CartesianValue_1 = require("./CartesianValue");
|
|
5
|
+
const LatLng_1 = require("./LatLng");
|
|
5
6
|
class CartesianMeasureValue {
|
|
6
|
-
constructor(
|
|
7
|
-
if (!cartesianValues) {
|
|
8
|
-
throw new Error('CartesianMeasureValue needs cartesianValues');
|
|
7
|
+
constructor(json) {
|
|
8
|
+
if (!(json === null || json === void 0 ? void 0 : json.cartesianValues) || !(json === null || json === void 0 ? void 0 : json.cartesianPixelWidth)) {
|
|
9
|
+
throw new Error('CartesianMeasureValue needs cartesianValues && cartesianPixelWidth');
|
|
9
10
|
}
|
|
10
|
-
this.cartesianValues
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
this.setCartesianValuesAsAny(json.cartesianValues);
|
|
12
|
+
this.setCartesianPixelWidth(json.cartesianPixelWidth);
|
|
13
|
+
}
|
|
14
|
+
static From(obj) {
|
|
15
|
+
const created = new CartesianMeasureValue({
|
|
16
|
+
cartesianValues: [],
|
|
17
|
+
cartesianPixelWidth: { lat: 0, lng: 0 }
|
|
18
|
+
});
|
|
19
|
+
if (typeof obj.cartesianValues !== 'undefined') {
|
|
20
|
+
created.setCartesianValuesAsAny(obj.cartesianValues);
|
|
13
21
|
}
|
|
14
|
-
|
|
15
|
-
|
|
22
|
+
if (typeof obj.cartesianPixelWidth !== 'undefined' &&
|
|
23
|
+
typeof obj.cartesianPixelWidth.lat !== 'undefined' &&
|
|
24
|
+
typeof obj.cartesianPixelWidth.lng !== 'undefined') {
|
|
25
|
+
created.setCartesianPixelWidth(obj.cartesianPixelWidth);
|
|
16
26
|
}
|
|
17
|
-
|
|
27
|
+
return created;
|
|
18
28
|
}
|
|
19
29
|
getCartesianValuesStringified() {
|
|
20
30
|
return JSON.stringify({ cartesianValues: this.cartesianValues });
|
|
@@ -33,7 +43,7 @@ class CartesianMeasureValue {
|
|
|
33
43
|
if (Array.isArray(values)) {
|
|
34
44
|
this.cartesianValues = [];
|
|
35
45
|
values.forEach(v => {
|
|
36
|
-
this.cartesianValues.push(new CartesianValue_1.CartesianValue(v
|
|
46
|
+
this.cartesianValues.push(new CartesianValue_1.CartesianValue(v));
|
|
37
47
|
});
|
|
38
48
|
}
|
|
39
49
|
}
|
|
@@ -54,34 +64,42 @@ class CartesianMeasureValue {
|
|
|
54
64
|
cartesianPixelWidth: this.cartesianPixelWidth,
|
|
55
65
|
};
|
|
56
66
|
}
|
|
57
|
-
getCartesianValue(
|
|
67
|
+
getCartesianValue(json) {
|
|
58
68
|
for (const value of this.cartesianValues) {
|
|
59
|
-
if (value.lat === lat && value.lng === lng) {
|
|
69
|
+
if (value.lat === json.lat && value.lng === json.lng) {
|
|
60
70
|
return value;
|
|
61
71
|
}
|
|
62
72
|
}
|
|
63
73
|
return null;
|
|
64
74
|
}
|
|
65
|
-
getCartesianValueRounded(
|
|
75
|
+
getCartesianValueRounded(json) {
|
|
66
76
|
for (const value of this.cartesianValues) {
|
|
67
|
-
const latRounded1 = Math.round(lat / scale) * scale;
|
|
68
|
-
const lngRounded1 = Math.round(lng / scale) * scale;
|
|
69
|
-
const latRounded2 = Math.round(value.lat / scale) * scale;
|
|
70
|
-
const lngRounded2 = Math.round(value.lng / scale) * scale;
|
|
77
|
+
const latRounded1 = Math.round(json.lat / json.scale) * json.scale;
|
|
78
|
+
const lngRounded1 = Math.round(json.lng / json.scale) * json.scale;
|
|
79
|
+
const latRounded2 = Math.round(value.lat / json.scale) * json.scale;
|
|
80
|
+
const lngRounded2 = Math.round(value.lng / json.scale) * json.scale;
|
|
71
81
|
if (latRounded1 === latRounded2 && lngRounded1 === lngRounded2) {
|
|
72
82
|
return value;
|
|
73
83
|
}
|
|
74
84
|
}
|
|
75
85
|
return null;
|
|
76
86
|
}
|
|
77
|
-
setCartesianValue(
|
|
78
|
-
this.cartesianValues.push(new CartesianValue_1.CartesianValue(
|
|
87
|
+
setCartesianValue(json) {
|
|
88
|
+
this.cartesianValues.push(new CartesianValue_1.CartesianValue(json));
|
|
79
89
|
}
|
|
80
90
|
getCartesianPixelWidth() {
|
|
81
91
|
return this.cartesianPixelWidth;
|
|
82
92
|
}
|
|
83
|
-
setCartesianPixelWidth(
|
|
84
|
-
this.cartesianPixelWidth =
|
|
93
|
+
setCartesianPixelWidth(latLng) {
|
|
94
|
+
this.cartesianPixelWidth = new LatLng_1.LatLng(latLng);
|
|
95
|
+
}
|
|
96
|
+
setCartesianValuesAsAny(cartesianValues) {
|
|
97
|
+
if (typeof cartesianValues === 'string') {
|
|
98
|
+
this.setCartesianValuesAsString(cartesianValues);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
this.setCartesianValues(cartesianValues);
|
|
102
|
+
}
|
|
85
103
|
}
|
|
86
104
|
}
|
|
87
105
|
exports.CartesianMeasureValue = CartesianMeasureValue;
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CAAC;SACpD;aAAM;YACH,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC,CAAC;SAC5C;IACL,CAAC;CACJ;AAnID,sDAmIC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CartesianValue = void 0;
|
|
4
|
+
const LatLng_1 = require("./LatLng");
|
|
5
|
+
class CartesianValue extends LatLng_1.LatLng {
|
|
6
|
+
constructor(json) {
|
|
7
|
+
super(json);
|
|
8
|
+
this.value = json.value;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.CartesianValue = CartesianValue;
|
|
12
|
+
//# sourceMappingURL=CartesianValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CartesianValue.js","sourceRoot":"","sources":["../../src/cartesian/CartesianValue.ts"],"names":[],"mappings":";;;AAAA,qCAAgC;AAEhC,MAAa,cAAe,SAAQ,eAAM;IAItC,YAAY,IAIC;QAET,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;IAC5B,CAAC;CACJ;AAbD,wCAaC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CartesianValue } from './CartesianValue';
|
|
2
|
+
import { LatLng } from './LatLng';
|
|
3
|
+
export interface ICartesianMeasureValue {
|
|
4
|
+
getCartesianValuesStringified(): string;
|
|
5
|
+
getCartesianValues(): CartesianValue[];
|
|
6
|
+
setCartesianValues(cartesianValues: CartesianValue[]): void;
|
|
7
|
+
setCartesianValuesAsString(s: string): void;
|
|
8
|
+
toJSON(): JSON;
|
|
9
|
+
toJSONWithCartesianValuesStringified(): JSON;
|
|
10
|
+
getCartesianValue(json: {
|
|
11
|
+
lat: number;
|
|
12
|
+
lng: number;
|
|
13
|
+
}): CartesianValue;
|
|
14
|
+
getCartesianValueRounded(json: {
|
|
15
|
+
lat: number;
|
|
16
|
+
lng: number;
|
|
17
|
+
scale?: number;
|
|
18
|
+
}): CartesianValue;
|
|
19
|
+
setCartesianValue(json: {
|
|
20
|
+
lat: number;
|
|
21
|
+
lng: number;
|
|
22
|
+
value: number;
|
|
23
|
+
}): void;
|
|
24
|
+
getCartesianPixelWidth(): LatLng;
|
|
25
|
+
setCartesianPixelWidth(json: {
|
|
26
|
+
lat: number;
|
|
27
|
+
lng: number;
|
|
28
|
+
}): void;
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICartesianMeasureValue.js","sourceRoot":"","sources":["../../src/cartesian/ICartesianMeasureValue.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class LatLng {
|
|
2
|
+
lat: number;
|
|
3
|
+
lng: number;
|
|
4
|
+
constructor(json: {
|
|
5
|
+
lat: number;
|
|
6
|
+
lng: number;
|
|
7
|
+
});
|
|
8
|
+
equals(v: LatLng): boolean;
|
|
9
|
+
setPrecision(precision?: number): void;
|
|
10
|
+
rounded(scale: LatLng): void;
|
|
11
|
+
limitPrecision(precision?: number): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LatLng = void 0;
|
|
4
|
+
const QualityTools_1 = require("../quality/tools/QualityTools");
|
|
5
|
+
class LatLng {
|
|
6
|
+
constructor(json) {
|
|
7
|
+
if (typeof (json === null || json === void 0 ? void 0 : json.lat) === 'undefined' || typeof (json === null || json === void 0 ? void 0 : json.lng) === 'undefined') {
|
|
8
|
+
throw new Error('LatLng needs valid latitude && longitude');
|
|
9
|
+
}
|
|
10
|
+
this.lat = json.lat;
|
|
11
|
+
this.lng = json.lng;
|
|
12
|
+
}
|
|
13
|
+
equals(v) {
|
|
14
|
+
return this.lat === v.lat && this.lng === v.lng;
|
|
15
|
+
}
|
|
16
|
+
setPrecision(precision = 12) {
|
|
17
|
+
const tenPower = Math.pow(10, precision);
|
|
18
|
+
this.lat = Math.round(this.lat * tenPower) / tenPower;
|
|
19
|
+
this.lng = Math.round(this.lng * tenPower) / tenPower;
|
|
20
|
+
}
|
|
21
|
+
rounded(scale) {
|
|
22
|
+
this.lat = QualityTools_1.QualityTools.RoundLatLng(this.lat, scale.lat, true);
|
|
23
|
+
this.lng = QualityTools_1.QualityTools.RoundLatLng(this.lng, scale.lng, true);
|
|
24
|
+
}
|
|
25
|
+
limitPrecision(precision = 12) {
|
|
26
|
+
this.lat = QualityTools_1.QualityTools.LimitWithPrecision(this.lat, precision);
|
|
27
|
+
this.lng = QualityTools_1.QualityTools.LimitWithPrecision(this.lng, precision);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.LatLng = LatLng;
|
|
31
|
+
//# sourceMappingURL=LatLng.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LatLng.js","sourceRoot":"","sources":["../../src/cartesian/LatLng.ts"],"names":[],"mappings":";;;AAAA,gEAA2D;AAE3D,MAAa,MAAM;IAKf,YAAY,IAGX;QACG,IAAI,OAAO,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,GAAG,CAAA,KAAK,WAAW,IAAI,OAAO,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,GAAG,CAAA,KAAK,WAAW,EAAE;YACtE,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;SAC/D;QAED,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;QACpB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;IACxB,CAAC;IAEM,MAAM,CAAC,CAAS;QACnB,OAAO,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,CAAC;IACpD,CAAC;IAED,YAAY,CAAC,YAAoB,EAAE;QAC/B,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;QACzC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,GAAG,QAAQ,CAAC,GAAG,QAAQ,CAAC;QACtD,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,GAAG,QAAQ,CAAC,GAAG,QAAQ,CAAC;IAC1D,CAAC;IAED,OAAO,CAAC,KAAa;QACjB,IAAI,CAAC,GAAG,GAAG,2BAAY,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,GAAG,GAAG,2BAAY,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;IAED,cAAc,CAAC,SAAS,GAAG,EAAE;QACzB,IAAI,CAAC,GAAG,GAAG,2BAAY,CAAC,kBAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;QAChE,IAAI,CAAC,GAAG,GAAG,2BAAY,CAAC,kBAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IACpE,CAAC;CACJ;AApCD,wBAoCC"}
|
|
@@ -2,10 +2,14 @@ import { CartesianValue } from './CartesianValue';
|
|
|
2
2
|
import { CartesianMeasureValue } from './CartesianMeasureValue';
|
|
3
3
|
export declare class RadarCartesianMeasureValue extends CartesianMeasureValue {
|
|
4
4
|
angle: number;
|
|
5
|
-
constructor(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
constructor(json: {
|
|
6
|
+
cartesianValues: string | CartesianValue[];
|
|
7
|
+
cartesianPixelWidth: {
|
|
8
|
+
lat: number;
|
|
9
|
+
lng: number;
|
|
10
|
+
};
|
|
11
|
+
angle: number;
|
|
12
|
+
});
|
|
9
13
|
toJSON(stringify?: boolean): JSON;
|
|
10
14
|
toJSONWithCartesianValuesStringified(): JSON;
|
|
11
15
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RadarCartesianMeasureValue = void 0;
|
|
4
|
+
const CartesianMeasureValue_1 = require("./CartesianMeasureValue");
|
|
5
|
+
class RadarCartesianMeasureValue extends CartesianMeasureValue_1.CartesianMeasureValue {
|
|
6
|
+
constructor(json) {
|
|
7
|
+
super(json);
|
|
8
|
+
this.angle = json.angle;
|
|
9
|
+
}
|
|
10
|
+
toJSON(stringify = false) {
|
|
11
|
+
const json = super.toJSON(stringify);
|
|
12
|
+
json.angle = this.angle;
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
toJSONWithCartesianValuesStringified() {
|
|
16
|
+
const json = super.toJSONWithCartesianValuesStringified();
|
|
17
|
+
json.angle = this.angle;
|
|
18
|
+
return json;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.RadarCartesianMeasureValue = RadarCartesianMeasureValue;
|
|
22
|
+
//# sourceMappingURL=RadarCartesianMeasureValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadarCartesianMeasureValue.js","sourceRoot":"","sources":["../../src/cartesian/RadarCartesianMeasureValue.ts"],"names":[],"mappings":";;;AACA,mEAA8D;AAE9D,MAAa,0BAA2B,SAAQ,6CAAqB;IAIjE,YAAY,IAIX;QAEG,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;IAC5B,CAAC;IAED,MAAM,CAAC,SAAS,GAAG,KAAK;QACpB,MAAM,IAAI,GAAQ,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAC1C,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,oCAAoC;QAChC,MAAM,IAAI,GAAQ,KAAK,CAAC,oCAAoC,EAAE,CAAC;QAC/D,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAzBD,gEAyBC"}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import { IVersion } from '../
|
|
1
|
+
import { IVersion } from '../organization/IVersion';
|
|
2
2
|
import { CartesianValue } from './CartesianValue';
|
|
3
3
|
import { CartesianMeasureValue } from './CartesianMeasureValue';
|
|
4
4
|
export declare class RainCartesianMeasureValue extends CartesianMeasureValue implements IVersion {
|
|
5
5
|
private readonly version;
|
|
6
|
-
constructor(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
constructor(json: {
|
|
7
|
+
cartesianValues: string | CartesianValue[];
|
|
8
|
+
cartesianPixelWidth: {
|
|
9
|
+
lat: number;
|
|
10
|
+
lng: number;
|
|
11
|
+
};
|
|
12
|
+
version?: string;
|
|
13
|
+
});
|
|
10
14
|
getVersion(): string;
|
|
11
15
|
toJSON(stringify?: boolean): JSON;
|
|
12
16
|
toJSONWithCartesianValuesStringified(): JSON;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RainCartesianMeasureValue = void 0;
|
|
4
|
+
const CartesianMeasureValue_1 = require("./CartesianMeasureValue");
|
|
5
|
+
class RainCartesianMeasureValue extends CartesianMeasureValue_1.CartesianMeasureValue {
|
|
6
|
+
constructor(json) {
|
|
7
|
+
super(json);
|
|
8
|
+
this.version = json.version;
|
|
9
|
+
}
|
|
10
|
+
getVersion() {
|
|
11
|
+
return this.version;
|
|
12
|
+
}
|
|
13
|
+
toJSON(stringify = false) {
|
|
14
|
+
const json = super.toJSON(stringify);
|
|
15
|
+
json.version = this.getVersion();
|
|
16
|
+
return json;
|
|
17
|
+
}
|
|
18
|
+
toJSONWithCartesianValuesStringified() {
|
|
19
|
+
const json = super.toJSONWithCartesianValuesStringified();
|
|
20
|
+
json.version = this.getVersion();
|
|
21
|
+
return json;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.RainCartesianMeasureValue = RainCartesianMeasureValue;
|
|
25
|
+
//# sourceMappingURL=RainCartesianMeasureValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RainCartesianMeasureValue.js","sourceRoot":"","sources":["../../src/cartesian/RainCartesianMeasureValue.ts"],"names":[],"mappings":";;;AAEA,mEAA8D;AAE9D,MAAa,yBAA0B,SAAQ,6CAAqB;IAIhE,YAAY,IAIX;QACG,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;IAChC,CAAC;IAED,UAAU;QACN,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED,MAAM,CAAC,SAAS,GAAG,KAAK;QACpB,MAAM,IAAI,GAAQ,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,oCAAoC;QAChC,MAAM,IAAI,GAAQ,KAAK,CAAC,oCAAoC,EAAE,CAAC;QAC/D,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA5BD,8DA4BC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Measure } from '../organization/Measure';
|
|
2
|
+
import { IPolarMeasureValue } from '../polar/IPolarMeasureValue';
|
|
3
|
+
import { ICartesianMeasureValue } from '../cartesian/ICartesianMeasureValue';
|
|
4
|
+
/**
|
|
5
|
+
* api/gauges/:id/measures/:id
|
|
6
|
+
*/
|
|
7
|
+
export declare class GaugeMeasure extends Measure {
|
|
8
|
+
static TYPE: string;
|
|
9
|
+
timeInSec: number;
|
|
10
|
+
constructor(json: {
|
|
11
|
+
id: string;
|
|
12
|
+
values: IPolarMeasureValue[] | ICartesianMeasureValue[] | Measure[] | number[];
|
|
13
|
+
date?: Date;
|
|
14
|
+
validity?: number;
|
|
15
|
+
timeInSec?: number;
|
|
16
|
+
configurationAsJSON?: string | any;
|
|
17
|
+
});
|
|
18
|
+
toJSON(): JSON;
|
|
19
|
+
protected getLinkType(): string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GaugeMeasure = void 0;
|
|
4
|
+
const Measure_1 = require("../organization/Measure");
|
|
5
|
+
/**
|
|
6
|
+
* api/gauges/:id/measures/:id
|
|
7
|
+
*/
|
|
8
|
+
class GaugeMeasure extends Measure_1.Measure {
|
|
9
|
+
constructor(json) {
|
|
10
|
+
super(json);
|
|
11
|
+
this.timeInSec = json.timeInSec >= 0 ? json.timeInSec : -1;
|
|
12
|
+
}
|
|
13
|
+
toJSON() {
|
|
14
|
+
const json = super.toJSON();
|
|
15
|
+
json['timeInSec'] = this.timeInSec;
|
|
16
|
+
return json;
|
|
17
|
+
}
|
|
18
|
+
getLinkType() {
|
|
19
|
+
return GaugeMeasure.TYPE;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
GaugeMeasure.TYPE = 'gauge-measure';
|
|
23
|
+
exports.GaugeMeasure = GaugeMeasure;
|
|
24
|
+
//# sourceMappingURL=GaugeMeasure.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GaugeMeasure.js","sourceRoot":"","sources":["../../src/gauge/GaugeMeasure.ts"],"names":[],"mappings":";;;AAAA,qDAAgD;AAIhD;;GAEG;AACH,MAAa,YAAa,SAAQ,iBAAO;IAKrC,YAAY,IAOC;QAET,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/D,CAAC;IAEM,MAAM;QACT,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;QAC5B,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;QACnC,OAAO,IAAI,CAAC;IAChB,CAAC;IAES,WAAW;QACjB,OAAO,YAAY,CAAC,IAAI,CAAC;IAC7B,CAAC;;AAxBa,iBAAI,GAAG,eAAe,CAAC;AAF5B,oCAAY"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { RaainNode } from '../organization/RaainNode';
|
|
2
|
+
import { Link } from '../organization/Link';
|
|
3
|
+
import { TeamNode } from '../organization/TeamNode';
|
|
4
|
+
/**
|
|
5
|
+
* api/gauges/:id
|
|
6
|
+
*/
|
|
7
|
+
export declare class GaugeNode extends RaainNode {
|
|
8
|
+
static TYPE: string;
|
|
9
|
+
name: string;
|
|
10
|
+
latitude: number;
|
|
11
|
+
longitude: number;
|
|
12
|
+
team: TeamNode;
|
|
13
|
+
constructor(json: {
|
|
14
|
+
id: string;
|
|
15
|
+
latitude: number;
|
|
16
|
+
longitude: number;
|
|
17
|
+
name?: string;
|
|
18
|
+
links?: Link[] | RaainNode[];
|
|
19
|
+
team?: TeamNode;
|
|
20
|
+
version?: string;
|
|
21
|
+
});
|
|
22
|
+
toJSON(): JSON;
|
|
23
|
+
protected getLinkType(): string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GaugeNode = void 0;
|
|
4
|
+
const RaainNode_1 = require("../organization/RaainNode");
|
|
5
|
+
/**
|
|
6
|
+
* api/gauges/:id
|
|
7
|
+
*/
|
|
8
|
+
class GaugeNode extends RaainNode_1.RaainNode {
|
|
9
|
+
constructor(json) {
|
|
10
|
+
super(json);
|
|
11
|
+
this.latitude = json.latitude;
|
|
12
|
+
this.longitude = json.longitude;
|
|
13
|
+
this.name = json.name;
|
|
14
|
+
this.team = json.team;
|
|
15
|
+
}
|
|
16
|
+
toJSON() {
|
|
17
|
+
var _a;
|
|
18
|
+
const json = super.toJSON();
|
|
19
|
+
json['latitude'] = this.latitude;
|
|
20
|
+
json['longitude'] = this.longitude;
|
|
21
|
+
json['name'] = this.name;
|
|
22
|
+
json['team'] = ((_a = this.team) === null || _a === void 0 ? void 0 : _a.id) || this.team;
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
getLinkType() {
|
|
26
|
+
return GaugeNode.TYPE;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
GaugeNode.TYPE = 'gauge';
|
|
30
|
+
exports.GaugeNode = GaugeNode;
|
|
31
|
+
//# sourceMappingURL=GaugeNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GaugeNode.js","sourceRoot":"","sources":["../../src/gauge/GaugeNode.ts"],"names":[],"mappings":";;;AAAA,yDAAoD;AAIpD;;GAEG;AACH,MAAa,SAAU,SAAQ,qBAAS;IASpC,YAAY,IAQX;QACG,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;IAC1B,CAAC;IAEM,MAAM;;QACT,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;QAC5B,IAAI,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;QACjC,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;QACnC,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAA,MAAA,IAAI,CAAC,IAAI,0CAAE,EAAE,KAAI,IAAI,CAAC,IAAI,CAAC;QAC1C,OAAO,IAAI,CAAC;IAChB,CAAC;IAES,WAAW;QACjB,OAAO,SAAS,CAAC,IAAI,CAAC;IAC1B,CAAC;;AAlCa,cAAI,GAAG,OAAO,CAAC;AAFpB,8BAAS"}
|
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
import { Link } from '../
|
|
1
|
+
import { Link } from '../organization/Link';
|
|
2
2
|
import { GaugeNode } from './GaugeNode';
|
|
3
3
|
import { GaugeMeasure } from './GaugeMeasure';
|
|
4
|
-
import { RaainNode } from '../
|
|
4
|
+
import { RaainNode } from '../organization/RaainNode';
|
|
5
5
|
/**
|
|
6
6
|
* api/gauges/:id?format=map&begin=...
|
|
7
7
|
*/
|
|
8
8
|
export declare class GaugeNodeMap extends GaugeNode {
|
|
9
9
|
private map;
|
|
10
|
-
constructor(
|
|
10
|
+
constructor(json: {
|
|
11
|
+
id: string;
|
|
12
|
+
latitude: number;
|
|
13
|
+
longitude: number;
|
|
14
|
+
map?: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
links?: Link[] | RaainNode[];
|
|
17
|
+
version?: string;
|
|
18
|
+
});
|
|
11
19
|
toJSON(): JSON;
|
|
12
20
|
setMapData(mapData: GaugeMeasure[] | string): void;
|
|
13
21
|
getMapData(): GaugeMeasure[];
|
|
@@ -6,16 +6,9 @@ const GaugeNode_1 = require("./GaugeNode");
|
|
|
6
6
|
* api/gauges/:id?format=map&begin=...
|
|
7
7
|
*/
|
|
8
8
|
class GaugeNodeMap extends GaugeNode_1.GaugeNode {
|
|
9
|
-
constructor(
|
|
10
|
-
super(
|
|
11
|
-
|
|
12
|
-
if (idOrObjectToCopy.map) {
|
|
13
|
-
this.map = idOrObjectToCopy.map;
|
|
14
|
-
}
|
|
15
|
-
if (!this.map && idOrObjectToCopy.getMapData) {
|
|
16
|
-
this.map = JSON.stringify(idOrObjectToCopy.getMapData());
|
|
17
|
-
}
|
|
18
|
-
}
|
|
9
|
+
constructor(json) {
|
|
10
|
+
super(json);
|
|
11
|
+
this.setMapData(json.map);
|
|
19
12
|
}
|
|
20
13
|
toJSON() {
|
|
21
14
|
const json = super.toJSON();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GaugeNodeMap.js","sourceRoot":"","sources":["../../src/gauge/GaugeNodeMap.ts"],"names":[],"mappings":";;;AACA,2CAAsC;AAItC;;GAEG;AACH,MAAa,YAAa,SAAQ,qBAAS;IAIvC,YAAY,IAQX;QACG,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC;IAEM,MAAM;QACT,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;QAC5B,IAAI,IAAI,CAAC,GAAG,EAAE;YACV,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC;SAC1B;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,UAAU,CAAC,OAAgC;QAC9C,IAAI,CAAC,OAAO,EAAE;YACV,OAAO;SACV;QAED,IAAI,GAAG,GAAG,OAAO,CAAC;QAClB,IAAI;YACA,IAAI,OAAO,CAAC,OAAO,CAAC,KAAK,QAAQ,EAAE;gBAC/B,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;aACjC;SACJ;QAAC,OAAO,CAAC,EAAE;SACX;QACD,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,QAAQ,EAAE,CAAC;IAC9B,CAAC;IAEM,UAAU;QACb,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;YACX,OAAO,EAAE,CAAC;SACb;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;CACJ;AA9CD,oCA8CC"}
|
package/index.d.ts
CHANGED
|
@@ -1,30 +1,39 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './
|
|
21
|
-
export * from './
|
|
22
|
-
export * from './
|
|
23
|
-
export * from './
|
|
24
|
-
export * from './
|
|
25
|
-
export * from './
|
|
26
|
-
export * from './
|
|
27
|
-
export * from './
|
|
28
|
-
export * from './
|
|
29
|
-
export * from './
|
|
30
|
-
export * from './
|
|
1
|
+
export * from './organization/Measure';
|
|
2
|
+
export * from './organization/EventNode';
|
|
3
|
+
export * from './organization/PeopleNode';
|
|
4
|
+
export * from './organization/Link';
|
|
5
|
+
export * from './organization/RaainNode';
|
|
6
|
+
export * from './organization/TeamNode';
|
|
7
|
+
export * from './quality/QualityPoint';
|
|
8
|
+
export * from './quality/SpeedMatrix';
|
|
9
|
+
export * from './quality/SpeedMatrixContainer';
|
|
10
|
+
export * from './quality/history/CartesianGaugeHistory';
|
|
11
|
+
export * from './quality/history/CartesianRainHistory';
|
|
12
|
+
export * from './quality/history/PositionHistory';
|
|
13
|
+
export * from './quality/tools/QualityTools';
|
|
14
|
+
export * from './cartesian/LatLng';
|
|
15
|
+
export * from './quality/position/Position';
|
|
16
|
+
export * from './quality/position/PositionValue';
|
|
17
|
+
export * from './gauge/GaugeNode';
|
|
18
|
+
export * from './gauge/GaugeMeasure';
|
|
19
|
+
export * from './gauge/GaugeNodeMap';
|
|
20
|
+
export * from './radar/RadarMeasure';
|
|
21
|
+
export * from './radar/RadarNodeMap';
|
|
22
|
+
export * from './radar/RadarNode';
|
|
23
|
+
export * from './rain/RainMeasure';
|
|
24
|
+
export * from './rain/RainNode';
|
|
25
|
+
export * from './rain/RainComputationQuality';
|
|
26
|
+
export * from './rain/RainComputation';
|
|
27
|
+
export * from './rain/RainComputationMap';
|
|
28
|
+
export * from './polar/GaugePolarMeasureValue';
|
|
29
|
+
export * from './polar/MeasureValuePolarContainer';
|
|
30
|
+
export * from './polar/PolarMeasureValue';
|
|
31
|
+
export * from './polar/PolarValue';
|
|
32
|
+
export * from './polar/RadarPolarMeasureValue';
|
|
33
|
+
export * from './polar/RainPolarMeasureValue';
|
|
34
|
+
export * from './polar/IPolarMeasureValue';
|
|
35
|
+
export * from './cartesian/CartesianValue';
|
|
36
|
+
export * from './cartesian/CartesianMeasureValue';
|
|
37
|
+
export * from './cartesian/RadarCartesianMeasureValue';
|
|
38
|
+
export * from './cartesian/RainCartesianMeasureValue';
|
|
39
|
+
export * from './cartesian/ICartesianMeasureValue';
|