@milaboratories/graph-maker 1.1.140 → 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.
- package/dist/GraphMaker/components/LassoControls/index.vue.js +1 -1
- package/dist/GraphMaker/constantsCommon.d.ts +8 -0
- package/dist/GraphMaker/constantsCommon.d.ts.map +1 -1
- package/dist/GraphMaker/constantsCommon.js +94 -83
- package/dist/GraphMaker/constantsCommon.js.map +1 -1
- package/dist/GraphMaker/forms/LayersForm/Layer/discrete/StackedArea.vue.d.ts +3 -0
- package/dist/GraphMaker/forms/LayersForm/Layer/discrete/StackedArea.vue.d.ts.map +1 -0
- package/dist/GraphMaker/forms/LayersForm/Layer/discrete/StackedArea.vue.js +90 -0
- package/dist/GraphMaker/forms/LayersForm/Layer/discrete/StackedArea.vue.js.map +1 -0
- package/dist/GraphMaker/forms/LayersForm/Layer/discrete/StackedArea.vue2.js +5 -0
- package/dist/GraphMaker/forms/LayersForm/Layer/discrete/StackedArea.vue2.js.map +1 -0
- package/dist/GraphMaker/forms/LayersForm/index.vue.d.ts.map +1 -1
- package/dist/GraphMaker/forms/LayersForm/index.vue.js +45 -43
- package/dist/GraphMaker/forms/LayersForm/index.vue.js.map +1 -1
- package/dist/GraphMaker/index.vue.d.ts.map +1 -1
- package/dist/GraphMaker/index.vue.js +24 -24
- package/dist/GraphMaker/index.vue.js.map +1 -1
- package/dist/GraphMaker/store.js +9 -9
- package/dist/GraphMaker/types.d.ts +1 -1
- package/dist/GraphMaker/types.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeDiscreteSettings.d.ts +16 -0
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeDiscreteSettings.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.js +54 -52
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.js.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/getLayersDataFromForms.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/getLayersDataFromForms.js +84 -70
- package/dist/GraphMaker/utils/createChartSettingsForRender/getLayersDataFromForms.js.map +1 -1
- package/dist/GraphMaker/utils/loadDefaultSources.js +4 -3
- package/dist/GraphMaker/utils/loadDefaultSources.js.map +1 -1
- package/dist/_virtual/_commonjsHelpers.js +3 -5
- package/dist/_virtual/_commonjsHelpers.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/MiPlots.js +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/DiscreteSettingsImpl.js +185 -164
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/DiscreteSettingsImpl.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/components/Chart.js +120 -103
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/components/Chart.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/components/ChartsGroup.js +4 -4
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/components/layers/StackedAreaElement.js +105 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/components/layers/StackedAreaElement.js.map +1 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/components/layers/StackedBarElement.js +66 -59
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/components/layers/StackedBarElement.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/index.js +57 -54
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/index.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/layers/stackedArea.js +17 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/layers/stackedArea.js.map +1 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/types/discrete.js +24 -9
- package/dist/node_modules/@milaboratories/miplots4/dist/types/discrete.js.map +1 -1
- package/dist/node_modules/@milaboratories/pf-plots/dist/_virtual/_commonjsHelpers.js +9 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/_virtual/canonicalize.js +8 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/_virtual/canonicalize.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/_virtual/lodash.js +8 -0
- package/dist/{_virtual → node_modules/@milaboratories/pf-plots/dist/_virtual}/lodash.js.map +1 -1
- package/dist/{_virtual/lodash.js → node_modules/@milaboratories/pf-plots/dist/_virtual/lodash2.js} +1 -1
- package/dist/node_modules/@milaboratories/pf-plots/dist/_virtual/lodash2.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/_virtual/stringify.js +3 -0
- package/dist/{_virtual → node_modules/@milaboratories/pf-plots/dist/_virtual}/stringify.js.map +1 -1
- package/dist/{_virtual/stringify.js → node_modules/@milaboratories/pf-plots/dist/_virtual/stringify2.js} +1 -1
- package/dist/node_modules/@milaboratories/pf-plots/dist/_virtual/stringify2.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/constants.js +15 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/constants.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/ComponentController.js +198 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/ComponentController.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/ControllerBase.js +342 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/ControllerBase.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/bubble.js +278 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/bubble.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/dendro.js +453 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/dendro.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/discrete.js +203 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/discrete.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/heatmap.js +432 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/heatmap.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/histogram.js +170 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/histogram.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/scatterplot-umap.js +315 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/scatterplot-umap.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/scatterplot.js +323 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/scatterplot.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/demoStore.js +11 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/demoStore.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/index.js +36 -3426
- package/dist/node_modules/@milaboratories/pf-plots/dist/index.js.map +1 -1
- package/dist/node_modules/@milaboratories/{pl-error-like → pf-plots/dist/node_modules/@milaboratories/pl-error-like}/dist/index.js +1 -1
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-error-like/dist/index.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/index.js +979 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/index.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/dist/index.js +1599 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/dist/index.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/canonicalize/lib/canonicalize.js +19 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/canonicalize/lib/canonicalize.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/json-stringify-safe/stringify.js +26 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/json-stringify-safe/stringify.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/lodash/lodash.js +3678 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/lodash/lodash.js.map +1 -0
- package/dist/node_modules/{zod → @milaboratories/pf-plots/dist/node_modules/zod}/lib/index.js +1141 -1141
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/zod/lib/index.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/pframe/ColumnsProvider.js +247 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/pframe/ColumnsProvider.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/spec.js +62 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/spec.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/utils.js +286 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/utils.js.map +1 -0
- package/package.json +3 -3
- package/dist/node_modules/@milaboratories/pl-error-like/dist/index.js.map +0 -1
- package/dist/node_modules/@milaboratories/pl-model-common/dist/index.js +0 -584
- package/dist/node_modules/@milaboratories/pl-model-common/dist/index.js.map +0 -1
- package/dist/node_modules/@platforma-sdk/model/dist/index.js +0 -1559
- package/dist/node_modules/@platforma-sdk/model/dist/index.js.map +0 -1
- package/dist/node_modules/json-stringify-safe/stringify.js +0 -20
- package/dist/node_modules/json-stringify-safe/stringify.js.map +0 -1
- package/dist/node_modules/lodash/lodash.js +0 -3678
- package/dist/node_modules/lodash/lodash.js.map +0 -1
- package/dist/node_modules/zod/lib/index.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DEFAULT_HEIGHT_SMALL as
|
|
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
|
|
12
|
-
var
|
|
13
|
-
const
|
|
14
|
-
class
|
|
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
|
|
17
|
-
constructor(
|
|
18
|
-
super(),
|
|
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
|
-
}),
|
|
23
|
+
}), t(this, "aes", {
|
|
24
24
|
showOutliers: !0,
|
|
25
25
|
boxWidth: "auto",
|
|
26
|
-
dotShape:
|
|
27
|
-
dotFill:
|
|
28
|
-
dotSize:
|
|
29
|
-
lineColor:
|
|
30
|
-
fillColor:
|
|
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
|
-
...
|
|
36
|
+
...e.stat
|
|
37
37
|
}, this.aes = {
|
|
38
38
|
...this.aes,
|
|
39
|
-
...
|
|
39
|
+
...e.aes
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
isEqualForCalculation(
|
|
43
|
-
return
|
|
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
|
|
47
|
-
constructor(
|
|
48
|
-
super(),
|
|
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
|
-
}),
|
|
52
|
+
}), t(this, "aes", {
|
|
53
53
|
width: "auto",
|
|
54
|
-
lineColor:
|
|
55
|
-
fillColor:
|
|
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
|
-
...
|
|
64
|
+
...e.stat
|
|
65
65
|
}, this.aes = {
|
|
66
66
|
...this.aes,
|
|
67
|
-
...
|
|
67
|
+
...e.aes
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
isEqualForCalculation(
|
|
71
|
-
return
|
|
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
|
|
75
|
-
constructor(
|
|
76
|
-
super(),
|
|
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:
|
|
81
|
-
dotShape:
|
|
82
|
-
dotSize:
|
|
80
|
+
dotFill: r,
|
|
81
|
+
dotShape: h,
|
|
82
|
+
dotSize: u,
|
|
83
83
|
opacity: 1
|
|
84
84
|
}), this.aes = {
|
|
85
85
|
...this.aes,
|
|
86
|
-
...
|
|
86
|
+
...e.aes
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
|
-
isEqualForCalculation(
|
|
90
|
-
return
|
|
89
|
+
isEqualForCalculation(e) {
|
|
90
|
+
return e.type === "dot" && this.aes.showOutliers === e.aes.showOutliers;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
class
|
|
94
|
-
constructor(
|
|
95
|
-
super(),
|
|
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:
|
|
101
|
-
dotShape:
|
|
102
|
-
dotSize:
|
|
100
|
+
lineColor: r,
|
|
101
|
+
dotShape: h,
|
|
102
|
+
dotSize: u,
|
|
103
103
|
opacity: 1
|
|
104
|
-
}), this.pointsValues =
|
|
104
|
+
}), this.pointsValues = e.pointsValues, this.aes = {
|
|
105
105
|
...this.aes,
|
|
106
|
-
...
|
|
106
|
+
...e.aes
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
-
isEqualForCalculation(
|
|
110
|
-
return
|
|
109
|
+
isEqualForCalculation(e) {
|
|
110
|
+
return e.type === "line" && this.pointsValues === e.pointsValues;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
class
|
|
114
|
-
constructor(
|
|
115
|
-
super(),
|
|
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:
|
|
121
|
-
dotShape:
|
|
122
|
-
dotSize:
|
|
120
|
+
lineColor: r,
|
|
121
|
+
dotShape: h,
|
|
122
|
+
dotSize: u,
|
|
123
123
|
opacity: 1
|
|
124
|
-
}), this.pointsValues =
|
|
124
|
+
}), this.pointsValues = e.pointsValues, this.interval = e.interval, this.aes = {
|
|
125
125
|
...this.aes,
|
|
126
|
-
...
|
|
126
|
+
...e.aes
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
isEqualForCalculation(
|
|
130
|
-
return
|
|
129
|
+
isEqualForCalculation(e) {
|
|
130
|
+
return e.type === "errorbar" && this.pointsValues === e.pointsValues && this.interval === e.interval;
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
class
|
|
134
|
-
constructor(
|
|
135
|
-
super(),
|
|
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:
|
|
139
|
+
lineColor: r,
|
|
140
140
|
opacity: 1
|
|
141
|
-
}), this.height =
|
|
141
|
+
}), this.height = e.height ?? "max", this.aes = {
|
|
142
142
|
...this.aes,
|
|
143
|
-
...
|
|
143
|
+
...e.aes
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
isEqualForCalculation(
|
|
147
|
-
return
|
|
146
|
+
isEqualForCalculation(e) {
|
|
147
|
+
return e.type === "bar" && this.height === e.height;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
class
|
|
151
|
-
constructor(
|
|
152
|
-
super(),
|
|
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:
|
|
155
|
+
fillColor: n,
|
|
156
156
|
lineColor: "none",
|
|
157
157
|
opacity: 1
|
|
158
|
-
}), this.normalize =
|
|
158
|
+
}), this.normalize = e.normalize ?? !1, this.aes = {
|
|
159
159
|
...this.aes,
|
|
160
|
-
...
|
|
160
|
+
...e.aes
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
|
-
isEqualForCalculation(
|
|
164
|
-
return
|
|
163
|
+
isEqualForCalculation(e) {
|
|
164
|
+
return e.type === "stackedBar" && e.normalize === this.normalize;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
class
|
|
168
|
-
constructor(
|
|
169
|
-
super(),
|
|
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:
|
|
189
|
+
fillColor: n,
|
|
172
190
|
lineColor: "none",
|
|
173
191
|
opacity: 1
|
|
174
|
-
}), this.normalize =
|
|
192
|
+
}), this.normalize = e.normalize ?? !1, this.aes = {
|
|
175
193
|
...this.aes,
|
|
176
|
-
...
|
|
194
|
+
...e.aes
|
|
177
195
|
};
|
|
178
196
|
}
|
|
179
|
-
isEqualForCalculation(
|
|
180
|
-
return
|
|
197
|
+
isEqualForCalculation(e) {
|
|
198
|
+
return e.type === "logo" && e.normalize === this.normalize;
|
|
181
199
|
}
|
|
182
200
|
}
|
|
183
|
-
class
|
|
184
|
-
constructor(
|
|
185
|
-
super(),
|
|
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:
|
|
208
|
+
lineColor: r,
|
|
191
209
|
opacity: 1
|
|
192
|
-
}), this.method =
|
|
210
|
+
}), this.method = e.method ?? "dotdensity", this.position = e.position ?? "stack", this.keyColumn = e.keyColumn ?? null, this.aes = {
|
|
193
211
|
...this.aes,
|
|
194
|
-
...
|
|
212
|
+
...e.aes
|
|
195
213
|
};
|
|
196
214
|
}
|
|
197
|
-
isEqualForCalculation(
|
|
215
|
+
isEqualForCalculation(e) {
|
|
198
216
|
var o, l;
|
|
199
|
-
return
|
|
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
|
|
203
|
-
constructor(
|
|
204
|
-
super(),
|
|
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:
|
|
225
|
+
lineColor: r,
|
|
208
226
|
lineShape: "solid",
|
|
209
|
-
dotFill:
|
|
210
|
-
dotSize:
|
|
211
|
-
dotShape:
|
|
227
|
+
dotFill: r,
|
|
228
|
+
dotSize: u,
|
|
229
|
+
dotShape: h,
|
|
212
230
|
opacity: 1
|
|
213
|
-
}), this.linkColumn =
|
|
231
|
+
}), this.linkColumn = e.linkColumn, this.aes = {
|
|
214
232
|
...this.aes,
|
|
215
|
-
...
|
|
233
|
+
...e.aes
|
|
216
234
|
};
|
|
217
235
|
}
|
|
218
|
-
isEqualForCalculation(
|
|
219
|
-
return
|
|
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
|
|
223
|
-
constructor(
|
|
224
|
-
super(),
|
|
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:
|
|
228
|
-
dotSize:
|
|
229
|
-
dotShape:
|
|
245
|
+
dotFill: n,
|
|
246
|
+
dotSize: u,
|
|
247
|
+
dotShape: h,
|
|
230
248
|
opacity: 1
|
|
231
249
|
}), this.aes = {
|
|
232
250
|
...this.aes,
|
|
233
|
-
...
|
|
251
|
+
...e.aes
|
|
234
252
|
};
|
|
235
253
|
}
|
|
236
|
-
isEqualForCalculation(
|
|
237
|
-
return
|
|
254
|
+
isEqualForCalculation(e) {
|
|
255
|
+
return e.type === "sina" && this.aes.showOutliers === e.aes.showOutliers;
|
|
238
256
|
}
|
|
239
257
|
}
|
|
240
|
-
class
|
|
241
|
-
constructor(
|
|
242
|
-
var o, l,
|
|
243
|
-
super(),
|
|
244
|
-
one: ((o =
|
|
245
|
-
two: ((l =
|
|
246
|
-
three: ((
|
|
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(
|
|
250
|
-
return
|
|
267
|
+
isEqualForCalculation(e) {
|
|
268
|
+
return e.type === "stat" && Object.keys(this).every((o) => this[o] === e[o]);
|
|
251
269
|
}
|
|
252
270
|
}
|
|
253
|
-
class
|
|
254
|
-
constructor(
|
|
255
|
-
|
|
256
|
-
var o, l,
|
|
257
|
-
b.parse(
|
|
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
|
-
...
|
|
262
|
-
}, this.facetBy =
|
|
279
|
+
...e.facetSettings
|
|
280
|
+
}, this.facetBy = e.facetBy ?? [], this.chartSettings = {
|
|
263
281
|
size: {
|
|
264
|
-
width: ((o =
|
|
265
|
-
height: ((l =
|
|
266
|
-
outerOffset: ((
|
|
267
|
-
innerOffset: ((d =
|
|
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
|
-
...
|
|
273
|
-
name: ((c =
|
|
290
|
+
...e.title,
|
|
291
|
+
name: ((c = e.title) == null ? void 0 : c.name) ?? "Chart"
|
|
274
292
|
},
|
|
275
|
-
orientation:
|
|
293
|
+
orientation: e.orientation ?? "vertical",
|
|
276
294
|
yAxis: {
|
|
277
|
-
title: ((y =
|
|
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
|
-
...
|
|
300
|
+
...e.yAxis
|
|
283
301
|
},
|
|
284
302
|
xAxis: {
|
|
285
|
-
title: ((f = (m =
|
|
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
|
-
...
|
|
309
|
+
...e.xAxis
|
|
292
310
|
},
|
|
293
|
-
frame: { type: ((
|
|
311
|
+
frame: { type: ((C = e.frame) == null ? void 0 : C.type) ?? "full" },
|
|
294
312
|
legend: {
|
|
295
313
|
show: !0,
|
|
296
314
|
position: "right",
|
|
297
|
-
...
|
|
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
|
-
...
|
|
328
|
+
...e.tooltips
|
|
311
329
|
}
|
|
312
|
-
}, this.layers =
|
|
330
|
+
}, this.layers = e.layers.map((s) => {
|
|
313
331
|
if (s.type === "box")
|
|
314
|
-
return new
|
|
332
|
+
return new F(s);
|
|
315
333
|
if (s.type === "violin")
|
|
316
|
-
return new
|
|
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
|
|
338
|
+
return new A(s);
|
|
321
339
|
if (s.type === "errorbar")
|
|
322
|
-
return new
|
|
340
|
+
return new D(s);
|
|
323
341
|
if (s.type === "bar")
|
|
324
|
-
return new
|
|
342
|
+
return new q(s);
|
|
325
343
|
if (s.type === "stackedBar")
|
|
326
|
-
return new
|
|
344
|
+
return new V(s);
|
|
345
|
+
if (s.type === "stackedArea")
|
|
346
|
+
return new W(s);
|
|
327
347
|
if (s.type === "stat")
|
|
328
|
-
return new
|
|
348
|
+
return new H(s);
|
|
329
349
|
if (s.type === "binnedDots")
|
|
330
|
-
return new
|
|
350
|
+
return new I(s);
|
|
331
351
|
if (s.type === "pairedPoints")
|
|
332
|
-
return new
|
|
352
|
+
return new M(s);
|
|
333
353
|
if (s.type === "sina")
|
|
334
|
-
return new
|
|
354
|
+
return new _(s);
|
|
335
355
|
if (s.type === "logo")
|
|
336
|
-
return new
|
|
337
|
-
|
|
356
|
+
return new P(s);
|
|
357
|
+
B(s, "Unknown layer type");
|
|
338
358
|
}).filter(Boolean);
|
|
339
359
|
}
|
|
340
360
|
}
|
|
341
361
|
export {
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
362
|
+
q as BarLayer,
|
|
363
|
+
I as BinnedDotsLayer,
|
|
364
|
+
F as BoxLayer,
|
|
365
|
+
ee as DiscreteSettingsImpl,
|
|
346
366
|
T as DotLayer,
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
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
|