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.
23 lines
785 B
23 lines
785 B
import type { DisplayObject, Text, TextStyleProps } from '../shapes';
|
|
import { Point } from '../types';
|
|
/**
|
|
* 获得图形的x、y、width、height
|
|
*/
|
|
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;
|
|
|