Skip to content

Commit

Permalink
#1864 Check coords in setScrollOffset WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
porcelain11 committed Dec 7, 2022
1 parent 4ed3446 commit 3c29c6f
Show file tree
Hide file tree
Showing 8 changed files with 386 additions and 270 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ export class CanvasLoad extends BaseOperation {
execute(restruct: ReStruct) {
const oldStruct = restruct.molecule
restruct.clearVisels() // TODO: What is it?
restruct.render.setMolecule(this.data.struct)
if (this.data.struct) {
restruct.render.setMolecule(this.data.struct)
}

this.data.struct = oldStruct
}

Expand Down
1 change: 0 additions & 1 deletion packages/ketcher-core/src/application/ketcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ async function prepareStructToRender(
structService,
ketcherInstance
)
console.log(666, struct)
struct.initHalfBonds()
struct.initNeighbors()
struct.setImplicitHydrogen()
Expand Down
254 changes: 0 additions & 254 deletions packages/ketcher-core/src/application/render/raphaelRender.js

This file was deleted.

Loading

0 comments on commit 3c29c6f

Please sign in to comment.