@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
src/prefabs/Layout/Layout.ts:32
Properties
currentLayout
• currentLayout: Number = 0
Defined in
src/prefabs/Layout/Layout.ts:29
name
• name: string
Defined in
src/prefabs/Layout/Layout.ts:26
options
• options: LayoutOptions
Defined in
src/prefabs/Layout/Layout.ts:27
root
• root: Mesh
Defined in
src/prefabs/Layout/Layout.ts:30
scene
• scene: Scene
Defined in
src/prefabs/Layout/Layout.ts:28
Methods
animatePosition
▸ animatePosition(obj, newPos): void
Parameters
| Name | Type |
|---|---|
obj | TransformNode |
newPos | Vector3 |
Returns
void
Defined in
src/prefabs/Layout/Layout.ts:188
animateRotation
▸ animateRotation(obj, newRot): void
Parameters
| Name | Type |
|---|---|
obj | TransformNode |
newRot | Vector3 |
Returns
void
Defined in
src/prefabs/Layout/Layout.ts:207
animateScale
▸ animateScale(obj, newScale): void
Parameters
| Name | Type |
|---|---|
obj | TransformNode |
newScale | Vector3 |
Returns
void
Defined in
src/prefabs/Layout/Layout.ts:227
attr
▸ attr(s, val): Layout
Parameters
| Name | Type |
|---|---|
s | string |
val | object |
Returns
Defined in
src/prefabs/Layout/Layout.ts:143
boundingBoxLocal
▸ boundingBoxLocal(selection): BoundingInfo
Parameters
| Name | Type |
|---|---|
selection | Selection |
Returns
BoundingInfo
Defined in
src/prefabs/Layout/Layout.ts:246
cylinderLayout
▸ cylinderLayout(): Layout
Returns
Defined in
src/prefabs/Layout/Layout.ts:69
planeLayout
▸ planeLayout(): Layout
Returns
Defined in
src/prefabs/Layout/Layout.ts:40
sphereLayout
▸ sphereLayout(): Layout
Returns
Defined in
src/prefabs/Layout/Layout.ts:107
update
▸ update(): Layout