@rfkit/charts 1.1.2 → 1.1.4
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/index.js +9 -9
- package/modules/Spectrum/render.d.ts +1 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -6347,7 +6347,7 @@ class Series extends engine_Engine {
|
|
|
6347
6347
|
thickness: 1,
|
|
6348
6348
|
display: true,
|
|
6349
6349
|
color: '#000000',
|
|
6350
|
-
type: type_GraphicType.
|
|
6350
|
+
type: type_GraphicType.Stepline,
|
|
6351
6351
|
data: void 0,
|
|
6352
6352
|
path: void 0,
|
|
6353
6353
|
orientation: type_OrientationType.Vertical,
|
|
@@ -9778,17 +9778,17 @@ class Spectrum {
|
|
|
9778
9778
|
id,
|
|
9779
9779
|
range: renderRange
|
|
9780
9780
|
});
|
|
9781
|
+
this.initSeries();
|
|
9782
|
+
this.useRangeAutoFocus = ()=>{
|
|
9783
|
+
useRangeAutoFocus(this.state.globalID)();
|
|
9784
|
+
};
|
|
9785
|
+
}
|
|
9786
|
+
initSeries() {
|
|
9781
9787
|
Object.values(SERIES).forEach((config)=>{
|
|
9788
|
+
if (config.name === SERIES.templateData.name) config.type = type_GraphicType.Area;
|
|
9782
9789
|
this.setSeries(JSON.parse(JSON.stringify(config)));
|
|
9783
9790
|
return config;
|
|
9784
9791
|
});
|
|
9785
|
-
this.setSeries({
|
|
9786
|
-
...SERIES.templateData,
|
|
9787
|
-
type: type_GraphicType.Area
|
|
9788
|
-
});
|
|
9789
|
-
this.useRangeAutoFocus = ()=>{
|
|
9790
|
-
useRangeAutoFocus(this.state.globalID)();
|
|
9791
|
-
};
|
|
9792
9792
|
}
|
|
9793
9793
|
updateSeries(d, extraData) {
|
|
9794
9794
|
const { series, chart } = this.state;
|
|
@@ -9797,7 +9797,7 @@ class Spectrum {
|
|
|
9797
9797
|
for(let i = 0; i < s.length; i += 1){
|
|
9798
9798
|
const [name] = s[i];
|
|
9799
9799
|
const data = d[name];
|
|
9800
|
-
if (data &&
|
|
9800
|
+
if (data && SERIES_NAMES.includes(name)) {
|
|
9801
9801
|
chart.render({
|
|
9802
9802
|
name,
|
|
9803
9803
|
data
|