Constructors
constructor
- new CubismModel(model: Model): CubismModel
-
Methods
addParameterValueById
- addParameterValueById(parameterId: any, value: number, weight?: number): void
-
Parameters
-
parameterId: any
-
value: number
-
weight: number = 1.0
Returns void
addParameterValueByIndex
- addParameterValueByIndex(parameterIndex: number, value: number, weight?: number): void
-
Parameters
-
parameterIndex: number
-
value: number
-
weight: number = 1.0
Returns void
getCanvasHeight
- getCanvasHeight(): number
-
Returns number
getCanvasWidth
- getCanvasWidth(): number
-
Returns number
getDrawableBlendMode
- getDrawableBlendMode(drawableIndex: number): CubismBlendMode
-
getDrawableCount
- getDrawableCount(): number
-
Returns number
getDrawableCulling
- getDrawableCulling(drawableIndex: number): boolean
-
Returns boolean
getDrawableDynamicFlagIsVisible
- getDrawableDynamicFlagIsVisible(drawableIndex: number): boolean
-
Returns boolean
getDrawableDynamicFlagOpacityDidChange
- getDrawableDynamicFlagOpacityDidChange(drawableIndex: number): boolean
-
Returns boolean
getDrawableDynamicFlagRenderOrderDidChange
- getDrawableDynamicFlagRenderOrderDidChange(drawableIndex: number): boolean
-
Returns boolean
getDrawableDynamicFlagVertexPositionsDidChange
- getDrawableDynamicFlagVertexPositionsDidChange(drawableIndex: number): boolean
-
Returns boolean
getDrawableDynamicFlagVisibilityDidChange
- getDrawableDynamicFlagVisibilityDidChange(drawableIndex: number): boolean
-
Returns boolean
getDrawableId
- getDrawableId(drawableIndex: number): string
-
Returns string
getDrawableIds
- getDrawableIds(): string[]
-
Returns string[]
getDrawableIndex
- getDrawableIndex(drawableId: string): number
-
Returns number
getDrawableInvertedMaskBit
- getDrawableInvertedMaskBit(drawableIndex: number): boolean
-
Returns boolean
getDrawableMaskCounts
- getDrawableMaskCounts(): Int32Array
-
Returns Int32Array
getDrawableMasks
- getDrawableMasks(): Int32Array[]
-
Returns Int32Array[]
getDrawableOpacity
- getDrawableOpacity(drawableIndex: number): number
-
Returns number
getDrawableRenderOrders
- getDrawableRenderOrders(): Int32Array
-
Returns Int32Array
getDrawableTextureIndices
- getDrawableTextureIndices(drawableIndex: number): number
-
Returns number
getDrawableVertexCount
- getDrawableVertexCount(drawableIndex: number): number
-
Returns number
getDrawableVertexIndexCount
- getDrawableVertexIndexCount(drawableIndex: number): number
-
Returns number
getDrawableVertexIndices
- getDrawableVertexIndices(drawableIndex: number): Uint16Array
-
Returns Uint16Array
getDrawableVertexPositions
- getDrawableVertexPositions(drawableIndex: number): Float32Array
-
Returns Float32Array
getDrawableVertexUvs
- getDrawableVertexUvs(drawableIndex: number): Float32Array
-
Returns Float32Array
getDrawableVertices
- getDrawableVertices(drawableIndex: number): Float32Array
-
Returns Float32Array
getModel
- getModel(): Model
-
Returns Model
getParameterCount
- getParameterCount(): number
-
Returns number
getParameterDefaultValue
- getParameterDefaultValue(parameterIndex: number): number
-
Returns number
getParameterIndex
- getParameterIndex(parameterId: string): number
-
Returns number
getParameterMaximumValue
- getParameterMaximumValue(parameterIndex: number): number
-
Returns number
getParameterMinimumValue
- getParameterMinimumValue(parameterIndex: number): number
-
Returns number
getParameterValueById
- getParameterValueById(parameterId: string): number
-
Returns number
getParameterValueByIndex
- getParameterValueByIndex(parameterIndex: number): number
-
Returns number
getPartCount
- getPartCount(): number
-
Returns number
getPartIndex
- getPartIndex(partId: string): number
-
Returns number
getPartOpacityById
- getPartOpacityById(partId: string): number
-
Returns number
getPartOpacityByIndex
- getPartOpacityByIndex(partIndex: number): number
-
Returns number
initialize
- initialize(): void
-
Returns void
isUsingMasking
- isUsingMasking(): boolean
-
Returns boolean
loadParameters
- loadParameters(): void
-
Returns void
multiplyParameterValueById
- multiplyParameterValueById(parameterId: string, value: number, weight?: number): void
-
Parameters
-
parameterId: string
-
value: number
-
weight: number = 1.0
Returns void
multiplyParameterValueByIndex
- multiplyParameterValueByIndex(parameterIndex: number, value: number, weight?: number): void
-
Parameters
-
parameterIndex: number
-
value: number
-
weight: number = 1.0
Returns void
release
- release(): void
-
Returns void
saveParameters
- saveParameters(): void
-
Returns void
setParameterValueById
- setParameterValueById(parameterId: string, value: number, weight?: number): void
-
Parameters
-
parameterId: string
-
value: number
-
weight: number = 1.0
Returns void
setParameterValueByIndex
- setParameterValueByIndex(parameterIndex: number, value: number, weight?: number): void
-
Parameters
-
parameterIndex: number
-
value: number
-
weight: number = 1.0
Returns void
setPartOpacityById
- setPartOpacityById(partId: string, opacity: number): void
-
Parameters
-
partId: string
-
opacity: number
Returns void
setPartOpacityByIndex
- setPartOpacityByIndex(partIndex: number, opacity: number): void
-
Parameters
-
partIndex: number
-
opacity: number
Returns void
update
- update(): void
-
Returns void
モデル
Mocデータから生成されるモデルのクラス。