wikipathways / cytoscape-wikipathways-app

WikiPathways app for Cytoscape to open and access pathways from WikiPathways
Apache License 2.0
5 stars 7 forks source link

Rotation #48

Closed AdamStuart closed 6 years ago

AdamStuart commented 6 years ago

Cytoscape does not support rotated notes. The app needs to provide resources for each shape in 4 or 8 degrees of rotation.

AlexanderPico commented 6 years ago

I don't think pre-rotated shapes will work. I will grep the current archive and try to list the current rotation values to illustrate this.

As an example, try WP1591. There are complex shapes used to make drawings.

AdamStuart commented 6 years ago

working for general paths. tested with golgi, sr in WP2578

AlexanderPico commented 6 years ago

Still need to apply to non-cell compartment shapes. See WP1591 (heart dev)

AlexanderPico commented 6 years ago

Also add shape labels back in, but don't have them rotate. See WP2578 (golgi)

AlexanderPico commented 6 years ago

Pre-rotation works for general paths (e.g., mito, golgi, ER, SR), but does not work for shapes (e.g., nucleus, cell, rect, oval, triangle). We will need to wait for Cytoscape to add support for rotation on shape annotations to cover these cases.

Opened feature ticket for Cytoscape: http://code.cytoscape.org/redmine/issues/3934

AlexanderPico commented 6 years ago

An alternative work-around might be to figure out how to draw all shapes as general paths, while supporting scaling without bilayer spacing artifact.