raain-model 0.3.1 → 0.4.1
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 +1 -0
- package/RELEASE.md +8 -10
- package/cartesians/CartesianMeasureValue.d.ts +27 -0
- package/cartesians/CartesianMeasureValue.js +88 -0
- package/cartesians/CartesianMeasureValue.js.map +1 -0
- package/cartesians/CartesianValue.d.ts +6 -0
- package/cartesians/CartesianValue.js +12 -0
- package/cartesians/CartesianValue.js.map +1 -0
- package/cartesians/ICartesianMeasureValue.d.ts +17 -0
- package/cartesians/ICartesianMeasureValue.js +3 -0
- package/cartesians/ICartesianMeasureValue.js.map +1 -0
- package/cartesians/RadarCartesianMeasureValue.d.ts +11 -0
- package/cartesians/RadarCartesianMeasureValue.js +37 -0
- package/cartesians/RadarCartesianMeasureValue.js.map +1 -0
- package/cartesians/RainCartesianMeasureValue.d.ts +13 -0
- package/cartesians/RainCartesianMeasureValue.js +40 -0
- package/cartesians/RainCartesianMeasureValue.js.map +1 -0
- package/gauges/GaugeMeasure.d.ts +12 -0
- package/gauges/GaugeMeasure.js +31 -0
- package/gauges/GaugeMeasure.js.map +1 -0
- package/gauges/GaugeNode.d.ts +15 -0
- package/gauges/GaugeNode.js +37 -0
- package/gauges/GaugeNode.js.map +1 -0
- package/gauges/GaugeNodeMap.d.ts +14 -0
- package/gauges/GaugeNodeMap.js +49 -0
- package/gauges/GaugeNodeMap.js.map +1 -0
- package/index.d.ts +30 -20
- package/index.js +44 -23
- package/index.js.map +1 -1
- package/{EventNode.d.ts → organizations/EventNode.d.ts} +4 -0
- package/organizations/EventNode.js +30 -0
- package/organizations/EventNode.js.map +1 -0
- package/{IVersion.js.map → organizations/IVersion.js.map} +1 -1
- package/{Link.d.ts → organizations/Link.d.ts} +4 -5
- package/organizations/Link.js +34 -0
- package/organizations/Link.js.map +1 -0
- package/organizations/Measure.d.ts +12 -0
- package/organizations/Measure.js +29 -0
- package/organizations/Measure.js.map +1 -0
- package/organizations/PeopleNode.d.ts +12 -0
- package/organizations/PeopleNode.js +34 -0
- package/organizations/PeopleNode.js.map +1 -0
- package/organizations/QualityPoint.d.ts +17 -0
- package/organizations/QualityPoint.js +16 -0
- package/organizations/QualityPoint.js.map +1 -0
- package/{RaainNode.d.ts → organizations/RaainNode.d.ts} +8 -7
- package/{RaainNode.js → organizations/RaainNode.js} +48 -45
- package/organizations/RaainNode.js.map +1 -0
- package/organizations/TeamNode.d.ts +15 -0
- package/organizations/TeamNode.js +38 -0
- package/organizations/TeamNode.js.map +1 -0
- package/package.json +5 -5
- package/polars/AbstractPolarMeasureValue.d.ts +19 -0
- package/polars/AbstractPolarMeasureValue.js +87 -0
- package/polars/AbstractPolarMeasureValue.js.map +1 -0
- package/polars/GaugePolarMeasureValue.d.ts +9 -0
- package/polars/GaugePolarMeasureValue.js +14 -0
- package/polars/GaugePolarMeasureValue.js.map +1 -0
- package/{IMeasureValue.d.ts → polars/IPolarMeasureValue.d.ts} +5 -5
- package/{IMeasureValue.js → polars/IPolarMeasureValue.js} +1 -1
- package/polars/IPolarMeasureValue.js.map +1 -0
- package/{MeasureValuePolarContainer.d.ts → polars/MeasureValuePolarContainer.d.ts} +1 -1
- package/{MeasureValuePolarContainer.js → polars/MeasureValuePolarContainer.js} +9 -9
- package/polars/MeasureValuePolarContainer.js.map +1 -0
- package/polars/PolarMeasureValue.d.ts +16 -0
- package/polars/PolarMeasureValue.js +94 -0
- package/polars/PolarMeasureValue.js.map +1 -0
- package/{PolarValue.js → polars/PolarValue.js} +4 -4
- package/polars/PolarValue.js.map +1 -0
- package/polars/RadarPolarMeasureValue.d.ts +12 -0
- package/polars/RadarPolarMeasureValue.js +34 -0
- package/polars/RadarPolarMeasureValue.js.map +1 -0
- package/polars/RainPolarMeasureValue.d.ts +14 -0
- package/polars/RainPolarMeasureValue.js +32 -0
- package/polars/RainPolarMeasureValue.js.map +1 -0
- package/radars/RadarMeasure.d.ts +11 -0
- package/radars/RadarMeasure.js +24 -0
- package/radars/RadarMeasure.js.map +1 -0
- package/{RadarNode.d.ts → radars/RadarNode.d.ts} +4 -4
- package/radars/RadarNode.js +35 -0
- package/radars/RadarNode.js.map +1 -0
- package/radars/RadarNodeMap.d.ts +16 -0
- package/radars/RadarNodeMap.js +53 -0
- package/radars/RadarNodeMap.js.map +1 -0
- package/rains/RainComputation.d.ts +34 -0
- package/rains/RainComputation.js +60 -0
- package/rains/RainComputation.js.map +1 -0
- package/{RainComputationNode.d.ts → rains/RainComputationAbstract.d.ts} +13 -13
- package/rains/RainComputationAbstract.js +113 -0
- package/rains/RainComputationAbstract.js.map +1 -0
- package/rains/RainComputationMap.d.ts +16 -0
- package/rains/RainComputationMap.js +50 -0
- package/rains/RainComputationMap.js.map +1 -0
- package/rains/RainComputationQuality.d.ts +24 -0
- package/rains/RainComputationQuality.js +108 -0
- package/rains/RainComputationQuality.js.map +1 -0
- package/rains/RainMeasure.d.ts +12 -0
- package/rains/RainMeasure.js +25 -0
- package/rains/RainMeasure.js.map +1 -0
- package/{RainNode.d.ts → rains/RainNode.d.ts} +9 -7
- package/rains/RainNode.js +116 -0
- package/rains/RainNode.js.map +1 -0
- package/EventNode.js +0 -17
- package/EventNode.js.map +0 -1
- package/GaugeMeasure.d.ts +0 -7
- package/GaugeMeasure.js +0 -31
- package/GaugeMeasure.js.map +0 -1
- package/GaugeMeasureValue.d.ts +0 -16
- package/GaugeMeasureValue.js +0 -66
- package/GaugeMeasureValue.js.map +0 -1
- package/GaugeNode.d.ts +0 -19
- package/GaugeNode.js +0 -48
- package/GaugeNode.js.map +0 -1
- package/GaugeNodeMap.d.ts +0 -22
- package/GaugeNodeMap.js +0 -61
- package/GaugeNodeMap.js.map +0 -1
- package/IMeasureValue.js.map +0 -1
- package/Link.js +0 -36
- package/Link.js.map +0 -1
- package/Measure.d.ts +0 -9
- package/Measure.js +0 -43
- package/Measure.js.map +0 -1
- package/MeasureValuePolarContainer.js.map +0 -1
- package/PeopleNode.d.ts +0 -7
- package/PeopleNode.js +0 -14
- package/PeopleNode.js.map +0 -1
- package/PolarValue.js.map +0 -1
- package/RaainNode.js.map +0 -1
- package/RadarMeasure.d.ts +0 -7
- package/RadarMeasure.js +0 -31
- package/RadarMeasure.js.map +0 -1
- package/RadarMeasureValue.d.ts +0 -19
- package/RadarMeasureValue.js +0 -75
- package/RadarMeasureValue.js.map +0 -1
- package/RadarNode.js +0 -49
- package/RadarNode.js.map +0 -1
- package/RadarNodeMap.d.ts +0 -11
- package/RadarNodeMap.js +0 -56
- package/RadarNodeMap.js.map +0 -1
- package/RainComputationMap.d.ts +0 -11
- package/RainComputationMap.js +0 -59
- package/RainComputationMap.js.map +0 -1
- package/RainComputationNode.js +0 -148
- package/RainComputationNode.js.map +0 -1
- package/RainMeasure.d.ts +0 -5
- package/RainMeasure.js +0 -29
- package/RainMeasure.js.map +0 -1
- package/RainMeasureValue.d.ts +0 -21
- package/RainMeasureValue.js +0 -74
- package/RainMeasureValue.js.map +0 -1
- package/RainNode.js +0 -107
- package/RainNode.js.map +0 -1
- package/tools/PolarValues.d.ts +0 -16
- package/tools/PolarValues.js +0 -99
- package/tools/PolarValues.js.map +0 -1
- /package/{IVersion.d.ts → organizations/IVersion.d.ts} +0 -0
- /package/{IVersion.js → organizations/IVersion.js} +0 -0
- /package/{PolarValue.d.ts → polars/PolarValue.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -15,6 +15,7 @@ See [examples/](https://github.com/raainio/raain-model/blob/master/examples/v1/a
|
|
|
15
15
|
Used in :
|
|
16
16
|
- [https://radartorain.com](https://radartorain.com)
|
|
17
17
|
- [node-raain-tools](https://github.com/raainio/node-raain-tools)
|
|
18
|
+
- [https://raain.io](https://raain.io) api
|
|
18
19
|
|
|
19
20
|
## History
|
|
20
21
|
|
package/RELEASE.md
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
# Release notes
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
- v0.2.12 : In progress...
|
|
12
|
-
- v0.2.13 : In progress...
|
|
3
|
+
- v0.0.1 : first extracts from RAAIN services
|
|
4
|
+
- v0.2.1 : Add customers team, radar
|
|
5
|
+
- v0.2.6 : Fix some bugs
|
|
6
|
+
- v0.2.7 : Fix @types
|
|
7
|
+
- v0.2.13 : Fix some bugs (links, conversion)
|
|
8
|
+
- v0.3.1 : Reformat Links, add IVersion
|
|
9
|
+
- v0.3.2+ : Bugs fixing (conversion, CI/CD)
|
|
10
|
+
- v0.4.1 : Cartesian values, Folder reorg (renaming of Polar objects : XX-MeasureValue => XX-PolarMeasureValue )
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ICartesianMeasureValue } from './ICartesianMeasureValue';
|
|
2
|
+
import { CartesianValue } from './CartesianValue';
|
|
3
|
+
export declare class CartesianMeasureValue implements ICartesianMeasureValue {
|
|
4
|
+
protected cartesianValues: CartesianValue[];
|
|
5
|
+
protected cartesianPixelWidth: {
|
|
6
|
+
lat: number;
|
|
7
|
+
lng: number;
|
|
8
|
+
};
|
|
9
|
+
constructor(cartesianValues?: string | CartesianValue[], cartesianPixelWidth?: {
|
|
10
|
+
lat: number;
|
|
11
|
+
lng: number;
|
|
12
|
+
});
|
|
13
|
+
getCartesianValuesStringified(): string;
|
|
14
|
+
getCartesianValues(): CartesianValue[];
|
|
15
|
+
setCartesianValues(cartesianValues: CartesianValue[]): void;
|
|
16
|
+
setCartesianValuesAsString(s: string): void;
|
|
17
|
+
toJSON(stringify?: boolean): JSON;
|
|
18
|
+
toJSONWithCartesianValuesStringified(): JSON;
|
|
19
|
+
getCartesianValue(lat: number, lng: number): CartesianValue;
|
|
20
|
+
getCartesianValueRounded(lat: number, lng: number, scale?: number): CartesianValue;
|
|
21
|
+
setCartesianValue(lat: number, lng: number, value: number): void;
|
|
22
|
+
getCartesianPixelWidth(): {
|
|
23
|
+
lat: number;
|
|
24
|
+
lng: number;
|
|
25
|
+
};
|
|
26
|
+
setCartesianPixelWidth(lat: number, lng: number): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CartesianMeasureValue = void 0;
|
|
4
|
+
const CartesianValue_1 = require("./CartesianValue");
|
|
5
|
+
class CartesianMeasureValue {
|
|
6
|
+
constructor(cartesianValues, cartesianPixelWidth = { lat: 0, lng: 0 }) {
|
|
7
|
+
if (!cartesianValues) {
|
|
8
|
+
throw new Error('CartesianMeasureValue needs cartesianValues');
|
|
9
|
+
}
|
|
10
|
+
this.cartesianValues = [];
|
|
11
|
+
if (typeof cartesianValues === 'string') {
|
|
12
|
+
this.setCartesianValuesAsString(cartesianValues);
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
this.setCartesianValues(cartesianValues);
|
|
16
|
+
}
|
|
17
|
+
this.setCartesianPixelWidth(cartesianPixelWidth.lat, cartesianPixelWidth.lng);
|
|
18
|
+
}
|
|
19
|
+
getCartesianValuesStringified() {
|
|
20
|
+
return JSON.stringify({ cartesianValues: this.cartesianValues });
|
|
21
|
+
}
|
|
22
|
+
getCartesianValues() {
|
|
23
|
+
return this.cartesianValues;
|
|
24
|
+
}
|
|
25
|
+
setCartesianValues(cartesianValues) {
|
|
26
|
+
this.cartesianValues = cartesianValues;
|
|
27
|
+
}
|
|
28
|
+
setCartesianValuesAsString(s) {
|
|
29
|
+
let values = JSON.parse(s);
|
|
30
|
+
if (values.cartesianValues) {
|
|
31
|
+
values = values.cartesianValues;
|
|
32
|
+
}
|
|
33
|
+
if (Array.isArray(values)) {
|
|
34
|
+
this.cartesianValues = [];
|
|
35
|
+
values.forEach(v => {
|
|
36
|
+
this.cartesianValues.push(new CartesianValue_1.CartesianValue(v.value, v.lat, v.lng));
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
toJSON(stringify = false) {
|
|
41
|
+
let cartesianValues = this.cartesianValues;
|
|
42
|
+
if (stringify) {
|
|
43
|
+
cartesianValues = JSON.stringify(this.cartesianValues);
|
|
44
|
+
}
|
|
45
|
+
const json = {
|
|
46
|
+
cartesianValues,
|
|
47
|
+
cartesianPixelWidth: this.cartesianPixelWidth,
|
|
48
|
+
};
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
toJSONWithCartesianValuesStringified() {
|
|
52
|
+
return {
|
|
53
|
+
cartesianValues: JSON.stringify(this.cartesianValues),
|
|
54
|
+
cartesianPixelWidth: this.cartesianPixelWidth,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
getCartesianValue(lat, lng) {
|
|
58
|
+
for (const value of this.cartesianValues) {
|
|
59
|
+
if (value.lat === lat && value.lng === lng) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
getCartesianValueRounded(lat, lng, scale = 0.01) {
|
|
66
|
+
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;
|
|
71
|
+
if (latRounded1 === latRounded2 && lngRounded1 === lngRounded2) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
setCartesianValue(lat, lng, value) {
|
|
78
|
+
this.cartesianValues.push(new CartesianValue_1.CartesianValue(value, lat, lng));
|
|
79
|
+
}
|
|
80
|
+
getCartesianPixelWidth() {
|
|
81
|
+
return this.cartesianPixelWidth;
|
|
82
|
+
}
|
|
83
|
+
setCartesianPixelWidth(lat, lng) {
|
|
84
|
+
this.cartesianPixelWidth = { lat, lng };
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.CartesianMeasureValue = CartesianMeasureValue;
|
|
88
|
+
//# sourceMappingURL=CartesianMeasureValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CartesianMeasureValue.js","sourceRoot":"","sources":["../../src/cartesians/CartesianMeasureValue.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CartesianValue = void 0;
|
|
4
|
+
class CartesianValue {
|
|
5
|
+
constructor(value, lat, lng) {
|
|
6
|
+
this.value = value;
|
|
7
|
+
this.lat = lat;
|
|
8
|
+
this.lng = lng;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.CartesianValue = CartesianValue;
|
|
12
|
+
//# sourceMappingURL=CartesianValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CartesianValue.js","sourceRoot":"","sources":["../../src/cartesians/CartesianValue.ts"],"names":[],"mappings":";;;AAAA,MAAa,cAAc;IAEvB,YACW,KAAa,EACb,GAAW,EACX,GAAW;QAFX,UAAK,GAAL,KAAK,CAAQ;QACb,QAAG,GAAH,GAAG,CAAQ;QACX,QAAG,GAAH,GAAG,CAAQ;IACtB,CAAC;CACJ;AAPD,wCAOC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CartesianValue } from './CartesianValue';
|
|
2
|
+
export interface ICartesianMeasureValue {
|
|
3
|
+
getCartesianValuesStringified(): string;
|
|
4
|
+
getCartesianValues(): CartesianValue[];
|
|
5
|
+
setCartesianValues(cartesianValues: CartesianValue[]): void;
|
|
6
|
+
setCartesianValuesAsString(s: string): void;
|
|
7
|
+
toJSON(): JSON;
|
|
8
|
+
toJSONWithCartesianValuesStringified(): JSON;
|
|
9
|
+
getCartesianValue(lat: number, lng: number): CartesianValue;
|
|
10
|
+
getCartesianValueRounded(lat: number, lng: number, scale?: number): CartesianValue;
|
|
11
|
+
setCartesianValue(lat: number, lng: number, value: number): void;
|
|
12
|
+
getCartesianPixelWidth(): {
|
|
13
|
+
lat: number;
|
|
14
|
+
lng: number;
|
|
15
|
+
};
|
|
16
|
+
setCartesianPixelWidth(lat: number, lng: number): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICartesianMeasureValue.js","sourceRoot":"","sources":["../../src/cartesians/ICartesianMeasureValue.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CartesianValue } from './CartesianValue';
|
|
2
|
+
import { CartesianMeasureValue } from './CartesianMeasureValue';
|
|
3
|
+
export declare class RadarCartesianMeasureValue extends CartesianMeasureValue {
|
|
4
|
+
angle: number;
|
|
5
|
+
constructor(cartesianValuesOrObject: RadarCartesianMeasureValue | CartesianValue[] | string, cartesianPixelWidth?: {
|
|
6
|
+
lat: number;
|
|
7
|
+
lng: number;
|
|
8
|
+
}, angle?: number);
|
|
9
|
+
toJSON(stringify?: boolean): JSON;
|
|
10
|
+
toJSONWithCartesianValuesStringified(): JSON;
|
|
11
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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(cartesianValuesOrObject, cartesianPixelWidth = { lat: 0, lng: 0 }, angle) {
|
|
7
|
+
if (typeof cartesianValuesOrObject === 'string') {
|
|
8
|
+
super(cartesianValuesOrObject, cartesianPixelWidth);
|
|
9
|
+
this.angle = angle;
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
if (cartesianValuesOrObject instanceof RadarCartesianMeasureValue) {
|
|
13
|
+
super(cartesianValuesOrObject.getCartesianValues(), cartesianValuesOrObject.getCartesianPixelWidth());
|
|
14
|
+
this.angle = cartesianValuesOrObject.angle;
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
if ('cartesianValues' in cartesianValuesOrObject && 'cartesianPixelWidth' in cartesianValuesOrObject) {
|
|
18
|
+
super(cartesianValuesOrObject['cartesianValues'], cartesianValuesOrObject['cartesianPixelWidth']);
|
|
19
|
+
this.angle = cartesianValuesOrObject['angle'];
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
super(cartesianValuesOrObject, cartesianPixelWidth);
|
|
23
|
+
this.angle = angle;
|
|
24
|
+
}
|
|
25
|
+
toJSON(stringify = false) {
|
|
26
|
+
const json = super.toJSON(stringify);
|
|
27
|
+
json.angle = this.angle;
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
toJSONWithCartesianValuesStringified() {
|
|
31
|
+
const json = super.toJSONWithCartesianValuesStringified();
|
|
32
|
+
json.angle = this.angle;
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.RadarCartesianMeasureValue = RadarCartesianMeasureValue;
|
|
37
|
+
//# sourceMappingURL=RadarCartesianMeasureValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadarCartesianMeasureValue.js","sourceRoot":"","sources":["../../src/cartesians/RadarCartesianMeasureValue.ts"],"names":[],"mappings":";;;AACA,mEAA8D;AAE9D,MAAa,0BAA2B,SAAQ,6CAAqB;IAIjE,YACI,uBAA+E,EAC/E,sBAAoD,EAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAC,EACpE,KAAc;QAEd,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE;YAC7C,KAAK,CAAC,uBAAuB,EAAE,mBAAmB,CAAC,CAAC;YACpD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;YACnB,OAAO;SACV;QAED,IAAI,uBAAuB,YAAY,0BAA0B,EAAE;YAC/D,KAAK,CAAC,uBAAuB,CAAC,kBAAkB,EAAE,EAAE,uBAAuB,CAAC,sBAAsB,EAAE,CAAC,CAAC;YACtG,IAAI,CAAC,KAAK,GAAG,uBAAuB,CAAC,KAAK,CAAC;YAC3C,OAAO;SACV;QAED,IAAI,iBAAiB,IAAI,uBAAuB,IAAI,qBAAqB,IAAI,uBAAuB,EAAE;YAClG,KAAK,CAAC,uBAAuB,CAAC,iBAAiB,CAAQ,EAAE,uBAAuB,CAAC,qBAAqB,CAAQ,CAAC,CAAC;YAChH,IAAI,CAAC,KAAK,GAAG,uBAAuB,CAAC,OAAO,CAAC,CAAC;YAC9C,OAAO;SACV;QAED,KAAK,CAAC,uBAAuB,EAAE,mBAAmB,CAAC,CAAC;QACpD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,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;AA1CD,gEA0CC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IVersion } from '../organizations/IVersion';
|
|
2
|
+
import { CartesianValue } from './CartesianValue';
|
|
3
|
+
import { CartesianMeasureValue } from './CartesianMeasureValue';
|
|
4
|
+
export declare class RainCartesianMeasureValue extends CartesianMeasureValue implements IVersion {
|
|
5
|
+
private readonly version;
|
|
6
|
+
constructor(cartesianValuesOrObject: RainCartesianMeasureValue | CartesianValue[] | string, cartesianPixelWidth?: {
|
|
7
|
+
lat: number;
|
|
8
|
+
lng: number;
|
|
9
|
+
}, version?: string);
|
|
10
|
+
getVersion(): string;
|
|
11
|
+
toJSON(stringify?: boolean): JSON;
|
|
12
|
+
toJSONWithCartesianValuesStringified(): JSON;
|
|
13
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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(cartesianValuesOrObject, cartesianPixelWidth = { lat: 0, lng: 0 }, version) {
|
|
7
|
+
if (typeof cartesianValuesOrObject === 'string') {
|
|
8
|
+
super(cartesianValuesOrObject, cartesianPixelWidth);
|
|
9
|
+
this.version = version;
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
if (cartesianValuesOrObject instanceof RainCartesianMeasureValue) {
|
|
13
|
+
super(cartesianValuesOrObject.getCartesianValues(), cartesianValuesOrObject.getCartesianPixelWidth());
|
|
14
|
+
this.version = cartesianValuesOrObject.getVersion();
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
if ('cartesianValues' in cartesianValuesOrObject && 'cartesianPixelWidth' in cartesianValuesOrObject) {
|
|
18
|
+
super(cartesianValuesOrObject['cartesianValues'], cartesianValuesOrObject['cartesianPixelWidth']);
|
|
19
|
+
this.version = cartesianValuesOrObject['version'];
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
super(cartesianValuesOrObject, cartesianPixelWidth);
|
|
23
|
+
this.version = version;
|
|
24
|
+
}
|
|
25
|
+
getVersion() {
|
|
26
|
+
return this.version;
|
|
27
|
+
}
|
|
28
|
+
toJSON(stringify = false) {
|
|
29
|
+
const json = super.toJSON(stringify);
|
|
30
|
+
json.version = this.getVersion();
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
toJSONWithCartesianValuesStringified() {
|
|
34
|
+
const json = super.toJSONWithCartesianValuesStringified();
|
|
35
|
+
json.version = this.getVersion();
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.RainCartesianMeasureValue = RainCartesianMeasureValue;
|
|
40
|
+
//# sourceMappingURL=RainCartesianMeasureValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RainCartesianMeasureValue.js","sourceRoot":"","sources":["../../src/cartesians/RainCartesianMeasureValue.ts"],"names":[],"mappings":";;;AAEA,mEAA8D;AAE9D,MAAa,yBAA0B,SAAQ,6CAAqB;IAIhE,YACI,uBAA8E,EAC9E,sBAAoD,EAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAC,EACpE,OAAgB;QAEhB,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE;YAC7C,KAAK,CAAC,uBAAuB,EAAE,mBAAmB,CAAC,CAAC;YACpD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;YACvB,OAAO;SACV;QAED,IAAI,uBAAuB,YAAY,yBAAyB,EAAE;YAC9D,KAAK,CAAC,uBAAuB,CAAC,kBAAkB,EAAE,EAAE,uBAAuB,CAAC,sBAAsB,EAAE,CAAC,CAAC;YACtG,IAAI,CAAC,OAAO,GAAG,uBAAuB,CAAC,UAAU,EAAE,CAAC;YACpD,OAAO;SACV;QAED,IAAI,iBAAiB,IAAI,uBAAuB,IAAI,qBAAqB,IAAI,uBAAuB,EAAE;YAClG,KAAK,CAAC,uBAAuB,CAAC,iBAAiB,CAAQ,EAAE,uBAAuB,CAAC,qBAAqB,CAAQ,CAAC,CAAC;YAChH,IAAI,CAAC,OAAO,GAAG,uBAAuB,CAAC,SAAS,CAAC,CAAC;YAClD,OAAO;SACV;QAED,KAAK,CAAC,uBAAuB,EAAE,mBAAmB,CAAC,CAAC;QACpD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,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;AA9CD,8DA8CC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Measure } from '../organizations/Measure';
|
|
2
|
+
import { IPolarMeasureValue } from '../polars/IPolarMeasureValue';
|
|
3
|
+
import { ICartesianMeasureValue } from '../cartesians/ICartesianMeasureValue';
|
|
4
|
+
/**
|
|
5
|
+
* api/gauges/:id/measures/:id
|
|
6
|
+
*/
|
|
7
|
+
export declare class GaugeMeasure extends Measure {
|
|
8
|
+
timeInSec: number;
|
|
9
|
+
constructor(idOrObjectToCopy: any | string, date?: Date, timeInSec?: number, values?: IPolarMeasureValue[] | ICartesianMeasureValue[] | Measure[] | number[], validity?: number);
|
|
10
|
+
toJSON(): JSON;
|
|
11
|
+
protected getLinkType(): string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GaugeMeasure = void 0;
|
|
4
|
+
const Measure_1 = require("../organizations/Measure");
|
|
5
|
+
const GaugeNode_1 = require("./GaugeNode");
|
|
6
|
+
/**
|
|
7
|
+
* api/gauges/:id/measures/:id
|
|
8
|
+
*/
|
|
9
|
+
class GaugeMeasure extends Measure_1.Measure {
|
|
10
|
+
constructor(idOrObjectToCopy, date, timeInSec, values, validity) {
|
|
11
|
+
super(idOrObjectToCopy, date, values, validity);
|
|
12
|
+
if (typeof (idOrObjectToCopy) === 'object') {
|
|
13
|
+
if (idOrObjectToCopy.gauge) {
|
|
14
|
+
this.addLinks([new GaugeNode_1.GaugeNode(idOrObjectToCopy.gauge)]);
|
|
15
|
+
}
|
|
16
|
+
this.timeInSec = idOrObjectToCopy.timeInSec;
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
this.timeInSec = timeInSec;
|
|
20
|
+
}
|
|
21
|
+
toJSON() {
|
|
22
|
+
const json = super.toJSON();
|
|
23
|
+
json['timeInSec'] = this.timeInSec;
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
getLinkType() {
|
|
27
|
+
return 'gauge-measure';
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.GaugeMeasure = GaugeMeasure;
|
|
31
|
+
//# sourceMappingURL=GaugeMeasure.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GaugeMeasure.js","sourceRoot":"","sources":["../../src/gauges/GaugeMeasure.ts"],"names":[],"mappings":";;;AAAA,sDAAiD;AAGjD,2CAAsC;AAGtC;;GAEG;AACH,MAAa,YAAa,SAAQ,iBAAO;IAIrC,YACI,gBAA8B,EAC9B,IAAW,EACX,SAAkB,EAClB,MAA+E,EAC/E,QAAiB;QAEjB,KAAK,CAAC,gBAAgB,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;QAChD,IAAI,OAAO,CAAC,gBAAgB,CAAC,KAAK,QAAQ,EAAE;YACxC,IAAI,gBAAgB,CAAC,KAAK,EAAE;gBACxB,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,qBAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;aAC1D;YAED,IAAI,CAAC,SAAS,GAAG,gBAAgB,CAAC,SAAS,CAAC;YAC5C,OAAO;SACV;QAED,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAE/B,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,eAAe,CAAC;IAC3B,CAAC;CACJ;AAlCD,oCAkCC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RaainNode } from '../organizations/RaainNode';
|
|
2
|
+
import { Link } from '../organizations/Link';
|
|
3
|
+
import { TeamNode } from '../organizations/TeamNode';
|
|
4
|
+
/**
|
|
5
|
+
* api/gauges/:id
|
|
6
|
+
*/
|
|
7
|
+
export declare class GaugeNode extends RaainNode {
|
|
8
|
+
name: string;
|
|
9
|
+
latitude: number;
|
|
10
|
+
longitude: number;
|
|
11
|
+
team: TeamNode;
|
|
12
|
+
constructor(idOrObjectToCopy: string | GaugeNode, name?: string, links?: Link[] | RaainNode[], latitude?: number, longitude?: number, team?: TeamNode);
|
|
13
|
+
toJSON(): JSON;
|
|
14
|
+
protected getLinkType(): string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GaugeNode = void 0;
|
|
4
|
+
const RaainNode_1 = require("../organizations/RaainNode");
|
|
5
|
+
/**
|
|
6
|
+
* api/gauges/:id
|
|
7
|
+
*/
|
|
8
|
+
class GaugeNode extends RaainNode_1.RaainNode {
|
|
9
|
+
constructor(idOrObjectToCopy, name, links, latitude, longitude, team) {
|
|
10
|
+
super(idOrObjectToCopy, links);
|
|
11
|
+
if (typeof idOrObjectToCopy !== 'string') {
|
|
12
|
+
this.name = idOrObjectToCopy.name;
|
|
13
|
+
this.latitude = idOrObjectToCopy.latitude;
|
|
14
|
+
this.longitude = idOrObjectToCopy.longitude;
|
|
15
|
+
this.team = idOrObjectToCopy.team;
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
this.name = name;
|
|
19
|
+
this.latitude = latitude;
|
|
20
|
+
this.longitude = longitude;
|
|
21
|
+
this.team = team;
|
|
22
|
+
}
|
|
23
|
+
toJSON() {
|
|
24
|
+
var _a;
|
|
25
|
+
const json = super.toJSON();
|
|
26
|
+
json['name'] = this.name;
|
|
27
|
+
json['latitude'] = this.latitude;
|
|
28
|
+
json['longitude'] = this.longitude;
|
|
29
|
+
json['team'] = ((_a = this.team) === null || _a === void 0 ? void 0 : _a.id) || this.team;
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
getLinkType() {
|
|
33
|
+
return 'gauge';
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.GaugeNode = GaugeNode;
|
|
37
|
+
//# sourceMappingURL=GaugeNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GaugeNode.js","sourceRoot":"","sources":["../../src/gauges/GaugeNode.ts"],"names":[],"mappings":";;;AAAA,0DAAqD;AAIrD;;GAEG;AACH,MAAa,SAAU,SAAQ,qBAAS;IAOpC,YACI,gBAAoC,EACpC,IAAa,EACb,KAA4B,EAC5B,QAAiB,EACjB,SAAkB,EAClB,IAAe;QAEf,KAAK,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;QAC/B,IAAI,OAAO,gBAAgB,KAAK,QAAQ,EAAE;YACtC,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC,IAAI,CAAC;YAClC,IAAI,CAAC,QAAQ,GAAG,gBAAgB,CAAC,QAAQ,CAAC;YAC1C,IAAI,CAAC,SAAS,GAAG,gBAAgB,CAAC,SAAS,CAAC;YAC5C,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC,IAAI,CAAC;YAClC,OAAO;SACV;QACD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IAEM,MAAM;;QACT,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;QAC5B,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;QACzB,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,CAAA,MAAA,IAAI,CAAC,IAAI,0CAAE,EAAE,KAAI,IAAI,CAAC,IAAI,CAAC;QAC1C,OAAO,IAAI,CAAC;IAChB,CAAC;IAES,WAAW;QACjB,OAAO,OAAO,CAAC;IACnB,CAAC;CAEJ;AA1CD,8BA0CC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Link } from '../organizations/Link';
|
|
2
|
+
import { GaugeNode } from './GaugeNode';
|
|
3
|
+
import { GaugeMeasure } from './GaugeMeasure';
|
|
4
|
+
import { RaainNode } from '../organizations/RaainNode';
|
|
5
|
+
/**
|
|
6
|
+
* api/gauges/:id?format=map&begin=...
|
|
7
|
+
*/
|
|
8
|
+
export declare class GaugeNodeMap extends GaugeNode {
|
|
9
|
+
private map;
|
|
10
|
+
constructor(idOrObjectToCopy: string | GaugeNodeMap, name?: string, links?: Link[] | RaainNode[], latitude?: number, longitude?: number);
|
|
11
|
+
toJSON(): JSON;
|
|
12
|
+
setMapData(mapData: GaugeMeasure[] | string): void;
|
|
13
|
+
getMapData(): GaugeMeasure[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GaugeNodeMap = void 0;
|
|
4
|
+
const GaugeNode_1 = require("./GaugeNode");
|
|
5
|
+
/**
|
|
6
|
+
* api/gauges/:id?format=map&begin=...
|
|
7
|
+
*/
|
|
8
|
+
class GaugeNodeMap extends GaugeNode_1.GaugeNode {
|
|
9
|
+
constructor(idOrObjectToCopy, name, links, latitude, longitude) {
|
|
10
|
+
super(idOrObjectToCopy, name, links, latitude, longitude);
|
|
11
|
+
if (typeof idOrObjectToCopy !== 'string') {
|
|
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
|
+
}
|
|
19
|
+
}
|
|
20
|
+
toJSON() {
|
|
21
|
+
const json = super.toJSON();
|
|
22
|
+
if (this.map) {
|
|
23
|
+
json['map'] = this.map;
|
|
24
|
+
}
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
setMapData(mapData) {
|
|
28
|
+
if (!mapData) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
let map = mapData;
|
|
32
|
+
try {
|
|
33
|
+
if (typeof (mapData) !== 'string') {
|
|
34
|
+
map = JSON.stringify(mapData);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
catch (e) {
|
|
38
|
+
}
|
|
39
|
+
this.map = map.toString();
|
|
40
|
+
}
|
|
41
|
+
getMapData() {
|
|
42
|
+
if (!this.map) {
|
|
43
|
+
return [];
|
|
44
|
+
}
|
|
45
|
+
return JSON.parse(this.map);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.GaugeNodeMap = GaugeNodeMap;
|
|
49
|
+
//# sourceMappingURL=GaugeNodeMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GaugeNodeMap.js","sourceRoot":"","sources":["../../src/gauges/GaugeNodeMap.ts"],"names":[],"mappings":";;;AACA,2CAAsC;AAItC;;GAEG;AACH,MAAa,YAAa,SAAQ,qBAAS;IAIvC,YACI,gBAAuC,EACvC,IAAa,EACb,KAA4B,EAC5B,QAAiB,EACjB,SAAkB;QAElB,KAAK,CAAC,gBAAgB,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;QAC1D,IAAI,OAAO,gBAAgB,KAAK,QAAQ,EAAE;YACtC,IAAI,gBAAgB,CAAC,GAAG,EAAE;gBACtB,IAAI,CAAC,GAAG,GAAG,gBAAgB,CAAC,GAAG,CAAC;aACnC;YACD,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,gBAAgB,CAAC,UAAU,EAAE;gBAC1C,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAC;aAC5D;SACJ;IACL,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;AAnDD,oCAmDC"}
|
package/index.d.ts
CHANGED
|
@@ -1,20 +1,30 @@
|
|
|
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 './RainComputationMap';
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './
|
|
1
|
+
export * from './organizations/Measure';
|
|
2
|
+
export * from './organizations/EventNode';
|
|
3
|
+
export * from './organizations/PeopleNode';
|
|
4
|
+
export * from './organizations/Link';
|
|
5
|
+
export * from './organizations/RaainNode';
|
|
6
|
+
export * from './organizations/TeamNode';
|
|
7
|
+
export * from './organizations/QualityPoint';
|
|
8
|
+
export * from './gauges/GaugeNode';
|
|
9
|
+
export * from './gauges/GaugeMeasure';
|
|
10
|
+
export * from './gauges/GaugeNodeMap';
|
|
11
|
+
export * from './radars/RadarMeasure';
|
|
12
|
+
export * from './radars/RadarNodeMap';
|
|
13
|
+
export * from './radars/RadarNode';
|
|
14
|
+
export * from './rains/RainMeasure';
|
|
15
|
+
export * from './rains/RainNode';
|
|
16
|
+
export * from './rains/RainComputationQuality';
|
|
17
|
+
export * from './rains/RainComputation';
|
|
18
|
+
export * from './rains/RainComputationMap';
|
|
19
|
+
export * from './polars/GaugePolarMeasureValue';
|
|
20
|
+
export * from './polars/MeasureValuePolarContainer';
|
|
21
|
+
export * from './polars/PolarMeasureValue';
|
|
22
|
+
export * from './polars/PolarValue';
|
|
23
|
+
export * from './polars/RadarPolarMeasureValue';
|
|
24
|
+
export * from './polars/RainPolarMeasureValue';
|
|
25
|
+
export * from './polars/IPolarMeasureValue';
|
|
26
|
+
export * from './cartesians/CartesianValue';
|
|
27
|
+
export * from './cartesians/CartesianMeasureValue';
|
|
28
|
+
export * from './cartesians/RadarCartesianMeasureValue';
|
|
29
|
+
export * from './cartesians/RainCartesianMeasureValue';
|
|
30
|
+
export * from './cartesians/ICartesianMeasureValue';
|
package/index.js
CHANGED
|
@@ -1,26 +1,47 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
5
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
__exportStar(require("./organizations/Measure"), exports);
|
|
18
|
+
__exportStar(require("./organizations/EventNode"), exports);
|
|
19
|
+
__exportStar(require("./organizations/PeopleNode"), exports);
|
|
20
|
+
__exportStar(require("./organizations/Link"), exports);
|
|
21
|
+
__exportStar(require("./organizations/RaainNode"), exports);
|
|
22
|
+
__exportStar(require("./organizations/TeamNode"), exports);
|
|
23
|
+
__exportStar(require("./organizations/QualityPoint"), exports);
|
|
24
|
+
__exportStar(require("./gauges/GaugeNode"), exports);
|
|
25
|
+
__exportStar(require("./gauges/GaugeMeasure"), exports);
|
|
26
|
+
__exportStar(require("./gauges/GaugeNodeMap"), exports);
|
|
27
|
+
__exportStar(require("./radars/RadarMeasure"), exports);
|
|
28
|
+
__exportStar(require("./radars/RadarNodeMap"), exports);
|
|
29
|
+
__exportStar(require("./radars/RadarNode"), exports);
|
|
30
|
+
__exportStar(require("./rains/RainMeasure"), exports);
|
|
31
|
+
__exportStar(require("./rains/RainNode"), exports);
|
|
32
|
+
__exportStar(require("./rains/RainComputationQuality"), exports);
|
|
33
|
+
__exportStar(require("./rains/RainComputation"), exports);
|
|
34
|
+
__exportStar(require("./rains/RainComputationMap"), exports);
|
|
35
|
+
__exportStar(require("./polars/GaugePolarMeasureValue"), exports);
|
|
36
|
+
__exportStar(require("./polars/MeasureValuePolarContainer"), exports);
|
|
37
|
+
__exportStar(require("./polars/PolarMeasureValue"), exports);
|
|
38
|
+
__exportStar(require("./polars/PolarValue"), exports);
|
|
39
|
+
__exportStar(require("./polars/RadarPolarMeasureValue"), exports);
|
|
40
|
+
__exportStar(require("./polars/RainPolarMeasureValue"), exports);
|
|
41
|
+
__exportStar(require("./polars/IPolarMeasureValue"), exports);
|
|
42
|
+
__exportStar(require("./cartesians/CartesianValue"), exports);
|
|
43
|
+
__exportStar(require("./cartesians/CartesianMeasureValue"), exports);
|
|
44
|
+
__exportStar(require("./cartesians/RadarCartesianMeasureValue"), exports);
|
|
45
|
+
__exportStar(require("./cartesians/RainCartesianMeasureValue"), exports);
|
|
46
|
+
__exportStar(require("./cartesians/ICartesianMeasureValue"), exports);
|
|
26
47
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,4DAA0C;AAC1C,6DAA2C;AAC3C,uDAAqC;AACrC,4DAA0C;AAC1C,2DAAyC;AACzC,+DAA6C;AAE7C,qDAAmC;AACnC,wDAAsC;AACtC,wDAAsC;AAEtC,wDAAsC;AACtC,wDAAsC;AACtC,qDAAmC;AAEnC,sDAAoC;AACpC,mDAAiC;AACjC,iEAA+C;AAC/C,0DAAwC;AACxC,6DAA2C;AAE3C,kEAAgD;AAChD,sEAAoD;AACpD,6DAA2C;AAC3C,sDAAoC;AACpC,kEAAgD;AAChD,iEAA+C;AAC/C,8DAA4C;AAE5C,8DAA4C;AAC5C,qEAAmD;AACnD,0EAAwD;AACxD,yEAAuD;AACvD,sEAAoD"}
|