@milaboratories/graph-maker 1.1.141 → 1.1.142

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 (41) hide show
  1. package/dist/GraphMaker/components/LassoControls/index.vue.js +1 -1
  2. package/dist/GraphMaker/constantsCommon.d.ts +8 -0
  3. package/dist/GraphMaker/constantsCommon.d.ts.map +1 -1
  4. package/dist/GraphMaker/constantsCommon.js +94 -83
  5. package/dist/GraphMaker/constantsCommon.js.map +1 -1
  6. package/dist/GraphMaker/forms/LayersForm/Layer/discrete/StackedArea.vue.d.ts +3 -0
  7. package/dist/GraphMaker/forms/LayersForm/Layer/discrete/StackedArea.vue.d.ts.map +1 -0
  8. package/dist/GraphMaker/forms/LayersForm/Layer/discrete/StackedArea.vue.js +90 -0
  9. package/dist/GraphMaker/forms/LayersForm/Layer/discrete/StackedArea.vue.js.map +1 -0
  10. package/dist/GraphMaker/forms/LayersForm/Layer/discrete/StackedArea.vue2.js +5 -0
  11. package/dist/GraphMaker/forms/LayersForm/Layer/discrete/StackedArea.vue2.js.map +1 -0
  12. package/dist/GraphMaker/forms/LayersForm/index.vue.d.ts.map +1 -1
  13. package/dist/GraphMaker/forms/LayersForm/index.vue.js +45 -43
  14. package/dist/GraphMaker/forms/LayersForm/index.vue.js.map +1 -1
  15. package/dist/GraphMaker/index.vue.d.ts.map +1 -1
  16. package/dist/GraphMaker/index.vue.js +0 -1
  17. package/dist/GraphMaker/index.vue.js.map +1 -1
  18. package/dist/GraphMaker/types.d.ts +1 -1
  19. package/dist/GraphMaker/types.d.ts.map +1 -1
  20. package/dist/GraphMaker/utils/createChartSettingsForRender/composeDiscreteSettings.d.ts +16 -0
  21. package/dist/GraphMaker/utils/createChartSettingsForRender/composeDiscreteSettings.d.ts.map +1 -1
  22. package/dist/GraphMaker/utils/createChartSettingsForRender/getLayersDataFromForms.d.ts.map +1 -1
  23. package/dist/GraphMaker/utils/createChartSettingsForRender/getLayersDataFromForms.js +84 -70
  24. package/dist/GraphMaker/utils/createChartSettingsForRender/getLayersDataFromForms.js.map +1 -1
  25. package/dist/node_modules/@milaboratories/miplots4/dist/MiPlots.js +1 -1
  26. package/dist/node_modules/@milaboratories/miplots4/dist/discrete/DiscreteSettingsImpl.js +185 -164
  27. package/dist/node_modules/@milaboratories/miplots4/dist/discrete/DiscreteSettingsImpl.js.map +1 -1
  28. package/dist/node_modules/@milaboratories/miplots4/dist/discrete/components/Chart.js +120 -103
  29. package/dist/node_modules/@milaboratories/miplots4/dist/discrete/components/Chart.js.map +1 -1
  30. package/dist/node_modules/@milaboratories/miplots4/dist/discrete/components/ChartsGroup.js +4 -4
  31. package/dist/node_modules/@milaboratories/miplots4/dist/discrete/components/layers/StackedAreaElement.js +105 -0
  32. package/dist/node_modules/@milaboratories/miplots4/dist/discrete/components/layers/StackedAreaElement.js.map +1 -0
  33. package/dist/node_modules/@milaboratories/miplots4/dist/discrete/components/layers/StackedBarElement.js +66 -59
  34. package/dist/node_modules/@milaboratories/miplots4/dist/discrete/components/layers/StackedBarElement.js.map +1 -1
  35. package/dist/node_modules/@milaboratories/miplots4/dist/discrete/index.js +57 -54
  36. package/dist/node_modules/@milaboratories/miplots4/dist/discrete/index.js.map +1 -1
  37. package/dist/node_modules/@milaboratories/miplots4/dist/discrete/layers/stackedArea.js +17 -0
  38. package/dist/node_modules/@milaboratories/miplots4/dist/discrete/layers/stackedArea.js.map +1 -0
  39. package/dist/node_modules/@milaboratories/miplots4/dist/types/discrete.js +24 -9
  40. package/dist/node_modules/@milaboratories/miplots4/dist/types/discrete.js.map +1 -1
  41. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { DEFAULT_HEIGHT_SMALL as C, DEFAULT_HEIGHT as g, DEFAULT_WIDTH_SMALL as L, DEFAULT_WIDTH as S, BLACK as a } from "../constants.js";
1
+ import { DEFAULT_HEIGHT_SMALL as v, DEFAULT_HEIGHT as g, DEFAULT_WIDTH_SMALL as L, DEFAULT_WIDTH as S, BLACK as r } from "../constants.js";
2
2
  import "../types/common.js";
3
3
  import { DiscreteSettingsSchema as b } from "../types/discrete.js";
4
4
  import "../types/scatterplot.js";
@@ -8,51 +8,51 @@ import "../types/histogram.js";
8
8
  import "../types/bubble.js";
9
9
  import { PADDINGS as x, MIN_MARGIN as k } from "./constants.js";
10
10
  import z from "../node_modules/lodash/lodash.js";
11
- import { exhaustive as O } from "../utils/index.js";
12
- var E = Object.defineProperty, F = (i, t, o) => t in i ? E(i, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : i[t] = o, e = (i, t, o) => F(i, typeof t != "symbol" ? t + "" : t, o);
13
- const p = "#3e9838", n = "21", h = 3;
14
- class r {
11
+ import { exhaustive as B } from "../utils/index.js";
12
+ var O = Object.defineProperty, E = (i, e, o) => e in i ? O(i, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : i[e] = o, t = (i, e, o) => E(i, typeof e != "symbol" ? e + "" : e, o);
13
+ const n = "#3e9838", h = "21", u = 3;
14
+ class a {
15
15
  }
16
- class G extends r {
17
- constructor(t) {
18
- super(), e(this, "type", "box"), e(this, "stat", {
16
+ class F extends a {
17
+ constructor(e) {
18
+ super(), t(this, "type", "box"), t(this, "stat", {
19
19
  upper: 0.75,
20
20
  medium: 0.5,
21
21
  lower: 0.25,
22
22
  k: 1.5
23
- }), e(this, "aes", {
23
+ }), t(this, "aes", {
24
24
  showOutliers: !0,
25
25
  boxWidth: "auto",
26
- dotShape: n,
27
- dotFill: a,
28
- dotSize: h,
29
- lineColor: a,
30
- fillColor: p,
26
+ dotShape: h,
27
+ dotFill: r,
28
+ dotSize: u,
29
+ lineColor: r,
30
+ fillColor: n,
31
31
  lineWidth: 1,
32
32
  lineShape: "solid",
33
33
  opacity: 1
34
34
  }), this.stat = {
35
35
  ...this.stat,
36
- ...t.stat
36
+ ...e.stat
37
37
  }, this.aes = {
38
38
  ...this.aes,
39
- ...t.aes
39
+ ...e.aes
40
40
  };
41
41
  }
42
- isEqualForCalculation(t) {
43
- return t.type === "box" && Object.keys(this.stat).every((o) => this.stat[o] === t.stat[o]);
42
+ isEqualForCalculation(e) {
43
+ return e.type === "box" && Object.keys(this.stat).every((o) => this.stat[o] === e.stat[o]);
44
44
  }
45
45
  }
46
- class B extends r {
47
- constructor(t) {
48
- super(), e(this, "type", "violin"), e(this, "stat", {
46
+ class G extends a {
47
+ constructor(e) {
48
+ super(), t(this, "type", "violin"), t(this, "stat", {
49
49
  bandwidth: "auto",
50
50
  stepsCount: 40,
51
51
  trim: !0
52
- }), e(this, "aes", {
52
+ }), t(this, "aes", {
53
53
  width: "auto",
54
- lineColor: a,
55
- fillColor: p,
54
+ lineColor: r,
55
+ fillColor: n,
56
56
  lineWidth: 1,
57
57
  lineShape: "solid",
58
58
  opacity: 1,
@@ -61,240 +61,258 @@ class B extends r {
61
61
  quartilesLineStyle: "dashed"
62
62
  }), this.stat = {
63
63
  ...this.stat,
64
- ...t.stat
64
+ ...e.stat
65
65
  }, this.aes = {
66
66
  ...this.aes,
67
- ...t.aes
67
+ ...e.aes
68
68
  };
69
69
  }
70
- isEqualForCalculation(t) {
71
- return t.type === "violin" && (this.stat.bandwidth !== t.stat.bandwidth || this.stat.trim !== t.stat.trim || this.stat.stepsCount !== t.stat.stepsCount);
70
+ isEqualForCalculation(e) {
71
+ return e.type === "violin" && (this.stat.bandwidth !== e.stat.bandwidth || this.stat.trim !== e.stat.trim || this.stat.stepsCount !== e.stat.stepsCount);
72
72
  }
73
73
  }
74
- class T extends r {
75
- constructor(t) {
76
- super(), e(this, "type", "dot"), e(this, "aes", {
74
+ class T extends a {
75
+ constructor(e) {
76
+ super(), t(this, "type", "dot"), t(this, "aes", {
77
77
  showOutliers: !0,
78
78
  jitter: 0.8,
79
79
  lineColor: "none",
80
- dotFill: a,
81
- dotShape: n,
82
- dotSize: h,
80
+ dotFill: r,
81
+ dotShape: h,
82
+ dotSize: u,
83
83
  opacity: 1
84
84
  }), this.aes = {
85
85
  ...this.aes,
86
- ...t.aes
86
+ ...e.aes
87
87
  };
88
88
  }
89
- isEqualForCalculation(t) {
90
- return t.type === "dot" && this.aes.showOutliers === t.aes.showOutliers;
89
+ isEqualForCalculation(e) {
90
+ return e.type === "dot" && this.aes.showOutliers === e.aes.showOutliers;
91
91
  }
92
92
  }
93
- class D extends r {
94
- constructor(t) {
95
- super(), e(this, "type", "line"), e(this, "pointsValues"), e(this, "aes", {
93
+ class A extends a {
94
+ constructor(e) {
95
+ super(), t(this, "type", "line"), t(this, "pointsValues"), t(this, "aes", {
96
96
  showOutliers: !0,
97
97
  lineWidth: 1,
98
98
  lineShape: "solid",
99
99
  fillColor: "none",
100
- lineColor: a,
101
- dotShape: n,
102
- dotSize: h,
100
+ lineColor: r,
101
+ dotShape: h,
102
+ dotSize: u,
103
103
  opacity: 1
104
- }), this.pointsValues = t.pointsValues, this.aes = {
104
+ }), this.pointsValues = e.pointsValues, this.aes = {
105
105
  ...this.aes,
106
- ...t.aes
106
+ ...e.aes
107
107
  };
108
108
  }
109
- isEqualForCalculation(t) {
110
- return t.type === "line" && this.pointsValues === t.pointsValues;
109
+ isEqualForCalculation(e) {
110
+ return e.type === "line" && this.pointsValues === e.pointsValues;
111
111
  }
112
112
  }
113
- class q extends r {
114
- constructor(t) {
115
- super(), e(this, "type", "errorbar"), e(this, "pointsValues"), e(this, "interval"), e(this, "aes", {
113
+ class D extends a {
114
+ constructor(e) {
115
+ super(), t(this, "type", "errorbar"), t(this, "pointsValues"), t(this, "interval"), t(this, "aes", {
116
116
  showDots: !0,
117
117
  width: "auto",
118
118
  lineWidth: 1,
119
119
  fillColor: "none",
120
- lineColor: a,
121
- dotShape: n,
122
- dotSize: h,
120
+ lineColor: r,
121
+ dotShape: h,
122
+ dotSize: u,
123
123
  opacity: 1
124
- }), this.pointsValues = t.pointsValues, this.interval = t.interval, this.aes = {
124
+ }), this.pointsValues = e.pointsValues, this.interval = e.interval, this.aes = {
125
125
  ...this.aes,
126
- ...t.aes
126
+ ...e.aes
127
127
  };
128
128
  }
129
- isEqualForCalculation(t) {
130
- return t.type === "errorbar" && this.pointsValues === t.pointsValues && this.interval === t.interval;
129
+ isEqualForCalculation(e) {
130
+ return e.type === "errorbar" && this.pointsValues === e.pointsValues && this.interval === e.interval;
131
131
  }
132
132
  }
133
- class A extends r {
134
- constructor(t) {
135
- super(), e(this, "type", "bar"), e(this, "height"), e(this, "aes", {
133
+ class q extends a {
134
+ constructor(e) {
135
+ super(), t(this, "type", "bar"), t(this, "height"), t(this, "aes", {
136
136
  width: "auto",
137
137
  lineWidth: 1,
138
138
  fillColor: "none",
139
- lineColor: a,
139
+ lineColor: r,
140
140
  opacity: 1
141
- }), this.height = t.height ?? "max", this.aes = {
141
+ }), this.height = e.height ?? "max", this.aes = {
142
142
  ...this.aes,
143
- ...t.aes
143
+ ...e.aes
144
144
  };
145
145
  }
146
- isEqualForCalculation(t) {
147
- return t.type === "bar" && this.height === t.height;
146
+ isEqualForCalculation(e) {
147
+ return e.type === "bar" && this.height === e.height;
148
148
  }
149
149
  }
150
- class P extends r {
151
- constructor(t) {
152
- super(), e(this, "type", "stackedBar"), e(this, "normalize", !1), e(this, "aes", {
150
+ class V extends a {
151
+ constructor(e) {
152
+ super(), t(this, "type", "stackedBar"), t(this, "normalize", !1), t(this, "aes", {
153
153
  width: "auto",
154
154
  lineWidth: 1,
155
- fillColor: p,
155
+ fillColor: n,
156
156
  lineColor: "none",
157
157
  opacity: 1
158
- }), this.normalize = t.normalize ?? !1, this.aes = {
158
+ }), this.normalize = e.normalize ?? !1, this.aes = {
159
159
  ...this.aes,
160
- ...t.aes
160
+ ...e.aes
161
161
  };
162
162
  }
163
- isEqualForCalculation(t) {
164
- return t.type === "stackedBar" && t.normalize === this.normalize;
163
+ isEqualForCalculation(e) {
164
+ return e.type === "stackedBar" && e.normalize === this.normalize;
165
165
  }
166
166
  }
167
- class V extends r {
168
- constructor(t) {
169
- super(), e(this, "type", "logo"), e(this, "normalize", !1), e(this, "aes", {
167
+ class W extends a {
168
+ constructor(e) {
169
+ super(), t(this, "type", "stackedArea"), t(this, "normalize", !1), t(this, "showBars", !0), t(this, "aes", {
170
+ barWidth: "auto",
171
+ lineWidth: 1,
172
+ fillColor: n,
173
+ lineColor: "none",
174
+ barsOpacity: 1,
175
+ areaOpacity: 0.7
176
+ }), this.normalize = e.normalize ?? !1, this.showBars = e.showBars ?? !0, this.aes = {
177
+ ...this.aes,
178
+ ...e.aes
179
+ };
180
+ }
181
+ isEqualForCalculation(e) {
182
+ return e.type === "stackedArea" && e.normalize === this.normalize && e.showBars === this.showBars;
183
+ }
184
+ }
185
+ class P extends a {
186
+ constructor(e) {
187
+ super(), t(this, "type", "logo"), t(this, "normalize", !1), t(this, "aes", {
170
188
  width: "auto",
171
- fillColor: p,
189
+ fillColor: n,
172
190
  lineColor: "none",
173
191
  opacity: 1
174
- }), this.normalize = t.normalize ?? !1, this.aes = {
192
+ }), this.normalize = e.normalize ?? !1, this.aes = {
175
193
  ...this.aes,
176
- ...t.aes
194
+ ...e.aes
177
195
  };
178
196
  }
179
- isEqualForCalculation(t) {
180
- return t.type === "logo" && t.normalize === this.normalize;
197
+ isEqualForCalculation(e) {
198
+ return e.type === "logo" && e.normalize === this.normalize;
181
199
  }
182
200
  }
183
- class M extends r {
184
- constructor(t) {
185
- super(), e(this, "type", "binnedDots"), e(this, "method"), e(this, "position"), e(this, "keyColumn"), e(this, "aes", {
201
+ class I extends a {
202
+ constructor(e) {
203
+ super(), t(this, "type", "binnedDots"), t(this, "method"), t(this, "position"), t(this, "keyColumn"), t(this, "aes", {
186
204
  showOutliers: !0,
187
205
  width: "auto",
188
206
  lineWidth: 1,
189
207
  fillColor: "none",
190
- lineColor: a,
208
+ lineColor: r,
191
209
  opacity: 1
192
- }), this.method = t.method ?? "dotdensity", this.position = t.position ?? "stack", this.keyColumn = t.keyColumn ?? null, this.aes = {
210
+ }), this.method = e.method ?? "dotdensity", this.position = e.position ?? "stack", this.keyColumn = e.keyColumn ?? null, this.aes = {
193
211
  ...this.aes,
194
- ...t.aes
212
+ ...e.aes
195
213
  };
196
214
  }
197
- isEqualForCalculation(t) {
215
+ isEqualForCalculation(e) {
198
216
  var o, l;
199
- return t.type === "binnedDots" && this.method === t.method && this.position === t.position && ((o = this.keyColumn) == null ? void 0 : o.value) === ((l = t.keyColumn) == null ? void 0 : l.value);
217
+ return e.type === "binnedDots" && this.method === e.method && this.position === e.position && ((o = this.keyColumn) == null ? void 0 : o.value) === ((l = e.keyColumn) == null ? void 0 : l.value);
200
218
  }
201
219
  }
202
- class W extends r {
203
- constructor(t) {
204
- super(), e(this, "type", "pairedPoints"), e(this, "linkColumn"), e(this, "aes", {
220
+ class M extends a {
221
+ constructor(e) {
222
+ super(), t(this, "type", "pairedPoints"), t(this, "linkColumn"), t(this, "aes", {
205
223
  showOutliers: !0,
206
224
  lineWidth: 1,
207
- lineColor: a,
225
+ lineColor: r,
208
226
  lineShape: "solid",
209
- dotFill: a,
210
- dotSize: h,
211
- dotShape: n,
227
+ dotFill: r,
228
+ dotSize: u,
229
+ dotShape: h,
212
230
  opacity: 1
213
- }), this.linkColumn = t.linkColumn, this.aes = {
231
+ }), this.linkColumn = e.linkColumn, this.aes = {
214
232
  ...this.aes,
215
- ...t.aes
233
+ ...e.aes
216
234
  };
217
235
  }
218
- isEqualForCalculation(t) {
219
- return t.type === "pairedPoints" && this.aes.showOutliers === t.aes.showOutliers && this.linkColumn.value === t.linkColumn.value;
236
+ isEqualForCalculation(e) {
237
+ return e.type === "pairedPoints" && this.aes.showOutliers === e.aes.showOutliers && this.linkColumn.value === e.linkColumn.value;
220
238
  }
221
239
  }
222
- class I extends r {
223
- constructor(t) {
224
- super(), e(this, "type", "sina"), e(this, "aes", {
240
+ class _ extends a {
241
+ constructor(e) {
242
+ super(), t(this, "type", "sina"), t(this, "aes", {
225
243
  showOutliers: !0,
226
244
  width: "auto",
227
- dotFill: p,
228
- dotSize: h,
229
- dotShape: n,
245
+ dotFill: n,
246
+ dotSize: u,
247
+ dotShape: h,
230
248
  opacity: 1
231
249
  }), this.aes = {
232
250
  ...this.aes,
233
- ...t.aes
251
+ ...e.aes
234
252
  };
235
253
  }
236
- isEqualForCalculation(t) {
237
- return t.type === "sina" && this.aes.showOutliers === t.aes.showOutliers;
254
+ isEqualForCalculation(e) {
255
+ return e.type === "sina" && this.aes.showOutliers === e.aes.showOutliers;
238
256
  }
239
257
  }
240
- class _ extends r {
241
- constructor(t) {
242
- var o, l, u;
243
- super(), e(this, "type", "stat"), e(this, "statType"), e(this, "testMethod"), e(this, "paired"), e(this, "ns"), e(this, "format"), e(this, "referenceGroup", null), e(this, "correctionMethod", null), e(this, "significanceLevels"), this.statType = t.statType, this.testMethod = t.testMethod, this.paired = t.paired ?? !1, this.ns = t.ns ?? !0, this.format = t.format ?? "pValue", this.statType === "referenceGroup" && (this.referenceGroup = t.referenceGroup ?? null), (this.statType === "referenceGroup" || this.statType === "pairwise") && (this.correctionMethod = t.correctionMethod ?? null), this.significanceLevels = {
244
- one: ((o = t.significanceLevels) == null ? void 0 : o.one) ?? 0.05,
245
- two: ((l = t.significanceLevels) == null ? void 0 : l.two) ?? 0.01,
246
- three: ((u = t.significanceLevels) == null ? void 0 : u.three) ?? 1e-3
258
+ class H extends a {
259
+ constructor(e) {
260
+ var o, l, p;
261
+ super(), t(this, "type", "stat"), t(this, "statType"), t(this, "testMethod"), t(this, "paired"), t(this, "ns"), t(this, "format"), t(this, "referenceGroup", null), t(this, "correctionMethod", null), t(this, "significanceLevels"), this.statType = e.statType, this.testMethod = e.testMethod, this.paired = e.paired ?? !1, this.ns = e.ns ?? !0, this.format = e.format ?? "pValue", this.statType === "referenceGroup" && (this.referenceGroup = e.referenceGroup ?? null), (this.statType === "referenceGroup" || this.statType === "pairwise") && (this.correctionMethod = e.correctionMethod ?? null), this.significanceLevels = {
262
+ one: ((o = e.significanceLevels) == null ? void 0 : o.one) ?? 0.05,
263
+ two: ((l = e.significanceLevels) == null ? void 0 : l.two) ?? 0.01,
264
+ three: ((p = e.significanceLevels) == null ? void 0 : p.three) ?? 1e-3
247
265
  };
248
266
  }
249
- isEqualForCalculation(t) {
250
- return t.type === "stat" && Object.keys(this).every((o) => this[o] === t[o]);
267
+ isEqualForCalculation(e) {
268
+ return e.type === "stat" && Object.keys(this).every((o) => this[o] === e[o]);
251
269
  }
252
270
  }
253
- class Z {
254
- constructor(t) {
255
- e(this, "id"), e(this, "type", "discrete"), e(this, "y"), e(this, "keyColumn"), e(this, "primaryGrouping"), e(this, "secondaryGrouping"), e(this, "facetSettings"), e(this, "facetBy"), e(this, "chartSettings"), e(this, "layers");
256
- var o, l, u, d, c, y, m, f, w, v;
257
- b.parse(t), this.id = z.uniqueId("settings"), this.y = t.y, this.keyColumn = t.keyColumn ?? null, this.primaryGrouping = t.primaryGrouping ?? null, this.secondaryGrouping = t.secondaryGrouping ?? null, this.facetSettings = {
271
+ class ee {
272
+ constructor(e) {
273
+ t(this, "id"), t(this, "type", "discrete"), t(this, "y"), t(this, "keyColumn"), t(this, "primaryGrouping"), t(this, "secondaryGrouping"), t(this, "facetSettings"), t(this, "facetBy"), t(this, "chartSettings"), t(this, "layers");
274
+ var o, l, p, d, c, y, m, f, w, C;
275
+ b.parse(e), this.id = z.uniqueId("settings"), this.y = e.y, this.keyColumn = e.keyColumn ?? null, this.primaryGrouping = e.primaryGrouping ?? null, this.secondaryGrouping = e.secondaryGrouping ?? null, this.facetSettings = {
258
276
  sharedX: !0,
259
277
  sharedY: !0,
260
278
  titlePosition: "left",
261
- ...t.facetSettings
262
- }, this.facetBy = t.facetBy ?? [], this.chartSettings = {
279
+ ...e.facetSettings
280
+ }, this.facetBy = e.facetBy ?? [], this.chartSettings = {
263
281
  size: {
264
- width: ((o = t == null ? void 0 : t.size) == null ? void 0 : o.width) ?? (this.facetBy.length ? L : S),
265
- height: ((l = t == null ? void 0 : t.size) == null ? void 0 : l.height) ?? (this.facetBy.length ? C : g),
266
- outerOffset: ((u = t == null ? void 0 : t.size) == null ? void 0 : u.outerOffset) ?? k,
267
- innerOffset: ((d = t == null ? void 0 : t.size) == null ? void 0 : d.innerOffset) ?? x.TOP
282
+ width: ((o = e == null ? void 0 : e.size) == null ? void 0 : o.width) ?? (this.facetBy.length ? L : S),
283
+ height: ((l = e == null ? void 0 : e.size) == null ? void 0 : l.height) ?? (this.facetBy.length ? v : g),
284
+ outerOffset: ((p = e == null ? void 0 : e.size) == null ? void 0 : p.outerOffset) ?? k,
285
+ innerOffset: ((d = e == null ? void 0 : e.size) == null ? void 0 : d.innerOffset) ?? x.TOP
268
286
  },
269
287
  title: {
270
288
  position: "center",
271
289
  show: !0,
272
- ...t.title,
273
- name: ((c = t.title) == null ? void 0 : c.name) ?? "Chart"
290
+ ...e.title,
291
+ name: ((c = e.title) == null ? void 0 : c.name) ?? "Chart"
274
292
  },
275
- orientation: t.orientation ?? "vertical",
293
+ orientation: e.orientation ?? "vertical",
276
294
  yAxis: {
277
- title: ((y = t.y) == null ? void 0 : y.label) ?? t.y.value ?? "",
295
+ title: ((y = e.y) == null ? void 0 : y.label) ?? e.y.value ?? "",
278
296
  scale: "linear",
279
297
  showGrid: !0,
280
298
  showTicks: !0,
281
299
  hiddenLabels: !1,
282
- ...t.yAxis
300
+ ...e.yAxis
283
301
  },
284
302
  xAxis: {
285
- title: ((f = (m = t.primaryGrouping) == null ? void 0 : m.columnName) == null ? void 0 : f.label) ?? ((w = t.primaryGrouping) == null ? void 0 : w.columnName.value) ?? "",
303
+ title: ((f = (m = e.primaryGrouping) == null ? void 0 : m.columnName) == null ? void 0 : f.label) ?? ((w = e.primaryGrouping) == null ? void 0 : w.columnName.value) ?? "",
286
304
  showGrid: !0,
287
305
  showTicks: !0,
288
306
  linesBetweenCategories: !0,
289
307
  labelsPosition: "center",
290
308
  hiddenLabels: !1,
291
- ...t.xAxis
309
+ ...e.xAxis
292
310
  },
293
- frame: { type: ((v = t.frame) == null ? void 0 : v.type) ?? "full" },
311
+ frame: { type: ((C = e.frame) == null ? void 0 : C.type) ?? "full" },
294
312
  legend: {
295
313
  show: !0,
296
314
  position: "right",
297
- ...t.legend
315
+ ...e.legend
298
316
  },
299
317
  tooltips: {
300
318
  box: { show: !0 },
@@ -307,50 +325,53 @@ class Z {
307
325
  pairedPoints: { show: !0 },
308
326
  stackedBar: { show: !0 },
309
327
  logo: { show: !1 },
310
- ...t.tooltips
328
+ ...e.tooltips
311
329
  }
312
- }, this.layers = t.layers.map((s) => {
330
+ }, this.layers = e.layers.map((s) => {
313
331
  if (s.type === "box")
314
- return new G(s);
332
+ return new F(s);
315
333
  if (s.type === "violin")
316
- return new B(s);
334
+ return new G(s);
317
335
  if (s.type === "dot")
318
336
  return new T(s);
319
337
  if (s.type === "line")
320
- return new D(s);
338
+ return new A(s);
321
339
  if (s.type === "errorbar")
322
- return new q(s);
340
+ return new D(s);
323
341
  if (s.type === "bar")
324
- return new A(s);
342
+ return new q(s);
325
343
  if (s.type === "stackedBar")
326
- return new P(s);
344
+ return new V(s);
345
+ if (s.type === "stackedArea")
346
+ return new W(s);
327
347
  if (s.type === "stat")
328
- return new _(s);
348
+ return new H(s);
329
349
  if (s.type === "binnedDots")
330
- return new M(s);
350
+ return new I(s);
331
351
  if (s.type === "pairedPoints")
332
- return new W(s);
352
+ return new M(s);
333
353
  if (s.type === "sina")
334
- return new I(s);
354
+ return new _(s);
335
355
  if (s.type === "logo")
336
- return new V(s);
337
- O(s, "Unknown layer type");
356
+ return new P(s);
357
+ B(s, "Unknown layer type");
338
358
  }).filter(Boolean);
339
359
  }
340
360
  }
341
361
  export {
342
- A as BarLayer,
343
- M as BinnedDotsLayer,
344
- G as BoxLayer,
345
- Z as DiscreteSettingsImpl,
362
+ q as BarLayer,
363
+ I as BinnedDotsLayer,
364
+ F as BoxLayer,
365
+ ee as DiscreteSettingsImpl,
346
366
  T as DotLayer,
347
- q as ErrorBarLayer,
348
- D as LineLayer,
349
- V as LogoPlotLayer,
350
- W as PairedPointsLayer,
351
- I as SinaLayer,
352
- P as StackedBarLayer,
353
- _ as StatLayer,
354
- B as ViolinLayer
367
+ D as ErrorBarLayer,
368
+ A as LineLayer,
369
+ P as LogoPlotLayer,
370
+ M as PairedPointsLayer,
371
+ _ as SinaLayer,
372
+ W as StackedAreaLayer,
373
+ V as StackedBarLayer,
374
+ H as StatLayer,
375
+ G as ViolinLayer
355
376
  };
356
377
  //# sourceMappingURL=DiscreteSettingsImpl.js.map