@geode/opengeodeweb-front 10.34.0-rc.15 → 10.34.0-rc.16
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/internal/stores/data_style/model/blocks/color.ts +4 -1
- package/internal/stores/data_style/model/blocks/polyhedron.ts +2 -1
- package/internal/stores/data_style/model/blocks/vertex.ts +2 -1
- package/internal/stores/data_style/model/corners/color.ts +4 -1
- package/internal/stores/data_style/model/corners/vertex.ts +2 -1
- package/internal/stores/data_style/model/lines/color.ts +4 -1
- package/internal/stores/data_style/model/lines/edge.ts +2 -1
- package/internal/stores/data_style/model/lines/vertex.ts +2 -1
- package/internal/stores/data_style/model/surfaces/color.ts +4 -1
- package/internal/stores/data_style/model/surfaces/polygon.ts +2 -1
- package/internal/stores/data_style/model/surfaces/vertex.ts +2 -1
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
} from "./polyhedron";
|
|
5
5
|
import { isModelBlocksVertexAttributeValid, useModelBlocksVertexAttribute } from "./vertex";
|
|
6
6
|
import type { StyleValues } from "@ogw_internal/stores/data_style/types.js";
|
|
7
|
+
import { useDataStore } from "@ogw_front/stores/data";
|
|
7
8
|
import { useModelBlocksCommonStyle } from "./common";
|
|
8
9
|
import { useModelCommonStyle } from "@ogw_internal/stores/data_style/model/common";
|
|
9
10
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json";
|
|
@@ -26,6 +27,7 @@ export function useModelBlocksColor(): {
|
|
|
26
27
|
activeColoring: string,
|
|
27
28
|
) => Promise<void>;
|
|
28
29
|
} {
|
|
30
|
+
const dataStore = useDataStore();
|
|
29
31
|
const modelCommonStyle = useModelCommonStyle();
|
|
30
32
|
const modelBlocksCommonStyle = useModelBlocksCommonStyle();
|
|
31
33
|
const modelBlocksVertexAttribute = useModelBlocksVertexAttribute();
|
|
@@ -65,7 +67,8 @@ export function useModelBlocksColor(): {
|
|
|
65
67
|
blocks_ids: string[],
|
|
66
68
|
activeColoring: string,
|
|
67
69
|
): Promise<void> {
|
|
68
|
-
|
|
70
|
+
const totalBlockIds = await dataStore.getBlocksGeodeIds(modelId);
|
|
71
|
+
if (blocks_ids.length === totalBlockIds.length) {
|
|
69
72
|
await modelBlocksCommonStyle.mutateModelBlocksTypeColoring(modelId, {
|
|
70
73
|
active: activeColoring,
|
|
71
74
|
});
|
|
@@ -137,7 +137,8 @@ function useModelBlocksPolyhedronAttribute(): UseModelBlocksPolyhedronAttributeR
|
|
|
137
137
|
polyhedron: values,
|
|
138
138
|
}),
|
|
139
139
|
];
|
|
140
|
-
|
|
140
|
+
const totalBlockIds = await dataStore.getBlocksGeodeIds(modelId);
|
|
141
|
+
if (blockIds.length === totalBlockIds.length) {
|
|
141
142
|
tasks.push(
|
|
142
143
|
modelBlocksCommonStyle.mutateModelBlocksTypeColoring(modelId, {
|
|
143
144
|
polyhedron: values,
|
|
@@ -136,7 +136,8 @@ function useModelBlocksVertexAttribute(): UseModelBlocksVertexAttributeReturn {
|
|
|
136
136
|
vertex: values,
|
|
137
137
|
}),
|
|
138
138
|
];
|
|
139
|
-
|
|
139
|
+
const totalBlockIds = await dataStore.getBlocksGeodeIds(modelId);
|
|
140
|
+
if (blockIds.length === totalBlockIds.length) {
|
|
140
141
|
tasks.push(
|
|
141
142
|
modelBlocksCommonStyle.mutateModelBlocksTypeColoring(modelId, {
|
|
142
143
|
vertex: values,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { isModelCornersVertexAttributeValid, useModelCornersVertexAttribute } from "./vertex";
|
|
2
2
|
import type { StyleValues } from "@ogw_internal/stores/data_style/types.js";
|
|
3
|
+
import { useDataStore } from "@ogw_front/stores/data";
|
|
3
4
|
import { useModelCommonStyle } from "@ogw_internal/stores/data_style/model/common";
|
|
4
5
|
import { useModelCornersCommonStyle } from "./common";
|
|
5
6
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json";
|
|
@@ -24,6 +25,7 @@ interface ModelCornersColorApi {
|
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
export function useModelCornersColor(): ModelCornersColorApi {
|
|
28
|
+
const dataStore = useDataStore();
|
|
27
29
|
const modelCommonStyle = useModelCommonStyle();
|
|
28
30
|
const modelCornersCommonStyle = useModelCornersCommonStyle();
|
|
29
31
|
const modelCornersVertexAttribute = useModelCornersVertexAttribute();
|
|
@@ -62,7 +64,8 @@ export function useModelCornersColor(): ModelCornersColorApi {
|
|
|
62
64
|
corners_ids: string[],
|
|
63
65
|
activeColoring: string,
|
|
64
66
|
): Promise<unknown> {
|
|
65
|
-
|
|
67
|
+
const totalCornerIds = await dataStore.getCornersGeodeIds(modelId);
|
|
68
|
+
if (corners_ids.length === totalCornerIds.length) {
|
|
66
69
|
await modelCornersCommonStyle.mutateModelCornersTypeColoring(modelId, {
|
|
67
70
|
active: activeColoring,
|
|
68
71
|
});
|
|
@@ -122,7 +122,8 @@ function useModelCornersVertexAttribute(): ModelCornersVertexAttributeApi {
|
|
|
122
122
|
vertex: values,
|
|
123
123
|
}),
|
|
124
124
|
];
|
|
125
|
-
|
|
125
|
+
const totalCornerIds = await dataStore.getCornersGeodeIds(modelId);
|
|
126
|
+
if (cornerIds.length === totalCornerIds.length) {
|
|
126
127
|
tasks.push(
|
|
127
128
|
modelCornersCommonStyle.mutateModelCornersTypeColoring(modelId, { vertex: values }),
|
|
128
129
|
);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { isModelLinesEdgeAttributeValid, useModelLinesEdgeAttribute } from "./edge";
|
|
2
2
|
import { isModelLinesVertexAttributeValid, useModelLinesVertexAttribute } from "./vertex";
|
|
3
3
|
import type { StyleValues } from "@ogw_internal/stores/data_style/types.js";
|
|
4
|
+
import { useDataStore } from "@ogw_front/stores/data";
|
|
4
5
|
import { useModelCommonStyle } from "@ogw_internal/stores/data_style/model/common";
|
|
5
6
|
import { useModelLinesCommonStyle } from "./common";
|
|
6
7
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json";
|
|
@@ -23,6 +24,7 @@ export function useModelLinesColor(): {
|
|
|
23
24
|
activeColoring: string,
|
|
24
25
|
) => Promise<unknown>;
|
|
25
26
|
} {
|
|
27
|
+
const dataStore = useDataStore();
|
|
26
28
|
const modelCommonStyle = useModelCommonStyle();
|
|
27
29
|
const modelLinesCommonStyle = useModelLinesCommonStyle();
|
|
28
30
|
const modelLinesVertexAttribute = useModelLinesVertexAttribute();
|
|
@@ -62,7 +64,8 @@ export function useModelLinesColor(): {
|
|
|
62
64
|
lines_ids: string[],
|
|
63
65
|
activeColoring: string,
|
|
64
66
|
): Promise<unknown> {
|
|
65
|
-
|
|
67
|
+
const totalLineIds = await dataStore.getLinesGeodeIds(modelId);
|
|
68
|
+
if (lines_ids.length === totalLineIds.length) {
|
|
66
69
|
await modelLinesCommonStyle.mutateModelLinesTypeColoring(modelId, {
|
|
67
70
|
active: activeColoring,
|
|
68
71
|
});
|
|
@@ -136,7 +136,8 @@ function useModelLinesEdgeAttribute(): UseModelLinesEdgeAttributeReturn {
|
|
|
136
136
|
edge: values,
|
|
137
137
|
}),
|
|
138
138
|
];
|
|
139
|
-
|
|
139
|
+
const totalLineIds = await dataStore.getLinesGeodeIds(modelId);
|
|
140
|
+
if (lineIds.length === totalLineIds.length) {
|
|
140
141
|
tasks.push(
|
|
141
142
|
modelLinesCommonStyle.mutateModelLinesTypeColoring(modelId, {
|
|
142
143
|
edge: values,
|
|
@@ -136,7 +136,8 @@ function useModelLinesVertexAttribute(): UseModelLinesVertexAttributeReturn {
|
|
|
136
136
|
vertex: values,
|
|
137
137
|
}),
|
|
138
138
|
];
|
|
139
|
-
|
|
139
|
+
const totalLineIds = await dataStore.getLinesGeodeIds(modelId);
|
|
140
|
+
if (lineIds.length === totalLineIds.length) {
|
|
140
141
|
tasks.push(
|
|
141
142
|
modelLinesCommonStyle.mutateModelLinesTypeColoring(modelId, {
|
|
142
143
|
vertex: values,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { isModelSurfacesPolygonAttributeValid, useModelSurfacesPolygonAttribute } from "./polygon";
|
|
2
2
|
import { isModelSurfacesVertexAttributeValid, useModelSurfacesVertexAttribute } from "./vertex";
|
|
3
3
|
import type { StyleValues } from "@ogw_internal/stores/data_style/types.js";
|
|
4
|
+
import { useDataStore } from "@ogw_front/stores/data";
|
|
4
5
|
import { useModelCommonStyle } from "@ogw_internal/stores/data_style/model/common";
|
|
5
6
|
import { useModelSurfacesCommonStyle } from "./common";
|
|
6
7
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json";
|
|
@@ -23,6 +24,7 @@ export function useModelSurfacesColor(): {
|
|
|
23
24
|
activeColoring: string,
|
|
24
25
|
) => Promise<unknown>;
|
|
25
26
|
} {
|
|
27
|
+
const dataStore = useDataStore();
|
|
26
28
|
const modelCommonStyle = useModelCommonStyle();
|
|
27
29
|
const modelSurfacesCommonStyle = useModelSurfacesCommonStyle();
|
|
28
30
|
const modelSurfacesVertexAttribute = useModelSurfacesVertexAttribute();
|
|
@@ -62,7 +64,8 @@ export function useModelSurfacesColor(): {
|
|
|
62
64
|
surfaces_ids: string[],
|
|
63
65
|
activeColoring: string,
|
|
64
66
|
): Promise<unknown> {
|
|
65
|
-
|
|
67
|
+
const totalSurfaceIds = await dataStore.getSurfacesGeodeIds(modelId);
|
|
68
|
+
if (surfaces_ids.length === totalSurfaceIds.length) {
|
|
66
69
|
await modelSurfacesCommonStyle.mutateModelSurfacesTypeColoring(modelId, {
|
|
67
70
|
active: activeColoring,
|
|
68
71
|
});
|
|
@@ -143,7 +143,8 @@ function useModelSurfacesPolygonAttribute(): UseModelSurfacesPolygonAttributeRet
|
|
|
143
143
|
polygon: values,
|
|
144
144
|
}),
|
|
145
145
|
];
|
|
146
|
-
|
|
146
|
+
const totalSurfaceIds = await dataStore.getSurfacesGeodeIds(modelId);
|
|
147
|
+
if (surfaceIds.length === totalSurfaceIds.length) {
|
|
147
148
|
tasks.push(
|
|
148
149
|
modelSurfacesCommonStyle.mutateModelSurfacesTypeColoring(modelId, { polygon: values }),
|
|
149
150
|
);
|
|
@@ -140,7 +140,8 @@ function useModelSurfacesVertexAttribute(): UseModelSurfacesVertexAttributeRetur
|
|
|
140
140
|
vertex: values,
|
|
141
141
|
}),
|
|
142
142
|
];
|
|
143
|
-
|
|
143
|
+
const totalSurfaceIds = await dataStore.getSurfacesGeodeIds(modelId);
|
|
144
|
+
if (surfaceIds.length === totalSurfaceIds.length) {
|
|
144
145
|
tasks.push(
|
|
145
146
|
modelSurfacesCommonStyle.mutateModelSurfacesTypeColoring(modelId, { vertex: values }),
|
|
146
147
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geode/opengeodeweb-front",
|
|
3
|
-
"version": "10.34.0-rc.
|
|
3
|
+
"version": "10.34.0-rc.16",
|
|
4
4
|
"description": "OpenSource Vue/Nuxt/Pinia/Vuetify framework for web applications",
|
|
5
5
|
"homepage": "https://github.com/Geode-solutions/OpenGeodeWeb-Front",
|
|
6
6
|
"bugs": {
|