Class: ProjectUtils
Defined in: utils/ProjectUtils.ts:11
Utility methods for projects
Constructors
Constructor
new ProjectUtils():
ProjectUtils
Returns
ProjectUtils
Methods
getColorConfigs()
staticgetColorConfigs(project):ColorConfig[]
Defined in: utils/ProjectUtils.ts:64
Returns the color configurations of a project's labels, points and shapes
Parameters
project
Pick<Project, "labels" | "points" | "shapes">
The project, or only its labels, points and shapes
Returns
The color configurations, including the fill and stroke colors of shapes
getMarkerConfigs()
staticgetMarkerConfigs(project):MarkerConfig[]
Defined in: utils/ProjectUtils.ts:39
Returns the marker configurations of a project's points
Parameters
project
Pick<Project, "labels" | "points" | "shapes">
The project, or only its labels, points and shapes
Returns
The marker configurations
getOpacityConfigs()
staticgetOpacityConfigs(project):OpacityConfig[]
Defined in: utils/ProjectUtils.ts:106
Returns the opacity configurations of a project's labels, points and shapes
Parameters
project
Pick<Project, "labels" | "points" | "shapes">
The project, or only its labels, points and shapes
Returns
The opacity configurations, including the shape, fill and stroke opacities of shapes
getSizeConfigs()
staticgetSizeConfigs(project):SizeConfig[]
Defined in: utils/ProjectUtils.ts:51
Returns the size configurations of a project's points
Parameters
project
Pick<Project, "labels" | "points" | "shapes">
The project, or only its labels, points and shapes
Returns
The size configurations
getVisibilityConfigs()
staticgetVisibilityConfigs(project):VisibilityConfig[]
Defined in: utils/ProjectUtils.ts:85
Returns the visibility configurations of a project's labels, points and shapes
Parameters
project
Pick<Project, "labels" | "points" | "shapes">
The project, or only its labels, points and shapes
Returns
The visibility configurations, including the shape, fill and stroke visibilities of shapes
hasData()
statichasData(project):boolean
Defined in: utils/ProjectUtils.ts:18
Returns whether a project has any data objects
Parameters
project
Pick<Project, "images" | "labels" | "points" | "shapes" | "tables">
The project, or only its data objects
Returns
boolean
true if the project has images, labels, points, shapes or tables