@milaboratories/graph-maker 1.2.0 → 1.2.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 (70) hide show
  1. package/dist/components/AesSettings/AesDataMappingDiscrete.css +1 -1
  2. package/dist/components/AesSettings/AesDataMappingDiscrete.vue.d.ts.map +1 -1
  3. package/dist/components/AesSettings/AesDataMappingDiscrete.vue2.js.map +1 -1
  4. package/dist/components/AesSettings/AesDataMappingDiscrete.vue3.js +1 -1
  5. package/dist/components/Chart.vue.d.ts.map +1 -1
  6. package/dist/components/Chart.vue.js +67 -66
  7. package/dist/components/Chart.vue.js.map +1 -1
  8. package/dist/components/ReorderForm.vue.d.ts.map +1 -1
  9. package/dist/components/ReorderForm.vue2.js +14 -13
  10. package/dist/components/ReorderForm.vue2.js.map +1 -1
  11. package/dist/constantsCommon.d.ts +1 -0
  12. package/dist/constantsCommon.d.ts.map +1 -1
  13. package/dist/constantsCommon.js +11 -10
  14. package/dist/constantsCommon.js.map +1 -1
  15. package/dist/dataBindAes.d.ts.map +1 -1
  16. package/dist/dataBindAes.js +13 -13
  17. package/dist/dataBindAes.js.map +1 -1
  18. package/dist/forms/AxesSettingsForm/BubbleAxesSettingsForm.vue.d.ts.map +1 -1
  19. package/dist/forms/AxesSettingsForm/BubbleAxesSettingsForm.vue.js +67 -59
  20. package/dist/forms/AxesSettingsForm/BubbleAxesSettingsForm.vue.js.map +1 -1
  21. package/dist/forms/AxesSettingsForm/DiscreteAxesSettingsForm.vue.d.ts.map +1 -1
  22. package/dist/forms/AxesSettingsForm/DiscreteAxesSettingsForm.vue.js +92 -84
  23. package/dist/forms/AxesSettingsForm/DiscreteAxesSettingsForm.vue.js.map +1 -1
  24. package/dist/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue.d.ts.map +1 -1
  25. package/dist/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue.js +73 -65
  26. package/dist/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue.js.map +1 -1
  27. package/dist/forms/AxesSettingsForm/HistogramAxesSettingsForm.vue.d.ts.map +1 -1
  28. package/dist/forms/AxesSettingsForm/HistogramAxesSettingsForm.vue.js +81 -73
  29. package/dist/forms/AxesSettingsForm/HistogramAxesSettingsForm.vue.js.map +1 -1
  30. package/dist/forms/AxesSettingsForm/ScatterplotAxesSettingsForm.vue.d.ts.map +1 -1
  31. package/dist/forms/AxesSettingsForm/ScatterplotAxesSettingsForm.vue.js +196 -182
  32. package/dist/forms/AxesSettingsForm/ScatterplotAxesSettingsForm.vue.js.map +1 -1
  33. package/dist/forms/LayersForm/AesSelector.vue.d.ts.map +1 -1
  34. package/dist/forms/LayersForm/AesSelector.vue.js +52 -52
  35. package/dist/forms/LayersForm/AesSelector.vue.js.map +1 -1
  36. package/dist/index.vue.d.ts.map +1 -1
  37. package/dist/index.vue.js +168 -158
  38. package/dist/index.vue.js.map +1 -1
  39. package/dist/store.d.ts.map +1 -1
  40. package/dist/store.js +38 -37
  41. package/dist/store.js.map +1 -1
  42. package/dist/types.d.ts +3 -0
  43. package/dist/types.d.ts.map +1 -1
  44. package/dist/utils/createChartSettingsForRender/composeBubbleSettings.d.ts +8 -0
  45. package/dist/utils/createChartSettingsForRender/composeBubbleSettings.d.ts.map +1 -1
  46. package/dist/utils/createChartSettingsForRender/composeBubbleSettings.js +24 -22
  47. package/dist/utils/createChartSettingsForRender/composeBubbleSettings.js.map +1 -1
  48. package/dist/utils/createChartSettingsForRender/composeDendroSettings.d.ts +15 -0
  49. package/dist/utils/createChartSettingsForRender/composeDendroSettings.d.ts.map +1 -1
  50. package/dist/utils/createChartSettingsForRender/composeDiscreteSettings.d.ts +19 -0
  51. package/dist/utils/createChartSettingsForRender/composeDiscreteSettings.d.ts.map +1 -1
  52. package/dist/utils/createChartSettingsForRender/composeDiscreteSettings.js +34 -30
  53. package/dist/utils/createChartSettingsForRender/composeDiscreteSettings.js.map +1 -1
  54. package/dist/utils/createChartSettingsForRender/composeHeatmapSettings.d.ts +21 -0
  55. package/dist/utils/createChartSettingsForRender/composeHeatmapSettings.d.ts.map +1 -1
  56. package/dist/utils/createChartSettingsForRender/composeHeatmapSettings.js +24 -22
  57. package/dist/utils/createChartSettingsForRender/composeHeatmapSettings.js.map +1 -1
  58. package/dist/utils/createChartSettingsForRender/composeHistogramSettings.d.ts +4 -0
  59. package/dist/utils/createChartSettingsForRender/composeHistogramSettings.d.ts.map +1 -1
  60. package/dist/utils/createChartSettingsForRender/composeHistogramSettings.js +24 -22
  61. package/dist/utils/createChartSettingsForRender/composeHistogramSettings.js.map +1 -1
  62. package/dist/utils/createChartSettingsForRender/composeScatterplotSettings.d.ts +18 -0
  63. package/dist/utils/createChartSettingsForRender/composeScatterplotSettings.d.ts.map +1 -1
  64. package/dist/utils/createChartSettingsForRender/composeScatterplotSettings.js +77 -72
  65. package/dist/utils/createChartSettingsForRender/composeScatterplotSettings.js.map +1 -1
  66. package/dist/utils/createChartSettingsForRender/composeScatterplotUmapSettings.d.ts +12 -0
  67. package/dist/utils/createChartSettingsForRender/composeScatterplotUmapSettings.d.ts.map +1 -1
  68. package/dist/utils/createChartSettingsForRender/composeScatterplotUmapSettings.js +40 -35
  69. package/dist/utils/createChartSettingsForRender/composeScatterplotUmapSettings.js.map +1 -1
  70. package/package.json +3 -3
package/dist/index.vue.js CHANGED
@@ -1,23 +1,23 @@
1
- import { defineComponent as ie, mergeModels as q, useModel as H, ref as p, watch as c, toRaw as u, computed as m, shallowRef as J, onMounted as se, onUnmounted as ce, useSlots as de, createElementBlock as ve, openBlock as D, createElementVNode as pe, createVNode as N, createBlock as F, createCommentVNode as S, withCtx as O, renderSlot as P, unref as s, resolveDynamicComponent as me } from "vue";
1
+ import { defineComponent as se, mergeModels as Z, useModel as q, ref as p, watch as s, toRaw as u, computed as f, shallowRef as J, onMounted as ce, onUnmounted as ve, useSlots as de, createElementBlock as pe, openBlock as D, createElementVNode as me, createVNode as N, createBlock as O, createCommentVNode as y, withCtx as P, renderSlot as B, unref as c, resolveDynamicComponent as fe } from "vue";
2
2
  import { MiPlots as ge } from "@milaboratories/miplots4";
3
- import { DemoDataStore as fe } from "@milaboratories/pf-plots";
3
+ import { DemoDataStore as he } from "@milaboratories/pf-plots";
4
4
  import { watchDebounced as g } from "@vueuse/core";
5
5
  import './components/TransitionSlidePanel.css';import './assets/ui.css';/* empty css */
6
- import he from "./components/Chart.vue.js";
7
- import Se from "./components/PanelModal.vue.js";
8
- import ye from "./components/SettingsTabs/index.vue.js";
6
+ import Se from "./components/Chart.vue.js";
7
+ import ye from "./components/PanelModal.vue.js";
8
+ import Te from "./components/SettingsTabs/index.vue.js";
9
9
  import be from "./components/TransitionSlidePanel.vue.js";
10
10
  /* empty css */
11
- import Te from "./components/ChartErrorNotificationAlert.vue.js";
11
+ import we from "./components/ChartErrorNotificationAlert.vue.js";
12
12
  import { useSettingsForm as Ce, isOwnGraphMakerTab as De } from "./forms/index.js";
13
- import { provideStore as we, createReactiveState as ke } from "./store.js";
14
- import { copyJSON as y } from "./utils/copyJSON.js";
15
- import xe from "./components/GraphStatusScreen.vue.js";
13
+ import { provideStore as ke, createReactiveState as xe } from "./store.js";
14
+ import { copyJSON as T } from "./utils/copyJSON.js";
15
+ import Fe from "./components/GraphStatusScreen.vue.js";
16
16
  import { composeChartSettings as K } from "./utils/createChartSettingsForRender/composeChartSettings.js";
17
- import { saveToFile as Fe } from "./utils/saveToFile.js";
18
- const Oe = { class: "graph-maker" }, Pe = { class: "graph-maker__main-pane" }, We = /* @__PURE__ */ ie({
17
+ import { saveToFile as Oe } from "./utils/saveToFile.js";
18
+ const Pe = { class: "graph-maker" }, Be = { class: "graph-maker__main-pane" }, ze = /* @__PURE__ */ se({
19
19
  __name: "index",
20
- props: /* @__PURE__ */ q({
20
+ props: /* @__PURE__ */ Z({
21
21
  pFrame: {},
22
22
  chartType: {},
23
23
  defaultOptions: {},
@@ -38,55 +38,55 @@ const Oe = { class: "graph-maker" }, Pe = { class: "graph-maker__main-pane" }, W
38
38
  selection: {},
39
39
  selectionModifiers: {}
40
40
  }),
41
- emits: /* @__PURE__ */ q(["delete-this-graph", "tooltip-btn-click"], ["update:modelValue", "update:selection"]),
42
- setup(d, { expose: W, emit: Be }) {
43
- const l = H(d, "modelValue"), R = H(d, "selection"), n = d;
44
- W({
41
+ emits: /* @__PURE__ */ Z(["delete-this-graph", "tooltip-btn-click"], ["update:modelValue", "update:selection"]),
42
+ setup(v, { expose: z, emit: Ee }) {
43
+ const l = q(v, "modelValue"), $ = q(v, "selection"), o = v;
44
+ z({
45
45
  /**
46
46
  reset() will update data-mapping, axis-settings, layers-settings with the state that is in v-model at the moment.
47
47
  In other cases editing of v-model fields doesn't make any impact to graphs and interface.
48
48
  */
49
- reset: z
49
+ reset: Q
50
50
  });
51
- const w = p(null);
52
- c(() => n.pFrame, (e) => {
53
- var o;
51
+ const k = p(null);
52
+ s(() => o.pFrame, (e) => {
53
+ var n;
54
54
  if (!e.ok || !e.value) {
55
- w.value = null;
55
+ k.value = null;
56
56
  return;
57
57
  }
58
- const a = "platforma" in window ? (o = window.platforma) == null ? void 0 : o.pFrameDriver : n.driver;
58
+ const a = "platforma" in window ? (n = window.platforma) == null ? void 0 : n.pFrameDriver : o.driver;
59
59
  if (!a)
60
60
  throw new Error("PFrame driver is missing");
61
- w.value = new fe(
61
+ k.value = new he(
62
62
  e.value,
63
63
  a,
64
- n.labelsModifier
64
+ o.labelsModifier
65
65
  );
66
66
  }, { immediate: !0, deep: !0 });
67
- const $ = p(n.fixedOptions ?? []);
68
- c(() => n.fixedOptions, (e, a) => {
69
- (e && a && JSON.stringify(e) !== JSON.stringify(a) || e && !a || a && !e) && ($.value = e);
67
+ const H = p(o.fixedOptions ?? []);
68
+ s(() => o.fixedOptions, (e, a) => {
69
+ (e && a && JSON.stringify(e) !== JSON.stringify(a) || e && !a || a && !e) && (H.value = e);
70
70
  }, { deep: !0 });
71
- const k = p(n.defaultOptions);
72
- c(() => n.defaultOptions, (e) => {
73
- k.value = e;
71
+ const x = p(o.defaultOptions);
72
+ s(() => o.defaultOptions, (e) => {
73
+ x.value = e;
74
74
  }, { deep: !0 });
75
- const t = we(
75
+ const t = ke(
76
76
  u(l.value),
77
- w,
78
- n.chartType,
79
77
  k,
80
- $,
81
- n.dataColumnPredicate,
82
- n.metaColumnPredicate,
83
- n.readonlyInputs,
84
- n.defaultPalette
78
+ o.chartType,
79
+ x,
80
+ H,
81
+ o.dataColumnPredicate,
82
+ o.metaColumnPredicate,
83
+ o.readonlyInputs,
84
+ o.defaultPalette
85
85
  );
86
- function z() {
87
- const e = ke(
86
+ function Q() {
87
+ const e = xe(
88
88
  u(l.value),
89
- n.chartType
89
+ o.chartType
90
90
  );
91
91
  Object.assign(t.value.reactive, e), Object.assign(t.value.loading, {
92
92
  initialInputGuide: !0,
@@ -94,100 +94,108 @@ const Oe = { class: "graph-maker" }, Pe = { class: "graph-maker__main-pane" }, W
94
94
  initialDefaults: !0,
95
95
  inputGuide: !1,
96
96
  chartData: !1
97
- }), k.value = n.defaultOptions;
97
+ }), x.value = o.defaultOptions;
98
98
  }
99
- const Q = m(() => Ce(t.value.reactive.currentTab)), r = J(null), M = p(null), A = p(!1), f = p(null), b = m(
100
- () => n.pFrame.ok && !n.pFrame.value && !n.pFrame.stable
101
- ), B = m(
102
- () => t.value.loading.initialInputGuide && x.value === "loading"
103
- ), x = m((e) => {
104
- var i, v;
99
+ const X = f(() => Ce(t.value.reactive.currentTab)), i = J(null), M = p(null), A = p(!1), h = p(null), b = f(
100
+ () => o.pFrame.ok && !o.pFrame.value && !o.pFrame.stable
101
+ ), E = f(
102
+ () => t.value.loading.initialInputGuide && F.value === "loading"
103
+ ), F = f((e) => {
104
+ var r, m;
105
105
  if (b.value)
106
106
  return "running";
107
- if (n.pFrame.ok && n.pFrame.stable && !n.pFrame.value)
107
+ if (o.pFrame.ok && o.pFrame.stable && !o.pFrame.value)
108
108
  return "noPframe";
109
- if (!n.pFrame.ok)
109
+ if (!o.pFrame.ok)
110
110
  return "noPframeWithError";
111
- const a = t.value.inputGuide.value, o = t.value.chartData.value;
112
- return a.consistent ? a.ready ? o && ((i = Object.values(o.data.byColumns.values)[0]) == null ? void 0 : i.length) === 0 ? "empty" : A.value ? ((v = f.value) == null ? void 0 : v.type) === "unknownError" ? "unknownError" : "knownError" : t.value.loading.initialCharts || e !== "ready" && t.value.loading.chartData || t.value.loading.chartRendering || r.value === null && (t.value.loading.inputGuide || t.value.loading.chartData) ? "loading" : "ready" : k.value === null || t.value.loading.defaults || t.value.loading.initialInputGuide ? "loading" : "notReady" : "inconsistent";
111
+ const a = t.value.inputGuide.value, n = t.value.chartData.value;
112
+ return a.consistent ? a.ready ? n && ((r = Object.values(n.data.byColumns.values)[0]) == null ? void 0 : r.length) === 0 ? "empty" : A.value ? ((m = h.value) == null ? void 0 : m.type) === "unknownError" ? "unknownError" : "knownError" : t.value.loading.initialCharts || e !== "ready" && t.value.loading.chartData || t.value.loading.chartRendering || i.value === null && (t.value.loading.inputGuide || t.value.loading.chartData) ? "loading" : "ready" : x.value === null || t.value.loading.defaults || t.value.loading.initialInputGuide ? "loading" : "notReady" : "inconsistent";
113
113
  });
114
- function X(e) {
114
+ function Y(e) {
115
115
  var a;
116
116
  t.value.reactive.dendroSelectedNodeId = (a = e == null ? void 0 : e.info[0]) == null ? void 0 : a.id, t.value.reactive.dendroInfoByClick = e;
117
117
  }
118
- function h(e) {
119
- t.value.reactive.showTooltipHint = e;
118
+ const d = p(null);
119
+ function S(e) {
120
+ const a = t.value.reactive;
121
+ if (e) {
122
+ if (a.tooltipHintWasShown) return;
123
+ d.value && (clearTimeout(d.value), d.value = null), a.showTooltipHint = !0, d.value = setTimeout(() => {
124
+ a.showTooltipHint = !1, a.tooltipHintWasShown = !0, d.value = null;
125
+ }, 3e3);
126
+ } else
127
+ a.showTooltipHint = !1;
120
128
  }
121
129
  function U(e, a) {
122
- var T, C;
130
+ var w, C;
123
131
  l.value = {
124
132
  ...l.value,
125
133
  selectedPolygons: a
126
134
  };
127
- const o = (C = (T = t.value.chartData.value) == null ? void 0 : T.data) == null ? void 0 : C.axesData;
128
- if (e.length === 0 || !o) {
129
- R.value = { axesSpec: [], selectedKeys: [] };
135
+ const n = (C = (w = t.value.chartData.value) == null ? void 0 : w.data) == null ? void 0 : C.axesData;
136
+ if (e.length === 0 || !n) {
137
+ $.value = { axesSpec: [], selectedKeys: [] };
130
138
  return;
131
139
  }
132
- const i = Object.keys(o), v = t.value.inputGuide.value;
133
- R.value = {
134
- axesSpec: i.map((L) => v.getSourceInfo(L).spec),
135
- selectedKeys: e.map((L) => i.map((ue) => o[ue][L]))
140
+ const r = Object.keys(n), m = t.value.inputGuide.value;
141
+ $.value = {
142
+ axesSpec: r.map((R) => m.getSourceInfo(R).spec),
143
+ selectedKeys: e.map((R) => r.map((re) => n[re][R]))
136
144
  };
137
145
  }
138
146
  function V(e) {
139
147
  t.value.reactive.lassoControlsState = e;
140
148
  }
141
- let E = null;
142
- function Y(e) {
143
- e ? E = setTimeout(() => {
149
+ let I = null;
150
+ function _(e) {
151
+ e ? I = setTimeout(() => {
144
152
  t.value.loading.chartRendering = !0;
145
- }, 1e3) : (E && clearTimeout(E), t.value.loading.chartRendering = !1);
153
+ }, 1e3) : (I && clearTimeout(I), t.value.loading.chartRendering = !1);
146
154
  }
147
155
  const j = p(!1);
148
- function _(e) {
156
+ function ee(e) {
149
157
  j.value = e;
150
158
  }
151
- const ee = {
152
- dendro: [X],
159
+ const te = {
160
+ dendro: [Y],
153
161
  "scatterplot-umap": {
154
162
  onPolygonUpdate: U,
155
- onTooltipHintSwitch: h,
163
+ onTooltipHintSwitch: S,
156
164
  onLassoControlsStateUpdate: V,
157
- onZoomChange: _
165
+ onZoomChange: ee
158
166
  },
159
- discrete: [h],
167
+ discrete: [S],
160
168
  scatterplot: {
161
169
  onPolygonUpdate: U,
162
- onTooltipHintSwitch: h,
170
+ onTooltipHintSwitch: S,
163
171
  onLassoControlsStateUpdate: V
164
172
  },
165
- histogram: [h],
166
- heatmap: { onTooltipHintSwitch: h, onLoadingChange: Y },
167
- bubble: [h]
173
+ histogram: [S],
174
+ heatmap: { onTooltipHintSwitch: S, onLoadingChange: _ },
175
+ bubble: [S]
168
176
  };
169
- function Z(e) {
170
- var a, o, i, v, T;
177
+ function W(e) {
178
+ var a, n, r, m, w;
171
179
  if (e && ((a = Object.values(e.data.values)[0]) == null ? void 0 : a.length) > 0) {
172
- if (r.value)
173
- r.value.updateSettingsAndData({ ...u(e.data), id: e.data.id + (n.pFrame.ok ? n.pFrame.value : "") }, u(e.settings));
180
+ if (i.value)
181
+ i.value.updateSettingsAndData({ ...u(e.data), id: e.data.id + (o.pFrame.ok ? o.pFrame.value : "") }, u(e.settings));
174
182
  else {
175
183
  const C = document.getElementById("chartSvgContainer");
176
- C && (r.value = ge.newPlot(u(e.data), u(e.settings), ee[e.settings.type]), e.settings.type === "scatterplot-umap" && r.value.updateChartState("polygon", l.value.selectedPolygons ?? []), r.value.mount(C));
184
+ C && (i.value = ge.newPlot(u(e.data), u(e.settings), te[e.settings.type]), e.settings.type === "scatterplot-umap" && i.value.updateChartState("polygon", l.value.selectedPolygons ?? []), i.value.mount(C));
177
185
  }
178
- M.value = (o = r.value) != null && o.calculatedData ? { ...r.value.calculatedData } : null, A.value = ((i = r.value) == null ? void 0 : i.hasError) ?? !1, f.value = ((v = r.value) == null ? void 0 : v.errorInfo) ?? null;
186
+ M.value = (n = i.value) != null && n.calculatedData ? { ...i.value.calculatedData } : null, A.value = ((r = i.value) == null ? void 0 : r.hasError) ?? !1, h.value = ((m = i.value) == null ? void 0 : m.errorInfo) ?? null;
179
187
  } else
180
- (T = r.value) == null || T.unmount(), r.value = null, f.value = null;
188
+ (w = i.value) == null || w.unmount(), i.value = null, h.value = null;
181
189
  }
182
- c(() => x.value, (e) => {
190
+ s(() => F.value, (e) => {
183
191
  var a;
184
- (e === "notReady" || e === "noPframe" || w.value === null) && ((a = r.value) == null || a.unmount(), r.value = null);
192
+ (e === "notReady" || e === "noPframe" || k.value === null) && ((a = i.value) == null || a.unmount(), i.value = null);
185
193
  });
186
- const I = J(null);
187
- c([
194
+ const G = J(null);
195
+ s([
188
196
  () => t.value.chartData.value
189
197
  ], ([e]) => {
190
- I.value = K(
198
+ G.value = K(
191
199
  u(e),
192
200
  u(t.value.inputGuide.value),
193
201
  u(t.value.uniqueValuesData.value),
@@ -195,7 +203,7 @@ const Oe = { class: "graph-maker" }, Pe = { class: "graph-maker__main-pane" }, W
195
203
  u(t.value.reactive),
196
204
  u(t.value.defaultPalette)
197
205
  );
198
- }), c([
206
+ }), s([
199
207
  () => t.value.reactive.template,
200
208
  () => t.value.reactive.layersSettings,
201
209
  () => t.value.reactive.axesSettings,
@@ -203,7 +211,7 @@ const Oe = { class: "graph-maker" }, Pe = { class: "graph-maker__main-pane" }, W
203
211
  () => t.value.reactive.dataBindAes,
204
212
  () => t.value.reactive.chartScale
205
213
  ], () => {
206
- I.value = K(
214
+ G.value = K(
207
215
  u(t.value.chartData.value),
208
216
  u(t.value.inputGuide.value),
209
217
  u(t.value.uniqueValuesData.value),
@@ -211,158 +219,160 @@ const Oe = { class: "graph-maker" }, Pe = { class: "graph-maker__main-pane" }, W
211
219
  u(t.value.reactive),
212
220
  u(t.value.defaultPalette)
213
221
  );
214
- }, { deep: !0 }), c(() => I.value, (e) => {
215
- Z(e);
216
- }), se(() => {
217
- Z(null);
222
+ }, { deep: !0 }), s(() => G.value, (e) => {
223
+ W(e);
218
224
  }), ce(() => {
225
+ W(null);
226
+ }), ve(() => {
219
227
  var e;
220
- (e = r.value) == null || e.unmount();
228
+ d.value && (clearTimeout(d.value), d.value = null), (e = i.value) == null || e.unmount();
221
229
  }), g(() => t.value.reactive.optionsState, (e) => {
222
230
  l.value = {
223
231
  ...l.value,
224
- optionsState: y(e)
232
+ optionsState: T(e)
225
233
  };
226
234
  }, { deep: !0, debounce: 1e3 }), g(() => t.value.reactive.usedDefaultOptions, (e) => {
227
235
  l.value = {
228
236
  ...l.value,
229
- usedDefaultOptions: y(e)
237
+ usedDefaultOptions: T(e)
230
238
  };
231
239
  }, { deep: !0, debounce: 1e3 }), g(() => t.value.reactive.statisticsSettings, (e) => {
232
240
  l.value = {
233
241
  ...l.value,
234
- statisticsSettings: y(e)
242
+ statisticsSettings: T(e)
235
243
  };
236
244
  }, { deep: !0, debounce: 1e3 }), g(() => t.value.reactive.axesSettings, (e) => {
237
245
  l.value = {
238
246
  ...l.value,
239
- axesSettings: y(e)
247
+ axesSettings: T(e)
240
248
  };
241
249
  }, { deep: !0, debounce: 1e3 }), g(() => t.value.reactive.layersSettings, (e) => {
242
250
  l.value = {
243
251
  ...l.value,
244
- layersSettings: y(e)
252
+ layersSettings: T(e)
245
253
  };
246
254
  }, { deep: !0, debounce: 1e3 }), g(() => t.value.reactive.dataBindAes, (e) => {
247
255
  l.value = {
248
256
  ...l.value,
249
- dataBindAes: y(e)
257
+ dataBindAes: T(e)
250
258
  };
251
259
  }, { deep: !0, debounce: 1e3 }), g([
252
260
  () => t.value.reactive.chartScale,
253
261
  () => t.value.reactive.template,
254
262
  () => t.value.reactive.currentTab
255
- ], ([e, a, o]) => {
263
+ ], ([e, a, n]) => {
256
264
  l.value = {
257
265
  ...l.value,
258
266
  zoomState: e,
259
267
  template: a,
260
- currentTab: o
268
+ currentTab: n
261
269
  };
262
- }, { debounce: 1e3 }), c(() => l.value.currentTab, (e) => {
270
+ }, { debounce: 1e3 }), s(() => t.value.reactive.tooltipHintWasShown, (e) => {
271
+ e && (l.value = { ...l.value, tooltipHintWasShown: !0 });
272
+ }), s(() => l.value.currentTab, (e) => {
263
273
  t.value.reactive.currentTab = e === void 0 ? "dataMapping" : e;
264
- }), c(() => {
265
- var e, a, o;
266
- return (o = (a = (e = l.value) == null ? void 0 : e.layersSettings) == null ? void 0 : a.dendro) == null ? void 0 : o.showTable;
274
+ }), s(() => {
275
+ var e, a, n;
276
+ return (n = (a = (e = l.value) == null ? void 0 : e.layersSettings) == null ? void 0 : a.dendro) == null ? void 0 : n.showTable;
267
277
  }, (e) => {
268
278
  t.value.reactive.layersSettings.dendro.showTable = e ?? !1;
269
279
  });
270
- function te() {
280
+ function ae() {
271
281
  var e;
272
- Fe(
282
+ Oe(
273
283
  new Blob([
274
- ((e = r.value) == null ? void 0 : e.export()) ?? ""
284
+ ((e = i.value) == null ? void 0 : e.export()) ?? ""
275
285
  ]),
276
286
  "chart.svg"
277
287
  );
278
288
  }
279
- function ae(e) {
289
+ function le(e) {
280
290
  l.value = {
281
291
  ...l.value,
282
292
  title: e
283
293
  };
284
294
  }
285
- function le(e) {
295
+ function oe(e) {
286
296
  var a;
287
- t.value.reactive.dendroSelectedNodeId = e, (a = r.value) == null || a.updateChartState("selectedNode", e);
297
+ t.value.reactive.dendroSelectedNodeId = e, (a = i.value) == null || a.updateChartState("selectedNode", e);
288
298
  }
289
- const G = de(), ne = m(() => !!G.annotationsSlot), oe = m(() => !!G.settingsSlot), re = m(() => !!G.logSlot);
299
+ const L = de(), ne = f(() => !!L.annotationsSlot), ie = f(() => !!L.settingsSlot), ue = f(() => !!L.logSlot);
290
300
  return (e, a) => {
291
- var o;
292
- return D(), ve("div", Oe, [
293
- pe("div", Pe, [
294
- N(he, {
295
- "graph-status": x.value,
301
+ var n;
302
+ return D(), pe("div", Pe, [
303
+ me("div", Be, [
304
+ N(Se, {
305
+ "graph-status": F.value,
296
306
  graphTitle: l.value.title,
297
307
  chartData: M.value,
298
- "chart-ref": r.value,
299
- "error-info": f.value,
300
- dendroTooltipButton: d.tooltipButton,
301
- "custom-status-text": d.statusText,
302
- "allow-title-editing": d.allowTitleEditing,
308
+ "chart-ref": i.value,
309
+ "error-info": h.value,
310
+ dendroTooltipButton: v.tooltipButton,
311
+ "custom-status-text": v.statusText,
312
+ "allow-title-editing": v.allowTitleEditing,
303
313
  isScatterplotZoomChanged: j.value,
304
- onGraphTitleUpdate: ae,
305
- onDendroNodeSelect: le,
306
- onDendroTooltipBtnClick: a[0] || (a[0] = (i) => e.$emit("tooltip-btn-click", i))
314
+ onGraphTitleUpdate: le,
315
+ onDendroNodeSelect: oe,
316
+ onDendroTooltipBtnClick: a[0] || (a[0] = (r) => e.$emit("tooltip-btn-click", r))
307
317
  }, {
308
- default: O(() => [
309
- P(e.$slots, "titleLineSlot")
318
+ default: P(() => [
319
+ B(e.$slots, "titleLineSlot")
310
320
  ]),
311
321
  _: 3
312
322
  }, 8, ["graph-status", "graphTitle", "chartData", "chart-ref", "error-info", "dendroTooltipButton", "custom-status-text", "allow-title-editing", "isScatterplotZoomChanged"]),
313
- B.value || b.value ? (D(), F(xe, {
323
+ E.value || b.value ? (D(), O(Fe, {
314
324
  key: 0,
315
325
  graphStatus: b.value ? "running" : "loading",
316
326
  top: 67,
317
327
  left: 12,
318
328
  right: 12,
319
329
  bottom: 12,
320
- customStatusText: d.statusText
321
- }, null, 8, ["graphStatus", "customStatusText"])) : S("", !0),
330
+ customStatusText: v.statusText
331
+ }, null, 8, ["graphStatus", "customStatusText"])) : y("", !0),
322
332
  N(be, { id: "graph-settings-modal" }, {
323
- default: O(() => [
324
- s(t).reactive.currentTab && !((B.value || b.value) && s(De)(s(t).reactive.currentTab)) ? (D(), F(Se, {
333
+ default: P(() => [
334
+ c(t).reactive.currentTab && !((E.value || b.value) && c(De)(c(t).reactive.currentTab)) ? (D(), O(ye, {
325
335
  key: 0,
326
- onClose: a[1] || (a[1] = (i) => s(t).reactive.currentTab = null)
336
+ onClose: a[1] || (a[1] = (r) => c(t).reactive.currentTab = null)
327
337
  }, {
328
- default: O(() => [
329
- (D(), F(me(Q.value.value), null, {
330
- default: O(() => [
331
- s(t).reactive.currentTab === "annotations" ? P(e.$slots, "annotationsSlot", { key: 0 }) : S("", !0),
332
- s(t).reactive.currentTab === "settings" ? P(e.$slots, "settingsSlot", { key: 1 }) : S("", !0),
333
- s(t).reactive.currentTab === "log" ? P(e.$slots, "logSlot", { key: 2 }) : S("", !0)
338
+ default: P(() => [
339
+ (D(), O(fe(X.value.value), null, {
340
+ default: P(() => [
341
+ c(t).reactive.currentTab === "annotations" ? B(e.$slots, "annotationsSlot", { key: 0 }) : y("", !0),
342
+ c(t).reactive.currentTab === "settings" ? B(e.$slots, "settingsSlot", { key: 1 }) : y("", !0),
343
+ c(t).reactive.currentTab === "log" ? B(e.$slots, "logSlot", { key: 2 }) : y("", !0)
334
344
  ]),
335
345
  _: 3
336
346
  }))
337
347
  ]),
338
348
  _: 3
339
- })) : S("", !0)
349
+ })) : y("", !0)
340
350
  ]),
341
351
  _: 3
342
352
  })
343
353
  ]),
344
- N(ye, {
345
- modelValue: s(t).reactive.currentTab,
346
- "onUpdate:modelValue": a[2] || (a[2] = (i) => s(t).reactive.currentTab = i),
347
- "chart-type": s(t).reactive.chartType,
348
- "graph-status": x.value,
349
- allowDeleting: d.allowChartDeleting,
354
+ N(Te, {
355
+ modelValue: c(t).reactive.currentTab,
356
+ "onUpdate:modelValue": a[2] || (a[2] = (r) => c(t).reactive.currentTab = r),
357
+ "chart-type": c(t).reactive.chartType,
358
+ "graph-status": F.value,
359
+ allowDeleting: v.allowChartDeleting,
350
360
  hasAnnotationsSlot: ne.value,
351
- hasSettingsSlot: oe.value,
352
- hasLogSlot: re.value,
353
- initialLoading: B.value || b.value,
354
- onExport: te,
355
- onDelete: a[3] || (a[3] = (i) => e.$emit("delete-this-graph"))
361
+ hasSettingsSlot: ie.value,
362
+ hasLogSlot: ue.value,
363
+ initialLoading: E.value || b.value,
364
+ onExport: ae,
365
+ onDelete: a[3] || (a[3] = (r) => e.$emit("delete-this-graph"))
356
366
  }, null, 8, ["modelValue", "chart-type", "graph-status", "allowDeleting", "hasAnnotationsSlot", "hasSettingsSlot", "hasLogSlot", "initialLoading"]),
357
- ((o = f.value) == null ? void 0 : o.type) === "unknownError" ? (D(), F(Te, {
367
+ ((n = h.value) == null ? void 0 : n.type) === "unknownError" ? (D(), O(we, {
358
368
  key: 0,
359
- errorInfo: f.value
360
- }, null, 8, ["errorInfo"])) : S("", !0)
369
+ errorInfo: h.value
370
+ }, null, 8, ["errorInfo"])) : y("", !0)
361
371
  ]);
362
372
  };
363
373
  }
364
374
  });
365
375
  export {
366
- We as default
376
+ ze as default
367
377
  };
368
378
  //# sourceMappingURL=index.vue.js.map