Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
type: NZ_StagePanelType.Bottom,
};
case StagePanelLocation.BottomMost:
return {
id: "outer",
type: NZ_StagePanelType.Bottom,
};
case StagePanelLocation.Left:
return {
id: "inner",
type: NZ_StagePanelType.Left,
};
case StagePanelLocation.Right:
return {
id: "inner",
type: NZ_StagePanelType.Right,
};
case StagePanelLocation.Top:
return {
id: "inner",
type: NZ_StagePanelType.Top,
};
case StagePanelLocation.TopMost:
return {
id: "outer",
type: NZ_StagePanelType.Top,
};
}
};
export const getStagePanelType = (location: StagePanelLocation): NZ_StagePanelType => {
switch (location) {
case StagePanelLocation.Bottom:
case StagePanelLocation.BottomMost:
return NZ_StagePanelType.Bottom;
case StagePanelLocation.Left:
return NZ_StagePanelType.Left;
case StagePanelLocation.Right:
return NZ_StagePanelType.Right;
case StagePanelLocation.Top:
case StagePanelLocation.TopMost:
return NZ_StagePanelType.Top;
}
};