@geode/opengeodeweb-front 12.0.0-rc.1 → 12.0.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.
Files changed (170) hide show
  1. package/.build/shared/utils/response_handlers/load.js +5 -2
  2. package/app/assets/geode_objects.ts +37 -108
  3. package/app/assets/img/geode_objects/HorizonStack3D.svg +10 -0
  4. package/app/components/CrsSelector.vue +6 -6
  5. package/app/components/ExtensionSelector.vue +21 -14
  6. package/app/components/MissingFilesSelector.vue +1 -1
  7. package/app/components/ObjectSelector.vue +7 -14
  8. package/app/components/ThresholdFilter.vue +1 -1
  9. package/app/components/TimeSeriesTargetSelector.vue +2 -5
  10. package/app/components/Viewer/ContextMenu/ContextMenu.vue +1 -1
  11. package/app/components/Viewer/EdgedCurve/SpecificEdgesColoring.vue +12 -9
  12. package/app/components/Viewer/EdgedCurve/SpecificEdgesOptions.vue +2 -2
  13. package/app/components/Viewer/Generic/Mesh/CellsColoring.vue +12 -9
  14. package/app/components/Viewer/Generic/Mesh/CellsOptions.vue +1 -1
  15. package/app/components/Viewer/Generic/Mesh/EdgesColoring.vue +12 -9
  16. package/app/components/Viewer/Generic/Mesh/EdgesOptions.vue +3 -3
  17. package/app/components/Viewer/Generic/Mesh/PointsOptions.vue +12 -8
  18. package/app/components/Viewer/Generic/Mesh/PolygonsColoring.vue +12 -9
  19. package/app/components/Viewer/Generic/Mesh/PolygonsOptions.vue +1 -1
  20. package/app/components/Viewer/Generic/Mesh/PolyhedraColoring.vue +12 -9
  21. package/app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue +1 -1
  22. package/app/components/Viewer/Generic/Model/BlocksOptions.vue +16 -17
  23. package/app/components/Viewer/Generic/Model/ComponentEdgesOptions.vue +11 -6
  24. package/app/components/Viewer/Generic/Model/ComponentPointsOptions.vue +11 -6
  25. package/app/components/Viewer/Generic/Model/CornerComponentOptions.vue +7 -8
  26. package/app/components/Viewer/Generic/Model/CornersTypeOptions.vue +7 -8
  27. package/app/components/Viewer/Generic/Model/LineComponentOptions.vue +9 -10
  28. package/app/components/Viewer/Generic/Model/LinesTypeOptions.vue +9 -10
  29. package/app/components/Viewer/Generic/Model/ModelEdgesCard.vue +2 -2
  30. package/app/components/Viewer/Generic/Model/ModelPointsCard.vue +1 -1
  31. package/app/components/Viewer/Generic/Model/ModelStyleCard.vue +3 -4
  32. package/app/components/Viewer/Generic/Model/SurfacesOptions.vue +16 -17
  33. package/app/components/Viewer/ObjectTree/Layout.vue +2 -2
  34. package/app/components/Viewer/ObjectTree/Views/GlobalObjects.vue +2 -1
  35. package/app/components/Viewer/Options/AttributeSelector.vue +1 -1
  36. package/app/components/Viewer/Options/ColorPicker.vue +3 -3
  37. package/app/components/Viewer/Options/ColoringTypeSelector.vue +8 -8
  38. package/app/components/Viewer/Options/TextureItem.vue +2 -6
  39. package/app/components/Viewer/Options/TexturesSelector.vue +1 -1
  40. package/app/components/Viewer/OverlappingObjectsPicker.vue +3 -3
  41. package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +4 -5
  42. package/app/components/Viewer/Scene/BackgroundOptions.vue +2 -2
  43. package/app/components/Viewer/Scene/TextOptions.vue +2 -2
  44. package/app/components/Viewer/Solid/SpecificPolyhedraColoring.vue +12 -12
  45. package/app/components/Viewer/Solid/SpecificPolyhedraOptions.vue +1 -1
  46. package/app/components/Viewer/Surface/PolygonsColoring.vue +12 -12
  47. package/app/components/Viewer/Surface/PolygonsOptions.vue +1 -1
  48. package/app/composables/attribute_selector.ts +1 -1
  49. package/app/composables/batch_style.ts +3 -3
  50. package/app/composables/batch_style_model.ts +1 -1
  51. package/app/composables/clipping_slices.ts +2 -1
  52. package/app/composables/hover_highlight.ts +10 -7
  53. package/app/composables/live_data_item.ts +1 -1
  54. package/app/composables/model_menu_context.ts +11 -4
  55. package/app/composables/project_manager_helpers/types.ts +2 -2
  56. package/app/composables/use_overlapping_picker.ts +10 -8
  57. package/app/composables/viewer_context_menu.ts +4 -2
  58. package/app/composables/viewer_reset.ts +4 -5
  59. package/app/stores/basemap_helpers/builds.ts +2 -2
  60. package/app/stores/basemap_helpers/viewer.ts +1 -1
  61. package/app/stores/crs.ts +12 -12
  62. package/app/stores/data.ts +4 -5
  63. package/app/stores/data_helpers/mesh.ts +2 -1
  64. package/app/stores/data_style.ts +4 -3
  65. package/app/stores/menu.ts +18 -12
  66. package/app/stores/treeview.ts +5 -4
  67. package/app/types/attribute.ts +5 -21
  68. package/app/types/identifiers.ts +5 -15
  69. package/app/utils/attribute_range.ts +1 -1
  70. package/app/utils/attributes.ts +2 -1
  71. package/app/utils/clipping_planes.ts +1 -1
  72. package/app/utils/color_picker.ts +3 -3
  73. package/app/utils/crs.ts +6 -6
  74. package/app/utils/default_styles/constants.ts +17 -22
  75. package/app/utils/default_styles/index.ts +3 -3
  76. package/app/utils/default_styles/mesh_components.ts +15 -11
  77. package/app/utils/default_styles/meshes.ts +1 -1
  78. package/app/utils/default_styles/model_components.ts +14 -10
  79. package/app/utils/default_styles/models.ts +1 -1
  80. package/app/utils/import_workflow.ts +3 -1
  81. package/app/utils/legacy_data_id.ts +2 -1
  82. package/app/utils/slice.ts +2 -1
  83. package/app/utils/threshold_sources.ts +1 -1
  84. package/internal/stores/data_style/attribute_types.ts +6 -6
  85. package/internal/stores/data_style/mesh/base_style.ts +6 -7
  86. package/internal/stores/data_style/mesh/cells/cell.ts +6 -6
  87. package/internal/stores/data_style/mesh/cells/cell_attribute.ts +8 -6
  88. package/internal/stores/data_style/mesh/cells/cell_config.ts +5 -6
  89. package/internal/stores/data_style/mesh/cells/color.ts +6 -6
  90. package/internal/stores/data_style/mesh/cells/opacity.ts +3 -4
  91. package/internal/stores/data_style/mesh/cells/vertex.ts +6 -6
  92. package/internal/stores/data_style/mesh/cells/vertex_attribute.ts +8 -6
  93. package/internal/stores/data_style/mesh/cells/vertex_config.ts +5 -6
  94. package/internal/stores/data_style/mesh/cells/visibility.ts +1 -1
  95. package/internal/stores/data_style/mesh/edges/color.ts +6 -6
  96. package/internal/stores/data_style/mesh/edges/edge.ts +6 -6
  97. package/internal/stores/data_style/mesh/edges/edge_attribute.ts +8 -6
  98. package/internal/stores/data_style/mesh/edges/edge_config.ts +5 -6
  99. package/internal/stores/data_style/mesh/edges/opacity.ts +3 -4
  100. package/internal/stores/data_style/mesh/edges/vertex.ts +6 -6
  101. package/internal/stores/data_style/mesh/edges/vertex_attribute.ts +8 -6
  102. package/internal/stores/data_style/mesh/edges/vertex_config.ts +5 -6
  103. package/internal/stores/data_style/mesh/edges/visibility.ts +1 -1
  104. package/internal/stores/data_style/mesh/edges/width.ts +6 -6
  105. package/internal/stores/data_style/mesh/index.ts +3 -4
  106. package/internal/stores/data_style/mesh/points/color.ts +6 -6
  107. package/internal/stores/data_style/mesh/points/common.ts +1 -1
  108. package/internal/stores/data_style/mesh/points/opacity.ts +3 -4
  109. package/internal/stores/data_style/mesh/points/size.ts +6 -6
  110. package/internal/stores/data_style/mesh/points/vertex.ts +6 -6
  111. package/internal/stores/data_style/mesh/points/vertex_attribute.ts +8 -6
  112. package/internal/stores/data_style/mesh/points/vertex_config.ts +5 -6
  113. package/internal/stores/data_style/mesh/points/visibility.ts +1 -1
  114. package/internal/stores/data_style/mesh/polygons/color.ts +6 -6
  115. package/internal/stores/data_style/mesh/polygons/opacity.ts +3 -4
  116. package/internal/stores/data_style/mesh/polygons/polygon.ts +6 -6
  117. package/internal/stores/data_style/mesh/polygons/polygon_attribute.ts +8 -6
  118. package/internal/stores/data_style/mesh/polygons/polygon_config.ts +5 -6
  119. package/internal/stores/data_style/mesh/polygons/vertex.ts +6 -6
  120. package/internal/stores/data_style/mesh/polygons/vertex_attribute.ts +8 -6
  121. package/internal/stores/data_style/mesh/polygons/vertex_config.ts +5 -6
  122. package/internal/stores/data_style/mesh/polygons/visibility.ts +1 -1
  123. package/internal/stores/data_style/mesh/polyhedra/color.ts +6 -6
  124. package/internal/stores/data_style/mesh/polyhedra/opacity.ts +3 -4
  125. package/internal/stores/data_style/mesh/polyhedra/polyhedron.ts +6 -6
  126. package/internal/stores/data_style/mesh/polyhedra/polyhedron_attribute.ts +8 -6
  127. package/internal/stores/data_style/mesh/polyhedra/polyhedron_config.ts +5 -6
  128. package/internal/stores/data_style/mesh/polyhedra/vertex.ts +6 -6
  129. package/internal/stores/data_style/mesh/polyhedra/vertex_attribute.ts +8 -6
  130. package/internal/stores/data_style/mesh/polyhedra/vertex_config.ts +5 -6
  131. package/internal/stores/data_style/mesh/polyhedra/visibility.ts +1 -1
  132. package/internal/stores/data_style/model/blocks/color.ts +6 -6
  133. package/internal/stores/data_style/model/blocks/coloring_groups.ts +2 -2
  134. package/internal/stores/data_style/model/blocks/polyhedron.ts +12 -9
  135. package/internal/stores/data_style/model/blocks/vertex.ts +12 -9
  136. package/internal/stores/data_style/model/blocks/visibility.ts +1 -1
  137. package/internal/stores/data_style/model/color.ts +10 -11
  138. package/internal/stores/data_style/model/common.ts +3 -4
  139. package/internal/stores/data_style/model/corners/color.ts +6 -6
  140. package/internal/stores/data_style/model/corners/index.ts +2 -2
  141. package/internal/stores/data_style/model/corners/vertex.ts +12 -9
  142. package/internal/stores/data_style/model/corners/visibility.ts +1 -1
  143. package/internal/stores/data_style/model/edges/component.ts +13 -13
  144. package/internal/stores/data_style/model/edges/visibility.ts +1 -1
  145. package/internal/stores/data_style/model/edges/width.ts +6 -6
  146. package/internal/stores/data_style/model/lines/color.ts +6 -6
  147. package/internal/stores/data_style/model/lines/coloring_groups.ts +2 -2
  148. package/internal/stores/data_style/model/lines/edge.ts +12 -9
  149. package/internal/stores/data_style/model/lines/vertex.ts +12 -9
  150. package/internal/stores/data_style/model/lines/visibility.ts +1 -1
  151. package/internal/stores/data_style/model/points/component.ts +17 -13
  152. package/internal/stores/data_style/model/points/index.ts +2 -2
  153. package/internal/stores/data_style/model/points/size.ts +6 -6
  154. package/internal/stores/data_style/model/points/visibility.ts +1 -1
  155. package/internal/stores/data_style/model/surfaces/color.ts +6 -6
  156. package/internal/stores/data_style/model/surfaces/coloring_groups.ts +2 -2
  157. package/internal/stores/data_style/model/surfaces/polygon.ts +12 -9
  158. package/internal/stores/data_style/model/surfaces/vertex.ts +12 -9
  159. package/internal/stores/data_style/model/surfaces/visibility.ts +1 -1
  160. package/internal/stores/data_style/model/visibility.ts +1 -1
  161. package/internal/stores/data_style/scene.ts +5 -5
  162. package/internal/stores/data_style/time_step.ts +3 -2
  163. package/internal/stores/data_style/types.ts +3 -4
  164. package/internal/stores/hybrid_viewer/camera.ts +1 -1
  165. package/internal/stores/hybrid_viewer/filters.ts +2 -2
  166. package/internal/stores/hybrid_viewer/highlight.ts +2 -1
  167. package/internal/stores/hybrid_viewer/scene.ts +3 -3
  168. package/package.json +2 -1
  169. package/shared/utils/response_handlers/load.ts +19 -11
  170. package/app/types/style.ts +0 -13
@@ -1,11 +1,7 @@
1
1
  // oxlint-disable eslint/max-lines
2
2
  import type {
3
3
  AttributeColorMap,
4
- AttributeItem,
5
- AttributeName,
6
4
  AttributeRange,
7
- AttributeRangeMaximum,
8
- AttributeRangeMinimum,
9
5
  AttributeTimeStep,
10
6
  } from "@ogw_front/types/attribute";
11
7
  import type {
@@ -14,8 +10,15 @@ import type {
14
10
  AttributeStoredConfig,
15
11
  ValidAttributeInput,
16
12
  } from "@ogw_internal/stores/data_style/attribute_types";
13
+ import type {
14
+ AttributeItem,
15
+ AttributeName,
16
+ AttributeRangeMaximum,
17
+ AttributeRangeMinimum,
18
+ ColorRGBA,
19
+ } from "@geode/opengeodeweb-viewer/schema_types";
17
20
  import type { BlockId, ModelId } from "@ogw_front/types/identifiers";
18
- import { DEFAULT_NO_DATA_COLOR, type RGBAColor } from "@ogw_front/utils/default_styles/constants";
21
+ import { DEFAULT_NO_DATA_COLOR } from "@ogw_front/utils/default_styles/constants";
19
22
  import { defaultAttributeStoredConfig } from "@ogw_internal/stores/data_style/attribute_default";
20
23
  import { isAttributeValid } from "@ogw_internal/stores/data_style/attribute_valid";
21
24
  // Third party imports
@@ -86,11 +89,11 @@ interface UseModelBlocksVertexAttributeReturn {
86
89
  blockIds: BlockId[],
87
90
  colorMap: AttributeColorMap | undefined,
88
91
  ) => Promise<unknown>;
89
- modelBlocksVertexAttributeNoDataColor: (modelId: ModelId, blockId?: BlockId) => RGBAColor;
92
+ modelBlocksVertexAttributeNoDataColor: (modelId: ModelId, blockId?: BlockId) => ColorRGBA;
90
93
  setModelBlocksVertexAttributeNoDataColor: (
91
94
  modelId: ModelId,
92
95
  blockIds: BlockId[],
93
- no_data_color: RGBAColor,
96
+ no_data_color: ColorRGBA,
94
97
  ) => Promise<unknown>;
95
98
  }
96
99
 
@@ -175,7 +178,7 @@ function useModelBlocksVertexAttributeGetters(
175
178
  const storedConfig = modelBlocksVertexAttributeStoredConfig(modelId, blockId, name, item);
176
179
  return storedConfig.colorMap;
177
180
  }
178
- function modelBlocksVertexAttributeNoDataColor(modelId: ModelId, blockId?: BlockId): RGBAColor {
181
+ function modelBlocksVertexAttributeNoDataColor(modelId: ModelId, blockId?: BlockId): ColorRGBA {
179
182
  const name = modelBlocksVertexAttributeName(modelId, blockId);
180
183
  const item = modelBlocksVertexAttributeItem(modelId, blockId);
181
184
  const storedConfig = modelBlocksVertexAttributeStoredConfig(modelId, blockId, name, item);
@@ -401,7 +404,7 @@ function useModelBlocksVertexAttribute(): UseModelBlocksVertexAttributeReturn {
401
404
  async function setModelBlocksVertexAttributeNoDataColor(
402
405
  modelId: ModelId,
403
406
  blockIds: BlockId[],
404
- no_data_color: RGBAColor,
407
+ no_data_color: ColorRGBA,
405
408
  ): Promise<unknown> {
406
409
  const name = modelBlocksVertexAttributeName(modelId, blockIds[0]);
407
410
  const item = modelBlocksVertexAttributeItem(modelId, blockIds[0]);
@@ -1,5 +1,5 @@
1
1
  import type { BlockId, ModelId } from "@ogw_front/types/identifiers";
2
- import type { Visibility } from "@ogw_front/types/style";
2
+ import type { Visibility } from "@geode/opengeodeweb-viewer/schema_types";
3
3
  import { useModelBlocksCommonStyle } from "./common";
4
4
  import { useModelCommonStyle } from "@ogw_internal/stores/data_style/model/common";
5
5
  import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_typed_schemas.js";
@@ -1,12 +1,11 @@
1
+ import type { AttributeColorMap, AttributeRange } from "@ogw_front/types/attribute";
1
2
  import type {
2
- AttributeColorMap,
3
3
  AttributeName,
4
- AttributeRange,
5
4
  AttributeRangeMaximum,
6
5
  AttributeRangeMinimum,
7
- } from "@ogw_front/types/attribute";
6
+ ColorRGBA,
7
+ } from "@geode/opengeodeweb-viewer/schema_types";
8
8
  import type { ModelId } from "@ogw_front/types/identifiers";
9
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
10
9
  // oxlint-disable eslint/max-lines
11
10
  import type { StyleValues } from "@ogw_internal/stores/data_style/types.js";
12
11
  import { dispatchToComponentTypes } from "./visibility";
@@ -85,14 +84,14 @@ async function applyAttributeAccessors(
85
84
 
86
85
  // oxlint-disable-next-line max-lines-per-function
87
86
  function useModelColorStyle(componentStyleFunctions: ComponentStyleFunctions): {
88
- getModelColor: (modelId: ModelId) => RGBAColor | undefined;
87
+ getModelColor: (modelId: ModelId) => ColorRGBA | undefined;
89
88
  getModelActiveColoring: (modelId: ModelId) => unknown;
90
89
  getModelComponentColor: (modelId: ModelId, componentId: string) => unknown;
91
90
  getModelComponentEffectiveColor: (modelId: ModelId, componentId: string, type: string) => unknown;
92
91
  getModelComponentActiveColoring: (modelId: ModelId, componentId: string) => unknown;
93
92
  modelComponentTypeColor: (modelId: ModelId, type: string) => unknown;
94
93
  getModelComponentTypeActiveColoring: (modelId: ModelId, type: string) => unknown;
95
- setModelComponentTypeColor: (modelId: ModelId, type: string, color: RGBAColor) => Promise<void>;
94
+ setModelComponentTypeColor: (modelId: ModelId, type: string, color: ColorRGBA) => Promise<void>;
96
95
  setModelComponentTypeActiveColoring: (
97
96
  modelId: ModelId,
98
97
  type: string,
@@ -106,7 +105,7 @@ function useModelColorStyle(componentStyleFunctions: ComponentStyleFunctions): {
106
105
  setModelComponentsColor: (
107
106
  modelId: ModelId,
108
107
  componentIds: string[],
109
- color: RGBAColor | undefined,
108
+ color: ColorRGBA | undefined,
110
109
  activeColoring?: string,
111
110
  ) => Promise<unknown[]>;
112
111
  } {
@@ -243,7 +242,7 @@ function useModelColorStyle(componentStyleFunctions: ComponentStyleFunctions): {
243
242
  async function setModelComponentsColor(
244
243
  modelId: ModelId,
245
244
  componentIds: string[],
246
- color: RGBAColor | undefined,
245
+ color: ColorRGBA | undefined,
247
246
  activeColoring = "constant",
248
247
  ): Promise<unknown[]> {
249
248
  await modelCommonStyle.mutateComponentStyles(modelId, componentIds, {
@@ -266,7 +265,7 @@ function useModelColorStyle(componentStyleFunctions: ComponentStyleFunctions): {
266
265
  async function setModelComponentTypeColor(
267
266
  modelId: ModelId,
268
267
  type: string,
269
- color: RGBAColor,
268
+ color: ColorRGBA,
270
269
  ): Promise<void> {
271
270
  await modelCommonStyle.mutateModelComponentTypeStyle(modelId, type, {
272
271
  coloring: {
@@ -337,10 +336,10 @@ function useModelColorStyle(componentStyleFunctions: ComponentStyleFunctions): {
337
336
  }
338
337
  await applyAttributeAccessors(modelId, [componentId], componentId, attributeFunctions);
339
338
  }
340
- function getModelColor(modelId: ModelId): RGBAColor | undefined {
339
+ function getModelColor(modelId: ModelId): ColorRGBA | undefined {
341
340
  // oxlint-disable-next-line no-unsafe-type-assertion -- coloring shape is defined by the data style schema.
342
341
  return (dataStyleState.getStyle(modelId).coloring as StyleValues).constant as
343
- | RGBAColor
342
+ | ColorRGBA
344
343
  | undefined;
345
344
  }
346
345
  function getModelActiveColoring(modelId: ModelId): unknown {
@@ -1,3 +1,4 @@
1
+ import type { ColorRGBA, Visibility } from "@geode/opengeodeweb-viewer/schema_types";
1
2
  import {
2
3
  type ComponentStyleUpdate,
3
4
  useModelComponentStyleMutations,
@@ -6,9 +7,7 @@ import {
6
7
  } from "./common_mutations";
7
8
  import type { ModelId } from "@ogw_front/types/identifiers";
8
9
  import type { ParamsOf } from "@ogw_shared/utils/types.js";
9
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
10
10
  import type { StyleValues } from "@ogw_internal/stores/data_style/types.js";
11
- import type { Visibility } from "@ogw_front/types/style";
12
11
  import { useDataStore } from "@ogw_front/stores/data";
13
12
  import { useViewerStore } from "@ogw_front/stores/viewer";
14
13
  import type viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_typed_schemas.js";
@@ -49,7 +48,7 @@ interface UseModelCommonStyleReturn {
49
48
  setModelTypeColor: (
50
49
  modelId: ModelId,
51
50
  component_ids: string[],
52
- color: RGBAColor | undefined,
51
+ color: ColorRGBA | undefined,
53
52
  schema: ModelColorSchema,
54
53
  activeColoring?: string,
55
54
  collectionId?: string,
@@ -72,7 +71,7 @@ export function useModelCommonStyle(): UseModelCommonStyleReturn {
72
71
  async function setModelTypeColor(
73
72
  modelId: ModelId,
74
73
  component_ids: string[],
75
- color: RGBAColor | undefined,
74
+ color: ColorRGBA | undefined,
76
75
  schema: ModelColorSchema,
77
76
  activeColoring = "constant",
78
77
  collectionId?: string,
@@ -1,5 +1,5 @@
1
1
  import type { CornerId, ModelId } from "@ogw_front/types/identifiers";
2
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
2
+ import type { ColorRGBA } from "@geode/opengeodeweb-viewer/schema_types";
3
3
  import type { StyleValues } from "@ogw_internal/stores/data_style/types.js";
4
4
  import { isAttributeValid } from "@ogw_internal/stores/data_style/attribute_valid";
5
5
  import { useDataStore } from "@ogw_front/stores/data";
@@ -14,12 +14,12 @@ interface ModelCornersColorApi {
14
14
  setModelCornersColor: (
15
15
  modelId: ModelId,
16
16
  corners_ids: CornerId[],
17
- color: RGBAColor | undefined,
17
+ color: ColorRGBA | undefined,
18
18
  activeColoring?: string,
19
19
  collectionId?: string,
20
20
  ) => Promise<unknown>;
21
21
  modelCornerColoring: (modelId: ModelId, corner_id?: CornerId) => StyleValues;
22
- modelCornerColor: (modelId: ModelId, corner_id?: CornerId) => RGBAColor | undefined;
22
+ modelCornerColor: (modelId: ModelId, corner_id?: CornerId) => ColorRGBA | undefined;
23
23
  modelCornerActiveColoring: (modelId: ModelId, corner_id?: CornerId) => unknown;
24
24
  setModelCornersActiveColoring: (
25
25
  modelId: ModelId,
@@ -40,15 +40,15 @@ export function useModelCornersColor(): ModelCornersColorApi {
40
40
  return modelCornersCommonStyle.modelCornerStyle(modelId, corner_id).coloring as StyleValues;
41
41
  }
42
42
 
43
- function modelCornerColor(modelId: ModelId, corner_id?: CornerId): RGBAColor | undefined {
43
+ function modelCornerColor(modelId: ModelId, corner_id?: CornerId): ColorRGBA | undefined {
44
44
  // oxlint-disable-next-line no-unsafe-type-assertion -- coloring.constant shape is defined by the data style schema.
45
- return modelCornerColoring(modelId, corner_id).constant as RGBAColor | undefined;
45
+ return modelCornerColoring(modelId, corner_id).constant as ColorRGBA | undefined;
46
46
  }
47
47
 
48
48
  async function setModelCornersColor(
49
49
  modelId: ModelId,
50
50
  corners_ids: CornerId[],
51
- color: RGBAColor | undefined,
51
+ color: ColorRGBA | undefined,
52
52
  activeColoring = "constant",
53
53
  collectionId?: string,
54
54
  ): Promise<unknown> {
@@ -1,5 +1,5 @@
1
1
  import type { CornerId, ModelId } from "@ogw_front/types/identifiers";
2
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
2
+ import type { ColorRGBA } from "@geode/opengeodeweb-viewer/schema_types";
3
3
  import type { ValidAttributeInput } from "@ogw_internal/stores/data_style/attribute_types";
4
4
  import { isAttributeValid } from "@ogw_internal/stores/data_style/attribute_valid";
5
5
  import { useDataStore } from "@ogw_front/stores/data";
@@ -9,7 +9,7 @@ import { useModelCornersVertexAttribute } from "./vertex";
9
9
  import { useModelCornersVisibility } from "./visibility";
10
10
 
11
11
  interface ColorGroup {
12
- color: RGBAColor | undefined;
12
+ color: ColorRGBA | undefined;
13
13
  corners_ids: CornerId[];
14
14
  }
15
15
 
@@ -1,11 +1,7 @@
1
1
  // oxlint-disable eslint/max-lines
2
2
  import type {
3
3
  AttributeColorMap,
4
- AttributeItem,
5
- AttributeName,
6
4
  AttributeRange,
7
- AttributeRangeMaximum,
8
- AttributeRangeMinimum,
9
5
  AttributeTimeStep,
10
6
  } from "@ogw_front/types/attribute";
11
7
  import type {
@@ -14,8 +10,15 @@ import type {
14
10
  AttributeStoredConfig,
15
11
  ValidAttributeInput,
16
12
  } from "@ogw_internal/stores/data_style/attribute_types";
13
+ import type {
14
+ AttributeItem,
15
+ AttributeName,
16
+ AttributeRangeMaximum,
17
+ AttributeRangeMinimum,
18
+ ColorRGBA,
19
+ } from "@geode/opengeodeweb-viewer/schema_types";
17
20
  import type { CornerId, ModelId } from "@ogw_front/types/identifiers";
18
- import { DEFAULT_NO_DATA_COLOR, type RGBAColor } from "@ogw_front/utils/default_styles/constants";
21
+ import { DEFAULT_NO_DATA_COLOR } from "@ogw_front/utils/default_styles/constants";
19
22
  import { defaultAttributeStoredConfig } from "@ogw_internal/stores/data_style/attribute_default";
20
23
  import { isAttributeValid } from "@ogw_internal/stores/data_style/attribute_valid";
21
24
  // Third party imports
@@ -76,8 +79,8 @@ interface ModelCornersVertexAttributeApi {
76
79
  maximum: AttributeRangeMaximum,
77
80
  ) => Promise<void>;
78
81
  setModelCornersVertexAttributeColorMap: IdsFn<string | undefined>;
79
- modelCornersVertexAttributeNoDataColor: (modelId: ModelId, cornerId?: CornerId) => RGBAColor;
80
- setModelCornersVertexAttributeNoDataColor: IdsFn<RGBAColor>;
82
+ modelCornersVertexAttributeNoDataColor: (modelId: ModelId, cornerId?: CornerId) => ColorRGBA;
83
+ setModelCornersVertexAttributeNoDataColor: IdsFn<ColorRGBA>;
81
84
  }
82
85
 
83
86
  type ModelCornersVertexAttributeGetters = Pick<
@@ -167,7 +170,7 @@ function useModelCornersVertexAttributeGetters(
167
170
  function modelCornersVertexAttributeNoDataColor(
168
171
  modelId: ModelId,
169
172
  cornerId?: CornerId,
170
- ): RGBAColor {
173
+ ): ColorRGBA {
171
174
  const name = modelCornersVertexAttributeName(modelId, cornerId);
172
175
  const item = modelCornersVertexAttributeItem(modelId, cornerId);
173
176
  return modelCornersVertexAttributeStoredConfig(modelId, cornerId, name, item).no_data_color;
@@ -376,7 +379,7 @@ function useModelCornersVertexAttribute(): ModelCornersVertexAttributeApi {
376
379
  async function setModelCornersVertexAttributeNoDataColor(
377
380
  modelId: ModelId,
378
381
  cornerIds: CornerId[],
379
- no_data_color: RGBAColor,
382
+ no_data_color: ColorRGBA,
380
383
  ): Promise<void> {
381
384
  const name = modelCornersVertexAttributeName(modelId, cornerIds[0]);
382
385
  const item = modelCornersVertexAttributeItem(modelId, cornerIds[0]);
@@ -1,5 +1,5 @@
1
1
  import type { CornerId, ModelId } from "@ogw_front/types/identifiers";
2
- import type { Visibility } from "@ogw_front/types/style";
2
+ import type { Visibility } from "@geode/opengeodeweb-viewer/schema_types";
3
3
  import { useModelCommonStyle } from "@ogw_internal/stores/data_style/model/common";
4
4
  import { useModelCornersCommonStyle } from "./common";
5
5
  import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_typed_schemas.js";
@@ -1,12 +1,14 @@
1
1
  // oxlint-disable eslint/max-lines
2
+ import type { AttributeColorMap, AttributeRange } from "@ogw_front/types/attribute";
2
3
  import type {
3
- AttributeColorMap,
4
4
  AttributeItem,
5
5
  AttributeName,
6
- AttributeRange,
7
6
  AttributeRangeMaximum,
8
7
  AttributeRangeMinimum,
9
- } from "@ogw_front/types/attribute";
8
+ ColorRGBA,
9
+ EdgeWidth,
10
+ Visibility,
11
+ } from "@geode/opengeodeweb-viewer/schema_types";
10
12
  import type {
11
13
  AttributeState,
12
14
  AttributeStoredConfig,
@@ -15,9 +17,7 @@ import {
15
17
  EDGES_DEFAULT_COLOR,
16
18
  EDGES_DEFAULT_VISIBILITY,
17
19
  EDGES_DEFAULT_WIDTH,
18
- type RGBAColor,
19
20
  } from "@ogw_front/utils/default_styles/constants";
20
- import type { Visibility, Width } from "@ogw_front/types/style";
21
21
  import type { ModelId } from "@ogw_front/types/identifiers";
22
22
  import { defaultAttributeStoredConfig } from "@ogw_internal/stores/data_style/attribute_default";
23
23
  import { getRGBPointsFromPreset } from "@ogw_front/utils/colormap";
@@ -50,10 +50,10 @@ type EdgesRequestSchema =
50
50
 
51
51
  interface EdgesStyle {
52
52
  visibility?: Visibility;
53
- width?: Width;
53
+ width?: EdgeWidth;
54
54
  coloring?: {
55
55
  active?: string;
56
- constant?: RGBAColor;
56
+ constant?: ColorRGBA;
57
57
  vertex?: AttributeState;
58
58
  };
59
59
  }
@@ -100,11 +100,11 @@ function useModelComponentEdgesStyle(type: EdgesComponentType) {
100
100
  return edgesStyle(modelId, componentId).visibility ?? EDGES_DEFAULT_VISIBILITY;
101
101
  }
102
102
 
103
- function edgesWidth(modelId: ModelId, componentId?: string): Width {
103
+ function edgesWidth(modelId: ModelId, componentId?: string): EdgeWidth {
104
104
  return edgesStyle(modelId, componentId).width ?? EDGES_DEFAULT_WIDTH;
105
105
  }
106
106
 
107
- function edgesColor(modelId: ModelId, componentId?: string): RGBAColor {
107
+ function edgesColor(modelId: ModelId, componentId?: string): ColorRGBA {
108
108
  return edgesStyle(modelId, componentId).coloring?.constant ?? EDGES_DEFAULT_COLOR;
109
109
  }
110
110
 
@@ -150,7 +150,7 @@ function useModelComponentEdgesStyle(type: EdgesComponentType) {
150
150
  return storedConfig(modelId, componentId).colorMap;
151
151
  }
152
152
 
153
- function vertexAttributeNoDataColor(modelId: ModelId, componentId?: string): RGBAColor {
153
+ function vertexAttributeNoDataColor(modelId: ModelId, componentId?: string): ColorRGBA {
154
154
  return storedConfig(modelId, componentId).no_data_color;
155
155
  }
156
156
 
@@ -213,7 +213,7 @@ function useModelComponentEdgesStyle(type: EdgesComponentType) {
213
213
  async function setWidth(
214
214
  modelId: ModelId,
215
215
  componentIds: string[],
216
- width: Width,
216
+ width: EdgeWidth,
217
217
  ): Promise<unknown> {
218
218
  const result = await requestEdges(modelId, componentIds, schemas.width, {
219
219
  width,
@@ -225,7 +225,7 @@ function useModelComponentEdgesStyle(type: EdgesComponentType) {
225
225
  async function setColor(
226
226
  modelId: ModelId,
227
227
  componentIds: string[],
228
- color: RGBAColor,
228
+ color: ColorRGBA,
229
229
  ): Promise<unknown> {
230
230
  const result = await requestEdges(modelId, componentIds, schemas.color, {
231
231
  color,
@@ -340,7 +340,7 @@ function useModelComponentEdgesStyle(type: EdgesComponentType) {
340
340
  async function setVertexAttributeNoDataColor(
341
341
  modelId: ModelId,
342
342
  componentIds: string[],
343
- no_data_color: RGBAColor,
343
+ no_data_color: ColorRGBA,
344
344
  ): Promise<unknown> {
345
345
  await mutateStoredConfig(modelId, componentIds, { no_data_color });
346
346
  const result = await applyVertexAttribute(modelId, componentIds);
@@ -6,7 +6,7 @@ import {
6
6
  useModelComponentEdgesStyle,
7
7
  } from "@ogw_internal/stores/data_style/model/edges/component";
8
8
  import type { ModelId } from "@ogw_front/types/identifiers";
9
- import type { Visibility } from "@ogw_front/types/style";
9
+ import type { Visibility } from "@geode/opengeodeweb-viewer/schema_types";
10
10
  import { useModelEdgesCommonStyle } from "./common";
11
11
  import { useModelEdgesWidthStyle } from "./width";
12
12
  import { useViewerStore } from "@ogw_front/stores/viewer";
@@ -6,8 +6,8 @@ import {
6
6
  EDGES_COMPONENT_TYPES,
7
7
  useModelComponentEdgesStyle,
8
8
  } from "@ogw_internal/stores/data_style/model/edges/component";
9
+ import type { EdgeWidth } from "@geode/opengeodeweb-viewer/schema_types";
9
10
  import type { ModelId } from "@ogw_front/types/identifiers";
10
- import type { Width } from "@ogw_front/types/style";
11
11
  import { useModelEdgesCommonStyle } from "./common";
12
12
  import { useViewerStore } from "@ogw_front/stores/viewer";
13
13
 
@@ -15,8 +15,8 @@ import { useViewerStore } from "@ogw_front/stores/viewer";
15
15
  const schema = viewer_schemas.opengeodeweb_viewer.model.edges.width;
16
16
 
17
17
  export function useModelEdgesWidthStyle(): {
18
- modelEdgesWidth: (modelId: ModelId) => Width | undefined;
19
- setModelEdgesWidth: (modelId: ModelId, width: Width) => Promise<unknown>;
18
+ modelEdgesWidth: (modelId: ModelId) => EdgeWidth | undefined;
19
+ setModelEdgesWidth: (modelId: ModelId, width: EdgeWidth) => Promise<unknown>;
20
20
  } {
21
21
  const viewerStore = useViewerStore();
22
22
  const modelEdgesCommonStyle = useModelEdgesCommonStyle();
@@ -24,12 +24,12 @@ export function useModelEdgesWidthStyle(): {
24
24
  useModelComponentEdgesStyle(type),
25
25
  );
26
26
 
27
- function modelEdgesWidth(modelId: ModelId): Width | undefined {
27
+ function modelEdgesWidth(modelId: ModelId): EdgeWidth | undefined {
28
28
  // oxlint-disable-next-line no-unsafe-type-assertion -- edges style values are dynamically typed at runtime.
29
- return modelEdgesCommonStyle.modelEdgesStyle(modelId).width as Width | undefined;
29
+ return modelEdgesCommonStyle.modelEdgesStyle(modelId).width as EdgeWidth | undefined;
30
30
  }
31
31
 
32
- async function setModelEdgesWidth(modelId: ModelId, width: Width): Promise<unknown> {
32
+ async function setModelEdgesWidth(modelId: ModelId, width: EdgeWidth): Promise<unknown> {
33
33
  const params = { id: modelId, width };
34
34
  const result = await viewerStore.request(
35
35
  {
@@ -1,5 +1,5 @@
1
1
  import type { LineId, ModelId } from "@ogw_front/types/identifiers";
2
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
2
+ import type { ColorRGBA } from "@geode/opengeodeweb-viewer/schema_types";
3
3
  import type { StyleValues } from "@ogw_internal/stores/data_style/types.js";
4
4
  import { isAttributeValid } from "@ogw_internal/stores/data_style/attribute_valid";
5
5
  import { useDataStore } from "@ogw_front/stores/data";
@@ -15,12 +15,12 @@ export function useModelLinesColor(): {
15
15
  setModelLinesColor: (
16
16
  modelId: ModelId,
17
17
  lines_ids: LineId[],
18
- color: RGBAColor | undefined,
18
+ color: ColorRGBA | undefined,
19
19
  activeColoring?: string,
20
20
  collectionId?: string,
21
21
  ) => Promise<unknown>;
22
22
  modelLineColoring: (modelId: ModelId, line_id?: LineId) => StyleValues;
23
- modelLineColor: (modelId: ModelId, line_id?: LineId) => RGBAColor | undefined;
23
+ modelLineColor: (modelId: ModelId, line_id?: LineId) => ColorRGBA | undefined;
24
24
  modelLineActiveColoring: (modelId: ModelId, line_id?: LineId) => unknown;
25
25
  setModelLinesActiveColoring: (
26
26
  modelId: ModelId,
@@ -40,15 +40,15 @@ export function useModelLinesColor(): {
40
40
  return modelLinesCommonStyle.modelLineStyle(modelId, line_id).coloring as StyleValues;
41
41
  }
42
42
 
43
- function modelLineColor(modelId: ModelId, line_id?: LineId): RGBAColor | undefined {
43
+ function modelLineColor(modelId: ModelId, line_id?: LineId): ColorRGBA | undefined {
44
44
  // oxlint-disable-next-line no-unsafe-type-assertion -- coloring.constant shape is defined by the data style schema.
45
- return modelLineColoring(modelId, line_id).constant as RGBAColor | undefined;
45
+ return modelLineColoring(modelId, line_id).constant as ColorRGBA | undefined;
46
46
  }
47
47
 
48
48
  async function setModelLinesColor(
49
49
  modelId: ModelId,
50
50
  lines_ids: LineId[],
51
- color: RGBAColor | undefined,
51
+ color: ColorRGBA | undefined,
52
52
  activeColoring = "constant",
53
53
  collectionId?: string,
54
54
  ): Promise<unknown> {
@@ -1,9 +1,9 @@
1
+ import type { ColorRGBA } from "@geode/opengeodeweb-viewer/schema_types";
1
2
  import type { LineId } from "@ogw_front/types/identifiers";
2
- import type { RGBAColor } from "@ogw_front/utils/default_styles/constants";
3
3
  import type { ValidAttributeInput } from "@ogw_internal/stores/data_style/attribute_types";
4
4
 
5
5
  interface ColorGroup {
6
- color: RGBAColor | undefined;
6
+ color: ColorRGBA | undefined;
7
7
  lines_ids: LineId[];
8
8
  }
9
9
 
@@ -1,11 +1,7 @@
1
1
  // oxlint-disable eslint/max-lines
2
2
  import type {
3
3
  AttributeColorMap,
4
- AttributeItem,
5
- AttributeName,
6
4
  AttributeRange,
7
- AttributeRangeMaximum,
8
- AttributeRangeMinimum,
9
5
  AttributeTimeStep,
10
6
  } from "@ogw_front/types/attribute";
11
7
  import type {
@@ -14,8 +10,15 @@ import type {
14
10
  AttributeStoredConfig,
15
11
  ValidAttributeInput,
16
12
  } from "@ogw_internal/stores/data_style/attribute_types";
17
- import { DEFAULT_NO_DATA_COLOR, type RGBAColor } from "@ogw_front/utils/default_styles/constants";
13
+ import type {
14
+ AttributeItem,
15
+ AttributeName,
16
+ AttributeRangeMaximum,
17
+ AttributeRangeMinimum,
18
+ ColorRGBA,
19
+ } from "@geode/opengeodeweb-viewer/schema_types";
18
20
  import type { LineId, ModelId } from "@ogw_front/types/identifiers";
21
+ import { DEFAULT_NO_DATA_COLOR } from "@ogw_front/utils/default_styles/constants";
19
22
  import { defaultAttributeStoredConfig } from "@ogw_internal/stores/data_style/attribute_default";
20
23
  import { isAttributeValid } from "@ogw_internal/stores/data_style/attribute_valid";
21
24
  // Third party imports
@@ -83,11 +86,11 @@ interface UseModelLinesEdgeAttributeReturn {
83
86
  lineIds: LineId[],
84
87
  colorMap: AttributeColorMap | undefined,
85
88
  ) => Promise<unknown>;
86
- modelLinesEdgeAttributeNoDataColor: (modelId: ModelId, lineId?: LineId) => RGBAColor;
89
+ modelLinesEdgeAttributeNoDataColor: (modelId: ModelId, lineId?: LineId) => ColorRGBA;
87
90
  setModelLinesEdgeAttributeNoDataColor: (
88
91
  modelId: ModelId,
89
92
  lineIds: LineId[],
90
- no_data_color: RGBAColor,
93
+ no_data_color: ColorRGBA,
91
94
  ) => Promise<unknown>;
92
95
  }
93
96
 
@@ -171,7 +174,7 @@ function useModelLinesEdgeAttributeGetters(
171
174
  const storedConfig = modelLinesEdgeAttributeStoredConfig(modelId, lineId, name, item);
172
175
  return storedConfig.colorMap;
173
176
  }
174
- function modelLinesEdgeAttributeNoDataColor(modelId: ModelId, lineId?: LineId): RGBAColor {
177
+ function modelLinesEdgeAttributeNoDataColor(modelId: ModelId, lineId?: LineId): ColorRGBA {
175
178
  const name = modelLinesEdgeAttributeName(modelId, lineId);
176
179
  const item = modelLinesEdgeAttributeItem(modelId, lineId);
177
180
  const storedConfig = modelLinesEdgeAttributeStoredConfig(modelId, lineId, name, item);
@@ -395,7 +398,7 @@ function useModelLinesEdgeAttribute(): UseModelLinesEdgeAttributeReturn {
395
398
  async function setModelLinesEdgeAttributeNoDataColor(
396
399
  modelId: ModelId,
397
400
  lineIds: LineId[],
398
- no_data_color: RGBAColor,
401
+ no_data_color: ColorRGBA,
399
402
  ): Promise<unknown> {
400
403
  const name = modelLinesEdgeAttributeName(modelId, lineIds[0]);
401
404
  const item = modelLinesEdgeAttributeItem(modelId, lineIds[0]);
@@ -1,11 +1,7 @@
1
1
  // oxlint-disable eslint/max-lines
2
2
  import type {
3
3
  AttributeColorMap,
4
- AttributeItem,
5
- AttributeName,
6
4
  AttributeRange,
7
- AttributeRangeMaximum,
8
- AttributeRangeMinimum,
9
5
  AttributeTimeStep,
10
6
  } from "@ogw_front/types/attribute";
11
7
  import type {
@@ -14,8 +10,15 @@ import type {
14
10
  AttributeStoredConfig,
15
11
  ValidAttributeInput,
16
12
  } from "@ogw_internal/stores/data_style/attribute_types";
17
- import { DEFAULT_NO_DATA_COLOR, type RGBAColor } from "@ogw_front/utils/default_styles/constants";
13
+ import type {
14
+ AttributeItem,
15
+ AttributeName,
16
+ AttributeRangeMaximum,
17
+ AttributeRangeMinimum,
18
+ ColorRGBA,
19
+ } from "@geode/opengeodeweb-viewer/schema_types";
18
20
  import type { LineId, ModelId } from "@ogw_front/types/identifiers";
21
+ import { DEFAULT_NO_DATA_COLOR } from "@ogw_front/utils/default_styles/constants";
19
22
  import { defaultAttributeStoredConfig } from "@ogw_internal/stores/data_style/attribute_default";
20
23
  import { isAttributeValid } from "@ogw_internal/stores/data_style/attribute_valid";
21
24
  // Third party imports
@@ -83,11 +86,11 @@ interface UseModelLinesVertexAttributeReturn {
83
86
  lineIds: LineId[],
84
87
  colorMap: AttributeColorMap | undefined,
85
88
  ) => Promise<unknown>;
86
- modelLinesVertexAttributeNoDataColor: (modelId: ModelId, lineId?: LineId) => RGBAColor;
89
+ modelLinesVertexAttributeNoDataColor: (modelId: ModelId, lineId?: LineId) => ColorRGBA;
87
90
  setModelLinesVertexAttributeNoDataColor: (
88
91
  modelId: ModelId,
89
92
  lineIds: LineId[],
90
- no_data_color: RGBAColor,
93
+ no_data_color: ColorRGBA,
91
94
  ) => Promise<unknown>;
92
95
  }
93
96
 
@@ -172,7 +175,7 @@ function useModelLinesVertexAttributeGetters(
172
175
  const storedConfig = modelLinesVertexAttributeStoredConfig(modelId, lineId, name, item);
173
176
  return storedConfig.colorMap;
174
177
  }
175
- function modelLinesVertexAttributeNoDataColor(modelId: ModelId, lineId?: LineId): RGBAColor {
178
+ function modelLinesVertexAttributeNoDataColor(modelId: ModelId, lineId?: LineId): ColorRGBA {
176
179
  const name = modelLinesVertexAttributeName(modelId, lineId);
177
180
  const item = modelLinesVertexAttributeItem(modelId, lineId);
178
181
  const storedConfig = modelLinesVertexAttributeStoredConfig(modelId, lineId, name, item);
@@ -396,7 +399,7 @@ function useModelLinesVertexAttribute(): UseModelLinesVertexAttributeReturn {
396
399
  async function setModelLinesVertexAttributeNoDataColor(
397
400
  modelId: ModelId,
398
401
  lineIds: LineId[],
399
- no_data_color: RGBAColor,
402
+ no_data_color: ColorRGBA,
400
403
  ): Promise<unknown> {
401
404
  const name = modelLinesVertexAttributeName(modelId, lineIds[0]);
402
405
  const item = modelLinesVertexAttributeItem(modelId, lineIds[0]);
@@ -1,5 +1,5 @@
1
1
  import type { LineId, ModelId } from "@ogw_front/types/identifiers";
2
- import type { Visibility } from "@ogw_front/types/style";
2
+ import type { Visibility } from "@geode/opengeodeweb-viewer/schema_types";
3
3
  import { useModelCommonStyle } from "@ogw_internal/stores/data_style/model/common";
4
4
  import { useModelLinesCommonStyle } from "./common";
5
5
  import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_typed_schemas.js";