diff --git a/cocos/3d/assets/skeleton.js b/cocos/3d/assets/skeleton.ts similarity index 69% rename from cocos/3d/assets/skeleton.js rename to cocos/3d/assets/skeleton.ts index a7679f2906..400b58a1d0 100644 --- a/cocos/3d/assets/skeleton.js +++ b/cocos/3d/assets/skeleton.ts @@ -23,11 +23,10 @@ THE SOFTWARE. ****************************************************************************/ -// @ts-check -import { _decorator } from "../../core/data"; +import { _decorator } from '../../core/data'; const { ccclass, property } = _decorator; -import { Asset } from "../../assets/asset"; -import { Mat4 } from "../../core/value-types"; +import { Asset } from '../../assets/asset'; +import { Mat4 } from '../../core/value-types'; /** * CLASS Skeleton @@ -40,42 +39,42 @@ import { Mat4 } from "../../core/value-types"; */ @ccclass('cc.Skeleton') export default class Skeleton extends Asset { - /** - * The path of joints. - * @type {string[]} - */ - @property([String]) - _joints = []; + /** + * The path of joints. + * @type {string[]} + */ + @property([String]) + public _joints = []; - /** - * The inverse bind matrices of joints. - * @type {Mat4[]} - */ - @property([Mat4]) - _inverseBindMatrices = []; + /** + * The inverse bind matrices of joints. + * @type {Mat4[]} + */ + @property([Mat4]) + public _inverseBindMatrices = []; - /** - * Gets the bind pose matrices of joints. - * @type {Mat4[]} - */ - get bindposes() { - return this._inverseBindMatrices; - } + /** + * Gets the bind pose matrices of joints. + * @type {Mat4[]} + */ + get bindposes () { + return this._inverseBindMatrices; + } - /** - * Sets the bind pose matrices of joints. - * @type {Mat4[]} - */ - set bindposes(value) { - this._inverseBindMatrices = value; - } + /** + * Sets the bind pose matrices of joints. + * @type {Mat4[]} + */ + set bindposes (value) { + this._inverseBindMatrices = value; + } - /** - * Gets the paths of joints. - * @type {string[]} - */ - get joints() { - return this._joints; - } + /** + * Gets the paths of joints. + * @type {string[]} + */ + get joints () { + return this._joints; + } } cc.Skeleton = Skeleton;