UNPKG

@raducal/isomer

Version:

A simple isometric graphics library for HTML5 canvas

21 lines (20 loc) 864 B
import { Point } from './point'; type AtLeastThreePoints = [Point, Point, Point, ...Point[]]; declare class Path { private points; constructor(points: AtLeastThreePoints); getPoints(): Point[]; duplicate(): Path; push(point: Point): void; reverse(): Path; translate(dx?: number, dy?: number, dz?: number): Path; rotateX(origin: Point, angle: number): Path; rotateY(origin: Point, angle: number): Path; rotateZ(origin: Point, angle: number): Path; scale(origin: Point, scaleX: number, scaleY?: number, scaleZ?: number): Path; depth(): number; static Rectangle(origin: Point, width?: number, height?: number): Path; static Circle(origin: Point, radius: number, vertices?: number): Path; static Star(origin: Point, outerRadius: number, innerRadius: number, numberOfPoints: number): Path; } export { Path };