Skip to content

Commit

Permalink
less intrusive label attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
sbittrich committed Sep 5, 2023
1 parent 7e9e52d commit ae9a598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viewer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ export class LigandViewer {
for (const s of this._plugin.managers.structure.hierarchy.current.structures) {
for (const c of s.components) {
const isHidden = c.cell.state.isHidden === true || !this.customState.showLabels;
await this._plugin.builders.structure.representation.addRepresentation(c.cell, { type: 'label', typeParams: { level: 'element', fontQuality: 4, borderColor: ColorNames.black, ignoreHydrogens: this.customState.ignoreHydrogens } }, { initialState: { isHidden } });
await this._plugin.builders.structure.representation.addRepresentation(c.cell, { type: 'label', typeParams: { level: 'element', fontQuality: 4, borderColor: ColorNames.black, attachment: 'bottom-left', ignoreHydrogens: this.customState.ignoreHydrogens } }, { initialState: { isHidden } });
}
}
}
Expand Down

0 comments on commit ae9a598

Please sign in to comment.