@graphty/graphty-element / index / isViewMode
Function: isViewMode() ​
isViewMode(
value): value is "2d" | "3d" | "ar" | "vr"
Defined in: graphty-element/src/config/ViewMode.ts:28
Type guard to check if a string is a valid ViewMode
Parameters ​
value ​
string
String value to check
Returns ​
value is "2d" | "3d" | "ar" | "vr"
True if value is a valid ViewMode