@geode/opengeodeweb-front 10.3.0 → 10.3.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/.eslintrc.cjs +1 -0
- package/app/assets/geode_objects.js +1 -3
- package/app/components/Carousel.vue +7 -4
- package/app/components/CrsSelector.vue +5 -6
- package/app/components/DragAndDrop.vue +18 -8
- package/app/components/ExtensionSelector.vue +9 -17
- package/app/components/FeedBack/ErrorBanner.vue +1 -1
- package/app/components/FeedBack/Snackers.vue +4 -1
- package/app/components/FileSelector.vue +21 -10
- package/app/components/FileUploader.vue +15 -32
- package/app/components/HybridRenderingView.vue +5 -3
- package/app/components/Inspector/InspectionButton.vue +2 -2
- package/app/components/Inspector/ResultPanel.vue +4 -4
- package/app/components/Launcher.vue +1 -1
- package/app/components/Loading.vue +6 -6
- package/app/components/MissingFilesSelector.vue +23 -29
- package/app/components/ObjectSelector.vue +11 -10
- package/app/components/OptionCard.vue +1 -1
- package/app/components/PackagesVersions.vue +5 -3
- package/app/components/Recaptcha.vue +6 -4
- package/app/components/RemoteRenderingView.vue +4 -3
- package/app/components/Screenshot.vue +4 -4
- package/app/components/Step.vue +7 -7
- package/app/components/VeaseViewToolbar.vue +3 -3
- package/app/components/Viewer/BreadCrumb.vue +2 -4
- package/app/components/Viewer/ContextMenu.vue +77 -45
- package/app/components/Viewer/ContextMenuItem.vue +42 -33
- package/app/components/Viewer/EdgedCurve/PointsOptions.vue +3 -3
- package/app/components/Viewer/EdgedCurve/SpecificEdgesOptions.vue +5 -5
- package/app/components/Viewer/Generic/Mesh/CellsOptions.vue +6 -6
- package/app/components/Viewer/Generic/Mesh/EdgesOptions.vue +5 -5
- package/app/components/Viewer/Generic/Mesh/PointsOptions.vue +5 -5
- package/app/components/Viewer/Generic/Mesh/PolygonsOptions.vue +6 -7
- package/app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue +6 -6
- package/app/components/Viewer/Generic/Model/EdgesOptions.vue +3 -3
- package/app/components/Viewer/Generic/Model/PointsOptions.vue +4 -4
- package/app/components/Viewer/Grid/2D/CellsOptions.vue +3 -3
- package/app/components/Viewer/Grid/2D/EdgesOptions.vue +3 -3
- package/app/components/Viewer/Grid/2D/PointsOptions.vue +3 -3
- package/app/components/Viewer/Grid/3D/CellsOptions.vue +3 -3
- package/app/components/Viewer/Grid/3D/EdgesOptions.vue +3 -3
- package/app/components/Viewer/Grid/3D/FacetsOptions.vue +3 -3
- package/app/components/Viewer/Grid/3D/PointsOptions.vue +3 -3
- package/app/components/Viewer/HybridSolid/EdgesOptions.vue +3 -3
- package/app/components/Viewer/HybridSolid/PointsOptions.vue +3 -3
- package/app/components/Viewer/HybridSolid/PolygonsOptions.vue +3 -3
- package/app/components/Viewer/HybridSolid/PolyhedraOptions.vue +3 -3
- package/app/components/Viewer/Options/CellAttributeSelector.vue +23 -20
- package/app/components/Viewer/Options/ColorMapList.vue +75 -50
- package/app/components/Viewer/Options/ColorMapPicker.vue +38 -32
- package/app/components/Viewer/Options/ColorPicker.vue +3 -3
- package/app/components/Viewer/Options/ColoringTypeSelector.vue +29 -21
- package/app/components/Viewer/Options/EdgeAttributeSelector.vue +7 -7
- package/app/components/Viewer/Options/PolygonAttributeSelector.vue +7 -7
- package/app/components/Viewer/Options/PolyhedronAttributeSelector.vue +7 -7
- package/app/components/Viewer/Options/TextureItem.vue +5 -5
- package/app/components/Viewer/Options/TexturesSelector.vue +5 -5
- package/app/components/Viewer/Options/VertexAttributeSelector.vue +7 -7
- package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +5 -5
- package/app/components/Viewer/PolygonalSurface/EdgesOptions.vue +3 -3
- package/app/components/Viewer/PolygonalSurface/PointsOptions.vue +3 -3
- package/app/components/Viewer/PolygonalSurface/SpecificPolygonsOptions.vue +6 -6
- package/app/components/Viewer/Solid/EdgesOptions.vue +3 -3
- package/app/components/Viewer/Solid/PointsOptions.vue +3 -3
- package/app/components/Viewer/Solid/PolygonsOptions.vue +3 -3
- package/app/components/Viewer/Solid/SpecificPolyhedraOptions.vue +6 -6
- package/app/components/Viewer/TetrahedralSolid/TetrahedraOptions.vue +3 -3
- package/app/components/Viewer/TetrahedralSolid/TrianglesOptions.vue +3 -3
- package/app/components/Viewer/Tree/ObjectTree.vue +7 -9
- package/app/components/Viewer/TreeComponent.vue +9 -13
- package/app/components/Viewer/TreeObject.vue +8 -9
- package/app/components/Viewer/TriangulatedSurface/EdgesOptions.vue +3 -3
- package/app/components/Viewer/TriangulatedSurface/PointsOptions.vue +3 -3
- package/app/components/Viewer/TriangulatedSurface/TrianglesOptions.vue +3 -3
- package/app/components/Wrapper.vue +1 -2
- package/app/components/ZScaling.vue +1 -1
- package/app/composables/project_manager.js +6 -6
- package/app/plugins/auto_store_register.js +1 -1
- package/app/stores/app.js +45 -41
- package/app/stores/data.js +52 -51
- package/app/stores/data_style.js +12 -11
- package/app/stores/feedback.js +5 -1
- package/app/stores/geode.js +16 -13
- package/app/stores/hybrid_viewer.js +72 -44
- package/app/stores/infra.js +18 -16
- package/app/stores/lambda.js +1 -9
- package/app/stores/menu.js +13 -13
- package/app/stores/treeview.js +15 -13
- package/app/stores/viewer.js +39 -33
- package/app/utils/app_mode.js +4 -3
- package/app/utils/default_styles.js +55 -47
- package/app/utils/file_import_workflow.js +4 -17
- package/app/utils/local.js +195 -184
- package/app/utils/upload_file.js +1 -2
- package/eslint.config.js +2 -2
- package/internal/database/database.js +17 -32
- package/internal/database/extended_database.js +25 -0
- package/internal/stores/data_style/mesh/cells/cell.js +3 -3
- package/internal/stores/data_style/mesh/cells/color.js +1 -1
- package/internal/stores/data_style/mesh/cells/index.js +7 -7
- package/internal/stores/data_style/mesh/cells/textures.js +1 -1
- package/internal/stores/data_style/mesh/cells/vertex.js +3 -3
- package/internal/stores/data_style/mesh/cells/visibility.js +1 -1
- package/internal/stores/data_style/mesh/edges/color.js +1 -1
- package/internal/stores/data_style/mesh/edges/edge.js +22 -22
- package/internal/stores/data_style/mesh/edges/index.js +7 -7
- package/internal/stores/data_style/mesh/edges/vertex.js +3 -3
- package/internal/stores/data_style/mesh/edges/visibility.js +1 -1
- package/internal/stores/data_style/mesh/edges/width.js +1 -1
- package/internal/stores/data_style/mesh/index.js +4 -5
- package/internal/stores/data_style/mesh/points/color.js +1 -1
- package/internal/stores/data_style/mesh/points/index.js +6 -6
- package/internal/stores/data_style/mesh/points/size.js +1 -1
- package/internal/stores/data_style/mesh/points/vertex.js +3 -3
- package/internal/stores/data_style/mesh/points/visibility.js +1 -1
- package/internal/stores/data_style/mesh/polygons/color.js +1 -1
- package/internal/stores/data_style/mesh/polygons/index.js +7 -7
- package/internal/stores/data_style/mesh/polygons/polygon.js +3 -3
- package/internal/stores/data_style/mesh/polygons/textures.js +1 -1
- package/internal/stores/data_style/mesh/polygons/vertex.js +3 -3
- package/internal/stores/data_style/mesh/polygons/visibility.js +1 -1
- package/internal/stores/data_style/mesh/polyhedra/color.js +1 -1
- package/internal/stores/data_style/mesh/polyhedra/index.js +6 -6
- package/internal/stores/data_style/mesh/polyhedra/polyhedron.js +3 -3
- package/internal/stores/data_style/mesh/polyhedra/vertex.js +3 -3
- package/internal/stores/data_style/mesh/polyhedra/visibility.js +1 -1
- package/internal/stores/data_style/model/edges.js +1 -1
- package/internal/stores/data_style/model/index.js +32 -22
- package/internal/utils/api_fetch.js +8 -5
- package/internal/utils/viewer_call.js +42 -46
- package/nuxt.config.js +3 -3
- package/package.json +1 -1
- package/scripts/generate_geode_objects.js +8 -7
- package/tests/integration/setup.js +28 -21
- package/tests/integration/stores/data_style/mesh/cells.nuxt.test.js +18 -10
- package/tests/integration/stores/data_style/mesh/edges.nuxt.test.js +18 -10
- package/tests/integration/stores/data_style/mesh/index.nuxt.test.js +9 -5
- package/tests/integration/stores/data_style/mesh/points.nuxt.test.js +17 -10
- package/tests/integration/stores/data_style/mesh/polygons.nuxt.test.js +18 -10
- package/tests/integration/stores/data_style/mesh/polyhedra.nuxt.test.js +18 -10
- package/tests/integration/stores/data_style/model/blocks.nuxt.test.js +10 -6
- package/tests/integration/stores/data_style/model/corners.nuxt.test.js +10 -6
- package/tests/integration/stores/data_style/model/edges.nuxt.test.js +9 -5
- package/tests/integration/stores/data_style/model/index.nuxt.test.js +9 -5
- package/tests/integration/stores/data_style/model/lines.nuxt.test.js +10 -6
- package/tests/integration/stores/data_style/model/points.nuxt.test.js +9 -5
- package/tests/integration/stores/data_style/model/surfaces.nuxt.test.js +10 -6
- package/tests/integration/stores/viewer.nuxt.test.js +55 -39
- package/tests/setup_indexeddb.js +1 -0
- package/tests/unit/components/CrsSelector.nuxt.test.js +18 -19
- package/tests/unit/components/ExtensionSelector.nuxt.test.js +24 -19
- package/tests/unit/components/FeedBack/ErrorsBanner.nuxt.test.js +23 -36
- package/tests/unit/components/FeedBack/Snackers.nuxt.test.js +20 -25
- package/tests/unit/components/FileSelector.nuxt.test.js +27 -27
- package/tests/unit/components/FileUploader.nuxt.test.js +18 -17
- package/tests/unit/components/Inspector/InspectionButton.nuxt.test.js +9 -16
- package/tests/unit/components/Inspector/ResultPanel.nuxt.test.js +8 -6
- package/tests/unit/components/Launcher.nuxt.test.js +12 -17
- package/tests/unit/components/MissingFilesSelector.nuxt.test.js +16 -19
- package/tests/unit/components/ObjectSelector.nuxt.test.js +30 -34
- package/tests/unit/components/PackagesVersions.nuxt.test.js +8 -11
- package/tests/unit/components/Step.nuxt.test.js +8 -7
- package/tests/unit/components/Stepper.nuxt.test.js +14 -12
- package/tests/unit/composables/ProjectManager.nuxt.test.js +142 -100
- package/tests/unit/composables/api_fetch.nuxt.test.js +12 -39
- package/tests/unit/composables/run_function_when_microservices_connected.nuxt.test.js +36 -61
- package/tests/unit/composables/upload_file.nuxt.test.js +21 -25
- package/tests/unit/plugins/project_load.nuxt.test.js +22 -21
- package/tests/unit/stores/App.nuxt.test.js +45 -43
- package/tests/unit/stores/Feedback.nuxt.test.js +16 -18
- package/tests/unit/stores/Geode.nuxt.test.js +135 -137
- package/tests/unit/stores/Infra.nuxt.test.js +20 -26
- package/tests/unit/stores/Lambda.nuxt.test.js +30 -31
- package/tests/unit/stores/Treeview.nuxt.test.js +53 -55
- package/tests/unit/stores/Viewer.nuxt.test.js +16 -23
- package/tests/unit/utils/validate_schema.nuxt.test.js +18 -18
- package/tests/utils.js +15 -2
- package/tests/vitest.config.js +6 -2
|
@@ -22,18 +22,18 @@ const blocks_defaultVisibility = true
|
|
|
22
22
|
const blocks_defaultColor = { r: 255, g: 255, b: 255 }
|
|
23
23
|
|
|
24
24
|
// Mesh functions
|
|
25
|
-
|
|
25
|
+
function meshPointsDefaultStyle(
|
|
26
26
|
visibility = points_defaultVisibility,
|
|
27
27
|
size = points_defaultSize,
|
|
28
28
|
color = points_defaultColor,
|
|
29
|
-
)
|
|
29
|
+
) {
|
|
30
30
|
return {
|
|
31
31
|
visibility,
|
|
32
32
|
coloring: {
|
|
33
33
|
active: "color",
|
|
34
34
|
color,
|
|
35
35
|
vertex: {
|
|
36
|
-
name:
|
|
36
|
+
name: undefined,
|
|
37
37
|
storedConfigs: {},
|
|
38
38
|
},
|
|
39
39
|
},
|
|
@@ -41,22 +41,22 @@ const meshPointsDefaultStyle = (
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
function meshEdgesDefaultStyle(
|
|
45
45
|
visibility = edges_defaultVisibility,
|
|
46
46
|
width = edges_defaultWidth,
|
|
47
47
|
color = edges_defaultColor,
|
|
48
|
-
)
|
|
48
|
+
) {
|
|
49
49
|
return {
|
|
50
50
|
visibility,
|
|
51
51
|
coloring: {
|
|
52
52
|
active: "color",
|
|
53
53
|
color,
|
|
54
54
|
edge: {
|
|
55
|
-
name:
|
|
55
|
+
name: undefined,
|
|
56
56
|
storedConfigs: {},
|
|
57
57
|
},
|
|
58
58
|
vertex: {
|
|
59
|
-
name:
|
|
59
|
+
name: undefined,
|
|
60
60
|
storedConfigs: {},
|
|
61
61
|
},
|
|
62
62
|
},
|
|
@@ -64,79 +64,79 @@ const meshEdgesDefaultStyle = (
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
function meshCellsDefaultStyle(
|
|
68
68
|
visibility = cells_defaultVisibility,
|
|
69
69
|
color = cells_defaultColor,
|
|
70
|
-
)
|
|
70
|
+
) {
|
|
71
71
|
return {
|
|
72
72
|
visibility,
|
|
73
73
|
coloring: {
|
|
74
74
|
active: "color",
|
|
75
75
|
cell: {
|
|
76
|
-
name:
|
|
76
|
+
name: undefined,
|
|
77
77
|
storedConfigs: {},
|
|
78
78
|
},
|
|
79
79
|
color,
|
|
80
|
-
textures:
|
|
80
|
+
textures: undefined,
|
|
81
81
|
vertex: {
|
|
82
|
-
name:
|
|
82
|
+
name: undefined,
|
|
83
83
|
storedConfigs: {},
|
|
84
84
|
},
|
|
85
85
|
},
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
function meshPolygonsDefaultStyle(
|
|
90
90
|
visibility = polygons_defaultVisibility,
|
|
91
91
|
color = polygons_defaultColor,
|
|
92
|
-
)
|
|
92
|
+
) {
|
|
93
93
|
return {
|
|
94
94
|
visibility,
|
|
95
95
|
coloring: {
|
|
96
96
|
active: "color",
|
|
97
97
|
color,
|
|
98
|
-
textures:
|
|
98
|
+
textures: undefined,
|
|
99
99
|
polygon: {
|
|
100
|
-
name:
|
|
100
|
+
name: undefined,
|
|
101
101
|
storedConfigs: {},
|
|
102
102
|
},
|
|
103
103
|
vertex: {
|
|
104
|
-
name:
|
|
104
|
+
name: undefined,
|
|
105
105
|
storedConfigs: {},
|
|
106
106
|
},
|
|
107
107
|
},
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
function meshPolyhedraDefaultStyle(
|
|
112
112
|
visibility = polyhedra_defaultVisibility,
|
|
113
113
|
color = polyhedra_defaultColor,
|
|
114
|
-
)
|
|
114
|
+
) {
|
|
115
115
|
return {
|
|
116
116
|
visibility,
|
|
117
117
|
coloring: {
|
|
118
118
|
active: "color",
|
|
119
119
|
color,
|
|
120
120
|
polyhedron: {
|
|
121
|
-
name:
|
|
121
|
+
name: undefined,
|
|
122
122
|
storedConfigs: {},
|
|
123
123
|
},
|
|
124
124
|
vertex: {
|
|
125
|
-
name:
|
|
125
|
+
name: undefined,
|
|
126
126
|
storedConfigs: {},
|
|
127
127
|
},
|
|
128
128
|
},
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
|
|
132
|
+
function pointSet_defaultStyle() {
|
|
133
133
|
return {
|
|
134
134
|
visibility: true,
|
|
135
135
|
points: meshPointsDefaultStyle(),
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
|
|
139
|
+
function edgedCurve_defaultStyle() {
|
|
140
140
|
return {
|
|
141
141
|
visibility: true,
|
|
142
142
|
points: meshPointsDefaultStyle(),
|
|
@@ -144,7 +144,7 @@ const edgedCurve_defaultStyle = () => {
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
function grid2d_defaultStyle() {
|
|
148
148
|
return {
|
|
149
149
|
visibility: true,
|
|
150
150
|
points: meshPointsDefaultStyle(false),
|
|
@@ -153,7 +153,7 @@ const grid2d_defaultStyle = () => {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
function grid3d_defaultStyle() {
|
|
157
157
|
return {
|
|
158
158
|
visibility: true,
|
|
159
159
|
points: meshPointsDefaultStyle(false),
|
|
@@ -162,7 +162,7 @@ const grid3d_defaultStyle = () => {
|
|
|
162
162
|
polyhedra: meshPolyhedraDefaultStyle(),
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
|
|
165
|
+
function surface_defaultStyle() {
|
|
166
166
|
return {
|
|
167
167
|
visibility: true,
|
|
168
168
|
points: meshPointsDefaultStyle(false),
|
|
@@ -171,7 +171,7 @@ const surface_defaultStyle = () => {
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
|
|
174
|
+
function solid_defaultStyle() {
|
|
175
175
|
return {
|
|
176
176
|
visibility: true,
|
|
177
177
|
points: meshPointsDefaultStyle(false),
|
|
@@ -182,41 +182,49 @@ const solid_defaultStyle = () => {
|
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
// Model functions
|
|
185
|
-
|
|
185
|
+
function modelCornersDefaultStyle(
|
|
186
186
|
visibility = corners_defaultVisibility,
|
|
187
187
|
color = corners_defaultColor,
|
|
188
|
-
)
|
|
188
|
+
) {
|
|
189
189
|
return { visibility, color }
|
|
190
190
|
}
|
|
191
|
-
|
|
191
|
+
|
|
192
|
+
function modelLinesDefaultStyle(
|
|
192
193
|
visibility = lines_defaultVisibility,
|
|
193
194
|
color = lines_defaultColor,
|
|
194
|
-
)
|
|
195
|
+
) {
|
|
195
196
|
return { visibility, color }
|
|
196
197
|
}
|
|
197
|
-
|
|
198
|
+
|
|
199
|
+
function modelSurfacesDefaultStyle(
|
|
198
200
|
visibility = surfaces_defaultVisibility,
|
|
199
201
|
color = surfaces_defaultColor,
|
|
200
|
-
)
|
|
202
|
+
) {
|
|
201
203
|
return { visibility, color }
|
|
202
204
|
}
|
|
203
|
-
|
|
205
|
+
|
|
206
|
+
function modelBlocksDefaultStyle(
|
|
204
207
|
visibility = blocks_defaultVisibility,
|
|
205
208
|
color = blocks_defaultColor,
|
|
206
|
-
)
|
|
209
|
+
) {
|
|
207
210
|
return { visibility, color }
|
|
208
211
|
}
|
|
209
|
-
|
|
212
|
+
|
|
213
|
+
function modelPointsDefaultStyle(
|
|
210
214
|
visibility = points_defaultVisibility,
|
|
211
|
-
size,
|
|
212
|
-
)
|
|
215
|
+
size = points_defaultSize,
|
|
216
|
+
) {
|
|
213
217
|
return { visibility, size }
|
|
214
218
|
}
|
|
215
|
-
|
|
216
|
-
|
|
219
|
+
|
|
220
|
+
function modelEdgesDefaultStyle(
|
|
221
|
+
visibility = edges_defaultVisibility,
|
|
222
|
+
width = edges_defaultWidth,
|
|
223
|
+
) {
|
|
224
|
+
return { visibility, width }
|
|
217
225
|
}
|
|
218
226
|
|
|
219
|
-
|
|
227
|
+
function brep_defaultStyle() {
|
|
220
228
|
return {
|
|
221
229
|
visibility: true,
|
|
222
230
|
corners: modelCornersDefaultStyle(),
|
|
@@ -228,7 +236,7 @@ const brep_defaultStyle = () => {
|
|
|
228
236
|
}
|
|
229
237
|
}
|
|
230
238
|
|
|
231
|
-
|
|
239
|
+
function crossSection_defaultStyle() {
|
|
232
240
|
return {
|
|
233
241
|
visibility: true,
|
|
234
242
|
corners: modelCornersDefaultStyle(),
|
|
@@ -239,7 +247,7 @@ const crossSection_defaultStyle = () => {
|
|
|
239
247
|
}
|
|
240
248
|
}
|
|
241
249
|
|
|
242
|
-
|
|
250
|
+
function structuralModel_defaultStyle() {
|
|
243
251
|
return {
|
|
244
252
|
visibility: true,
|
|
245
253
|
corners: modelCornersDefaultStyle(),
|
|
@@ -251,7 +259,7 @@ const structuralModel_defaultStyle = () => {
|
|
|
251
259
|
}
|
|
252
260
|
}
|
|
253
261
|
|
|
254
|
-
|
|
262
|
+
function section_defaultStyle() {
|
|
255
263
|
return {
|
|
256
264
|
visibility: true,
|
|
257
265
|
corners: modelCornersDefaultStyle(),
|
|
@@ -262,7 +270,7 @@ const section_defaultStyle = () => {
|
|
|
262
270
|
}
|
|
263
271
|
}
|
|
264
272
|
|
|
265
|
-
|
|
273
|
+
function implicitCrossSection_defaultStyle() {
|
|
266
274
|
return {
|
|
267
275
|
visibility: true,
|
|
268
276
|
corners: modelCornersDefaultStyle(),
|
|
@@ -273,7 +281,7 @@ const implicitCrossSection_defaultStyle = () => {
|
|
|
273
281
|
}
|
|
274
282
|
}
|
|
275
283
|
|
|
276
|
-
|
|
284
|
+
function implicitStructuralModel_defaultStyle() {
|
|
277
285
|
return {
|
|
278
286
|
visibility: true,
|
|
279
287
|
corners: modelCornersDefaultStyle(),
|
|
@@ -285,7 +293,7 @@ const implicitStructuralModel_defaultStyle = () => {
|
|
|
285
293
|
}
|
|
286
294
|
}
|
|
287
295
|
|
|
288
|
-
|
|
296
|
+
function default_styles() {
|
|
289
297
|
return {
|
|
290
298
|
BRep: brep_defaultStyle(),
|
|
291
299
|
CrossSection: crossSection_defaultStyle(),
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
|
|
3
3
|
|
|
4
4
|
// Local imports
|
|
5
|
-
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
|
|
6
|
-
import { useGeodeStore } from "@ogw_front/stores/geode"
|
|
7
|
-
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
8
5
|
import { useDataStore } from "@ogw_front/stores/data"
|
|
6
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
7
|
+
import { useGeodeStore } from "@ogw_front/stores/geode"
|
|
8
|
+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
|
|
9
9
|
import { useTreeviewStore } from "@ogw_front/stores/treeview"
|
|
10
10
|
|
|
11
11
|
async function importWorkflow(files) {
|
|
@@ -73,22 +73,9 @@ async function importFile(filename, geode_object_type) {
|
|
|
73
73
|
|
|
74
74
|
async function importWorkflowFromSnapshot(items) {
|
|
75
75
|
console.log("[importWorkflowFromSnapshot] start", { count: items?.length })
|
|
76
|
-
const dataStore = useDataStore()
|
|
77
|
-
const treeviewStore = useTreeviewStore()
|
|
78
|
-
const dataStyleStore = useDataStyleStore()
|
|
79
76
|
const hybridViewerStore = useHybridViewerStore()
|
|
80
77
|
|
|
81
|
-
const ids =
|
|
82
|
-
for (const item of items) {
|
|
83
|
-
const id = await importItem(
|
|
84
|
-
item,
|
|
85
|
-
dataStore,
|
|
86
|
-
treeviewStore,
|
|
87
|
-
dataStyleStore,
|
|
88
|
-
hybridViewerStore,
|
|
89
|
-
)
|
|
90
|
-
ids.push(id)
|
|
91
|
-
}
|
|
78
|
+
const ids = await Promise.all(items.map((item) => importItem(item)))
|
|
92
79
|
hybridViewerStore.remoteRender()
|
|
93
80
|
console.log("[importWorkflowFromSnapshot] done", { ids })
|
|
94
81
|
return ids
|