@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.
- package/dist/components/Chart.vue.d.ts.map +1 -1
- package/dist/components/Chart.vue.js +32 -32
- package/dist/components/Chart.vue.js.map +1 -1
- package/dist/forms/AxesSettingsForm/DiscreteAxesSettingsForm.vue.js +3 -2
- package/dist/forms/AxesSettingsForm/DiscreteAxesSettingsForm.vue.js.map +1 -1
- package/dist/forms/DataMappingForm/DiscreteForm.vue.js +3 -2
- package/dist/forms/DataMappingForm/DiscreteForm.vue.js.map +1 -1
- package/dist/forms/StatisticsForm/DiscreteStatisticsForm.vue.js +16 -15
- package/dist/forms/StatisticsForm/DiscreteStatisticsForm.vue.js.map +1 -1
- package/dist/index.vue.d.ts +0 -6
- package/dist/index.vue.d.ts.map +1 -1
- package/dist/index.vue.js +184 -209
- package/dist/index.vue.js.map +1 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +106 -121
- package/dist/store.js.map +1 -1
- package/dist/types.d.ts +4 -4
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/addFixedOptionsToState.d.ts.map +1 -1
- package/dist/utils/addFixedOptionsToState.js +9 -9
- package/dist/utils/addFixedOptionsToState.js.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeBubbleSettings.js +6 -5
- package/dist/utils/createChartSettingsForRender/composeBubbleSettings.js.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeDiscreteSettings.js +9 -8
- package/dist/utils/createChartSettingsForRender/composeDiscreteSettings.js.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeHeatmapSettings.js +3 -2
- package/dist/utils/createChartSettingsForRender/composeHeatmapSettings.js.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeHistogramSettings.js +3 -2
- package/dist/utils/createChartSettingsForRender/composeHistogramSettings.js.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeScatterplotSettings.js +18 -17
- package/dist/utils/createChartSettingsForRender/composeScatterplotSettings.js.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeScatterplotUmapSettings.js +9 -8
- package/dist/utils/createChartSettingsForRender/composeScatterplotUmapSettings.js.map +1 -1
- package/dist/utils/getUsedAesInMapping.js +3 -2
- package/dist/utils/getUsedAesInMapping.js.map +1 -1
- package/dist/utils/loadDefaultSources.d.ts +5 -10
- package/dist/utils/loadDefaultSources.d.ts.map +1 -1
- package/dist/utils/loadDefaultSources.js +80 -48
- package/dist/utils/loadDefaultSources.js.map +1 -1
- package/package.json +2 -2
package/dist/index.vue.js
CHANGED
|
@@ -1,31 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { MiPlots as
|
|
3
|
-
import { DemoDataStore as
|
|
4
|
-
import { watchDebounced as
|
|
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
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
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
|
|
13
|
-
import { useSettingsForm as
|
|
14
|
-
import { provideStore as
|
|
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
|
|
19
|
-
import { saveToFile as
|
|
20
|
-
import { copyJSON as
|
|
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
|
|
23
|
-
|
|
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(
|
|
49
|
-
const
|
|
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:
|
|
57
|
-
/**
|
|
58
|
-
Apply new defaults without resetting all the state
|
|
59
|
-
*/
|
|
60
|
-
resetDefaults: X
|
|
54
|
+
reset: z
|
|
61
55
|
});
|
|
62
|
-
const k =
|
|
63
|
-
|
|
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 :
|
|
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
|
|
66
|
+
k.value = new ge(
|
|
73
67
|
e.value,
|
|
74
68
|
a,
|
|
75
|
-
|
|
69
|
+
n.labelsModifier
|
|
76
70
|
);
|
|
77
71
|
}, { immediate: !0, deep: !0 });
|
|
78
|
-
const $ =
|
|
79
|
-
|
|
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
|
|
83
|
-
|
|
84
|
-
e && !
|
|
85
|
-
});
|
|
86
|
-
const t =
|
|
87
|
-
|
|
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
|
-
|
|
90
|
-
|
|
83
|
+
n.chartType,
|
|
84
|
+
b,
|
|
91
85
|
$,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
86
|
+
n.dataColumnPredicate,
|
|
87
|
+
n.metaColumnPredicate,
|
|
88
|
+
n.readonlyInputs,
|
|
89
|
+
n.defaultPalette
|
|
96
90
|
);
|
|
97
|
-
function
|
|
98
|
-
const e =
|
|
99
|
-
|
|
100
|
-
|
|
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
|
-
}),
|
|
102
|
+
}), b.value = n.defaultOptions;
|
|
109
103
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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 (
|
|
112
|
+
if (n.pFrame.ok && n.pFrame.stable && !n.pFrame.value)
|
|
138
113
|
return "noPframe";
|
|
139
|
-
if (!
|
|
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 ? ((
|
|
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
|
|
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
|
|
153
|
-
|
|
154
|
-
...
|
|
127
|
+
var C, D;
|
|
128
|
+
l.value = {
|
|
129
|
+
...l.value,
|
|
155
130
|
selectedPolygons: a
|
|
156
131
|
};
|
|
157
|
-
const o = (D = (
|
|
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),
|
|
137
|
+
const u = Object.keys(o), v = t.value.inputGuide.value;
|
|
163
138
|
R.value = {
|
|
164
|
-
axesSpec: u.map((L) =>
|
|
165
|
-
selectedKeys: e.map((L) => u.map((
|
|
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
|
|
143
|
+
function V(e) {
|
|
169
144
|
t.value.reactive.lassoControlsState = e;
|
|
170
145
|
}
|
|
171
|
-
let
|
|
172
|
-
function
|
|
173
|
-
e ?
|
|
146
|
+
let E = null;
|
|
147
|
+
function Y(e) {
|
|
148
|
+
e ? E = setTimeout(() => {
|
|
174
149
|
t.value.loading.chartRendering = !0;
|
|
175
|
-
}, 1e3) : (
|
|
150
|
+
}, 1e3) : (E && clearTimeout(E), t.value.loading.chartRendering = !1);
|
|
176
151
|
}
|
|
177
|
-
const
|
|
178
|
-
function
|
|
179
|
-
|
|
152
|
+
const j = p(!1);
|
|
153
|
+
function _(e) {
|
|
154
|
+
j.value = e;
|
|
180
155
|
}
|
|
181
|
-
const
|
|
182
|
-
dendro: [
|
|
156
|
+
const ee = {
|
|
157
|
+
dendro: [X],
|
|
183
158
|
"scatterplot-umap": {
|
|
184
159
|
onPolygonUpdate: U,
|
|
185
160
|
onTooltipHintSwitch: h,
|
|
186
|
-
onLassoControlsStateUpdate:
|
|
187
|
-
onZoomChange:
|
|
161
|
+
onLassoControlsStateUpdate: V,
|
|
162
|
+
onZoomChange: _
|
|
188
163
|
},
|
|
189
164
|
discrete: [h],
|
|
190
165
|
scatterplot: {
|
|
191
166
|
onPolygonUpdate: U,
|
|
192
167
|
onTooltipHintSwitch: h,
|
|
193
|
-
onLassoControlsStateUpdate:
|
|
168
|
+
onLassoControlsStateUpdate: V
|
|
194
169
|
},
|
|
195
170
|
histogram: [h],
|
|
196
|
-
heatmap: { onTooltipHintSwitch: h, onLoadingChange:
|
|
171
|
+
heatmap: { onTooltipHintSwitch: h, onLoadingChange: Y },
|
|
197
172
|
bubble: [h]
|
|
198
173
|
};
|
|
199
174
|
function Z(e) {
|
|
200
|
-
var a, o, u,
|
|
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 (
|
|
203
|
-
|
|
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 && (
|
|
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
|
-
|
|
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
|
-
(
|
|
185
|
+
(C = r.value) == null || C.unmount(), r.value = null, g.value = null;
|
|
211
186
|
}
|
|
212
|
-
|
|
187
|
+
c(() => x.value, (e) => {
|
|
213
188
|
var a;
|
|
214
|
-
(e === "notReady" || e === "noPframe" || k.value === null) && ((a =
|
|
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
|
-
|
|
192
|
+
c([
|
|
218
193
|
() => t.value.chartData.value
|
|
219
194
|
], ([e]) => {
|
|
220
|
-
I.value =
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
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
|
-
}),
|
|
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 =
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
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 }),
|
|
219
|
+
}, { deep: !0 }), c(() => I.value, (e) => {
|
|
245
220
|
Z(e);
|
|
246
|
-
}),
|
|
221
|
+
}), se(() => {
|
|
247
222
|
Z(null);
|
|
248
|
-
}),
|
|
223
|
+
}), ce(() => {
|
|
249
224
|
var e;
|
|
250
|
-
(e =
|
|
251
|
-
}),
|
|
252
|
-
|
|
253
|
-
...
|
|
254
|
-
optionsState:
|
|
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 }),
|
|
257
|
-
|
|
258
|
-
...
|
|
259
|
-
|
|
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 }),
|
|
262
|
-
|
|
263
|
-
...
|
|
264
|
-
|
|
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 }),
|
|
267
|
-
|
|
268
|
-
...
|
|
269
|
-
|
|
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 }),
|
|
272
|
-
|
|
273
|
-
...
|
|
274
|
-
|
|
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 }),
|
|
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
|
-
|
|
282
|
-
...
|
|
261
|
+
l.value = {
|
|
262
|
+
...l.value,
|
|
283
263
|
zoomState: e,
|
|
284
264
|
template: a,
|
|
285
265
|
currentTab: o
|
|
286
266
|
};
|
|
287
|
-
}, { debounce: 1e3 }),
|
|
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
|
-
}),
|
|
269
|
+
}), c(() => {
|
|
295
270
|
var e, a, o;
|
|
296
|
-
return (o = (a = (e =
|
|
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
|
|
275
|
+
function te() {
|
|
301
276
|
var e;
|
|
302
|
-
|
|
277
|
+
xe(
|
|
303
278
|
new Blob([
|
|
304
|
-
((e =
|
|
279
|
+
((e = r.value) == null ? void 0 : e.export()) ?? ""
|
|
305
280
|
]),
|
|
306
281
|
"chart.svg"
|
|
307
282
|
);
|
|
308
283
|
}
|
|
309
|
-
function
|
|
310
|
-
|
|
311
|
-
...
|
|
284
|
+
function ae(e) {
|
|
285
|
+
l.value = {
|
|
286
|
+
...l.value,
|
|
312
287
|
title: e
|
|
313
288
|
};
|
|
314
289
|
}
|
|
315
|
-
function
|
|
290
|
+
function le(e) {
|
|
316
291
|
var a;
|
|
317
|
-
t.value.reactive.dendroSelectedNodeId = e, (a =
|
|
292
|
+
t.value.reactive.dendroSelectedNodeId = e, (a = r.value) == null || a.updateChartState("selectedNode", e);
|
|
318
293
|
}
|
|
319
|
-
const
|
|
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
|
|
323
|
-
|
|
324
|
-
N(
|
|
325
|
-
"graph-status":
|
|
326
|
-
graphTitle:
|
|
327
|
-
chartData:
|
|
328
|
-
"chart-ref":
|
|
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:
|
|
331
|
-
"custom-status-text":
|
|
332
|
-
"allow-title-editing":
|
|
333
|
-
isScatterplotZoomChanged:
|
|
334
|
-
onGraphTitleUpdate:
|
|
335
|
-
onDendroNodeSelect:
|
|
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:
|
|
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 ||
|
|
318
|
+
B.value || T.value ? (w(), F(Fe, {
|
|
344
319
|
key: 0,
|
|
345
|
-
graphStatus:
|
|
320
|
+
graphStatus: T.value ? "running" : "loading",
|
|
346
321
|
top: 67,
|
|
347
322
|
left: 12,
|
|
348
323
|
right: 12,
|
|
349
324
|
bottom: 12,
|
|
350
|
-
customStatusText:
|
|
325
|
+
customStatusText: d.statusText
|
|
351
326
|
}, null, 8, ["graphStatus", "customStatusText"])) : S("", !0),
|
|
352
|
-
N(
|
|
353
|
-
default:
|
|
354
|
-
|
|
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) =>
|
|
331
|
+
onClose: a[1] || (a[1] = (u) => s(t).reactive.currentTab = null)
|
|
357
332
|
}, {
|
|
358
|
-
default:
|
|
359
|
-
(
|
|
360
|
-
default:
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
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(
|
|
375
|
-
modelValue:
|
|
376
|
-
"onUpdate:modelValue": a[2] || (a[2] = (u) =>
|
|
377
|
-
"chart-type":
|
|
378
|
-
"graph-status":
|
|
379
|
-
allowDeleting:
|
|
380
|
-
hasAnnotationsSlot:
|
|
381
|
-
hasSettingsSlot:
|
|
382
|
-
hasLogSlot:
|
|
383
|
-
initialLoading: B.value ||
|
|
384
|
-
onExport:
|
|
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" ? (
|
|
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
|
-
|
|
371
|
+
_e as default
|
|
397
372
|
};
|
|
398
373
|
//# sourceMappingURL=index.vue.js.map
|