@milaboratories/graph-maker 1.1.157 → 1.1.158

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 (65) hide show
  1. package/dist/GraphMaker/constantsCommon.d.ts +1 -0
  2. package/dist/GraphMaker/constantsCommon.d.ts.map +1 -1
  3. package/dist/GraphMaker/constantsCommon.js +17 -16
  4. package/dist/GraphMaker/constantsCommon.js.map +1 -1
  5. package/dist/GraphMaker/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue.d.ts.map +1 -1
  6. package/dist/GraphMaker/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue.js +104 -93
  7. package/dist/GraphMaker/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue.js.map +1 -1
  8. package/dist/GraphMaker/index.vue.js +33 -33
  9. package/dist/GraphMaker/index.vue.js.map +1 -1
  10. package/dist/GraphMaker/utils/createChartSettingsForRender/composeHeatmapSettings.d.ts +1 -0
  11. package/dist/GraphMaker/utils/createChartSettingsForRender/composeHeatmapSettings.d.ts.map +1 -1
  12. package/dist/GraphMaker/utils/createChartSettingsForRender/composeHeatmapSettings.js +11 -11
  13. package/dist/GraphMaker/utils/createChartSettingsForRender/composeHeatmapSettings.js.map +1 -1
  14. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/ChartRenderer.js +136 -135
  15. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/ChartRenderer.js.map +1 -1
  16. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/HeatmapSettingsImpl.js +2 -2
  17. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/HeatmapSettingsImpl.js.map +1 -1
  18. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Annotations/Annotation.js +115 -107
  19. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Annotations/Annotation.js.map +1 -1
  20. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Annotations/AnnotationCellsCanvas.js +99 -0
  21. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Annotations/AnnotationCellsCanvas.js.map +1 -0
  22. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Annotations/AnnotationCellsSvg.js +57 -0
  23. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Annotations/AnnotationCellsSvg.js.map +1 -0
  24. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Annotations/index.js +43 -43
  25. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Annotations/index.js.map +1 -1
  26. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/CanvasCells.js +85 -0
  27. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/CanvasCells.js.map +1 -0
  28. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Captions/AxisCaptions.js +5 -5
  29. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Captions/GroupCaptions.js +16 -16
  30. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Chart.js +191 -197
  31. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Chart.js.map +1 -1
  32. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/ChartsGroup.js +29 -27
  33. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/ChartsGroup.js.map +1 -1
  34. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/SvgCells.js +38 -0
  35. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/SvgCells.js.map +1 -0
  36. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/tooltipUtils.js +44 -0
  37. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/tooltipUtils.js.map +1 -0
  38. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/constants.js +16 -15
  39. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/constants.js.map +1 -1
  40. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/getCells.js +63 -66
  41. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/getCells.js.map +1 -1
  42. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/index.js +64 -62
  43. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/index.js.map +1 -1
  44. package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/utils/calculateChartSideElementSizes.js +9 -9
  45. package/dist/node_modules/@milaboratories/miplots4/dist/histogram/components/ChartsGroup.js +14 -14
  46. package/dist/node_modules/@milaboratories/miplots4/dist/types/heatmap.js +5 -4
  47. package/dist/node_modules/@milaboratories/miplots4/dist/types/heatmap.js.map +1 -1
  48. package/dist/node_modules/@milaboratories/pf-plots/dist/constants.js +10 -8
  49. package/dist/node_modules/@milaboratories/pf-plots/dist/constants.js.map +1 -1
  50. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/ComponentController.js +21 -21
  51. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/bubble.js +19 -19
  52. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/heatmap.js +8 -8
  53. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/scatterplot-umap.js +9 -9
  54. package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/scatterplot.js +7 -7
  55. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/blob.js +2 -2
  56. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/blob.js.map +1 -1
  57. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/spec.js +59 -57
  58. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/spec.js.map +1 -1
  59. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/dist/components/PlDataTable.js.map +1 -1
  60. package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/dist/render/util/label.js +13 -13
  61. package/dist/node_modules/@milaboratories/pf-plots/dist/pframe/ColumnsProvider.js +137 -133
  62. package/dist/node_modules/@milaboratories/pf-plots/dist/pframe/ColumnsProvider.js.map +1 -1
  63. package/dist/node_modules/@milaboratories/pf-plots/dist/utils.js +74 -74
  64. package/dist/node_modules/@milaboratories/pf-plots/dist/utils.js.map +1 -1
  65. package/package.json +3 -3
@@ -1,72 +1,72 @@
1
- import { defineComponent as P, computed as m, createElementBlock as n, openBlock as u, createElementVNode as a, createVNode as s, withCtx as y, createCommentVNode as r, unref as l } from "vue";
2
- import { PlBtnGroup as d, PlTextField as A, Slider as w } from "@platforma-sdk/ui-vue";
3
- import { useStore as R } from "../../store.js";
1
+ import { defineComponent as R, computed as r, createElementBlock as n, openBlock as u, createElementVNode as a, createVNode as s, withCtx as b, createCommentVNode as m, unref as l, createTextVNode as F } from "vue";
2
+ import { PlBtnGroup as d, PlTextField as A, Slider as w, PlCheckbox as B } from "@platforma-sdk/ui-vue";
3
+ import { useStore as z } from "../../store.js";
4
4
  import L from "../../components/CollapsableBlock.vue.js";
5
5
  import C from "../../icons/Right.vue.js";
6
6
  import U from "../../icons/Down.vue.js";
7
7
  import p from "../../components/BtnIconGroup.vue.js";
8
- import B from "../../icons/AlignLeft.vue.js";
9
- import z from "../../icons/AlignCenter.vue.js";
10
- import G from "../../icons/AlignRight.vue.js";
11
- import H from "../../icons/FrameFull.vue.js";
12
- import h from "../../icons/FrameEmpty.vue.js";
13
- import D from "../../icons/Rotation0.vue.js";
14
- import Z from "../../icons/Rotation45.vue.js";
15
- import W from "../../icons/Rotation90.vue.js";
16
- const $ = { class: "axes-settings-list" }, j = { class: "axes-settings-options-row block" }, q = {
8
+ import G from "../../icons/AlignLeft.vue.js";
9
+ import H from "../../icons/AlignCenter.vue.js";
10
+ import h from "../../icons/AlignRight.vue.js";
11
+ import D from "../../icons/FrameFull.vue.js";
12
+ import Z from "../../icons/FrameEmpty.vue.js";
13
+ import W from "../../icons/Rotation0.vue.js";
14
+ import $ from "../../icons/Rotation45.vue.js";
15
+ import j from "../../icons/Rotation90.vue.js";
16
+ const q = { class: "axes-settings-list" }, J = { class: "axes-settings-options-row block" }, K = {
17
17
  key: 0,
18
18
  class: "axes-settings-input"
19
- }, J = { class: "axes-settings-options-row" }, K = { class: "axes-settings-options-row" }, Q = {
19
+ }, Q = { class: "axes-settings-options-row" }, ee = { class: "axes-settings-options-row" }, le = {
20
20
  key: 0,
21
21
  class: "axes-settings-options-row"
22
- }, ee = { class: "axes-settings-options-row block" }, le = { key: 1 }, te = { class: "axes-settings-options-row block" }, oe = { class: "axes-settings-options-row block" }, se = {
22
+ }, te = { class: "axes-settings-options-row block" }, oe = { key: 1 }, se = { class: "axes-settings-options-row block" }, ae = { class: "axes-settings-options-row block" }, ie = {
23
23
  key: 2,
24
24
  class: "axes-settings-options-row"
25
- }, ae = { class: "axes-settings-options-row" }, ie = {
25
+ }, ne = { class: "axes-settings-options-row" }, ue = {
26
26
  key: 0,
27
27
  class: "axes-settings-options-row"
28
- }, ne = { class: "axes-settings-options-row block" }, ue = { key: 1 }, de = { class: "axes-settings-options-row block" }, me = { class: "axes-settings-options-row block" }, re = {
28
+ }, de = { class: "axes-settings-options-row block" }, re = { key: 1 }, me = { class: "axes-settings-options-row block" }, pe = { class: "axes-settings-options-row block" }, xe = {
29
29
  key: 2,
30
30
  class: "axes-settings-options-row"
31
- }, pe = { class: "other" }, xe = { class: "axes-settings-options-row" }, ve = { class: "axes-settings-options-row" }, ge = { class: "axes-settings-options-row block" }, Y = 4, _ = 50, O = 20, _e = /* @__PURE__ */ P({
31
+ }, ve = { class: "other" }, ge = { class: "axes-settings-options-row" }, Ve = { class: "axes-settings-options-row" }, fe = { class: "axes-settings-options-row" }, be = { class: "axes-settings-options-row block" }, Y = 4, O = 50, _ = 20, Ne = /* @__PURE__ */ R({
32
32
  __name: "HeatmapAxesSettingsForm",
33
- setup(Ve) {
34
- const x = R(), o = x.value.reactive.axesSettings, b = {
33
+ setup(Se) {
34
+ const x = z(), o = x.value.reactive.axesSettings, S = {
35
35
  height: 40,
36
36
  horizontalPadding: 12,
37
37
  defaultState: "open"
38
38
  }, I = [
39
- { value: "left", icon: B },
40
- { value: "center", icon: z },
41
- { value: "right", icon: G }
39
+ { value: "left", icon: G },
40
+ { value: "center", icon: H },
41
+ { value: "right", icon: h }
42
42
  ], v = [
43
- { value: 0, icon: D },
44
- { value: 45, icon: Z },
45
- { value: 90, icon: W }
46
- ], S = [
43
+ { value: 0, icon: W },
44
+ { value: 45, icon: $ },
45
+ { value: 90, icon: j }
46
+ ], T = [
47
47
  { value: "auto", text: "Auto" },
48
48
  { value: "custom", text: "Custom" },
49
49
  { value: "hidden", text: "Hide" }
50
50
  ], N = [
51
- { value: "none", icon: h },
52
- { value: "full", icon: H }
51
+ { value: "none", icon: Z },
52
+ { value: "full", icon: D }
53
53
  ], M = [
54
54
  { text: "X", value: "x" },
55
55
  { text: "Y", value: "y" },
56
56
  { text: "XY", value: "xy" },
57
57
  { text: "None", value: "none" }
58
- ], X = [
58
+ ], k = [
59
59
  { text: "ascending", value: "asc" },
60
60
  { text: "descending", value: "desc" }
61
- ], k = [
61
+ ], X = [
62
62
  { text: "auto", value: "auto" },
63
63
  { text: "custom", value: "custom" }
64
- ], g = m(() => x.value.reactive.layersSettings.heatmapClustered), F = m(() => M.filter((i) => x.value.reactive.template !== "heatmapClustered" ? !0 : g.value.dendrogramX && g.value.dendrogramY ? i.value !== "x" && i.value !== "xy" && i.value !== "y" : g.value.dendrogramX ? i.value !== "x" && i.value !== "xy" : g.value.dendrogramY ? i.value !== "y" && i.value !== "xy" : !0)), E = m(() => x.value.reactive.optionsState.components), c = m(() => o.axisX.cellSize === null ? "auto" : "custom"), V = m({
64
+ ], g = r(() => x.value.reactive.layersSettings.heatmapClustered), P = r(() => M.filter((i) => x.value.reactive.template !== "heatmapClustered" ? !0 : g.value.dendrogramX && g.value.dendrogramY ? i.value !== "x" && i.value !== "xy" && i.value !== "y" : g.value.dendrogramX ? i.value !== "x" && i.value !== "xy" : g.value.dendrogramY ? i.value !== "y" && i.value !== "xy" : !0)), E = r(() => x.value.reactive.optionsState.components), c = r(() => o.axisX.cellSize === null ? "auto" : "custom"), V = r({
65
65
  get: () => o.axisX.cellSize,
66
66
  set: (i) => {
67
67
  o.axisX.cellSize = i;
68
68
  }
69
- }), T = m(() => o.axisY.cellSize === null ? "auto" : "custom"), f = m({
69
+ }), y = r(() => o.axisY.cellSize === null ? "auto" : "custom"), f = r({
70
70
  get: () => o.axisY.cellSize,
71
71
  set: (i) => {
72
72
  o.axisY.cellSize = i;
@@ -74,35 +74,35 @@ const $ = { class: "axes-settings-list" }, j = { class: "axes-settings-options-r
74
74
  });
75
75
  return (i, e) => (u(), n("div", {
76
76
  class: "axes-form",
77
- onClick: e[22] || (e[22] = (t) => t.stopPropagation())
77
+ onClick: e[23] || (e[23] = (t) => t.stopPropagation())
78
78
  }, [
79
- e[29] || (e[29] = a("h3", { class: "axes-title" }, " Axes ", -1)),
80
- a("div", $, [
79
+ e[31] || (e[31] = a("h3", { class: "axes-title" }, " Axes ", -1)),
80
+ a("div", q, [
81
81
  s(L, {
82
82
  title: "Title",
83
- settings: b,
83
+ settings: S,
84
84
  icon: C,
85
85
  "icon-open": U
86
86
  }, {
87
- default: y(() => [
88
- a("div", j, [
87
+ default: b(() => [
88
+ a("div", J, [
89
89
  s(l(d), {
90
90
  label: "Title",
91
- options: S,
91
+ options: T,
92
92
  modelValue: l(o).title.mode,
93
93
  "onUpdate:modelValue": e[0] || (e[0] = (t) => l(o).title.mode = t)
94
94
  }, null, 8, ["modelValue"])
95
95
  ]),
96
- l(o).title.mode === "custom" ? (u(), n("div", q, [
96
+ l(o).title.mode === "custom" ? (u(), n("div", K, [
97
97
  s(l(A), {
98
98
  label: "Chart title",
99
99
  placeholder: "Chart title",
100
100
  modelValue: l(o).title.value,
101
101
  "onUpdate:modelValue": e[1] || (e[1] = (t) => l(o).title.value = t)
102
102
  }, null, 8, ["modelValue"])
103
- ])) : r("", !0),
104
- a("div", J, [
105
- e[23] || (e[23] = a("span", null, "Alignment", -1)),
103
+ ])) : m("", !0),
104
+ a("div", Q, [
105
+ e[24] || (e[24] = a("span", null, "Alignment", -1)),
106
106
  s(p, {
107
107
  options: I,
108
108
  modelValue: l(o).title.position,
@@ -114,162 +114,173 @@ const $ = { class: "axes-settings-list" }, j = { class: "axes-settings-options-r
114
114
  }),
115
115
  s(L, {
116
116
  title: "X-axis",
117
- settings: b,
117
+ settings: S,
118
118
  icon: C,
119
119
  "icon-open": U
120
120
  }, {
121
- default: y(() => [
122
- a("div", K, [
123
- e[24] || (e[24] = a("span", null, "Labels rotation", -1)),
121
+ default: b(() => [
122
+ a("div", ee, [
123
+ e[25] || (e[25] = a("span", null, "Labels rotation", -1)),
124
124
  s(p, {
125
125
  options: v,
126
126
  modelValue: l(o).axisX.axisLabelsAngle,
127
127
  "onUpdate:modelValue": e[3] || (e[3] = (t) => l(o).axisX.axisLabelsAngle = t)
128
128
  }, null, 8, ["modelValue"])
129
129
  ]),
130
- E.value.xGroupBy.selectorStates.length ? (u(), n("div", Q, [
131
- e[25] || (e[25] = a("span", null, "Group labels rotation", -1)),
130
+ E.value.xGroupBy.selectorStates.length ? (u(), n("div", le, [
131
+ e[26] || (e[26] = a("span", null, "Group labels rotation", -1)),
132
132
  s(p, {
133
133
  options: v,
134
134
  modelValue: l(o).axisX.groupLabelsAngle,
135
135
  "onUpdate:modelValue": e[4] || (e[4] = (t) => l(o).axisX.groupLabelsAngle = t)
136
136
  }, null, 8, ["modelValue"])
137
- ])) : r("", !0),
138
- a("div", ee, [
137
+ ])) : m("", !0),
138
+ a("div", te, [
139
139
  s(l(d), {
140
140
  label: "Title",
141
- options: S,
141
+ options: T,
142
142
  modelValue: l(o).axisX.titleMode,
143
143
  "onUpdate:modelValue": e[5] || (e[5] = (t) => l(o).axisX.titleMode = t)
144
144
  }, null, 8, ["modelValue"])
145
145
  ]),
146
- l(o).axisX.titleMode === "custom" ? (u(), n("div", le, [
146
+ l(o).axisX.titleMode === "custom" ? (u(), n("div", oe, [
147
147
  s(l(A), {
148
148
  label: "Text",
149
149
  placeholder: "Type",
150
150
  modelValue: l(o).axisX.customTitle,
151
151
  "onUpdate:modelValue": e[6] || (e[6] = (t) => l(o).axisX.customTitle = t)
152
152
  }, null, 8, ["modelValue"])
153
- ])) : r("", !0),
154
- a("div", te, [
153
+ ])) : m("", !0),
154
+ a("div", se, [
155
155
  s(l(d), {
156
156
  label: "Sorting",
157
- options: X,
157
+ options: k,
158
158
  modelValue: l(o).axisX.sorting,
159
159
  "onUpdate:modelValue": e[7] || (e[7] = (t) => l(o).axisX.sorting = t)
160
160
  }, null, 8, ["modelValue"])
161
161
  ]),
162
- a("div", oe, [
162
+ a("div", ae, [
163
163
  s(l(d), {
164
164
  label: "Cell width mode",
165
- options: k,
165
+ options: X,
166
166
  modelValue: c.value,
167
167
  "onUpdate:modelValue": [
168
168
  e[8] || (e[8] = (t) => c.value = t),
169
169
  e[9] || (e[9] = (t) => {
170
- V.value = t === "auto" ? null : O;
170
+ V.value = t === "auto" ? null : _;
171
171
  })
172
172
  ]
173
173
  }, null, 8, ["modelValue"])
174
174
  ]),
175
- c.value === "custom" && V.value !== null ? (u(), n("div", se, [
175
+ c.value === "custom" && V.value !== null ? (u(), n("div", ie, [
176
176
  s(l(w), {
177
177
  label: "Cell width",
178
178
  min: Y,
179
- max: _,
179
+ max: O,
180
180
  modelValue: V.value,
181
181
  "onUpdate:modelValue": e[10] || (e[10] = (t) => V.value = t),
182
182
  measure: "px",
183
183
  style: { width: "100%" }
184
184
  }, null, 8, ["modelValue"])
185
- ])) : r("", !0)
185
+ ])) : m("", !0)
186
186
  ]),
187
187
  _: 1
188
188
  }),
189
189
  s(L, {
190
190
  title: "Y-axis",
191
- settings: b,
191
+ settings: S,
192
192
  icon: C,
193
193
  "icon-open": U
194
194
  }, {
195
- default: y(() => [
196
- a("div", ae, [
197
- e[26] || (e[26] = a("span", null, "Labels rotation", -1)),
195
+ default: b(() => [
196
+ a("div", ne, [
197
+ e[27] || (e[27] = a("span", null, "Labels rotation", -1)),
198
198
  s(p, {
199
199
  options: v,
200
200
  modelValue: l(o).axisY.axisLabelsAngle,
201
201
  "onUpdate:modelValue": e[11] || (e[11] = (t) => l(o).axisY.axisLabelsAngle = t)
202
202
  }, null, 8, ["modelValue"])
203
203
  ]),
204
- E.value.yGroupBy.selectorStates.length ? (u(), n("div", ie, [
205
- e[27] || (e[27] = a("span", null, "Group labels rotation", -1)),
204
+ E.value.yGroupBy.selectorStates.length ? (u(), n("div", ue, [
205
+ e[28] || (e[28] = a("span", null, "Group labels rotation", -1)),
206
206
  s(p, {
207
207
  options: v,
208
208
  modelValue: l(o).axisY.groupLabelsAngle,
209
209
  "onUpdate:modelValue": e[12] || (e[12] = (t) => l(o).axisY.groupLabelsAngle = t)
210
210
  }, null, 8, ["modelValue"])
211
- ])) : r("", !0),
212
- a("div", ne, [
211
+ ])) : m("", !0),
212
+ a("div", de, [
213
213
  s(l(d), {
214
214
  label: "Title",
215
- options: S,
215
+ options: T,
216
216
  modelValue: l(o).axisY.titleMode,
217
217
  "onUpdate:modelValue": e[13] || (e[13] = (t) => l(o).axisY.titleMode = t)
218
218
  }, null, 8, ["modelValue"])
219
219
  ]),
220
- l(o).axisY.titleMode === "custom" ? (u(), n("div", ue, [
220
+ l(o).axisY.titleMode === "custom" ? (u(), n("div", re, [
221
221
  s(l(A), {
222
222
  label: "Text",
223
223
  placeholder: "Type",
224
224
  modelValue: l(o).axisY.customTitle,
225
225
  "onUpdate:modelValue": e[14] || (e[14] = (t) => l(o).axisY.customTitle = t)
226
226
  }, null, 8, ["modelValue"])
227
- ])) : r("", !0),
228
- a("div", de, [
227
+ ])) : m("", !0),
228
+ a("div", me, [
229
229
  s(l(d), {
230
230
  label: "Sorting",
231
- options: X,
231
+ options: k,
232
232
  modelValue: l(o).axisY.sorting,
233
233
  "onUpdate:modelValue": e[15] || (e[15] = (t) => l(o).axisY.sorting = t)
234
234
  }, null, 8, ["modelValue"])
235
235
  ]),
236
- a("div", me, [
236
+ a("div", pe, [
237
237
  s(l(d), {
238
238
  label: "Cell height mode",
239
- options: k,
240
- modelValue: T.value,
239
+ options: X,
240
+ modelValue: y.value,
241
241
  "onUpdate:modelValue": [
242
- e[16] || (e[16] = (t) => T.value = t),
242
+ e[16] || (e[16] = (t) => y.value = t),
243
243
  e[17] || (e[17] = (t) => {
244
- f.value = t === "auto" ? null : O;
244
+ f.value = t === "auto" ? null : _;
245
245
  })
246
246
  ]
247
247
  }, null, 8, ["modelValue"])
248
248
  ]),
249
- T.value === "custom" && f.value !== null ? (u(), n("div", re, [
249
+ y.value === "custom" && f.value !== null ? (u(), n("div", xe, [
250
250
  s(l(w), {
251
251
  label: "Cell height",
252
252
  min: Y,
253
- max: _,
253
+ max: O,
254
254
  modelValue: f.value,
255
255
  "onUpdate:modelValue": e[18] || (e[18] = (t) => f.value = t),
256
256
  measure: "px",
257
257
  style: { width: "100%" }
258
258
  }, null, 8, ["modelValue"])
259
- ])) : r("", !0)
259
+ ])) : m("", !0)
260
260
  ]),
261
261
  _: 1
262
262
  }),
263
- a("div", pe, [
264
- a("div", xe, [
265
- e[28] || (e[28] = a("span", null, "Frame", -1)),
263
+ a("div", ve, [
264
+ a("div", ge, [
265
+ s(l(B), {
266
+ modelValue: l(o).other.canvasRenderMode,
267
+ "onUpdate:modelValue": e[19] || (e[19] = (t) => l(o).other.canvasRenderMode = t)
268
+ }, {
269
+ default: b(() => e[29] || (e[29] = [
270
+ F("Render as canvas")
271
+ ])),
272
+ _: 1
273
+ }, 8, ["modelValue"])
274
+ ]),
275
+ a("div", Ve, [
276
+ e[30] || (e[30] = a("span", null, "Frame", -1)),
266
277
  s(p, {
267
278
  options: N,
268
279
  modelValue: l(o).other.frame,
269
- "onUpdate:modelValue": e[19] || (e[19] = (t) => l(o).other.frame = t)
280
+ "onUpdate:modelValue": e[20] || (e[20] = (t) => l(o).other.frame = t)
270
281
  }, null, 8, ["modelValue"])
271
282
  ]),
272
- a("div", ve, [
283
+ a("div", fe, [
273
284
  s(l(w), {
274
285
  style: { width: "100%" },
275
286
  label: "Facet column count",
@@ -279,15 +290,15 @@ const $ = { class: "axes-settings-list" }, j = { class: "axes-settings-options-r
279
290
  breakpoints: !0,
280
291
  mode: "input",
281
292
  modelValue: l(o).other.facetColumns,
282
- "onUpdate:modelValue": e[20] || (e[20] = (t) => l(o).other.facetColumns = t)
293
+ "onUpdate:modelValue": e[21] || (e[21] = (t) => l(o).other.facetColumns = t)
283
294
  }, null, 8, ["modelValue"])
284
295
  ]),
285
- a("div", ge, [
296
+ a("div", be, [
286
297
  s(l(d), {
287
298
  label: "Facet shared by",
288
- options: F.value,
299
+ options: P.value,
289
300
  modelValue: l(o).other.facetSharedBy,
290
- "onUpdate:modelValue": e[21] || (e[21] = (t) => l(o).other.facetSharedBy = t)
301
+ "onUpdate:modelValue": e[22] || (e[22] = (t) => l(o).other.facetSharedBy = t)
291
302
  }, null, 8, ["options", "modelValue"])
292
303
  ])
293
304
  ])
@@ -296,6 +307,6 @@ const $ = { class: "axes-settings-list" }, j = { class: "axes-settings-options-r
296
307
  }
297
308
  });
298
309
  export {
299
- _e as default
310
+ Ne as default
300
311
  };
301
312
  //# sourceMappingURL=HeatmapAxesSettingsForm.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HeatmapAxesSettingsForm.vue.js","sources":["../../../../src/GraphMaker/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { Slider, PlToggleSwitch } from '@platforma-sdk/ui-vue';\nimport { useStore } from '../../store';\nimport CollapsableBlock from '../../components/CollapsableBlock.vue';\nimport Right from '../../icons/Right.vue';\nimport Down from '../../icons/Down.vue';\nimport { PlTextField, PlBtnGroup } from '@platforma-sdk/ui-vue';\nimport BtnIconGroup from '../../components/BtnIconGroup.vue';\nimport AlignLeft from '../../icons/AlignLeft.vue';\nimport AlignCenter from '../../icons/AlignCenter.vue';\nimport AlignRight from '../../icons/AlignRight.vue';\nimport FrameFull from '../../icons/FrameFull.vue';\nimport FrameEmpty from '../../icons/FrameEmpty.vue';\nimport Rotation0 from '../../icons/Rotation0.vue';\nimport Rotation45 from '../../icons/Rotation45.vue';\nimport Rotation90 from '../../icons/Rotation90.vue';\nimport FrameLeft from '../../icons/FrameLeft.vue';\nimport FrameBottom from '../../icons/FrameBottom.vue';\nimport FrameLeftBottom from '../../icons/FrameLeftBottom.vue';\nimport { computed } from 'vue';\nimport { HeatmapUIState } from '@milaboratories/pf-plots';\n\nconst MIN_CELL_SIZE = 4;\nconst MAX_CELL_SIZE = 50;\nconst DEFAULT_CELL_SIZE = 20;\n\nconst store = useStore();\nconst settings = store.value.reactive.axesSettings;\nconst blockSettings = {\n height: 40,\n horizontalPadding: 12,\n defaultState: 'open' as 'open' | 'close'\n};\nconst OPTIONS_TITLE_ALIGN = [\n {value: 'left', icon: AlignLeft},\n {value: 'center', icon: AlignCenter},\n {value: 'right', icon: AlignRight},\n]\n// const OPTIONS_FACET_FRAME = [\n// {value: 'empty', icon: FrameEmpty},\n// {value: 'full', icon: FrameFull},\n// ]\nconst OPTIONS_HEATMAP_ROTATION = [\n { value: 0, icon: Rotation0 },\n { value: 45, icon: Rotation45 },\n { value: 90, icon: Rotation90 }\n];\nconst OPTIONS_AXIS_LABEL_MODE = [\n { value: 'auto', text: 'Auto' },\n { value: 'custom', text: 'Custom' },\n { value: 'hidden', text: 'Hide' }\n];\nconst OPTIONS_CHART_FRAME = [\n { value: 'none', icon: FrameEmpty },\n { value: 'full', icon: FrameFull }\n];\nconst OPTIONS_FACET_SHARED = [\n { text: 'X', value: 'x' },\n { text: 'Y', value: 'y' },\n { text: 'XY', value: 'xy' },\n { text: 'None', value: 'none' }\n];\nconst OPTIONS_SORTING = [\n { text: 'ascending', value: 'asc' },\n { text: 'descending', value: 'desc' },\n];\nconst CELL_SIZE_OPTIONS = [\n { text: 'auto', value: 'auto' },\n { text: 'custom', value: 'custom' },\n];\n\nconst layer = computed(() => store.value.reactive.layersSettings.heatmapClustered);\nconst optionsFacetShared = computed(() => OPTIONS_FACET_SHARED.filter((option) => {\n if (store.value.reactive.template !== 'heatmapClustered') {\n return true;\n }\n if (layer.value.dendrogramX && layer.value.dendrogramY) {\n return option.value !== 'x' && option.value !== 'xy' && option.value !== 'y';\n }\n if (layer.value.dendrogramX) {\n return option.value !== 'x' && option.value !== 'xy';\n }\n if (layer.value.dendrogramY) {\n return option.value !== 'y' && option.value !== 'xy';\n }\n return true;\n}));\n\nconst options = computed(() => (store.value.reactive.optionsState.components as HeatmapUIState['components']));\n\nconst cellWidthMode = computed(() => settings.axisX.cellSize === null ? 'auto' : 'custom');\nconst cellWidth = computed({\n get: () => settings.axisX.cellSize,\n set: (v) => {\n settings.axisX.cellSize = v;\n }\n});\nconst cellHeightMode = computed(() => settings.axisY.cellSize === null ? 'auto' : 'custom');\nconst cellHeight = computed({\n get: () => settings.axisY.cellSize,\n set: (v) => {\n settings.axisY.cellSize = v;\n }\n});\n</script>\n\n<template>\n <div class=\"axes-form\" @click=\"(e) => e.stopPropagation()\">\n <h3 class=\"axes-title\">\n Axes\n </h3>\n <div class=\"axes-settings-list\">\n <!-- Chart title -->\n <collapsable-block title=\"Title\" :settings=\"blockSettings\" :icon=\"Right\" :icon-open=\"Down\">\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Title\"\n :options=\"OPTIONS_AXIS_LABEL_MODE\"\n v-model=\"settings.title.mode\"\n />\n </div>\n <div class=\"axes-settings-input\" v-if=\"settings.title.mode === 'custom'\">\n <pl-text-field\n label=\"Chart title\"\n placeholder=\"Chart title\"\n v-model=\"settings.title.value\"\n />\n </div>\n <div class=\"axes-settings-options-row\">\n <span>Alignment</span>\n <btn-icon-group :options=\"OPTIONS_TITLE_ALIGN\" v-model=\"settings.title.position\"/>\n </div>\n </collapsable-block>\n <!-- X axis settings-->\n <collapsable-block title=\"X-axis\" :settings=\"blockSettings\" :icon=\"Right\" :icon-open=\"Down\">\n <div class=\"axes-settings-options-row\">\n <span>Labels rotation</span>\n <btn-icon-group :options=\"OPTIONS_HEATMAP_ROTATION\" v-model=\"settings.axisX.axisLabelsAngle\" />\n </div>\n <div class=\"axes-settings-options-row\" v-if=\"options.xGroupBy.selectorStates.length\">\n <span>Group labels rotation</span>\n <btn-icon-group :options=\"OPTIONS_HEATMAP_ROTATION\" v-model=\"settings.axisX.groupLabelsAngle\" />\n </div>\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Title\"\n :options=\"OPTIONS_AXIS_LABEL_MODE\"\n v-model=\"settings.axisX.titleMode\"\n />\n </div>\n <div v-if=\"settings.axisX.titleMode === 'custom'\">\n <pl-text-field\n label=\"Text\"\n placeholder=\"Type\"\n v-model=\"settings.axisX.customTitle\"\n />\n </div>\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Sorting\"\n :options=\"OPTIONS_SORTING\"\n v-model=\"settings.axisX.sorting\"\n />\n </div>\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Cell width mode\"\n :options=\"CELL_SIZE_OPTIONS\"\n v-model=\"cellWidthMode\"\n @update:model-value=\"(v) => {\n cellWidth = v === 'auto' ? null : DEFAULT_CELL_SIZE;\n }\"\n />\n </div>\n <div class=\"axes-settings-options-row\" v-if=\"cellWidthMode === 'custom' && cellWidth !== null\">\n <Slider label=\"Cell width\" :min=\"MIN_CELL_SIZE\" :max=\"MAX_CELL_SIZE\" v-model=\"cellWidth\" measure=\"px\" :style=\"{width: '100%'}\"/>\n </div>\n </collapsable-block>\n <!-- Y axis settings-->\n <collapsable-block title=\"Y-axis\" :settings=\"blockSettings\" :icon=\"Right\" :icon-open=\"Down\">\n <div class=\"axes-settings-options-row\">\n <span>Labels rotation</span>\n <btn-icon-group :options=\"OPTIONS_HEATMAP_ROTATION\" v-model=\"settings.axisY.axisLabelsAngle\" />\n </div>\n <div class=\"axes-settings-options-row\" v-if=\"options.yGroupBy.selectorStates.length\">\n <span>Group labels rotation</span>\n <btn-icon-group :options=\"OPTIONS_HEATMAP_ROTATION\" v-model=\"settings.axisY.groupLabelsAngle\" />\n </div>\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Title\"\n :options=\"OPTIONS_AXIS_LABEL_MODE\"\n v-model=\"settings.axisY.titleMode\"\n />\n </div>\n <div v-if=\"settings.axisY.titleMode === 'custom'\">\n <pl-text-field\n label=\"Text\"\n placeholder=\"Type\"\n v-model=\"settings.axisY.customTitle\"\n />\n </div>\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Sorting\"\n :options=\"OPTIONS_SORTING\"\n v-model=\"settings.axisY.sorting\"\n />\n </div>\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Cell height mode\"\n :options=\"CELL_SIZE_OPTIONS\"\n v-model=\"cellHeightMode\"\n @update:model-value=\"(v) => {\n cellHeight = v === 'auto' ? null : DEFAULT_CELL_SIZE;\n }\"\n />\n </div>\n <div class=\"axes-settings-options-row\" v-if=\"cellHeightMode === 'custom' && cellHeight !== null\">\n <Slider label=\"Cell height\" :min=\"MIN_CELL_SIZE\" :max=\"MAX_CELL_SIZE\" v-model=\"cellHeight\" measure=\"px\" :style=\"{width: '100%'}\"/>\n </div>\n </collapsable-block>\n <!-- Facet settings-->\n <div class=\"other\">\n <div class=\"axes-settings-options-row\">\n <span>Frame</span>\n <btn-icon-group :options=\"OPTIONS_CHART_FRAME\" v-model=\"settings.other.frame\" />\n </div>\n <div class=\"axes-settings-options-row\">\n <Slider\n :style=\"{width: '100%'}\"\n label=\"Facet column count\"\n :min=\"1\"\n :max=\"6\"\n :step=\"1\"\n :breakpoints=\"true\"\n mode=\"input\"\n v-model=\"settings.other.facetColumns\"\n />\n </div>\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Facet shared by\"\n :options=\"optionsFacetShared\"\n v-model=\"settings.other.facetSharedBy\"\n />\n </div>\n </div>\n </div>\n </div>\n</template>\n"],"names":["MIN_CELL_SIZE","MAX_CELL_SIZE","DEFAULT_CELL_SIZE","store","useStore","settings","blockSettings","OPTIONS_TITLE_ALIGN","AlignLeft","AlignCenter","AlignRight","OPTIONS_HEATMAP_ROTATION","Rotation0","Rotation45","Rotation90","OPTIONS_AXIS_LABEL_MODE","OPTIONS_CHART_FRAME","FrameEmpty","FrameFull","OPTIONS_FACET_SHARED","OPTIONS_SORTING","CELL_SIZE_OPTIONS","layer","computed","optionsFacetShared","option","options","cellWidthMode","cellWidth","v","cellHeightMode","cellHeight"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yKAsBMA,IAAgB,GAChBC,IAAgB,IAChBC,IAAoB;;;AAE1B,UAAMC,IAAQC,EAAA,GACRC,IAAWF,EAAM,MAAM,SAAS,cAChCG,IAAgB;AAAA,MACpB,QAAQ;AAAA,MACR,mBAAmB;AAAA,MACnB,cAAc;AAAA,IAAA,GAEVC,IAAsB;AAAA,MAC1B,EAAC,OAAO,QAAQ,MAAMC,EAAA;AAAA,MACtB,EAAC,OAAO,UAAU,MAAMC,EAAA;AAAA,MACxB,EAAC,OAAO,SAAS,MAAMC,EAAA;AAAA,IAAU,GAM7BC,IAA2B;AAAA,MAC/B,EAAE,OAAO,GAAG,MAAMC,EAAA;AAAA,MAClB,EAAE,OAAO,IAAI,MAAMC,EAAA;AAAA,MACnB,EAAE,OAAO,IAAI,MAAMC,EAAA;AAAA,IAAW,GAE1BC,IAA0B;AAAA,MAC9B,EAAE,OAAO,QAAQ,MAAM,OAAA;AAAA,MACvB,EAAE,OAAO,UAAU,MAAM,SAAA;AAAA,MACzB,EAAE,OAAO,UAAU,MAAM,OAAA;AAAA,IAAO,GAE5BC,IAAsB;AAAA,MAC1B,EAAE,OAAO,QAAQ,MAAMC,EAAA;AAAA,MACvB,EAAE,OAAO,QAAQ,MAAMC,EAAA;AAAA,IA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A,MAC1B,KAAK,CAACwB,MAAM;AACV,QAAAxB,EAAS,MAAM,WAAWwB;AAAA,MAC5B;AAAA,IAAA,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"HeatmapAxesSettingsForm.vue.js","sources":["../../../../src/GraphMaker/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { Slider, PlCheckbox } from '@platforma-sdk/ui-vue';\nimport { useStore } from '../../store';\nimport CollapsableBlock from '../../components/CollapsableBlock.vue';\nimport Right from '../../icons/Right.vue';\nimport Down from '../../icons/Down.vue';\nimport { PlTextField, PlBtnGroup } from '@platforma-sdk/ui-vue';\nimport BtnIconGroup from '../../components/BtnIconGroup.vue';\nimport AlignLeft from '../../icons/AlignLeft.vue';\nimport AlignCenter from '../../icons/AlignCenter.vue';\nimport AlignRight from '../../icons/AlignRight.vue';\nimport FrameFull from '../../icons/FrameFull.vue';\nimport FrameEmpty from '../../icons/FrameEmpty.vue';\nimport Rotation0 from '../../icons/Rotation0.vue';\nimport Rotation45 from '../../icons/Rotation45.vue';\nimport Rotation90 from '../../icons/Rotation90.vue';\nimport FrameLeft from '../../icons/FrameLeft.vue';\nimport FrameBottom from '../../icons/FrameBottom.vue';\nimport FrameLeftBottom from '../../icons/FrameLeftBottom.vue';\nimport { computed } from 'vue';\nimport { HeatmapUIState } from '@milaboratories/pf-plots';\n\nconst MIN_CELL_SIZE = 4;\nconst MAX_CELL_SIZE = 50;\nconst DEFAULT_CELL_SIZE = 20;\n\nconst store = useStore();\nconst settings = store.value.reactive.axesSettings;\nconst blockSettings = {\n height: 40,\n horizontalPadding: 12,\n defaultState: 'open' as 'open' | 'close'\n};\nconst OPTIONS_TITLE_ALIGN = [\n {value: 'left', icon: AlignLeft},\n {value: 'center', icon: AlignCenter},\n {value: 'right', icon: AlignRight},\n]\n// const OPTIONS_FACET_FRAME = [\n// {value: 'empty', icon: FrameEmpty},\n// {value: 'full', icon: FrameFull},\n// ]\nconst OPTIONS_HEATMAP_ROTATION = [\n { value: 0, icon: Rotation0 },\n { value: 45, icon: Rotation45 },\n { value: 90, icon: Rotation90 }\n];\nconst OPTIONS_AXIS_LABEL_MODE = [\n { value: 'auto', text: 'Auto' },\n { value: 'custom', text: 'Custom' },\n { value: 'hidden', text: 'Hide' }\n];\nconst OPTIONS_CHART_FRAME = [\n { value: 'none', icon: FrameEmpty },\n { value: 'full', icon: FrameFull }\n];\nconst OPTIONS_FACET_SHARED = [\n { text: 'X', value: 'x' },\n { text: 'Y', value: 'y' },\n { text: 'XY', value: 'xy' },\n { text: 'None', value: 'none' }\n];\nconst OPTIONS_SORTING = [\n { text: 'ascending', value: 'asc' },\n { text: 'descending', value: 'desc' },\n];\nconst CELL_SIZE_OPTIONS = [\n { text: 'auto', value: 'auto' },\n { text: 'custom', value: 'custom' },\n];\n\nconst layer = computed(() => store.value.reactive.layersSettings.heatmapClustered);\nconst optionsFacetShared = computed(() => OPTIONS_FACET_SHARED.filter((option) => {\n if (store.value.reactive.template !== 'heatmapClustered') {\n return true;\n }\n if (layer.value.dendrogramX && layer.value.dendrogramY) {\n return option.value !== 'x' && option.value !== 'xy' && option.value !== 'y';\n }\n if (layer.value.dendrogramX) {\n return option.value !== 'x' && option.value !== 'xy';\n }\n if (layer.value.dendrogramY) {\n return option.value !== 'y' && option.value !== 'xy';\n }\n return true;\n}));\n\nconst options = computed(() => (store.value.reactive.optionsState.components as HeatmapUIState['components']));\n\nconst cellWidthMode = computed(() => settings.axisX.cellSize === null ? 'auto' : 'custom');\nconst cellWidth = computed({\n get: () => settings.axisX.cellSize,\n set: (v) => {\n settings.axisX.cellSize = v;\n }\n});\nconst cellHeightMode = computed(() => settings.axisY.cellSize === null ? 'auto' : 'custom');\nconst cellHeight = computed({\n get: () => settings.axisY.cellSize,\n set: (v) => {\n settings.axisY.cellSize = v;\n }\n});\n</script>\n\n<template>\n <div class=\"axes-form\" @click=\"(e) => e.stopPropagation()\">\n <h3 class=\"axes-title\">\n Axes\n </h3>\n <div class=\"axes-settings-list\">\n <!-- Chart title -->\n <collapsable-block title=\"Title\" :settings=\"blockSettings\" :icon=\"Right\" :icon-open=\"Down\">\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Title\"\n :options=\"OPTIONS_AXIS_LABEL_MODE\"\n v-model=\"settings.title.mode\"\n />\n </div>\n <div class=\"axes-settings-input\" v-if=\"settings.title.mode === 'custom'\">\n <pl-text-field\n label=\"Chart title\"\n placeholder=\"Chart title\"\n v-model=\"settings.title.value\"\n />\n </div>\n <div class=\"axes-settings-options-row\">\n <span>Alignment</span>\n <btn-icon-group :options=\"OPTIONS_TITLE_ALIGN\" v-model=\"settings.title.position\"/>\n </div>\n </collapsable-block>\n <!-- X axis settings-->\n <collapsable-block title=\"X-axis\" :settings=\"blockSettings\" :icon=\"Right\" :icon-open=\"Down\">\n <div class=\"axes-settings-options-row\">\n <span>Labels rotation</span>\n <btn-icon-group :options=\"OPTIONS_HEATMAP_ROTATION\" v-model=\"settings.axisX.axisLabelsAngle\" />\n </div>\n <div class=\"axes-settings-options-row\" v-if=\"options.xGroupBy.selectorStates.length\">\n <span>Group labels rotation</span>\n <btn-icon-group :options=\"OPTIONS_HEATMAP_ROTATION\" v-model=\"settings.axisX.groupLabelsAngle\" />\n </div>\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Title\"\n :options=\"OPTIONS_AXIS_LABEL_MODE\"\n v-model=\"settings.axisX.titleMode\"\n />\n </div>\n <div v-if=\"settings.axisX.titleMode === 'custom'\">\n <pl-text-field\n label=\"Text\"\n placeholder=\"Type\"\n v-model=\"settings.axisX.customTitle\"\n />\n </div>\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Sorting\"\n :options=\"OPTIONS_SORTING\"\n v-model=\"settings.axisX.sorting\"\n />\n </div>\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Cell width mode\"\n :options=\"CELL_SIZE_OPTIONS\"\n v-model=\"cellWidthMode\"\n @update:model-value=\"(v) => {\n cellWidth = v === 'auto' ? null : DEFAULT_CELL_SIZE;\n }\"\n />\n </div>\n <div class=\"axes-settings-options-row\" v-if=\"cellWidthMode === 'custom' && cellWidth !== null\">\n <Slider label=\"Cell width\" :min=\"MIN_CELL_SIZE\" :max=\"MAX_CELL_SIZE\" v-model=\"cellWidth\" measure=\"px\" :style=\"{width: '100%'}\"/>\n </div>\n </collapsable-block>\n <!-- Y axis settings-->\n <collapsable-block title=\"Y-axis\" :settings=\"blockSettings\" :icon=\"Right\" :icon-open=\"Down\">\n <div class=\"axes-settings-options-row\">\n <span>Labels rotation</span>\n <btn-icon-group :options=\"OPTIONS_HEATMAP_ROTATION\" v-model=\"settings.axisY.axisLabelsAngle\" />\n </div>\n <div class=\"axes-settings-options-row\" v-if=\"options.yGroupBy.selectorStates.length\">\n <span>Group labels rotation</span>\n <btn-icon-group :options=\"OPTIONS_HEATMAP_ROTATION\" v-model=\"settings.axisY.groupLabelsAngle\" />\n </div>\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Title\"\n :options=\"OPTIONS_AXIS_LABEL_MODE\"\n v-model=\"settings.axisY.titleMode\"\n />\n </div>\n <div v-if=\"settings.axisY.titleMode === 'custom'\">\n <pl-text-field\n label=\"Text\"\n placeholder=\"Type\"\n v-model=\"settings.axisY.customTitle\"\n />\n </div>\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Sorting\"\n :options=\"OPTIONS_SORTING\"\n v-model=\"settings.axisY.sorting\"\n />\n </div>\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Cell height mode\"\n :options=\"CELL_SIZE_OPTIONS\"\n v-model=\"cellHeightMode\"\n @update:model-value=\"(v) => {\n cellHeight = v === 'auto' ? null : DEFAULT_CELL_SIZE;\n }\"\n />\n </div>\n <div class=\"axes-settings-options-row\" v-if=\"cellHeightMode === 'custom' && cellHeight !== null\">\n <Slider label=\"Cell height\" :min=\"MIN_CELL_SIZE\" :max=\"MAX_CELL_SIZE\" v-model=\"cellHeight\" measure=\"px\" :style=\"{width: '100%'}\"/>\n </div>\n </collapsable-block>\n <!-- Facet settings-->\n <div class=\"other\">\n <div class=\"axes-settings-options-row\">\n <pl-checkbox v-model=\"settings.other.canvasRenderMode\">Render as canvas</pl-checkbox>\n </div>\n <div class=\"axes-settings-options-row\">\n <span>Frame</span>\n <btn-icon-group :options=\"OPTIONS_CHART_FRAME\" v-model=\"settings.other.frame\" />\n </div>\n <div class=\"axes-settings-options-row\">\n <Slider\n :style=\"{width: '100%'}\"\n label=\"Facet column count\"\n :min=\"1\"\n :max=\"6\"\n :step=\"1\"\n :breakpoints=\"true\"\n mode=\"input\"\n v-model=\"settings.other.facetColumns\"\n />\n </div>\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Facet shared by\"\n :options=\"optionsFacetShared\"\n v-model=\"settings.other.facetSharedBy\"\n />\n </div>\n </div>\n </div>\n </div>\n</template>\n"],"names":["MIN_CELL_SIZE","MAX_CELL_SIZE","DEFAULT_CELL_SIZE","store","useStore","settings","blockSettings","OPTIONS_TITLE_ALIGN","AlignLeft","AlignCenter","AlignRight","OPTIONS_HEATMAP_ROTATION","Rotation0","Rotation45","Rotation90","OPTIONS_AXIS_LABEL_MODE","OPTIONS_CHART_FRAME","FrameEmpty","FrameFull","OPTIONS_FACET_SHARED","OPTIONS_SORTING","CELL_SIZE_OPTIONS","layer","computed","optionsFacetShared","option","options","cellWidthMode","cellWidth","v","cellHeightMode","cellHeight"],"mappings":";;;;;;;;;;;;;;;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