alecmce-primitivesjs
Version:
A small library for visualizing the prime factor decomposition of numbers.
11 lines (10 loc) • 349 B
TypeScript
export declare class Svg {
readonly element: SVGElement;
constructor(elementOrType: SVGElement | string);
append(child: SVGElement): this;
appendTo(container: SVGElement): this;
setAttribute(attribute: string, value: string): this;
position(x: number, y: number): this;
scale(scalar: number): this;
remove(): void;
}