DragonBonesJS icon indicating copy to clipboard operation
DragonBonesJS copied to clipboard

_frameFloatArray incorrect type definition

Open additv opened this issue 6 years ago • 0 comments

I think that on this line _frameFloatArray should be a Float32Array rather than Int16Array.

https://github.com/DragonBones/DragonBonesJS/blob/eaacafec018e9d061cd3162607e6b3734f4b8f23/DragonBones/src/dragonBones/animation/BaseTimelineState.ts#L61

Otherwise the compiler complains about this line: https://github.com/DragonBones/DragonBonesJS/blob/eaacafec018e9d061cd3162607e6b3734f4b8f23/DragonBones/src/dragonBones/animation/BaseTimelineState.ts#L188 because this._dragonBonesData.frameFloatArray is...you guessed it a Float32Array.

additv avatar Apr 26 '18 15:04 additv