-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2360 - "Select" tool - added select and erase tools - implemented DrawingEntitiesManager and RenderersManager which controls entities parameters changes and render
- Loading branch information
1 parent
10d9c91
commit 59df6df
Showing
33 changed files
with
1,301 additions
and
552 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 0 additions & 31 deletions
31
packages/ketcher-core/src/application/editor/actions/peptide.ts
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
packages/ketcher-core/src/application/editor/actions/polymerBond.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
packages/ketcher-core/src/application/editor/operations/drawingEntity/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { RenderersManager } from 'application/render/renderers/RenderersManager'; | ||
import { Operation } from 'domain/entities/Operation'; | ||
import { DrawingEntity } from 'domain/entities/DrawingEntity'; | ||
|
||
export class DrawingEntityHoverOperation implements Operation { | ||
constructor(private drawingEntity: DrawingEntity) {} | ||
|
||
public execute(renderersManager: RenderersManager) { | ||
renderersManager.hoverDrawingEntity(this.drawingEntity); | ||
} | ||
} | ||
|
||
export class DrawingEntitySelectOperation implements Operation { | ||
constructor(private drawingEntity: DrawingEntity) {} | ||
|
||
public execute(renderersManager: RenderersManager) { | ||
renderersManager.selectDrawingEntity(this.drawingEntity); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.