import { SLOT_TYPE } from './constants'; import { ISlot } from './slot-view'; import { d3Selection } from './util'; import NodeView from './node-view'; import GraphView from './graph-view'; import GEditor from './geditor'; export interface ISlot { id?: string; name?: string; [key: string]: any; } export interface InitialSettings { geditor: GEditor; graphView: GraphView; nodeView: NodeView; type: SLOT_TYPE; slotConfig: ISlot; } export default class SlotView { $el: d3Selection; type: SLOT_TYPE; protected graphView: GraphView; id: string; nodeView: NodeView; slotConfig: ISlot; geditor: GEditor; constructor(settings: InitialSettings); protected render(): void; protected initDragEvents(): void; index(): number; readonly editable: boolean; updatePosition(cx: number, cy: number): void; getCoord(): { x: number; y: number; }; connectableStyle(toggle?: boolean): void; unconnectableStyle(toggle?: boolean): void; activeStyle(toggle?: boolean): void; connectedStyle(toggle?: boolean): void; resetStyle(): void; destroy(): void; }