vease 2.2.0-rc.1 → 2.2.0
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/.build/tests/e2e/utils/create_objects.js +2 -3
- package/.build/tests/e2e/utils/crs.js +4 -4
- package/.build/tests/e2e/utils/crs_flows.js +3 -3
- package/.build/tests/e2e/utils/data_manager.js +2 -2
- package/.build/tests/e2e/utils/extension.js +2 -2
- package/.build/tests/e2e/utils/fixtures.js +1 -1
- package/.build/tests/e2e/utils/load.js +1 -1
- package/.build/tests/e2e/utils/project_interaction.js +2 -2
- package/package.json +10 -7
- package/tests/e2e/utils/create_objects.ts +2 -2
- package/tests/e2e/utils/crs.ts +7 -4
- package/tests/e2e/utils/crs_flows.ts +3 -3
- package/tests/e2e/utils/data_manager.ts +2 -2
- package/tests/e2e/utils/extension.ts +2 -2
- package/tests/e2e/utils/fixtures.ts +1 -1
- package/tests/e2e/utils/load.ts +1 -1
- package/tests/e2e/utils/project_interaction.ts +2 -2
- package/.build/tests/e2e/utils/app_interaction.js +0 -24
- package/.build/tests/e2e/utils/basemap.js +0 -55
- package/.build/tests/e2e/utils/camera_filters.js +0 -105
- package/.build/tests/e2e/utils/camera_interaction.js +0 -107
- package/.build/tests/e2e/utils/camera_tools.js +0 -43
- package/.build/tests/e2e/utils/clipping_planes_interaction.js +0 -80
- package/.build/tests/e2e/utils/constants.js +0 -43
- package/.build/tests/e2e/utils/data/constants.js +0 -26
- package/.build/tests/e2e/utils/data/helpers/attribute.js +0 -85
- package/.build/tests/e2e/utils/data/helpers/attribute_colors.js +0 -47
- package/.build/tests/e2e/utils/data/helpers/attribute_menu.js +0 -13
- package/.build/tests/e2e/utils/data/helpers/color.js +0 -98
- package/.build/tests/e2e/utils/data/helpers/color_picker.js +0 -52
- package/.build/tests/e2e/utils/data/helpers/textures.js +0 -26
- package/.build/tests/e2e/utils/data/index.js +0 -28
- package/.build/tests/e2e/utils/data/mesh/cells/attribute.js +0 -43
- package/.build/tests/e2e/utils/data/mesh/cells/color.js +0 -26
- package/.build/tests/e2e/utils/data/mesh/cells/index.js +0 -4
- package/.build/tests/e2e/utils/data/mesh/cells/visibility.js +0 -9
- package/.build/tests/e2e/utils/data/mesh/edges/attribute.js +0 -43
- package/.build/tests/e2e/utils/data/mesh/edges/color.js +0 -26
- package/.build/tests/e2e/utils/data/mesh/edges/index.js +0 -5
- package/.build/tests/e2e/utils/data/mesh/edges/visibility.js +0 -9
- package/.build/tests/e2e/utils/data/mesh/edges/width.js +0 -9
- package/.build/tests/e2e/utils/data/mesh/index.js +0 -24
- package/.build/tests/e2e/utils/data/mesh/points/attribute.js +0 -31
- package/.build/tests/e2e/utils/data/mesh/points/color.js +0 -26
- package/.build/tests/e2e/utils/data/mesh/points/index.js +0 -5
- package/.build/tests/e2e/utils/data/mesh/points/size.js +0 -9
- package/.build/tests/e2e/utils/data/mesh/points/visibility.js +0 -9
- package/.build/tests/e2e/utils/data/mesh/polygon/attribute.js +0 -47
- package/.build/tests/e2e/utils/data/mesh/polygon/color.js +0 -26
- package/.build/tests/e2e/utils/data/mesh/polygon/index.js +0 -5
- package/.build/tests/e2e/utils/data/mesh/polygon/textures.js +0 -14
- package/.build/tests/e2e/utils/data/mesh/polygon/visibility.js +0 -9
- package/.build/tests/e2e/utils/data/mesh/polyhedra/attribute.js +0 -43
- package/.build/tests/e2e/utils/data/mesh/polyhedra/color.js +0 -29
- package/.build/tests/e2e/utils/data/mesh/polyhedra/index.js +0 -4
- package/.build/tests/e2e/utils/data/mesh/polyhedra/visibility.js +0 -9
- package/.build/tests/e2e/utils/data/model/attribute.js +0 -99
- package/.build/tests/e2e/utils/data/model/color.js +0 -69
- package/.build/tests/e2e/utils/data/model/edges/components.js +0 -50
- package/.build/tests/e2e/utils/data/model/edges/index.js +0 -3
- package/.build/tests/e2e/utils/data/model/edges/visibility.js +0 -9
- package/.build/tests/e2e/utils/data/model/index.js +0 -11
- package/.build/tests/e2e/utils/data/model/points/components.js +0 -50
- package/.build/tests/e2e/utils/data/model/points/index.js +0 -3
- package/.build/tests/e2e/utils/data/model/points/visibility.js +0 -9
- package/.build/tests/e2e/utils/data/model/style_menu.js +0 -10
- package/.build/tests/e2e/utils/data/model/surfaces/index.js +0 -2
- package/.build/tests/e2e/utils/data/model/surfaces/visibility.js +0 -8
- package/.build/tests/e2e/utils/model_tabs.js +0 -35
- package/.build/tests/e2e/utils/object_trees/common.js +0 -122
- package/.build/tests/e2e/utils/object_trees/main_object_tree.js +0 -86
- package/.build/tests/e2e/utils/object_trees/model_components_object_tree.js +0 -111
- package/.build/tests/e2e/utils/other.js +0 -13
- package/.build/tests/e2e/utils/viewer_canvas.js +0 -83
- package/.build/tests/e2e/utils/viewer_interaction.js +0 -87
- package/.build/tests/e2e/utils/viewer_menu.js +0 -98
- package/.build/tests/e2e/utils/wait_for_action_settled.js +0 -63
- package/tests/e2e/utils/app_interaction.ts +0 -35
- package/tests/e2e/utils/basemap.ts +0 -89
- package/tests/e2e/utils/camera_filters.ts +0 -176
- package/tests/e2e/utils/camera_interaction.ts +0 -179
- package/tests/e2e/utils/camera_tools.ts +0 -62
- package/tests/e2e/utils/clipping_planes_interaction.ts +0 -126
- package/tests/e2e/utils/constants.ts +0 -100
- package/tests/e2e/utils/data/constants.ts +0 -58
- package/tests/e2e/utils/data/helpers/attribute.ts +0 -156
- package/tests/e2e/utils/data/helpers/attribute_colors.ts +0 -83
- package/tests/e2e/utils/data/helpers/attribute_menu.ts +0 -19
- package/tests/e2e/utils/data/helpers/color.ts +0 -214
- package/tests/e2e/utils/data/helpers/color_picker.ts +0 -82
- package/tests/e2e/utils/data/helpers/textures.ts +0 -41
- package/tests/e2e/utils/data/index.ts +0 -2
- package/tests/e2e/utils/data/mesh/cells/attribute.ts +0 -103
- package/tests/e2e/utils/data/mesh/cells/color.ts +0 -52
- package/tests/e2e/utils/data/mesh/cells/index.ts +0 -3
- package/tests/e2e/utils/data/mesh/cells/visibility.ts +0 -9
- package/tests/e2e/utils/data/mesh/edges/attribute.ts +0 -103
- package/tests/e2e/utils/data/mesh/edges/color.ts +0 -52
- package/tests/e2e/utils/data/mesh/edges/index.ts +0 -4
- package/tests/e2e/utils/data/mesh/edges/visibility.ts +0 -9
- package/tests/e2e/utils/data/mesh/edges/width.ts +0 -9
- package/tests/e2e/utils/data/mesh/index.ts +0 -6
- package/tests/e2e/utils/data/mesh/points/attribute.ts +0 -66
- package/tests/e2e/utils/data/mesh/points/color.ts +0 -52
- package/tests/e2e/utils/data/mesh/points/index.ts +0 -4
- package/tests/e2e/utils/data/mesh/points/size.ts +0 -9
- package/tests/e2e/utils/data/mesh/points/visibility.ts +0 -9
- package/tests/e2e/utils/data/mesh/polygon/attribute.ts +0 -110
- package/tests/e2e/utils/data/mesh/polygon/color.ts +0 -52
- package/tests/e2e/utils/data/mesh/polygon/index.ts +0 -4
- package/tests/e2e/utils/data/mesh/polygon/textures.ts +0 -21
- package/tests/e2e/utils/data/mesh/polygon/visibility.ts +0 -9
- package/tests/e2e/utils/data/mesh/polyhedra/attribute.ts +0 -103
- package/tests/e2e/utils/data/mesh/polyhedra/color.ts +0 -58
- package/tests/e2e/utils/data/mesh/polyhedra/index.ts +0 -3
- package/tests/e2e/utils/data/mesh/polyhedra/visibility.ts +0 -9
- package/tests/e2e/utils/data/model/attribute.ts +0 -180
- package/tests/e2e/utils/data/model/color.ts +0 -110
- package/tests/e2e/utils/data/model/edges/components.ts +0 -97
- package/tests/e2e/utils/data/model/edges/index.ts +0 -2
- package/tests/e2e/utils/data/model/edges/visibility.ts +0 -9
- package/tests/e2e/utils/data/model/index.ts +0 -5
- package/tests/e2e/utils/data/model/points/components.ts +0 -97
- package/tests/e2e/utils/data/model/points/index.ts +0 -2
- package/tests/e2e/utils/data/model/points/visibility.ts +0 -9
- package/tests/e2e/utils/data/model/style_menu.ts +0 -11
- package/tests/e2e/utils/data/model/surfaces/index.ts +0 -1
- package/tests/e2e/utils/data/model/surfaces/visibility.ts +0 -8
- package/tests/e2e/utils/model_tabs.ts +0 -61
- package/tests/e2e/utils/object_trees/common.ts +0 -212
- package/tests/e2e/utils/object_trees/main_object_tree.ts +0 -167
- package/tests/e2e/utils/object_trees/model_components_object_tree.ts +0 -219
- package/tests/e2e/utils/other.ts +0 -15
- package/tests/e2e/utils/viewer_canvas.ts +0 -136
- package/tests/e2e/utils/viewer_interaction.ts +0 -96
- package/tests/e2e/utils/viewer_menu.ts +0 -205
- package/tests/e2e/utils/wait_for_action_settled.ts +0 -108
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { openMeshCellsMenu, setMeshCellsCellAttribute, setMeshCellsColorMap, setMeshCellsItem, setMeshCellsNoDataColor, setMeshCellsVertexAttribute } from "./cells/attribute.js";
|
|
2
|
-
import { copyMeshCellsColor, pasteMeshCellsColorInput, setMeshCellsColor, setMeshCellsColorInput, setMeshCellsColorWithSlider, setMeshCellsColoringStyle, setMeshCellsOpacity } from "./cells/color.js";
|
|
3
|
-
import { setMeshCellsVisibility } from "./cells/visibility.js";
|
|
4
|
-
import "./cells/index.js";
|
|
5
|
-
import { openMeshEdgesMenu, setMeshEdgesColorMap, setMeshEdgesEdgeAttribute, setMeshEdgesItem, setMeshEdgesNoDataColor, setMeshEdgesVertexAttribute } from "./edges/attribute.js";
|
|
6
|
-
import { copyMeshEdgesColor, pasteMeshEdgesColorInput, setMeshEdgesColor, setMeshEdgesColorInput, setMeshEdgesColorWithSlider, setMeshEdgesColoringStyle, setMeshEdgesOpacity } from "./edges/color.js";
|
|
7
|
-
import { setMeshEdgesVisibility } from "./edges/visibility.js";
|
|
8
|
-
import { setMeshEdgesWidth } from "./edges/width.js";
|
|
9
|
-
import "./edges/index.js";
|
|
10
|
-
import { openMeshPointsMenu, setMeshPointsNoDataColor, setMeshPointsVertexAttribute } from "./points/attribute.js";
|
|
11
|
-
import { copyMeshPointsColor, pasteMeshPointsColorInput, setMeshPointsColor, setMeshPointsColorInput, setMeshPointsColorWithSlider, setMeshPointsColoringStyle, setMeshPointsOpacity } from "./points/color.js";
|
|
12
|
-
import { setMeshPointsSize } from "./points/size.js";
|
|
13
|
-
import { setMeshPointsVisibility } from "./points/visibility.js";
|
|
14
|
-
import "./points/index.js";
|
|
15
|
-
import { openMeshPolygonsMenu, setMeshPolygonsColorMap, setMeshPolygonsItem, setMeshPolygonsNoDataColor, setMeshPolygonsPolygonAttribute, setMeshPolygonsTimeStep, setMeshPolygonsVertexAttribute } from "./polygon/attribute.js";
|
|
16
|
-
import { copyMeshPolygonsColor, pasteMeshPolygonsColorInput, setMeshPolygonsColor, setMeshPolygonsColorInput, setMeshPolygonsColorWithSlider, setMeshPolygonsColoringStyle, setMeshPolygonsOpacity } from "./polygon/color.js";
|
|
17
|
-
import { setMeshPolygonsTextures } from "./polygon/textures.js";
|
|
18
|
-
import { setMeshPolygonsVisibility } from "./polygon/visibility.js";
|
|
19
|
-
import "./polygon/index.js";
|
|
20
|
-
import { openMeshPolyhedraMenu, setMeshPolyhedraColorMap, setMeshPolyhedraItem, setMeshPolyhedraNoDataColor, setMeshPolyhedraPolyhedronAttribute, setMeshPolyhedraVertexAttribute } from "./polyhedra/attribute.js";
|
|
21
|
-
import { copyMeshPolyhedraColor, pasteMeshPolyhedraColorInput, setMeshPolyhedraColor, setMeshPolyhedraColorBlack, setMeshPolyhedraColorInput, setMeshPolyhedraColorWithSlider, setMeshPolyhedraColoringStyle, setMeshPolyhedraOpacity } from "./polyhedra/color.js";
|
|
22
|
-
import { setMeshPolyhedraVisibility } from "./polyhedra/visibility.js";
|
|
23
|
-
import "./polyhedra/index.js";
|
|
24
|
-
export { copyMeshCellsColor, copyMeshEdgesColor, copyMeshPointsColor, copyMeshPolygonsColor, copyMeshPolyhedraColor, openMeshCellsMenu, openMeshEdgesMenu, openMeshPointsMenu, openMeshPolygonsMenu, openMeshPolyhedraMenu, pasteMeshCellsColorInput, pasteMeshEdgesColorInput, pasteMeshPointsColorInput, pasteMeshPolygonsColorInput, pasteMeshPolyhedraColorInput, 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 };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { meshViewerObjectType, pointsFeatureName, vertexAttributeType } from "../../../constants.js";
|
|
2
|
-
import { waitForActionSettled } from "../../../wait_for_action_settled.js";
|
|
3
|
-
import { moveMouseOutOfTheWay } from "../../../app_interaction.js";
|
|
4
|
-
import { ensureMenuOpen, openStyleMenu } from "../../../viewer_menu.js";
|
|
5
|
-
import "../../../viewer_interaction.js";
|
|
6
|
-
import { SLIDER_PINK, clickColorPickerCanvas, clickColorPickerSlider } from "../../helpers/color_picker.js";
|
|
7
|
-
import { setFeatureAttribute } from "../../helpers/attribute.js";
|
|
8
|
-
//#region tests/e2e/utils/data/mesh/points/attribute.ts
|
|
9
|
-
async function setMeshPointsVertexAttribute(window, attributeName, options = {}) {
|
|
10
|
-
await setFeatureAttribute(window, meshViewerObjectType, pointsFeatureName, vertexAttributeType, attributeName, options);
|
|
11
|
-
}
|
|
12
|
-
async function openMeshPointsMenu(window) {
|
|
13
|
-
const menuTestId = `${meshViewerObjectType}${pointsFeatureName}Menu`;
|
|
14
|
-
await openStyleMenu(window, menuTestId);
|
|
15
|
-
}
|
|
16
|
-
async function setMeshPointsNoDataColor(window) {
|
|
17
|
-
const menuTestId = `${meshViewerObjectType}${pointsFeatureName}Menu`;
|
|
18
|
-
await ensureMenuOpen(window, menuTestId);
|
|
19
|
-
const noDataColorBtn = window.getByTestId("noDataColorBtn").first();
|
|
20
|
-
await noDataColorBtn.waitFor({ state: "visible" });
|
|
21
|
-
await noDataColorBtn.click();
|
|
22
|
-
await waitForActionSettled(window);
|
|
23
|
-
await window.getByTestId("colorPicker").filter({ visible: true }).first().waitFor({ state: "visible" });
|
|
24
|
-
await clickColorPickerSlider(window, SLIDER_PINK);
|
|
25
|
-
await clickColorPickerCanvas(window);
|
|
26
|
-
await noDataColorBtn.click();
|
|
27
|
-
await moveMouseOutOfTheWay(window);
|
|
28
|
-
await waitForActionSettled(window);
|
|
29
|
-
}
|
|
30
|
-
//#endregion
|
|
31
|
-
export { openMeshPointsMenu, setMeshPointsNoDataColor, setMeshPointsVertexAttribute };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { meshViewerObjectType, pointsFeatureName } from "../../../constants.js";
|
|
2
|
-
import { setFeatureColor, setFeatureColorInput, setFeatureColorWithSlider, setFeatureColoringStyle, setFeatureCopyColor, setFeatureOpacity, setFeaturePasteColorInput } from "../../helpers/color.js";
|
|
3
|
-
//#region tests/e2e/utils/data/mesh/points/color.ts
|
|
4
|
-
async function setMeshPointsOpacity(window, percent) {
|
|
5
|
-
await setFeatureOpacity(window, meshViewerObjectType, pointsFeatureName, percent);
|
|
6
|
-
}
|
|
7
|
-
async function setMeshPointsColor(window) {
|
|
8
|
-
await setFeatureColor(window, meshViewerObjectType, pointsFeatureName);
|
|
9
|
-
}
|
|
10
|
-
async function setMeshPointsColorWithSlider(window) {
|
|
11
|
-
await setFeatureColorWithSlider(window, meshViewerObjectType, pointsFeatureName);
|
|
12
|
-
}
|
|
13
|
-
async function copyMeshPointsColor(window) {
|
|
14
|
-
await setFeatureCopyColor(window, meshViewerObjectType, pointsFeatureName);
|
|
15
|
-
}
|
|
16
|
-
async function setMeshPointsColorInput(window, colorText) {
|
|
17
|
-
await setFeatureColorInput(window, meshViewerObjectType, pointsFeatureName, colorText);
|
|
18
|
-
}
|
|
19
|
-
async function pasteMeshPointsColorInput(window, container = window) {
|
|
20
|
-
await setFeaturePasteColorInput(window, meshViewerObjectType, pointsFeatureName, container);
|
|
21
|
-
}
|
|
22
|
-
async function setMeshPointsColoringStyle(window, style) {
|
|
23
|
-
await setFeatureColoringStyle(window, meshViewerObjectType, pointsFeatureName, style);
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
export { copyMeshPointsColor, pasteMeshPointsColorInput, setMeshPointsColor, setMeshPointsColorInput, setMeshPointsColorWithSlider, setMeshPointsColoringStyle, setMeshPointsOpacity };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { openMeshPointsMenu, setMeshPointsNoDataColor, setMeshPointsVertexAttribute } from "./attribute.js";
|
|
2
|
-
import { copyMeshPointsColor, pasteMeshPointsColorInput, setMeshPointsColor, setMeshPointsColorInput, setMeshPointsColorWithSlider, setMeshPointsColoringStyle, setMeshPointsOpacity } from "./color.js";
|
|
3
|
-
import { setMeshPointsSize } from "./size.js";
|
|
4
|
-
import { setMeshPointsVisibility } from "./visibility.js";
|
|
5
|
-
export { copyMeshPointsColor, openMeshPointsMenu, pasteMeshPointsColorInput, setMeshPointsColor, setMeshPointsColorInput, setMeshPointsColorWithSlider, setMeshPointsColoringStyle, setMeshPointsNoDataColor, setMeshPointsOpacity, setMeshPointsSize, setMeshPointsVertexAttribute, setMeshPointsVisibility };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { meshViewerObjectType } from "../../../constants.js";
|
|
2
|
-
import { setPointsSize } from "../../../viewer_menu.js";
|
|
3
|
-
import "../../../viewer_interaction.js";
|
|
4
|
-
//#region tests/e2e/utils/data/mesh/points/size.ts
|
|
5
|
-
async function setMeshPointsSize(window, value) {
|
|
6
|
-
await setPointsSize(window, meshViewerObjectType, value);
|
|
7
|
-
}
|
|
8
|
-
//#endregion
|
|
9
|
-
export { setMeshPointsSize };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { meshViewerObjectType } from "../../../constants.js";
|
|
2
|
-
import { setPointsVisibility } from "../../../viewer_menu.js";
|
|
3
|
-
import "../../../viewer_interaction.js";
|
|
4
|
-
//#region tests/e2e/utils/data/mesh/points/visibility.ts
|
|
5
|
-
async function setMeshPointsVisibility(window, visibility) {
|
|
6
|
-
await setPointsVisibility(window, meshViewerObjectType, visibility);
|
|
7
|
-
}
|
|
8
|
-
//#endregion
|
|
9
|
-
export { setMeshPointsVisibility };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { meshViewerObjectType, polygonAttributeType, polygonsFeatureName, vertexAttributeType } from "../../../constants.js";
|
|
2
|
-
import { waitForActionSettled } from "../../../wait_for_action_settled.js";
|
|
3
|
-
import { moveMouseOutOfTheWay } from "../../../app_interaction.js";
|
|
4
|
-
import { ensureMenuOpen, openStyleMenu } from "../../../viewer_menu.js";
|
|
5
|
-
import "../../../viewer_interaction.js";
|
|
6
|
-
import { SLIDER_PINK, clickColorPickerCanvas, clickColorPickerSlider } from "../../helpers/color_picker.js";
|
|
7
|
-
import { setFeatureColorMap } from "../../helpers/attribute_colors.js";
|
|
8
|
-
import { setFeatureAttribute, setFeatureItem, setFeatureTimeStep } from "../../helpers/attribute.js";
|
|
9
|
-
//#region tests/e2e/utils/data/mesh/polygon/attribute.ts
|
|
10
|
-
async function setMeshPolygonsVertexAttribute(window, attributeName, options = {}) {
|
|
11
|
-
await setFeatureAttribute(window, meshViewerObjectType, polygonsFeatureName, vertexAttributeType, attributeName, options);
|
|
12
|
-
}
|
|
13
|
-
async function setMeshPolygonsPolygonAttribute(window, attributeName, options = {}) {
|
|
14
|
-
await setFeatureAttribute(window, meshViewerObjectType, polygonsFeatureName, polygonAttributeType, attributeName, options);
|
|
15
|
-
}
|
|
16
|
-
async function setMeshPolygonsItem(window, item) {
|
|
17
|
-
const menuTestId = `${meshViewerObjectType}${polygonsFeatureName}Menu`;
|
|
18
|
-
await setFeatureItem(window, menuTestId, item);
|
|
19
|
-
}
|
|
20
|
-
async function setMeshPolygonsTimeStep(window, timeStep) {
|
|
21
|
-
const menuTestId = `${meshViewerObjectType}${polygonsFeatureName}Menu`;
|
|
22
|
-
await setFeatureTimeStep(window, menuTestId, timeStep);
|
|
23
|
-
}
|
|
24
|
-
async function setMeshPolygonsColorMap(window, colorMap) {
|
|
25
|
-
const menuTestId = `${meshViewerObjectType}${polygonsFeatureName}Menu`;
|
|
26
|
-
await setFeatureColorMap(window, menuTestId, colorMap);
|
|
27
|
-
}
|
|
28
|
-
async function openMeshPolygonsMenu(window) {
|
|
29
|
-
const menuTestId = `${meshViewerObjectType}${polygonsFeatureName}Menu`;
|
|
30
|
-
await openStyleMenu(window, menuTestId);
|
|
31
|
-
}
|
|
32
|
-
async function setMeshPolygonsNoDataColor(window) {
|
|
33
|
-
const menuTestId = `${meshViewerObjectType}${polygonsFeatureName}Menu`;
|
|
34
|
-
await ensureMenuOpen(window, menuTestId);
|
|
35
|
-
const noDataColorBtn = window.getByTestId("noDataColorBtn").first();
|
|
36
|
-
await noDataColorBtn.waitFor({ state: "visible" });
|
|
37
|
-
await noDataColorBtn.click();
|
|
38
|
-
await waitForActionSettled(window);
|
|
39
|
-
await window.getByTestId("colorPicker").filter({ visible: true }).first().waitFor({ state: "visible" });
|
|
40
|
-
await clickColorPickerSlider(window, SLIDER_PINK);
|
|
41
|
-
await clickColorPickerCanvas(window);
|
|
42
|
-
await noDataColorBtn.click();
|
|
43
|
-
await moveMouseOutOfTheWay(window);
|
|
44
|
-
await waitForActionSettled(window);
|
|
45
|
-
}
|
|
46
|
-
//#endregion
|
|
47
|
-
export { openMeshPolygonsMenu, setMeshPolygonsColorMap, setMeshPolygonsItem, setMeshPolygonsNoDataColor, setMeshPolygonsPolygonAttribute, setMeshPolygonsTimeStep, setMeshPolygonsVertexAttribute };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { meshViewerObjectType, polygonsFeatureName } from "../../../constants.js";
|
|
2
|
-
import { setFeatureColor, setFeatureColorInput, setFeatureColorWithSlider, setFeatureColoringStyle, setFeatureCopyColor, setFeatureOpacity, setFeaturePasteColorInput } from "../../helpers/color.js";
|
|
3
|
-
//#region tests/e2e/utils/data/mesh/polygon/color.ts
|
|
4
|
-
async function setMeshPolygonsOpacity(window, percent) {
|
|
5
|
-
await setFeatureOpacity(window, meshViewerObjectType, polygonsFeatureName, percent);
|
|
6
|
-
}
|
|
7
|
-
async function setMeshPolygonsColor(window) {
|
|
8
|
-
await setFeatureColor(window, meshViewerObjectType, polygonsFeatureName);
|
|
9
|
-
}
|
|
10
|
-
async function setMeshPolygonsColorWithSlider(window) {
|
|
11
|
-
await setFeatureColorWithSlider(window, meshViewerObjectType, polygonsFeatureName);
|
|
12
|
-
}
|
|
13
|
-
async function copyMeshPolygonsColor(window) {
|
|
14
|
-
await setFeatureCopyColor(window, meshViewerObjectType, polygonsFeatureName);
|
|
15
|
-
}
|
|
16
|
-
async function setMeshPolygonsColorInput(window, colorText) {
|
|
17
|
-
await setFeatureColorInput(window, meshViewerObjectType, polygonsFeatureName, colorText);
|
|
18
|
-
}
|
|
19
|
-
async function pasteMeshPolygonsColorInput(window, container = window) {
|
|
20
|
-
await setFeaturePasteColorInput(window, meshViewerObjectType, polygonsFeatureName, container);
|
|
21
|
-
}
|
|
22
|
-
async function setMeshPolygonsColoringStyle(window, style) {
|
|
23
|
-
await setFeatureColoringStyle(window, meshViewerObjectType, polygonsFeatureName, style);
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
export { copyMeshPolygonsColor, pasteMeshPolygonsColorInput, setMeshPolygonsColor, setMeshPolygonsColorInput, setMeshPolygonsColorWithSlider, setMeshPolygonsColoringStyle, setMeshPolygonsOpacity };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { openMeshPolygonsMenu, setMeshPolygonsColorMap, setMeshPolygonsItem, setMeshPolygonsNoDataColor, setMeshPolygonsPolygonAttribute, setMeshPolygonsTimeStep, setMeshPolygonsVertexAttribute } from "./attribute.js";
|
|
2
|
-
import { copyMeshPolygonsColor, pasteMeshPolygonsColorInput, setMeshPolygonsColor, setMeshPolygonsColorInput, setMeshPolygonsColorWithSlider, setMeshPolygonsColoringStyle, setMeshPolygonsOpacity } from "./color.js";
|
|
3
|
-
import { setMeshPolygonsTextures } from "./textures.js";
|
|
4
|
-
import { setMeshPolygonsVisibility } from "./visibility.js";
|
|
5
|
-
export { copyMeshPolygonsColor, openMeshPolygonsMenu, pasteMeshPolygonsColorInput, setMeshPolygonsColor, setMeshPolygonsColorInput, setMeshPolygonsColorMap, setMeshPolygonsColorWithSlider, setMeshPolygonsColoringStyle, setMeshPolygonsItem, setMeshPolygonsNoDataColor, setMeshPolygonsOpacity, setMeshPolygonsPolygonAttribute, setMeshPolygonsTextures, setMeshPolygonsTimeStep, setMeshPolygonsVertexAttribute, setMeshPolygonsVisibility };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { meshViewerObjectType, polygonsFeatureName } from "../../../constants.js";
|
|
2
|
-
import { setFeatureTextures } from "../../helpers/textures.js";
|
|
3
|
-
import path from "node:path";
|
|
4
|
-
//#region tests/e2e/utils/data/mesh/polygon/textures.ts
|
|
5
|
-
const __dirname = import.meta.dirname;
|
|
6
|
-
const texture = {
|
|
7
|
-
name: "test_texture",
|
|
8
|
-
filePath: path.join(__dirname, "..", "..", "..", "..", "tests", "data", "test_texture.png")
|
|
9
|
-
};
|
|
10
|
-
async function setMeshPolygonsTextures(window) {
|
|
11
|
-
await setFeatureTextures(window, `${meshViewerObjectType}${polygonsFeatureName}Menu`, texture);
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { setMeshPolygonsTextures };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { meshViewerObjectType } from "../../../constants.js";
|
|
2
|
-
import { setPolygonsVisibility } from "../../../viewer_menu.js";
|
|
3
|
-
import "../../../viewer_interaction.js";
|
|
4
|
-
//#region tests/e2e/utils/data/mesh/polygon/visibility.ts
|
|
5
|
-
async function setMeshPolygonsVisibility(window, visibility) {
|
|
6
|
-
await setPolygonsVisibility(window, meshViewerObjectType, visibility);
|
|
7
|
-
}
|
|
8
|
-
//#endregion
|
|
9
|
-
export { setMeshPolygonsVisibility };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { meshViewerObjectType, polyhedraFeatureName, polyhedronAttributeType, vertexAttributeType } from "../../../constants.js";
|
|
2
|
-
import { waitForActionSettled } from "../../../wait_for_action_settled.js";
|
|
3
|
-
import { moveMouseOutOfTheWay } from "../../../app_interaction.js";
|
|
4
|
-
import { ensureMenuOpen, openStyleMenu } from "../../../viewer_menu.js";
|
|
5
|
-
import "../../../viewer_interaction.js";
|
|
6
|
-
import { SLIDER_PINK, clickColorPickerCanvas, clickColorPickerSlider } from "../../helpers/color_picker.js";
|
|
7
|
-
import { setFeatureColorMap } from "../../helpers/attribute_colors.js";
|
|
8
|
-
import { setFeatureAttribute, setFeatureItem } from "../../helpers/attribute.js";
|
|
9
|
-
//#region tests/e2e/utils/data/mesh/polyhedra/attribute.ts
|
|
10
|
-
async function setMeshPolyhedraVertexAttribute(window, attributeName, options = {}) {
|
|
11
|
-
await setFeatureAttribute(window, meshViewerObjectType, polyhedraFeatureName, vertexAttributeType, attributeName, options);
|
|
12
|
-
}
|
|
13
|
-
async function setMeshPolyhedraPolyhedronAttribute(window, attributeName, options = {}) {
|
|
14
|
-
await setFeatureAttribute(window, meshViewerObjectType, polyhedraFeatureName, polyhedronAttributeType, attributeName, options);
|
|
15
|
-
}
|
|
16
|
-
async function setMeshPolyhedraItem(window, item) {
|
|
17
|
-
const menuTestId = `${meshViewerObjectType}${polyhedraFeatureName}Menu`;
|
|
18
|
-
await setFeatureItem(window, menuTestId, item);
|
|
19
|
-
}
|
|
20
|
-
async function setMeshPolyhedraColorMap(window, colorMap) {
|
|
21
|
-
const menuTestId = `${meshViewerObjectType}${polyhedraFeatureName}Menu`;
|
|
22
|
-
await setFeatureColorMap(window, menuTestId, colorMap);
|
|
23
|
-
}
|
|
24
|
-
async function openMeshPolyhedraMenu(window) {
|
|
25
|
-
const menuTestId = `${meshViewerObjectType}${polyhedraFeatureName}Menu`;
|
|
26
|
-
await openStyleMenu(window, menuTestId);
|
|
27
|
-
}
|
|
28
|
-
async function setMeshPolyhedraNoDataColor(window) {
|
|
29
|
-
const menuTestId = `${meshViewerObjectType}${polyhedraFeatureName}Menu`;
|
|
30
|
-
await ensureMenuOpen(window, menuTestId);
|
|
31
|
-
const noDataColorBtn = window.getByTestId("noDataColorBtn").first();
|
|
32
|
-
await noDataColorBtn.waitFor({ state: "visible" });
|
|
33
|
-
await noDataColorBtn.click();
|
|
34
|
-
await waitForActionSettled(window);
|
|
35
|
-
await window.getByTestId("colorPicker").filter({ visible: true }).first().waitFor({ state: "visible" });
|
|
36
|
-
await clickColorPickerSlider(window, SLIDER_PINK);
|
|
37
|
-
await clickColorPickerCanvas(window);
|
|
38
|
-
await noDataColorBtn.click();
|
|
39
|
-
await moveMouseOutOfTheWay(window);
|
|
40
|
-
await waitForActionSettled(window);
|
|
41
|
-
}
|
|
42
|
-
//#endregion
|
|
43
|
-
export { openMeshPolyhedraMenu, setMeshPolyhedraColorMap, setMeshPolyhedraItem, setMeshPolyhedraNoDataColor, setMeshPolyhedraPolyhedronAttribute, setMeshPolyhedraVertexAttribute };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { meshViewerObjectType, polyhedraFeatureName } from "../../../constants.js";
|
|
2
|
-
import { setFeatureColor, setFeatureColorBlack, setFeatureColorInput, setFeatureColorWithSlider, setFeatureColoringStyle, setFeatureCopyColor, setFeatureOpacity, setFeaturePasteColorInput } from "../../helpers/color.js";
|
|
3
|
-
//#region tests/e2e/utils/data/mesh/polyhedra/color.ts
|
|
4
|
-
async function setMeshPolyhedraOpacity(window, percent) {
|
|
5
|
-
await setFeatureOpacity(window, meshViewerObjectType, polyhedraFeatureName, percent);
|
|
6
|
-
}
|
|
7
|
-
async function setMeshPolyhedraColor(window) {
|
|
8
|
-
await setFeatureColor(window, meshViewerObjectType, polyhedraFeatureName);
|
|
9
|
-
}
|
|
10
|
-
async function setMeshPolyhedraColorBlack(window) {
|
|
11
|
-
await setFeatureColorBlack(window, meshViewerObjectType, polyhedraFeatureName);
|
|
12
|
-
}
|
|
13
|
-
async function setMeshPolyhedraColorWithSlider(window) {
|
|
14
|
-
await setFeatureColorWithSlider(window, meshViewerObjectType, polyhedraFeatureName);
|
|
15
|
-
}
|
|
16
|
-
async function copyMeshPolyhedraColor(window) {
|
|
17
|
-
await setFeatureCopyColor(window, meshViewerObjectType, polyhedraFeatureName);
|
|
18
|
-
}
|
|
19
|
-
async function setMeshPolyhedraColorInput(window, colorText) {
|
|
20
|
-
await setFeatureColorInput(window, meshViewerObjectType, polyhedraFeatureName, colorText);
|
|
21
|
-
}
|
|
22
|
-
async function pasteMeshPolyhedraColorInput(window, container = window) {
|
|
23
|
-
await setFeaturePasteColorInput(window, meshViewerObjectType, polyhedraFeatureName, container);
|
|
24
|
-
}
|
|
25
|
-
async function setMeshPolyhedraColoringStyle(window, style) {
|
|
26
|
-
await setFeatureColoringStyle(window, meshViewerObjectType, polyhedraFeatureName, style);
|
|
27
|
-
}
|
|
28
|
-
//#endregion
|
|
29
|
-
export { copyMeshPolyhedraColor, pasteMeshPolyhedraColorInput, setMeshPolyhedraColor, setMeshPolyhedraColorBlack, setMeshPolyhedraColorInput, setMeshPolyhedraColorWithSlider, setMeshPolyhedraColoringStyle, setMeshPolyhedraOpacity };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { openMeshPolyhedraMenu, setMeshPolyhedraColorMap, setMeshPolyhedraItem, setMeshPolyhedraNoDataColor, setMeshPolyhedraPolyhedronAttribute, setMeshPolyhedraVertexAttribute } from "./attribute.js";
|
|
2
|
-
import { copyMeshPolyhedraColor, pasteMeshPolyhedraColorInput, setMeshPolyhedraColor, setMeshPolyhedraColorBlack, setMeshPolyhedraColorInput, setMeshPolyhedraColorWithSlider, setMeshPolyhedraColoringStyle, setMeshPolyhedraOpacity } from "./color.js";
|
|
3
|
-
import { setMeshPolyhedraVisibility } from "./visibility.js";
|
|
4
|
-
export { copyMeshPolyhedraColor, openMeshPolyhedraMenu, pasteMeshPolyhedraColorInput, setMeshPolyhedraColor, setMeshPolyhedraColorBlack, setMeshPolyhedraColorInput, setMeshPolyhedraColorMap, setMeshPolyhedraColorWithSlider, setMeshPolyhedraColoringStyle, setMeshPolyhedraItem, setMeshPolyhedraNoDataColor, setMeshPolyhedraOpacity, setMeshPolyhedraPolyhedronAttribute, setMeshPolyhedraVertexAttribute, setMeshPolyhedraVisibility };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { meshViewerObjectType } from "../../../constants.js";
|
|
2
|
-
import { setPolyhedraVisibility } from "../../../viewer_menu.js";
|
|
3
|
-
import "../../../viewer_interaction.js";
|
|
4
|
-
//#region tests/e2e/utils/data/mesh/polyhedra/visibility.ts
|
|
5
|
-
async function setMeshPolyhedraVisibility(window, visibility) {
|
|
6
|
-
await setPolyhedraVisibility(window, meshViewerObjectType, visibility);
|
|
7
|
-
}
|
|
8
|
-
//#endregion
|
|
9
|
-
export { setMeshPolyhedraVisibility };
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { cellAttributeType, edgeAttributeType, polygonAttributeType, polyhedronAttributeType, vertexAttributeType } from "../../constants.js";
|
|
2
|
-
import { setFeatureNoDataColor } from "../helpers/attribute_colors.js";
|
|
3
|
-
import { applyAttribute, setFeatureTimeStep } from "../helpers/attribute.js";
|
|
4
|
-
import { showModelStyleOptions } from "./style_menu.js";
|
|
5
|
-
//#region tests/e2e/utils/data/model/attribute.ts
|
|
6
|
-
async function setModelPointsVertexAttribute(window, attributeName, options = {}) {
|
|
7
|
-
await showModelStyleOptions(window);
|
|
8
|
-
await applyAttribute(window, "modelStyleMenu", {
|
|
9
|
-
attributeType: vertexAttributeType,
|
|
10
|
-
attributeName,
|
|
11
|
-
...options
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
async function setModelPointsVertexAttributeNoDataColor(window) {
|
|
15
|
-
await showModelStyleOptions(window);
|
|
16
|
-
await setFeatureNoDataColor(window, "modelStyleMenu");
|
|
17
|
-
}
|
|
18
|
-
async function setModelEdgesVertexAttribute(window, attributeName, options = {}) {
|
|
19
|
-
await showModelStyleOptions(window);
|
|
20
|
-
await applyAttribute(window, "modelStyleMenu", {
|
|
21
|
-
attributeType: vertexAttributeType,
|
|
22
|
-
attributeName,
|
|
23
|
-
...options
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
async function setModelEdgesVertexAttributeNoDataColor(window) {
|
|
27
|
-
await showModelStyleOptions(window);
|
|
28
|
-
await setFeatureNoDataColor(window, "modelStyleMenu");
|
|
29
|
-
}
|
|
30
|
-
async function setModelPolygonsVertexAttribute(window, attributeName, options = {}) {
|
|
31
|
-
await showModelStyleOptions(window);
|
|
32
|
-
await applyAttribute(window, "modelStyleMenu", {
|
|
33
|
-
attributeType: vertexAttributeType,
|
|
34
|
-
attributeName,
|
|
35
|
-
...options
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
async function setModelPolygonsVertexAttributeNoDataColor(window) {
|
|
39
|
-
await showModelStyleOptions(window);
|
|
40
|
-
await setFeatureNoDataColor(window, "modelStyleMenu");
|
|
41
|
-
}
|
|
42
|
-
async function setModelPolyhedraVertexAttribute(window, attributeName, options = {}) {
|
|
43
|
-
await showModelStyleOptions(window);
|
|
44
|
-
await applyAttribute(window, "modelStyleMenu", {
|
|
45
|
-
attributeType: vertexAttributeType,
|
|
46
|
-
attributeName,
|
|
47
|
-
...options
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
async function setModelPolyhedraVertexAttributeNoDataColor(window) {
|
|
51
|
-
await showModelStyleOptions(window);
|
|
52
|
-
await setFeatureNoDataColor(window, "modelStyleMenu");
|
|
53
|
-
}
|
|
54
|
-
async function setModelCellsVertexAttribute(window, attributeName, options = {}) {
|
|
55
|
-
await showModelStyleOptions(window);
|
|
56
|
-
await applyAttribute(window, "modelStyleMenu", {
|
|
57
|
-
attributeType: vertexAttributeType,
|
|
58
|
-
attributeName,
|
|
59
|
-
...options
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
async function setModelEdgesEdgeAttribute(window, attributeName, options = {}) {
|
|
63
|
-
await showModelStyleOptions(window);
|
|
64
|
-
await applyAttribute(window, "modelStyleMenu", {
|
|
65
|
-
attributeType: edgeAttributeType,
|
|
66
|
-
attributeName,
|
|
67
|
-
...options
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
async function setModelPolygonsPolygonAttribute(window, attributeName, options = {}) {
|
|
71
|
-
await showModelStyleOptions(window);
|
|
72
|
-
await applyAttribute(window, "modelStyleMenu", {
|
|
73
|
-
attributeType: polygonAttributeType,
|
|
74
|
-
attributeName,
|
|
75
|
-
...options
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
async function setModelPolyhedraPolyhedronAttribute(window, attributeName, options = {}) {
|
|
79
|
-
await showModelStyleOptions(window);
|
|
80
|
-
await applyAttribute(window, "modelStyleMenu", {
|
|
81
|
-
attributeType: polyhedronAttributeType,
|
|
82
|
-
attributeName,
|
|
83
|
-
...options
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
async function setModelCellsCellAttribute(window, attributeName, options = {}) {
|
|
87
|
-
await showModelStyleOptions(window);
|
|
88
|
-
await applyAttribute(window, "modelStyleMenu", {
|
|
89
|
-
attributeType: cellAttributeType,
|
|
90
|
-
attributeName,
|
|
91
|
-
...options
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
async function setModelTimeStep(window, timeStep) {
|
|
95
|
-
await showModelStyleOptions(window);
|
|
96
|
-
await setFeatureTimeStep(window, window.getByTestId("modelStyleMenu"), timeStep);
|
|
97
|
-
}
|
|
98
|
-
//#endregion
|
|
99
|
-
export { setModelCellsCellAttribute, setModelCellsVertexAttribute, setModelEdgesEdgeAttribute, setModelEdgesVertexAttribute, setModelEdgesVertexAttributeNoDataColor, setModelPointsVertexAttribute, setModelPointsVertexAttributeNoDataColor, setModelPolygonsPolygonAttribute, setModelPolygonsVertexAttribute, setModelPolygonsVertexAttributeNoDataColor, setModelPolyhedraPolyhedronAttribute, setModelPolyhedraVertexAttribute, setModelPolyhedraVertexAttributeNoDataColor, setModelTimeStep };
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { copyColor, pasteColorInput, setColor, setColorInput, setColorWithSlider, setColoringStyle, setOpacity } from "../helpers/color.js";
|
|
2
|
-
import { showModelStyleOptions } from "./style_menu.js";
|
|
3
|
-
//#region tests/e2e/utils/data/model/color.ts
|
|
4
|
-
async function setModelOpacity(window, percent) {
|
|
5
|
-
await showModelStyleOptions(window);
|
|
6
|
-
await setOpacity(window, "modelStyleMenu", percent);
|
|
7
|
-
}
|
|
8
|
-
async function setModelColor(window) {
|
|
9
|
-
await showModelStyleOptions(window);
|
|
10
|
-
await setColor(window, "modelStyleMenu");
|
|
11
|
-
}
|
|
12
|
-
async function setModelColorWithSlider(window) {
|
|
13
|
-
await showModelStyleOptions(window);
|
|
14
|
-
await setColorWithSlider(window, "modelStyleMenu");
|
|
15
|
-
}
|
|
16
|
-
async function setModelColoringStyle(window, style) {
|
|
17
|
-
await showModelStyleOptions(window);
|
|
18
|
-
await setColoringStyle(window, "modelStyleMenu", style);
|
|
19
|
-
}
|
|
20
|
-
async function copyModelPointsColor(window) {
|
|
21
|
-
await showModelStyleOptions(window);
|
|
22
|
-
await copyColor(window, "modelStyleMenu");
|
|
23
|
-
}
|
|
24
|
-
async function setModelPointsColorInput(window, colorText) {
|
|
25
|
-
await showModelStyleOptions(window);
|
|
26
|
-
await setColorInput(window, "modelStyleMenu", colorText);
|
|
27
|
-
}
|
|
28
|
-
async function pasteModelPointsColorInput(window) {
|
|
29
|
-
await showModelStyleOptions(window);
|
|
30
|
-
await pasteColorInput(window, "modelStyleMenu");
|
|
31
|
-
}
|
|
32
|
-
async function copyModelEdgesColor(window) {
|
|
33
|
-
await showModelStyleOptions(window);
|
|
34
|
-
await copyColor(window, "modelStyleMenu");
|
|
35
|
-
}
|
|
36
|
-
async function setModelEdgesColorInput(window, colorText) {
|
|
37
|
-
await showModelStyleOptions(window);
|
|
38
|
-
await setColorInput(window, "modelStyleMenu", colorText);
|
|
39
|
-
}
|
|
40
|
-
async function pasteModelEdgesColorInput(window) {
|
|
41
|
-
await showModelStyleOptions(window);
|
|
42
|
-
await pasteColorInput(window, "modelStyleMenu");
|
|
43
|
-
}
|
|
44
|
-
async function copyModelPolygonsColor(window) {
|
|
45
|
-
await showModelStyleOptions(window);
|
|
46
|
-
await copyColor(window, "modelStyleMenu");
|
|
47
|
-
}
|
|
48
|
-
async function setModelPolygonsColorInput(window, colorText) {
|
|
49
|
-
await showModelStyleOptions(window);
|
|
50
|
-
await setColorInput(window, "modelStyleMenu", colorText);
|
|
51
|
-
}
|
|
52
|
-
async function pasteModelPolygonsColorInput(window) {
|
|
53
|
-
await showModelStyleOptions(window);
|
|
54
|
-
await pasteColorInput(window, "modelStyleMenu");
|
|
55
|
-
}
|
|
56
|
-
async function copyModelPolyhedraColor(window) {
|
|
57
|
-
await showModelStyleOptions(window);
|
|
58
|
-
await copyColor(window, "modelStyleMenu");
|
|
59
|
-
}
|
|
60
|
-
async function setModelPolyhedraColorInput(window, colorText) {
|
|
61
|
-
await showModelStyleOptions(window);
|
|
62
|
-
await setColorInput(window, "modelStyleMenu", colorText);
|
|
63
|
-
}
|
|
64
|
-
async function pasteModelPolyhedraColorInput(window) {
|
|
65
|
-
await showModelStyleOptions(window);
|
|
66
|
-
await pasteColorInput(window, "modelStyleMenu");
|
|
67
|
-
}
|
|
68
|
-
//#endregion
|
|
69
|
-
export { copyModelEdgesColor, copyModelPointsColor, copyModelPolygonsColor, copyModelPolyhedraColor, pasteModelEdgesColorInput, pasteModelPointsColorInput, pasteModelPolygonsColorInput, pasteModelPolyhedraColorInput, setModelColor, setModelColorWithSlider, setModelColoringStyle, setModelEdgesColorInput, setModelOpacity, setModelPointsColorInput, setModelPolygonsColorInput, setModelPolyhedraColorInput };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { vertexAttributeType } from "../../../constants.js";
|
|
2
|
-
import { waitForActionSettled } from "../../../wait_for_action_settled.js";
|
|
3
|
-
import { selectModelTab } from "../../../model_tabs.js";
|
|
4
|
-
import { ensureFeatureVisible, ensureMenuOpen } from "../../../viewer_menu.js";
|
|
5
|
-
import "../../../viewer_interaction.js";
|
|
6
|
-
import { applyAttribute } from "../../helpers/attribute.js";
|
|
7
|
-
import { setColor } from "../../helpers/color.js";
|
|
8
|
-
//#region tests/e2e/utils/data/model/edges/components.ts
|
|
9
|
-
const modelEdgesMenuTestId = "modelEdgesMenu";
|
|
10
|
-
function getModelEdgesSection(window, section) {
|
|
11
|
-
return window.getByTestId(section).filter({ visible: true }).first();
|
|
12
|
-
}
|
|
13
|
-
const SECTION_TABS = {
|
|
14
|
-
modelEdgesComponentsOptions: "components",
|
|
15
|
-
modelEdgesComponentTypeOptions: "type",
|
|
16
|
-
modelEdgesComponentOptions: "component"
|
|
17
|
-
};
|
|
18
|
-
async function setModelComponentsEdgesVisibility(window, section, visibility) {
|
|
19
|
-
await ensureMenuOpen(window, modelEdgesMenuTestId);
|
|
20
|
-
await ensureFeatureVisible(window, modelEdgesMenuTestId);
|
|
21
|
-
await selectModelTab(window, SECTION_TABS[section]);
|
|
22
|
-
const visibilitySwitch = getModelEdgesSection(window, section).getByTestId("modelComponentEdgesVisibilitySwitch").getByRole("checkbox");
|
|
23
|
-
if (await visibilitySwitch.isChecked() !== visibility) {
|
|
24
|
-
await visibilitySwitch.setChecked(visibility, { force: true });
|
|
25
|
-
await waitForActionSettled(window);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
async function setModelComponentsEdgesWidth(window, section, value) {
|
|
29
|
-
await setModelComponentsEdgesVisibility(window, section, true);
|
|
30
|
-
await getModelEdgesSection(window, section).getByTestId("modelComponentEdgesWidthSlider").locator("input").first().evaluate((node, val) => {
|
|
31
|
-
node.value = val;
|
|
32
|
-
node.dispatchEvent(new Event("input", { bubbles: true }));
|
|
33
|
-
node.dispatchEvent(new Event("change", { bubbles: true }));
|
|
34
|
-
}, value.toString());
|
|
35
|
-
await waitForActionSettled(window);
|
|
36
|
-
}
|
|
37
|
-
async function setModelComponentsEdgesColor(window, section) {
|
|
38
|
-
await setModelComponentsEdgesVisibility(window, section, true);
|
|
39
|
-
await setColor(window, modelEdgesMenuTestId, getModelEdgesSection(window, section));
|
|
40
|
-
}
|
|
41
|
-
async function setModelComponentsEdgesVertexAttribute(window, section, attributeName, options = {}) {
|
|
42
|
-
await setModelComponentsEdgesVisibility(window, section, true);
|
|
43
|
-
await applyAttribute(window, getModelEdgesSection(window, section), {
|
|
44
|
-
attributeType: vertexAttributeType,
|
|
45
|
-
attributeName,
|
|
46
|
-
...options
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
//#endregion
|
|
50
|
-
export { setModelComponentsEdgesColor, setModelComponentsEdgesVertexAttribute, setModelComponentsEdgesVisibility, setModelComponentsEdgesWidth };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { setModelComponentsEdgesColor, setModelComponentsEdgesVertexAttribute, setModelComponentsEdgesVisibility, setModelComponentsEdgesWidth } from "./components.js";
|
|
2
|
-
import { setModelEdgesVisibility } from "./visibility.js";
|
|
3
|
-
export { setModelComponentsEdgesColor, setModelComponentsEdgesVertexAttribute, setModelComponentsEdgesVisibility, setModelComponentsEdgesWidth, setModelEdgesVisibility };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { modelViewerObjectType } from "../../../constants.js";
|
|
2
|
-
import { setEdgesVisibility } from "../../../viewer_menu.js";
|
|
3
|
-
import "../../../viewer_interaction.js";
|
|
4
|
-
//#region tests/e2e/utils/data/model/edges/visibility.ts
|
|
5
|
-
async function setModelEdgesVisibility(window, visibility) {
|
|
6
|
-
await setEdgesVisibility(window, modelViewerObjectType, visibility);
|
|
7
|
-
}
|
|
8
|
-
//#endregion
|
|
9
|
-
export { setModelEdgesVisibility };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { setModelCellsCellAttribute, setModelCellsVertexAttribute, setModelEdgesEdgeAttribute, setModelEdgesVertexAttribute, setModelEdgesVertexAttributeNoDataColor, setModelPointsVertexAttribute, setModelPointsVertexAttributeNoDataColor, setModelPolygonsPolygonAttribute, setModelPolygonsVertexAttribute, setModelPolygonsVertexAttributeNoDataColor, setModelPolyhedraPolyhedronAttribute, setModelPolyhedraVertexAttribute, setModelPolyhedraVertexAttributeNoDataColor, setModelTimeStep } from "./attribute.js";
|
|
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";
|
|
4
|
-
import { setModelEdgesVisibility } from "./edges/visibility.js";
|
|
5
|
-
import "./edges/index.js";
|
|
6
|
-
import { setModelComponentsPointsColor, setModelComponentsPointsSize, setModelComponentsPointsVertexAttribute, setModelComponentsPointsVisibility } from "./points/components.js";
|
|
7
|
-
import { setModelPointsVisibility } from "./points/visibility.js";
|
|
8
|
-
import "./points/index.js";
|
|
9
|
-
import { setModelSurfacesVisibility } from "./surfaces/visibility.js";
|
|
10
|
-
import "./surfaces/index.js";
|
|
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, setModelTimeStep };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { vertexAttributeType } from "../../../constants.js";
|
|
2
|
-
import { waitForActionSettled } from "../../../wait_for_action_settled.js";
|
|
3
|
-
import { selectModelTab } from "../../../model_tabs.js";
|
|
4
|
-
import { ensureFeatureVisible, ensureMenuOpen } from "../../../viewer_menu.js";
|
|
5
|
-
import "../../../viewer_interaction.js";
|
|
6
|
-
import { applyAttribute } from "../../helpers/attribute.js";
|
|
7
|
-
import { setColor } from "../../helpers/color.js";
|
|
8
|
-
//#region tests/e2e/utils/data/model/points/components.ts
|
|
9
|
-
const modelPointsMenuTestId = "modelPointsMenu";
|
|
10
|
-
function getModelPointsSection(window, section) {
|
|
11
|
-
return window.getByTestId(section).filter({ visible: true }).first();
|
|
12
|
-
}
|
|
13
|
-
const SECTION_TABS = {
|
|
14
|
-
modelPointsComponentsOptions: "components",
|
|
15
|
-
modelPointsComponentTypeOptions: "type",
|
|
16
|
-
modelPointsComponentOptions: "component"
|
|
17
|
-
};
|
|
18
|
-
async function setModelComponentsPointsVisibility(window, section, visibility) {
|
|
19
|
-
await ensureMenuOpen(window, modelPointsMenuTestId);
|
|
20
|
-
await ensureFeatureVisible(window, modelPointsMenuTestId);
|
|
21
|
-
await selectModelTab(window, SECTION_TABS[section]);
|
|
22
|
-
const visibilitySwitch = getModelPointsSection(window, section).getByTestId("modelComponentPointsVisibilitySwitch").getByRole("checkbox");
|
|
23
|
-
if (await visibilitySwitch.isChecked() !== visibility) {
|
|
24
|
-
await visibilitySwitch.setChecked(visibility, { force: true });
|
|
25
|
-
await waitForActionSettled(window);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
async function setModelComponentsPointsSize(window, section, value) {
|
|
29
|
-
await setModelComponentsPointsVisibility(window, section, true);
|
|
30
|
-
await getModelPointsSection(window, section).getByTestId("modelComponentPointsSizeSlider").locator("input").first().evaluate((node, val) => {
|
|
31
|
-
node.value = val;
|
|
32
|
-
node.dispatchEvent(new Event("input", { bubbles: true }));
|
|
33
|
-
node.dispatchEvent(new Event("change", { bubbles: true }));
|
|
34
|
-
}, value.toString());
|
|
35
|
-
await waitForActionSettled(window);
|
|
36
|
-
}
|
|
37
|
-
async function setModelComponentsPointsColor(window, section) {
|
|
38
|
-
await setModelComponentsPointsVisibility(window, section, true);
|
|
39
|
-
await setColor(window, modelPointsMenuTestId, getModelPointsSection(window, section));
|
|
40
|
-
}
|
|
41
|
-
async function setModelComponentsPointsVertexAttribute(window, section, attributeName, options = {}) {
|
|
42
|
-
await setModelComponentsPointsVisibility(window, section, true);
|
|
43
|
-
await applyAttribute(window, getModelPointsSection(window, section), {
|
|
44
|
-
attributeType: vertexAttributeType,
|
|
45
|
-
attributeName,
|
|
46
|
-
...options
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
//#endregion
|
|
50
|
-
export { setModelComponentsPointsColor, setModelComponentsPointsSize, setModelComponentsPointsVertexAttribute, setModelComponentsPointsVisibility };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { setModelComponentsPointsColor, setModelComponentsPointsSize, setModelComponentsPointsVertexAttribute, setModelComponentsPointsVisibility } from "./components.js";
|
|
2
|
-
import { setModelPointsVisibility } from "./visibility.js";
|
|
3
|
-
export { setModelComponentsPointsColor, setModelComponentsPointsSize, setModelComponentsPointsVertexAttribute, setModelComponentsPointsVisibility, setModelPointsVisibility };
|