@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.
- package/dist/components/AesSettings/AesDataMappingDiscrete.css +1 -1
- package/dist/components/AesSettings/AesDataMappingDiscrete.vue.d.ts.map +1 -1
- package/dist/components/AesSettings/AesDataMappingDiscrete.vue2.js.map +1 -1
- package/dist/components/AesSettings/AesDataMappingDiscrete.vue3.js +1 -1
- package/dist/components/Chart.vue.d.ts.map +1 -1
- package/dist/components/Chart.vue.js +67 -66
- package/dist/components/Chart.vue.js.map +1 -1
- package/dist/components/ReorderForm.vue.d.ts.map +1 -1
- package/dist/components/ReorderForm.vue2.js +14 -13
- package/dist/components/ReorderForm.vue2.js.map +1 -1
- package/dist/constantsCommon.d.ts +1 -0
- package/dist/constantsCommon.d.ts.map +1 -1
- package/dist/constantsCommon.js +11 -10
- package/dist/constantsCommon.js.map +1 -1
- package/dist/dataBindAes.d.ts.map +1 -1
- package/dist/dataBindAes.js +13 -13
- package/dist/dataBindAes.js.map +1 -1
- package/dist/forms/AxesSettingsForm/BubbleAxesSettingsForm.vue.d.ts.map +1 -1
- package/dist/forms/AxesSettingsForm/BubbleAxesSettingsForm.vue.js +67 -59
- package/dist/forms/AxesSettingsForm/BubbleAxesSettingsForm.vue.js.map +1 -1
- package/dist/forms/AxesSettingsForm/DiscreteAxesSettingsForm.vue.d.ts.map +1 -1
- package/dist/forms/AxesSettingsForm/DiscreteAxesSettingsForm.vue.js +92 -84
- package/dist/forms/AxesSettingsForm/DiscreteAxesSettingsForm.vue.js.map +1 -1
- package/dist/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue.d.ts.map +1 -1
- package/dist/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue.js +73 -65
- package/dist/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue.js.map +1 -1
- package/dist/forms/AxesSettingsForm/HistogramAxesSettingsForm.vue.d.ts.map +1 -1
- package/dist/forms/AxesSettingsForm/HistogramAxesSettingsForm.vue.js +81 -73
- package/dist/forms/AxesSettingsForm/HistogramAxesSettingsForm.vue.js.map +1 -1
- package/dist/forms/AxesSettingsForm/ScatterplotAxesSettingsForm.vue.d.ts.map +1 -1
- package/dist/forms/AxesSettingsForm/ScatterplotAxesSettingsForm.vue.js +196 -182
- package/dist/forms/AxesSettingsForm/ScatterplotAxesSettingsForm.vue.js.map +1 -1
- package/dist/forms/LayersForm/AesSelector.vue.d.ts.map +1 -1
- package/dist/forms/LayersForm/AesSelector.vue.js +52 -52
- package/dist/forms/LayersForm/AesSelector.vue.js.map +1 -1
- package/dist/index.vue.d.ts.map +1 -1
- package/dist/index.vue.js +168 -158
- package/dist/index.vue.js.map +1 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +38 -37
- package/dist/store.js.map +1 -1
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeBubbleSettings.d.ts +8 -0
- package/dist/utils/createChartSettingsForRender/composeBubbleSettings.d.ts.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeBubbleSettings.js +24 -22
- package/dist/utils/createChartSettingsForRender/composeBubbleSettings.js.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeDendroSettings.d.ts +15 -0
- package/dist/utils/createChartSettingsForRender/composeDendroSettings.d.ts.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeDiscreteSettings.d.ts +19 -0
- package/dist/utils/createChartSettingsForRender/composeDiscreteSettings.d.ts.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeDiscreteSettings.js +34 -30
- package/dist/utils/createChartSettingsForRender/composeDiscreteSettings.js.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeHeatmapSettings.d.ts +21 -0
- package/dist/utils/createChartSettingsForRender/composeHeatmapSettings.d.ts.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeHeatmapSettings.js +24 -22
- package/dist/utils/createChartSettingsForRender/composeHeatmapSettings.js.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeHistogramSettings.d.ts +4 -0
- package/dist/utils/createChartSettingsForRender/composeHistogramSettings.d.ts.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeHistogramSettings.js +24 -22
- package/dist/utils/createChartSettingsForRender/composeHistogramSettings.js.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeScatterplotSettings.d.ts +18 -0
- package/dist/utils/createChartSettingsForRender/composeScatterplotSettings.d.ts.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeScatterplotSettings.js +77 -72
- package/dist/utils/createChartSettingsForRender/composeScatterplotSettings.js.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeScatterplotUmapSettings.d.ts +12 -0
- package/dist/utils/createChartSettingsForRender/composeScatterplotUmapSettings.d.ts.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeScatterplotUmapSettings.js +40 -35
- package/dist/utils/createChartSettingsForRender/composeScatterplotUmapSettings.js.map +1 -1
- package/package.json +3 -3
package/dist/index.vue.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as
|
|
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
|
|
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
|
|
7
|
-
import
|
|
8
|
-
import
|
|
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
|
|
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
|
|
14
|
-
import { copyJSON as
|
|
15
|
-
import
|
|
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
|
|
18
|
-
const
|
|
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__ */
|
|
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__ */
|
|
42
|
-
setup(
|
|
43
|
-
const l =
|
|
44
|
-
|
|
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:
|
|
49
|
+
reset: Q
|
|
50
50
|
});
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
var
|
|
51
|
+
const k = p(null);
|
|
52
|
+
s(() => o.pFrame, (e) => {
|
|
53
|
+
var n;
|
|
54
54
|
if (!e.ok || !e.value) {
|
|
55
|
-
|
|
55
|
+
k.value = null;
|
|
56
56
|
return;
|
|
57
57
|
}
|
|
58
|
-
const a = "platforma" in window ? (
|
|
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
|
-
|
|
61
|
+
k.value = new he(
|
|
62
62
|
e.value,
|
|
63
63
|
a,
|
|
64
|
-
|
|
64
|
+
o.labelsModifier
|
|
65
65
|
);
|
|
66
66
|
}, { immediate: !0, deep: !0 });
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
(e && a && JSON.stringify(e) !== JSON.stringify(a) || e && !a || a && !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
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
const x = p(o.defaultOptions);
|
|
72
|
+
s(() => o.defaultOptions, (e) => {
|
|
73
|
+
x.value = e;
|
|
74
74
|
}, { deep: !0 });
|
|
75
|
-
const t =
|
|
75
|
+
const t = ke(
|
|
76
76
|
u(l.value),
|
|
77
|
-
w,
|
|
78
|
-
n.chartType,
|
|
79
77
|
k,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
78
|
+
o.chartType,
|
|
79
|
+
x,
|
|
80
|
+
H,
|
|
81
|
+
o.dataColumnPredicate,
|
|
82
|
+
o.metaColumnPredicate,
|
|
83
|
+
o.readonlyInputs,
|
|
84
|
+
o.defaultPalette
|
|
85
85
|
);
|
|
86
|
-
function
|
|
87
|
-
const e =
|
|
86
|
+
function Q() {
|
|
87
|
+
const e = xe(
|
|
88
88
|
u(l.value),
|
|
89
|
-
|
|
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
|
-
}),
|
|
97
|
+
}), x.value = o.defaultOptions;
|
|
98
98
|
}
|
|
99
|
-
const
|
|
100
|
-
() =>
|
|
101
|
-
),
|
|
102
|
-
() => t.value.loading.initialInputGuide &&
|
|
103
|
-
),
|
|
104
|
-
var
|
|
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 (
|
|
107
|
+
if (o.pFrame.ok && o.pFrame.stable && !o.pFrame.value)
|
|
108
108
|
return "noPframe";
|
|
109
|
-
if (!
|
|
109
|
+
if (!o.pFrame.ok)
|
|
110
110
|
return "noPframeWithError";
|
|
111
|
-
const a = t.value.inputGuide.value,
|
|
112
|
-
return a.consistent ? a.ready ?
|
|
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
|
|
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
|
-
|
|
119
|
-
|
|
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
|
|
130
|
+
var w, C;
|
|
123
131
|
l.value = {
|
|
124
132
|
...l.value,
|
|
125
133
|
selectedPolygons: a
|
|
126
134
|
};
|
|
127
|
-
const
|
|
128
|
-
if (e.length === 0 || !
|
|
129
|
-
|
|
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
|
|
133
|
-
|
|
134
|
-
axesSpec:
|
|
135
|
-
selectedKeys: e.map((
|
|
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
|
|
142
|
-
function
|
|
143
|
-
e ?
|
|
149
|
+
let I = null;
|
|
150
|
+
function _(e) {
|
|
151
|
+
e ? I = setTimeout(() => {
|
|
144
152
|
t.value.loading.chartRendering = !0;
|
|
145
|
-
}, 1e3) : (
|
|
153
|
+
}, 1e3) : (I && clearTimeout(I), t.value.loading.chartRendering = !1);
|
|
146
154
|
}
|
|
147
155
|
const j = p(!1);
|
|
148
|
-
function
|
|
156
|
+
function ee(e) {
|
|
149
157
|
j.value = e;
|
|
150
158
|
}
|
|
151
|
-
const
|
|
152
|
-
dendro: [
|
|
159
|
+
const te = {
|
|
160
|
+
dendro: [Y],
|
|
153
161
|
"scatterplot-umap": {
|
|
154
162
|
onPolygonUpdate: U,
|
|
155
|
-
onTooltipHintSwitch:
|
|
163
|
+
onTooltipHintSwitch: S,
|
|
156
164
|
onLassoControlsStateUpdate: V,
|
|
157
|
-
onZoomChange:
|
|
165
|
+
onZoomChange: ee
|
|
158
166
|
},
|
|
159
|
-
discrete: [
|
|
167
|
+
discrete: [S],
|
|
160
168
|
scatterplot: {
|
|
161
169
|
onPolygonUpdate: U,
|
|
162
|
-
onTooltipHintSwitch:
|
|
170
|
+
onTooltipHintSwitch: S,
|
|
163
171
|
onLassoControlsStateUpdate: V
|
|
164
172
|
},
|
|
165
|
-
histogram: [
|
|
166
|
-
heatmap: { onTooltipHintSwitch:
|
|
167
|
-
bubble: [
|
|
173
|
+
histogram: [S],
|
|
174
|
+
heatmap: { onTooltipHintSwitch: S, onLoadingChange: _ },
|
|
175
|
+
bubble: [S]
|
|
168
176
|
};
|
|
169
|
-
function
|
|
170
|
-
var a,
|
|
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 (
|
|
173
|
-
|
|
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 && (
|
|
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 = (
|
|
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
|
-
(
|
|
188
|
+
(w = i.value) == null || w.unmount(), i.value = null, h.value = null;
|
|
181
189
|
}
|
|
182
|
-
|
|
190
|
+
s(() => F.value, (e) => {
|
|
183
191
|
var a;
|
|
184
|
-
(e === "notReady" || e === "noPframe" ||
|
|
192
|
+
(e === "notReady" || e === "noPframe" || k.value === null) && ((a = i.value) == null || a.unmount(), i.value = null);
|
|
185
193
|
});
|
|
186
|
-
const
|
|
187
|
-
|
|
194
|
+
const G = J(null);
|
|
195
|
+
s([
|
|
188
196
|
() => t.value.chartData.value
|
|
189
197
|
], ([e]) => {
|
|
190
|
-
|
|
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
|
-
}),
|
|
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
|
-
|
|
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 }),
|
|
215
|
-
|
|
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 =
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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,
|
|
263
|
+
], ([e, a, n]) => {
|
|
256
264
|
l.value = {
|
|
257
265
|
...l.value,
|
|
258
266
|
zoomState: e,
|
|
259
267
|
template: a,
|
|
260
|
-
currentTab:
|
|
268
|
+
currentTab: n
|
|
261
269
|
};
|
|
262
|
-
}, { debounce: 1e3 }),
|
|
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
|
-
}),
|
|
265
|
-
var e, a,
|
|
266
|
-
return (
|
|
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
|
|
280
|
+
function ae() {
|
|
271
281
|
var e;
|
|
272
|
-
|
|
282
|
+
Oe(
|
|
273
283
|
new Blob([
|
|
274
|
-
((e =
|
|
284
|
+
((e = i.value) == null ? void 0 : e.export()) ?? ""
|
|
275
285
|
]),
|
|
276
286
|
"chart.svg"
|
|
277
287
|
);
|
|
278
288
|
}
|
|
279
|
-
function
|
|
289
|
+
function le(e) {
|
|
280
290
|
l.value = {
|
|
281
291
|
...l.value,
|
|
282
292
|
title: e
|
|
283
293
|
};
|
|
284
294
|
}
|
|
285
|
-
function
|
|
295
|
+
function oe(e) {
|
|
286
296
|
var a;
|
|
287
|
-
t.value.reactive.dendroSelectedNodeId = e, (a =
|
|
297
|
+
t.value.reactive.dendroSelectedNodeId = e, (a = i.value) == null || a.updateChartState("selectedNode", e);
|
|
288
298
|
}
|
|
289
|
-
const
|
|
299
|
+
const L = de(), ne = f(() => !!L.annotationsSlot), ie = f(() => !!L.settingsSlot), ue = f(() => !!L.logSlot);
|
|
290
300
|
return (e, a) => {
|
|
291
|
-
var
|
|
292
|
-
return D(),
|
|
293
|
-
|
|
294
|
-
N(
|
|
295
|
-
"graph-status":
|
|
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":
|
|
299
|
-
"error-info":
|
|
300
|
-
dendroTooltipButton:
|
|
301
|
-
"custom-status-text":
|
|
302
|
-
"allow-title-editing":
|
|
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:
|
|
305
|
-
onDendroNodeSelect:
|
|
306
|
-
onDendroTooltipBtnClick: a[0] || (a[0] = (
|
|
314
|
+
onGraphTitleUpdate: le,
|
|
315
|
+
onDendroNodeSelect: oe,
|
|
316
|
+
onDendroTooltipBtnClick: a[0] || (a[0] = (r) => e.$emit("tooltip-btn-click", r))
|
|
307
317
|
}, {
|
|
308
|
-
default:
|
|
309
|
-
|
|
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
|
-
|
|
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:
|
|
321
|
-
}, null, 8, ["graphStatus", "customStatusText"])) :
|
|
330
|
+
customStatusText: v.statusText
|
|
331
|
+
}, null, 8, ["graphStatus", "customStatusText"])) : y("", !0),
|
|
322
332
|
N(be, { id: "graph-settings-modal" }, {
|
|
323
|
-
default:
|
|
324
|
-
|
|
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] = (
|
|
336
|
+
onClose: a[1] || (a[1] = (r) => c(t).reactive.currentTab = null)
|
|
327
337
|
}, {
|
|
328
|
-
default:
|
|
329
|
-
(D(),
|
|
330
|
-
default:
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
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
|
-
})) :
|
|
349
|
+
})) : y("", !0)
|
|
340
350
|
]),
|
|
341
351
|
_: 3
|
|
342
352
|
})
|
|
343
353
|
]),
|
|
344
|
-
N(
|
|
345
|
-
modelValue:
|
|
346
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
347
|
-
"chart-type":
|
|
348
|
-
"graph-status":
|
|
349
|
-
allowDeleting:
|
|
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:
|
|
352
|
-
hasLogSlot:
|
|
353
|
-
initialLoading:
|
|
354
|
-
onExport:
|
|
355
|
-
onDelete: a[3] || (a[3] = (
|
|
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
|
-
((
|
|
367
|
+
((n = h.value) == null ? void 0 : n.type) === "unknownError" ? (D(), O(we, {
|
|
358
368
|
key: 0,
|
|
359
|
-
errorInfo:
|
|
360
|
-
}, null, 8, ["errorInfo"])) :
|
|
369
|
+
errorInfo: h.value
|
|
370
|
+
}, null, 8, ["errorInfo"])) : y("", !0)
|
|
361
371
|
]);
|
|
362
372
|
};
|
|
363
373
|
}
|
|
364
374
|
});
|
|
365
375
|
export {
|
|
366
|
-
|
|
376
|
+
ze as default
|
|
367
377
|
};
|
|
368
378
|
//# sourceMappingURL=index.vue.js.map
|