import type { SElement } from "../../model/sElement.js"; import type { SRoot } from "../../model/sRoot.js"; import type { SnapElementData, SnapReferenceData } from "./model.js"; /** * Calculates the points and bounds for the selected elements in all relevant contexts. * Selected elements that are in a canvas that is contained in an ignored element are ignored. * * @param root the current root element * @param selectedElements the selected elements to calculate the points and bounds for * @param ignoredElements elements to ignore children of * @returns a map of context ids to their points and bounds */ export declare function getSnapElementData(root: SRoot, selectedElements: SElement[], ignoredElements: Set): SnapElementData; /** * Calculates the reference points and bounds for the given contexts. * * @param root the current root element * @param contexts the contexts to calculate the reference points and bounds for (ids of SCanvas or SRoot elements) * @param ignoredElements elements which should not contribute to the reference points and bounds, even when they are visible * @returns a map of context ids to their reference points and bounds */ export declare function getSnapReferenceData(root: SRoot, contexts: Set, ignoredElements: Set): SnapReferenceData; /** * Intersects the given reference points and bounds per context. * Data for a context is only included, if it is present in both maps, and the global rotation is the same. * Then, an intersection of the points and bounds is calculated. * * @param a the first map of reference points and bounds * @param b the second map of reference points and bounds * @returns the generated intersection */ export declare function intersectSnapReferenceDatas(a: SnapReferenceData, b: SnapReferenceData): SnapReferenceData; //# sourceMappingURL=snapData.d.ts.map