Skip to content

Commit

Permalink
Update default style.
Browse files Browse the repository at this point in the history
  • Loading branch information
josephbirkner committed Aug 20, 2024
1 parent a7795fa commit f819856
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 7 deletions.
42 changes: 39 additions & 3 deletions config/styles/default-style.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,51 @@
name: DefaultStyle
version: 1.0
options:
- label: Show Meshes/Polygons
id: showMesh
- label: Show Points
id: showPoint
- label: Show Lines
id: showLine

rules:
# Normal styles
- geometry: ["mesh", "polygon"]
filter: "showMesh"
color: teal
opacity: 0.8
- geometry: ["point", "line"]
offset: [0, 0, -0.5]
- geometry: ["point"]
filter: "showPoint"
color: moccasin
opacity: 1.0
width: 1.0
- geometry: ["point", "line", "mesh", "polygon"]
- geometry: ["line"]
filter: "showLine"
color: moccasin
opacity: 1.0
width: 5.0

# Hover/Selection styles
- geometry: ["mesh", "polygon"]
color: yellow
opacity: 1.0
width: 4.0
mode: hover
offset: [0, 0, -0.5]
- geometry: ["point", "line"]
color: yellow
opacity: 1.0
width: 4.0
mode: hover
- geometry: ["mesh", "polygon"]
color: red
opacity: 1.0
width: 4.0
mode: selection
offset: [0, 0, -0.5]
- geometry: ["point", "line"]
color: red
opacity: 1.0
width: 4.0
mode: highlight
mode: selection
7 changes: 3 additions & 4 deletions erdblick_app/app/map.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -711,13 +711,12 @@ export class MapService {
return;
}

if (!featureWrappers.length) {
return;
}

while (visualizationCollection.length) {
this.tileVisualizationDestructionTopic.next(visualizationCollection.pop());
}
if (!featureWrappers.length) {
return;
}

// Apply additional highlight styles.
const featureTile = featureWrappers[0].featureTile;
Expand Down

0 comments on commit f819856

Please sign in to comment.