@astrato-io/visualizations 0.0.0-stage → 0.6.4
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/CHANGELOG.md +23 -0
- package/LICENSE +93 -0
- package/README.md +843 -2
- package/THIRD_PARTY_NOTICES.md +8387 -0
- package/VISUALIZATION_DEFINITIONS.md +2378 -0
- package/chunks/LinearProgress-CUZ0D8_t.js +253 -0
- package/chunks/Radio-Ciu-F4CU.js +957 -0
- package/chunks/ToggleButton-BCJc3Jlc.js +153 -0
- package/chunks/_baseFlatten-DPXPOrea.js +7076 -0
- package/chunks/accessors-DemrDevR.js +128 -0
- package/chunks/app-filter-bar.compiler-j_CVoWTa.js +55 -0
- package/chunks/bar.compiler-oqaPzIut.js +370 -0
- package/chunks/color-settings-ZIvgNTq1.js +10 -0
- package/chunks/coloring-C16AUZEi.js +663 -0
- package/chunks/data-item-resolution-1lvYB5ln.js +53 -0
- package/chunks/debounce-fn-CUixuz45.js +7 -0
- package/chunks/escobar-BGqT1EsE.js +34580 -0
- package/chunks/event-bus-KiSiCJrC.js +2683 -0
- package/chunks/events-WZut5Ow6.js +4 -0
- package/chunks/extend-BKUkc4_i.js +37 -0
- package/chunks/filter.compiler-CuLtc_02.js +60 -0
- package/chunks/filtering-Yq4DEa0t.js +953 -0
- package/chunks/gauge-target-type-BkKXAqkX.js +4 -0
- package/chunks/grouping-type-BX_9Ix5q.js +3 -0
- package/chunks/interfaces-VUY4_yVO.js +8742 -0
- package/chunks/line-settings-DfYTUyPz.js +4 -0
- package/chunks/line.compiler-BpA_6Tc7.js +188 -0
- package/chunks/metadata-CPXdYoln.js +28 -0
- package/chunks/number.compiler-DbkWcG4S.js +44 -0
- package/chunks/pie-uv42Eqal.js +10 -0
- package/chunks/range-DrzdfBX4.js +22 -0
- package/chunks/registry-CExpGJ1N.js +920 -0
- package/chunks/requirements-DNhuShLS.js +6 -0
- package/chunks/rolldown-runtime-DleVn1XH.js +28 -0
- package/chunks/set-coloring-datafield-B3uIS1Pe.js +8 -0
- package/chunks/shared-CKDL4hx9.js +1171 -0
- package/chunks/src-BC7cGcJ-.js +2024 -0
- package/chunks/src-BOS6SqkZ.js +67 -0
- package/chunks/src-C0LgoUWY.js +26105 -0
- package/chunks/src-Cum_2NLV.js +12145 -0
- package/chunks/src-D9XogOrc.js +422 -0
- package/chunks/src-Dun_jXtz.js +10295 -0
- package/chunks/src-DvX5LU9T.js +14742 -0
- package/chunks/standalone-87YV_m9n.js +687 -0
- package/chunks/standalone-BDCwI6Hn.js +4619 -0
- package/chunks/standalone-BH5NqDwp.js +1763 -0
- package/chunks/standalone-BLVAWLNJ.js +385 -0
- package/chunks/standalone-BPomtAVs.js +2 -0
- package/chunks/standalone-BXyBcUOQ.js +2 -0
- package/chunks/standalone-BYm1UjLr.js +140 -0
- package/chunks/standalone-BllF4rDp.js +383 -0
- package/chunks/standalone-BmfMt74U.js +726 -0
- package/chunks/standalone-BqWyrnZI.js +281 -0
- package/chunks/standalone-C85u7U6I.js +340 -0
- package/chunks/standalone-CCNtaJ7s.js +741 -0
- package/chunks/standalone-CDQnr6qT.js +345 -0
- package/chunks/standalone-CNyNHKVx.js +674 -0
- package/chunks/standalone-CY57qwZ-.js +1129 -0
- package/chunks/standalone-CZynjFG7.js +12979 -0
- package/chunks/standalone-D5vnf-9y.js +3943 -0
- package/chunks/standalone-DFPva_ku.js +299 -0
- package/chunks/standalone-DQxxNwF8.js +675 -0
- package/chunks/standalone-DS9T0FZ-.js +830 -0
- package/chunks/standalone-Dx3MLlrO.js +512 -0
- package/chunks/standalone-DzixzZAL.js +411 -0
- package/chunks/standalone-QJ1kKMnO.js +6 -0
- package/chunks/standalone-jiz0L2Dg.js +3855 -0
- package/chunks/standalone-lBm9hQ-q.js +179 -0
- package/chunks/standalone-rJ45Zfl1.js +68 -0
- package/chunks/stroke-dash-UgMEcCS4.js +6 -0
- package/chunks/table.compiler-BrXkm4Fz.js +213 -0
- package/chunks/toInteger-DVZr-D1j.js +11 -0
- package/chunks/treemap-x_zmJoG7.js +23 -0
- package/chunks/typeof-CJDtcySz.js +13 -0
- package/chunks/types-dVVCsDWD.js +4 -0
- package/chunks/ui-D1HQNIBy.js +54039 -0
- package/chunks/url-utils-B17gj_mr.js +5501 -0
- package/chunks/useFieldName-oqQ3bvnO.js +7 -0
- package/chunks/utils-Ba9T0TqC.js +31097 -0
- package/chunks/view-CLqWMV7Z.js +156 -0
- package/definitions.js +3 -0
- package/docs/operations/astrato-app-filter-bar.md +161 -0
- package/docs/operations/bar.md +7050 -0
- package/docs/operations/combo.md +5825 -0
- package/docs/operations/date-picker.md +644 -0
- package/docs/operations/distribution-gauge.md +3218 -0
- package/docs/operations/dot.md +5662 -0
- package/docs/operations/filter.md +1507 -0
- package/docs/operations/gauge.md +3452 -0
- package/docs/operations/heatMap.md +6026 -0
- package/docs/operations/histogram.md +1870 -0
- package/docs/operations/iframe.md +56 -0
- package/docs/operations/image.md +177 -0
- package/docs/operations/index.md +46 -0
- package/docs/operations/line.md +6468 -0
- package/docs/operations/number.md +3969 -0
- package/docs/operations/pie.md +6089 -0
- package/docs/operations/radar.md +4646 -0
- package/docs/operations/sankey.md +3210 -0
- package/docs/operations/scatter.md +6075 -0
- package/docs/operations/shape.md +315 -0
- package/docs/operations/simpleTextObject.md +706 -0
- package/docs/operations/slider.md +230 -0
- package/docs/operations/table.md +8790 -0
- package/docs/operations/tree.md +2874 -0
- package/docs/operations/treemap.md +3619 -0
- package/docs/operations/waterfall.md +2938 -0
- package/docs/operations/word-cloud.md +3071 -0
- package/getters.js +18 -0
- package/index.js +1183 -0
- package/metadata.js +20 -0
- package/operations.js +64 -0
- package/package.json +191 -4
- package/src/definitions/index.d.ts +2 -0
- package/src/definitions/shared/index.d.ts +5 -0
- package/src/definitions/shared/lib/available-fields.d.ts +36 -0
- package/src/definitions/shared/lib/compilers/index.d.ts +7 -0
- package/src/definitions/shared/lib/registry/compile.d.ts +2 -0
- package/src/definitions/shared/lib/registry/descriptor-registry.d.ts +587 -0
- package/src/definitions/shared/lib/registry/index.d.ts +3 -0
- package/src/definitions/shared/lib/registry/validation.d.ts +3 -0
- package/src/definitions/shared/lib/schemas/app-filter-bar.schema.d.ts +22 -0
- package/src/definitions/shared/lib/schemas/bar.schema.d.ts +73 -0
- package/src/definitions/shared/lib/schemas/broad-chart.schema.d.ts +68 -0
- package/src/definitions/shared/lib/schemas/common.schema.d.ts +304 -0
- package/src/definitions/shared/lib/schemas/filter.schema.d.ts +22 -0
- package/src/definitions/shared/lib/schemas/index.d.ts +9 -0
- package/src/definitions/shared/lib/schemas/line.schema.d.ts +72 -0
- package/src/definitions/shared/lib/schemas/number.schema.d.ts +21 -0
- package/src/definitions/shared/lib/schemas/object.schema.d.ts +215 -0
- package/src/definitions/shared/lib/schemas/table.schema.d.ts +458 -0
- package/src/definitions/shared/lib/types/compilation.types.d.ts +36 -0
- package/src/definitions/shared/lib/types/definition.types.d.ts +2 -0
- package/src/definitions/shared/lib/types/descriptor.types.d.ts +39 -0
- package/src/definitions/shared/lib/types/index.d.ts +3 -0
- package/src/getters/index.d.ts +30 -0
- package/src/index.d.ts +4 -0
- package/src/metadata/index.d.ts +4 -0
- package/src/operations/index.d.ts +30 -0
- package/src/registry/index.d.ts +6 -0
- package/src/runtime/index.d.ts +2 -0
- package/src/types.d.ts +307 -0
- package/src/visualization-catalog.d.ts +82 -0
- package/src/web-components/index.d.ts +12 -0
- package/styles.css +2 -0
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
<!-- Generated from operation manifests. Do not edit this file manually. -->
|
|
2
|
+
|
|
3
|
+
# `shape` operations
|
|
4
|
+
|
|
5
|
+
Reference for `@astrato-io/visualizations@0.6.4`.
|
|
6
|
+
|
|
7
|
+
[All visualization types](./index.md)
|
|
8
|
+
|
|
9
|
+
Use each schema below for the request’s `payload`, not for the whole operation request. Names and payloads are specific to this visualization type. An operation can still require particular fields or chart state; see its description.
|
|
10
|
+
|
|
11
|
+
## Available operations
|
|
12
|
+
|
|
13
|
+
- [`setShapeBackgroundColor`](#setshapebackgroundcolor)
|
|
14
|
+
- [`setShapeBackgroundType`](#setshapebackgroundtype)
|
|
15
|
+
- [`setShapeBorderColor`](#setshapebordercolor)
|
|
16
|
+
- [`setShapeBorderEnabled`](#setshapeborderenabled)
|
|
17
|
+
- [`setShapeBorderRadius`](#setshapeborderradius)
|
|
18
|
+
- [`setShapeBorderStyle`](#setshapeborderstyle)
|
|
19
|
+
- [`setShapeBorderWidth`](#setshapeborderwidth)
|
|
20
|
+
- [`setShapeHeightBasedSize`](#setshapeheightbasedsize)
|
|
21
|
+
- [`setShapeImageFit`](#setshapeimagefit)
|
|
22
|
+
- [`setShapeImageURL`](#setshapeimageurl)
|
|
23
|
+
- [`setShapePreserveAspectRatio`](#setshapepreserveaspectratio)
|
|
24
|
+
- [`setShapeRotation`](#setshaperotation)
|
|
25
|
+
- [`setShapeScale`](#setshapescale)
|
|
26
|
+
- [`setShapeType`](#setshapetype)
|
|
27
|
+
|
|
28
|
+
## `setShapeBackgroundColor`
|
|
29
|
+
|
|
30
|
+
Background color
|
|
31
|
+
|
|
32
|
+
Set the background color of the shape
|
|
33
|
+
|
|
34
|
+
**Payload schema**
|
|
35
|
+
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
39
|
+
"title": "Shape background color schema",
|
|
40
|
+
"type": "object",
|
|
41
|
+
"properties": {
|
|
42
|
+
"code": {
|
|
43
|
+
"description": "Background color code (hex, with optional alpha)",
|
|
44
|
+
"type": "string",
|
|
45
|
+
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": ["code"],
|
|
49
|
+
"additionalProperties": false
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## `setShapeBackgroundType`
|
|
54
|
+
|
|
55
|
+
Background type
|
|
56
|
+
|
|
57
|
+
Choose between solid color or image background
|
|
58
|
+
|
|
59
|
+
**Payload schema**
|
|
60
|
+
|
|
61
|
+
```json
|
|
62
|
+
{
|
|
63
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
64
|
+
"title": "Shape background type schema",
|
|
65
|
+
"description": "Background type - color or image",
|
|
66
|
+
"type": "string",
|
|
67
|
+
"enum": ["color", "image"]
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## `setShapeBorderColor`
|
|
72
|
+
|
|
73
|
+
Border color
|
|
74
|
+
|
|
75
|
+
Set the color of the shape border
|
|
76
|
+
|
|
77
|
+
**Payload schema**
|
|
78
|
+
|
|
79
|
+
```json
|
|
80
|
+
{
|
|
81
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
82
|
+
"title": "Shape border color schema",
|
|
83
|
+
"type": "object",
|
|
84
|
+
"properties": {
|
|
85
|
+
"code": {
|
|
86
|
+
"description": "Border color code (hex, with optional alpha)",
|
|
87
|
+
"type": "string",
|
|
88
|
+
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"required": ["code"],
|
|
92
|
+
"additionalProperties": false
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## `setShapeBorderEnabled`
|
|
97
|
+
|
|
98
|
+
Border enabled
|
|
99
|
+
|
|
100
|
+
Enable or disable the shape border
|
|
101
|
+
|
|
102
|
+
**Payload schema**
|
|
103
|
+
|
|
104
|
+
```json
|
|
105
|
+
{
|
|
106
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
107
|
+
"title": "Shape border enabled schema",
|
|
108
|
+
"description": "Enable or disable the border",
|
|
109
|
+
"type": "boolean"
|
|
110
|
+
}
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## `setShapeBorderRadius`
|
|
114
|
+
|
|
115
|
+
Border radius
|
|
116
|
+
|
|
117
|
+
Set the corner radius for rounded shape edges
|
|
118
|
+
|
|
119
|
+
**Payload schema**
|
|
120
|
+
|
|
121
|
+
```json
|
|
122
|
+
{
|
|
123
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
124
|
+
"title": "Shape border radius schema",
|
|
125
|
+
"description": "Border radius of the shape (in pixels)",
|
|
126
|
+
"type": "number",
|
|
127
|
+
"minimum": 0,
|
|
128
|
+
"maximum": 50
|
|
129
|
+
}
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## `setShapeBorderStyle`
|
|
133
|
+
|
|
134
|
+
Border style
|
|
135
|
+
|
|
136
|
+
Set the border style (solid, dashed) and dash pattern properties
|
|
137
|
+
|
|
138
|
+
**Payload schema**
|
|
139
|
+
|
|
140
|
+
```json
|
|
141
|
+
{
|
|
142
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
143
|
+
"title": "Shape border style schema",
|
|
144
|
+
"type": "object",
|
|
145
|
+
"properties": {
|
|
146
|
+
"style": {
|
|
147
|
+
"description": "Border style - line, dashed, dotted",
|
|
148
|
+
"type": "string",
|
|
149
|
+
"enum": ["line", "dashed", "dotted"]
|
|
150
|
+
},
|
|
151
|
+
"lineThickness": {
|
|
152
|
+
"description": "Border thickness (in pixels)",
|
|
153
|
+
"type": "number",
|
|
154
|
+
"minimum": 0,
|
|
155
|
+
"maximum": 50
|
|
156
|
+
},
|
|
157
|
+
"dashSpace": {
|
|
158
|
+
"type": "number",
|
|
159
|
+
"minimum": 0,
|
|
160
|
+
"maximum": 100
|
|
161
|
+
},
|
|
162
|
+
"dashWidth": {
|
|
163
|
+
"type": "number",
|
|
164
|
+
"minimum": 0,
|
|
165
|
+
"maximum": 100
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"required": ["style", "lineThickness", "dashSpace", "dashWidth"],
|
|
169
|
+
"additionalProperties": false
|
|
170
|
+
}
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
## `setShapeBorderWidth`
|
|
174
|
+
|
|
175
|
+
Border width
|
|
176
|
+
|
|
177
|
+
Adjust the thickness of the shape border
|
|
178
|
+
|
|
179
|
+
**Payload schema**
|
|
180
|
+
|
|
181
|
+
```json
|
|
182
|
+
{
|
|
183
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
184
|
+
"title": "Shape border width schema",
|
|
185
|
+
"description": "Border thickness (in pixels)",
|
|
186
|
+
"type": "number",
|
|
187
|
+
"minimum": 0,
|
|
188
|
+
"maximum": 50
|
|
189
|
+
}
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
## `setShapeHeightBasedSize`
|
|
193
|
+
|
|
194
|
+
Height based size
|
|
195
|
+
|
|
196
|
+
Calculate shape size based on height rather than width
|
|
197
|
+
|
|
198
|
+
**Payload schema**
|
|
199
|
+
|
|
200
|
+
```json
|
|
201
|
+
{
|
|
202
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
203
|
+
"title": "Shape height based size schema",
|
|
204
|
+
"description": "Fit to vertical space instead of horizontal space, useful for line shapes",
|
|
205
|
+
"type": "boolean"
|
|
206
|
+
}
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
## `setShapeImageFit`
|
|
210
|
+
|
|
211
|
+
Image fit
|
|
212
|
+
|
|
213
|
+
Control how the image fits within the shape
|
|
214
|
+
|
|
215
|
+
**Payload schema**
|
|
216
|
+
|
|
217
|
+
```json
|
|
218
|
+
{
|
|
219
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
220
|
+
"title": "Shape image fit schema",
|
|
221
|
+
"description": "Image fit type",
|
|
222
|
+
"type": "string",
|
|
223
|
+
"enum": ["none", "xMidYMid slice"]
|
|
224
|
+
}
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
## `setShapeImageURL`
|
|
228
|
+
|
|
229
|
+
Image URL
|
|
230
|
+
|
|
231
|
+
Set the URL of the image to use as shape background
|
|
232
|
+
|
|
233
|
+
**Payload schema**
|
|
234
|
+
|
|
235
|
+
```json
|
|
236
|
+
{
|
|
237
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
238
|
+
"title": "Shape image URL schema",
|
|
239
|
+
"description": "Image URL",
|
|
240
|
+
"type": "string"
|
|
241
|
+
}
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
## `setShapePreserveAspectRatio`
|
|
245
|
+
|
|
246
|
+
Preserve aspect ratio
|
|
247
|
+
|
|
248
|
+
Maintain the original aspect ratio when resizing the shape
|
|
249
|
+
|
|
250
|
+
**Payload schema**
|
|
251
|
+
|
|
252
|
+
```json
|
|
253
|
+
{
|
|
254
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
255
|
+
"title": "Shape preserve aspect ratio schema",
|
|
256
|
+
"description": "Preserve aspect ratio of the shape",
|
|
257
|
+
"type": "boolean"
|
|
258
|
+
}
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
## `setShapeRotation`
|
|
262
|
+
|
|
263
|
+
Shape rotation
|
|
264
|
+
|
|
265
|
+
Rotate the shape by a specified angle
|
|
266
|
+
|
|
267
|
+
**Payload schema**
|
|
268
|
+
|
|
269
|
+
```json
|
|
270
|
+
{
|
|
271
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
272
|
+
"title": "Shape rotation schema",
|
|
273
|
+
"description": "Rotation of the shape (in degrees)",
|
|
274
|
+
"type": "number",
|
|
275
|
+
"minimum": 0,
|
|
276
|
+
"maximum": 360
|
|
277
|
+
}
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
## `setShapeScale`
|
|
281
|
+
|
|
282
|
+
Shape scale
|
|
283
|
+
|
|
284
|
+
Adjust the size scale of the shape
|
|
285
|
+
|
|
286
|
+
**Payload schema**
|
|
287
|
+
|
|
288
|
+
```json
|
|
289
|
+
{
|
|
290
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
291
|
+
"title": "Shape scale schema",
|
|
292
|
+
"description": "Scale of the shape (defined as float between 0 and 1)",
|
|
293
|
+
"type": "number",
|
|
294
|
+
"minimum": 0,
|
|
295
|
+
"maximum": 1
|
|
296
|
+
}
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
## `setShapeType`
|
|
300
|
+
|
|
301
|
+
Shape type
|
|
302
|
+
|
|
303
|
+
Set the type of shape
|
|
304
|
+
|
|
305
|
+
**Payload schema**
|
|
306
|
+
|
|
307
|
+
```json
|
|
308
|
+
{
|
|
309
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
310
|
+
"description": "Shape type",
|
|
311
|
+
"title": "Shape type schema",
|
|
312
|
+
"type": "string",
|
|
313
|
+
"enum": ["square", "circle", "triangle", "hexagon", "line", "arrow", "elbow", "rectangle"]
|
|
314
|
+
}
|
|
315
|
+
```
|