UNPKG

ketcher-core

Version:
41 lines (40 loc) 1.61 kB
import { BaseRenderer } from "./BaseRenderer"; import { type Bond } from "../../../domain/entities/CoreBond"; import { Vec2 } from "../../../domain/entities/vec2"; import type { D3SvgElementSelection } from "../types"; export declare class BondRenderer extends BaseRenderer { bond: Bond; private selectionElement; constructor(bond: Bond); private get scaledPosition(); private get scaledCenter(); private getDoubleBondShiftForChain; private getDoubleBondShiftForLoop; private getDoubleBondShift; private shiftPositionIfAtomLabelVisible; private get cipElementId(); private getBondFromMoleculeStruct; appendSelection(): void; removeSelection(): void; appendHover(): D3SvgElementSelection<SVGGElement, void> | D3SvgElementSelection<SVGUseElement, void> | D3SvgElementSelection<SVGCircleElement, void> | D3SvgElementSelection<SVGRectElement, void> | D3SvgElementSelection<SVGPathElement, void>; removeHover(): void; redrawHover(): void; drawSelection(): void; private appendRootElement; getSelectionPoints(): Vec2[]; private getSelectionContour; moveSelection(): void; private createBondHoverablePath; private get halfEdges(); private get bondVectors(); show(): void; private get topologyElementId(); private get reactingCenterElementId(); private appendBondProperties; private appendTopologyMark; private appendReactingCenterMark; private appendStereochemistry; remove(): void; move(): void; protected appendHoverAreaElement(): void; }