@jpmorganchase/anu / Exports
@jpmorganchase/anu 
Table of contents 
Classes 
- AxesConfig
 - Axis
 - Layout
 - MeshMap
 - OrdinalChromatic
 - PlaneText
 - Selection
 - SequentialChromatic
 - TextureGlobe
 - TextureMap
 
Variables 
Functions 
- bind
 - bindClone
 - bindInstance
 - bindThinInstance
 - create
 - createAxes
 - createBrush
 - createMeshMap
 - createPlaneText
 - createTextureGlobe
 - createTextureMap
 - cylinderLayout
 - ordinalChromatic
 - planeLayout
 - select
 - selectData
 - selectId
 - selectName
 - selectTag
 - sequentialChromatic
 
Variables 
schemes 
• schemes: StringByAny
Defined in 
src/prefabs/Chromatic/Chromatic.ts:105
Functions 
bind 
▸ bind<MeshType>(shape, options?, data?, scene?): Selection
Take a shape type, a scene, and data. For each index in the data create a new mesh for each node in the selection as the parent. The data index of the mesh is also attached to the mesh node object under the metadata property.
Type parameters 
| Name | Type | 
|---|---|
MeshType | extends keyof MeshTypes | 
Parameters 
| Name | Type | Description | 
|---|---|---|
shape | MeshType | A string of the type of the mesh geometry being created. | 
options? | Property<MeshTypes, MeshType> | A object containing the initial mesh parameters for the selected geometry, can be either values or functions. | 
data | any[] | The data to bind elements too, must be passed as a list of objects where each object represents a row of tabular data. | 
scene? | Scene | The Babylon scene you are targeting. | 
Returns 
An instance of Selection, a class containing a array of selected nodes, the scene, and the functions of the class Selection, or undefined if a selection could not be made.
Defined in 
bindClone 
▸ bindClone(mesh, data?, scene?): Selection
Take a selection, a mesh, and data. For each index in the data clone a new mesh. The data index of the mesh is also attached to the mesh node object under the metadata property.
Parameters 
| Name | Type | Description | 
|---|---|---|
mesh | Mesh | The mesh to create instances from. | 
data | any[] | The data to bind elements too, must be passed as a list of objects where each object represents a row of tabular data. | 
scene? | Scene | - | 
Returns 
An instance of Selection, a class containing a array of selected nodes, the scene, and the functions of the class Selection, or undefined if a selection could not be made.
Defined in 
bindInstance 
▸ bindInstance(mesh, data?, scene?): Selection
Take a selection, a shape type, and data. For each index in the data create a new mesh for each node in the selection as the parent. The data index of the mesh is also attached to the mesh node object under the metadata property.
Parameters 
| Name | Type | Description | 
|---|---|---|
mesh | Mesh | The mesh to create instances from. | 
data | any[] | The data to bind elements too, must be passed as a list of objects where each object represents a row of tabular data. | 
scene? | Scene | - | 
Returns 
An instance of Selection, a class containing a array of selected nodes, the scene, and the functions of the class Selection, or undefined if a selection could not be made.
Defined in 
bindThinInstance 
▸ bindThinInstance(mesh, data?, scene?): Selection
Take a selection, a shape type, and data. For each index in the data create a new mesh for each node in the selection as the parent. The data index of the mesh is also attached to the mesh node object under the metadata property.
Parameters 
| Name | Type | Description | 
|---|---|---|
mesh | Mesh | The mesh to create instances from. | 
data | any[] | The data to bind elements too, must be passed as a list of objects where each object represents a row of tabular data. | 
scene? | Scene | - | 
Returns 
An instance of Selection, a class containing a array of selected nodes, the scene, and the functions of the class Selection, or undefined if a selection could not be made.
Defined in 
create 
▸ create<MeshType>(shape, name, options?, data?, scene?): Mesh
Helper function to build meshes of a specified type with options optionally set with functions and data.
Type parameters 
| Name | Type | 
|---|---|
MeshType | extends keyof MeshTypes | 
Parameters 
| Name | Type | Description | 
|---|---|---|
shape | MeshType | The name of the mesh type you want to create. | 
name | string | The string that will be used as the inital mesh ID and name. | 
options | Property<MeshTypes, MeshType> | An object containg the mesh parametetrs as either absolutle values or functions. | 
data | object | An object containg the data that may be used to execute any functions passed in options. | 
scene? | Scene | The scene to create the mesh in. | 
Returns 
Mesh
A mesh object created with the passed parameters.
Defined in 
createAxes 
▸ createAxes(name, scene, options): Axis
Creates an instance of Axes with the specified configuration.
This function supports two argument orders for backward compatibility:
createAxes(name, scene, options)createAxes(name, options, scene?)
Parameters 
| Name | Type | Description | 
|---|---|---|
name | string | The name of the axes. | 
scene | Scene | - | 
options | AxesOptionsInterface | AxesConfig | - | 
Returns 
An instance of Axes configured with the specified options.
Remarks
For more information, see the Axes Documentation.
Example
const options: AxesOptionsInterface = { scale: {x: scaleX, y: scaleY, z: scaleZ} };
const axes = createAxes('myAxes', scene, options);Defined in 
▸ createAxes(name, options, scene?): Axis
Creates an instance of Axes with the specified configuration.
This function supports two argument orders for backward compatibility:
createAxes(name, scene, options)createAxes(name, options, scene?)
Parameters 
| Name | Type | Description | 
|---|---|---|
name | string | The name of the axes. | 
options | AxesOptionsInterface | AxesConfig | - | 
scene? | Scene | - | 
Returns 
An instance of Axes configured with the specified options.
Remarks
For more information, see the Axes Documentation.
Example
const options: AxesOptionsInterface = { scale: {x: scaleX, y: scaleY, z: scaleZ} };
const axes = createAxes('myAxes', scene, options);Defined in 
createBrush 
▸ createBrush(name, scene, options): Brush
Creates an instance of Brush with the specified configuration.
This function supports two argument orders for backward compatibility, scene is optional if passed last:
createBrush(name, scene, options)createBrush(name, options, scene?)
Parameters 
| Name | Type | Description | 
|---|---|---|
name | string | The name of the brush. | 
scene | Scene | - | 
options | BrushOptionsInterface | - | 
Returns 
Brush
An instance of Brush configured with the specified options.
Throws
Will throw an error if no scales are defined in the options.
Throws
Will throw an error if no parent is defined in the options.
Remarks
The function determines the order of the scene and options arguments based on their types. If arg2 is an instance of Scene, it is treated as the scene, and arg3 is treated as the options. Otherwise, arg2 is treated as the options, and arg3 is treated as the scene.
The options parameter allows for extensive customization of the brush, including scales, material, and axes transformations.
For more information, see the Brush Documentation.
Defined in 
src/prefabs/Brushing/brush.ts:393
▸ createBrush(name, options, scene?): Brush
Creates an instance of Brush with the specified configuration.
This function supports two argument orders for backward compatibility, scene is optional if passed last:
createBrush(name, scene, options)createBrush(name, options, scene?)
Parameters 
| Name | Type | Description | 
|---|---|---|
name | string | The name of the brush. | 
options | BrushOptionsInterface | - | 
scene? | Scene | - | 
Returns 
Brush
An instance of Brush configured with the specified options.
Throws
Will throw an error if no scales are defined in the options.
Throws
Will throw an error if no parent is defined in the options.
Remarks
The function determines the order of the scene and options arguments based on their types. If arg2 is an instance of Scene, it is treated as the scene, and arg3 is treated as the options. Otherwise, arg2 is treated as the options, and arg3 is treated as the scene.
The options parameter allows for extensive customization of the brush, including scales, material, and axes transformations.
For more information, see the Brush Documentation.
Defined in 
src/prefabs/Brushing/brush.ts:394
createMeshMap 
▸ createMeshMap(name, options, scene?): MeshMap
Parameters 
| Name | Type | 
|---|---|
name | string | 
options | Object | 
options.cot? | Node | TransformNode | Mesh | 
options.depth? | number | 
options.geoJson | GeoGeometryObjects | 
options.projection? | GeoProjection | 
options.simplification? | number | 
options.size? | [number, number] | 
options.transform? | [number, number] | 
scene? | Scene | 
Returns 
Defined in 
src/prefabs/Mapping/MeshMap.ts:108
createPlaneText 
▸ createPlaneText(name, options, scene): PlaneText
Creates a new PlaneText prefab.
Parameters 
| Name | Type | Description | 
|---|---|---|
name | string | The name of this PlaneText. | 
options | PlaneTextOptions | An options object of the PlaneText. | 
scene | Scene | The target scene for the created PlaneText. | 
Returns 
Defined in 
src/prefabs/Text/planeText.ts:226
createTextureGlobe 
▸ createTextureGlobe(name, options?, scene?): TextureGlobe
Parameters 
| Name | Type | 
|---|---|
name | string | 
options | Object | 
options.diameter? | number | 
options.layers? | TileLayer<any>[] | 
options.resolution? | Vector2 | 
options.view? | View | 
scene? | Scene | 
Returns 
Defined in 
src/prefabs/Mapping/textureGlobe.ts:131
createTextureMap 
▸ createTextureMap(name, options?, scene?): TextureMap
Parameters 
| Name | Type | 
|---|---|
name | string | 
options | Object | 
options.layers? | TileLayer<any>[] | 
options.mapHeight? | number | 
options.mapWidth? | number | 
options.meshSize? | number | 
options.view? | View | 
scene? | Scene | 
Returns 
Defined in 
src/prefabs/Mapping/textureMap.ts:193
cylinderLayout 
▸ cylinderLayout(name, options, scene): Layout
Parameters 
| Name | Type | 
|---|---|
name | string | 
options | LayoutOptions | 
scene | Scene | 
Returns 
Defined in 
src/prefabs/Layout/Layout.ts:281
ordinalChromatic 
▸ ordinalChromatic(scheme): OrdinalChromatic
Parameters 
| Name | Type | 
|---|---|
scheme | string | string[] | 
Returns 
Defined in 
src/prefabs/Chromatic/Chromatic.ts:93
planeLayout 
▸ planeLayout(name, options, scene): Layout
Parameters 
| Name | Type | 
|---|---|
name | string | 
options | LayoutOptions | 
scene | Scene | 
Returns 
Defined in 
src/prefabs/Layout/Layout.ts:269
select 
▸ select(name, scene): Selection
Select all nodes from the scene graph matching the indicator and return them as a instance of Selection.
Parameters 
| Name | Type | Description | 
|---|---|---|
name | string | The prefix and text of the selection, selection types include: .<name>, #<id>, $<tags>. | 
scene | Scene | The babylon scene the to select from. | 
Returns 
an instance of Selection, a class contating a array of selected nodes, the scene, and the functions of the class Selection, or undefined if a selection could not be made.
Defined in 
selectData 
▸ selectData(key, value, scene?, useAndLogic?): Selection
Select all nodes from the scene graph with binded data matching the given key value pairs and return them as a instance of Selection.
Parameters 
| Name | Type | Description | 
|---|---|---|
key | string | string[] | the key or list of keys of the nodes to be selected. | 
value | string | number | number[] | string[] | the value or list of values corresponding to the respective key(s) passed. | 
scene? | Scene | The babylon scene the to select from. Defaults to the last created scene if undefined. | 
useAndLogic? | boolean | If true, all keys and values must exist and match to be selected. Defaults to false. | 
Returns 
an instance of Selection, a class contating a array of selected nodes, the scene, and the functions of the class Selection, or undefined if a selection could not be made.
Defined in 
selectId 
▸ selectId(id, scene): Selection
Select all nodes from the scene graph matching the given ID(s) and return them as a instance of Selection.
Parameters 
| Name | Type | Description | 
|---|---|---|
id | string | string[] | the ID or list of IDs of the nodes to be selected | 
scene | Scene | The babylon scene the to select from. | 
Returns 
an instance of Selection, a class contating a array of selected nodes, the scene, and the functions of the class Selection, or undefined if a selection could not be made.
Defined in 
selectName 
▸ selectName(name, scene): Selection
Select all nodes from the scene graph matching the given name(s) and return them as a instance of Selection.
Parameters 
| Name | Type | Description | 
|---|---|---|
name | string | string[] | the name or list of names of the nodes to be selected | 
scene | Scene | The babylon scene the to select from. | 
Returns 
an instance of Selection, a class contating a array of selected nodes, the scene, and the functions of the class Selection, or undefined if a selection could not be made.
Defined in 
selectTag 
▸ selectTag(tag, scene): Selection
Select all nodes from the scene graph matching the given tag(s) and return them as a instance of Selection.
Parameters 
| Name | Type | Description | 
|---|---|---|
tag | string | string[] | the tag and tag logic or list of tags of the nodes to be selected | 
scene | Scene | The babylon scene the to select from. | 
Returns 
an instance of Selection, a class contating a array of selected nodes, the scene, and the functions of the class Selection, or undefined if a selection could not be made.
Defined in 
sequentialChromatic 
▸ sequentialChromatic(scheme): SequentialChromatic
Parameters 
| Name | Type | 
|---|---|
scheme | string |