Methods
(async, generator) getNodeEdges(nodeRef) → {AsyncIterable.<DirEdgeRef>}
Get all edges attached to the specified node.
Parameters:
Name | Type | Description |
---|---|---|
nodeRef |
NodeRef |
Returns:
the edges coming from the specified node
- Type
- AsyncIterable.<DirEdgeRef>
(async, generator) getNodesTouchingArea(box, minRadius) → {AsyncIterable.<NodeRef>}
Get all nodes in or near a spatial box (according to their radii).
Parameters:
Name | Type | Description |
---|---|---|
box |
Box3 | |
minRadius |
number |
Returns:
- Type
- AsyncIterable.<NodeRef>
(async, generator) getObjectNodesTouchingArea(box, minRadius) → {AsyncIterable.<NodeRef>}
Get all nodes in or near a spatial box (according to their radii).
Parameters:
Name | Type | Description |
---|---|---|
box |
Box3 | |
minRadius |
number |
Returns:
- Type
- AsyncIterable.<NodeRef>
render() → {RenderContext}
Render Mapper into a div element
Returns:
Example: const renderContext = mapper.render(document.getElementById("mapper_div"))
- Type
- RenderContext