SDK JS
    Preparing search index...

    The computed chart geometry the widget renders.

    interface ChartGeometry {
        areaPath: string;
        height: number;
        linePath: string;
        pad: readonly [number, number, number, number];
        surfacePath: string;
        width: number;
        xTicks: ChartTick[];
        yTicks: ChartTick[];
        indexAt(x: number): number;
        xFor(distanceM: number): number;
        yFor(elevationM: number): number;
    }
    Index

    Properties

    areaPath: string

    SVG path d for the closed area fill under the line.

    height: number

    Chart height in CSS px (as passed).

    linePath: string

    SVG path d for the elevation line.

    pad: readonly [number, number, number, number]

    Plot-area insets [left, top, right, bottom] in px.

    surfacePath: string

    SVG path d for the NON-ground surface line (buildings/mesh rooflines), with gaps where nothing stands above the ground. Empty when no surface samples exist.

    width: number

    Chart width in CSS px (as passed).

    xTicks: ChartTick[]

    Distance-axis ticks.

    yTicks: ChartTick[]

    Elevation-axis ticks.

    Methods

    • Nearest sample index for a plot x (px), clamped into range.

      Parameters

      • x: number

      Returns number

    • Map a distance (m) to a plot x (px).

      Parameters

      • distanceM: number

      Returns number

    • Map an elevation (m) to a plot y (px).

      Parameters

      • elevationM: number

      Returns number