modern-canvas
Version:
A JavaScript WebGL rendering engine. only the ESM.
21 lines (20 loc) • 770 B
TypeScript
import type { NormalizedShape, Shape } from 'modern-idoc';
import type { Element2D } from './Element2D';
import { Path2DSet } from 'modern-path2d';
import { CoreObject } from '../../../core';
export declare class Element2DShape extends CoreObject {
parent: Element2D;
enabled: boolean;
preset: NormalizedShape['preset'];
svg: NormalizedShape['svg'];
viewBox: NormalizedShape['viewBox'];
paths: NormalizedShape['paths'];
protected _path2DSet: Path2DSet;
constructor(parent: Element2D);
setProperties(properties?: Shape): this;
protected _updateProperty(key: string, value: any, oldValue: any): void;
isValid(): boolean;
protected _updatePath2DSet(): void;
draw(rect?: boolean): void;
protected _drawRect(): void;
}