iVis-at-Bilkent / newt

A web application to visualize and edit pathway models
http://newteditor.org
GNU Lesser General Public License v3.0
53 stars 27 forks source link

SBGN brick: Post-translational modification #664

Closed ugurdogrusoz closed 3 years ago

ugurdogrusoz commented 3 years ago

Let's implement this set now according to the guidelines, reusing as much code as possible where it makes sense.

ugurdogrusoz commented 3 years ago

I don't see the dropbox to determine the subtype (phosphorylation, etc.)?!

Screen Shot 2021-05-04 at 19 18 40
msalihaltun commented 3 years ago

I can see them right now. Yours looks like yesterday's version somehow.

image

ugurdogrusoz commented 3 years ago

Based on the feedback from Alexander & Adrien, let's allow the user to:

ugurdogrusoz commented 3 years ago
ugurdogrusoz commented 3 years ago
msalihaltun commented 3 years ago

Auto resize does a couple things that may be an issue. First is, at first macromolecules are smaller in width because of the resize. And when many units of information are added, since position was determined before node creation, they get very close to, or even overlap with, the process node.

msalihaltun commented 3 years ago

I will make another small change to dynamically change position after resize.

msalihaltun commented 3 years ago

I made the change now, it should be okay.

ugurdogrusoz commented 3 years ago

It'd be nice if auto-resize took the node label into account as well.

msalihaltun commented 3 years ago

Should be okay with https://github.com/iVis-at-Bilkent/chise.js/commit/148442f3e623c03201dc0456aa146b37767550e0

ugurdogrusoz commented 3 years ago

Thanks auto-resizing is working nicely now but as that happens we lose the vertical alignment (top-to-bottom layout): Screenshot 2021-05-17 114044

msalihaltun commented 3 years ago

Seems I overlooked the fact that I need to consider orientation as I reposition the nodes getting larger.