Skip to content

Commit

Permalink
fixes bug with selecting strand "pieces" (domains/extensions/ends/etc…
Browse files Browse the repository at this point in the history
…) with new property `retain_strand_color_on_selection`, which was not being properly prop-drilled into those view components
  • Loading branch information
dave-doty committed Dec 22, 2023
1 parent 1840933 commit 35f4e9f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/src/view/design_main_strand_paths.dart
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ class DesignMainStrandPathsComponent extends UiComponent2<DesignMainStrandPathsP
..helices = {helix.idx: helix}.build()
..groups = {helix.group: props.groups[helix.group]}.build()
..geometry = props.geometry
..retain_strand_color_on_selection = props.retain_strand_color_on_selection
..strand_tooltip = props.strand_tooltip
..helix_svg_position = props.helix_idx_to_svg_position_map[helix.idx]
..retain_strand_color_on_selection = props.retain_strand_color_on_selection
Expand All @@ -139,6 +140,7 @@ class DesignMainStrandPathsComponent extends UiComponent2<DesignMainStrandPathsP
..is_scaffold = props.strand.is_scaffold
..selected = end_selected
..strand = strand
..retain_strand_color_on_selection = props.retain_strand_color_on_selection
..context_menu_strand = props.context_menu_strand
..moving_this_dna_end = props.moving_dna_ends && end_selected
..drawing_potential_crossover = props.drawing_potential_crossover
Expand Down Expand Up @@ -171,6 +173,7 @@ class DesignMainStrandPathsComponent extends UiComponent2<DesignMainStrandPathsP
..next_domain = next_dom
..prev_helix = prev_helix
..next_helix = next_helix
..retain_strand_color_on_selection = props.retain_strand_color_on_selection
..prev_helix_svg_position_y = props.helix_idx_to_svg_position_map[prev_helix.idx].y
..next_helix_svg_position_y = props.helix_idx_to_svg_position_map[next_helix.idx].y
..retain_strand_color_on_selection = props.retain_strand_color_on_selection
Expand All @@ -194,6 +197,7 @@ class DesignMainStrandPathsComponent extends UiComponent2<DesignMainStrandPathsP
..strand_color = strand.color
..transform = transform_of_helix(adj_helix.idx)
..selected = props.selected_extensions_in_strand.contains(ext)
..retain_strand_color_on_selection = props.retain_strand_color_on_selection
..adjacent_domain = adj_dom
..adjacent_helix = adj_helix
..strand_tooltip = props.strand_tooltip
Expand All @@ -216,6 +220,7 @@ class DesignMainStrandPathsComponent extends UiComponent2<DesignMainStrandPathsP
..is_scaffold = props.strand.is_scaffold
..selected = end_selected
..strand = strand
..retain_strand_color_on_selection = props.retain_strand_color_on_selection
..context_menu_strand = props.context_menu_strand
..moving_this_dna_end = props.moving_dna_ends && end_selected
..drawing_potential_crossover = props.drawing_potential_crossover
Expand Down Expand Up @@ -246,6 +251,7 @@ class DesignMainStrandPathsComponent extends UiComponent2<DesignMainStrandPathsP
..prev_domain = prev_ss
..next_domain = next_ss
..geometry = props.geometry
..retain_strand_color_on_selection = props.retain_strand_color_on_selection
..prev_domain_helix_svg_position_y = props.helix_idx_to_svg_position_map[prev_ss.helix].y
..next_domain_helix_svg_position_y = props.helix_idx_to_svg_position_map[next_ss.helix].y
..retain_strand_color_on_selection = props.retain_strand_color_on_selection
Expand Down

0 comments on commit 35f4e9f

Please sign in to comment.