@jpmorganchase/anu / Exports / Layout
Class: Layout
Table of contents
Constructors
Properties
Methods
- animatePosition
- animateRotation
- animateScale
- attr
- boundingBoxLocal
- cylinderLayout
- planeLayout
- sphereLayout
- update
Constructors
constructor
• new Layout(name
, options
, scene
): Layout
Parameters
Name | Type |
---|---|
name | string |
options | LayoutOptions |
scene | Scene |
Returns
Defined in
Properties
currentLayout
• currentLayout: Number
= 0
Defined in
name
• name: string
Defined in
options
• options: LayoutOptions
Defined in
root
• root: Mesh
Defined in
scene
• scene: Scene
Defined in
Methods
animatePosition
▸ animatePosition(obj
, newPos
): void
Parameters
Name | Type |
---|---|
obj | TransformNode |
newPos | Vector3 |
Returns
void
Defined in
animateRotation
▸ animateRotation(obj
, newRot
): void
Parameters
Name | Type |
---|---|
obj | TransformNode |
newRot | Vector3 |
Returns
void
Defined in
animateScale
▸ animateScale(obj
, newScale
): void
Parameters
Name | Type |
---|---|
obj | TransformNode |
newScale | Vector3 |
Returns
void
Defined in
attr
▸ attr(s
, val
): Layout
Parameters
Name | Type |
---|---|
s | string |
val | object |
Returns
Defined in
boundingBoxLocal
▸ boundingBoxLocal(selection
): BoundingInfo
Parameters
Name | Type |
---|---|
selection | Selection |
Returns
BoundingInfo
Defined in
cylinderLayout
▸ cylinderLayout(): Layout
Returns
Defined in
planeLayout
▸ planeLayout(): Layout
Returns
Defined in
sphereLayout
▸ sphereLayout(): Layout
Returns
Defined in
update
▸ update(): Layout