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
| Property | Type | Description |
|---|---|---|
uiLayout.controlled | { lensTableHeight: number; sdkPopupOpen: boolean; } | - |
uiLayout.controlled.lensTableHeight | number | - |
uiLayout.controlled.sdkPopupOpen | boolean | - |
uiLayout.derived | { bottomBarIframeHeight: number; lensTableHeight: number; } | - |
uiLayout.derived.bottomBarIframeHeight | number | - |
uiLayout.derived.lensTableHeight | number | - |
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; } | null | Configuration 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.disableLensSelectionDrawer | boolean | Only 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" | null | An app that the SDK can overlay over itself (without closing) |
uiLayout.windowDimensions | { height: number; width: number; } | - |
uiLayout.windowDimensions.height | number | - |
uiLayout.windowDimensions.width | number | - |