@milaboratories/graph-maker 1.1.221 → 1.1.223

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