Skip to content

Commit 88852bb

Browse files
committed
fixed bug with exporting base pair lines to SVG in translated or rotated helix groups
1 parent 9af4652 commit 88852bb

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/src/view/design_main_base_pair_lines.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ class DesignMainBasePairLinesComponent extends UiComponent2<DesignMainBasePairLi
6666
..y2 = base_svg_reverse_pos.y
6767
..className = constants.css_selector_base_pair_line
6868
..stroke = 'black'
69+
..transform = transform_str
6970
..key = 'base-pair-line-H${helix_idx}-${offset}')();
7071
helix_components.add(base_pair_line);
7172
}
7273
var helix_dom_group = (Dom.g()
73-
..transform = transform_str
7474
..className = 'base-pair-lines-components-in-helix'
7575
..key = 'base-pair-lines-components-in-helix-H${helix_idx}')(helix_components);
7676
base_pair_lines_components.add(helix_dom_group);

lib/src/view/design_main_base_pair_rectangle.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ class DesignMainBasePairRectangleComponent extends UiComponent2<DesignMainBasePa
7373
..height = base_svg_reverse_pos.y - base_svg_forward_pos.y
7474
..className = constants.css_selector_base_pair_rect
7575
..fill = 'grey'
76+
..transform = transform_str
7677
..key = 'base-pair-rect-H${helix_idx}-${offset}')();
7778
} else {
7879
base_pair_ele =
@@ -84,6 +85,7 @@ class DesignMainBasePairRectangleComponent extends UiComponent2<DesignMainBasePa
8485
..y2 = base_svg_reverse_pos.y
8586
..className = constants.css_selector_base_pair_line
8687
..stroke = 'grey'
88+
..transform = transform_str
8789
..key = 'base-pair-line-H${helix_idx}-${offset}')();
8890
}
8991

@@ -92,7 +94,6 @@ class DesignMainBasePairRectangleComponent extends UiComponent2<DesignMainBasePa
9294
last_svg_forward_pos = base_svg_forward_pos;
9395
}
9496
var helix_dom_group = (Dom.g()
95-
..transform = transform_str
9697
..className = 'base-pair-lines-components-in-helix'
9798
..key = 'base-pair-lines-components-in-helix-H${helix_idx}')(helix_components);
9899
base_pair_lines_components.add(helix_dom_group);

0 commit comments

Comments
 (0)