foldkit-viz - v0.15.0
    Preparing search index...

    Type Alias GeoPathFn

    Path renderer result — callable + .bounds() + .centroid()

    type GeoPathFn = {
        bounds(obj: GeoObject): GeoBBox | null;
        centroid(obj: GeoObject): readonly [number, number] | null;
        (obj: GeoObject): string;
    }
    Index

    Methods

    • Centroid in pixel space

      Parameters

      Returns readonly [number, number] | null