UNPKG

1.05 kBTypeScriptView Raw
1/** Horizontal dimension of a connection point on the perimeter of the origin or overlay element. */
2export declare type HorizontalConnectionPos = 'start' | 'center' | 'end';
3/** Vertical dimension of a connection point on the perimeter of the origin or overlay element. */
4export declare type VerticalConnectionPos = 'top' | 'center' | 'bottom';
5/** A connection point on the origin element. */
6export interface OriginConnectionPosition {
7 originX: HorizontalConnectionPos;
8 originY: VerticalConnectionPos;
9}
10/** A connection point on the overlay element. */
11export interface OverlayConnectionPosition {
12 overlayX: HorizontalConnectionPos;
13 overlayY: VerticalConnectionPos;
14}
15/** The points of the origin element and the overlay element to connect. */
16export declare class ConnectionPositionPair {
17 originX: HorizontalConnectionPos;
18 originY: VerticalConnectionPos;
19 overlayX: HorizontalConnectionPos;
20 overlayY: VerticalConnectionPos;
21 constructor(origin: OriginConnectionPosition, overlay: OverlayConnectionPosition);
22}