Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NgxPositionComponent

The Position component.

See the ngx3js docs page for details. See the ngx position page for a live demo.

<ngx3js-position
[x]="0" [y]="7.5" [z]="0" [multiply]="10" [normalize]="false"
></ngx3js-position>
<ngx3js-geometry>
<ngx3js-position
[type]="'scale'" [x]="2" [y]="2" [z]="2"
></ngx3js-position>
</ngx3js-geometry>

Hierarchy

Implements

  • OnInit

Index

Constructors

constructor

Properties

Protected OBJECT_ATTR

OBJECT_ATTR: string[] = ...

Object attr of abstract subscribe component

Protected _changeList

_changeList: string[] = null

Change list of abstract subscribe component

Protected _needUpdate

_needUpdate: boolean = true

Need update of abstract subscribe component

camera

camera: any = null

The camera of position component

debug

debug: boolean = false

Debug this Object

enabled

enabled: boolean = true

Enabled or Not

Protected id

id: string = ''

The Id of abstract subscribe component

multiply

multiply: number = null

Multiplies this vector by scalar s.

normalize

normalize: boolean = false

Converts this vector to a unit vector - that is, sets it equal to a vector with the same direction as this one, but Vector3.length 1.

onDestory

onDestory: EventEmitter<NgxPositionComponent> = ...

Will be called when before destory. The argument will be the loaded self

onLoad

onLoad: EventEmitter<NgxPositionComponent> = ...

Will be called when load completes. The argument will be the loaded self

overrideParams

overrideParams: {} = null

The override params

Type declaration

  • [key: string]: any

Protected parent

parent: any = null

The Parent of abstract subscribe component

phi

phi: number = null

The phi of position component

radius

radius: number = null

The radius of position component

refName

refName: string = null

The refName of position component

refer

refer: any = null

The refer of position component

Protected selfAny

selfAny: any = ...

setfrom

setfrom: string = null

The Input of position component

Notice - case insensitive.

Protected subscribeType

subscribeType: string = null

Subscribe type of abstract subscribe component

theta

theta: number = null

The theta of position component

tween

tween: {} = null

Tween animation params

Type declaration

  • [key: string]: any

type

type: string = 'position'

The type of position component

position - the position of Object3D. rotate - the rotation angular of geometry. scale - the scale of geometry. translate - the traslate of geometry.

see

THREE.Object3D#position

see

THREE.BufferGeometry#rotateX

see

THREE.BufferGeometry#rotateY

see

THREE.BufferGeometry#rotateZ

see

THREE.BufferGeometry#translate

see

THREE.BufferGeometry#scale

userData

userData: any = null

An object that can be used to store custom data about the Object3D. It should not hold references to functions as these will not be cloned.

windowExport

windowExport: string = null

Export this Object to window global variables

x

x: number = null

The current value of the x component.

y

y: number = null

The current value of the y component.

z

z: number = null

The current value of the z component.

Accessors

needUpdate

  • set needUpdate(value: boolean): void
  • Sets need update

    Parameters

    • value: boolean

    Returns void

Methods

addChanges

  • addChanges(key: string | string[] | SimpleChanges): void

Protected applyChanges

  • applyChanges(changes: string[]): void

Protected callOnLoad

  • callOnLoad(): void

Protected checkChanges

  • checkChanges(changes: SimpleChanges): SimpleChanges

Protected clearChanges

  • clearChanges(): void

Protected consoleLog

  • consoleLog(key: string, object: any, level?: string): void

Protected consoleLogTime

  • consoleLogTime(key: string, object: any, repeat?: number): void

Protected destroyLocalComponent

  • destroyLocalComponent(key: string): void

dispose

  • dispose(): void

Protected getChanges

  • getChanges(): string[]

getId

  • getId(): string

getObject

  • getObject<T>(): T

getPosition

getSubscribe

  • getSubscribe(): Observable<string[]>

getTagAttribute

Protected getTimeout

  • getTimeout(timeDelay?: number): Promise<void>

getUserData

  • getUserData(): {}

Protected initLocalComponent

  • initLocalComponent<T>(key: string, component: T): T

Protected isIdEuals

  • isIdEuals(id: string): boolean

ngAfterContentInit

  • ngAfterContentInit(): void

ngOnChanges

  • ngOnChanges(changes: SimpleChanges): void
  • A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated. default change detector has checked data-bound properties if at least one has changed, and before the view and content children are checked.

    Parameters

    • changes: SimpleChanges

      The changed properties.

    Returns void

ngOnDestroy

  • ngOnDestroy(): void

ngOnInit

  • ngOnInit(): void
  • A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.

    Returns void

resetTween

  • resetTween(): void

runSubscribeNext

  • runSubscribeNext(key: string | string[]): void

Protected setObject

  • setObject(obj: any): void

setObject3d

setParent

  • setParent(parent: any): boolean

setPosition

  • setPosition(x?: number, y?: number, z?: number): void

setSubscribeNext

  • setSubscribeNext(key: string | string[]): void

setSubscribeType

  • setSubscribeType(subscribeType: string): void

setTween

  • setTween(tweenData: {}): void

setTweenTarget

  • setTweenTarget(tweenTarget: any): void

setUserData

  • setUserData(key: string, value: any): void

Protected subscribeListQuery

  • subscribeListQuery(queryList: QueryList<any>, subscribeKey: string, changeKey: string): void

Protected subscribeListQueryChange

  • subscribeListQueryChange(queryList: QueryList<any>, subscribeKey: string, changeKey: string): void

Protected subscribeRefer

  • subscribeRefer(key: string, subscription: Subscription): void

Protected subscribeReferList

  • subscribeReferList(key: string, subscription: Subscription): void

synkObject3d

  • synkObject3d(position?: I3JS.Vector3, key?: string): void

Protected unSubscribeRefer

  • unSubscribeRefer(key: string): void

Protected unSubscribeReferList

  • unSubscribeReferList(key: string): void

Protected unSubscription

  • unSubscription(subscriptions: Subscription[]): Subscription[]

unsetObject3d

updateInputParams

  • updateInputParams(params: {}, firstChange?: boolean, changes?: SimpleChanges, type?: string): void

Generated using TypeDoc