Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NgxToolsComponent

Tools Component

See the ngx3js docs page for details.

<ngx3js-tools
[type]="'audio'" [url]="'sounds/ping_pong.mp3'"
></ngx3js-tools>
<ngx3js-tools
[type]="'pmremtexture'" [background]="'0xcccccc'"
></ngx3js-tools>
<ngx3js-tools
[type]="'pmremtexture'"
[storageName]="'spot1Lux.hdr'"
[storageOption]="{ path: 'textures/equirectangular/' }"
></ngx3js-tools>

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

background

background: string | number | NgxAbstractTextureComponent = null

The background of tools component

debug

debug: boolean = false

Debug this Object

enabled

enabled: boolean = true

Enabled or Not

encoding

encoding: string = null

THREE.LinearEncoding is the default. See the texture constants page for details of other formats. Note that if this value is changed on a texture after the material has been used, it is necessary to trigger a Material.needsUpdate for this value to be realized in the shader.

Three Type Value String(case insensitive)
THREE.LinearEncoding LinearEncoding ,
THREE.sRGBEncoding sRGBEncoding ,
THREE.GammaEncoding GammaEncoding ,
THREE.RGBEEncoding RGBEEncoding ,
THREE.LogLuvEncoding LogLuvEncoding ,
THREE.RGBM7Encoding RGBM7Encoding ,
THREE.RGBM16Encoding RGBM16Encoding ,
THREE.RGBDEncoding RGBDEncoding ,

format

format: string = null

The default is THREE.RGBAFormat, although the TextureLoader will automatically set this to THREE.RGBFormat for JPG images. See the texture constants page for details of other formats.

Three Type Value String(case insensitive)
THREE.AlphaFormat AlphaFormat, Alpha
THREE.RedFormat RedFormat, Red
THREE.RedIntegerFormat RedIntegerFormat, RedInteger
THREE.RGFormat RGFormat, RG
THREE.RGIntegerFormat RGIntegerFormat, RGInteger
THREE.RGBFormat RGBFormat, RGB
THREE.RGBIntegerFormat RGBIntegerFormat, RGBInteger
THREE.RGBAIntegerFormat RGBAIntegerFormat, RGBAInteger
THREE.LuminanceFormat LuminanceFormat, Luminance
THREE.LuminanceAlphaFormat LuminanceAlphaFormat, LuminanceAlpha
THREE.RGBEFormat RGBEFormat, RGBE
THREE.DepthFormat DepthFormat, Depth
THREE.DepthStencilFormat DepthStencilFormat, DepthStencil
THREE.RGBAFormat RGBAFormat, RGBA

Protected id

id: string = ''

The Id of abstract subscribe component

onDestory

onDestory: EventEmitter<NgxToolsComponent> = ...

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

onLoad

onLoad: EventEmitter<NgxToolsComponent> = ...

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

Protected selfAny

selfAny: any = ...

size

size: number = null

The size of tools component

storageName

storageName: string = null

The storageName of tools component

storageOption

storageOption: any = null

The storageOption of tools component

Protected subscribeType

subscribeType: string = null

Subscribe type of abstract subscribe component

tween

tween: {} = null

Tween animation params

Type declaration

  • [key: string]: any

type

type: string = ''

The Input of tools component

Notice - case insensitive.

url

url: string = null

The url of tools component

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

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

getAudio

  • getAudio(): AudioBuffer

Protected getChanges

  • getChanges(): string[]

getId

  • getId(): string

getObject

  • getObject<T>(): T

getSubscribe

  • getSubscribe(): Observable<string[]>

getTexture

Protected getTimeout

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

getTool

  • getTool(): any

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

setParent

  • setParent(parent: any): boolean

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

Protected unSubscribeRefer

  • unSubscribeRefer(key: string): void

Protected unSubscribeReferList

  • unSubscribeReferList(key: string): void

Protected unSubscription

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

updateInputParams

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

Generated using TypeDoc