UNPKG

ecljs

Version:

electric circuits library

31 lines (30 loc) 838 B
import { Type, IECDefaults } from './interfaces'; import { ItemSolid } from './itemSolid'; import { Circuit } from './circuit'; import { Size } from 'dabbjs/dist/lib/size'; export declare class EC extends ItemSolid { protected $: IECDefaults; get type(): Type; /** * @description returns the read-only size of this component */ get size(): Size; /** * @description returns then board label outerHTML if any */ get boardLabel(): string; constructor(circuit: Circuit, options: { [x: string]: any; }); refresh(): EC; setVisible(value: boolean): EC; /** * removes this electronic component form the board */ remove(): void; /** * this happens when this component was inserted in the board */ onDOM(): void; defaults(): IECDefaults; }