aboutsummaryrefslogtreecommitdiff
path: root/dist/smart-label-positioning.d.ts
blob: 32ba4fda86363a344ffaefa7b6cdf6a141dba9e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
 * Calculate optimal label position for a component
 * @param {Object} component - Component object with label and coordinates
 * @param {Object} mapData - Map data containing all components, edges, notes, etc.
 * @param {Object} config - Configuration object
 * @param {CanvasRenderingContext2D} ctx - Canvas context for text measurement
 * @param {Array} allLines - Pre-collected lines from edges, evolutions, etc.
 * @param {Array} noteRects - Pre-collected note rectangles
 * @param {Array} inertiaRects - Pre-collected inertia rectangles
 * @returns {Object} Position object with x, y coordinates in pixels
 */
export function calculateOptimalLabelPosition(component: any, mapData: any, config: any, ctx: CanvasRenderingContext2D, allLines: any[], noteRects: any[], inertiaRects: any[]): any;
/**
 * Collect all lines from edges, evolutions, inertias, and axes
 */
export function collectAllLines(mapData: any, config: any, componentMap: any): {
    start: {
        x: number;
        y: any;
    };
    end: {
        x: any;
        y: any;
    };
}[];
/**
 * Collect all note rectangles
 */
export function collectNoteRects(mapData: any, config: any, ctx: any): any;
/**
 * Collect all inertia rectangles
 */
export function collectInertiaRects(mapData: any, config: any, componentMap: any): any;