Skip to content

Commit a1c6883

Browse files
committed
formatting
1 parent 445f68b commit a1c6883

5 files changed

Lines changed: 25 additions & 24 deletions

File tree

lib/src/actions/actions.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,8 +725,7 @@ abstract class CrossoverOpacitySameHelixSet
725725

726726
CrossoverOpacitySameHelixSet._();
727727

728-
static Serializer<CrossoverOpacitySameHelixSet> get serializer =>
729-
_$crossoverOpacitySameHelixSetSerializer;
728+
static Serializer<CrossoverOpacitySameHelixSet> get serializer => _$crossoverOpacitySameHelixSetSerializer;
730729
}
731730

732731
abstract class SetModificationDisplayConnector

lib/src/middleware/export_svg.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,13 +333,17 @@ void _remove_end_elements_if_needed(Element svg_element, {required bool export_5
333333
if (!export_5p) {
334334
// 5' ends are <rect> elements with class five-prime-end or five-prime-end-first-substrand
335335
svg_element
336-
.querySelectorAll('.${constants.css_selector_end_5p_domain}, .${constants.css_selector_end_5p_strand}')
336+
.querySelectorAll(
337+
'.${constants.css_selector_end_5p_domain}, .${constants.css_selector_end_5p_strand}',
338+
)
337339
.forEach((e) => e.remove());
338340
}
339341
if (!export_3p) {
340342
// 3' ends are <polygon> elements with class three-prime-end or three-prime-end-last-substrand
341343
svg_element
342-
.querySelectorAll('.${constants.css_selector_end_3p_domain}, .${constants.css_selector_end_3p_strand}')
344+
.querySelectorAll(
345+
'.${constants.css_selector_end_3p_domain}, .${constants.css_selector_end_3p_strand}',
346+
)
343347
.forEach((e) => e.remove());
344348
}
345349
}

lib/src/reducers/app_ui_state_reducer.dart

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -572,12 +572,14 @@ AppUIStateStorables app_ui_state_storable_local_reducer(AppUIStateStorables stor
572572
..major_tick_width_font_size = TypedReducer<double, actions.MajorTickWidthFontSizeSet>(
573573
major_tick_width_font_size_reducer,
574574
)(storables.major_tick_width_font_size, action)
575-
..stroke_width = TypedReducer<double, actions.StrokeWidthSet>(
576-
stroke_width_reducer,
577-
)(storables.stroke_width, action)
578-
..crossover_opacity = TypedReducer<double, actions.CrossoverOpacitySet>(
579-
crossover_opacity_reducer,
580-
)(storables.crossover_opacity, action)
575+
..stroke_width = TypedReducer<double, actions.StrokeWidthSet>(stroke_width_reducer)(
576+
storables.stroke_width,
577+
action,
578+
)
579+
..crossover_opacity = TypedReducer<double, actions.CrossoverOpacitySet>(crossover_opacity_reducer)(
580+
storables.crossover_opacity,
581+
action,
582+
)
581583
..crossover_opacity_same_helix = TypedReducer<double, actions.CrossoverOpacitySameHelixSet>(
582584
crossover_opacity_same_helix_reducer,
583585
)(storables.crossover_opacity_same_helix, action)
@@ -684,12 +686,14 @@ AppUIStateStorables app_ui_state_storable_local_reducer(AppUIStateStorables stor
684686
..export_svg_text_separately = TypedReducer<bool, actions.ExportSvgTextSeparatelySet>(
685687
export_svg_text_separately_reducer,
686688
)(storables.export_svg_text_separately, action)
687-
..export_svg_5p_ends = TypedReducer<bool, actions.ExportSvg5pEndsSet>(
688-
export_svg_5p_ends_reducer,
689-
)(storables.export_svg_5p_ends, action)
690-
..export_svg_3p_ends = TypedReducer<bool, actions.ExportSvg3pEndsSet>(
691-
export_svg_3p_ends_reducer,
692-
)(storables.export_svg_3p_ends, action)
689+
..export_svg_5p_ends = TypedReducer<bool, actions.ExportSvg5pEndsSet>(export_svg_5p_ends_reducer)(
690+
storables.export_svg_5p_ends,
691+
action,
692+
)
693+
..export_svg_3p_ends = TypedReducer<bool, actions.ExportSvg3pEndsSet>(export_svg_3p_ends_reducer)(
694+
storables.export_svg_3p_ends,
695+
action,
696+
)
693697
..ox_export_only_selected_strands = TypedReducer<bool, actions.OxExportOnlySelectedStrandsSet>(
694698
ox_export_only_selected_strands_reducer,
695699
)(storables.ox_export_only_selected_strands, action)

lib/src/view/design_main_dna_mismatches.dart

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,7 @@ class DesignMainDNAMismatchesComponent extends UiComponent2<DesignMainDNAMismatc
4444
var group = props.design.groups[helix.group]!;
4545
var geometry = group.geometry ?? props.design.geometry;
4646
var svg_position_y = props.helix_idx_to_svg_position_y_map[helix.idx]!;
47-
var base_svg_pos = helix.svg_base_pos(
48-
mismatch.offset,
49-
domain.forward,
50-
svg_position_y,
51-
geometry,
52-
);
47+
var base_svg_pos = helix.svg_base_pos(mismatch.offset, domain.forward, svg_position_y, geometry);
5348
// For now, if there is a mismatch in an insertion we simply display it for the whole insertion,
5449
// not for a specific base. We maintain React keys to agree on any mismatches in the same
5550
// insertion, and we only render one of them.

lib/src/view/menu.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -875,8 +875,7 @@ If unchecked, the warning will not appear.'''
875875
..tooltip =
876876
'Adjust the opacity of crossover curves between domains on the same helix and same direction.'
877877
..on_new_value =
878-
((num opacity) =>
879-
app.dispatch(actions.CrossoverOpacitySameHelixSet(opacity: opacity.toDouble())))
878+
((num opacity) => app.dispatch(actions.CrossoverOpacitySameHelixSet(opacity: opacity.toDouble())))
880879
..key = 'crossover-opacity-same-helix')(),
881880
]);
882881
}

0 commit comments

Comments
 (0)