@nebula.js/sn-gauge 0.8.0 → 0.8.3
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/README.md +9 -1
- package/api-specifications/properties.json +162 -0
- package/core/esm/index.js +3 -3
- package/dist/sn-gauge.esm.js +3 -3
- package/dist/sn-gauge.js +3 -3
- package/dist/sn-gauge.systemjs.js +2 -4
- package/package.json +13 -10
- package/sn-gauge-ext/dist/sn-gauge.js +3 -3
- package/sn-gauge-ext/sn-gauge.qext +1 -1
package/README.md
CHANGED
|
@@ -8,4 +8,12 @@ A nebula.js supernova picasso gauge chart
|
|
|
8
8
|
|
|
9
9
|
Rendering tests are running playwright. Execute rendering tests with `pnpm test:e2e --headed`.
|
|
10
10
|
|
|
11
|
-
Rendering test compares a baseline snapshot with a current version of the same object. The output is then stored under `baselines`. It is important to take the baseline from the build in your PR and not your local baselines which is stored under `baselines-local`. The report with baselines can be found under summary
|
|
11
|
+
Rendering test compares a baseline snapshot with a current version of the same object. The output is then stored under `baselines`. It is important to take the baseline from the build in your PR and not your local baselines which is stored under `baselines-local`. The report with baselines can be found under summary under a link called test report.
|
|
12
|
+
|
|
13
|
+
You can use the action called update snapshot to trigger a commit into your branch that automatically updates the snapshots.
|
|
14
|
+
|
|
15
|
+
1. Go to actions tab
|
|
16
|
+
2. Click on Build, validate, (release) workflow
|
|
17
|
+
3. Open the Run workflow dropdown menu to the right
|
|
18
|
+
4. Choose your branch and tick the update_snapshot
|
|
19
|
+
5. Click Run workflow - now a commit will be done to your branch with updated snapshots
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
{
|
|
2
|
+
"scriptappy": "1.1.0",
|
|
3
|
+
"info": {
|
|
4
|
+
"name": "@nebula.js/sn-gauge:properties",
|
|
5
|
+
"description": "Gauge generic object definition",
|
|
6
|
+
"version": "0.8.3",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"stability": "stable",
|
|
9
|
+
"x-qlik-visibility": "public"
|
|
10
|
+
},
|
|
11
|
+
"entries": {
|
|
12
|
+
"properties": {
|
|
13
|
+
"extends": [
|
|
14
|
+
{
|
|
15
|
+
"type": "GenericObjectProperties"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"kind": "object",
|
|
19
|
+
"entries": {
|
|
20
|
+
"footnote": {
|
|
21
|
+
"description": "Footnote of the visualization.",
|
|
22
|
+
"defaultValue": "",
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"measureAxis": {
|
|
26
|
+
"description": "Measure axis configuration.",
|
|
27
|
+
"entries": {
|
|
28
|
+
"max": {
|
|
29
|
+
"description": "Maximum value for the measure axis.",
|
|
30
|
+
"defaultValue": 100,
|
|
31
|
+
"type": "number"
|
|
32
|
+
},
|
|
33
|
+
"min": {
|
|
34
|
+
"description": "Minimum value for the measure axis.",
|
|
35
|
+
"defaultValue": 0,
|
|
36
|
+
"type": "number"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"kind": "object"
|
|
40
|
+
},
|
|
41
|
+
"orientation": {
|
|
42
|
+
"description": "Orientation of the gauge.",
|
|
43
|
+
"defaultValue": "horizontal",
|
|
44
|
+
"kind": "union",
|
|
45
|
+
"items": [
|
|
46
|
+
{
|
|
47
|
+
"kind": "literal",
|
|
48
|
+
"value": "'horizontal'"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"kind": "literal",
|
|
52
|
+
"value": "'vertical'"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"qHyperCubeDef": {
|
|
57
|
+
"description": "Hypercube definition for the visualization.",
|
|
58
|
+
"entries": {
|
|
59
|
+
"qInitialDataFetch": {
|
|
60
|
+
"description": "Initial data fetch configuration.",
|
|
61
|
+
"kind": "array",
|
|
62
|
+
"items": {
|
|
63
|
+
"kind": "object",
|
|
64
|
+
"entries": {
|
|
65
|
+
"qWidth": {
|
|
66
|
+
"type": "number"
|
|
67
|
+
},
|
|
68
|
+
"qHeight": {
|
|
69
|
+
"type": "number"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"qMeasures": {
|
|
75
|
+
"description": "Array of measures for the hypercube.",
|
|
76
|
+
"type": "Array"
|
|
77
|
+
},
|
|
78
|
+
"qSuppressMissing": {
|
|
79
|
+
"description": "Whether to suppress missing values.",
|
|
80
|
+
"defaultValue": true,
|
|
81
|
+
"type": "boolean"
|
|
82
|
+
},
|
|
83
|
+
"qSuppressZero": {
|
|
84
|
+
"description": "Whether to suppress zero values.",
|
|
85
|
+
"defaultValue": false,
|
|
86
|
+
"type": "boolean"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"kind": "object"
|
|
90
|
+
},
|
|
91
|
+
"segmentInfo": {
|
|
92
|
+
"description": "Segment information for the gauge.",
|
|
93
|
+
"entries": {
|
|
94
|
+
"colors": {
|
|
95
|
+
"description": "Array of segment colors.",
|
|
96
|
+
"kind": "array",
|
|
97
|
+
"items": {
|
|
98
|
+
"kind": "object",
|
|
99
|
+
"entries": {
|
|
100
|
+
"color": {
|
|
101
|
+
"type": "number"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"limits": {
|
|
107
|
+
"description": "Array of segment limits.",
|
|
108
|
+
"kind": "array",
|
|
109
|
+
"items": {
|
|
110
|
+
"kind": "object",
|
|
111
|
+
"entries": {
|
|
112
|
+
"value": {
|
|
113
|
+
"type": "number"
|
|
114
|
+
},
|
|
115
|
+
"gradient": {
|
|
116
|
+
"type": "boolean"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"kind": "object"
|
|
123
|
+
},
|
|
124
|
+
"showTitles": {
|
|
125
|
+
"description": "Whether to show titles for the visualization.",
|
|
126
|
+
"defaultValue": true,
|
|
127
|
+
"type": "boolean"
|
|
128
|
+
},
|
|
129
|
+
"subtitle": {
|
|
130
|
+
"description": "Subtitle of the visualization.",
|
|
131
|
+
"defaultValue": "",
|
|
132
|
+
"type": "string"
|
|
133
|
+
},
|
|
134
|
+
"title": {
|
|
135
|
+
"description": "Title of the visualization.",
|
|
136
|
+
"defaultValue": "",
|
|
137
|
+
"type": "string"
|
|
138
|
+
},
|
|
139
|
+
"valueMode": {
|
|
140
|
+
"description": "Value mode of the gauge.",
|
|
141
|
+
"defaultValue": "absolute",
|
|
142
|
+
"kind": "union",
|
|
143
|
+
"items": [
|
|
144
|
+
{
|
|
145
|
+
"kind": "literal",
|
|
146
|
+
"value": "'absolute'"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"kind": "literal",
|
|
150
|
+
"value": "'percentage'"
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
"version": {
|
|
155
|
+
"description": "Current version of this generic object definition",
|
|
156
|
+
"type": "string"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"definitions": {}
|
|
162
|
+
}
|