Skip to content

gi-nx


gi-nx / GiraffeStateUiLayout

ts
type GiraffeStateUiLayout = {
  uiLayout: {
     controlled: {
        lensTableHeight: number;
        sdkPopupOpen: boolean;
     };
     derived: {
        bottomBarIframeHeight: number;
        lensTableHeight: number;
     };
     panels:   | Required<LayoutBarVisibility> & {
        activeMapPanelId: PanelId | null;
        layoutId: string;
        maximizedPanelId: PanelId | null;
        name: string;
        root: PanelNode;
      }
        | null;
     setBySdk: {
        bottomBarIframe:   | {
           height: number;
           url: string;
         }
           | null;
        contextMenuItems: {
           label: string;
        }[];
        disableLensSelectionDrawer: boolean;
        secondaryApp: "Urban" | "Analytics" | "Solar" | "Terrain" | null;
     };
     windowDimensions: {
        height: number;
        width: number;
     };
  };
};

Properties ​

PropertyTypeDescription
uiLayout.controlled{ lensTableHeight: number; sdkPopupOpen: boolean; }-
uiLayout.controlled.lensTableHeightnumber-
uiLayout.controlled.sdkPopupOpenboolean-
uiLayout.derived{ bottomBarIframeHeight: number; lensTableHeight: number; }-
uiLayout.derived.bottomBarIframeHeightnumber-
uiLayout.derived.lensTableHeightnumber-
uiLayout.panels| Required<LayoutBarVisibility> & { activeMapPanelId: PanelId | null; layoutId: string; maximizedPanelId: PanelId | null; name: string; root: PanelNode; } | null-
uiLayout.setBySdk{ bottomBarIframe: | { height: number; url: string; } | null; contextMenuItems: { label: string; }[]; disableLensSelectionDrawer: 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.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-