jsme-editor / jsme-editor.github.io

73 stars 19 forks source link

Non-Bonded Placement of Template Fragments is Always at Origin #47

Open AspenBB opened 4 months ago

AspenBB commented 4 months ago

JSME is a great tool. The following is a minor issue...

I am working in multipart mode, where I use the New button to make a system with multiple disconnected parts...

For normal built-in JSME fragments, e.g. benzene or one of the FG ones like -C(=O)OH, if I click on free space then the free fragment will be placed at the clicked point of the canvas. But for template fragments, the free fragment is always placed at the origin, the center of the canvas, instead of where I clicked. For multi-fragment (multipart) usage, this is a slight inconvenience. I think the template fragment should be translated so that the marked atom is coincident with the clicked point.