Skip to content

Commit

Permalink
#3692 hide attachment points for micro preview
Browse files Browse the repository at this point in the history
  • Loading branch information
StarlaStarla committed Jan 2, 2024
1 parent 617edf5 commit b07d08a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/ketcher-core/src/application/render/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function defaultOptions(options: RenderOptions): RenderOptions {
// rendering customization flags
// TODO: hide enhanced flags opts
showValenceWarnings: true,
showRgroupAttachmentPoints: true,
autoScale: false, // scale structure to fit into the given view box, used in view mode
autoScaleMargin: 0,
maxBondLength: 0, // 0 stands for "not specified"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export type RenderOptions = {
showHalfBondIds: boolean;
showLoopIds: boolean;
showValenceWarnings: boolean;
showRgroupAttachmentPoints: boolean;
autoScale: boolean;
autoScaleMargin: number;
maxBondLength: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,9 @@ class ReStruct {
if (updLoops) this.updateLoops();
this.showAtoms();
this.showBonds();
this.showRgroupAttachmentPoints();
if (this.render.options.showRgroupAttachmentPoints) {
this.showRgroupAttachmentPoints();
}
if (updLoops) this.showLoops();
this.showReactionSymbols();
this.showSGroups();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ const InfoPanel: FC<InfoPanelProps> = (props) => {
needCache: false,
width,
height,
showRgroupAttachmentPoints: false,
}}
/>
</div>
Expand Down

0 comments on commit b07d08a

Please sign in to comment.