Skip to content

Commit

Permalink
#2584 #2750 - Selection tool: add flip and delete buttons & Rotation …
Browse files Browse the repository at this point in the history
…Tool: non-selected end of the selected bond should be the rotation center (#2666)

* #2584 - Refactor: add type declarations to external module 'subscription'

* #2584 - Add new reducer for floating tools

* #2584 - Add new component FloatingTools

* #2584 - Update position of floating tools

* #2584 - Fix position to be correct after scrolling and zooming

* #2584 - Fix rotation box to be rerendered after flipping

* #2584 - Fix floating tools to update position when scrolling

* #2584 - Update erase button's icon to delete

* #2584 - Remove transform tool group from left toolbar

* #2584 - Rename handlePos to rotateHandlePosition

* #2584 - Expose a public method to handle scrolling

* #2584 - Make handleCenter private

* #2584 - Change Vec2 to {x, y}

* #2584 - Remove raphael2view

* #2584 - Fix ci

* #2584 - Fix ci after merging

* #2584 - Support to flip multi structures as a whole

* #2584 - Support to flip rxnArrow

* #2584 - Support to flip texts and rxnPluses

* #2584 - Remove functionality of flipping one single bond

* #2584 - Remove unused code

* #2584 - Fix flip positions of texts

* #2584 - Decouple action generators and UI

* #2750 - Fix unselected end of the selected bond to be the center

* #2584 - Avoid importing type from ui to editor (code review)
  • Loading branch information
yuleicul authored Jun 9, 2023
1 parent cd8ddbb commit 4d491ab
Show file tree
Hide file tree
Showing 30 changed files with 567 additions and 385 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { fromRGroupFragment, fromUpdateIfThen } from './rgroup'

import { Action } from './action'
import { fromAtomsFragmentAttr } from './atom'
import { getRelSgroupsBySelection } from './utils'
import { getRelSGroupsBySelection } from './utils'

export function fromMultipleMove(restruct, lists, d) {
d = new Vec2(d)
Expand Down Expand Up @@ -84,7 +84,7 @@ export function fromMultipleMove(restruct, lists, d) {
})

if (lists.sgroupData && lists.sgroupData.length === 0) {
const sgroups = getRelSgroupsBySelection(restruct, lists.atoms)
const sgroups = getRelSGroupsBySelection(struct, lists.atoms)
sgroups.forEach((sg) => {
action.addOp(new SGroupDataMove(sg.id, d))
})
Expand Down
Loading

0 comments on commit 4d491ab

Please sign in to comment.