Skip to content

Commit

Permalink
fix: changing opacity based on segment index (#1833)
Browse files Browse the repository at this point in the history
Co-authored-by: scouser <sharukh@Sharukhs-MacBook-Pro.local>
  • Loading branch information
minimal-scouser and scouser authored Feb 18, 2025
1 parent 04fa6d1 commit 6bf44cf
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ export function getSVGStyleForSegment({
);

const activeSegmentation = getActiveSegmentation(viewportId);
const isActive = activeSegmentation?.segmentationId === segmentationId;
const isSegmentAtIndexActive =
activeSegmentation.segments[segmentIndex].active;
const isActive =
activeSegmentation?.segmentationId === segmentationId &&
isSegmentAtIndexActive;

// Merge the configurations from different levels based on its precedence
const style = segmentationStyle.getStyle({
Expand Down

0 comments on commit 6bf44cf

Please # to comment.