Read Name and Reaction Conditions from RDF Metadata as a text #2559
Labels
MMPK
Scope for Pathway reactions, View-only mode, Static images, Custom buttons and Ketcher API changes
Milestone
Background
In the current implementation, Indigo handles RDF files containing reactions (RXN) but lacks the capability to utilize metadata associated with these reactions. Metadata fields are crucial for detailed documentation and readability of chemical reactions. We want to use $DTYPE Name and $DTYPE Reaction Conditions Metadata fields to enhance documentation capabilities and allow users to leverage text for better clarity and communication, there is a need to introduce support for reading text description thru the metadata fields.
Solution
Metadata Reading and Parsing:
Objective: Enable Indigo to accurately read and parse content from Name and Reaction Conditions metadata fields.
Details:
Prepare text block:
Truncated text will be lost!
Objective: Prepare text block to display near reaction's arrow and truncate large text to layout reactions in readable format.
Details:
Initial requirements of 2.3 are here. However, we can't calculate exact text dimensions and will use other solution.
maximum 6.5 default sizes of the bond for width exclude left and right reaction-component-margin-size and maximum 4.5 default sizes of the bond for height exclude bottom reaction-component-margin-size.
Max width: 6.5 - 2*reaction-component-margin-size (6.5 - current arrow length, the same constant must be use!)
Max hight: 4.5 - reaction-component-margin-size
render-font-size parameter is already available in Indigo.
Dynamic Positioning and Alignment:
Automatic Layout Adjustments is out of scope! Keep it for history!
Automatic Layout Adjustments:
Objective: Dynamically adjust the layout of reaction diagrams based on the presence and size of text annotations.
Details:
The vertical spacing and positioning of reactions should be modified to accommodate blocks of text, ensuring a visually balanced and uncluttered diagram.
Without text:
With text:
Multi-tailed arrow's spine hight should be adjusted to fit Text Above Reaction Arrows and all the reactants. Head arrow should be centred, as it is.
If current hight/2 size of the spine is less, than text box - spine's hight must be adjusted.
If multi-tailed arrow's spine was increased, than tails and tree nodes should be adjusted proportionally.
The text was updated successfully, but these errors were encountered: