@geode/opengeodeweb-front 10.41.0-rc.1 → 10.41.0-rc.2
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/app/components/Viewer/Generic/Mesh/PointsOptions.vue +0 -1
- package/app/components/Viewer/Generic/Model/ComponentPointsOptions.vue +245 -0
- package/app/components/Viewer/Generic/Model/ModelPointsCard.vue +141 -0
- package/app/components/Viewer/Generic/Model/ModelStyleCard.vue +7 -67
- package/app/components/Viewer/Generic/Model/PointsOptions.vue +2 -40
- package/app/composables/model_menu_context.ts +101 -0
- package/internal/stores/data_style/model/blocks/index.ts +4 -0
- package/internal/stores/data_style/model/blocks/points.ts +51 -0
- package/internal/stores/data_style/model/index.ts +6 -0
- package/internal/stores/data_style/model/lines/index.ts +4 -0
- package/internal/stores/data_style/model/lines/points.ts +51 -0
- package/internal/stores/data_style/model/points/component.ts +423 -0
- package/internal/stores/data_style/model/points/size.ts +13 -1
- package/internal/stores/data_style/model/points/visibility.ts +13 -3
- package/internal/stores/data_style/model/surfaces/index.ts +4 -0
- package/internal/stores/data_style/model/surfaces/points.ts +51 -0
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
|
|
|
4
4
|
import { useDataStore } from "@ogw_front/stores/data";
|
|
5
5
|
import { useModelSurfacesColor } from "./color";
|
|
6
6
|
import { useModelSurfacesCommonStyle } from "./common";
|
|
7
|
+
import { useModelSurfacesPointsStyle } from "./points";
|
|
7
8
|
import { useModelSurfacesVisibility } from "./visibility";
|
|
8
9
|
|
|
9
10
|
interface ColorGroup {
|
|
@@ -28,6 +29,7 @@ async function setModelSurfacesDefaultStyle(_id: string): Promise<void> {
|
|
|
28
29
|
type UseModelSurfacesStyleReturn = ReturnType<typeof useModelSurfacesCommonStyle> &
|
|
29
30
|
ReturnType<typeof useModelSurfacesVisibility> &
|
|
30
31
|
ReturnType<typeof useModelSurfacesColor> &
|
|
32
|
+
ReturnType<typeof useModelSurfacesPointsStyle> &
|
|
31
33
|
ReturnType<typeof useModelSurfacesVertexAttribute> &
|
|
32
34
|
ReturnType<typeof useModelSurfacesPolygonAttribute> & {
|
|
33
35
|
applyModelSurfacesStyle: (modelId: string) => Promise<void>;
|
|
@@ -42,6 +44,7 @@ export function useModelSurfacesStyle(): UseModelSurfacesStyleReturn {
|
|
|
42
44
|
const modelColorStyle = useModelSurfacesColor();
|
|
43
45
|
const modelSurfacesVertexAttribute = useModelSurfacesVertexAttribute();
|
|
44
46
|
const modelSurfacesPolygonAttribute = useModelSurfacesPolygonAttribute();
|
|
47
|
+
const modelSurfacesPointsStyle = useModelSurfacesPointsStyle();
|
|
45
48
|
|
|
46
49
|
async function applyModelSurfacesVisibilityStyle(
|
|
47
50
|
modelId: string,
|
|
@@ -264,5 +267,6 @@ export function useModelSurfacesStyle(): UseModelSurfacesStyleReturn {
|
|
|
264
267
|
...modelColorStyle,
|
|
265
268
|
...modelSurfacesVertexAttribute,
|
|
266
269
|
...modelSurfacesPolygonAttribute,
|
|
270
|
+
...modelSurfacesPointsStyle,
|
|
267
271
|
};
|
|
268
272
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import {
|
|
2
|
+
type ModelComponentPointsStyle,
|
|
3
|
+
useModelComponentPointsStyle,
|
|
4
|
+
} from "@ogw_internal/stores/data_style/model/points/component";
|
|
5
|
+
|
|
6
|
+
interface UseModelSurfacesPointsStyleReturn {
|
|
7
|
+
modelSurfacePointsVisibility: ModelComponentPointsStyle["visibility"];
|
|
8
|
+
modelSurfacePointsSize: ModelComponentPointsStyle["size"];
|
|
9
|
+
modelSurfacePointsColor: ModelComponentPointsStyle["color"];
|
|
10
|
+
modelSurfacePointsActiveColoring: ModelComponentPointsStyle["activeColoring"];
|
|
11
|
+
modelSurfacePointsVertexAttributeName: ModelComponentPointsStyle["vertexAttributeName"];
|
|
12
|
+
modelSurfacePointsVertexAttributeItem: ModelComponentPointsStyle["vertexAttributeItem"];
|
|
13
|
+
modelSurfacePointsVertexAttributeRange: ModelComponentPointsStyle["vertexAttributeRange"];
|
|
14
|
+
modelSurfacePointsVertexAttributeColorMap: ModelComponentPointsStyle["vertexAttributeColorMap"];
|
|
15
|
+
modelSurfacePointsVertexAttributeNoDataColor: ModelComponentPointsStyle["vertexAttributeNoDataColor"];
|
|
16
|
+
setModelSurfacesPointsVisibility: ModelComponentPointsStyle["setVisibility"];
|
|
17
|
+
setModelSurfacesPointsSize: ModelComponentPointsStyle["setSize"];
|
|
18
|
+
setModelSurfacesPointsColor: ModelComponentPointsStyle["setColor"];
|
|
19
|
+
setModelSurfacesPointsActiveColoring: ModelComponentPointsStyle["setActiveColoring"];
|
|
20
|
+
setModelSurfacesPointsVertexAttributeName: ModelComponentPointsStyle["setVertexAttributeName"];
|
|
21
|
+
setModelSurfacesPointsVertexAttributeItem: ModelComponentPointsStyle["setVertexAttributeItem"];
|
|
22
|
+
setModelSurfacesPointsVertexAttributeRange: ModelComponentPointsStyle["setVertexAttributeRange"];
|
|
23
|
+
setModelSurfacesPointsVertexAttributeColorMap: ModelComponentPointsStyle["setVertexAttributeColorMap"];
|
|
24
|
+
setModelSurfacesPointsVertexAttributeNoDataColor: ModelComponentPointsStyle["setVertexAttributeNoDataColor"];
|
|
25
|
+
applyModelSurfacesPointsStyle: ModelComponentPointsStyle["applyPointsStyle"];
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export function useModelSurfacesPointsStyle(): UseModelSurfacesPointsStyleReturn {
|
|
29
|
+
const points = useModelComponentPointsStyle("Surface");
|
|
30
|
+
return {
|
|
31
|
+
modelSurfacePointsVisibility: points.visibility,
|
|
32
|
+
modelSurfacePointsSize: points.size,
|
|
33
|
+
modelSurfacePointsColor: points.color,
|
|
34
|
+
modelSurfacePointsActiveColoring: points.activeColoring,
|
|
35
|
+
modelSurfacePointsVertexAttributeName: points.vertexAttributeName,
|
|
36
|
+
modelSurfacePointsVertexAttributeItem: points.vertexAttributeItem,
|
|
37
|
+
modelSurfacePointsVertexAttributeRange: points.vertexAttributeRange,
|
|
38
|
+
modelSurfacePointsVertexAttributeColorMap: points.vertexAttributeColorMap,
|
|
39
|
+
modelSurfacePointsVertexAttributeNoDataColor: points.vertexAttributeNoDataColor,
|
|
40
|
+
setModelSurfacesPointsVisibility: points.setVisibility,
|
|
41
|
+
setModelSurfacesPointsSize: points.setSize,
|
|
42
|
+
setModelSurfacesPointsColor: points.setColor,
|
|
43
|
+
setModelSurfacesPointsActiveColoring: points.setActiveColoring,
|
|
44
|
+
setModelSurfacesPointsVertexAttributeName: points.setVertexAttributeName,
|
|
45
|
+
setModelSurfacesPointsVertexAttributeItem: points.setVertexAttributeItem,
|
|
46
|
+
setModelSurfacesPointsVertexAttributeRange: points.setVertexAttributeRange,
|
|
47
|
+
setModelSurfacesPointsVertexAttributeColorMap: points.setVertexAttributeColorMap,
|
|
48
|
+
setModelSurfacesPointsVertexAttributeNoDataColor: points.setVertexAttributeNoDataColor,
|
|
49
|
+
applyModelSurfacesPointsStyle: points.applyPointsStyle,
|
|
50
|
+
};
|
|
51
|
+
}
|
package/package.json
CHANGED