vease 1.56.0 → 1.57.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.
@@ -19,9 +19,10 @@ import { setMeshPolyhedraVisibility } from "./mesh/polyhedra/visibility.js";
19
19
  import "./mesh/index.js";
20
20
  import { setModelCellsCellAttribute, setModelCellsVertexAttribute, setModelEdgesEdgeAttribute, setModelEdgesVertexAttribute, setModelEdgesVertexAttributeNoDataColor, setModelPointsVertexAttribute, setModelPointsVertexAttributeNoDataColor, setModelPolygonsPolygonAttribute, setModelPolygonsVertexAttribute, setModelPolygonsVertexAttributeNoDataColor, setModelPolyhedraPolyhedronAttribute, setModelPolyhedraVertexAttribute, setModelPolyhedraVertexAttributeNoDataColor } from "./model/attribute.js";
21
21
  import { copyModelEdgesColor, copyModelPointsColor, copyModelPolygonsColor, copyModelPolyhedraColor, pasteModelEdgesColorInput, pasteModelPointsColorInput, pasteModelPolygonsColorInput, pasteModelPolyhedraColorInput, setModelColor, setModelColorWithSlider, setModelColoringStyle, setModelEdgesColorInput, setModelOpacity, setModelPointsColorInput, setModelPolygonsColorInput, setModelPolyhedraColorInput } from "./model/color.js";
22
+ import { setModelComponentsEdgesColor, setModelComponentsEdgesVertexAttribute, setModelComponentsEdgesVisibility, setModelComponentsEdgesWidth } from "./model/edges/components.js";
22
23
  import { setModelEdgesVisibility } from "./model/edges/visibility.js";
23
24
  import { setModelComponentsPointsColor, setModelComponentsPointsSize, setModelComponentsPointsVertexAttribute, setModelComponentsPointsVisibility } from "./model/points/components.js";
24
25
  import { setModelPointsVisibility } from "./model/points/visibility.js";
25
26
  import { setModelSurfacesVisibility } from "./model/surfaces/visibility.js";
26
27
  import "./model/index.js";
27
- export { copyMeshCellsColor, copyMeshEdgesColor, copyMeshPointsColor, copyMeshPolygonsColor, copyMeshPolyhedraColor, copyModelEdgesColor, copyModelPointsColor, copyModelPolygonsColor, copyModelPolyhedraColor, openMeshCellsMenu, openMeshEdgesMenu, openMeshPointsMenu, openMeshPolygonsMenu, openMeshPolyhedraMenu, pasteMeshCellsColorInput, pasteMeshEdgesColorInput, pasteMeshPointsColorInput, pasteMeshPolygonsColorInput, pasteMeshPolyhedraColorInput, pasteModelEdgesColorInput, pasteModelPointsColorInput, pasteModelPolygonsColorInput, pasteModelPolyhedraColorInput, setMeshCellsCellAttribute, setMeshCellsColor, setMeshCellsColorInput, setMeshCellsColorMap, setMeshCellsColorWithSlider, setMeshCellsColoringStyle, setMeshCellsItem, setMeshCellsNoDataColor, setMeshCellsOpacity, setMeshCellsVertexAttribute, setMeshCellsVisibility, setMeshEdgesColor, setMeshEdgesColorInput, setMeshEdgesColorMap, setMeshEdgesColorWithSlider, setMeshEdgesColoringStyle, setMeshEdgesEdgeAttribute, setMeshEdgesItem, setMeshEdgesNoDataColor, setMeshEdgesOpacity, setMeshEdgesVertexAttribute, setMeshEdgesVisibility, setMeshEdgesWidth, setMeshPointsColor, setMeshPointsColorInput, setMeshPointsColorWithSlider, setMeshPointsColoringStyle, setMeshPointsNoDataColor, setMeshPointsOpacity, setMeshPointsSize, setMeshPointsVertexAttribute, setMeshPointsVisibility, setMeshPolygonsColor, setMeshPolygonsColorInput, setMeshPolygonsColorMap, setMeshPolygonsColorWithSlider, setMeshPolygonsColoringStyle, setMeshPolygonsItem, setMeshPolygonsNoDataColor, setMeshPolygonsOpacity, setMeshPolygonsPolygonAttribute, setMeshPolygonsTextures, setMeshPolygonsTimeStep, setMeshPolygonsVertexAttribute, setMeshPolygonsVisibility, setMeshPolyhedraColor, setMeshPolyhedraColorBlack, setMeshPolyhedraColorInput, setMeshPolyhedraColorMap, setMeshPolyhedraColorWithSlider, setMeshPolyhedraColoringStyle, setMeshPolyhedraItem, setMeshPolyhedraNoDataColor, setMeshPolyhedraOpacity, setMeshPolyhedraPolyhedronAttribute, setMeshPolyhedraVertexAttribute, setMeshPolyhedraVisibility, setModelCellsCellAttribute, setModelCellsVertexAttribute, setModelColor, setModelColorWithSlider, setModelColoringStyle, setModelComponentsPointsColor, setModelComponentsPointsSize, setModelComponentsPointsVertexAttribute, setModelComponentsPointsVisibility, setModelEdgesColorInput, setModelEdgesEdgeAttribute, setModelEdgesVertexAttribute, setModelEdgesVertexAttributeNoDataColor, setModelEdgesVisibility, setModelOpacity, setModelPointsColorInput, setModelPointsVertexAttribute, setModelPointsVertexAttributeNoDataColor, setModelPointsVisibility, setModelPolygonsColorInput, setModelPolygonsPolygonAttribute, setModelPolygonsVertexAttribute, setModelPolygonsVertexAttributeNoDataColor, setModelPolyhedraColorInput, setModelPolyhedraPolyhedronAttribute, setModelPolyhedraVertexAttribute, setModelPolyhedraVertexAttributeNoDataColor, setModelSurfacesVisibility };
28
+ export { copyMeshCellsColor, copyMeshEdgesColor, copyMeshPointsColor, copyMeshPolygonsColor, copyMeshPolyhedraColor, copyModelEdgesColor, copyModelPointsColor, copyModelPolygonsColor, copyModelPolyhedraColor, openMeshCellsMenu, openMeshEdgesMenu, openMeshPointsMenu, openMeshPolygonsMenu, openMeshPolyhedraMenu, pasteMeshCellsColorInput, pasteMeshEdgesColorInput, pasteMeshPointsColorInput, pasteMeshPolygonsColorInput, pasteMeshPolyhedraColorInput, pasteModelEdgesColorInput, pasteModelPointsColorInput, pasteModelPolygonsColorInput, pasteModelPolyhedraColorInput, setMeshCellsCellAttribute, setMeshCellsColor, setMeshCellsColorInput, setMeshCellsColorMap, setMeshCellsColorWithSlider, setMeshCellsColoringStyle, setMeshCellsItem, setMeshCellsNoDataColor, setMeshCellsOpacity, setMeshCellsVertexAttribute, setMeshCellsVisibility, setMeshEdgesColor, setMeshEdgesColorInput, setMeshEdgesColorMap, setMeshEdgesColorWithSlider, setMeshEdgesColoringStyle, setMeshEdgesEdgeAttribute, setMeshEdgesItem, setMeshEdgesNoDataColor, setMeshEdgesOpacity, setMeshEdgesVertexAttribute, setMeshEdgesVisibility, setMeshEdgesWidth, setMeshPointsColor, setMeshPointsColorInput, setMeshPointsColorWithSlider, setMeshPointsColoringStyle, setMeshPointsNoDataColor, setMeshPointsOpacity, setMeshPointsSize, setMeshPointsVertexAttribute, setMeshPointsVisibility, setMeshPolygonsColor, setMeshPolygonsColorInput, setMeshPolygonsColorMap, setMeshPolygonsColorWithSlider, setMeshPolygonsColoringStyle, setMeshPolygonsItem, setMeshPolygonsNoDataColor, setMeshPolygonsOpacity, setMeshPolygonsPolygonAttribute, setMeshPolygonsTextures, setMeshPolygonsTimeStep, setMeshPolygonsVertexAttribute, setMeshPolygonsVisibility, setMeshPolyhedraColor, setMeshPolyhedraColorBlack, setMeshPolyhedraColorInput, setMeshPolyhedraColorMap, setMeshPolyhedraColorWithSlider, setMeshPolyhedraColoringStyle, setMeshPolyhedraItem, setMeshPolyhedraNoDataColor, setMeshPolyhedraOpacity, setMeshPolyhedraPolyhedronAttribute, setMeshPolyhedraVertexAttribute, setMeshPolyhedraVisibility, setModelCellsCellAttribute, setModelCellsVertexAttribute, setModelColor, setModelColorWithSlider, setModelColoringStyle, setModelComponentsEdgesColor, setModelComponentsEdgesVertexAttribute, setModelComponentsEdgesVisibility, setModelComponentsEdgesWidth, setModelComponentsPointsColor, setModelComponentsPointsSize, setModelComponentsPointsVertexAttribute, setModelComponentsPointsVisibility, setModelEdgesColorInput, setModelEdgesEdgeAttribute, setModelEdgesVertexAttribute, setModelEdgesVertexAttributeNoDataColor, setModelEdgesVisibility, setModelOpacity, setModelPointsColorInput, setModelPointsVertexAttribute, setModelPointsVertexAttributeNoDataColor, setModelPointsVisibility, setModelPolygonsColorInput, setModelPolygonsPolygonAttribute, setModelPolygonsVertexAttribute, setModelPolygonsVertexAttributeNoDataColor, setModelPolyhedraColorInput, setModelPolyhedraPolyhedronAttribute, setModelPolyhedraVertexAttribute, setModelPolyhedraVertexAttributeNoDataColor, setModelSurfacesVisibility };
@@ -0,0 +1,42 @@
1
+ import { vertexAttributeType } from "../../../constants.js";
2
+ import { waitForActionSettled } from "../../../wait_for_action_settled.js";
3
+ import { ensureFeatureVisible, ensureMenuOpen } from "../../../viewer_interaction.js";
4
+ import { applyAttribute } from "../../helpers/attribute.js";
5
+ import { setColor } from "../../helpers/color.js";
6
+ //#region tests/e2e/utils/data/model/edges/components.ts
7
+ const modelEdgesMenuTestId = "modelEdgesMenu";
8
+ function getModelEdgesSection(window, section) {
9
+ return window.getByTestId(section).filter({ visible: true }).first();
10
+ }
11
+ async function setModelComponentsEdgesVisibility(window, section, visibility) {
12
+ await ensureMenuOpen(window, modelEdgesMenuTestId);
13
+ await ensureFeatureVisible(window, modelEdgesMenuTestId);
14
+ const visibilitySwitch = getModelEdgesSection(window, section).getByTestId("modelComponentEdgesVisibilitySwitch").getByRole("checkbox");
15
+ if (await visibilitySwitch.isChecked() !== visibility) {
16
+ await visibilitySwitch.setChecked(visibility, { force: true });
17
+ await waitForActionSettled(window);
18
+ }
19
+ }
20
+ async function setModelComponentsEdgesWidth(window, section, value) {
21
+ await setModelComponentsEdgesVisibility(window, section, true);
22
+ await getModelEdgesSection(window, section).getByTestId("modelComponentEdgesWidthSlider").locator("input").first().evaluate((node, val) => {
23
+ node.value = val;
24
+ node.dispatchEvent(new Event("input", { bubbles: true }));
25
+ node.dispatchEvent(new Event("change", { bubbles: true }));
26
+ }, value.toString());
27
+ await waitForActionSettled(window);
28
+ }
29
+ async function setModelComponentsEdgesColor(window, section) {
30
+ await setModelComponentsEdgesVisibility(window, section, true);
31
+ await setColor(window, modelEdgesMenuTestId, getModelEdgesSection(window, section));
32
+ }
33
+ async function setModelComponentsEdgesVertexAttribute(window, section, attributeName, options = {}) {
34
+ await setModelComponentsEdgesVisibility(window, section, true);
35
+ await applyAttribute(window, getModelEdgesSection(window, section), {
36
+ attributeType: vertexAttributeType,
37
+ attributeName,
38
+ ...options
39
+ });
40
+ }
41
+ //#endregion
42
+ export { setModelComponentsEdgesColor, setModelComponentsEdgesVertexAttribute, setModelComponentsEdgesVisibility, setModelComponentsEdgesWidth };
@@ -1,2 +1,3 @@
1
+ import { setModelComponentsEdgesColor, setModelComponentsEdgesVertexAttribute, setModelComponentsEdgesVisibility, setModelComponentsEdgesWidth } from "./components.js";
1
2
  import { setModelEdgesVisibility } from "./visibility.js";
2
- export { setModelEdgesVisibility };
3
+ export { setModelComponentsEdgesColor, setModelComponentsEdgesVertexAttribute, setModelComponentsEdgesVisibility, setModelComponentsEdgesWidth, setModelEdgesVisibility };
@@ -1,5 +1,6 @@
1
1
  import { setModelCellsCellAttribute, setModelCellsVertexAttribute, setModelEdgesEdgeAttribute, setModelEdgesVertexAttribute, setModelEdgesVertexAttributeNoDataColor, setModelPointsVertexAttribute, setModelPointsVertexAttributeNoDataColor, setModelPolygonsPolygonAttribute, setModelPolygonsVertexAttribute, setModelPolygonsVertexAttributeNoDataColor, setModelPolyhedraPolyhedronAttribute, setModelPolyhedraVertexAttribute, setModelPolyhedraVertexAttributeNoDataColor } from "./attribute.js";
2
2
  import { copyModelEdgesColor, copyModelPointsColor, copyModelPolygonsColor, copyModelPolyhedraColor, pasteModelEdgesColorInput, pasteModelPointsColorInput, pasteModelPolygonsColorInput, pasteModelPolyhedraColorInput, setModelColor, setModelColorWithSlider, setModelColoringStyle, setModelEdgesColorInput, setModelOpacity, setModelPointsColorInput, setModelPolygonsColorInput, setModelPolyhedraColorInput } from "./color.js";
3
+ import { setModelComponentsEdgesColor, setModelComponentsEdgesVertexAttribute, setModelComponentsEdgesVisibility, setModelComponentsEdgesWidth } from "./edges/components.js";
3
4
  import { setModelEdgesVisibility } from "./edges/visibility.js";
4
5
  import "./edges/index.js";
5
6
  import { setModelComponentsPointsColor, setModelComponentsPointsSize, setModelComponentsPointsVertexAttribute, setModelComponentsPointsVisibility } from "./points/components.js";
@@ -7,4 +8,4 @@ import { setModelPointsVisibility } from "./points/visibility.js";
7
8
  import "./points/index.js";
8
9
  import { setModelSurfacesVisibility } from "./surfaces/visibility.js";
9
10
  import "./surfaces/index.js";
10
- export { copyModelEdgesColor, copyModelPointsColor, copyModelPolygonsColor, copyModelPolyhedraColor, pasteModelEdgesColorInput, pasteModelPointsColorInput, pasteModelPolygonsColorInput, pasteModelPolyhedraColorInput, setModelCellsCellAttribute, setModelCellsVertexAttribute, setModelColor, setModelColorWithSlider, setModelColoringStyle, setModelComponentsPointsColor, setModelComponentsPointsSize, setModelComponentsPointsVertexAttribute, setModelComponentsPointsVisibility, setModelEdgesColorInput, setModelEdgesEdgeAttribute, setModelEdgesVertexAttribute, setModelEdgesVertexAttributeNoDataColor, setModelEdgesVisibility, setModelOpacity, setModelPointsColorInput, setModelPointsVertexAttribute, setModelPointsVertexAttributeNoDataColor, setModelPointsVisibility, setModelPolygonsColorInput, setModelPolygonsPolygonAttribute, setModelPolygonsVertexAttribute, setModelPolygonsVertexAttributeNoDataColor, setModelPolyhedraColorInput, setModelPolyhedraPolyhedronAttribute, setModelPolyhedraVertexAttribute, setModelPolyhedraVertexAttributeNoDataColor, setModelSurfacesVisibility };
11
+ export { copyModelEdgesColor, copyModelPointsColor, copyModelPolygonsColor, copyModelPolyhedraColor, pasteModelEdgesColorInput, pasteModelPointsColorInput, pasteModelPolygonsColorInput, pasteModelPolyhedraColorInput, setModelCellsCellAttribute, setModelCellsVertexAttribute, setModelColor, setModelColorWithSlider, setModelColoringStyle, setModelComponentsEdgesColor, setModelComponentsEdgesVertexAttribute, setModelComponentsEdgesVisibility, setModelComponentsEdgesWidth, setModelComponentsPointsColor, setModelComponentsPointsSize, setModelComponentsPointsVertexAttribute, setModelComponentsPointsVisibility, setModelEdgesColorInput, setModelEdgesEdgeAttribute, setModelEdgesVertexAttribute, setModelEdgesVertexAttributeNoDataColor, setModelEdgesVisibility, setModelOpacity, setModelPointsColorInput, setModelPointsVertexAttribute, setModelPointsVertexAttributeNoDataColor, setModelPointsVisibility, setModelPolygonsColorInput, setModelPolygonsPolygonAttribute, setModelPolygonsVertexAttribute, setModelPolygonsVertexAttributeNoDataColor, setModelPolyhedraColorInput, setModelPolyhedraPolyhedronAttribute, setModelPolyhedraVertexAttribute, setModelPolyhedraVertexAttributeNoDataColor, setModelSurfacesVisibility };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vease",
3
- "version": "1.56.0",
3
+ "version": "1.57.0-rc.2",
4
4
  "description": "Desktop and cloud software for data visualization",
5
5
  "keywords": [
6
6
  "Desktop",
@@ -90,12 +90,12 @@
90
90
  "@ai-sdk/vue": "4.0.93",
91
91
  "@fontsource/michroma": "5.2.6",
92
92
  "@fontsource/roboto": "5.2.10",
93
- "@geode/cloud-api": "latest",
94
- "@geode/opengeodeweb-back": "latest",
95
- "@geode/opengeodeweb-front": "latest",
96
- "@geode/opengeodeweb-viewer": "latest",
97
- "@geode/vease-back": "latest",
98
- "@geode/vease-viewer": "latest",
93
+ "@geode/cloud-api": "next",
94
+ "@geode/opengeodeweb-back": "next",
95
+ "@geode/opengeodeweb-front": "next",
96
+ "@geode/opengeodeweb-viewer": "next",
97
+ "@geode/vease-back": "next",
98
+ "@geode/vease-viewer": "next",
99
99
  "@nuxtjs/mcp-toolkit": "0.18.1",
100
100
  "ai": "7.0.93",
101
101
  "bowser": "2.14.1",
@@ -0,0 +1,89 @@
1
+ import type { Locator, Page } from "@playwright/test";
2
+ import { ensureFeatureVisible, ensureMenuOpen } from "@vease_tests/utils/viewer_interaction";
3
+ import { applyAttribute } from "@vease_tests/utils/data/helpers/attribute";
4
+ import { setColor } from "@vease_tests/utils/data/helpers/color";
5
+ import { vertexAttributeType } from "@vease_tests/utils/constants";
6
+ import { waitForActionSettled } from "@vease_tests/utils/wait_for_action_settled";
7
+
8
+ const modelEdgesMenuTestId = "modelEdgesMenu";
9
+
10
+ // Sections of the model edges card, shown depending on what the context menu targets
11
+ type ModelEdgesSection =
12
+ | "modelEdgesComponentsOptions"
13
+ | "modelEdgesComponentTypeOptions"
14
+ | "modelEdgesComponentOptions";
15
+
16
+ interface AttributeOptions {
17
+ item?: number;
18
+ colorMap?: string;
19
+ min?: number | string;
20
+ max?: number | string;
21
+ }
22
+
23
+ function getModelEdgesSection(window: Page, section: ModelEdgesSection): Locator {
24
+ return window.getByTestId(section).filter({ visible: true }).first();
25
+ }
26
+
27
+ async function setModelComponentsEdgesVisibility(
28
+ window: Page,
29
+ section: ModelEdgesSection,
30
+ visibility: boolean,
31
+ ): Promise<void> {
32
+ await ensureMenuOpen(window, modelEdgesMenuTestId);
33
+ await ensureFeatureVisible(window, modelEdgesMenuTestId);
34
+ const visibilitySwitch = getModelEdgesSection(window, section)
35
+ .getByTestId("modelComponentEdgesVisibilitySwitch")
36
+ .getByRole("checkbox");
37
+ if ((await visibilitySwitch.isChecked()) !== visibility) {
38
+ await visibilitySwitch.setChecked(visibility, { force: true });
39
+ await waitForActionSettled(window);
40
+ }
41
+ }
42
+
43
+ async function setModelComponentsEdgesWidth(
44
+ window: Page,
45
+ section: ModelEdgesSection,
46
+ value: number,
47
+ ): Promise<void> {
48
+ await setModelComponentsEdgesVisibility(window, section, true);
49
+ await getModelEdgesSection(window, section)
50
+ .getByTestId("modelComponentEdgesWidthSlider")
51
+ .locator("input")
52
+ .first()
53
+ .evaluate((node: HTMLInputElement, val: string) => {
54
+ node.value = val;
55
+ node.dispatchEvent(new Event("input", { bubbles: true }));
56
+ node.dispatchEvent(new Event("change", { bubbles: true }));
57
+ }, value.toString());
58
+ await waitForActionSettled(window);
59
+ }
60
+
61
+ async function setModelComponentsEdgesColor(
62
+ window: Page,
63
+ section: ModelEdgesSection,
64
+ ): Promise<void> {
65
+ await setModelComponentsEdgesVisibility(window, section, true);
66
+ await setColor(window, modelEdgesMenuTestId, getModelEdgesSection(window, section));
67
+ }
68
+
69
+ async function setModelComponentsEdgesVertexAttribute(
70
+ window: Page,
71
+ section: ModelEdgesSection,
72
+ attributeName: string,
73
+ options: AttributeOptions = {},
74
+ ): Promise<void> {
75
+ await setModelComponentsEdgesVisibility(window, section, true);
76
+ await applyAttribute(window, getModelEdgesSection(window, section), {
77
+ attributeType: vertexAttributeType,
78
+ attributeName,
79
+ ...options,
80
+ });
81
+ }
82
+
83
+ export {
84
+ setModelComponentsEdgesColor,
85
+ setModelComponentsEdgesWidth,
86
+ setModelComponentsEdgesVertexAttribute,
87
+ setModelComponentsEdgesVisibility,
88
+ };
89
+ export type { ModelEdgesSection };
@@ -1 +1,2 @@
1
+ export * from "./components";
1
2
  export * from "./visibility";