@geode/opengeodeweb-front 10.14.1 → 10.14.2-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/.oxlintrc.json +12 -2
- package/app/components/Basic/Slider.vue +7 -0
- package/app/components/Basic/Switch.vue +7 -0
- package/app/components/HybridRenderingView.vue +1 -1
- package/app/components/SearchBar.vue +1 -1
- package/app/components/Viewer/ContextMenu.vue +1 -3
- package/app/components/Viewer/ContextMenuItem.vue +2 -2
- package/app/components/Viewer/EdgedCurve/SpecificEdgesOptions.vue +5 -9
- package/app/components/Viewer/Generic/Mesh/CellsOptions.vue +7 -2
- package/app/components/Viewer/Generic/Mesh/EdgesOptions.vue +11 -9
- package/app/components/Viewer/Generic/Mesh/PointsOptions.vue +14 -9
- package/app/components/Viewer/Generic/Mesh/PolygonsOptions.vue +10 -2
- package/app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue +10 -2
- package/app/components/Viewer/Generic/Model/PointsOptions.vue +2 -14
- package/app/components/Viewer/ObjectTree/Base/CommonTreeView.vue +189 -0
- package/app/components/Viewer/ObjectTree/Base/Controls.vue +124 -38
- package/app/components/Viewer/ObjectTree/Base/ItemLabel.vue +43 -18
- package/app/components/Viewer/ObjectTree/Base/StickyHeader.vue +46 -0
- package/app/components/Viewer/ObjectTree/Base/TreeRow.vue +77 -0
- package/app/components/Viewer/ObjectTree/Box.vue +106 -15
- package/app/components/Viewer/ObjectTree/Layout.vue +14 -12
- package/app/components/Viewer/ObjectTree/Views/GlobalObjects.vue +48 -33
- package/app/components/Viewer/ObjectTree/Views/ModelComponents.vue +102 -66
- package/app/components/Viewer/Options/Sliders/Size.vue +8 -0
- package/app/components/Viewer/Options/Sliders/Slider.vue +17 -0
- package/app/components/Viewer/Options/Sliders/Width.vue +8 -0
- package/app/components/Viewer/Options/VisibilitySwitch.vue +3 -1
- package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +1 -5
- package/app/components/Viewer/Surface/Triangulated/TrianglesOptions.vue +11 -0
- package/app/composables/hover_highlight.js +85 -0
- package/app/composables/model_components.js +68 -0
- package/app/composables/{use_tree_filter.js → tree_filter.js} +49 -31
- package/app/composables/tree_keyboard_nav.js +81 -0
- package/app/composables/tree_scroll.js +91 -0
- package/app/composables/virtual_tree.js +164 -0
- package/app/stores/data.js +41 -1
- package/app/stores/hybrid_viewer.js +30 -38
- package/app/stores/menu.js +8 -14
- package/app/utils/hybrid_viewer.js +101 -0
- package/package.json +3 -3
- package/tests/integration/setup.js +2 -1
- package/tests/integration/stores/data_style/mesh/cells.nuxt.test.js +2 -3
- package/tests/integration/stores/data_style/mesh/edges.nuxt.test.js +2 -3
- package/tests/integration/stores/data_style/mesh/index.nuxt.test.js +2 -3
- package/tests/integration/stores/data_style/mesh/points.nuxt.test.js +2 -3
- package/tests/integration/stores/data_style/mesh/polygons.nuxt.test.js +2 -3
- package/tests/integration/stores/data_style/mesh/polyhedra.nuxt.test.js +2 -3
- package/tests/integration/stores/data_style/model/blocks.nuxt.test.js +2 -3
- package/tests/integration/stores/data_style/model/corners.nuxt.test.js +2 -3
- package/tests/integration/stores/data_style/model/edges.nuxt.test.js +2 -3
- package/tests/integration/stores/data_style/model/index.nuxt.test.js +2 -3
- package/tests/integration/stores/data_style/model/lines.nuxt.test.js +2 -3
- package/tests/integration/stores/data_style/model/points.nuxt.test.js +2 -3
- package/tests/integration/stores/data_style/model/surfaces.nuxt.test.js +2 -3
- package/tests/integration/stores/viewer.nuxt.test.js +2 -2
- package/app/components/Viewer/HybridSolid/EdgesOptions.vue +0 -12
- package/app/components/Viewer/HybridSolid/PointsOptions.vue +0 -12
- package/app/components/Viewer/HybridSolid/PolygonsOptions.vue +0 -12
- package/app/components/Viewer/HybridSolid/PolyhedraOptions.vue +0 -12
- package/app/components/Viewer/PolygonalSurface/EdgesOptions.vue +0 -12
- package/app/components/Viewer/PolygonalSurface/PointsOptions.vue +0 -12
- package/app/components/Viewer/TriangulatedSurface/TrianglesOptions.vue +0 -16
- package/app/composables/use_hover_highlight.js +0 -48
- package/tests/integration/microservices/back/requirements.txt +0 -7
- package/tests/integration/microservices/viewer/requirements.txt +0 -7
- /package/app/components/Viewer/{TriangulatedSurface → Surface}/EdgesOptions.vue +0 -0
- /package/app/components/Viewer/{TriangulatedSurface → Surface}/PointsOptions.vue +0 -0
- /package/app/components/Viewer/{PolygonalSurface/SpecificPolygonsOptions.vue → Surface/PolygonsOptions.vue} +0 -0
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { useViewerStore } from "@ogw_front/stores/viewer";
|
|
2
|
-
import vtk_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json";
|
|
3
|
-
|
|
4
|
-
const HOVER_DELAY = 1000;
|
|
5
|
-
|
|
6
|
-
export function useHoverhighlight() {
|
|
7
|
-
const viewerStore = useViewerStore();
|
|
8
|
-
let timer = undefined;
|
|
9
|
-
let currentId = undefined;
|
|
10
|
-
let currentType = undefined;
|
|
11
|
-
|
|
12
|
-
function onHoverEnter(id, block_ids = [], type = "model") {
|
|
13
|
-
if (timer) {
|
|
14
|
-
clearTimeout(timer);
|
|
15
|
-
}
|
|
16
|
-
const schema = vtk_schemas.opengeodeweb_viewer[type].highlight;
|
|
17
|
-
timer = setTimeout(async () => {
|
|
18
|
-
currentId = id;
|
|
19
|
-
currentType = type;
|
|
20
|
-
const params = {
|
|
21
|
-
id,
|
|
22
|
-
visibility: true,
|
|
23
|
-
...(type === "model" && { block_ids }),
|
|
24
|
-
};
|
|
25
|
-
await viewerStore.request(schema, params);
|
|
26
|
-
}, HOVER_DELAY);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function onHoverLeave(id) {
|
|
30
|
-
if (timer) {
|
|
31
|
-
clearTimeout(timer);
|
|
32
|
-
timer = undefined;
|
|
33
|
-
}
|
|
34
|
-
if (currentId === id) {
|
|
35
|
-
const schema = vtk_schemas.opengeodeweb_viewer[currentType].highlight;
|
|
36
|
-
const params = {
|
|
37
|
-
id,
|
|
38
|
-
visibility: false,
|
|
39
|
-
...(currentType === "model" && { block_ids: [] }),
|
|
40
|
-
};
|
|
41
|
-
viewerStore.request(schema, params);
|
|
42
|
-
currentId = undefined;
|
|
43
|
-
currentType = undefined;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
return { onHoverEnter, onHoverLeave };
|
|
48
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|