@rfkit/charts 1.1.34 → 1.1.35

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.
Files changed (2) hide show
  1. package/index.js +15 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -4542,7 +4542,7 @@ const Container = (props)=>{
4542
4542
  let first = true;
4543
4543
  resizeObserver = new ResizeObserver(()=>{
4544
4544
  if (!first) (0, utils.uA)(()=>{
4545
- PUB_SUB(globalID)({
4545
+ if (ref.current.offsetHeight && ref.current.offsetWidth) PUB_SUB(globalID)({
4546
4546
  pstype: constants_PSType.Resize
4547
4547
  });
4548
4548
  })();
@@ -9596,6 +9596,7 @@ class Spectrum {
9596
9596
  useRangeAutoFocus(this.state.globalID)();
9597
9597
  };
9598
9598
  useRangeSet(this.state.globalID, (range)=>{
9599
+ this.state.renderRange = range;
9599
9600
  this.state.chart?.setRange(range);
9600
9601
  });
9601
9602
  }
@@ -15496,6 +15497,19 @@ function useSpectrumChartType({ type, heatmapElementID }) {
15496
15497
  0,
15497
15498
  1
15498
15499
  ];
15500
+ axisY.realRange = [
15501
+ 0,
15502
+ 1
15503
+ ];
15504
+ axisY.renderRange = [
15505
+ 0,
15506
+ 1
15507
+ ];
15508
+ dispatch({
15509
+ payload: {
15510
+ axisY
15511
+ }
15512
+ });
15499
15513
  useRangeSet(globalID)(axisY.range);
15500
15514
  }
15501
15515
  }
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.34",
8
+ "version": "1.1.35",
9
9
  "private": false
10
10
  }