@geode/opengeodeweb-front 9.15.0-rc.2 → 10.0.0-rc.1
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/{assets → app/assets}/geode_objects.js +25 -25
- package/{components → app/components}/ExtensionSelector.vue +3 -0
- package/{components → app/components}/FileSelector.vue +14 -1
- package/{components → app/components}/FileUploader.vue +9 -1
- package/{components → app/components}/HybridRenderingView.vue +2 -0
- package/{components → app/components}/Inspector/ResultPanel.vue +2 -0
- package/{components → app/components}/Launcher.vue +3 -2
- package/{components → app/components}/Loading.vue +13 -11
- package/{components → app/components}/MissingFilesSelector.vue +3 -0
- package/{components → app/components}/ObjectSelector.vue +3 -1
- package/{components → app/components}/PackagesVersions.vue +1 -1
- package/{components → app/components}/Recaptcha.vue +3 -1
- package/{components → app/components}/RemoteRenderingView.vue +4 -2
- package/{components → app/components}/Stepper.vue +2 -0
- package/{components → app/components}/VeaseViewToolbar.vue +3 -0
- package/{components → app/components}/ViewToolbar.vue +2 -0
- package/{components → app/components}/Viewer/EdgedCurve/EdgesOptions.vue +2 -1
- package/{components → app/components}/Viewer/EdgedCurve/PointsOptions.vue +2 -1
- package/{components → app/components}/Viewer/Generic/Mesh/EdgesOptions.vue +4 -0
- package/{components → app/components}/Viewer/Generic/Mesh/PointsOptions.vue +4 -0
- package/{components → app/components}/Viewer/Generic/Mesh/PolygonsOptions.vue +4 -0
- package/{components → app/components}/Viewer/Generic/Mesh/PolyhedraOptions.vue +4 -0
- package/{components → app/components}/Viewer/Generic/Model/EdgesOptions.vue +3 -1
- package/{components → app/components}/Viewer/Generic/Model/PointsOptions.vue +3 -1
- package/{components → app/components}/Viewer/Grid/2D/CellsOptions.vue +2 -1
- package/{components → app/components}/Viewer/Grid/2D/EdgesOptions.vue +2 -1
- package/{components → app/components}/Viewer/Grid/2D/PointsOptions.vue +2 -1
- package/{components → app/components}/Viewer/Grid/3D/CellsOptions.vue +2 -1
- package/{components → app/components}/Viewer/Grid/3D/EdgesOptions.vue +2 -1
- package/{components → app/components}/Viewer/Grid/3D/FacetsOptions.vue +2 -1
- package/{components → app/components}/Viewer/Grid/3D/PointsOptions.vue +2 -1
- package/{components → app/components}/Viewer/HybridSolid/EdgesOptions.vue +2 -1
- package/{components → app/components}/Viewer/HybridSolid/PointsOptions.vue +2 -1
- package/{components → app/components}/Viewer/HybridSolid/PolygonsOptions.vue +2 -1
- package/{components → app/components}/Viewer/HybridSolid/PolyhedraOptions.vue +2 -1
- package/{components → app/components}/Viewer/Options/ColoringTypeSelector.vue +7 -1
- package/{components → app/components}/Viewer/Options/TextureItem.vue +1 -0
- package/{components → app/components}/Viewer/Options/TexturesSelector.vue +4 -3
- package/{components → app/components}/Viewer/PointSet/PointsOptions.vue +2 -1
- package/{components → app/components}/Viewer/PointSet/SpecificPointsOptions.vue +3 -0
- package/{components → app/components}/Viewer/PolygonalSurface/EdgesOptions.vue +2 -1
- package/{components → app/components}/Viewer/PolygonalSurface/PointsOptions.vue +2 -1
- package/{components → app/components}/Viewer/PolygonalSurface/PolygonsOptions.vue +2 -1
- package/{components → app/components}/Viewer/Solid/EdgesOptions.vue +2 -1
- package/{components → app/components}/Viewer/Solid/PointsOptions.vue +2 -1
- package/{components → app/components}/Viewer/Solid/PolygonsOptions.vue +2 -1
- package/{components → app/components}/Viewer/Solid/PolyhedraOptions.vue +2 -1
- package/{components → app/components}/Viewer/TetrahedralSolid/TetrahedraOptions.vue +2 -1
- package/{components → app/components}/Viewer/TetrahedralSolid/TrianglesOptions.vue +2 -1
- package/{components → app/components}/Viewer/Tree/ObjectTree.vue +4 -0
- package/{components → app/components}/Viewer/TriangulatedSurface/EdgesOptions.vue +2 -1
- package/{components → app/components}/Viewer/TriangulatedSurface/PointsOptions.vue +2 -1
- package/{components → app/components}/Viewer/TriangulatedSurface/TrianglesOptions.vue +2 -1
- package/{components → app/components}/Wrapper.vue +7 -1
- package/{composables → app/composables}/api_fetch.js +1 -0
- package/{composables → app/composables}/project_manager.js +6 -4
- package/{composables → app/composables}/viewer_call.js +2 -0
- package/{stores → app/stores}/geode.js +5 -4
- package/{stores → app/stores}/hybrid_viewer.js +1 -1
- package/{stores → app/stores}/infra.js +5 -4
- package/{stores → app/stores}/menu.js +24 -24
- package/{stores → app/stores}/viewer.js +5 -4
- package/nuxt.config.js +2 -2
- package/package.json +1 -1
- package/scripts/generate_geode_objects.js +1 -1
- package/tests/integration/setup.js +7 -7
- package/tests/integration/stores/data_style/mesh/edges.nuxt.test.js +7 -5
- package/tests/integration/stores/data_style/mesh/index.nuxt.test.js +7 -5
- package/tests/integration/stores/data_style/mesh/points.nuxt.test.js +7 -5
- package/tests/integration/stores/data_style/mesh/polygons.nuxt.test.js +7 -5
- package/tests/integration/stores/data_style/mesh/polyhedra.nuxt.test.js +7 -5
- package/tests/integration/stores/data_style/model/blocks.nuxt.test.js +34 -32
- package/tests/integration/stores/data_style/model/corners.nuxt.test.js +7 -5
- package/tests/integration/stores/data_style/model/edges.nuxt.test.js +7 -5
- package/tests/integration/stores/data_style/model/index.nuxt.test.js +7 -5
- package/tests/integration/stores/data_style/model/lines.nuxt.test.js +7 -4
- package/tests/integration/stores/data_style/model/points.nuxt.test.js +9 -5
- package/tests/integration/stores/data_style/model/surfaces.nuxt.test.js +7 -5
- package/tests/unit/components/CrsSelector.nuxt.test.js +1 -1
- package/tests/unit/components/ExtensionSelector.nuxt.test.js +1 -1
- package/tests/unit/components/FeedBack/ErrorsBanner.nuxt.test.js +1 -1
- package/tests/unit/components/FeedBack/Snackers.nuxt.test.js +1 -1
- package/tests/unit/components/FileSelector.nuxt.test.js +2 -2
- package/tests/unit/components/FileUploader.nuxt.test.js +1 -1
- package/tests/unit/components/Inspector/InspectionButton.nuxt.test.js +1 -1
- package/tests/unit/components/Inspector/ResultPanel.nuxt.test.js +1 -1
- package/tests/unit/components/Launcher.nuxt.test.js +1 -1
- package/tests/unit/components/MissingFilesSelector.nuxt.test.js +2 -2
- package/tests/unit/components/ObjectSelector.nuxt.test.js +1 -1
- package/tests/unit/components/PackagesVersions.nuxt.test.js +1 -1
- package/tests/unit/components/Step.nuxt.test.js +2 -2
- package/tests/unit/components/Stepper.nuxt.test.js +2 -2
- package/tests/unit/components/Wrapper.nuxt.test.js +2 -2
- package/tests/unit/composables/ProjectManager.nuxt.test.js +51 -17
- package/tests/unit/composables/run_function_when_microservices_connected.nuxt.test.js +1 -1
- package/tests/unit/composables/upload_file.nuxt.test.js +1 -1
- package/tests/unit/plugins/project_load.nuxt.test.js +1 -1
- package/tests/unit/stores/Appstore.nuxt.test.js +0 -1
- package/tests/unit/stores/Feedback.nuxt.test.js +1 -1
- package/tests/unit/stores/Geode.nuxt.test.js +12 -11
- package/tests/unit/stores/Infra.nuxt.test.js +6 -5
- package/tests/unit/stores/Viewer.nuxt.test.js +4 -4
- package/tests/unit/utils/recaptcha.nuxt.test.js +1 -1
- package/tests/unit/utils/validate_schema.nuxt.test.js +1 -1
- /package/{assets → app/assets}/img/energy_sobriety/chemin.png +0 -0
- /package/{assets → app/assets}/img/energy_sobriety/collegue.png +0 -0
- /package/{assets → app/assets}/img/energy_sobriety/derniere.png +0 -0
- /package/{assets → app/assets}/img/energy_sobriety/etincelle.png +0 -0
- /package/{assets → app/assets}/img/energy_sobriety/geste.png +0 -0
- /package/{assets → app/assets}/img/energy_sobriety/lampadaire.png +0 -0
- /package/{assets → app/assets}/img/energy_sobriety/salon.png +0 -0
- /package/{assets → app/assets}/img/energy_sobriety/sobene.png +0 -0
- /package/{assets → app/assets}/img/energy_sobriety/socle.png +0 -0
- /package/{assets → app/assets}/img/energy_sobriety/vert.png +0 -0
- /package/{assets → app/assets}/img/energy_sobriety/ying_yang.png +0 -0
- /package/{assets → app/assets}/img/geode_objects/BRep.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/CrossSection.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/EdgedCurve2D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/EdgedCurve3D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/Graph.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/HybridSolid3D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/ImplicitCrossSection.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/ImplicitStructuralModel.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/LightRegularGrid2D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/LightRegularGrid3D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/PointSet2D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/PointSet3D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/PolygonalSurface2D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/PolygonalSurface3D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/PolyhedralSolid3D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/RasterImage2D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/RasterImage3D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/RegularGrid2D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/RegularGrid3D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/Section.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/StructuralModel.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/TetrahedralSolid3D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/TriangulatedSurface2D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/TriangulatedSurface3D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/VertexSet.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/edged_curve_edges.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/edged_curve_points.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/grid_2d_cells.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/grid_2d_edges.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/grid_2d_points.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/grid_3d_cells.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/grid_3d_edges.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/grid_3d_facets.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/grid_3d_points.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/point_set_points.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/solid_edges.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/solid_facets.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/solid_points.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/solid_polyhedra.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/surface_edges.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/surface_points.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/surface_triangles.svg +0 -0
- /package/{components → app/components}/Carousel.vue +0 -0
- /package/{components → app/components}/CrsSelector.vue +0 -0
- /package/{components → app/components}/FeedBack/ErrorBanner.vue +0 -0
- /package/{components → app/components}/FeedBack/Snackers.vue +0 -0
- /package/{components → app/components}/FetchingData.vue +0 -0
- /package/{components → app/components}/InfraConnected.vue +0 -0
- /package/{components → app/components}/Inspector/InspectionButton.vue +0 -0
- /package/{components → app/components}/Screenshot.vue +0 -0
- /package/{components → app/components}/Step.vue +0 -0
- /package/{components → app/components}/Viewer/BreadCrumb.vue +0 -0
- /package/{components → app/components}/Viewer/ContextMenu.vue +0 -0
- /package/{components → app/components}/Viewer/ContextMenuItem.vue +0 -0
- /package/{components → app/components}/Viewer/Options/ColorPicker.vue +0 -0
- /package/{components → app/components}/Viewer/Options/PolygonAttributeSelector.vue +0 -0
- /package/{components → app/components}/Viewer/Options/PolyhedronAttributeSelector.vue +0 -0
- /package/{components → app/components}/Viewer/Options/VertexAttributeSelector.vue +0 -0
- /package/{components → app/components}/Viewer/Options/VisibilitySwitch.vue +0 -0
- /package/{components → app/components}/Viewer/TreeComponent.vue +0 -0
- /package/{components → app/components}/Viewer/TreeObject.vue +0 -0
- /package/{components → app/components}/ZScaling.vue +0 -0
- /package/{composables → app/composables}/run_function_when_microservices_connected.js +0 -0
- /package/{composables → app/composables}/upload_file.js +0 -0
- /package/{plugins → app/plugins}/auto_store_register.js +0 -0
- /package/{stores → app/stores}/app.js +0 -0
- /package/{stores → app/stores}/data_base.js +0 -0
- /package/{stores → app/stores}/data_style.js +0 -0
- /package/{stores → app/stores}/feedback.js +0 -0
- /package/{stores → app/stores}/treeview.js +0 -0
- /package/{utils → app/utils}/app_mode.js +0 -0
- /package/{utils → app/utils}/default_styles.js +0 -0
- /package/{utils → app/utils}/file_import_workflow.js +0 -0
- /package/{utils → app/utils}/local.js +0 -0
- /package/{utils → app/utils}/recaptcha.js +0 -0
- /package/{utils → app/utils}/status.js +0 -0
- /package/{utils → app/utils}/validate_schema.js +0 -0
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import
|
|
9
|
+
import ViewerGenericMeshPolygonsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsOptions.vue"
|
|
10
|
+
import PolygonalSurfacePolygons from "@ogw_front/assets/viewer_svgs/surface_triangles.svg"
|
|
10
11
|
|
|
11
12
|
const props = defineProps({
|
|
12
13
|
itemProps: { type: Object, required: true },
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import
|
|
9
|
+
import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions.vue"
|
|
10
|
+
import SolidEdges from "@ogw_front/assets/viewer_svgs/solid_edges.svg"
|
|
10
11
|
|
|
11
12
|
const props = defineProps({
|
|
12
13
|
itemProps: { type: Object, required: true },
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import
|
|
9
|
+
import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions.vue"
|
|
10
|
+
import SolidPoints from "@ogw_front/assets/viewer_svgs/solid_points.svg"
|
|
10
11
|
|
|
11
12
|
const props = defineProps({
|
|
12
13
|
itemProps: { type: Object, required: true },
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import
|
|
9
|
+
import ViewerGenericMeshPolygonsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsOptions.vue"
|
|
10
|
+
import SolidFacets from "@ogw_front/assets/viewer_svgs/solid_facets.svg"
|
|
10
11
|
|
|
11
12
|
const props = defineProps({
|
|
12
13
|
itemProps: { type: Object, required: true },
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import
|
|
9
|
+
import ViewerGenericMeshPolyhedraOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolyhedraOptions.vue"
|
|
10
|
+
import SolidPolyhedra from "@ogw_front/assets/viewer_svgs/solid_polyhedra.svg"
|
|
10
11
|
|
|
11
12
|
const props = defineProps({
|
|
12
13
|
itemProps: { type: Object, required: true },
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
</template>
|
|
8
8
|
|
|
9
9
|
<script setup>
|
|
10
|
-
import
|
|
10
|
+
import ViewerGenericMeshPolyhedraOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolyhedraOptions.vue"
|
|
11
|
+
import TetrahedralSolidTetrahedra from "@ogw_front/assets/viewer_svgs/solid_polyhedra.svg"
|
|
11
12
|
|
|
12
13
|
const props = defineProps({
|
|
13
14
|
itemProps: { type: Object, required: true },
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
</template>
|
|
8
8
|
|
|
9
9
|
<script setup>
|
|
10
|
-
import
|
|
10
|
+
import ViewerGenericMeshPolygonsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsOptions.vue"
|
|
11
|
+
import TetrahedralSolidTriangles from "@ogw_front/assets/viewer_svgs/solid_facets.svg"
|
|
11
12
|
|
|
12
13
|
const props = defineProps({
|
|
13
14
|
itemProps: { type: Object, required: true },
|
|
@@ -42,6 +42,10 @@
|
|
|
42
42
|
</template>
|
|
43
43
|
|
|
44
44
|
<script setup>
|
|
45
|
+
import ViewerBreadCrumb from "@/app/components/Viewer/BreadCrumb.vue"
|
|
46
|
+
import ViewerTreeObject from "@/app/components/Viewer/TreeObject.vue"
|
|
47
|
+
import ViewerTreeComponent from "@/app/components/Viewer/TreeComponent.vue"
|
|
48
|
+
|
|
45
49
|
const treeviewStore = useTreeviewStore()
|
|
46
50
|
const menuStore = useMenuStore()
|
|
47
51
|
const cardContainer = useTemplateRef("cardContainer")
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import
|
|
9
|
+
import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions.vue"
|
|
10
|
+
import SurfaceEdges from "@ogw_front/assets/viewer_svgs/surface_edges.svg"
|
|
10
11
|
|
|
11
12
|
const props = defineProps({
|
|
12
13
|
itemProps: { type: Object, required: true },
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import
|
|
9
|
+
import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions.vue"
|
|
10
|
+
import TriangulatedSurfaceEdgesPoints from "@ogw_front/assets/viewer_svgs/surface_points.svg"
|
|
10
11
|
|
|
11
12
|
const props = defineProps({
|
|
12
13
|
itemProps: { type: Object, required: true },
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
</template>
|
|
8
8
|
|
|
9
9
|
<script setup>
|
|
10
|
-
import
|
|
10
|
+
import ViewerGenericMeshPolygonsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsOptions.vue"
|
|
11
|
+
import TriangulatedSurfaceEdgesTriangles from "@ogw_front/assets/viewer_svgs/surface_triangles.svg"
|
|
11
12
|
|
|
12
13
|
const props = defineProps({
|
|
13
14
|
itemProps: { type: Object, required: true },
|
|
@@ -10,13 +10,19 @@
|
|
|
10
10
|
<v-col>
|
|
11
11
|
<Stepper />
|
|
12
12
|
</v-col>
|
|
13
|
-
<v-col>
|
|
13
|
+
<v-col>
|
|
14
|
+
<PackagesVersions :schema="versions_schema" />
|
|
15
|
+
</v-col>
|
|
14
16
|
</template>
|
|
15
17
|
</v-row>
|
|
16
18
|
</v-container>
|
|
17
19
|
</template>
|
|
18
20
|
|
|
19
21
|
<script setup>
|
|
22
|
+
import Launcher from "@ogw_front/components/Launcher.vue"
|
|
23
|
+
import PackagesVersions from "@ogw_front/components/PackagesVersions.vue"
|
|
24
|
+
import Stepper from "@ogw_front/components/Stepper.vue"
|
|
25
|
+
|
|
20
26
|
const infra_store = useInfraStore()
|
|
21
27
|
|
|
22
28
|
const props = defineProps({
|
|
@@ -2,11 +2,13 @@ import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.jso
|
|
|
2
2
|
import fileDownload from "js-file-download"
|
|
3
3
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
|
|
4
4
|
|
|
5
|
+
import { importWorkflowFromSnapshot } from "@ogw_front/utils/file_import_workflow"
|
|
6
|
+
|
|
5
7
|
export function useProjectManager() {
|
|
6
8
|
const exportProject = async function () {
|
|
7
9
|
console.log("[export triggered]")
|
|
8
10
|
const appStore = useAppStore()
|
|
9
|
-
const
|
|
11
|
+
const geodeStore = useGeodeStore()
|
|
10
12
|
const infraStore = useInfraStore()
|
|
11
13
|
const snapshot = appStore.exportStores()
|
|
12
14
|
const schema = back_schemas.opengeodeweb_back.export_project
|
|
@@ -14,7 +16,7 @@ export function useProjectManager() {
|
|
|
14
16
|
|
|
15
17
|
await infraStore.create_connection()
|
|
16
18
|
const result = await $fetch(schema.$id, {
|
|
17
|
-
baseURL:
|
|
19
|
+
baseURL: geodeStore.base_url,
|
|
18
20
|
method: schema.methods.filter((m) => m !== "OPTIONS")[0],
|
|
19
21
|
body: { snapshot, filename: defaultName },
|
|
20
22
|
})
|
|
@@ -23,7 +25,7 @@ export function useProjectManager() {
|
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
const importProjectFile = async function (file) {
|
|
26
|
-
const
|
|
28
|
+
const geodeStore = useGeodeStore()
|
|
27
29
|
const viewerStore = useViewerStore()
|
|
28
30
|
const dataBaseStore = useDataBaseStore()
|
|
29
31
|
const treeviewStore = useTreeviewStore()
|
|
@@ -59,7 +61,7 @@ export function useProjectManager() {
|
|
|
59
61
|
form.append("file", file, originalFileName)
|
|
60
62
|
|
|
61
63
|
const result = await $fetch(schemaImport.$id, {
|
|
62
|
-
baseURL:
|
|
64
|
+
baseURL: geodeStore.base_url,
|
|
63
65
|
method: "POST",
|
|
64
66
|
body: form,
|
|
65
67
|
})
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
|
|
2
|
-
import Status from "@
|
|
2
|
+
import Status from "@ogw_front/utils/status.js"
|
|
3
|
+
import { appMode } from "@ogw_front/utils/app_mode.js"
|
|
3
4
|
|
|
4
5
|
export const useGeodeStore = defineStore("geode", {
|
|
5
6
|
state: () => ({
|
|
@@ -9,13 +10,13 @@ export const useGeodeStore = defineStore("geode", {
|
|
|
9
10
|
}),
|
|
10
11
|
getters: {
|
|
11
12
|
protocol() {
|
|
12
|
-
if (useInfraStore().app_mode == appMode.
|
|
13
|
+
if (useInfraStore().app_mode == appMode.CLOUD) {
|
|
13
14
|
return "https"
|
|
14
15
|
}
|
|
15
16
|
return "http"
|
|
16
17
|
},
|
|
17
18
|
port() {
|
|
18
|
-
if (useInfraStore().app_mode == appMode.
|
|
19
|
+
if (useInfraStore().app_mode == appMode.CLOUD) {
|
|
19
20
|
return "443"
|
|
20
21
|
}
|
|
21
22
|
const GEODE_PORT = useRuntimeConfig().public.GEODE_PORT
|
|
@@ -27,7 +28,7 @@ export const useGeodeStore = defineStore("geode", {
|
|
|
27
28
|
base_url() {
|
|
28
29
|
const infra_store = useInfraStore()
|
|
29
30
|
let geode_url = `${this.protocol}://${infra_store.domain_name}:${this.port}`
|
|
30
|
-
if (infra_store.app_mode == appMode.
|
|
31
|
+
if (infra_store.app_mode == appMode.CLOUD) {
|
|
31
32
|
if (infra_store.ID == "") {
|
|
32
33
|
throw new Error("ID must not be empty in cloud mode")
|
|
33
34
|
}
|
|
@@ -5,7 +5,7 @@ import vtkMapper from "@kitware/vtk.js/Rendering/Core/Mapper"
|
|
|
5
5
|
import vtkActor from "@kitware/vtk.js/Rendering/Core/Actor"
|
|
6
6
|
|
|
7
7
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
|
|
8
|
-
import Status from "@
|
|
8
|
+
import Status from "@ogw_front/utils/status.js"
|
|
9
9
|
|
|
10
10
|
export const useHybridViewerStore = defineStore("hybridViewer", () => {
|
|
11
11
|
const viewerStore = useViewerStore()
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useStorage } from "@vueuse/core"
|
|
2
|
-
import Status from "@
|
|
2
|
+
import Status from "@ogw_front/utils/status.js"
|
|
3
|
+
import { appMode, getAppMode } from "@ogw_front/utils/app_mode.js"
|
|
3
4
|
|
|
4
5
|
export const useInfraStore = defineStore("infra", {
|
|
5
6
|
state: () => ({
|
|
@@ -10,7 +11,7 @@ export const useInfraStore = defineStore("infra", {
|
|
|
10
11
|
}),
|
|
11
12
|
getters: {
|
|
12
13
|
domain_name() {
|
|
13
|
-
if (this.app_mode == appMode.
|
|
14
|
+
if (this.app_mode == appMode.CLOUD) {
|
|
14
15
|
return useRuntimeConfig().public.API_URL
|
|
15
16
|
}
|
|
16
17
|
return "localhost"
|
|
@@ -47,7 +48,7 @@ export const useInfraStore = defineStore("infra", {
|
|
|
47
48
|
this.status = Status.CREATING
|
|
48
49
|
if (this.status === Status.CREATED) return
|
|
49
50
|
console.log("LOCK GRANTED !", lock)
|
|
50
|
-
if (this.app_mode == appMode.
|
|
51
|
+
if (this.app_mode == appMode.DESKTOP) {
|
|
51
52
|
const viewer_store = useViewerStore()
|
|
52
53
|
const geode_store = useGeodeStore()
|
|
53
54
|
const [back_port, viewer_port] = await Promise.all([
|
|
@@ -56,7 +57,7 @@ export const useInfraStore = defineStore("infra", {
|
|
|
56
57
|
])
|
|
57
58
|
geode_store.$patch({ default_local_port: back_port })
|
|
58
59
|
viewer_store.$patch({ default_local_port: viewer_port })
|
|
59
|
-
} else if (this.app_mode == appMode.
|
|
60
|
+
} else if (this.app_mode == appMode.CLOUD) {
|
|
60
61
|
const { data, error } = await useFetch(this.lambda_url, {
|
|
61
62
|
method: "POST",
|
|
62
63
|
})
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
// PointSet components
|
|
2
|
-
import PointSetPointsOptions from "@
|
|
2
|
+
import PointSetPointsOptions from "@ogw_front/components/Viewer/PointSet/PointsOptions.vue"
|
|
3
3
|
|
|
4
4
|
// EdgedCurve components
|
|
5
|
-
import EdgedCurvePointsOptions from "@
|
|
6
|
-
import EdgedCurveEdgesOptions from "@
|
|
5
|
+
import EdgedCurvePointsOptions from "@ogw_front/components/Viewer/EdgedCurve/PointsOptions.vue"
|
|
6
|
+
import EdgedCurveEdgesOptions from "@ogw_front/components/Viewer/EdgedCurve/EdgesOptions.vue"
|
|
7
7
|
|
|
8
8
|
// PolygonalSurface components
|
|
9
|
-
import PolygonalSurfacePointsOptions from "@
|
|
10
|
-
import PolygonalSurfaceEdgesOptions from "@
|
|
11
|
-
import PolygonalSurfacePolygonsOptions from "@
|
|
9
|
+
import PolygonalSurfacePointsOptions from "@ogw_front/components/Viewer/PolygonalSurface/PointsOptions.vue"
|
|
10
|
+
import PolygonalSurfaceEdgesOptions from "@ogw_front/components/Viewer/PolygonalSurface/EdgesOptions.vue"
|
|
11
|
+
import PolygonalSurfacePolygonsOptions from "@ogw_front/components/Viewer/PolygonalSurface/PolygonsOptions.vue"
|
|
12
12
|
|
|
13
13
|
// TriangulatedSurface components
|
|
14
|
-
import TriangulatedSurfacePointsOptions from "@
|
|
15
|
-
import TriangulatedSurfaceEdgesOptions from "@
|
|
16
|
-
import TriangulatedSurfaceTrianglesOptions from "@
|
|
14
|
+
import TriangulatedSurfacePointsOptions from "@ogw_front/components/Viewer/TriangulatedSurface/PointsOptions.vue"
|
|
15
|
+
import TriangulatedSurfaceEdgesOptions from "@ogw_front/components/Viewer/TriangulatedSurface/EdgesOptions.vue"
|
|
16
|
+
import TriangulatedSurfaceTrianglesOptions from "@ogw_front/components/Viewer/TriangulatedSurface/TrianglesOptions.vue"
|
|
17
17
|
|
|
18
18
|
// Grid 2D components
|
|
19
|
-
import Grid2DPointsOptions from "@
|
|
20
|
-
import Grid2DEdgesOptions from "@
|
|
21
|
-
import Grid2DCellsOptions from "@
|
|
19
|
+
import Grid2DPointsOptions from "@ogw_front/components/Viewer/Grid/2D/PointsOptions.vue"
|
|
20
|
+
import Grid2DEdgesOptions from "@ogw_front/components/Viewer/Grid/2D/EdgesOptions.vue"
|
|
21
|
+
import Grid2DCellsOptions from "@ogw_front/components/Viewer/Grid/2D/CellsOptions.vue"
|
|
22
22
|
|
|
23
23
|
// Grid 3D components
|
|
24
|
-
import Grid3DPointsOptions from "@
|
|
25
|
-
import Grid3DEdgesOptions from "@
|
|
26
|
-
import Grid3DFacetsOptions from "@
|
|
27
|
-
import Grid3DCellsOptions from "@
|
|
24
|
+
import Grid3DPointsOptions from "@ogw_front/components/Viewer/Grid/3D/PointsOptions.vue"
|
|
25
|
+
import Grid3DEdgesOptions from "@ogw_front/components/Viewer/Grid/3D/EdgesOptions.vue"
|
|
26
|
+
import Grid3DFacetsOptions from "@ogw_front/components/Viewer/Grid/3D/FacetsOptions.vue"
|
|
27
|
+
import Grid3DCellsOptions from "@ogw_front/components/Viewer/Grid/3D/CellsOptions.vue"
|
|
28
28
|
|
|
29
29
|
// Solid components
|
|
30
|
-
import SolidPointsOptions from "@
|
|
31
|
-
import SolidEdgesOptions from "@
|
|
32
|
-
import SolidPolygonsOptions from "@
|
|
33
|
-
import SolidPolyhedraOptions from "@
|
|
30
|
+
import SolidPointsOptions from "@ogw_front/components/Viewer/Solid/PointsOptions.vue"
|
|
31
|
+
import SolidEdgesOptions from "@ogw_front/components/Viewer/Solid/EdgesOptions.vue"
|
|
32
|
+
import SolidPolygonsOptions from "@ogw_front/components/Viewer/Solid/PolygonsOptions.vue"
|
|
33
|
+
import SolidPolyhedraOptions from "@ogw_front/components/Viewer/Solid/PolyhedraOptions.vue"
|
|
34
34
|
|
|
35
35
|
// TetrahedralSolid components
|
|
36
|
-
import TetrahedralSolidTrianglesOptions from "@
|
|
37
|
-
import TetrahedralSolidTetrahedraOptions from "@
|
|
36
|
+
import TetrahedralSolidTrianglesOptions from "@ogw_front/components/Viewer/TetrahedralSolid/TrianglesOptions.vue"
|
|
37
|
+
import TetrahedralSolidTetrahedraOptions from "@ogw_front/components/Viewer/TetrahedralSolid/TetrahedraOptions.vue"
|
|
38
38
|
|
|
39
39
|
// Model components
|
|
40
|
-
import ModelEdgesOptions from "@
|
|
41
|
-
import ModelPointsOptions from "@
|
|
40
|
+
import ModelEdgesOptions from "@ogw_front/components/Viewer/Generic/Model/EdgesOptions.vue"
|
|
41
|
+
import ModelPointsOptions from "@ogw_front/components/Viewer/Generic/Model/PointsOptions.vue"
|
|
42
42
|
|
|
43
43
|
const PointSet_menu = [PointSetPointsOptions]
|
|
44
44
|
|
|
@@ -2,7 +2,8 @@ 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 "@
|
|
5
|
+
import Status from "@ogw_front/utils/status.js"
|
|
6
|
+
import { appMode } from "@ogw_front/utils/app_mode.js"
|
|
6
7
|
|
|
7
8
|
export const useViewerStore = defineStore("viewer", {
|
|
8
9
|
state: () => ({
|
|
@@ -16,14 +17,14 @@ export const useViewerStore = defineStore("viewer", {
|
|
|
16
17
|
}),
|
|
17
18
|
getters: {
|
|
18
19
|
protocol() {
|
|
19
|
-
if (useInfraStore().app_mode == appMode.
|
|
20
|
+
if (useInfraStore().app_mode == appMode.CLOUD) {
|
|
20
21
|
return "wss"
|
|
21
22
|
} else {
|
|
22
23
|
return "ws"
|
|
23
24
|
}
|
|
24
25
|
},
|
|
25
26
|
port() {
|
|
26
|
-
if (useInfraStore().app_mode == appMode.
|
|
27
|
+
if (useInfraStore().app_mode == appMode.CLOUD) {
|
|
27
28
|
return "443"
|
|
28
29
|
}
|
|
29
30
|
const VIEWER_PORT = useRuntimeConfig().public.VIEWER_PORT
|
|
@@ -35,7 +36,7 @@ export const useViewerStore = defineStore("viewer", {
|
|
|
35
36
|
base_url() {
|
|
36
37
|
const infra_store = useInfraStore()
|
|
37
38
|
let viewer_url = `${this.protocol}://${infra_store.domain_name}:${this.port}`
|
|
38
|
-
if (infra_store.app_mode == appMode.
|
|
39
|
+
if (infra_store.app_mode == appMode.CLOUD) {
|
|
39
40
|
if (infra_store.ID == "") {
|
|
40
41
|
throw new Error("ID must not be empty in cloud mode")
|
|
41
42
|
}
|
package/nuxt.config.js
CHANGED
|
@@ -16,11 +16,11 @@ export default defineNuxtConfig({
|
|
|
16
16
|
"@vueuse/nuxt",
|
|
17
17
|
],
|
|
18
18
|
imports: {
|
|
19
|
-
dirs: ["stores"],
|
|
19
|
+
dirs: ["app/stores", "app/composables"],
|
|
20
20
|
},
|
|
21
21
|
|
|
22
22
|
alias: {
|
|
23
|
-
"@
|
|
23
|
+
"@ogw_front": __dirname + "/app/",
|
|
24
24
|
},
|
|
25
25
|
|
|
26
26
|
// ** Global CSS
|
package/package.json
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"description": "OpenSource Vue/Nuxt/Pinia/Vuetify framework for web applications",
|
|
41
41
|
"type": "module",
|
|
42
|
-
"version": "
|
|
42
|
+
"version": "10.0.0-rc.1",
|
|
43
43
|
"main": "./nuxt.config.js",
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@geode/opengeodeweb-back": "next",
|
|
@@ -15,7 +15,7 @@ var geode_objects = "const geode_objects = {"
|
|
|
15
15
|
for (const file of files) {
|
|
16
16
|
const geode_object = file.replace(".svg", "")
|
|
17
17
|
imports +=
|
|
18
|
-
`import ${geode_object} from "@
|
|
18
|
+
`import ${geode_object} from "@ogw_front/assets/img/geode_objects/${file}"` +
|
|
19
19
|
"\n"
|
|
20
20
|
geode_objects += `${geode_object}:{\n tooltip: "${geode_object}",\n image: ${geode_object},\n},\n`
|
|
21
21
|
}
|
|
@@ -9,18 +9,18 @@ import { createTestingPinia } from "@pinia/testing"
|
|
|
9
9
|
import { afterAll, beforeAll, expect, vi } from "vitest"
|
|
10
10
|
|
|
11
11
|
// Local imports
|
|
12
|
-
import { useGeodeStore } from "
|
|
13
|
-
import { useViewerStore } from "
|
|
14
|
-
import { useInfraStore } from "
|
|
15
|
-
import { appMode } from "
|
|
16
|
-
import { importFile } from "
|
|
17
|
-
import Status from "
|
|
12
|
+
import { useGeodeStore } from "@ogw_front/stores/geode"
|
|
13
|
+
import { useViewerStore } from "@ogw_front/stores/viewer"
|
|
14
|
+
import { useInfraStore } from "@ogw_front/stores/infra"
|
|
15
|
+
import { appMode } from "@ogw_front/utils/app_mode"
|
|
16
|
+
import { importFile } from "@ogw_front/utils/file_import_workflow"
|
|
17
|
+
import Status from "@ogw_front/utils/status"
|
|
18
18
|
import {
|
|
19
19
|
executable_name,
|
|
20
20
|
executable_path,
|
|
21
21
|
run_back,
|
|
22
22
|
run_viewer,
|
|
23
|
-
} from "
|
|
23
|
+
} from "@ogw_front/utils/local"
|
|
24
24
|
|
|
25
25
|
// Local constants
|
|
26
26
|
const data_folder = path.join("tests", "integration", "data")
|
|
@@ -3,11 +3,13 @@ import { afterEach, beforeEach, describe, expect, test, vi } from "vitest"
|
|
|
3
3
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json" with { type: "json" }
|
|
4
4
|
|
|
5
5
|
// Local imports
|
|
6
|
-
import Status from "
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
import Status from "@ogw_front/utils/status"
|
|
7
|
+
import {
|
|
8
|
+
delete_folder_recursive,
|
|
9
|
+
kill_back,
|
|
10
|
+
kill_viewer,
|
|
11
|
+
} from "@ogw_front/utils/local"
|
|
12
|
+
import * as composables from "@ogw_front/composables/viewer_call"
|
|
11
13
|
import { setupIntegrationTests } from "../../../setup.js"
|
|
12
14
|
|
|
13
15
|
// Local constants
|
|
@@ -3,11 +3,13 @@ import { afterEach, beforeEach, describe, expect, test, vi } from "vitest"
|
|
|
3
3
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json" with { type: "json" }
|
|
4
4
|
|
|
5
5
|
// Local imports
|
|
6
|
-
import Status from "
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
import Status from "@ogw_front/utils/status"
|
|
7
|
+
import {
|
|
8
|
+
delete_folder_recursive,
|
|
9
|
+
kill_back,
|
|
10
|
+
kill_viewer,
|
|
11
|
+
} from "@ogw_front/utils/local"
|
|
12
|
+
import * as composables from "@ogw_front/composables/viewer_call"
|
|
11
13
|
import { setupIntegrationTests } from "../../../setup.js"
|
|
12
14
|
|
|
13
15
|
// Local constants
|
|
@@ -3,11 +3,13 @@ import { afterEach, beforeEach, describe, expect, test, vi } from "vitest"
|
|
|
3
3
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json" with { type: "json" }
|
|
4
4
|
|
|
5
5
|
// Local imports
|
|
6
|
-
import Status from "
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
import Status from "@ogw_front/utils/status"
|
|
7
|
+
import {
|
|
8
|
+
delete_folder_recursive,
|
|
9
|
+
kill_back,
|
|
10
|
+
kill_viewer,
|
|
11
|
+
} from "@ogw_front/utils/local"
|
|
12
|
+
import * as composables from "@ogw_front/composables/viewer_call"
|
|
11
13
|
import { setupIntegrationTests } from "../../../setup.js"
|
|
12
14
|
|
|
13
15
|
// Local constants
|
|
@@ -3,11 +3,13 @@ import { afterEach, beforeEach, describe, expect, test, vi } from "vitest"
|
|
|
3
3
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json" with { type: "json" }
|
|
4
4
|
|
|
5
5
|
// Local imports
|
|
6
|
-
import Status from "
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
import Status from "@ogw_front/utils/status"
|
|
7
|
+
import {
|
|
8
|
+
delete_folder_recursive,
|
|
9
|
+
kill_back,
|
|
10
|
+
kill_viewer,
|
|
11
|
+
} from "@ogw_front/utils/local"
|
|
12
|
+
import * as composables from "@ogw_front/composables/viewer_call"
|
|
11
13
|
import { setupIntegrationTests } from "../../../setup.js"
|
|
12
14
|
|
|
13
15
|
// Local constants
|
|
@@ -3,11 +3,13 @@ import { afterEach, beforeEach, describe, expect, test, vi } from "vitest"
|
|
|
3
3
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json" with { type: "json" }
|
|
4
4
|
|
|
5
5
|
// Local imports
|
|
6
|
-
import Status from "
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
import Status from "@ogw_front/utils/status"
|
|
7
|
+
import {
|
|
8
|
+
delete_folder_recursive,
|
|
9
|
+
kill_back,
|
|
10
|
+
kill_viewer,
|
|
11
|
+
} from "@ogw_front/utils/local"
|
|
12
|
+
import * as composables from "@ogw_front/composables/viewer_call"
|
|
11
13
|
import { setupIntegrationTests } from "../../../setup.js"
|
|
12
14
|
|
|
13
15
|
// Local constants
|
|
@@ -3,11 +3,13 @@ import { afterEach, beforeEach, describe, expect, test, vi } from "vitest"
|
|
|
3
3
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json" with { type: "json" }
|
|
4
4
|
|
|
5
5
|
// Local imports
|
|
6
|
-
import Status from "
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
import Status from "@ogw_front/utils/status"
|
|
7
|
+
import {
|
|
8
|
+
delete_folder_recursive,
|
|
9
|
+
kill_back,
|
|
10
|
+
kill_viewer,
|
|
11
|
+
} from "@ogw_front/utils/local"
|
|
12
|
+
import * as composables from "@ogw_front/composables/viewer_call"
|
|
11
13
|
import { setupIntegrationTests } from "../../../setup.js"
|
|
12
14
|
|
|
13
15
|
// Local constants
|
|
@@ -62,31 +64,31 @@ describe("Model blocks", () => {
|
|
|
62
64
|
})
|
|
63
65
|
})
|
|
64
66
|
|
|
65
|
-
describe("Blocks color", () => {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
})
|
|
67
|
+
// describe("Blocks color", () => {
|
|
68
|
+
// test("Color red", async () => {
|
|
69
|
+
// const dataStyleStore = useDataStyleStore()
|
|
70
|
+
// const viewerStore = useViewerStore()
|
|
71
|
+
// const dataBaseStore = useDataBaseStore()
|
|
72
|
+
// const block_ids = dataBaseStore.getBlocksUuids(id)
|
|
73
|
+
// const block_flat_indexes = dataBaseStore.getFlatIndexes(id, block_ids)
|
|
74
|
+
// const color = { r: 255, g: 0, b: 0 }
|
|
75
|
+
// const spy = vi.spyOn(composables, "viewer_call")
|
|
76
|
+
// await dataStyleStore.setModelBlocksColor(id, block_ids, color)
|
|
77
|
+
// expect(spy).toHaveBeenCalledWith(
|
|
78
|
+
// {
|
|
79
|
+
// schema: model_blocks_schemas.color,
|
|
80
|
+
// params: { id, block_ids: block_flat_indexes, color },
|
|
81
|
+
// },
|
|
82
|
+
// {
|
|
83
|
+
// response_function: expect.any(Function),
|
|
84
|
+
// },
|
|
85
|
+
// )
|
|
86
|
+
// for (const block_id of block_ids) {
|
|
87
|
+
// expect(dataStyleStore.modelBlockColor(id, block_id)).toStrictEqual(
|
|
88
|
+
// color,
|
|
89
|
+
// )
|
|
90
|
+
// }
|
|
91
|
+
// expect(viewerStore.status).toBe(Status.CONNECTED)
|
|
92
|
+
// })
|
|
93
|
+
// })
|
|
92
94
|
})
|