UNPKG

ecljs

Version:

electric circuits library

27 lines (26 loc) 786 B
import { Point } from 'dabbjs/dist/lib/point'; import { Rect } from 'dabbjs/dist/lib/rect'; import { IItemBaseDefaults, IType, Type, IComponent } from './interfaces'; import { Item } from './item'; export declare abstract class ItemBase extends Item implements IType { protected $: IItemBaseDefaults; abstract get type(): Type; get base(): IComponent; get g(): SVGElement; get box(): any; get origin(): Point; rect(): Rect; setVisible(value: boolean): ItemBase; constructor(options: { [x: string]: any; }); /** * removes this base component from the board */ remove(): void; /** * @description this's called after component is inserted in the DOM */ onDOM(): void; defaults(): IItemBaseDefaults; }