You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
785 B

4 months ago
import type { DisplayObject, Text, TextStyleProps } from '../shapes';
import { Point } from '../types';
/**
* xywidthheight
*/
export declare function getShapeSpace(shape: DisplayObject): {
width: number;
height: number;
};
export declare function getLocalBBox(shape: DisplayObject): {
x: number;
y: number;
width: number;
height: number;
left: number;
bottom: number;
top: number;
right: number;
};
export declare function createTempText(group: DisplayObject, attrs: TextStyleProps): Text;
export declare function isHorizontal(p1: Point, p2: Point): boolean;
export declare function isVertical(p1: Point, p2: Point): boolean;
export declare function copyAttributes(target: DisplayObject, source: DisplayObject): void;