DisplayGroups
@graph-viz › Globals › core › DisplayGroups
Hierarchy
- DisplayGroups
Index
Constructors
Properties
Methods
Constructors
constructor
+ new DisplayGroups(nodes
: DisplayNode[], groups
: DisplayGroup[]): DisplayGroups
Defined in packages/core/src/DisplayGroups.ts:57
Parameters:
Name | Type |
---|---|
nodes | DisplayNode[] |
groups | DisplayGroup[] |
Returns: DisplayGroups
Properties
Private
defaults
• defaults: Required‹GroupStyleAttributes› = GROUP_DEFAULTS
Defined in packages/core/src/DisplayGroups.ts:57
Private
meshes
• meshes: object
Defined in packages/core/src/DisplayGroups.ts:56
Type declaration:
- [ groupId: string]: Mesh
object
• object: Group‹› = new THREE.Group()
Defined in packages/core/src/DisplayGroups.ts:55
Methods
getGroupedNodes
▸ getGroupedNodes(nodes
: DisplayNode[]): object
Defined in packages/core/src/DisplayGroups.ts:119
Parameters:
Name | Type |
---|---|
nodes | DisplayNode[] |
Returns: object
- [ groupId: string]: DisplayNode[]
Private
renderCircle
▸ renderCircle(group
: DisplayGroup, nodesInGroup
: DisplayNode[]): void
Defined in packages/core/src/DisplayGroups.ts:183
Parameters:
Name | Type |
---|---|
group | DisplayGroup |
nodesInGroup | DisplayNode[] |
Returns: void
Private
renderConvexHull
▸ renderConvexHull(group
: DisplayGroup, nodesInGroup
: DisplayNode[]): void
Defined in packages/core/src/DisplayGroups.ts:137
Parameters:
Name | Type |
---|---|
group | DisplayGroup |
nodesInGroup | DisplayNode[] |
Returns: void
updateAll
▸ updateAll(nodes
: DisplayNode[], groups
: DisplayGroup[]): void
Defined in packages/core/src/DisplayGroups.ts:90
update all attributes and recompute everything to be sent to gpu
Parameters:
Name | Type | Description |
---|---|---|
nodes | DisplayNode[] | - |
groups | DisplayGroup[] |
Returns: void
updateDefaults
▸ updateDefaults(newDefaults
: GroupStyleAttributes | undefined, nodes
: DisplayNode[], groups
: DisplayGroup[]): void
Defined in packages/core/src/DisplayGroups.ts:70
update defaults undefined values reset to default
Parameters:
Name | Type | Description |
---|---|---|
newDefaults | GroupStyleAttributes | undefined | - |
nodes | DisplayNode[] | - |
groups | DisplayGroup[] |
Returns: void