Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colors for the STEREO FLAGS and STEREO MARKS #62

Closed
Vesdet opened this issue Oct 12, 2020 · 1 comment · Fixed by #457
Closed

Colors for the STEREO FLAGS and STEREO MARKS #62

Vesdet opened this issue Oct 12, 2020 · 1 comment · Fixed by #457

Comments

@Vesdet
Copy link
Contributor

Vesdet commented Oct 12, 2020

As a Ketcher collaborator I'd like to implement rendering colors of the stereochemistry flags and labels.

In the ‘Settings’ user is able to specify the preferences for the rendering of the stereochemistry flags and labels.
Colors:
• Color of Absolute Centers - Specifies the color in which the stereo bonds, stereogroup labels, or both are displayed at absolute stereogenic centers.
• Color of AND Centers - Specifies the color in which the stereo bonds, stereogroup labels, or both are displayed at AND stereogenic centers.
• Color of OR Centers - Specifies the color in which the stereo bonds, stereogroup labels, or both are displayed at OR stereogenic centers.
• Color stereogenic centers - Specifies how color is used with one of the following values:
a) Labels only
labels
b) Bonds only
bonds
c) Labels and Bonds
labels-bonds
d) Off
color-Off

Draw the default colors for stereocenters are:
Absolute – Red;
AND – MediumBlue
OR – ForestGreen
The color for the next label (AND1, AND2, AND3 or OR1, OR2, OR3…) is a little lighter then for previous one.
labels-color

Part 3 in Epic #56

@Vesdet Vesdet added this to the Enhanced Stereochemistry milestone Oct 12, 2020
ensemenova added a commit that referenced this issue Mar 30, 2021
ensemenova added a commit that referenced this issue Mar 30, 2021
# Conflicts:
#	packages/ketcher-react/src/script/render/restruct/ReEnhancedFlag.ts
#	packages/ketcher-react/src/script/render/restruct/ReSimpleObject.ts
#	packages/ketcher-react/src/script/render/restruct/ReStruct.ts
#	packages/ketcher-react/src/script/render/restruct/ReText.ts
#	packages/ketcher-react/src/script/render/restruct/reatom.js
#	packages/ketcher-react/src/script/render/restruct/rebond.js
#	packages/ketcher-react/src/script/render/restruct/redatasgroupdata.js
#	packages/ketcher-react/src/script/render/restruct/reloop.js
#	packages/ketcher-react/src/script/render/restruct/rergroup.js
#	packages/ketcher-react/src/script/render/restruct/rerxnarrow.js
#	packages/ketcher-react/src/script/render/restruct/rerxnplus.js
#	packages/ketcher-react/src/script/render/restruct/resgroup.js
irinatelnova added a commit that referenced this issue Apr 9, 2021
irinatelnova added a commit that referenced this issue Apr 9, 2021
irinatelnova added a commit that referenced this issue Apr 9, 2021
@irinatelnova irinatelnova linked a pull request Apr 9, 2021 that will close this issue
AndreiMazol pushed a commit that referenced this issue Apr 15, 2021
* add coloring for stereo bonds and labels

* #62 Implement stereoflags coloring

* #62 Implement stereoflags coloring

* #62 Transform files to ts, replace magic values with constants

Co-authored-by: Evgeniya Semenova <evgeniya_semenova@epam.com>
@AndreiMazol AndreiMazol modified the milestones: Enhanced Stereochemistry, Release 2.3.0 Apr 21, 2021
@Svetlana-Asinovskaia
Copy link
Collaborator

The possibility to specify the colors for stereogroup labels and stereo bonds at absolute/AND/OR stereogenic centers was implemented. Release/2.3 The issue is verified and closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants