@rfkit/charts 1.1.3 → 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 CHANGED
@@ -6347,14 +6347,13 @@ class Series extends engine_Engine {
6347
6347
  thickness: 1,
6348
6348
  display: true,
6349
6349
  color: '#000000',
6350
- type: type_GraphicType.Line,
6350
+ type: type_GraphicType.Stepline,
6351
6351
  data: void 0,
6352
6352
  path: void 0,
6353
6353
  orientation: type_OrientationType.Vertical,
6354
6354
  ...series[name],
6355
6355
  ...e
6356
6356
  };
6357
- if ('templateData' === e.name) console.log(series[name]);
6358
6357
  this.draw();
6359
6358
  }
6360
6359
  }
@@ -9779,17 +9778,17 @@ class Spectrum {
9779
9778
  id,
9780
9779
  range: renderRange
9781
9780
  });
9781
+ this.initSeries();
9782
+ this.useRangeAutoFocus = ()=>{
9783
+ useRangeAutoFocus(this.state.globalID)();
9784
+ };
9785
+ }
9786
+ initSeries() {
9782
9787
  Object.values(SERIES).forEach((config)=>{
9788
+ if (config.name === SERIES.templateData.name) config.type = type_GraphicType.Area;
9783
9789
  this.setSeries(JSON.parse(JSON.stringify(config)));
9784
9790
  return config;
9785
9791
  });
9786
- this.setSeries({
9787
- ...SERIES.templateData,
9788
- type: type_GraphicType.Area
9789
- });
9790
- this.useRangeAutoFocus = ()=>{
9791
- useRangeAutoFocus(this.state.globalID)();
9792
- };
9793
9792
  }
9794
9793
  updateSeries(d, extraData) {
9795
9794
  const { series, chart } = this.state;
@@ -17,6 +17,7 @@ export default class Spectrum {
17
17
  firstRenderAutoFocus: boolean;
18
18
  constructor(props: Record<string, unknown>);
19
19
  init(): void;
20
+ initSeries(): void;
20
21
  /**
21
22
  * 更新数据
22
23
  * TODO:可以自定义线
package/package.json CHANGED
@@ -5,6 +5,6 @@
5
5
  "types": "index.d.ts",
6
6
  "author": "Hxgh",
7
7
  "license": "MIT",
8
- "version": "1.1.3",
8
+ "version": "1.1.4",
9
9
  "private": false
10
10
  }