Class GiraffeState

Constructors

Properties

attr: GiraffeStateAttr = {}
listeners: Record<string, any> = {}

Methods

  • Parameters

    • key: "selected"

    Returns FeatureCollection<Geometry, {
        [name: string]: any;
    }>

  • Parameters

    • key: "mapView"

    Returns MapView

  • Parameters

    • key: "mapContent"

    Returns MapContent

  • Parameters

    • key: "projects"

    Returns FeatureCollection<{
        coordinates: GeoCoordinate[][] | Position[][];
        type: "Polygon";
    }, {
        acronymFloorSpaceRatio?: string;
        acronymGross?: string;
        acronymNet?: string;
        acronymSaleable?: string;
        color?: string;
        created_at?: string;
        crs?: string;
        currencySymbol?: string;
        defaultBoundary?: boolean;
        description?: string;
        grid?: Grid;
        id: string;
        mapboxStyle?: string;
        name: string;
        org_id?: number;
        org_name?: string;
        siteArea?: number;
        units?: ProjectUnits;
    } & Record<string, any>>

  • Parameters

    • key: "bakedSections"

    Returns FeatureCollection<PointGeometry | LineStringGeometry | PolygonGeometry, PreStackedLineStringProps | StackedPolygonProps | StackedPointProps>

  • Parameters

    • key: "projectLayers"

    Returns ProjectLayer[]

  • Parameters

    • key: "rawSections"

    Returns FeatureCollection<
        | PointGeometry
        | MultiPointGeometry
        | LineStringGeometry
        | MultiLineStringGeometry
        | PolygonGeometry
        | MultiPolygonGeometry, RawSectionProps>

  • Parameters

    • key: "project"

    Returns Project

  • Parameters

    • key: "projectOrigin"

    Returns GeoCoordinate

  • Parameters

    • key: "projectAppsByAppID"

    Returns {
        1?: GiraffeProjectApp;
    } & Record<string, OtherProjectApp<Record<string, any>, Record<string, any>>>

  • Parameters

    • key: "flows"

    Returns Record<string, GiraffeNodeGraph>

  • Parameters

    • key: "layerTree"

    Returns LayerTree

  • Parameters

    • key: "selectedProjectApp"

    Returns GiraffeProjectApp | OtherProjectApp<Record<string, any>, Record<string, any>>

  • Parameters

    • key: "views"

    Returns View[]