@geode/opengeodeweb-front 10.0.2-rc.4 → 10.0.2-rc.5
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/CrsSelector.vue +1 -0
- package/app/components/ExtensionSelector.vue +2 -1
- package/app/components/FeedBack/ErrorBanner.vue +4 -3
- package/app/components/FeedBack/Snackers.vue +5 -3
- package/app/components/FileSelector.vue +3 -2
- package/app/components/FileUploader.vue +1 -1
- package/app/components/HybridRenderingView.vue +4 -1
- package/app/components/InfraConnected.vue +2 -0
- package/app/components/Inspector/InspectionButton.vue +1 -0
- package/app/components/Inspector/ResultPanel.vue +1 -1
- package/app/components/Launcher.vue +9 -8
- package/app/components/Loading.vue +1 -1
- package/app/components/MissingFilesSelector.vue +3 -2
- package/app/components/ObjectSelector.vue +8 -5
- package/app/components/PackagesVersions.vue +2 -1
- package/app/components/Recaptcha.vue +6 -5
- package/app/components/RemoteRenderingView.vue +3 -3
- package/app/components/Screenshot.vue +2 -0
- package/app/components/Stepper.vue +1 -1
- package/app/components/VeaseViewToolbar.vue +6 -3
- package/app/components/ViewToolbar.vue +3 -2
- package/app/components/Viewer/BreadCrumb.vue +1 -0
- package/app/components/Viewer/ContextMenu.vue +2 -0
- package/app/components/Viewer/EdgedCurve/EdgesOptions.vue +1 -1
- package/app/components/Viewer/EdgedCurve/PointsOptions.vue +1 -1
- package/app/components/Viewer/Generic/Mesh/CellsOptions.vue +6 -3
- package/app/components/Viewer/Generic/Mesh/EdgesOptions.vue +9 -6
- package/app/components/Viewer/Generic/Mesh/PointsOptions.vue +6 -3
- package/app/components/Viewer/Generic/Mesh/PolygonsOptions.vue +6 -3
- package/app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue +6 -3
- package/app/components/Viewer/Generic/Model/EdgesOptions.vue +8 -4
- package/app/components/Viewer/Generic/Model/PointsOptions.vue +5 -2
- package/app/components/Viewer/Grid/2D/CellsOptions.vue +1 -1
- package/app/components/Viewer/Grid/2D/EdgesOptions.vue +1 -1
- package/app/components/Viewer/Grid/2D/PointsOptions.vue +1 -1
- package/app/components/Viewer/Grid/3D/CellsOptions.vue +1 -1
- package/app/components/Viewer/Grid/3D/EdgesOptions.vue +1 -1
- package/app/components/Viewer/Grid/3D/FacetsOptions.vue +1 -1
- package/app/components/Viewer/Grid/3D/PointsOptions.vue +1 -1
- package/app/components/Viewer/HybridSolid/EdgesOptions.vue +1 -1
- package/app/components/Viewer/HybridSolid/PointsOptions.vue +1 -1
- package/app/components/Viewer/HybridSolid/PolygonsOptions.vue +1 -1
- package/app/components/Viewer/HybridSolid/PolyhedraOptions.vue +1 -1
- package/app/components/Viewer/Options/CellAttributeSelector.vue +1 -0
- package/app/components/Viewer/Options/ColoringTypeSelector.vue +7 -7
- package/app/components/Viewer/Options/PolygonAttributeSelector.vue +1 -0
- package/app/components/Viewer/Options/PolyhedronAttributeSelector.vue +1 -0
- package/app/components/Viewer/Options/TextureItem.vue +2 -1
- package/app/components/Viewer/Options/TexturesSelector.vue +1 -1
- package/app/components/Viewer/PointSet/PointsOptions.vue +1 -1
- package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +7 -3
- package/app/components/Viewer/PolygonalSurface/EdgesOptions.vue +1 -1
- package/app/components/Viewer/PolygonalSurface/PointsOptions.vue +1 -1
- package/app/components/Viewer/PolygonalSurface/PolygonsOptions.vue +1 -1
- package/app/components/Viewer/Solid/EdgesOptions.vue +1 -1
- package/app/components/Viewer/Solid/PointsOptions.vue +1 -1
- package/app/components/Viewer/Solid/PolygonsOptions.vue +1 -1
- package/app/components/Viewer/Solid/PolyhedraOptions.vue +1 -1
- package/app/components/Viewer/TetrahedralSolid/TetrahedraOptions.vue +1 -1
- package/app/components/Viewer/TetrahedralSolid/TrianglesOptions.vue +1 -1
- package/app/components/Viewer/Tree/ObjectTree.vue +5 -3
- package/app/components/Viewer/TreeComponent.vue +4 -0
- package/app/components/Viewer/TreeObject.vue +6 -0
- package/app/components/Viewer/TriangulatedSurface/EdgesOptions.vue +1 -1
- package/app/components/Viewer/TriangulatedSurface/PointsOptions.vue +1 -1
- package/app/components/Viewer/TriangulatedSurface/TrianglesOptions.vue +1 -1
- package/app/components/Wrapper.vue +7 -5
- package/app/composables/project_manager.js +9 -3
- package/app/composables/run_function_when_microservices_connected.js +5 -2
- package/app/plugins/auto_store_register.js +9 -1
- package/app/stores/data_base.js +4 -1
- package/app/stores/data_style.js +5 -5
- package/app/stores/geode.js +14 -12
- package/app/stores/hybrid_viewer.js +3 -2
- package/app/stores/infra.js +4 -2
- package/app/stores/lambda.js +2 -1
- package/app/stores/menu.js +24 -24
- package/app/stores/viewer.js +9 -8
- package/app/utils/file_import_workflow.js +5 -1
- package/app/utils/upload_file.js +6 -3
- package/internal/stores/mesh/cells.js +4 -5
- package/internal/stores/mesh/edges.js +5 -3
- package/internal/stores/mesh/index.js +9 -6
- package/internal/stores/mesh/points.js +5 -4
- package/internal/stores/mesh/polygons.js +5 -5
- package/internal/stores/mesh/polyhedra.js +5 -2
- package/internal/stores/model/blocks.js +6 -2
- package/internal/stores/model/corners.js +6 -2
- package/internal/stores/model/edges.js +5 -1
- package/internal/stores/model/index.js +11 -8
- package/internal/stores/model/lines.js +6 -2
- package/internal/stores/model/points.js +5 -2
- package/internal/stores/model/surfaces.js +6 -2
- package/internal/utils/api_fetch.js +2 -1
- package/internal/utils/viewer_call.js +5 -4
- package/nuxt.config.js +1 -3
- package/package.json +6 -7
- package/scripts/generate_geode_objects.js +1 -1
- package/tests/integration/microservices/back/requirements.txt +1 -1
- package/tests/integration/microservices/viewer/requirements.txt +1 -1
- package/tests/integration/setup.js +1 -1
- package/tests/integration/stores/data_style/mesh/cells.nuxt.test.js +3 -1
- package/tests/integration/stores/data_style/mesh/edges.nuxt.test.js +3 -1
- package/tests/integration/stores/data_style/mesh/index.nuxt.test.js +3 -1
- package/tests/integration/stores/data_style/mesh/points.nuxt.test.js +3 -1
- package/tests/integration/stores/data_style/mesh/polygons.nuxt.test.js +3 -1
- package/tests/integration/stores/data_style/mesh/polyhedra.nuxt.test.js +3 -1
- package/tests/integration/stores/data_style/model/blocks.nuxt.test.js +4 -1
- package/tests/integration/stores/data_style/model/corners.nuxt.test.js +4 -1
- package/tests/integration/stores/data_style/model/edges.nuxt.test.js +3 -1
- package/tests/integration/stores/data_style/model/index.nuxt.test.js +3 -1
- package/tests/integration/stores/data_style/model/lines.nuxt.test.js +4 -1
- package/tests/integration/stores/data_style/model/points.nuxt.test.js +2 -1
- package/tests/integration/stores/data_style/model/surfaces.nuxt.test.js +4 -1
- package/tests/unit/components/CrsSelector.nuxt.test.js +4 -2
- package/tests/unit/components/ExtensionSelector.nuxt.test.js +4 -2
- package/tests/unit/components/FeedBack/ErrorsBanner.nuxt.test.js +9 -8
- package/tests/unit/components/FeedBack/Snackers.nuxt.test.js +6 -5
- package/tests/unit/components/FileSelector.nuxt.test.js +6 -7
- package/tests/unit/components/FileUploader.nuxt.test.js +4 -3
- package/tests/unit/components/Inspector/InspectionButton.nuxt.test.js +3 -2
- package/tests/unit/components/Inspector/ResultPanel.nuxt.test.js +5 -4
- package/tests/unit/components/Launcher.nuxt.test.js +7 -5
- package/tests/unit/components/MissingFilesSelector.nuxt.test.js +5 -4
- package/tests/unit/components/ObjectSelector.nuxt.test.js +16 -7
- package/tests/unit/components/PackagesVersions.nuxt.test.js +3 -2
- package/tests/unit/components/Step.nuxt.test.js +3 -3
- package/tests/unit/components/Stepper.nuxt.test.js +3 -3
- package/tests/unit/components/Wrapper.nuxt.test.js +3 -3
- package/tests/unit/composables/ProjectManager.nuxt.test.js +15 -17
- package/tests/unit/composables/api_fetch.nuxt.test.js +5 -2
- package/tests/unit/composables/run_function_when_microservices_connected.nuxt.test.js +11 -1
- package/tests/unit/composables/upload_file.nuxt.test.js +6 -3
- package/tests/unit/plugins/project_load.nuxt.test.js +8 -2
- package/tests/unit/stores/App.nuxt.test.js +34 -32
- package/tests/unit/stores/Feedback.nuxt.test.js +25 -25
- package/tests/unit/stores/Geode.nuxt.test.js +27 -25
- package/tests/unit/stores/Infra.nuxt.test.js +73 -70
- package/tests/unit/stores/Lambda.nuxt.test.js +5 -3
- package/tests/unit/stores/Viewer.nuxt.test.js +27 -27
- package/tests/unit/utils/recaptcha.nuxt.test.js +2 -2
- package/tests/unit/utils/validate_schema.nuxt.test.js +2 -2
- package/tests/vitest.config.js +0 -1
package/app/stores/menu.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
// PointSet components
|
|
2
|
-
import PointSetPointsOptions from "@ogw_front/components/Viewer/PointSet/PointsOptions
|
|
2
|
+
import PointSetPointsOptions from "@ogw_front/components/Viewer/PointSet/PointsOptions"
|
|
3
3
|
|
|
4
4
|
// EdgedCurve components
|
|
5
|
-
import EdgedCurvePointsOptions from "@ogw_front/components/Viewer/EdgedCurve/PointsOptions
|
|
6
|
-
import EdgedCurveEdgesOptions from "@ogw_front/components/Viewer/EdgedCurve/EdgesOptions
|
|
5
|
+
import EdgedCurvePointsOptions from "@ogw_front/components/Viewer/EdgedCurve/PointsOptions"
|
|
6
|
+
import EdgedCurveEdgesOptions from "@ogw_front/components/Viewer/EdgedCurve/EdgesOptions"
|
|
7
7
|
|
|
8
8
|
// PolygonalSurface components
|
|
9
|
-
import PolygonalSurfacePointsOptions from "@ogw_front/components/Viewer/PolygonalSurface/PointsOptions
|
|
10
|
-
import PolygonalSurfaceEdgesOptions from "@ogw_front/components/Viewer/PolygonalSurface/EdgesOptions
|
|
11
|
-
import PolygonalSurfacePolygonsOptions from "@ogw_front/components/Viewer/PolygonalSurface/PolygonsOptions
|
|
9
|
+
import PolygonalSurfacePointsOptions from "@ogw_front/components/Viewer/PolygonalSurface/PointsOptions"
|
|
10
|
+
import PolygonalSurfaceEdgesOptions from "@ogw_front/components/Viewer/PolygonalSurface/EdgesOptions"
|
|
11
|
+
import PolygonalSurfacePolygonsOptions from "@ogw_front/components/Viewer/PolygonalSurface/PolygonsOptions"
|
|
12
12
|
|
|
13
13
|
// TriangulatedSurface components
|
|
14
|
-
import TriangulatedSurfacePointsOptions from "@ogw_front/components/Viewer/TriangulatedSurface/PointsOptions
|
|
15
|
-
import TriangulatedSurfaceEdgesOptions from "@ogw_front/components/Viewer/TriangulatedSurface/EdgesOptions
|
|
16
|
-
import TriangulatedSurfaceTrianglesOptions from "@ogw_front/components/Viewer/TriangulatedSurface/TrianglesOptions
|
|
14
|
+
import TriangulatedSurfacePointsOptions from "@ogw_front/components/Viewer/TriangulatedSurface/PointsOptions"
|
|
15
|
+
import TriangulatedSurfaceEdgesOptions from "@ogw_front/components/Viewer/TriangulatedSurface/EdgesOptions"
|
|
16
|
+
import TriangulatedSurfaceTrianglesOptions from "@ogw_front/components/Viewer/TriangulatedSurface/TrianglesOptions"
|
|
17
17
|
|
|
18
18
|
// Grid 2D components
|
|
19
|
-
import Grid2DPointsOptions from "@ogw_front/components/Viewer/Grid/2D/PointsOptions
|
|
20
|
-
import Grid2DEdgesOptions from "@ogw_front/components/Viewer/Grid/2D/EdgesOptions
|
|
21
|
-
import Grid2DCellsOptions from "@ogw_front/components/Viewer/Grid/2D/CellsOptions
|
|
19
|
+
import Grid2DPointsOptions from "@ogw_front/components/Viewer/Grid/2D/PointsOptions"
|
|
20
|
+
import Grid2DEdgesOptions from "@ogw_front/components/Viewer/Grid/2D/EdgesOptions"
|
|
21
|
+
import Grid2DCellsOptions from "@ogw_front/components/Viewer/Grid/2D/CellsOptions"
|
|
22
22
|
|
|
23
23
|
// Grid 3D components
|
|
24
|
-
import Grid3DPointsOptions from "@ogw_front/components/Viewer/Grid/3D/PointsOptions
|
|
25
|
-
import Grid3DEdgesOptions from "@ogw_front/components/Viewer/Grid/3D/EdgesOptions
|
|
26
|
-
import Grid3DFacetsOptions from "@ogw_front/components/Viewer/Grid/3D/FacetsOptions
|
|
27
|
-
import Grid3DCellsOptions from "@ogw_front/components/Viewer/Grid/3D/CellsOptions
|
|
24
|
+
import Grid3DPointsOptions from "@ogw_front/components/Viewer/Grid/3D/PointsOptions"
|
|
25
|
+
import Grid3DEdgesOptions from "@ogw_front/components/Viewer/Grid/3D/EdgesOptions"
|
|
26
|
+
import Grid3DFacetsOptions from "@ogw_front/components/Viewer/Grid/3D/FacetsOptions"
|
|
27
|
+
import Grid3DCellsOptions from "@ogw_front/components/Viewer/Grid/3D/CellsOptions"
|
|
28
28
|
|
|
29
29
|
// Solid components
|
|
30
|
-
import SolidPointsOptions from "@ogw_front/components/Viewer/Solid/PointsOptions
|
|
31
|
-
import SolidEdgesOptions from "@ogw_front/components/Viewer/Solid/EdgesOptions
|
|
32
|
-
import SolidPolygonsOptions from "@ogw_front/components/Viewer/Solid/PolygonsOptions
|
|
33
|
-
import SolidPolyhedraOptions from "@ogw_front/components/Viewer/Solid/PolyhedraOptions
|
|
30
|
+
import SolidPointsOptions from "@ogw_front/components/Viewer/Solid/PointsOptions"
|
|
31
|
+
import SolidEdgesOptions from "@ogw_front/components/Viewer/Solid/EdgesOptions"
|
|
32
|
+
import SolidPolygonsOptions from "@ogw_front/components/Viewer/Solid/PolygonsOptions"
|
|
33
|
+
import SolidPolyhedraOptions from "@ogw_front/components/Viewer/Solid/PolyhedraOptions"
|
|
34
34
|
|
|
35
35
|
// TetrahedralSolid components
|
|
36
|
-
import TetrahedralSolidTrianglesOptions from "@ogw_front/components/Viewer/TetrahedralSolid/TrianglesOptions
|
|
37
|
-
import TetrahedralSolidTetrahedraOptions from "@ogw_front/components/Viewer/TetrahedralSolid/TetrahedraOptions
|
|
36
|
+
import TetrahedralSolidTrianglesOptions from "@ogw_front/components/Viewer/TetrahedralSolid/TrianglesOptions"
|
|
37
|
+
import TetrahedralSolidTetrahedraOptions from "@ogw_front/components/Viewer/TetrahedralSolid/TetrahedraOptions"
|
|
38
38
|
|
|
39
39
|
// Model components
|
|
40
|
-
import ModelEdgesOptions from "@ogw_front/components/Viewer/Generic/Model/EdgesOptions
|
|
41
|
-
import ModelPointsOptions from "@ogw_front/components/Viewer/Generic/Model/PointsOptions
|
|
40
|
+
import ModelEdgesOptions from "@ogw_front/components/Viewer/Generic/Model/EdgesOptions"
|
|
41
|
+
import ModelPointsOptions from "@ogw_front/components/Viewer/Generic/Model/PointsOptions"
|
|
42
42
|
|
|
43
43
|
const PointSet_menu = [PointSetPointsOptions]
|
|
44
44
|
|
package/app/stores/viewer.js
CHANGED
|
@@ -2,9 +2,10 @@ import _ from "lodash"
|
|
|
2
2
|
import vtkWSLinkClient from "@kitware/vtk.js/IO/Core/WSLinkClient"
|
|
3
3
|
import "@kitware/vtk.js/Rendering/OpenGL/Profiles/Geometry"
|
|
4
4
|
import schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
|
|
5
|
-
import Status from "@ogw_front/utils/status
|
|
6
|
-
import { appMode } from "@ogw_front/utils/app_mode
|
|
7
|
-
import { viewer_call } from "../../internal/utils/viewer_call
|
|
5
|
+
import Status from "@ogw_front/utils/status"
|
|
6
|
+
import { appMode } from "@ogw_front/utils/app_mode"
|
|
7
|
+
import { viewer_call } from "../../internal/utils/viewer_call"
|
|
8
|
+
import { useInfraStore } from "@ogw_front/stores/infra"
|
|
8
9
|
|
|
9
10
|
export const useViewerStore = defineStore("viewer", {
|
|
10
11
|
state: () => ({
|
|
@@ -35,13 +36,13 @@ export const useViewerStore = defineStore("viewer", {
|
|
|
35
36
|
return this.default_local_port
|
|
36
37
|
},
|
|
37
38
|
base_url() {
|
|
38
|
-
const
|
|
39
|
-
let viewer_url = `${this.protocol}://${
|
|
40
|
-
if (
|
|
41
|
-
if (
|
|
39
|
+
const infraStore = useInfraStore()
|
|
40
|
+
let viewer_url = `${this.protocol}://${infraStore.domain_name}:${this.port}`
|
|
41
|
+
if (infraStore.app_mode == appMode.CLOUD) {
|
|
42
|
+
if (infraStore.ID == "") {
|
|
42
43
|
throw new Error("ID must not be empty in cloud mode")
|
|
43
44
|
}
|
|
44
|
-
viewer_url += `/${
|
|
45
|
+
viewer_url += `/${infraStore.ID}/viewer`
|
|
45
46
|
}
|
|
46
47
|
viewer_url += "/ws"
|
|
47
48
|
return viewer_url
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
// Third party imports
|
|
2
2
|
import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
|
|
3
|
-
import { useHybridViewerStore } from "../stores/hybrid_viewer"
|
|
4
3
|
|
|
5
4
|
// Local imports
|
|
5
|
+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
|
|
6
|
+
import { useGeodeStore } from "@ogw_front/stores/geode"
|
|
7
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
8
|
+
import { useDataBaseStore } from "@ogw_front/stores/data_base"
|
|
9
|
+
import { useTreeviewStore } from "@ogw_front/stores/treeview"
|
|
6
10
|
|
|
7
11
|
async function importWorkflow(files) {
|
|
8
12
|
console.log("importWorkflow", { files })
|
package/app/utils/upload_file.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { useGeodeStore } from "@ogw_front/stores/geode"
|
|
2
|
+
import { useFeedbackStore } from "@ogw_front/stores/feedback"
|
|
3
|
+
|
|
1
4
|
export async function upload_file(
|
|
2
5
|
{ route, file },
|
|
3
6
|
{ request_error_function, response_function, response_error_function } = {},
|
|
4
7
|
) {
|
|
5
|
-
const
|
|
8
|
+
const feedbackStore = useFeedbackStore()
|
|
6
9
|
const geodeStore = useGeodeStore()
|
|
7
10
|
if (!(file instanceof File)) {
|
|
8
11
|
throw new Error("file must be a instance of File")
|
|
@@ -22,7 +25,7 @@ export async function upload_file(
|
|
|
22
25
|
...request_options,
|
|
23
26
|
onRequestError({ error }) {
|
|
24
27
|
geodeStore.stop_request()
|
|
25
|
-
|
|
28
|
+
feedbackStore.add_error(error.code, route, error.message, error.stack)
|
|
26
29
|
if (request_error_function) {
|
|
27
30
|
request_error_function(error)
|
|
28
31
|
}
|
|
@@ -37,7 +40,7 @@ export async function upload_file(
|
|
|
37
40
|
},
|
|
38
41
|
onResponseError({ response }) {
|
|
39
42
|
geodeStore.stop_request()
|
|
40
|
-
|
|
43
|
+
feedbackStore.add_error(
|
|
41
44
|
response.status,
|
|
42
45
|
route,
|
|
43
46
|
response._data.name,
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
// Third party imports
|
|
2
2
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
|
|
3
3
|
|
|
4
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
5
|
+
import { useViewerStore } from "@ogw_front/stores/viewer"
|
|
6
|
+
|
|
4
7
|
// Local constants
|
|
5
8
|
const mesh_cells_schemas = viewer_schemas.opengeodeweb_viewer.mesh.cells
|
|
6
9
|
export function useMeshCellsStyle() {
|
|
7
10
|
const dataStyleStore = useDataStyleStore()
|
|
11
|
+
const viewerStore = useViewerStore()
|
|
8
12
|
|
|
9
13
|
function meshCellsStyle(id) {
|
|
10
14
|
return dataStyleStore.getStyle(id).cells
|
|
@@ -15,7 +19,6 @@ export function useMeshCellsStyle() {
|
|
|
15
19
|
}
|
|
16
20
|
function setMeshCellsVisibility(id, visibility) {
|
|
17
21
|
const cells_style = meshCellsStyle(id)
|
|
18
|
-
const viewerStore = useViewerStore()
|
|
19
22
|
return viewerStore.request(
|
|
20
23
|
mesh_cells_schemas.visibility,
|
|
21
24
|
{ id, visibility },
|
|
@@ -37,7 +40,6 @@ export function useMeshCellsStyle() {
|
|
|
37
40
|
}
|
|
38
41
|
function setMeshCellsColor(id, color) {
|
|
39
42
|
const coloring_style = meshCellsStyle(id).coloring
|
|
40
|
-
const viewerStore = useViewerStore()
|
|
41
43
|
return viewerStore.request(
|
|
42
44
|
mesh_cells_schemas.color,
|
|
43
45
|
{ id, color },
|
|
@@ -59,7 +61,6 @@ export function useMeshCellsStyle() {
|
|
|
59
61
|
}
|
|
60
62
|
function setMeshCellsTextures(id, textures) {
|
|
61
63
|
const coloring_style = meshCellsStyle(id).coloring
|
|
62
|
-
const viewerStore = useViewerStore()
|
|
63
64
|
return viewerStore.request(
|
|
64
65
|
mesh_cells_schemas.apply_textures,
|
|
65
66
|
{ id, textures },
|
|
@@ -78,7 +79,6 @@ export function useMeshCellsStyle() {
|
|
|
78
79
|
|
|
79
80
|
function setMeshCellsVertexAttribute(id, vertex_attribute) {
|
|
80
81
|
const coloring_style = meshCellsStyle(id).coloring
|
|
81
|
-
const viewerStore = useViewerStore()
|
|
82
82
|
return viewerStore.request(
|
|
83
83
|
mesh_cells_schemas.vertex_attribute,
|
|
84
84
|
{ id, ...vertex_attribute },
|
|
@@ -100,7 +100,6 @@ export function useMeshCellsStyle() {
|
|
|
100
100
|
}
|
|
101
101
|
function setMeshCellsCellAttribute(id, cell_attribute) {
|
|
102
102
|
const coloring_style = meshCellsStyle(id).coloring
|
|
103
|
-
const viewerStore = useViewerStore()
|
|
104
103
|
return viewerStore.request(
|
|
105
104
|
mesh_cells_schemas.cell_attribute,
|
|
106
105
|
{ id, ...cell_attribute },
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
// Third party imports
|
|
2
2
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
|
|
3
3
|
|
|
4
|
+
// Local imports
|
|
5
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
6
|
+
import { useViewerStore } from "@ogw_front/stores/viewer"
|
|
7
|
+
|
|
4
8
|
// Local constants
|
|
5
9
|
const mesh_edges_schemas = viewer_schemas.opengeodeweb_viewer.mesh.edges
|
|
6
10
|
|
|
7
11
|
export function useMeshEdgesStyle() {
|
|
8
12
|
const dataStyleStore = useDataStyleStore()
|
|
13
|
+
const viewerStore = useViewerStore()
|
|
9
14
|
|
|
10
15
|
function meshEdgesStyle(id) {
|
|
11
16
|
return dataStyleStore.getStyle(id).edges
|
|
@@ -15,7 +20,6 @@ export function useMeshEdgesStyle() {
|
|
|
15
20
|
return meshEdgesStyle(id).visibility
|
|
16
21
|
}
|
|
17
22
|
function setMeshEdgesVisibility(id, visibility) {
|
|
18
|
-
const viewerStore = useViewerStore()
|
|
19
23
|
return viewerStore.request(
|
|
20
24
|
mesh_edges_schemas.visibility,
|
|
21
25
|
{ id, visibility },
|
|
@@ -59,7 +63,6 @@ export function useMeshEdgesStyle() {
|
|
|
59
63
|
}
|
|
60
64
|
function setMeshEdgesColor(id, color) {
|
|
61
65
|
const coloring_style = meshEdgesStyle(id).coloring
|
|
62
|
-
const viewerStore = useViewerStore()
|
|
63
66
|
return viewerStore.request(
|
|
64
67
|
mesh_edges_schemas.color,
|
|
65
68
|
{ id, color },
|
|
@@ -81,7 +84,6 @@ export function useMeshEdgesStyle() {
|
|
|
81
84
|
}
|
|
82
85
|
function setMeshEdgesWidth(id, width) {
|
|
83
86
|
const edges_style = meshEdgesStyle(id)
|
|
84
|
-
const viewerStore = useViewerStore()
|
|
85
87
|
return viewerStore.request(
|
|
86
88
|
mesh_edges_schemas.width,
|
|
87
89
|
{ id, width },
|
|
@@ -2,17 +2,21 @@
|
|
|
2
2
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
|
|
3
3
|
|
|
4
4
|
// Local imports
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
|
|
6
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
7
|
+
import { useViewerStore } from "@ogw_front/stores/viewer"
|
|
8
|
+
import { useMeshPointsStyle } from "./points"
|
|
9
|
+
import { useMeshEdgesStyle } from "./edges"
|
|
10
|
+
import { useMeshCellsStyle } from "./cells"
|
|
11
|
+
import { useMeshPolygonsStyle } from "./polygons"
|
|
12
|
+
import { useMeshPolyhedraStyle } from "./polyhedra"
|
|
10
13
|
|
|
11
14
|
// Local constants
|
|
12
15
|
const mesh_schemas = viewer_schemas.opengeodeweb_viewer.mesh
|
|
13
16
|
|
|
14
17
|
export default function useMeshStyle() {
|
|
15
18
|
const dataStyleStore = useDataStyleStore()
|
|
19
|
+
const viewerStore = useViewerStore()
|
|
16
20
|
const meshPointsStyleStore = useMeshPointsStyle()
|
|
17
21
|
const meshEdgesStyleStore = useMeshEdgesStyle()
|
|
18
22
|
const meshCellsStyleStore = useMeshCellsStyle()
|
|
@@ -24,7 +28,6 @@ export default function useMeshStyle() {
|
|
|
24
28
|
return dataStyleStore.getStyle(id).visibility
|
|
25
29
|
}
|
|
26
30
|
function setMeshVisibility(id, visibility) {
|
|
27
|
-
const viewerStore = useViewerStore()
|
|
28
31
|
return viewerStore.request(
|
|
29
32
|
mesh_schemas.visibility,
|
|
30
33
|
{ id, visibility },
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
// Third party imports
|
|
2
2
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
|
|
3
3
|
|
|
4
|
+
// Local imports
|
|
5
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
6
|
+
import { useViewerStore } from "@ogw_front/stores/viewer"
|
|
7
|
+
|
|
4
8
|
// Local constants
|
|
5
9
|
const mesh_points_schemas = viewer_schemas.opengeodeweb_viewer.mesh.points
|
|
6
10
|
|
|
7
11
|
export function useMeshPointsStyle() {
|
|
8
12
|
const dataStyleStore = useDataStyleStore()
|
|
13
|
+
const viewerStore = useViewerStore()
|
|
9
14
|
|
|
10
15
|
function meshPointsStyle(id) {
|
|
11
16
|
return dataStyleStore.getStyle(id).points
|
|
@@ -16,7 +21,6 @@ export function useMeshPointsStyle() {
|
|
|
16
21
|
}
|
|
17
22
|
function setMeshPointsVisibility(id, visibility) {
|
|
18
23
|
const points_style = meshPointsStyle(id)
|
|
19
|
-
const viewerStore = useViewerStore()
|
|
20
24
|
return viewerStore.request(
|
|
21
25
|
mesh_points_schemas.visibility,
|
|
22
26
|
{ id, visibility },
|
|
@@ -58,7 +62,6 @@ export function useMeshPointsStyle() {
|
|
|
58
62
|
}
|
|
59
63
|
function setMeshPointsColor(id, color) {
|
|
60
64
|
const coloring_style = meshPointsStyle(id).coloring
|
|
61
|
-
const viewerStore = useViewerStore()
|
|
62
65
|
return viewerStore.request(
|
|
63
66
|
mesh_points_schemas.color,
|
|
64
67
|
{ id, color },
|
|
@@ -79,7 +82,6 @@ export function useMeshPointsStyle() {
|
|
|
79
82
|
}
|
|
80
83
|
function setMeshPointsVertexAttribute(id, vertex_attribute) {
|
|
81
84
|
const coloring_style = meshPointsStyle(id).coloring
|
|
82
|
-
const viewerStore = useViewerStore()
|
|
83
85
|
return viewerStore.request(
|
|
84
86
|
mesh_points_schemas.vertex_attribute,
|
|
85
87
|
{ id, ...vertex_attribute },
|
|
@@ -100,7 +102,6 @@ export function useMeshPointsStyle() {
|
|
|
100
102
|
return meshPointsStyle(id).size
|
|
101
103
|
}
|
|
102
104
|
function setMeshPointsSize(id, size) {
|
|
103
|
-
const viewerStore = useViewerStore()
|
|
104
105
|
return viewerStore.request(
|
|
105
106
|
mesh_points_schemas.size,
|
|
106
107
|
{ id, size },
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
// Third party imports
|
|
2
2
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
|
|
3
3
|
|
|
4
|
+
// Local imports
|
|
5
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
6
|
+
import { useViewerStore } from "@ogw_front/stores/viewer"
|
|
7
|
+
|
|
4
8
|
// Local constants
|
|
5
9
|
const mesh_polygons_schemas = viewer_schemas.opengeodeweb_viewer.mesh.polygons
|
|
6
10
|
|
|
7
11
|
export function useMeshPolygonsStyle() {
|
|
8
12
|
const dataStyleStore = useDataStyleStore()
|
|
13
|
+
const viewerStore = useViewerStore()
|
|
9
14
|
|
|
10
15
|
function meshPolygonsStyle(id) {
|
|
11
16
|
return dataStyleStore.getStyle(id).polygons
|
|
@@ -16,7 +21,6 @@ export function useMeshPolygonsStyle() {
|
|
|
16
21
|
}
|
|
17
22
|
function setMeshPolygonsVisibility(id, visibility) {
|
|
18
23
|
const polygons_style = meshPolygonsStyle(id)
|
|
19
|
-
const viewerStore = useViewerStore()
|
|
20
24
|
return viewerStore.request(
|
|
21
25
|
mesh_polygons_schemas.visibility,
|
|
22
26
|
{ id, visibility },
|
|
@@ -38,7 +42,6 @@ export function useMeshPolygonsStyle() {
|
|
|
38
42
|
}
|
|
39
43
|
function setMeshPolygonsColor(id, color) {
|
|
40
44
|
const coloring_style = meshPolygonsStyle(id).coloring
|
|
41
|
-
const viewerStore = useViewerStore()
|
|
42
45
|
return viewerStore.request(
|
|
43
46
|
mesh_polygons_schemas.color,
|
|
44
47
|
{ id, color },
|
|
@@ -60,7 +63,6 @@ export function useMeshPolygonsStyle() {
|
|
|
60
63
|
}
|
|
61
64
|
function setMeshPolygonsTextures(id, textures) {
|
|
62
65
|
const coloring_style = meshPolygonsStyle(id).coloring
|
|
63
|
-
const viewerStore = useViewerStore()
|
|
64
66
|
return viewerStore.request(
|
|
65
67
|
mesh_polygons_schemas.apply_textures,
|
|
66
68
|
{ id, textures },
|
|
@@ -83,7 +85,6 @@ export function useMeshPolygonsStyle() {
|
|
|
83
85
|
|
|
84
86
|
function setMeshPolygonsVertexAttribute(id, vertex_attribute) {
|
|
85
87
|
const coloring_style = meshPolygonsStyle(id).coloring
|
|
86
|
-
const viewerStore = useViewerStore()
|
|
87
88
|
return viewerStore.request(
|
|
88
89
|
mesh_polygons_schemas.vertex_attribute,
|
|
89
90
|
{ id, ...vertex_attribute },
|
|
@@ -105,7 +106,6 @@ export function useMeshPolygonsStyle() {
|
|
|
105
106
|
}
|
|
106
107
|
function setMeshPolygonsPolygonAttribute(id, polygon_attribute) {
|
|
107
108
|
const coloring_style = meshPolygonsStyle(id).coloring
|
|
108
|
-
const viewerStore = useViewerStore()
|
|
109
109
|
return viewerStore.request(
|
|
110
110
|
mesh_polygons_schemas.polygon_attribute,
|
|
111
111
|
{ id, ...polygon_attribute },
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
// Third party imports
|
|
2
2
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
|
|
3
3
|
|
|
4
|
+
// Local imports
|
|
5
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
6
|
+
import { useViewerStore } from "@ogw_front/stores/viewer"
|
|
7
|
+
|
|
4
8
|
// Local constants
|
|
5
9
|
const mesh_polyhedra_schemas = viewer_schemas.opengeodeweb_viewer.mesh.polyhedra
|
|
6
10
|
|
|
7
11
|
export function useMeshPolyhedraStyle() {
|
|
8
12
|
const dataStyleStore = useDataStyleStore()
|
|
13
|
+
const viewerStore = useViewerStore()
|
|
9
14
|
|
|
10
15
|
function meshPolyhedraStyle(id) {
|
|
11
16
|
return dataStyleStore.getStyle(id).polyhedra
|
|
@@ -16,7 +21,6 @@ export function useMeshPolyhedraStyle() {
|
|
|
16
21
|
}
|
|
17
22
|
function setMeshPolyhedraVisibility(id, visibility) {
|
|
18
23
|
const polyhedra_style = meshPolyhedraStyle(id)
|
|
19
|
-
const viewerStore = useViewerStore()
|
|
20
24
|
return viewerStore.request(
|
|
21
25
|
mesh_polyhedra_schemas.visibility,
|
|
22
26
|
{ id, visibility },
|
|
@@ -59,7 +63,6 @@ export function useMeshPolyhedraStyle() {
|
|
|
59
63
|
}
|
|
60
64
|
function setMeshPolyhedraColor(id, color) {
|
|
61
65
|
const coloring = meshPolyhedraStyle(id).coloring
|
|
62
|
-
const viewerStore = useViewerStore()
|
|
63
66
|
return viewerStore.request(
|
|
64
67
|
mesh_polyhedra_schemas.color,
|
|
65
68
|
{ id, color },
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
// Third party imports
|
|
2
2
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
|
|
3
3
|
|
|
4
|
+
// Local imports
|
|
5
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
6
|
+
import { useDataBaseStore } from "@ogw_front/stores/data_base"
|
|
7
|
+
import { useViewerStore } from "@ogw_front/stores/viewer"
|
|
8
|
+
|
|
4
9
|
// Local constants
|
|
5
10
|
const model_blocks_schemas = viewer_schemas.opengeodeweb_viewer.model.blocks
|
|
6
11
|
|
|
7
12
|
export function useModelBlocksStyle() {
|
|
8
13
|
const dataStyleStore = useDataStyleStore()
|
|
9
14
|
const dataBaseStore = useDataBaseStore()
|
|
15
|
+
const viewerStore = useViewerStore()
|
|
10
16
|
|
|
11
17
|
function modelBlocksStyle(id) {
|
|
12
18
|
return dataStyleStore.getStyle(id).blocks
|
|
@@ -27,7 +33,6 @@ export function useModelBlocksStyle() {
|
|
|
27
33
|
}
|
|
28
34
|
function setModelBlocksVisibility(id, block_ids, visibility) {
|
|
29
35
|
const blocks_flat_indexes = dataBaseStore.getFlatIndexes(id, block_ids)
|
|
30
|
-
const viewerStore = useViewerStore()
|
|
31
36
|
return viewerStore.request(
|
|
32
37
|
model_blocks_schemas.visibility,
|
|
33
38
|
{ id, block_ids: blocks_flat_indexes, visibility },
|
|
@@ -56,7 +61,6 @@ export function useModelBlocksStyle() {
|
|
|
56
61
|
|
|
57
62
|
function setModelBlocksColor(id, block_ids, color) {
|
|
58
63
|
const blocks_flat_indexes = dataBaseStore.getFlatIndexes(id, block_ids)
|
|
59
|
-
const viewerStore = useViewerStore()
|
|
60
64
|
return viewerStore.request(
|
|
61
65
|
model_blocks_schemas.color,
|
|
62
66
|
{ id, block_ids: blocks_flat_indexes, color },
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
// Third party imports
|
|
2
2
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
|
|
3
3
|
|
|
4
|
+
// Local imports
|
|
5
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
6
|
+
import { useDataBaseStore } from "@ogw_front/stores/data_base"
|
|
7
|
+
import { useViewerStore } from "@ogw_front/stores/viewer"
|
|
8
|
+
|
|
4
9
|
// Local constants
|
|
5
10
|
const model_corners_schemas = viewer_schemas.opengeodeweb_viewer.model.corners
|
|
6
11
|
|
|
7
12
|
export function useModelCornersStyle() {
|
|
8
13
|
const dataStyleStore = useDataStyleStore()
|
|
9
14
|
const dataBaseStore = useDataBaseStore()
|
|
15
|
+
const viewerStore = useViewerStore()
|
|
10
16
|
|
|
11
17
|
function modelCornersStyle(id) {
|
|
12
18
|
return dataStyleStore.getStyle(id).corners
|
|
@@ -27,7 +33,6 @@ export function useModelCornersStyle() {
|
|
|
27
33
|
}
|
|
28
34
|
function setModelCornersVisibility(id, corner_ids, visibility) {
|
|
29
35
|
const corner_flat_indexes = dataBaseStore.getFlatIndexes(id, corner_ids)
|
|
30
|
-
const viewerStore = useViewerStore()
|
|
31
36
|
return viewerStore.request(
|
|
32
37
|
model_corners_schemas.visibility,
|
|
33
38
|
{ id, block_ids: corner_flat_indexes, visibility },
|
|
@@ -57,7 +62,6 @@ export function useModelCornersStyle() {
|
|
|
57
62
|
|
|
58
63
|
function setModelCornersColor(id, corner_ids, color) {
|
|
59
64
|
const corner_flat_indexes = dataBaseStore.getFlatIndexes(id, corner_ids)
|
|
60
|
-
const viewerStore = useViewerStore()
|
|
61
65
|
return viewerStore.request(
|
|
62
66
|
model_corners_schemas.color,
|
|
63
67
|
{ id, block_ids: corner_flat_indexes, color },
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
// Third party imports
|
|
2
2
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
|
|
3
3
|
|
|
4
|
+
// Local imports
|
|
5
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
6
|
+
import { useViewerStore } from "@ogw_front/stores/viewer"
|
|
7
|
+
|
|
4
8
|
// Local constants
|
|
5
9
|
const model_edges_schemas = viewer_schemas.opengeodeweb_viewer.model.edges
|
|
6
10
|
|
|
7
11
|
export function useModelEdgesStyle() {
|
|
8
12
|
const dataStyleStore = useDataStyleStore()
|
|
13
|
+
const viewerStore = useViewerStore()
|
|
9
14
|
|
|
10
15
|
function modelEdgesStyle(id) {
|
|
11
16
|
return dataStyleStore.styles[id].edges
|
|
@@ -15,7 +20,6 @@ export function useModelEdgesStyle() {
|
|
|
15
20
|
}
|
|
16
21
|
|
|
17
22
|
function setModelEdgesVisibility(id, visibility) {
|
|
18
|
-
const viewerStore = useViewerStore()
|
|
19
23
|
return viewerStore.request(
|
|
20
24
|
model_edges_schemas.visibility,
|
|
21
25
|
{ id, visibility },
|
|
@@ -2,12 +2,16 @@
|
|
|
2
2
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
|
|
3
3
|
|
|
4
4
|
// Local imports
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
5
|
+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
|
|
6
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
7
|
+
import { useDataBaseStore } from "@ogw_front/stores/data_base"
|
|
8
|
+
import { useViewerStore } from "@ogw_front/stores/viewer"
|
|
9
|
+
import { useModelSurfacesStyle } from "./surfaces"
|
|
10
|
+
import { useModelCornersStyle } from "./corners"
|
|
11
|
+
import { useModelBlocksStyle } from "./blocks"
|
|
12
|
+
import { useModelLinesStyle } from "./lines"
|
|
13
|
+
import { useModelEdgesStyle } from "./edges"
|
|
14
|
+
import { useModelPointsStyle } from "./points"
|
|
11
15
|
|
|
12
16
|
// Local constants
|
|
13
17
|
const model_schemas = viewer_schemas.opengeodeweb_viewer.model
|
|
@@ -22,12 +26,12 @@ export default function useModelStyle() {
|
|
|
22
26
|
const modelPointsStyleStore = useModelPointsStyle()
|
|
23
27
|
const modelSurfacesStyleStore = useModelSurfacesStyle()
|
|
24
28
|
const hybridViewerStore = useHybridViewerStore()
|
|
29
|
+
const viewerStore = useViewerStore()
|
|
25
30
|
|
|
26
31
|
function modelVisibility(id) {
|
|
27
32
|
return dataStyleStore.getStyle(id).visibility
|
|
28
33
|
}
|
|
29
34
|
function setModelVisibility(id, visibility) {
|
|
30
|
-
const viewerStore = useViewerStore()
|
|
31
35
|
return viewerStore.request(
|
|
32
36
|
model_schemas.visibility,
|
|
33
37
|
{ id, visibility },
|
|
@@ -82,7 +86,6 @@ export default function useModelStyle() {
|
|
|
82
86
|
return dataStyleStore.getStyle(id).color
|
|
83
87
|
}
|
|
84
88
|
function setModelColor(id, color) {
|
|
85
|
-
const viewerStore = useViewerStore()
|
|
86
89
|
return viewerStore.request(
|
|
87
90
|
model_schemas.color,
|
|
88
91
|
{ id, color },
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
// Third party imports
|
|
2
2
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
|
|
3
3
|
|
|
4
|
+
// Local imports
|
|
5
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
6
|
+
import { useDataBaseStore } from "@ogw_front/stores/data_base"
|
|
7
|
+
import { useViewerStore } from "@ogw_front/stores/viewer"
|
|
8
|
+
|
|
4
9
|
// Local constants
|
|
5
10
|
const model_lines_schemas = viewer_schemas.opengeodeweb_viewer.model.lines
|
|
6
11
|
|
|
7
12
|
export function useModelLinesStyle() {
|
|
8
13
|
const dataStyleStore = useDataStyleStore()
|
|
9
14
|
const dataBaseStore = useDataBaseStore()
|
|
15
|
+
const viewerStore = useViewerStore()
|
|
10
16
|
|
|
11
17
|
function modelLinesStyle(id) {
|
|
12
18
|
return dataStyleStore.getStyle(id).lines
|
|
@@ -27,7 +33,6 @@ export function useModelLinesStyle() {
|
|
|
27
33
|
}
|
|
28
34
|
function setModelLinesVisibility(id, line_ids, visibility) {
|
|
29
35
|
const line_flat_indexes = dataBaseStore.getFlatIndexes(id, line_ids)
|
|
30
|
-
const viewerStore = useViewerStore()
|
|
31
36
|
return viewerStore.request(
|
|
32
37
|
model_lines_schemas.visibility,
|
|
33
38
|
{ id, block_ids: line_flat_indexes, visibility },
|
|
@@ -55,7 +60,6 @@ export function useModelLinesStyle() {
|
|
|
55
60
|
}
|
|
56
61
|
function setModelLinesColor(id, line_ids, color) {
|
|
57
62
|
const line_flat_indexes = dataBaseStore.getFlatIndexes(id, line_ids)
|
|
58
|
-
const viewerStore = useViewerStore()
|
|
59
63
|
return viewerStore.request(
|
|
60
64
|
model_lines_schemas.color,
|
|
61
65
|
{ id, block_ids: line_flat_indexes, color },
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
// Third party imports
|
|
2
2
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
|
|
3
3
|
|
|
4
|
+
// Local imports
|
|
5
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
6
|
+
import { useViewerStore } from "@ogw_front/stores/viewer"
|
|
7
|
+
|
|
4
8
|
// Local constants
|
|
5
9
|
const model_points_schemas = viewer_schemas.opengeodeweb_viewer.model.points
|
|
6
10
|
|
|
7
11
|
export function useModelPointsStyle() {
|
|
8
12
|
const dataStyleStore = useDataStyleStore()
|
|
13
|
+
const viewerStore = useViewerStore()
|
|
9
14
|
|
|
10
15
|
function modelPointsStyle(id) {
|
|
11
16
|
return dataStyleStore.getStyle(id).points
|
|
@@ -14,7 +19,6 @@ export function useModelPointsStyle() {
|
|
|
14
19
|
return modelPointsStyle(id).visibility
|
|
15
20
|
}
|
|
16
21
|
function setModelPointsVisibility(id, visibility) {
|
|
17
|
-
const viewerStore = useViewerStore()
|
|
18
22
|
return viewerStore.request(
|
|
19
23
|
model_points_schemas.visibility,
|
|
20
24
|
{ id, visibility },
|
|
@@ -35,7 +39,6 @@ export function useModelPointsStyle() {
|
|
|
35
39
|
return modelPointsStyle(id).size
|
|
36
40
|
}
|
|
37
41
|
function setModelPointsSize(id, size) {
|
|
38
|
-
const viewerStore = useViewerStore()
|
|
39
42
|
return viewerStore.request(
|
|
40
43
|
model_points_schemas.size,
|
|
41
44
|
{ id, size },
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
// Third party imports
|
|
2
2
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
|
|
3
3
|
|
|
4
|
+
// Local imports
|
|
5
|
+
import { useDataBaseStore } from "@ogw_front/stores/data_base"
|
|
6
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
7
|
+
import { useViewerStore } from "@ogw_front/stores/viewer"
|
|
8
|
+
|
|
4
9
|
// Local constants
|
|
5
10
|
const model_surfaces_schemas = viewer_schemas.opengeodeweb_viewer.model.surfaces
|
|
6
11
|
|
|
7
12
|
export function useModelSurfacesStyle() {
|
|
8
13
|
const dataStyleStore = useDataStyleStore()
|
|
9
14
|
const dataBaseStore = useDataBaseStore()
|
|
15
|
+
const viewerStore = useViewerStore()
|
|
10
16
|
|
|
11
17
|
function modelSurfacesStyle(id) {
|
|
12
18
|
return dataStyleStore.getStyle(id).surfaces
|
|
@@ -26,7 +32,6 @@ export function useModelSurfacesStyle() {
|
|
|
26
32
|
}
|
|
27
33
|
function setModelSurfacesVisibility(id, surface_ids, visibility) {
|
|
28
34
|
const surface_flat_indexes = dataBaseStore.getFlatIndexes(id, surface_ids)
|
|
29
|
-
const viewerStore = useViewerStore()
|
|
30
35
|
return viewerStore.request(
|
|
31
36
|
model_surfaces_schemas.visibility,
|
|
32
37
|
{ id, block_ids: surface_flat_indexes, visibility },
|
|
@@ -54,7 +59,6 @@ export function useModelSurfacesStyle() {
|
|
|
54
59
|
|
|
55
60
|
function setModelSurfacesColor(id, surface_ids, color) {
|
|
56
61
|
const surface_flat_indexes = dataBaseStore.getFlatIndexes(id, surface_ids)
|
|
57
|
-
const viewerStore = useViewerStore()
|
|
58
62
|
return viewerStore.request(
|
|
59
63
|
model_surfaces_schemas.color,
|
|
60
64
|
{ id, block_ids: surface_flat_indexes, color },
|