@aurigma/design-atoms
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
15 lines (14 loc) • 505 B
TypeScript
import { RotatedRectangleF } from "@aurigma/design-atoms-model";
export interface ISection {
readonly length: number;
readonly center: number;
}
export declare class Section implements ISection {
private readonly _length;
private readonly _center;
constructor(length: number, center: number);
get length(): number;
get center(): number;
static fromAxisX(rectangle: RotatedRectangleF): ISection;
static fromAxisY(rectangle: RotatedRectangleF): ISection;
}