Skip to content

gi-nx


gi-nx / GiraffeStateUiLayout

ts
type GiraffeStateUiLayout = {
  uiLayout: {
     controlled: {
        leftBarOpen: boolean;
        leftBarOpenWidth: number;
        lensTableHeight: number;
        rightBarOpen: boolean;
        rightBarOpenWidth: number;
        sdkPopupOpen: boolean;
     };
     derived: {
        bottomBarIframeHeight: number;
        leftBarWidth: number;
        lensTableHeight: number;
        rightBarWidth: number;
     };
     setBySdk: {
        bottomBarIframe:   | {
           height: number;
           url: string;
         }
           | null;
        contextMenuItems: {
           label: string;
        }[];
        disableLensSelectionDrawer: boolean;
        disableProjectRightDrawer: boolean;
        secondaryApp: "Urban" | "Analytics" | "Solar" | "Terrain" | null;
     };
     windowDimensions: {
        height: number;
        width: number;
     };
  };
};

Properties

PropertyTypeDescription
uiLayout.controlled{ leftBarOpen: boolean; leftBarOpenWidth: number; lensTableHeight: number; rightBarOpen: boolean; rightBarOpenWidth: number; sdkPopupOpen: boolean; }-
uiLayout.controlled.leftBarOpenboolean-
uiLayout.controlled.leftBarOpenWidthnumber-
uiLayout.controlled.lensTableHeightnumber-
uiLayout.controlled.rightBarOpenboolean-
uiLayout.controlled.rightBarOpenWidthnumber-
uiLayout.controlled.sdkPopupOpenboolean-
uiLayout.derived{ bottomBarIframeHeight: number; leftBarWidth: number; lensTableHeight: number; rightBarWidth: number; }-
uiLayout.derived.bottomBarIframeHeightnumber-
uiLayout.derived.leftBarWidthnumber-
uiLayout.derived.lensTableHeightnumber-
uiLayout.derived.rightBarWidthnumber-
uiLayout.setBySdk{ bottomBarIframe: | { height: number; url: string; } | null; contextMenuItems: { label: string; }[]; disableLensSelectionDrawer: boolean; disableProjectRightDrawer: boolean; secondaryApp: "Urban" | "Analytics" | "Solar" | "Terrain" | null; }-
uiLayout.setBySdk.bottomBarIframe| { height: number; url: string; } | nullConfiguration for an iframe rendered in the bottom bar of the Giraffe UI
uiLayout.setBySdk.contextMenuItems{ label: string; }[]Custom items added to the map's right-click context menu
uiLayout.setBySdk.disableLensSelectionDrawerbooleanOnly relevant in a space, not a project. Prevents project or feature details from showing over the top of the app
uiLayout.setBySdk.disableProjectRightDrawerbooleanOnly relevant in a space. Suppresses the project preview drawer that opens on the right when a project is left-clicked on the map
uiLayout.setBySdk.secondaryApp"Urban" | "Analytics" | "Solar" | "Terrain" | nullAn app that the SDK can overlay over itself (without closing)
uiLayout.windowDimensions{ height: number; width: number; }-
uiLayout.windowDimensions.heightnumber-
uiLayout.windowDimensions.widthnumber-