Skip to content

Commit

Permalink
Formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekgokhale committed Sep 21, 2023
1 parent 21b7287 commit 7da7a68
Showing 1 changed file with 61 additions and 61 deletions.
122 changes: 61 additions & 61 deletions lib/src/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const RIGHT_CLICK_BUTTON = 2;
const KEY_CODE_SHOW_POTENTIAL_HELIX = KeyCode.H;
const KEY_CODE_MOUSEOVER_HELIX_VIEW_INFO = KeyCode.W;
final KEY_CODE_COMMAND_MAC =
browser.isFirefox ? 224 : 91; // Meta/Command: https://tosbourn.com/cmd-osx-key-code/
browser.isFirefox ? 224 : 91; // Meta/Command: https://tosbourn.com/cmd-osx-key-code/
final KEY_CODE_TOGGLE_SELECT_MAC = KEY_CODE_COMMAND_MAC;
const KEY_CODE_SELECT = KeyCode.SHIFT;
const KEY_CODE_TOGGLE_SELECT = KeyCode.CTRL;
Expand Down Expand Up @@ -215,18 +215,18 @@ const design_modifications_3p_key = 'modifications_3p_in_design';
const design_modifications_int_key = 'modifications_int_in_design';
const groups_key = 'groups';
final design_keys = [
version_key,
grid_key,
helices_key,
helices_view_order_key,
potential_helices_key,
strands_key,
design_modifications_key,
design_modifications_5p_key,
design_modifications_3p_key,
design_modifications_int_key,
groups_key,
] +
version_key,
grid_key,
helices_key,
helices_view_order_key,
potential_helices_key,
strands_key,
design_modifications_key,
design_modifications_5p_key,
design_modifications_3p_key,
design_modifications_int_key,
groups_key,
] +
legacy_geometry_keys;

// Geometry keys
Expand All @@ -238,12 +238,12 @@ const minor_groove_angle_key = 'minor_groove_angle';
const legacy_minor_groove_angle_keys = ['groove_angle'];
const inter_helix_gap_key = 'inter_helix_gap';
final geometry_keys = [
rise_per_base_pair_key,
helix_radius_key,
bases_per_turn_key,
minor_groove_angle_key,
inter_helix_gap_key,
] +
rise_per_base_pair_key,
helix_radius_key,
bases_per_turn_key,
minor_groove_angle_key,
inter_helix_gap_key,
] +
legacy_minor_groove_angle_keys +
legacy_rise_per_base_pair_keys;

Expand All @@ -264,21 +264,21 @@ const major_tick_start_key = 'major_tick_start';
const major_tick_periodic_distances_key = 'major_tick_periodic_distances';
const group_key = 'group';
final helix_keys = [
idx_on_helix_key,
max_offset_key,
min_offset_key,
roll_key,
pitch_key,
yaw_key,
grid_position_key,
svg_position_key,
position_key,
major_ticks_key,
major_tick_distance_key,
major_tick_start_key,
major_tick_periodic_distances_key,
group_key,
] +
idx_on_helix_key,
max_offset_key,
min_offset_key,
roll_key,
pitch_key,
yaw_key,
grid_position_key,
svg_position_key,
position_key,
major_ticks_key,
major_tick_distance_key,
major_tick_start_key,
major_tick_periodic_distances_key,
group_key,
] +
legacy_position_keys;
// Cannot have List concatenation in const expressions.
// Seems like it won't be fixed soon (related issue):
Expand Down Expand Up @@ -306,17 +306,17 @@ const modification_5p_key = '5prime_modification';
const modification_3p_key = '3prime_modification';
const modifications_int_key = 'internal_modifications';
final strand_keys = [
color_key,
dna_sequence_key,
vendor_fields_key,
is_scaffold_key,
substrands_key,
modification_5p_key,
modification_3p_key,
modifications_int_key,
label_key,
name_key,
] +
color_key,
dna_sequence_key,
vendor_fields_key,
is_scaffold_key,
substrands_key,
modification_5p_key,
modification_3p_key,
modifications_int_key,
label_key,
name_key,
] +
legacy_dna_sequence_keys +
legacy_vendor_fields_keys +
legacy_substrands_keys;
Expand All @@ -329,12 +329,12 @@ const legacy_mod_vendor_code_keys = ['idt_text'];
const mod_allowed_bases_key = 'allowed_bases';
const mod_connector_length_key = 'connector_length';
final modification_keys = [
mod_location_key,
mod_display_text_key,
mod_vendor_code_key,
mod_allowed_bases_key,
mod_connector_length_key,
] +
mod_location_key,
mod_display_text_key,
mod_vendor_code_key,
mod_allowed_bases_key,
mod_connector_length_key,
] +
legacy_mod_vendor_code_keys;

// VendorFields keys
Expand All @@ -360,16 +360,16 @@ const end_key = 'end';
const deletions_key = 'deletions';
const insertions_key = 'insertions';
final domain_keys = [
helix_idx_key,
forward_key,
start_key,
end_key,
deletions_key,
insertions_key,
label_key,
name_key,
color_key,
] +
helix_idx_key,
forward_key,
start_key,
end_key,
deletions_key,
insertions_key,
label_key,
name_key,
color_key,
] +
legacy_forward_keys;

// Loopout keys
Expand Down

0 comments on commit 7da7a68

Please sign in to comment.