@geode/opengeodeweb-front 10.30.2-rc.2 → 10.30.2-rc.4
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 +1 -0
- package/app/utils/colormap.js +4 -4
- package/internal/stores/hybrid_viewer.js +3 -3
- package/package.json +1 -1
- package/shared/scripts.js +14 -1
- package/tests/integration/stores/data_style/mesh/cells.nuxt.test.js +2 -2
- package/tests/integration/stores/data_style/mesh/edges.nuxt.test.js +2 -2
- package/tests/integration/stores/data_style/mesh/index.nuxt.test.js +2 -2
- package/tests/integration/stores/data_style/mesh/points.nuxt.test.js +2 -2
- package/tests/integration/stores/data_style/mesh/polygons.nuxt.test.js +2 -2
- package/tests/integration/stores/data_style/mesh/polyhedra.nuxt.test.js +2 -2
- package/tests/integration/stores/data_style/model/blocks.nuxt.test.js +2 -2
- package/tests/integration/stores/data_style/model/corners.nuxt.test.js +2 -2
- package/tests/integration/stores/data_style/model/edges.nuxt.test.js +2 -2
- package/tests/integration/stores/data_style/model/index.nuxt.test.js +2 -2
- package/tests/integration/stores/data_style/model/lines.nuxt.test.js +2 -2
- package/tests/integration/stores/data_style/model/points.nuxt.test.js +2 -2
- package/tests/integration/stores/data_style/model/surfaces.nuxt.test.js +2 -2
package/.oxlintrc.json
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"eslint/no-ternary": "off", // A utiliser pour des opérations simples
|
|
21
21
|
"unicorn/prefer-ternary": "off",
|
|
22
22
|
"oxc/no-async-await": "off",
|
|
23
|
+
"one-var": ["error", "never"],
|
|
23
24
|
"oxc/no-rest-spread-properties": "off", // Enable if older browser support is needed
|
|
24
25
|
"eslint/max-statements": ["warn", 20],
|
|
25
26
|
"eslint/id-length": [
|
package/app/utils/colormap.js
CHANGED
|
@@ -44,10 +44,10 @@ function drawCanvasForPreset(presetName, canvas) {
|
|
|
44
44
|
const table = lut.getUint8Table(rgbPoints[0], rgbPoints.at(-LAST_POINT_OFFSET), width, true);
|
|
45
45
|
const imageData = ctx.createImageData(width, height);
|
|
46
46
|
for (let xCoord = 0; xCoord < width; xCoord += 1) {
|
|
47
|
-
const alpha = table[xCoord * 4 + THREE]
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
const alpha = table[xCoord * 4 + THREE];
|
|
48
|
+
const blue = table[xCoord * 4 + 2];
|
|
49
|
+
const green = table[xCoord * 4 + 1];
|
|
50
|
+
const red = table[xCoord * 4];
|
|
51
51
|
for (let yCoord = 0; yCoord < height; yCoord += 1) {
|
|
52
52
|
const pixelIdx = (yCoord * width + xCoord) * 4;
|
|
53
53
|
imageData.data[pixelIdx] = red;
|
|
@@ -94,9 +94,9 @@ async function performAddItem(id, options) {
|
|
|
94
94
|
}
|
|
95
95
|
const reader = vtkXMLPolyDataReader();
|
|
96
96
|
await reader.parseAsArrayBuffer(new TextEncoder().encode(value.binary_light_viewable));
|
|
97
|
-
const actor = vtkActor()
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
const actor = vtkActor();
|
|
98
|
+
const mapper = vtkMapper();
|
|
99
|
+
const polydata = reader.getOutputData(0);
|
|
100
100
|
mapper.setInputData(polydata);
|
|
101
101
|
actor.getProperty().setColor(actorColor);
|
|
102
102
|
actor.setMapper(mapper);
|
package/package.json
CHANGED
package/shared/scripts.js
CHANGED
|
@@ -69,4 +69,17 @@ function setIsAppReady(appBaseUrl, isReady) {
|
|
|
69
69
|
return fetchSchema({ schema, params, baseURL: appBaseUrl });
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
function getIsAppReady(appBaseUrl) {
|
|
73
|
+
console.log("[API] getIsAppReady");
|
|
74
|
+
const schema = {
|
|
75
|
+
$id: "/api/microservice/app/get_is_app_ready",
|
|
76
|
+
methods: ["GET"],
|
|
77
|
+
type: "object",
|
|
78
|
+
properties: {},
|
|
79
|
+
required: [],
|
|
80
|
+
additionalProperties: false,
|
|
81
|
+
};
|
|
82
|
+
return fetchSchema({ schema, baseURL: appBaseUrl });
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export { getIsAppReady, setAppBaseUrl, setBackBaseUrl, setIsAppReady, setViewerBaseUrl };
|
|
@@ -23,8 +23,8 @@ const range = [MINIMUM_RANGE, MAXIMUM_RANGE];
|
|
|
23
23
|
const default_vertex_attribute = { name: "points", item: 0, range };
|
|
24
24
|
const default_cell_attribute = { name: "RGB_data", item: 0, range };
|
|
25
25
|
|
|
26
|
-
let id = ""
|
|
27
|
-
|
|
26
|
+
let id = "";
|
|
27
|
+
let projectFolderPath = "";
|
|
28
28
|
|
|
29
29
|
describe("mesh cells", () => {
|
|
30
30
|
beforeAll(async () => {
|
|
@@ -20,8 +20,8 @@ const range = [MINIMUM_RANGE, MAXIMUM_RANGE];
|
|
|
20
20
|
const default_vertex_attribute = { name: "vertex_attribute", item: 0, range };
|
|
21
21
|
const default_edge_attribute = { name: "edge_attribute", item: 0, range };
|
|
22
22
|
|
|
23
|
-
let id = ""
|
|
24
|
-
|
|
23
|
+
let id = "";
|
|
24
|
+
let projectFolderPath = "";
|
|
25
25
|
|
|
26
26
|
describe("mesh edges", () => {
|
|
27
27
|
beforeAll(async () => {
|
|
@@ -14,8 +14,8 @@ const mesh_schemas = viewer_schemas.opengeodeweb_viewer.mesh;
|
|
|
14
14
|
const file_name = "test.og_rgd3d";
|
|
15
15
|
const geode_object = "RegularGrid3D";
|
|
16
16
|
|
|
17
|
-
let id = ""
|
|
18
|
-
|
|
17
|
+
let id = "";
|
|
18
|
+
let projectFolderPath = "";
|
|
19
19
|
|
|
20
20
|
describe("mesh", () => {
|
|
21
21
|
beforeAll(async () => {
|
|
@@ -19,8 +19,8 @@ const MAXIMUM_RANGE = 20;
|
|
|
19
19
|
const range = [MINIMUM_RANGE, MAXIMUM_RANGE];
|
|
20
20
|
const default_vertex_attribute = { name: "points", item: 0, range };
|
|
21
21
|
|
|
22
|
-
let id = ""
|
|
23
|
-
|
|
22
|
+
let id = "";
|
|
23
|
+
let projectFolderPath = "";
|
|
24
24
|
|
|
25
25
|
describe("mesh points", () => {
|
|
26
26
|
beforeAll(async () => {
|
|
@@ -20,8 +20,8 @@ const range = [MINIMUM_RANGE, MAXIMUM_RANGE];
|
|
|
20
20
|
const default_vertex_attribute = { name: "points", item: 0, range };
|
|
21
21
|
const default_polygon_attribute = { name: "test_attribute", item: 0, range };
|
|
22
22
|
|
|
23
|
-
let id = ""
|
|
24
|
-
|
|
23
|
+
let id = "";
|
|
24
|
+
let projectFolderPath = "";
|
|
25
25
|
|
|
26
26
|
describe("mesh polygons", () => {
|
|
27
27
|
beforeAll(async () => {
|
|
@@ -20,8 +20,8 @@ const range = [MINIMUM_RANGE, MAXIMUM_RANGE];
|
|
|
20
20
|
const default_vertex_attribute = { name: "toto_on_vertices", item: 0, range };
|
|
21
21
|
const default_polyhedron_attribute = { name: "toto_on_polyhedra", item: 0, range };
|
|
22
22
|
|
|
23
|
-
let id = ""
|
|
24
|
-
|
|
23
|
+
let id = "";
|
|
24
|
+
let projectFolderPath = "";
|
|
25
25
|
|
|
26
26
|
describe("mesh polyhedra", () => {
|
|
27
27
|
beforeAll(async () => {
|