UNPKG

@antv/x6

Version:

JavaScript diagramming library that uses SVG and HTML for rendering

15 lines (14 loc) 585 B
import { PointOptions } from './point'; import { JSONObject, JSONArray } from './types'; export declare abstract class Geometry { abstract scale(sx: number, sy: number, origin?: PointOptions): this; abstract rotate(angle: number, origin?: PointOptions): this; abstract translate(tx: number, ty: number): this; abstract translate(p: PointOptions): this; abstract clone(): Geometry; abstract equals(g: any): boolean; abstract toJSON(): JSONObject | JSONArray; abstract serialize(): string; valueOf(): JSONObject | JSONArray; toString(): string; }