ketcher-core
Version:
Web-based molecule sketcher
31 lines (30 loc) • 1.24 kB
TypeScript
import { BaseRenderer } from "./BaseRenderer";
import { Bond } from "../../../domain/entities/CoreBond";
import { Vec2 } from "../../../domain/entities";
import { D3SvgElementSelection } from "../types";
export declare class BondRenderer extends BaseRenderer {
bond: Bond;
private selectionElement;
constructor(bond: Bond);
private get scaledPosition();
private getDoubleBondShiftForChain;
private getDoubleBondShiftForLoop;
private getDoubleBondShift;
private shiftPositionIfAtomLabelVisible;
appendSelection(): void;
removeSelection(): void;
appendHover(): D3SvgElementSelection<SVGGElement, void> | D3SvgElementSelection<SVGUseElement, void> | D3SvgElementSelection<SVGCircleElement, void> | D3SvgElementSelection<SVGRectElement, void> | D3SvgElementSelection<SVGPathElement, void>;
removeHover(): void;
drawSelection(): void;
private appendRootElement;
getSelectionPoints(): Vec2[];
private getSelectionContour;
moveSelection(): void;
private createBondHoverablePath;
private get halfEdges();
private get bondVectors();
show(): void;
remove(): void;
move(): void;
protected appendHoverAreaElement(): void;
}