Skip to content

@jpmorganchase/anu / Exports

@jpmorganchase/anu

Table of contents

Classes

Variables

Functions

Variables

schemes

schemes: StringByAny

Defined in

prefabs/Chromatic/Chromatic.ts:81

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

NameType
MeshTypeextends keyof MeshTypes

Parameters

NameTypeDescription
shapeMeshTypeA 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.
dataobject[]The data to bind elements too, must be passed as a list of objects where each object represents a row of tabular data.
scene?SceneThe Babylon scene you are targeting.

Returns

Selection

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

bind.ts:21


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

NameType
MeshTypeextends keyof MeshTypes

Parameters

NameTypeDescription
shapeMeshTypeThe name of the mesh type you want to create.
namestringThe string that will be used as the inital mesh ID and name.
optionsProperty<MeshTypes, MeshType>An object containg the mesh parametetrs as either absolutle values or functions.
dataobjectAn object containg the data that may be used to execute any functions passed in options.
scene?SceneThe scene to create the mesh in.

Returns

Mesh

A mesh object created with the passed parameters.

Defined in

create.ts:103


createAxes

createAxes(name, scene, options): Axis

Parameters

NameType
namestring
sceneScene
optionsAxisOptions

Returns

Axis

Defined in

prefabs/Axis/Axis.ts:127


createMeshMap

createMeshMap(name, options, scene?): MeshMap

Parameters

NameType
namestring
optionsObject
options.cot?Node | Mesh | TransformNode
options.depth?number
options.geoJsonGeoGeometryObjects
options.projection?GeoProjection
options.simplification?number
options.size?[number, number]
options.transform?[number, number]
scene?Scene

Returns

MeshMap

Defined in

prefabs/Mapping/MeshMap.ts:86


createPlaneText

createPlaneText(name, options, scene): Mesh

Parameters

NameType
namestring
optionsplaneTextOptions
sceneScene

Returns

Mesh

Defined in

prefabs/Text/planeText.ts:65


createTextureGlobe

createTextureGlobe(name, options?, scene?): TextureGlobe

Parameters

NameType
namestring
optionsObject
options.diameter?number
options.layers?TileLayer<any>[]
options.resolution?Vector2
options.view?View
scene?Scene

Returns

TextureGlobe

Defined in

prefabs/Mapping/textureGlobe.ts:123


createTextureMap

createTextureMap(name, options?, scene?): TextureMap

Parameters

NameType
namestring
optionsObject
options.layers?TileLayer<any>[]
options.mapHeight?number
options.mapWidth?number
options.meshSize?number
options.view?View
scene?Scene

Returns

TextureMap

Defined in

prefabs/Mapping/textureMap.ts:191


cylinderLayout

cylinderLayout(name, options, scene): Layout

Parameters

NameType
namestring
optionsLayoutOptions
sceneScene

Returns

Layout

Defined in

prefabs/Layout/Layout.ts:258


ordinalChromatic

ordinalChromatic(scheme): OrdinalChromatic

Parameters

NameType
schemestring | string[]

Returns

OrdinalChromatic

Defined in

prefabs/Chromatic/Chromatic.ts:68


planeLayout

planeLayout(name, options, scene): Layout

Parameters

NameType
namestring
optionsLayoutOptions
sceneScene

Returns

Layout

Defined in

prefabs/Layout/Layout.ts:244


select

select(name, scene): Selection

Select all nodes from the scene graph matching the indicator and return them as a instance of Selection.

Parameters

NameTypeDescription
namestringThe prefix and text of the selection, selection types include: .<name>, #<id>, $<tags>.
sceneSceneThe babylon scene the to select from.

Returns

Selection

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

select.ts:17


selectData

selectData(key, value, scene): 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

NameTypeDescription
keystring | string[]the key or list of keys of the nodes to be selected.
valuestring | number | string[] | number[]the value or list of values corresponding to the respective key(s) passed.
sceneSceneThe babylon scene the to select from.

Returns

Selection

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

select.ts:98


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

NameTypeDescription
idstring | string[]the ID or list of IDs of the nodes to be selected
sceneSceneThe babylon scene the to select from.

Returns

Selection

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

select.ts:61


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

NameTypeDescription
namestring | string[]the name or list of names of the nodes to be selected
sceneSceneThe babylon scene the to select from.

Returns

Selection

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

select.ts:44


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

NameTypeDescription
tagstring | string[]the tag and tag logic or list of tags of the nodes to be selected
sceneSceneThe babylon scene the to select from.

Returns

Selection

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

select.ts:78


sequentialChromatic

sequentialChromatic(scheme): SequentialChromatic

Parameters

NameType
schemestring

Returns

SequentialChromatic

Defined in

prefabs/Chromatic/Chromatic.ts:72