@rfkit/charts 1.8.0 → 1.8.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.
Files changed (2) hide show
  1. package/index.js +7 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -26254,7 +26254,7 @@ const AXIS_LINE_WIDTH = LINE_WIDTH_BASE;
26254
26254
  function useCanvasAxisY(options) {
26255
26255
  const { ranging } = options;
26256
26256
  const axisY = useStore_useSelector((state)=>state.axisY);
26257
- const { range: axisYRange, disabled, placement } = axisY;
26257
+ const { range: axisYRange, disabled, placement, show } = axisY;
26258
26258
  const inside = 'inside' === placement;
26259
26259
  const canvasRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
26260
26260
  const containerRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
@@ -26300,7 +26300,9 @@ function useCanvasAxisY(options) {
26300
26300
  });
26301
26301
  resizeObserver.observe(container);
26302
26302
  return ()=>resizeObserver.disconnect();
26303
- }, []);
26303
+ }, [
26304
+ show
26305
+ ]);
26304
26306
  const formatTickLabel = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((value1, formatStrategy)=>{
26305
26307
  if (formatStrategy.useScientific) return value1.toExponential(1);
26306
26308
  if (formatStrategy.useKFormat) {
@@ -26450,9 +26452,10 @@ function useCanvasAxisY(options) {
26450
26452
  clampTickPosition
26451
26453
  ]);
26452
26454
  (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
26453
- drawAxis();
26455
+ if (false !== show) drawAxis();
26454
26456
  }, [
26455
- drawAxis
26457
+ drawAxis,
26458
+ show
26456
26459
  ]);
26457
26460
  (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>subscribeChartsThemeChange(()=>{
26458
26461
  drawAxis();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rfkit/charts",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "type": "module",
5
5
  "description": "Chart components for wireless monitoring web applications",
6
6
  "exports": {