diff --git a/docs/api/grafer-points-data.md b/docs/api/grafer-points-data.md index 670b561..e722166 100644 --- a/docs/api/grafer-points-data.md +++ b/docs/api/grafer-points-data.md @@ -14,6 +14,7 @@ An array of point objects to be loaded into Grafer. The PointData property list | Property | Type | Description | | :--- | :--- | :--- | | id | string - *optional* | Name of the point. Will be used as an ID when referencing point in node, edge, and label data. Will default to its index in the PointData array if left out. | +| parentId | string - *optional* | ID of the point which this point is the child of. Used to enable relative positioning of points and relative radius. Will default to *No Parent* if left out. | x | number | X-Coordinate of the point. | | y | number | Y-Coordinate of the point. | | z | number - *optional* | Z-Coordinate of the point. Will default to 0 if left out. | @@ -27,7 +28,19 @@ Data [mappings](../guides/mappings.md) are used to compute properties at runtime | Property | Type | Description | | :--- | :--- | :--- | | id | (datum: PointData) => string - *optional* | | +| parentId | (datum: PointData) => string - *optional* | | | x | (datum: PointData) => number - *optional* | | | y | (datum: PointData) => number - *optional* | | | z | (datum: PointData) => number - *optional* | | | radius | (datum: PointData) => number - *optional* | | + +### `options` +###### { [key: string]: any } - *optional* + +An object containing configuration options for the points. + +| Property | Type | Description | +| :--- | :--- | :--- | +| positionHierarchyType | HierarchyTypes | Changes how point hierarchies changes the point positions. See [HierarchyTypes](./hierarchy-types.md) for more information. | +| radiusHierarchyType | HierarchyTypes | Changes how point hierarchies changes the point radius. See [HierarchyTypes](./hierarchy-types.md) for more information. | +| maxHierarchyDepth | number | Sets the maximum hierarchy depth that any point will have. Defaults to 100. | diff --git a/src/data/GraphPoints.ts b/src/data/GraphPoints.ts index 203e2bc..722f47b 100755 --- a/src/data/GraphPoints.ts +++ b/src/data/GraphPoints.ts @@ -12,8 +12,8 @@ export enum HierarchyTypes { } export interface PointOptions { - positionClassMode?: HierarchyTypes - radiusClassMode?: HierarchyTypes + positionHierarchyType?: HierarchyTypes + radiusHierarchyType?: HierarchyTypes maxHierarchyDepth?: number }