@milaboratories/pl-model-common 1.15.3 → 1.15.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/pl-model-common",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.4",
|
|
4
4
|
"description": "Platforma SDK Model",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"typescript": "~5.5.4",
|
|
27
27
|
"vite": "^6.3.5",
|
|
28
28
|
"vitest": "^2.1.9",
|
|
29
|
-
"@
|
|
30
|
-
"@platforma-
|
|
29
|
+
"@platforma-sdk/eslint-config": "1.0.3",
|
|
30
|
+
"@milaboratories/platforma-build-configs": "1.0.3"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"type-check": "tsc --noEmit --composite false",
|
|
@@ -186,7 +186,11 @@ export type AxesId = AxisId[];
|
|
|
186
186
|
/** Extracts axis ids from axis spec */
|
|
187
187
|
export function getAxisId(spec: AxisSpec): AxisId {
|
|
188
188
|
const { type, name, domain } = spec;
|
|
189
|
-
|
|
189
|
+
const result = { type, name };
|
|
190
|
+
if (domain && Object.entries(domain).length > 0) {
|
|
191
|
+
Object.assign(result, { domain });
|
|
192
|
+
}
|
|
193
|
+
return result;
|
|
190
194
|
}
|
|
191
195
|
|
|
192
196
|
/** Extracts axes ids from axes spec array from column spec */
|