@forgecharts/sdk 1.5.70 → 1.5.72

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/dist/index.js CHANGED
@@ -23231,6 +23231,7 @@ var ChartCanvas = forwardRef(
23231
23231
  providerKey,
23232
23232
  initialActiveTool,
23233
23233
  onPointerToolChange,
23234
+ initialPointerTool,
23234
23235
  initialMagnetMode,
23235
23236
  onMagnetModeChange,
23236
23237
  drawingFavorites: drawingFavoritesProp,
@@ -24367,6 +24368,12 @@ var ChartCanvas = forwardRef(
24367
24368
  const handleToolSelectRef = useRef(handleToolSelect);
24368
24369
  handleToolSelectRef.current = handleToolSelect;
24369
24370
  selectPointerToolRef.current = handleToolSelect;
24371
+ const initialPointerAppliedRef = useRef(false);
24372
+ useEffect(() => {
24373
+ if (initialPointerAppliedRef.current || !initialPointerTool) return;
24374
+ initialPointerAppliedRef.current = true;
24375
+ selectPointerToolRef.current(initialPointerTool);
24376
+ }, [initialPointerTool]);
24370
24377
  const handleMagnetModeChange = useCallback((mode) => {
24371
24378
  setMagnetMode(mode);
24372
24379
  chartRef.current?.setMagnetMode(mode);
@@ -25605,7 +25612,7 @@ var demonstrationTool = {
25605
25612
  };
25606
25613
 
25607
25614
  // src/version.ts
25608
- var FORGECHARTS_VERSION = "1.5.70" ;
25615
+ var FORGECHARTS_VERSION = "1.5.72" ;
25609
25616
 
25610
25617
  // src/compatibility.ts
25611
25618
  var MIN_KIT_API = 1;