@milaboratories/graph-maker 1.1.215 → 1.1.217
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/types.d.ts +1 -1
- package/dist/components/AesSettings/types.d.ts.map +1 -1
- package/dist/constantsAesthetic.d.ts.map +1 -1
- package/dist/constantsAesthetic.js +48 -46
- package/dist/constantsAesthetic.js.map +1 -1
- package/dist/index.vue.js +41 -41
- package/dist/index.vue.js.map +1 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +54 -56
- package/dist/store.js.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeScatterplotSettings.d.ts.map +1 -1
- package/dist/utils/createChartSettingsForRender/composeScatterplotSettings.js +43 -45
- package/dist/utils/createChartSettingsForRender/composeScatterplotSettings.js.map +1 -1
- package/dist/utils/loadUniqueValuesToSave.js +3 -3
- package/dist/utils/loadUniqueValuesToSave.js.map +1 -1
- package/package.json +2 -2
|
@@ -5,7 +5,7 @@ export type PaletteInfo = {
|
|
|
5
5
|
title: string;
|
|
6
6
|
colors: PaletteData;
|
|
7
7
|
};
|
|
8
|
-
export type CategoricalPalette = 'light' | 'bright' | 'dark' | 'paired' | 'triadic';
|
|
8
|
+
export type CategoricalPalette = 'light' | 'bright' | 'dark' | 'paired' | 'triadic' | 'magnetic';
|
|
9
9
|
export type SequentialPalette = 'viridis' | 'magma' | 'density' | 'salinity' | 'sunset' | 'perceptual_rainbow';
|
|
10
10
|
export type DivergingPalette = 'spectrum' | 'teal_red' | 'blue_red' | 'lime_rose' | 'viridis_magma';
|
|
11
11
|
export type ContinuousPalette = SequentialPalette | DivergingPalette;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/AesSettings/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAEjG,MAAM,MAAM,WAAW,GAAG,MAAM,EAAE,CAAC;AACnC,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,WAAW,CAAC;CACrB,CAAC;AACF,MAAM,MAAM,kBAAkB,GAC1B,OAAO,GACP,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/AesSettings/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAEjG,MAAM,MAAM,WAAW,GAAG,MAAM,EAAE,CAAC;AACnC,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,WAAW,CAAC;CACrB,CAAC;AACF,MAAM,MAAM,kBAAkB,GAC1B,OAAO,GACP,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,SAAS,GACT,UAAU,CAAC;AACf,MAAM,MAAM,iBAAiB,GACzB,SAAS,GACT,OAAO,GACP,SAAS,GACT,UAAU,GACV,QAAQ,GACR,oBAAoB,CAAC;AACzB,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,UAAU,GACV,UAAU,GACV,WAAW,GACX,eAAe,CAAC;AACpB,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,GAAG,gBAAgB,CAAC;AACrE,MAAM,MAAM,OAAO,GAAG,kBAAkB,GAAG,iBAAiB,CAAC;AAE7D,MAAM,MAAM,2BAA2B,GAAG;IACxC,IAAI,EAAE,iBAAiB,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,2BAA2B,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,E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sourceRoot":"","sources":["../src/constantsAesthetic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAAE,iBAAiB,EACrC,gBAAgB,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAClD,OAAO,EACP,WAAW,EACX,iBAAiB,EAClB,MAAM,gCAAgC,CAAC;AAExC,eAAO,MAAM,YAAY,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EA+BzD,CAAC;AAEF,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,aAAa,YAAY,CAAC;AAEvC,eAAO,MAAM,gBAAgB;UACE,MAAM;WAAS,MAAM;EAKnD,CAAC;
|
|
1
|
+
{"version":3,"file":"constantsAesthetic.d.ts","sourceRoot":"","sources":["../src/constantsAesthetic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAAE,iBAAiB,EACrC,gBAAgB,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAClD,OAAO,EACP,WAAW,EACX,iBAAiB,EAClB,MAAM,gCAAgC,CAAC;AAExC,eAAO,MAAM,YAAY,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EA+BzD,CAAC;AAEF,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,aAAa,YAAY,CAAC;AAEvC,eAAO,MAAM,gBAAgB;UACE,MAAM;WAAS,MAAM;EAKnD,CAAC;AAiCF,eAAO,MAAM,gBAAgB,EAAE,kBAAkB,EAOhD,CAAC;AACF,eAAO,MAAM,eAAe,EAAE,iBAAiB,EAO9C,CAAC;AACF,eAAO,MAAM,cAAc,EAAE,gBAAgB,EAM5C,CAAC;AAEF,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,kBAAkB,CAEzE;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,iBAAiB,CAEvE;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,gBAAgB,CAErE;AAED,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,kBAAkB,EAAE,WAAW,CAOnE,CAAC;AACF,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,iBAAiB,EAAE,WAAW,CAOjE,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,gBAAgB,EAAE,WAAW,CAM/D,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,OAAO,EAAE,WAAW,CAIpD,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,kBAA4B,CAAC;AACvE,eAAO,MAAM,0BAA0B,EAAE,iBAA8B,CAAC;AACxE,eAAO,MAAM,gBAAgB,EAAE,QAAQ,EAKtC,CAAC;AAEF,eAAO,MAAM,aAAa,YAAY,CAAC;AAEvC,eAAO,MAAM,iBAAiB,OAAO,CAAC;AAEtC,eAAO,MAAM,gBAAgB,EAAE,QAAQ,EAAoE,CAAC;AAE5G,eAAO,MAAM,iBAAiB,EAAE,QAAkB,CAAC;AACnD,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,QAAQ,EAAE,YAAY,CAOzD,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;CAMpC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;CAwBnC,CAAC"}
|
|
@@ -29,12 +29,12 @@ const l = [
|
|
|
29
29
|
{ name: "Black", color: "#110529" },
|
|
30
30
|
{ name: "White", color: "#FFFFFF" },
|
|
31
31
|
{ name: "None", color: "transparent" }
|
|
32
|
-
],
|
|
32
|
+
], h = "#FFFFFF", O = "#110529";
|
|
33
33
|
l.reduce(
|
|
34
34
|
(o, e) => (o[e.color] = e, o),
|
|
35
35
|
{}
|
|
36
36
|
);
|
|
37
|
-
const t = l.slice(0, -3).map((o) => o.color), r = t.filter((o, e) => e % 3 === 0),
|
|
37
|
+
const t = l.slice(0, -3).map((o) => o.color), r = t.filter((o, e) => e % 3 === 0), c = t.filter((o, e) => e % 3 === 1), a = t.filter((o, e) => e % 3 === 2), i = t.filter((o, e) => e % 3 !== 2), n = t, s = ["#4bbecf", "#db5197", "#c8d400", "#ffdd00", "#4a96d2", "#f7a600", "#00a9cb"], F = ["#FFF680", "#53D788", "#36739D", "#4A005C"], A = ["#FFF680", "#F77E5B", "#902B83", "#2B125C"], E = ["#DFFADC", "#74CFD1", "#635AC1", "#611347"], C = ["#FAFAB4", "#8DDA7F", "#337E90", "#1C0F5C"], d = ["#FFEA80", "#F07A76", "#7535A4", "#003752"], D = ["#FFF780", "#6CEA90", "#6C90F0", "#942AAE"], _ = ["#43317B", "#7ACFAC", "#F5F5B7", "#F07B75", "#5C1243"], L = ["#122B5C", "#41B5A8", "#F0F0F0", "#F07C80", "#5C1243"], m = ["#0E0E8F", "#7E93FB", "#F0F0F0", "#ED7883", "#5C1243"], T = ["#2E5C00", "#9ED26A", "#F0F0F0", "#EB8BDB", "#701260"], I = [
|
|
38
38
|
"#4A005C",
|
|
39
39
|
"#36749D",
|
|
40
40
|
"#56D688",
|
|
@@ -42,53 +42,55 @@ const t = l.slice(0, -3).map((o) => o.color), r = t.filter((o, e) => e % 3 === 0
|
|
|
42
42
|
"#F77E5E",
|
|
43
43
|
"#902B82",
|
|
44
44
|
"#2B125C"
|
|
45
|
-
],
|
|
45
|
+
], f = [
|
|
46
46
|
"light",
|
|
47
47
|
"bright",
|
|
48
48
|
"dark",
|
|
49
49
|
"paired",
|
|
50
|
-
"triadic"
|
|
51
|
-
|
|
50
|
+
"triadic",
|
|
51
|
+
"magnetic"
|
|
52
|
+
], S = [
|
|
52
53
|
"viridis",
|
|
53
54
|
"magma",
|
|
54
55
|
"density",
|
|
55
56
|
"salinity",
|
|
56
57
|
"sunset",
|
|
57
58
|
"perceptual_rainbow"
|
|
58
|
-
],
|
|
59
|
+
], G = [
|
|
59
60
|
"spectrum",
|
|
60
61
|
"teal_red",
|
|
61
62
|
"blue_red",
|
|
62
63
|
"lime_rose",
|
|
63
64
|
"viridis_magma"
|
|
64
65
|
];
|
|
65
|
-
function
|
|
66
|
-
return
|
|
66
|
+
function N(o) {
|
|
67
|
+
return f.includes(o);
|
|
67
68
|
}
|
|
68
|
-
const
|
|
69
|
+
const g = {
|
|
69
70
|
light: { title: "Light", colors: r },
|
|
70
|
-
bright: { title: "Bright", colors:
|
|
71
|
-
dark: { title: "Dark", colors:
|
|
71
|
+
bright: { title: "Bright", colors: c },
|
|
72
|
+
dark: { title: "Dark", colors: a },
|
|
72
73
|
paired: { title: "Paired", colors: i },
|
|
73
|
-
triadic: { title: "Triadic", colors: n }
|
|
74
|
+
triadic: { title: "Triadic", colors: n },
|
|
75
|
+
magnetic: { title: "Magnetic", colors: s }
|
|
74
76
|
}, R = {
|
|
75
|
-
viridis: { title: "Viridis", colors:
|
|
76
|
-
magma: { title: "Magma", colors:
|
|
77
|
-
density: { title: "Density", colors:
|
|
78
|
-
salinity: { title: "Salinity", colors:
|
|
79
|
-
sunset: { title: "Sunset", colors:
|
|
77
|
+
viridis: { title: "Viridis", colors: F },
|
|
78
|
+
magma: { title: "Magma", colors: A },
|
|
79
|
+
density: { title: "Density", colors: E },
|
|
80
|
+
salinity: { title: "Salinity", colors: C },
|
|
81
|
+
sunset: { title: "Sunset", colors: d },
|
|
80
82
|
perceptual_rainbow: { title: "Rainbow", colors: D }
|
|
81
|
-
},
|
|
83
|
+
}, B = {
|
|
82
84
|
spectrum: { title: "Spectrum", colors: _ },
|
|
83
85
|
teal_red: { title: "Teal-Red", colors: L },
|
|
84
|
-
blue_red: { title: "Blue-Red", colors:
|
|
85
|
-
lime_rose: { title: "Lime-Rose", colors:
|
|
86
|
-
viridis_magma: { title: "Vir-Mag", colors:
|
|
87
|
-
},
|
|
88
|
-
...
|
|
86
|
+
blue_red: { title: "Blue-Red", colors: m },
|
|
87
|
+
lime_rose: { title: "Lime-Rose", colors: T },
|
|
88
|
+
viridis_magma: { title: "Vir-Mag", colors: I }
|
|
89
|
+
}, P = {
|
|
90
|
+
...g,
|
|
89
91
|
...R,
|
|
90
|
-
...
|
|
91
|
-
},
|
|
92
|
+
...B
|
|
93
|
+
}, u = "light", M = "salinity", U = [
|
|
92
94
|
"0",
|
|
93
95
|
"5",
|
|
94
96
|
"1",
|
|
@@ -109,20 +111,20 @@ const f = {
|
|
|
109
111
|
"21",
|
|
110
112
|
"24",
|
|
111
113
|
"25"
|
|
112
|
-
],
|
|
114
|
+
], b = "#F0F0F0", k = "21", p = ["solid", "dashed", "dotted", "dotdash", "longdash", "twodash"], y = "solid", V = {
|
|
113
115
|
solid: { title: "Solid" },
|
|
114
116
|
dashed: { title: "Dashed" },
|
|
115
117
|
dotted: { title: "Dotted" },
|
|
116
118
|
dotdash: { title: "Dotdash" },
|
|
117
119
|
longdash: { title: "Longdash" },
|
|
118
120
|
twodash: { title: "Twodash" }
|
|
119
|
-
},
|
|
121
|
+
}, v = {
|
|
120
122
|
A: "#cc0100",
|
|
121
123
|
C: "#0000cc",
|
|
122
124
|
G: "#ffb300",
|
|
123
125
|
T: "#027f00",
|
|
124
126
|
U: "#027f00"
|
|
125
|
-
},
|
|
127
|
+
}, w = {
|
|
126
128
|
A: "#7fa0f0",
|
|
127
129
|
R: "#ef1405",
|
|
128
130
|
N: "#01ff00",
|
|
@@ -148,26 +150,26 @@ const f = {
|
|
|
148
150
|
Z: "#eeeeee"
|
|
149
151
|
};
|
|
150
152
|
export {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
153
|
+
w as AMINOACID_COLOR_MAPPING,
|
|
154
|
+
f as CATEGORICAL_LIST,
|
|
155
|
+
g as CATEGORICAL_MAP,
|
|
156
|
+
O as DEFAULT_BLACK,
|
|
157
|
+
u as DEFAULT_CATEGORICAL_PALETTE,
|
|
158
|
+
M as DEFAULT_CONTINUOUS_PALETTE,
|
|
157
159
|
k as DEFAULT_DOT_SHAPE,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
160
|
+
y as DEFAULT_LINE_TYPE,
|
|
161
|
+
h as DEFAULT_WHITE,
|
|
162
|
+
G as DIVERGING_LIST,
|
|
163
|
+
B as DIVERGING_MAP,
|
|
162
164
|
l as FIXED_COLORS,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
165
|
+
p as FIXED_LINE_TYPES,
|
|
166
|
+
U as FIXES_DOT_SHAPES,
|
|
167
|
+
V as LINE_TYPES_MAP,
|
|
168
|
+
v as NUCLEOTIDE_COLOR_MAPPING,
|
|
169
|
+
P as PALETTE_MAP,
|
|
170
|
+
S as SEQUENTIAL_LIST,
|
|
169
171
|
R as SEQUENTIAL_MAP,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
+
b as UNKNOWN_COLOR,
|
|
173
|
+
N as isCategorical
|
|
172
174
|
};
|
|
173
175
|
//# sourceMappingURL=constantsAesthetic.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constantsAesthetic.js","sources":["../src/constantsAesthetic.ts"],"sourcesContent":["import type {\n CategoricalPalette, ContinuousPalette,\n DivergingPalette, DotShape, LineType, LineTypeInfo,\n Palette,\n PaletteInfo,\n SequentialPalette,\n} from './components/AesSettings/types';\n\nexport const FIXED_COLORS: { name: string; color: string }[] = [\n { name: 'Light green', color: '#99E099' },\n { name: 'Green', color: '#42B842' },\n { name: 'Dark green', color: '#198020' },\n { name: 'Light violet', color: '#C1ADFF' },\n { name: 'Violet', color: '#845CFF' },\n { name: 'Dark violet', color: '#5F31CC' },\n { name: 'Light orange', color: '#FFCB8F' },\n { name: 'Orange', color: '#FF9429' },\n { name: 'Dark orange', color: '#C26A27' },\n { name: 'Light teal', color: '#90E0E0' },\n { name: 'Teal', color: '#27C2C2' },\n { name: 'Dark teal', color: '#068A94' },\n { name: 'Light rose', color: '#FAAAFA' },\n { name: 'Rose', color: '#E553E5' },\n { name: 'Dark rose', color: '#A324B2' },\n { name: 'Light lime', color: '#CBEB67' },\n { name: 'Lime', color: '#95C700' },\n { name: 'Dark lime', color: '#659406' },\n { name: 'Light blue', color: '#99CCFF' },\n { name: 'Blue', color: '#2D93FA' },\n { name: 'Dark blue', color: '#105BCC' },\n { name: 'Light red', color: '#FFADBA' },\n { name: 'Red', color: '#F05670' },\n { name: 'Dark red', color: '#AD3757' },\n { name: 'Light grey', color: '#D3D7E0' },\n { name: 'Grey', color: '#929BAD' },\n { name: 'Dark grey', color: '#5E5E70' },\n { name: 'Black', color: '#110529' },\n { name: 'White', color: '#FFFFFF' },\n { name: 'None', color: 'transparent' },\n];\n\nexport const DEFAULT_WHITE = '#FFFFFF';\nexport const DEFAULT_BLACK = '#110529';\n\nexport const FIXED_COLORS_MAP = FIXED_COLORS.reduce(\n (res: Record<string, { name: string; color: string }>, item) => {\n res[item.color] = item;\n return res;\n },\n {},\n);\n\n// fixed colors without black, white, transparent - base for categorical palettes\nconst COLORS = FIXED_COLORS.slice(0, -3).map((el) => el.color);\n\nconst CATEGORICAL_LIGHT = COLORS.filter((_el, idx) => idx % 3 === 0);\nconst CATEGORICAL_BRIGHT = COLORS.filter((_el, idx) => idx % 3 === 1);\nconst CATEGORICAL_DARK = COLORS.filter((_el, idx) => idx % 3 === 2);\nconst CATEGORICAL_PAIRED = COLORS.filter((_el, idx) => idx % 3 !== 2);\nconst CATEGORICAL_TRIADIC = COLORS;\n\nconst VIRIDIS = ['#FFF680', '#53D788', '#36739D', '#4A005C'];\nconst MAGMA = ['#FFF680', '#F77E5B', '#902B83', '#2B125C'];\nconst DENSITY = ['#DFFADC', '#74CFD1', '#635AC1', '#611347'];\nconst SALINITY = ['#FAFAB4', '#8DDA7F', '#337E90', '#1C0F5C'];\nconst SUNSET = ['#FFEA80', '#F07A76', '#7535A4', '#003752'];\nconst PERCEPTUAL_RAINBOW = ['#FFF780', '#6CEA90', '#6C90F0', '#942AAE'];\n\nconst SPECTRUM = ['#43317B', '#7ACFAC', '#F5F5B7', '#F07B75', '#5C1243'];\nconst TEAL_RED = ['#122B5C', '#41B5A8', '#F0F0F0', '#F07C80', '#5C1243'];\nconst BLUE_RED = ['#0E0E8F', '#7E93FB', '#F0F0F0', '#ED7883', '#5C1243'];\nconst LIME_ROSE = ['#2E5C00', '#9ED26A', '#F0F0F0', '#EB8BDB', '#701260'];\nconst VIRIDIS_MAGMA = [\n '#4A005C',\n '#36749D',\n '#56D688',\n '#FFF680',\n '#F77E5E',\n '#902B82',\n '#2B125C',\n];\n\nexport const CATEGORICAL_LIST: CategoricalPalette[] = [\n 'light',\n 'bright',\n 'dark',\n 'paired',\n 'triadic',\n];\nexport const SEQUENTIAL_LIST: SequentialPalette[] = [\n 'viridis',\n 'magma',\n 'density',\n 'salinity',\n 'sunset',\n 'perceptual_rainbow',\n];\nexport const DIVERGING_LIST: DivergingPalette[] = [\n 'spectrum',\n 'teal_red',\n 'blue_red',\n 'lime_rose',\n 'viridis_magma',\n];\n\nexport function isCategorical(value: Palette): value is CategoricalPalette {\n return CATEGORICAL_LIST.includes(value as CategoricalPalette);\n}\n\nexport function isSequential(value: Palette): value is SequentialPalette {\n return SEQUENTIAL_LIST.includes(value as SequentialPalette);\n}\n\nexport function isDiverging(value: Palette): value is DivergingPalette {\n return DIVERGING_LIST.includes(value as DivergingPalette);\n}\n\nexport const CATEGORICAL_MAP: Record<CategoricalPalette, PaletteInfo> = {\n light: { title: 'Light', colors: CATEGORICAL_LIGHT },\n bright: { title: 'Bright', colors: CATEGORICAL_BRIGHT },\n dark: { title: 'Dark', colors: CATEGORICAL_DARK },\n paired: { title: 'Paired', colors: CATEGORICAL_PAIRED },\n triadic: { title: 'Triadic', colors: CATEGORICAL_TRIADIC },\n};\nexport const SEQUENTIAL_MAP: Record<SequentialPalette, PaletteInfo> = {\n viridis: { title: 'Viridis', colors: VIRIDIS },\n magma: { title: 'Magma', colors: MAGMA },\n density: { title: 'Density', colors: DENSITY },\n salinity: { title: 'Salinity', colors: SALINITY },\n sunset: { title: 'Sunset', colors: SUNSET },\n perceptual_rainbow: { title: 'Rainbow', colors: PERCEPTUAL_RAINBOW },\n};\n\nexport const DIVERGING_MAP: Record<DivergingPalette, PaletteInfo> = {\n spectrum: { title: 'Spectrum', colors: SPECTRUM },\n teal_red: { title: 'Teal-Red', colors: TEAL_RED },\n blue_red: { title: 'Blue-Red', colors: BLUE_RED },\n lime_rose: { title: 'Lime-Rose', colors: LIME_ROSE },\n viridis_magma: { title: 'Vir-Mag', colors: VIRIDIS_MAGMA },\n};\n\nexport const PALETTE_MAP: Record<Palette, PaletteInfo> = {\n ...CATEGORICAL_MAP,\n ...SEQUENTIAL_MAP,\n ...DIVERGING_MAP,\n};\n\nexport const DEFAULT_CATEGORICAL_PALETTE: CategoricalPalette = 'light';\nexport const DEFAULT_CONTINUOUS_PALETTE: ContinuousPalette = 'salinity';\nexport const FIXES_DOT_SHAPES: DotShape[] = [\n '0', '5', '1', '2', '6',\n '7', '9', '3', '4', '8',\n '12', '10', '13', '14', '11',\n '22', '23', '21', '24', '25',\n];\n\nexport const UNKNOWN_COLOR = '#F0F0F0';\n\nexport const DEFAULT_DOT_SHAPE = '21'; // filled circle\n\nexport const FIXED_LINE_TYPES: LineType[] = ['solid', 'dashed', 'dotted', 'dotdash', 'longdash', 'twodash'];\n\nexport const DEFAULT_LINE_TYPE: LineType = 'solid';\nexport const LINE_TYPES_MAP: Record<LineType, LineTypeInfo> = {\n solid: { title: 'Solid' },\n dashed: { title: 'Dashed' },\n dotted: { title: 'Dotted' },\n dotdash: { title: 'Dotdash' },\n longdash: { title: 'Longdash' },\n twodash: { title: 'Twodash' },\n};\n\nexport const NUCLEOTIDE_COLOR_MAPPING = {\n A: '#cc0100',\n C: '#0000cc',\n G: '#ffb300',\n T: '#027f00',\n U: '#027f00',\n};\n\nexport const AMINOACID_COLOR_MAPPING = {\n A: '#7fa0f0',\n R: '#ef1405',\n N: '#01ff00',\n D: '#c048bf',\n C: '#ef8080',\n Q: '#01ff00',\n E: '#c048bf',\n G: '#f09047',\n H: '#14a4a4',\n I: '#7fa0f0',\n L: '#7fa0f0',\n K: '#ef1405',\n M: '#7fa0f0',\n F: '#7fa0f0',\n P: '#ffff00',\n S: '#01ff00',\n T: '#01ff00',\n W: '#7fa0f0',\n Y: '#14a4a4',\n V: '#7fa0f0',\n B: '#eeeeee',\n X: '#eeeeee',\n Z: '#eeeeee',\n};\n"],"names":["FIXED_COLORS","DEFAULT_WHITE","DEFAULT_BLACK","res","item","COLORS","el","CATEGORICAL_LIGHT","_el","idx","CATEGORICAL_BRIGHT","CATEGORICAL_DARK","CATEGORICAL_PAIRED","CATEGORICAL_TRIADIC","VIRIDIS","MAGMA","DENSITY","SALINITY","SUNSET","PERCEPTUAL_RAINBOW","SPECTRUM","TEAL_RED","BLUE_RED","LIME_ROSE","VIRIDIS_MAGMA","CATEGORICAL_LIST","SEQUENTIAL_LIST","DIVERGING_LIST","isCategorical","value","CATEGORICAL_MAP","SEQUENTIAL_MAP","DIVERGING_MAP","PALETTE_MAP","DEFAULT_CATEGORICAL_PALETTE","DEFAULT_CONTINUOUS_PALETTE","FIXES_DOT_SHAPES","UNKNOWN_COLOR","DEFAULT_DOT_SHAPE","FIXED_LINE_TYPES","DEFAULT_LINE_TYPE","LINE_TYPES_MAP","NUCLEOTIDE_COLOR_MAPPING","AMINOACID_COLOR_MAPPING"],"mappings":"AAQO,MAAMA,IAAkD;AAAA,EAC7D,EAAE,MAAM,eAAe,OAAO,UAAA;AAAA,EAC9B,EAAE,MAAM,SAAS,OAAO,UAAA;AAAA,EACxB,EAAE,MAAM,cAAc,OAAO,UAAA;AAAA,EAC7B,EAAE,MAAM,gBAAgB,OAAO,UAAA;AAAA,EAC/B,EAAE,MAAM,UAAU,OAAO,UAAA;AAAA,EACzB,EAAE,MAAM,eAAe,OAAO,UAAA;AAAA,EAC9B,EAA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AAY,SAAS,GAE7FC,IAA8B,SAC9BC,IAAiD;AAAA,EAC5D,OAAO,EAAE,OAAO,QAAA;AAAA,EAChB,QAAQ,EAAE,OAAO,SAAA;AAAA,EACjB,QAAQ,EAAE,OAAO,SAAA;AAAA,EACjB,SAAS,EAAE,OAAO,UAAA;AAAA,EAClB,UAAU,EAAE,OAAO,WAAA;AAAA,EACnB,SAAS,EAAE,OAAO,UAAA;AACpB,GAEaC,IAA2B;AAAA,EACtC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL,GAEaC,IAA0B;AAAA,EACrC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;"}
|
|
1
|
+
{"version":3,"file":"constantsAesthetic.js","sources":["../src/constantsAesthetic.ts"],"sourcesContent":["import type {\n CategoricalPalette, ContinuousPalette,\n DivergingPalette, DotShape, LineType, LineTypeInfo,\n Palette,\n PaletteInfo,\n SequentialPalette,\n} from './components/AesSettings/types';\n\nexport const FIXED_COLORS: { name: string; color: string }[] = [\n { name: 'Light green', color: '#99E099' },\n { name: 'Green', color: '#42B842' },\n { name: 'Dark green', color: '#198020' },\n { name: 'Light violet', color: '#C1ADFF' },\n { name: 'Violet', color: '#845CFF' },\n { name: 'Dark violet', color: '#5F31CC' },\n { name: 'Light orange', color: '#FFCB8F' },\n { name: 'Orange', color: '#FF9429' },\n { name: 'Dark orange', color: '#C26A27' },\n { name: 'Light teal', color: '#90E0E0' },\n { name: 'Teal', color: '#27C2C2' },\n { name: 'Dark teal', color: '#068A94' },\n { name: 'Light rose', color: '#FAAAFA' },\n { name: 'Rose', color: '#E553E5' },\n { name: 'Dark rose', color: '#A324B2' },\n { name: 'Light lime', color: '#CBEB67' },\n { name: 'Lime', color: '#95C700' },\n { name: 'Dark lime', color: '#659406' },\n { name: 'Light blue', color: '#99CCFF' },\n { name: 'Blue', color: '#2D93FA' },\n { name: 'Dark blue', color: '#105BCC' },\n { name: 'Light red', color: '#FFADBA' },\n { name: 'Red', color: '#F05670' },\n { name: 'Dark red', color: '#AD3757' },\n { name: 'Light grey', color: '#D3D7E0' },\n { name: 'Grey', color: '#929BAD' },\n { name: 'Dark grey', color: '#5E5E70' },\n { name: 'Black', color: '#110529' },\n { name: 'White', color: '#FFFFFF' },\n { name: 'None', color: 'transparent' },\n];\n\nexport const DEFAULT_WHITE = '#FFFFFF';\nexport const DEFAULT_BLACK = '#110529';\n\nexport const FIXED_COLORS_MAP = FIXED_COLORS.reduce(\n (res: Record<string, { name: string; color: string }>, item) => {\n res[item.color] = item;\n return res;\n },\n {},\n);\n\n// fixed colors without black, white, transparent - base for categorical palettes\nconst COLORS = FIXED_COLORS.slice(0, -3).map((el) => el.color);\n\nconst CATEGORICAL_LIGHT = COLORS.filter((_el, idx) => idx % 3 === 0);\nconst CATEGORICAL_BRIGHT = COLORS.filter((_el, idx) => idx % 3 === 1);\nconst CATEGORICAL_DARK = COLORS.filter((_el, idx) => idx % 3 === 2);\nconst CATEGORICAL_PAIRED = COLORS.filter((_el, idx) => idx % 3 !== 2);\nconst CATEGORICAL_TRIADIC = COLORS;\nconst MAGNETIC = ['#4bbecf', '#db5197', '#c8d400', '#ffdd00', '#4a96d2', '#f7a600', '#00a9cb'];\n\nconst VIRIDIS = ['#FFF680', '#53D788', '#36739D', '#4A005C'];\nconst MAGMA = ['#FFF680', '#F77E5B', '#902B83', '#2B125C'];\nconst DENSITY = ['#DFFADC', '#74CFD1', '#635AC1', '#611347'];\nconst SALINITY = ['#FAFAB4', '#8DDA7F', '#337E90', '#1C0F5C'];\nconst SUNSET = ['#FFEA80', '#F07A76', '#7535A4', '#003752'];\nconst PERCEPTUAL_RAINBOW = ['#FFF780', '#6CEA90', '#6C90F0', '#942AAE'];\n\nconst SPECTRUM = ['#43317B', '#7ACFAC', '#F5F5B7', '#F07B75', '#5C1243'];\nconst TEAL_RED = ['#122B5C', '#41B5A8', '#F0F0F0', '#F07C80', '#5C1243'];\nconst BLUE_RED = ['#0E0E8F', '#7E93FB', '#F0F0F0', '#ED7883', '#5C1243'];\nconst LIME_ROSE = ['#2E5C00', '#9ED26A', '#F0F0F0', '#EB8BDB', '#701260'];\nconst VIRIDIS_MAGMA = [\n '#4A005C',\n '#36749D',\n '#56D688',\n '#FFF680',\n '#F77E5E',\n '#902B82',\n '#2B125C',\n];\n\nexport const CATEGORICAL_LIST: CategoricalPalette[] = [\n 'light',\n 'bright',\n 'dark',\n 'paired',\n 'triadic',\n 'magnetic',\n];\nexport const SEQUENTIAL_LIST: SequentialPalette[] = [\n 'viridis',\n 'magma',\n 'density',\n 'salinity',\n 'sunset',\n 'perceptual_rainbow',\n];\nexport const DIVERGING_LIST: DivergingPalette[] = [\n 'spectrum',\n 'teal_red',\n 'blue_red',\n 'lime_rose',\n 'viridis_magma',\n];\n\nexport function isCategorical(value: Palette): value is CategoricalPalette {\n return CATEGORICAL_LIST.includes(value as CategoricalPalette);\n}\n\nexport function isSequential(value: Palette): value is SequentialPalette {\n return SEQUENTIAL_LIST.includes(value as SequentialPalette);\n}\n\nexport function isDiverging(value: Palette): value is DivergingPalette {\n return DIVERGING_LIST.includes(value as DivergingPalette);\n}\n\nexport const CATEGORICAL_MAP: Record<CategoricalPalette, PaletteInfo> = {\n light: { title: 'Light', colors: CATEGORICAL_LIGHT },\n bright: { title: 'Bright', colors: CATEGORICAL_BRIGHT },\n dark: { title: 'Dark', colors: CATEGORICAL_DARK },\n paired: { title: 'Paired', colors: CATEGORICAL_PAIRED },\n triadic: { title: 'Triadic', colors: CATEGORICAL_TRIADIC },\n magnetic: { title: 'Magnetic', colors: MAGNETIC },\n};\nexport const SEQUENTIAL_MAP: Record<SequentialPalette, PaletteInfo> = {\n viridis: { title: 'Viridis', colors: VIRIDIS },\n magma: { title: 'Magma', colors: MAGMA },\n density: { title: 'Density', colors: DENSITY },\n salinity: { title: 'Salinity', colors: SALINITY },\n sunset: { title: 'Sunset', colors: SUNSET },\n perceptual_rainbow: { title: 'Rainbow', colors: PERCEPTUAL_RAINBOW },\n};\n\nexport const DIVERGING_MAP: Record<DivergingPalette, PaletteInfo> = {\n spectrum: { title: 'Spectrum', colors: SPECTRUM },\n teal_red: { title: 'Teal-Red', colors: TEAL_RED },\n blue_red: { title: 'Blue-Red', colors: BLUE_RED },\n lime_rose: { title: 'Lime-Rose', colors: LIME_ROSE },\n viridis_magma: { title: 'Vir-Mag', colors: VIRIDIS_MAGMA },\n};\n\nexport const PALETTE_MAP: Record<Palette, PaletteInfo> = {\n ...CATEGORICAL_MAP,\n ...SEQUENTIAL_MAP,\n ...DIVERGING_MAP,\n};\n\nexport const DEFAULT_CATEGORICAL_PALETTE: CategoricalPalette = 'light';\nexport const DEFAULT_CONTINUOUS_PALETTE: ContinuousPalette = 'salinity';\nexport const FIXES_DOT_SHAPES: DotShape[] = [\n '0', '5', '1', '2', '6',\n '7', '9', '3', '4', '8',\n '12', '10', '13', '14', '11',\n '22', '23', '21', '24', '25',\n];\n\nexport const UNKNOWN_COLOR = '#F0F0F0';\n\nexport const DEFAULT_DOT_SHAPE = '21'; // filled circle\n\nexport const FIXED_LINE_TYPES: LineType[] = ['solid', 'dashed', 'dotted', 'dotdash', 'longdash', 'twodash'];\n\nexport const DEFAULT_LINE_TYPE: LineType = 'solid';\nexport const LINE_TYPES_MAP: Record<LineType, LineTypeInfo> = {\n solid: { title: 'Solid' },\n dashed: { title: 'Dashed' },\n dotted: { title: 'Dotted' },\n dotdash: { title: 'Dotdash' },\n longdash: { title: 'Longdash' },\n twodash: { title: 'Twodash' },\n};\n\nexport const NUCLEOTIDE_COLOR_MAPPING = {\n A: '#cc0100',\n C: '#0000cc',\n G: '#ffb300',\n T: '#027f00',\n U: '#027f00',\n};\n\nexport const AMINOACID_COLOR_MAPPING = {\n A: '#7fa0f0',\n R: '#ef1405',\n N: '#01ff00',\n D: '#c048bf',\n C: '#ef8080',\n Q: '#01ff00',\n E: '#c048bf',\n G: '#f09047',\n H: '#14a4a4',\n I: '#7fa0f0',\n L: '#7fa0f0',\n K: '#ef1405',\n M: '#7fa0f0',\n F: '#7fa0f0',\n P: '#ffff00',\n S: '#01ff00',\n T: '#01ff00',\n W: '#7fa0f0',\n Y: '#14a4a4',\n V: '#7fa0f0',\n B: '#eeeeee',\n X: '#eeeeee',\n Z: '#eeeeee',\n};\n"],"names":["FIXED_COLORS","DEFAULT_WHITE","DEFAULT_BLACK","res","item","COLORS","el","CATEGORICAL_LIGHT","_el","idx","CATEGORICAL_BRIGHT","CATEGORICAL_DARK","CATEGORICAL_PAIRED","CATEGORICAL_TRIADIC","MAGNETIC","VIRIDIS","MAGMA","DENSITY","SALINITY","SUNSET","PERCEPTUAL_RAINBOW","SPECTRUM","TEAL_RED","BLUE_RED","LIME_ROSE","VIRIDIS_MAGMA","CATEGORICAL_LIST","SEQUENTIAL_LIST","DIVERGING_LIST","isCategorical","value","CATEGORICAL_MAP","SEQUENTIAL_MAP","DIVERGING_MAP","PALETTE_MAP","DEFAULT_CATEGORICAL_PALETTE","DEFAULT_CONTINUOUS_PALETTE","FIXES_DOT_SHAPES","UNKNOWN_COLOR","DEFAULT_DOT_SHAPE","FIXED_LINE_TYPES","DEFAULT_LINE_TYPE","LINE_TYPES_MAP","NUCLEOTIDE_COLOR_MAPPING","AMINOACID_COLOR_MAPPING"],"mappings":"AAQO,MAAMA,IAAkD;AAAA,EAC7D,EAAE,MAAM,eAAe,OAAO,UAAA;AAAA,EAC9B,EAAE,M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,IAA+B;AAAA,EAC1C;AAAA,EAAK;AAAA,EAAK;AAAA,EAAK;AAAA,EAAK;AAAA,EACpB;AAAA,EAAK;AAAA,EAAK;AAAA,EAAK;AAAA,EAAK;AAAA,EACpB;AAAA,EAAM;AAAA,EAAM;AAAA,EAAM;AAAA,EAAM;AAAA,EACxB;AAAA,EAAM;AAAA,EAAM;AAAA,EAAM;AAAA,EAAM;AAC1B,GAEaC,IAAgB,WAEhBC,IAAoB,MAEpBC,IAA+B,CAAC,SAAS,UAAU,UAAU,WAAW,YAAY,SAAS,GAE7FC,IAA8B,SAC9BC,IAAiD;AAAA,EAC5D,OAAO,EAAE,OAAO,QAAA;AAAA,EAChB,QAAQ,EAAE,OAAO,SAAA;AAAA,EACjB,QAAQ,EAAE,OAAO,SAAA;AAAA,EACjB,SAAS,EAAE,OAAO,UAAA;AAAA,EAClB,UAAU,EAAE,OAAO,WAAA;AAAA,EACnB,SAAS,EAAE,OAAO,UAAA;AACpB,GAEaC,IAA2B;AAAA,EACtC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL,GAEaC,IAA0B;AAAA,EACrC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;"}
|
package/dist/index.vue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
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
2
|
import { MiPlots as he } from "@milaboratories/miplots4";
|
|
3
3
|
import { DemoDataStore as Se } from "@milaboratories/pf-plots";
|
|
4
4
|
import { watchDebounced as y } from "@vueuse/core";
|
|
@@ -11,16 +11,16 @@ import Ce from "./components/TransitionSlidePanel.vue.js";
|
|
|
11
11
|
/* empty css */
|
|
12
12
|
import we from "./components/ChartErrorNotificationAlert.vue.js";
|
|
13
13
|
import { useSettingsForm as ke, isOwnGraphMakerTab as Oe } from "./forms/index.js";
|
|
14
|
-
import { provideStore as xe, createReactiveState as
|
|
14
|
+
import { provideStore as xe, createReactiveState as Fe } from "./store.js";
|
|
15
15
|
import "./constantsCommon.js";
|
|
16
16
|
import "./constantsAesthetic.js";
|
|
17
17
|
import "d3-scale";
|
|
18
18
|
import { composeChartSettings as z } from "./utils/createChartSettingsForRender/composeChartSettings.js";
|
|
19
|
-
import { saveToFile as
|
|
19
|
+
import { saveToFile as Pe } from "./utils/saveToFile.js";
|
|
20
20
|
import { copyJSON as w } from "./utils/copyJSON.js";
|
|
21
21
|
import "@platforma-sdk/model";
|
|
22
|
-
import
|
|
23
|
-
const
|
|
22
|
+
import Be from "./components/GraphStatusScreen.vue.js";
|
|
23
|
+
const Ge = { class: "graph-maker" }, Ie = { class: "graph-maker__main-pane" }, at = /* @__PURE__ */ de({
|
|
24
24
|
__name: "index",
|
|
25
25
|
props: /* @__PURE__ */ q({
|
|
26
26
|
pFrame: {},
|
|
@@ -45,8 +45,8 @@ const Ie = { class: "graph-maker" }, Fe = { class: "graph-maker__main-pane" }, a
|
|
|
45
45
|
selectionModifiers: {}
|
|
46
46
|
}),
|
|
47
47
|
emits: /* @__PURE__ */ q(["delete-this-graph", "tooltip-btn-click"], ["update:modelValue", "update:selection"]),
|
|
48
|
-
setup(
|
|
49
|
-
const n = H(
|
|
48
|
+
setup(c, { expose: W, emit: Ee }) {
|
|
49
|
+
const n = H(c, "modelValue"), R = H(c, "selection"), l = c;
|
|
50
50
|
W({
|
|
51
51
|
/**
|
|
52
52
|
reset() will update data-mapping, axis-settings, layers-settings with the state that is in v-model at the moment.
|
|
@@ -95,7 +95,7 @@ const Ie = { class: "graph-maker" }, Fe = { class: "graph-maker__main-pane" }, a
|
|
|
95
95
|
l.defaultPalette
|
|
96
96
|
);
|
|
97
97
|
function Q() {
|
|
98
|
-
const e =
|
|
98
|
+
const e = Fe(
|
|
99
99
|
r(n.value),
|
|
100
100
|
l.chartType
|
|
101
101
|
);
|
|
@@ -128,7 +128,7 @@ const Ie = { class: "graph-maker" }, Fe = { class: "graph-maker__main-pane" }, a
|
|
|
128
128
|
}, { deep: !0, immediate: !0 });
|
|
129
129
|
const Y = v(() => ke(t.value.reactive.currentTab)), i = J(null), K = f(null), A = f(!1), g = f(null), b = v(
|
|
130
130
|
() => l.pFrame.ok && !l.pFrame.value && !l.pFrame.stable
|
|
131
|
-
),
|
|
131
|
+
), B = v(
|
|
132
132
|
() => t.value.loading.initialInputGuide && O.value === "loading"
|
|
133
133
|
), O = v((e) => {
|
|
134
134
|
var u, m;
|
|
@@ -168,11 +168,11 @@ const Ie = { class: "graph-maker" }, Fe = { class: "graph-maker__main-pane" }, a
|
|
|
168
168
|
function j(e) {
|
|
169
169
|
t.value.reactive.lassoControlsState = e;
|
|
170
170
|
}
|
|
171
|
-
let
|
|
171
|
+
let G = null;
|
|
172
172
|
function ee(e) {
|
|
173
|
-
e ?
|
|
173
|
+
e ? G = setTimeout(() => {
|
|
174
174
|
t.value.loading.chartRendering = !0;
|
|
175
|
-
}, 1e3) : (
|
|
175
|
+
}, 1e3) : (G && clearTimeout(G), t.value.loading.chartRendering = !1);
|
|
176
176
|
}
|
|
177
177
|
const V = f(!1);
|
|
178
178
|
function te(e) {
|
|
@@ -200,7 +200,7 @@ const Ie = { class: "graph-maker" }, Fe = { class: "graph-maker__main-pane" }, a
|
|
|
200
200
|
var a, o, u, m, T;
|
|
201
201
|
if (e && ((a = Object.values(e.data.values)[0]) == null ? void 0 : a.length) > 0) {
|
|
202
202
|
if (i.value)
|
|
203
|
-
i.value.updateSettingsAndData(r(e.data), r(e.settings));
|
|
203
|
+
i.value.updateSettingsAndData({ ...r(e.data), id: e.data.id + (l.pFrame.ok ? l.pFrame.value : "") }, r(e.settings));
|
|
204
204
|
else {
|
|
205
205
|
const D = document.getElementById("chartSvgContainer");
|
|
206
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));
|
|
@@ -213,11 +213,11 @@ const Ie = { class: "graph-maker" }, Fe = { class: "graph-maker__main-pane" }, a
|
|
|
213
213
|
var a;
|
|
214
214
|
(e === "notReady" || e === "noPframe" || k.value === null) && ((a = i.value) == null || a.unmount(), i.value = null);
|
|
215
215
|
});
|
|
216
|
-
const
|
|
216
|
+
const I = J(null);
|
|
217
217
|
s([
|
|
218
218
|
() => t.value.chartData.value
|
|
219
219
|
], ([e]) => {
|
|
220
|
-
|
|
220
|
+
I.value = z(
|
|
221
221
|
r(e),
|
|
222
222
|
r(t.value.inputGuide.value),
|
|
223
223
|
r(t.value.uniqueValuesData.value),
|
|
@@ -233,7 +233,7 @@ const Ie = { class: "graph-maker" }, Fe = { class: "graph-maker__main-pane" }, a
|
|
|
233
233
|
() => t.value.reactive.dataBindAes,
|
|
234
234
|
() => t.value.reactive.chartScale
|
|
235
235
|
], () => {
|
|
236
|
-
|
|
236
|
+
I.value = z(
|
|
237
237
|
r(t.value.chartData.value),
|
|
238
238
|
r(t.value.inputGuide.value),
|
|
239
239
|
r(t.value.uniqueValuesData.value),
|
|
@@ -241,9 +241,9 @@ const Ie = { class: "graph-maker" }, Fe = { class: "graph-maker__main-pane" }, a
|
|
|
241
241
|
r(t.value.reactive),
|
|
242
242
|
r(t.value.defaultPalette)
|
|
243
243
|
);
|
|
244
|
-
}, { deep: !0 }), s(() =>
|
|
244
|
+
}, { deep: !0 }), s(() => I.value, (e) => {
|
|
245
245
|
Z(e);
|
|
246
|
-
}),
|
|
246
|
+
}), ce(() => {
|
|
247
247
|
Z(null);
|
|
248
248
|
}), ve(() => {
|
|
249
249
|
var e;
|
|
@@ -299,7 +299,7 @@ const Ie = { class: "graph-maker" }, Fe = { class: "graph-maker__main-pane" }, a
|
|
|
299
299
|
});
|
|
300
300
|
function le() {
|
|
301
301
|
var e;
|
|
302
|
-
|
|
302
|
+
Pe(
|
|
303
303
|
new Blob([
|
|
304
304
|
((e = i.value) == null ? void 0 : e.export()) ?? ""
|
|
305
305
|
]),
|
|
@@ -319,48 +319,48 @@ const Ie = { class: "graph-maker" }, Fe = { class: "graph-maker__main-pane" }, a
|
|
|
319
319
|
const E = pe(), ie = v(() => !!E.annotationsSlot), re = v(() => !!E.settingsSlot), ue = v(() => !!E.logSlot);
|
|
320
320
|
return (e, a) => {
|
|
321
321
|
var o;
|
|
322
|
-
return C(), me("div",
|
|
323
|
-
fe("div",
|
|
322
|
+
return C(), me("div", Ge, [
|
|
323
|
+
fe("div", Ie, [
|
|
324
324
|
N(be, {
|
|
325
325
|
"graph-status": O.value,
|
|
326
326
|
graphTitle: n.value.title,
|
|
327
327
|
chartData: K.value,
|
|
328
328
|
"chart-ref": i.value,
|
|
329
329
|
"error-info": g.value,
|
|
330
|
-
dendroTooltipButton:
|
|
331
|
-
"custom-status-text":
|
|
332
|
-
"allow-title-editing":
|
|
330
|
+
dendroTooltipButton: c.tooltipButton,
|
|
331
|
+
"custom-status-text": c.statusText,
|
|
332
|
+
"allow-title-editing": c.allowTitleEditing,
|
|
333
333
|
isScatterplotZoomChanged: V.value,
|
|
334
334
|
onGraphTitleUpdate: ne,
|
|
335
335
|
onDendroNodeSelect: oe,
|
|
336
336
|
onDendroTooltipBtnClick: a[0] || (a[0] = (u) => e.$emit("tooltip-btn-click", u))
|
|
337
337
|
}, {
|
|
338
|
-
default:
|
|
339
|
-
|
|
338
|
+
default: F(() => [
|
|
339
|
+
P(e.$slots, "titleLineSlot")
|
|
340
340
|
]),
|
|
341
341
|
_: 3
|
|
342
342
|
}, 8, ["graph-status", "graphTitle", "chartData", "chart-ref", "error-info", "dendroTooltipButton", "custom-status-text", "allow-title-editing", "isScatterplotZoomChanged"]),
|
|
343
|
-
|
|
343
|
+
B.value || b.value ? (C(), x(Be, {
|
|
344
344
|
key: 0,
|
|
345
345
|
graphStatus: b.value ? "running" : "loading",
|
|
346
346
|
top: 67,
|
|
347
347
|
left: 12,
|
|
348
348
|
right: 12,
|
|
349
349
|
bottom: 12,
|
|
350
|
-
customStatusText:
|
|
350
|
+
customStatusText: c.statusText
|
|
351
351
|
}, null, 8, ["graphStatus", "customStatusText"])) : S("", !0),
|
|
352
352
|
N(Ce, { id: "graph-settings-modal" }, {
|
|
353
|
-
default:
|
|
354
|
-
|
|
353
|
+
default: F(() => [
|
|
354
|
+
d(t).reactive.currentTab && !((B.value || b.value) && d(Oe)(d(t).reactive.currentTab)) ? (C(), x(Te, {
|
|
355
355
|
key: 0,
|
|
356
|
-
onClose: a[1] || (a[1] = (u) =>
|
|
356
|
+
onClose: a[1] || (a[1] = (u) => d(t).reactive.currentTab = null)
|
|
357
357
|
}, {
|
|
358
|
-
default:
|
|
358
|
+
default: F(() => [
|
|
359
359
|
(C(), x(ge(Y.value.value), null, {
|
|
360
|
-
default:
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
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)
|
|
364
364
|
]),
|
|
365
365
|
_: 3
|
|
366
366
|
}))
|
|
@@ -372,15 +372,15 @@ const Ie = { class: "graph-maker" }, Fe = { class: "graph-maker__main-pane" }, a
|
|
|
372
372
|
})
|
|
373
373
|
]),
|
|
374
374
|
N(De, {
|
|
375
|
-
modelValue:
|
|
376
|
-
"onUpdate:modelValue": a[2] || (a[2] = (u) =>
|
|
377
|
-
"chart-type":
|
|
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
378
|
"graph-status": O.value,
|
|
379
|
-
allowDeleting:
|
|
379
|
+
allowDeleting: c.allowChartDeleting,
|
|
380
380
|
hasAnnotationsSlot: ie.value,
|
|
381
381
|
hasSettingsSlot: re.value,
|
|
382
382
|
hasLogSlot: ue.value,
|
|
383
|
-
initialLoading:
|
|
383
|
+
initialLoading: B.value || b.value,
|
|
384
384
|
onExport: le,
|
|
385
385
|
onDelete: a[3] || (a[3] = (u) => e.$emit("delete-this-graph"))
|
|
386
386
|
}, null, 8, ["modelValue", "chart-type", "graph-status", "allowDeleting", "hasAnnotationsSlot", "hasSettingsSlot", "hasLogSlot", "initialLoading"]),
|