import { Rect } from "../../Core/Rect"; import { IPoint2D } from "../../Interface/IPoint2D"; import { CrossElement } from "./CrossElement"; /** * The alternating cross element for selectors. */ export declare class AlternatingCrossElement extends CrossElement { /** * Horizontal line element that visually complements hl, the existing horizontal line element on CrossElement. */ private hl2; /** * Vertical line element that visually complements vl, the existing vertical line element on CrossElement. */ private vl2; /** * Creates new `AlternatingCrossElement`. * @param paper - The `Snap.Paper` object to draw on. * @param boundRect - The parent bounding box for selection. */ constructor(paper: Snap.Paper, boundRect: Rect); /** * Moves cross to specified point, applying bounding and taking into account square movement modificator. * @param p - The new cross center location. * @param rect - The bounding box. * @param square - The square movement flag. * @param ref - The reference point for square. */ move(p: IPoint2D, boundRect: Rect, square?: boolean, ref?: IPoint2D): void; /** * Resizes the alternating cross element to specified `width` and `height`. * @param width - The new `width`. * @param height - The new `height`. */ resize(width: number, height: number): void; /** * Builds the visual presentation of the element. */ protected buildUIElements(): void; }