@eox/chart 2.0.0-alpha12 → 2.0.0-alpha14
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 +11 -5
- package/dist/eox-chart.js +15340 -0
- package/dist/eox-chart.umd.cjs +121 -0
- package/package.json +7 -30
- package/test/general.cy.ts +36 -0
- package/{dist/test.html → test/general.html} +5 -9
- package/test/sh.json +417 -0
- package/test/shDisplay.cy.ts +22 -0
- package/test/signalsEndpoint.cy.ts +171 -0
- package/dist/assets/main-6438d57a.js +0 -25
- package/dist/index.html +0 -83
- package/dist/interface.mjs +0 -108
- package/dist/interface.umd.js +0 -1
- package/scripts/watch.mjs +0 -34
- package/src/Chart.ce.vue +0 -206
- package/src/OLD_main.ts +0 -111
- package/src/chartControls.ts +0 -201
- package/src/interface.ts +0 -93
- package/src/main.ts +0 -111
- package/src/signalsDataManager.ts +0 -601
- package/src/vite-env.d.ts +0 -1
- package/typings/global.d.ts +0 -9
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { EOxChart } from "../src/main";
|
|
2
|
+
|
|
3
|
+
describe("SH Display", () => {
|
|
4
|
+
beforeEach(() => {
|
|
5
|
+
cy.visit("/elements/chart/test/general.html");
|
|
6
|
+
});
|
|
7
|
+
it("configures signals endpoint for chart to retrieve data", () => {
|
|
8
|
+
cy.get("eox-chart").should(($el) => {
|
|
9
|
+
const eoxChart = <EOxChart>$el[0];
|
|
10
|
+
|
|
11
|
+
const options = {
|
|
12
|
+
endpoint:
|
|
13
|
+
"https://prototype-gftb1dhets8kbrfhr3zdka.ddc.hub.eox.at/eo-signals-api/eo-signals-for-geometry",
|
|
14
|
+
source: "sentinelhub",
|
|
15
|
+
features: [
|
|
16
|
+
[
|
|
17
|
+
"s1_rvi",
|
|
18
|
+
"s2_ndvi",
|
|
19
|
+
"s2_ndwi",
|
|
20
|
+
"s2_mndwi",
|
|
21
|
+
"s2_nddi",
|
|
22
|
+
"s2_ndmi",
|
|
23
|
+
"s2_nbsi",
|
|
24
|
+
"s2_evi",
|
|
25
|
+
"s2_savi",
|
|
26
|
+
"meteo_spei",
|
|
27
|
+
"meteo_pni",
|
|
28
|
+
"meteo_spi",
|
|
29
|
+
],
|
|
30
|
+
["s2_vci"],
|
|
31
|
+
["modis_ndvi", "modis_ndwi", "modis_savi", "modis_evi", "modis_nddi"],
|
|
32
|
+
["s3_ndvi", "s3_otci", "s2_lai", "s2_fapar"],
|
|
33
|
+
["eto", "temp_min", "temp_avg", "temp_max", "prec"],
|
|
34
|
+
],
|
|
35
|
+
additionalYAxis: [
|
|
36
|
+
{
|
|
37
|
+
id: "temperature",
|
|
38
|
+
containedSignals: ["temp_min", "temp_avg", "temp_max"],
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
id: "precipitation",
|
|
42
|
+
containedSignals: ["prec"],
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
additionalYAxis: [
|
|
46
|
+
{
|
|
47
|
+
id: "add1",
|
|
48
|
+
containedSignals: ["modis_ndwi"],
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: "add2",
|
|
52
|
+
containedSignals: ["modis_savi"],
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
additionalYAxis: [
|
|
56
|
+
{
|
|
57
|
+
id: "add1",
|
|
58
|
+
containedSignals: ["modis_ndwi"],
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
id: "add2",
|
|
62
|
+
containedSignals: ["modis_savi"],
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
colors: [
|
|
66
|
+
"#ff0029",
|
|
67
|
+
"#377eb8",
|
|
68
|
+
"#66a61e",
|
|
69
|
+
"#984ea3",
|
|
70
|
+
"#00d2d5",
|
|
71
|
+
"#ff7f00",
|
|
72
|
+
"#af8d00",
|
|
73
|
+
"#7f80cd",
|
|
74
|
+
"#b3e900",
|
|
75
|
+
"#c42e60",
|
|
76
|
+
"#a65628",
|
|
77
|
+
"#f781bf",
|
|
78
|
+
"#8dd3c7",
|
|
79
|
+
"#bebada",
|
|
80
|
+
"#fb8072",
|
|
81
|
+
"#80b1d3",
|
|
82
|
+
"#fdb462",
|
|
83
|
+
"#fccde5",
|
|
84
|
+
"#bc80bd",
|
|
85
|
+
"#ffed6f",
|
|
86
|
+
"#c4eaff",
|
|
87
|
+
"#cf8c00",
|
|
88
|
+
"#1976D2",
|
|
89
|
+
"#0288D1",
|
|
90
|
+
"#757575",
|
|
91
|
+
"#ff5722",
|
|
92
|
+
"#303f9f",
|
|
93
|
+
],
|
|
94
|
+
// retries: 5,
|
|
95
|
+
// normalize: true,
|
|
96
|
+
active: ["modis_ndvi", "modis_ndwi", "modis_savi"],
|
|
97
|
+
// timeAggregation: { week: 1 },
|
|
98
|
+
timeInterval: {
|
|
99
|
+
months: 3,
|
|
100
|
+
},
|
|
101
|
+
startTime: "2023-01-01",
|
|
102
|
+
endTime: "2023-03-30",
|
|
103
|
+
geometry: {
|
|
104
|
+
type: "Polygon",
|
|
105
|
+
coordinates: [
|
|
106
|
+
[
|
|
107
|
+
[20.13079927, 47.10302768],
|
|
108
|
+
[20.13084045, 47.1028265],
|
|
109
|
+
[20.1358676, 47.10146968],
|
|
110
|
+
[20.13740927, 47.10014585],
|
|
111
|
+
[20.13947607, 47.09893601],
|
|
112
|
+
[20.14091366, 47.09999145],
|
|
113
|
+
[20.1449318, 47.10150223],
|
|
114
|
+
[20.14791146, 47.10230676],
|
|
115
|
+
[20.15021132, 47.10395088],
|
|
116
|
+
[20.15405271, 47.10427089],
|
|
117
|
+
[20.15892741, 47.10398568],
|
|
118
|
+
[20.15852441, 47.10137122],
|
|
119
|
+
[20.15762095, 47.09983277],
|
|
120
|
+
[20.15739972, 47.0975736],
|
|
121
|
+
[20.15803736, 47.09471102],
|
|
122
|
+
[20.16078555, 47.09278008],
|
|
123
|
+
[20.16202649, 47.09216975],
|
|
124
|
+
[20.15674646, 47.08971359],
|
|
125
|
+
[20.14955762, 47.08650222],
|
|
126
|
+
[20.13871746, 47.08287273],
|
|
127
|
+
[20.13206638, 47.08157835],
|
|
128
|
+
[20.12726444, 47.08162372],
|
|
129
|
+
[20.12231283, 47.0824622],
|
|
130
|
+
[20.11401767, 47.08174784],
|
|
131
|
+
[20.11216468, 47.08018127],
|
|
132
|
+
[20.10948393, 47.07862235],
|
|
133
|
+
[20.10265513, 47.07664915],
|
|
134
|
+
[20.09653792, 47.07715786],
|
|
135
|
+
[20.08739187, 47.07520495],
|
|
136
|
+
[20.08127912, 47.07681145],
|
|
137
|
+
[20.07655974, 47.08095206],
|
|
138
|
+
[20.06658042, 47.07842296],
|
|
139
|
+
[20.05716056, 47.0777923],
|
|
140
|
+
[20.05220315, 47.08017979],
|
|
141
|
+
[20.04630443, 47.08419526],
|
|
142
|
+
[20.04133418, 47.08864202],
|
|
143
|
+
[20.03220524, 47.08935493],
|
|
144
|
+
[20.03172385, 47.09164789],
|
|
145
|
+
[20.03114258, 47.09606486],
|
|
146
|
+
[20.03149467, 47.09719311],
|
|
147
|
+
[20.03319485, 47.09955417],
|
|
148
|
+
[20.03803622, 47.10154872],
|
|
149
|
+
[20.04451973, 47.10273689],
|
|
150
|
+
[20.04782854, 47.10248179],
|
|
151
|
+
[20.05408279, 47.1002776],
|
|
152
|
+
[20.05902427, 47.09876342],
|
|
153
|
+
[20.06282968, 47.0985035],
|
|
154
|
+
[20.06912826, 47.09867377],
|
|
155
|
+
[20.07212495, 47.0994389],
|
|
156
|
+
[20.08114396, 47.10320425],
|
|
157
|
+
[20.08584159, 47.10621624],
|
|
158
|
+
[20.08800841, 47.10687536],
|
|
159
|
+
[20.09697203, 47.10769864],
|
|
160
|
+
[20.10840521, 47.10770649],
|
|
161
|
+
[20.12110234, 47.10464688],
|
|
162
|
+
[20.12769884, 47.1031142],
|
|
163
|
+
[20.13079927, 47.10302768],
|
|
164
|
+
],
|
|
165
|
+
],
|
|
166
|
+
},
|
|
167
|
+
};
|
|
168
|
+
eoxChart.setSignalsEndpoint(options);
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
});
|