import { IAsset, AssetBase } from '@awayjs/core'; import { SkeletonJoint } from './SkeletonJoint'; /** * A Skeleton object is a hierarchical grouping of joint objects that can be used for skeletal animation. * * @see away.animators.SkeletonJoint */ export declare class Skeleton extends AssetBase implements IAsset { static assetType: string; /** * A flat list of joint objects that comprise the skeleton. Every joint except for the root has a parentIndex * property that is an index into this list. * A child joint should always have a higher index than its parent. */ joints: Array; /** * The total number of joints in the skeleton. */ get numJoints(): number; /** * Creates a new Skeleton object */ constructor(); /** * Returns the joint object in the skeleton with the given name, otherwise returns a null object. * * @param jointName The name of the joint object to be found. * @return The joint object with the given name. * * @see #joints */ jointFromName(jointName: string): SkeletonJoint; /** * Returns the joint index, given the joint name. -1 is returned if the joint name is not found. * * @param jointName The name of the joint object to be found. * @return The index of the joint object in the joints Array * * @see #joints */ jointIndexFromName(jointName: string): number; /** * @inheritDoc */ dispose(): void; /** * @inheritDoc */ get assetType(): string; } //# sourceMappingURL=Skeleton.d.ts.map