@milaboratories/graph-maker 1.1.95 → 1.1.96

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.
@@ -331,6 +331,7 @@ export declare function createReactiveState(initialData: GraphMakerState, chartT
331
331
  info: Record<string, string | number>[];
332
332
  } | null;
333
333
  dendroSelectedNodeId: null | number;
334
+ dataStateKey: unknown;
334
335
  };
335
336
  export declare function factoryStore(reactiveState: Reactive<ReactiveState>, dataStore: DemoDataStore | null, inputGuide: Ref<InputGuide<InputState>>, chartData: Ref<PlotDataAndSettings | null>, dendroTableData: Ref<Awaited<ReturnType<DendroStateController['createTableData']>> | null>, uniqueValuesData: Ref<Record<string, UniqueValuesData>>, readonlyInputs?: InputNamesByChartType[ChartType][]): {
336
337
  reactive: {
@@ -660,6 +661,7 @@ export declare function factoryStore(reactiveState: Reactive<ReactiveState>, dat
660
661
  info: Record<string, string | number>[];
661
662
  } | null;
662
663
  dendroSelectedNodeId: null | number;
664
+ dataStateKey: unknown;
663
665
  };
664
666
  loading: {
665
667
  initialInputGuide: boolean;
@@ -1019,6 +1021,7 @@ export declare function provideStore(initialState: GraphMakerState, dataStoreRef
1019
1021
  info: Record<string, string | number>[];
1020
1022
  } | null;
1021
1023
  dendroSelectedNodeId: null | number;
1024
+ dataStateKey: unknown;
1022
1025
  };
1023
1026
  loading: {
1024
1027
  initialInputGuide: boolean;
@@ -12,6 +12,8 @@ export type GraphMakerState = {
12
12
  title: string;
13
13
  /** 'box', 'violins', 'dots' etc, depends on chart type */
14
14
  template: LayersTemplate;
15
+ /** Keeps dataStateKey from props to compare changes correctly in case if graph-maker was unmounted */
16
+ dataStateKey?: unknown;
15
17
  /** Optional part, used for data saving to ui-state; don't need to be set in initial settings,
16
18
  it appears in settings after changes in user interface */
17
19
  currentTab?: FormKey | null;
@@ -77,6 +79,7 @@ export type ReactiveState = {
77
79
  currentTab: FormKey | null;
78
80
  dendroInfoByClick: null | DendroNodeInfo;
79
81
  dendroSelectedNodeId: null | number;
82
+ dataStateKey: unknown;
80
83
  };
81
84
  export type DiscreteLayer = 'box' | 'binnedDots' | 'jitteredDots' | 'violin' | 'bar' | 'stackedBar' | 'line' | 'errorbar' | 'sina' | 'logo';
82
85
  export type DiscreteLayersTemplate = DiscreteLayer | 'box_binnedDots' | 'box_jitteredDots' | 'violin_binnedDots' | 'violin_jitteredDots' | 'line_jitteredDots' | 'line_binnedDots' | 'line_errorbar' | 'bar_line' | 'bar_errorbar';