@stringsync/vexml
Version:
MusicXML to Vexflow
16 lines (15 loc) • 520 B
TypeScript
import * as spatial from '../spatial';
import { VexmlElement } from './types';
import { Score } from './score';
/** Locates elements using spatial points. */
export declare class Locator {
private tree;
private unorganizedElements;
private constructor();
static create(score: Score): Locator;
/**
* Locates all the elements that contain the given point, sorted by descending distance to the point based on their
* rects' centers.
*/
locate(point: spatial.Point): VexmlElement[];
}