@opendata-ai/openchart-vue 9.6.0 → 9.7.0

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.d.ts CHANGED
@@ -91,7 +91,7 @@ interface ChartProps {
91
91
  revision?: string | number;
92
92
  /** Interaction mode; inferred from listeners when omitted. Changes switch modes in place. */
93
93
  interaction?: InteractionMode;
94
- /** Selection outline color. Changing it recreates the chart, like theme. */
94
+ /** Selection outline color. Changing it recreates the chart. */
95
95
  selectionColor?: string;
96
96
  /** Reports engine changes to the armed placement tool. */
97
97
  onPlacementToolChange?: (tool: AnnotationPlacementTool | null) => void;
package/dist/index.js CHANGED
@@ -385,15 +385,20 @@ var Chart = /* @__PURE__ */ defineComponent2({
385
385
  watch2([() => props.reader, () => props.readerSelection], () => syncReader(), { deep: false });
386
386
  watch2(
387
387
  [
388
- () => props.rowHover,
389
- () => props.autoResize,
390
388
  () => props.theme,
391
389
  () => props.darkMode,
392
- () => props.renderer,
393
- () => props.selectionColor,
394
390
  () => contextTheme?.value,
395
391
  () => contextDarkMode?.value
396
392
  ],
393
+ () => instance?.setTheme({ theme: resolveTheme(), darkMode: resolveDarkMode() })
394
+ );
395
+ watch2(
396
+ [
397
+ () => props.rowHover,
398
+ () => props.autoResize,
399
+ () => props.renderer,
400
+ () => props.selectionColor
401
+ ],
397
402
  () => {
398
403
  if (!containerRef.value) return;
399
404
  destroyChart();
@@ -922,9 +927,7 @@ var DataTable = /* @__PURE__ */ defineComponent4({
922
927
  () => contextDarkMode?.value
923
928
  ],
924
929
  () => {
925
- if (!containerRef.value) return;
926
- destroyTable();
927
- mountTable();
930
+ instance?.setTheme({ theme: resolveTheme(), darkMode: resolveDarkMode() });
928
931
  }
929
932
  );
930
933
  watch7([() => props.sort, () => props.search, () => props.page], () => {
@@ -1079,9 +1082,7 @@ var GeoMap = /* @__PURE__ */ defineComponent5({
1079
1082
  () => contextDarkMode?.value
1080
1083
  ],
1081
1084
  () => {
1082
- if (!containerRef.value) return;
1083
- destroyMap();
1084
- mountMap();
1085
+ instance?.setTheme({ theme: resolveTheme(), darkMode: resolveDarkMode() });
1085
1086
  }
1086
1087
  );
1087
1088
  const rootClass = () => {