mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
skeleton.js: rename autofmt
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user