Skip to content

SKETCH-2378: Use getSGroupDataLabels() for DAT SGroup label positioning - #359

Draft
cdvonbargen wants to merge 2 commits into
schrodinger:mainfrom
cdvonbargen:pr/SKETCH-2378-use-getSGroupDataLabels
Draft

SKETCH-2378: Use getSGroupDataLabels() for DAT SGroup label positioning#359
cdvonbargen wants to merge 2 commits into
schrodinger:mainfrom
cdvonbargen:pr/SKETCH-2378-use-getSGroupDataLabels

Conversation

@cdvonbargen

Copy link
Copy Markdown
Collaborator

Description

Replaces the manual FIELDDISP parsing in SGroupItem with the new MolDraw2D_detail::getSGroupDataLabels() API added in rdkit/rdkit#9189. The old code ignored the absolute/relative positioning flag and always treated FIELDDISP coordinates as relative to the first atom; the new API properly handles both cases along with edge cases like missing atoms or FIELDDISP entries.

Build blocker: The pre-built RDKit package does not install MolDraw2DDetails.h as a public header, and the RDKit::MolDraw2D cmake target has broken freetype paths from the build bot. This PR needs either: (a) the header added to the RDKit install set and the cmake target fixed, or (b) a local RDKit source build.

Testing Done

Not yet compilable due to the RDKit packaging issue described above. Once resolved, verify with:

buildinger sketcher -i --with-tests --test-args="test/schrodinger/sketcher/molviewer/test_sgroup_item"

Replace manual FIELDDISP parsing in SGroupItem with the new
getSGroupDataLabels() API from RDKit (rdkit/rdkit#9189), which properly
handles absolute vs relative positioning and edge cases.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cdvonbargen

Copy link
Copy Markdown
Collaborator Author

@d-b-w -- when I did https://github.com/rdkit/rdkit/pull/9189/changes I didnt realize that MolDraw2DDetails.h would n't be accessible -- what is the right thing to do here?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant