Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NgxThreeUtil

Three util

See the ngx3js docs page for details.

Hierarchy

  • NgxThreeUtil

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Static lastRenderer

lastRenderer: any = null

Last renderer of three util

Static stats

stats: NgxThreeStats = null

The Stats of three util

Methods

Static addCssStyle

  • addCssStyle(ele: HTMLElement, styles: string | ICssStyle, clazzName?: string, classPrefix?: string, vertualClass?: string): string
  • Adds css style

    Parameters

    • ele: HTMLElement
    • styles: string | ICssStyle
    • Optional clazzName: string
    • Optional classPrefix: string
    • Optional vertualClass: string

    Returns string

    css style

Static camelCaseToDash

  • camelCaseToDash(myStr: string): string

Static clear

  • clear(clearCache?: boolean): void

Static clearGui

Static clearGuiFolder

  • clearGuiFolder(gui: I3JS.GUI, name: string): void

Static clearLoadingManager

  • clearLoadingManager(): void

Static clearThreeComponent

  • clearThreeComponent(): void

Static cssEject

  • cssEject(id: string, indoc?: any): boolean
  • Css eject

    Parameters

    • id: string
    • Optional indoc: any

    Returns boolean

    true if eject

Static cssInject

  • cssInject(cssContent: string, id?: string, indoc?: any): boolean
  • Css inject

    Parameters

    • cssContent: string
    • Optional id: string
    • Optional indoc: any

    Returns boolean

    true if inject

Static getAngle2RadianSafe

  • getAngle2RadianSafe(angle: number, altangle?: number): number
  • Gets angle2 radian safe

    Parameters

    • angle: number
    • Optional altangle: number

    Returns number

    angle2 radian safe

Static getAngleSafe

  • getAngleSafe(angle: string | number, altangle?: number): number
  • Gets angle safe

    Parameters

    • angle: string | number
    • Optional altangle: number

    Returns number

    angle safe

Static getBlendDstSafe

  • Which blending to use when displaying objects with this material. This must be set to CustomBlending to use custom blendSrc, blendDst or blendEquation. See the blending mode constants for all possible values. Default is NormalBlending.

    Three Type Value String(case insensitive)
    THREE.ZeroFactor ZeroFactor , Zero
    THREE.OneFactor OneFactor , One
    THREE.SrcColorFactor SrcColorFactor , SrcColor
    THREE.OneMinusSrcColorFactor OneMinusSrcColorFactor , OneMinusSrcColor
    THREE.SrcAlphaFactor SrcAlphaFactor , SrcAlpha
    THREE.OneMinusSrcAlphaFactor OneMinusSrcAlphaFactor , OneMinusSrcAlpha
    THREE.DstAlphaFactor DstAlphaFactor , DstAlpha
    THREE.OneMinusDstAlphaFactor OneMinusDstAlphaFactor , OneMinusDstAlpha
    THREE.DstColorFactor DstColorFactor , DstColor
    THREE.OneMinusDstColorFactor OneMinusDstColorFactor , OneMinusDstColor

    Parameters

    • baseBlendSrc: string
    • Optional def: string

    Returns BlendingDstFactor

    blend src

Static getBlendEquationSafe

  • Gets blend equation custom blending equations (numbers start from 100 not to clash with other mappings to OpenGL constants defined in Texture.js)

    Three Type Value String(case insensitive)
    THREE.AddEquation AddEquation, Add
    THREE.SubtractEquation SubtractEquation, Subtract
    THREE.ReverseSubtractEquation ReverseSubtractEquation, ReverseSubtract, Reverse
    THREE.MinEquation MinEquation, Min
    THREE.MaxEquation MaxEquation, Max

    Parameters

    • baseBlendEquation: string
    • Optional def: string

    Returns BlendingEquation

    blend equation

Static getBlendModeSafe

  • Gets blend mode

    Three Type Value String(case insensitive)
    THREE.NormalAnimationBlendMode NormalAnimationBlendMode, NormalAnimation, Normal
    THREE.AdditiveAnimationBlendMode AdditiveAnimationBlendMode, AdditiveAnimation, Additive

    Parameters

    • baseBlendMode: string
    • Optional def: string

    Returns AnimationBlendMode

    blend mode

Static getBlendSrcSafe

Static getBlendingSafe

  • getBlendingSafe(baseBlending: string, altBlending?: string, def?: string): Blending
  • Which blending to use when displaying objects with this material. Default is NormalBlending.

    Three Type Value String(case insensitive)
    THREE.NoBlending NoBlending, No
    THREE.NormalBlending NormalBlending, Normal
    THREE.AdditiveBlending AdditiveBlending, Additive
    THREE.SubtractiveBlending SubtractiveBlending, Subtractive
    THREE.MultiplyBlending MultiplyBlending, Multiply
    THREE.CustomBlending CustomBlending, Custom

    Parameters

    • baseBlending: string
    • Optional altBlending: string
    • Optional def: string

    Returns Blending

    blending safe

Static getBooleanSafe

  • getBooleanSafe(bl: string | number | boolean, altbl?: string | number | boolean): boolean
  • Gets boolean safe

    Parameters

    • bl: string | number | boolean
    • Optional altbl: string | number | boolean

    Returns boolean

    true if boolean safe

Static getBuiltinShaderAttributeNameSafe

Static getChildElementSave

  • getChildElementSave(parentEle: HTMLElement): HTMLElement
  • Gets child element save

    Parameters

    • parentEle: HTMLElement

    Returns HTMLElement

    child element save

Static getClock

Static getColor

Static getColorAlphaSafe

Static getColorHSL

Static getColorHex

Static getColorHexString

Static getColorMultiplySafe

Static getColorRGB

Static getColorSafe

Static getColorStyle

Static getCombineSafe

  • getCombineSafe(baseCombine: string, def?: string): Combine

Static getCompressedPixelFormatSafe

  • getCompressedPixelFormatSafe(baseFormat: string, altFormat?: string, def?: string): CompressedPixelFormat
  • Gets pixel format safe

    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

    Parameters

    • baseFormat: string
    • Optional altFormat: string
    • Optional def: string

    Returns CompressedPixelFormat

    pixel format safe

Static getControls

Static getControlsOnRender

Static getControlsParams

Static getCubeImage

  • getCubeImage(cubeImage: string[]): string[]

Static getCullFaceSafe

  • getCullFaceSafe(baseCullFace: string, altCullFace?: string, def?: string): CullFace
  • Gets CullFace safe

    Three Type Value String(case insensitive)
    THREE.CullFaceNone none
    THREE.CullFaceBack back
    THREE.CullFaceFront front
    THREE.CullFaceFrontBack frontback

    Parameters

    • baseCullFace: string
    • Optional altCullFace: string
    • Optional def: string

    Returns CullFace

    CullFace safe

Static getDepthModesSafe

  • getDepthModesSafe(baseDepthFunc: string, def?: string): DepthModes
  • Gets depth func

    Three Type Value String(case insensitive)
    THREE.NeverDepth NeverDepth, Never
    THREE.AlwaysDepth AlwaysDepth, Always
    THREE.LessDepth LessDepth, Less
    THREE.LessEqualDepth LessEqualDepth, LessEqual
    THREE.EqualDepth EqualDepth, Equal
    THREE.GreaterEqualDepth GreaterEqualDepth, GreaterEqual
    THREE.GreaterDepth GreaterDepth, Greater
    THREE.NotEqualDepth NotEqualDepth, NotEqual

    Parameters

    • baseDepthFunc: string
    • Optional def: string

    Returns DepthModes

    depth func

Static getDepthPackingSafe

  • Gets depth packing, Depth packing strategies

    Three Type Value String(case insensitive)
    THREE.RGBADepthPacking RGBADepthPacking, RGBADepth, RGBA
    THREE.BasicDepthPacking BasicDepthPacking, BasicDepth, Basic

    Parameters

    • baseDepthPacking: string
    • Optional def: string

    Returns DepthPackingStrategies

    depth packing

Static getEulerSafe

  • getEulerSafe(x: string | number, y: string | number, z: string | number, altValue?: I3JS.Euler, isRequired?: boolean): I3JS.Euler
  • Gets euler safe

    Parameters

    • x: string | number
    • y: string | number
    • z: string | number
    • Optional altValue: I3JS.Euler
    • Optional isRequired: boolean

    Returns I3JS.Euler

    euler safe

Static getFirst

  • getFirst<T>(value: T | T[]): T

Static getGeometry

Static getGlslVersionSafe

  • getGlslVersionSafe(baseGlslVersion: string, def?: string): GLSLVersion
  • Gets glsl version

    Three Type Value String(case insensitive)
    THREE.GLSLVersion.GLSL1 GLSL1, GL1, 1
    THREE.GLSLVersion.GLSL3 GLSL3, GL3, 3

    Parameters

    • baseGlslVersion: string
    • Optional def: string

    Returns GLSLVersion

    glsl version

Static getGuiController

Static getGuiFolder

Static getHtmlCode

Static getIGuiControlParam

Static getInterpolationEndingSafe

  • Gets interpolation ending

    Three Type Value String(case insensitive)
    THREE.ZeroCurvatureEnding ZeroCurvatureEnding, ZeroCurvature
    THREE.ZeroSlopeEnding ZeroSlopeEnding, ZeroSlope
    THREE.WrapAroundEnding WrapAroundEnding, WrapAround

    Parameters

    • baseInterpolation: string
    • Optional def: string

    Returns InterpolationEndingModes

    interpolation ending

Static getInterpolationSafe

  • Gets interpolation

    Three Type Value String(case insensitive)
    THREE.InterpolateDiscrete InterpolateDiscrete, Discrete
    THREE.InterpolateLinear InterpolateLinear, Linear
    THREE.InterpolateSmooth InterpolateSmooth, Smooth

    Parameters

    • baseInterpolation: string
    • Optional def: string

    Returns InterpolationModes

    interpolation

Static getLight

Static getLoader

  • getLoader<T>(key: string, loader: I3JS.Loader, options?: any): T

Static getLoadingManager

Static getLookAt

Static getLoopSafe

  • Gets loop

    Three Type Value String(case insensitive)
    THREE.LoopOnce LoopOnce, Once
    THREE.LoopRepeat LoopRepeat, Repeat
    THREE.LoopPingPong LoopPingPong, PingPong

    Parameters

    • baseLoop: string
    • Optional def: string

    Returns AnimationActionLoopStyles

    loop

Static getMappingSafe

  • getMappingSafe(baseMapping: string, altMapping?: string, def?: string): Mapping
  • Gets mapping safe

    Three Type Value String(case insensitive)
    THREE.UVMapping UVMapping, UV
    THREE.CubeReflectionMapping CubeReflectionMapping, CubeReflection
    THREE.CubeRefractionMapping CubeRefractionMapping, CubeRefraction
    THREE.EquirectangularReflectionMapping EquirectangularReflectionMapping, EquirectangularReflection
    THREE.EquirectangularRefractionMapping EquirectangularRefractionMapping, EquirectangularRefraction
    THREE.CubeUVReflectionMapping CubeUVReflectionMapping, CubeUVReflection
    THREE.CubeUVRefractionMapping CubeUVRefractionMapping, CubeUVRefraction

    Parameters

    • baseMapping: string
    • Optional altMapping: string
    • Optional def: string

    Returns Mapping

    mapping safe

Static getMaterial

Static getMaterialByType

  • getMaterialByType(material: any, materialType?: string): I3JS.Material

Static getMaterialOne

Static getMatrix4Safe

Static getMesh

Static getMeshFind

Static getMouseSafe

  • getMouseSafe(baseMouse: string, altMouse?: string, def?: string): MOUSE

Static getNormalMapTypeSafe

  • getNormalMapTypeSafe(baseNormalMapType: string, def?: string): NormalMapTypes
  • Gets normal map type

    Three Type Value String(case insensitive)
    THREE.TangentSpaceNormalMap TangentSpaceNormalMap, TangentSpace
    THREE.ObjectSpaceNormalMap ObjectSpaceNormalMap, ObjectSpace

    Parameters

    • baseNormalMapType: string
    • Optional def: string

    Returns NormalMapTypes

    normal map type

Static getNumberSafe

  • getNumberSafe(num: string | number, altnum?: number): number
  • Gets number safe

    Parameters

    • num: string | number
    • Optional altnum: number

    Returns number

    number safe

Static getObject3d

  • getObject3d<T>(object3d: any, isRequired?: boolean): T

Static getParseFloat

  • getParseFloat(value: string, max?: number): number
  • Gets parse float

    Parameters

    • value: string
    • max: number = 1

    Returns number

    parse float

Static getPixelFormatGPUSafe

  • getPixelFormatGPUSafe(baseFormat: string, altFormat?: string, def?: string): PixelFormatGPU
  • Gets pixel format gpusafe, Internal Pixel Formats

    Parameters

    • baseFormat: string
    • Optional altFormat: string
    • Optional def: string

    Returns PixelFormatGPU

    pixel format gpusafe

Static getPixelFormatOrCompressedPixelFormatSafe

Static getPixelFormatSafe

  • getPixelFormatSafe(baseFormat: string, altFormat?: string, def?: string): PixelFormat
  • Gets pixel format safe

    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

    Parameters

    • baseFormat: string
    • Optional altFormat: string
    • Optional def: string

    Returns PixelFormat

    pixel format safe

Static getPmremGenerator

Static getPosition

Static getPrecisionSafe

  • getPrecisionSafe(basePrecision: string, def?: string): "highp" | "mediump" | "lowp"
  • Gets precision safe

    Three Type Value String(case insensitive)
    String highp
    String mediump
    String lowp

    Parameters

    • basePrecision: string
    • Optional def: string

    Returns "highp" | "mediump" | "lowp"

    precision safe

Static getRadian2AngleSafe

  • getRadian2AngleSafe(angle: number, altangle?: number): number
  • Gets radian2 angle safe

    Parameters

    • angle: number
    • Optional altangle: number

    Returns number

    radian2 angle safe

Static getRenderer

Static getRendererSize

Static getRigidbody

Static getRigidbodyComponent

  • getRigidbodyComponent(object: any): any
  • Gets rigidbody component

    Parameters

    • object: any

    Returns any

    rigidbody component

Static getRotation

Static getScale

Static getShadingSafe

  • getShadingSafe(baseSide: string, altSide?: string, def?: string): Shading
  • Gets Shading

    Three Type Value String(case insensitive)
    THREE.FlatShading Flat
    THREE.SmoothShading Smooth

    Parameters

    • baseSide: string
    • Optional altSide: string
    • Optional def: string

    Returns Shading

    Shading

Static getShadowMapTypeSafe

  • getShadowMapTypeSafe(baseShadowMapType: string, def?: string): ShadowMapType

Static getSideSafe

  • getSideSafe(baseSide: string, altSide?: string, def?: string): Side
  • Gets side

    Three Type Value String(case insensitive)
    THREE.FrontSide FrontSide , Front
    THREE.BackSide BackSide , Back
    THREE.DoubleSide DoubleSide , Double

    Parameters

    • baseSide: string
    • Optional altSide: string
    • Optional def: string

    Returns Side

    side

Static getSizeSubscribe

Static getStats

Static getStencilFuncSafe

  • getStencilFuncSafe(baseStencilFunc: string, def?: string): StencilFunc
  • Gets stencil func

    Three Type Value String(case insensitive)
    THREE.NeverStencilFunc NeverStencilFunc, Never
    THREE.LessStencilFunc LessStencilFunc, Less
    THREE.EqualStencilFunc EqualStencilFunc, Equal
    THREE.LessEqualStencilFunc LessEqualStencilFunc, LessEqual
    THREE.GreaterStencilFunc GreaterStencilFunc, Greater
    THREE.NotEqualStencilFunc NotEqualStencilFunc, NotEqual
    THREE.GreaterEqualStencilFunc GreaterEqualStencilFunc, GreaterEqual
    THREE.AlwaysStencilFunc AlwaysStencilFunc, Always

    Parameters

    • baseStencilFunc: string
    • Optional def: string

    Returns StencilFunc

    stencil func

Static getStencilOpSafe

  • getStencilOpSafe(baseStencilFail: string, def?: string): StencilOp
  • Gets stencil fail

    Three Type Value String(case insensitive)
    THREE.ZeroStencilOp ZeroStencilOp, Zero
    THREE.KeepStencilOp KeepStencilOp, Keep
    THREE.ReplaceStencilOp ReplaceStencilOp, Replace
    THREE.IncrementStencilOp IncrementStencilOp, Increment
    THREE.DecrementStencilOp DecrementStencilOp, Decrement
    THREE.IncrementWrapStencilOp IncrementWrapStencilOp, IncrementWrap
    THREE.DecrementWrapStencilOp DecrementWrapStencilOp, DecrementWrap
    THREE.InvertStencilOp InvertStencilOp, Invert

    Parameters

    • baseStencilFail: string
    • Optional def: string

    Returns StencilOp

    stencil fail

Static getStoreUrl

  • getStoreUrl(url: string): string

Static getSubscribe

  • getSubscribe(object: any, callBack: (key?: string) => void, nextKey: string): Subscription
  • Gets subscribe

    Parameters

    • object: any
    • callBack: (key?: string) => void
        • (key?: string): void
        • Parameters

          • Optional key: string

          Returns void

    • nextKey: string

    Returns Subscription

    subscribe

Static getTexture

  • getTexture(texture: any, refType?: string, isRequired?: boolean): I3JS.Texture

Static getTextureDataTypeSafe

  • getTextureDataTypeSafe(baseFormat: string, altFormat?: string, def?: string): TextureDataType
  • Gets texture data type safe

    Three Type Value String(case insensitive)
    THREE.ByteType ByteType, Byte
    THREE.ShortType ShortType, Short
    THREE.UnsignedShortType UnsignedShortType, UnsignedShort
    THREE.IntType IntType, Int
    THREE.UnsignedIntType UnsignedIntType, UnsignedInt
    THREE.FloatType FloatType, Float
    THREE.HalfFloatType HalfFloatType, HalfFloat
    THREE.UnsignedShort4444Type UnsignedShort4444Type, UnsignedShort4444
    THREE.UnsignedShort5551Type UnsignedShort5551Type, UnsignedShort5551
    THREE.UnsignedShort565Type UnsignedShort565Type, UnsignedShort565
    THREE.UnsignedInt248Type UnsignedInt248Type, UnsignedInt248
    THREE.UnsignedByteType UnsignedByteType, UnsignedByte

    Parameters

    • baseFormat: string
    • Optional altFormat: string
    • Optional def: string

    Returns TextureDataType

    texture data type safe

Static getTextureEncodingSafe

  • getTextureEncodingSafe(baseEncoding: string, altEncoding?: string, def?: string): TextureEncoding
  • Gets texture encoding safe

    Three Type Value String(case insensitive)
    THREE.sRGBEncoding sRGBEncoding, sRGB
    THREE.GammaEncoding GammaEncoding, Gamma
    THREE.RGBEEncoding RGBEEncoding, RGBE
    THREE.LogLuvEncoding LogLuvEncoding, LogLuv
    THREE.RGBM7Encoding RGBM7Encoding, RGBM7
    THREE.RGBM16Encoding RGBM16Encoding, RGBM16
    THREE.RGBDEncoding RGBDEncoding, RGBD
    THREE.LinearEncoding LinearEncoding, Linear

    Parameters

    • baseEncoding: string
    • Optional altEncoding: string
    • Optional def: string

    Returns TextureEncoding

    texture encoding safe

Static getTextureFilterSafe

  • getTextureFilterSafe(baseFilter: string, altFilter?: string, def?: string): TextureFilter
  • Gets texture filter safe

    Three Type Value String(case insensitive)
    THREE.NearestFilter NearestFilter, Nearest
    THREE.NearestMipmapNearestFilter NearestMipmapNearestFilter, nearestmipmapnearest
    THREE.NearestMipmapLinearFilter NearestMipmapLinearFilter, nearestmipmaplinear
    THREE.LinearMipmapNearestFilter LinearMipmapNearestFilter, linearmipmapnearest
    THREE.LinearMipmapLinearFilter LinearMipmapLinearFilter, linearmipmaplinear
    THREE.LinearFilter Linearfilter, linear

    Parameters

    • baseFilter: string
    • Optional altFilter: string
    • Optional def: string

    Returns TextureFilter

    texture filter safe

Static getThreeComponent

  • getThreeComponent(object: any): any

Static getTimeout

  • getTimeout(timeDelay?: number): Promise<void>
  • Gets timeout 특정 시간후에 이벤트 발생시키기

    Parameters

    • timeDelay: number = 50

    Returns Promise<void>

    timeout

Static getToneMappingSafe

  • getToneMappingSafe(baseToneMapping: string, def?: string): ToneMapping
  • Get The ToneMapping

    Three Type Value String(case insensitive)
    THREE.NoToneMapping No
    THREE.LinearToneMapping Linear
    THREE.ReinhardToneMapping Reinhard
    THREE.CineonToneMapping Cineon
    THREE.ACESFilmicToneMapping ACESFilmic
    THREE.CustomToneMapping Custom

    Parameters

    • baseToneMapping: string
    • Optional def: string

    Returns ToneMapping

    toneMapping

Static getTouchSafe

  • getTouchSafe(baseTouch: string, altTouch?: string, def?: string): TOUCH

Static getTrianglesDrawModesSafe

  • Gets TrianglesDraw mode

    Three Type Value String(case insensitive)
    THREE.TrianglesDrawMode TrianglesDrawMode, DrawMode
    THREE.TriangleStripDrawMode TriangleStripDrawMode, StripDrawMode, Strip
    THREE.TriangleFanDrawMode TriangleFanDrawMode, FanDrawMode, Fan

    Parameters

    • baseBlendMode: string
    • Optional def: string

    Returns TrianglesDrawModes

    TrianglesDraw mode

Static getTypeSafe

  • getTypeSafe<T>(value: T, altValue?: T, nullValue?: T): T
  • Gets type safe

    Type parameters

    • T

    Parameters

    • value: T
    • Optional altValue: T
    • Optional nullValue: T

    Returns T

    type safe

Static getUUID

  • getUUID(): string

Static getUpdateSubscribe

Static getUsageSafe

  • getUsageSafe(baseUsage: string, def?: string): Usage
  • Gets usage

    Three Type Value String(case insensitive)
    THREE.StreamDrawUsage StreamDrawUsage, StreamDraw
    THREE.StaticReadUsage StaticReadUsage, StaticRead
    THREE.DynamicReadUsage DynamicReadUsage, DynamicRead
    THREE.StreamReadUsage StreamReadUsage, StreamRead
    THREE.StaticCopyUsage StaticCopyUsage, StaticCopy
    THREE.DynamicCopyUsage DynamicCopyUsage, DynamicCopy
    THREE.StreamCopyUsage StreamCopyUsage, StreamCopy
    THREE.StaticDrawUsage StaticDrawUsage, StaticDraw
    THREE.DynamicDrawUsage DynamicDrawUsage, DynamicDraw

    Parameters

    • baseUsage: string
    • Optional def: string

    Returns Usage

    usage

Static getVector2Safe

Static getVector2VSafe

Static getVector3Safe

Static getVector3VSafe

Static getWrappingSafe

  • getWrappingSafe(baseWrap: string, altWrap?: string, def?: string): Wrapping
  • Gets wrapping safe

    Three Type Value String(case insensitive)
    THREE.RepeatWrapping RepeatWrapping, Repeat
    THREE.MirroredRepeatWrapping MirroredRepeatWrapping, MirroredRepeat
    THREE.ClampToEdgeWrapping ClampToEdgeWrapping, ClampToEdge

    Parameters

    • baseWrap: string
    • Optional altWrap: string
    • Optional def: string

    Returns Wrapping

    wrapping safe

Static isArray

  • isArray(value: any): boolean
  • Determines whether array is

    Parameters

    • value: any

    Returns boolean

    true if array

Static isColor

  • isColor(color: any): boolean
  • Determines whether not null is color

    Parameters

    • color: any

    Returns boolean

    true if not null

Static isIndexOf

  • isIndexOf<T>(data: T[], findMe: T | T[]): boolean
  • Determines whether index of is

    Type parameters

    • T

    Parameters

    • data: T[]
    • findMe: T | T[]

    Returns boolean

    true if index of

Static isNotNull

  • isNotNull(value: any): boolean
  • Determines whether not null is

    Parameters

    • value: any

    Returns boolean

    true if not null

Static isNotNullEmpty

  • isNotNullEmpty(value: any): boolean
  • Determines whether not null is

    Parameters

    • value: any

    Returns boolean

    true if not null

Static isNull

  • isNull(value: any): boolean
  • Determines whether null is

    Parameters

    • value: any

    Returns boolean

    true if null

Static isOnlyIndexOf

  • isOnlyIndexOf<T>(data: T[], findMe: T[], addedFindMe?: T[]): boolean
  • Determines whether only index of is

    Type parameters

    • T

    Parameters

    • data: T[]
    • findMe: T[]
    • Optional addedFindMe: T[]

    Returns boolean

    true if only index of

Static isTextureLoaded

Static isThreeComponent

  • isThreeComponent(object: any, key?: string): boolean
  • Determines whether three component is

    Parameters

    • object: any
    • key: string = 'component'

    Returns boolean

    true if three component

Static makeUUID

  • makeUUID(len: number, pre?: string): string

Static pushUniq

  • pushUniq<T>(data: T[], addMe: T | T[]): T[]
  • Pushs uniq

    Type parameters

    • T

    Parameters

    • data: T[]
    • addMe: T | T[]

    Returns T[]

    uniq

Static removeCssStyle

  • removeCssStyle(ele: HTMLElement, clazzName?: string): boolean
  • Removes css style

    Parameters

    • ele: HTMLElement
    • Optional clazzName: string

    Returns boolean

    true if css style

Static render

Static setAssetUrl

  • setAssetUrl(url: string): void

Static setGuiEnabled

Static setLoadingDisplay

Static setLoadingProcess

  • setLoadingProcess(url: string, loaded: number, total: number): void
  • Sets loading process

    Parameters

    • url: string
    • loaded: number
    • total: number

    Returns void

Static setRenderer

  • setRenderer(lastRenderer: any): void

Static setSubscribeNext

  • setSubscribeNext(object: any, key: string | string[]): void
  • Sets subscribe next

    Parameters

    • object: any
    • key: string | string[]

    Returns void

Static setThreeComponent

  • setThreeComponent(key: string, object?: any): void

Static setupGui

Static setupGuiChange

  • setupGuiChange(control: GUIController, onFinishChange?: (value?: any) => void, onChange?: (value?: any) => void, listen?: boolean, title?: string): GUIController
  • Setups gui change

    Parameters

    • control: GUIController
    • Optional onFinishChange: (value?: any) => void
        • (value?: any): void
        • Parameters

          • Optional value: any

          Returns void

    • Optional onChange: (value?: any) => void
        • (value?: any): void
        • Parameters

          • Optional value: any

          Returns void

    • Optional listen: boolean
    • Optional title: string

    Returns GUIController

    gui change

Static toggleCssStyle

  • toggleCssStyle(ele: HTMLElement, clazzName?: string, isActive?: boolean): boolean
  • Toggles css style

    Parameters

    • ele: HTMLElement
    • Optional clazzName: string
    • Optional isActive: boolean

    Returns boolean

    true if css style

Static unsetLoadingDisplay

Generated using TypeDoc