mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
Category for value-types and animations (#4704)
This commit is contained in:
committed by
Weiliang Wang
parent
4aa55fa055
commit
c5b5afc8a7
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* @category animation
|
||||
*/
|
||||
|
||||
import { CurveTarget } from './animation-curve';
|
||||
|
||||
// tslint:disable:interface-over-type-literal
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
|
||||
/**
|
||||
* @category animation
|
||||
*/
|
||||
|
||||
import { Asset, SpriteFrame } from '../assets';
|
||||
import { ccclass, property } from '../core/data/class-decorator';
|
||||
import { errorID } from '../core/platform/CCDebug';
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* @category animation
|
||||
*/
|
||||
|
||||
import { ccclass, property } from '../core/data/class-decorator';
|
||||
import { binarySearchEpsilon as binarySearch } from '../core/data/utils/binary-search';
|
||||
import { error, errorID } from '../core/platform/CCDebug';
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* @category animation
|
||||
*/
|
||||
|
||||
import { ccclass } from '../core/data/class-decorator';
|
||||
import { errorID } from '../core/platform/CCDebug';
|
||||
import { MutableForwardIterator, remove } from '../core/utils/array';
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* @category animation
|
||||
*/
|
||||
|
||||
import { Component } from '../components';
|
||||
import { binarySearchEpsilon as binarySearch } from '../core/data/utils/binary-search';
|
||||
import { EventArgumentsOf, EventCallbackOf } from '../core/event/defines';
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
|
||||
/**
|
||||
* @category animation
|
||||
*/
|
||||
|
||||
export type BezierControlPoints = [ number, number, number, number ];
|
||||
|
||||
export function bezier (C1: number, C2: number, C3: number, C4: number, t: number) {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* @category animation
|
||||
*/
|
||||
|
||||
import { Quat, Vec3 } from '../core/value-types';
|
||||
import { quat, vec3 } from '../core/vmath';
|
||||
import { PropertyBlendState } from './animation-blend-state';
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* @category animation
|
||||
*/
|
||||
|
||||
import { removeIf } from '../core/utils/array';
|
||||
import { clamp01 } from '../core/vmath';
|
||||
import { Node } from '../scene-graph';
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
|
||||
/**
|
||||
* @category animation
|
||||
*/
|
||||
|
||||
import { ccclass, property } from '../core/data/class-decorator';
|
||||
import { Quat, Vec2, Vec3, Vec4 } from '../core/value-types';
|
||||
import * as vmath from '../core/vmath';
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
|
||||
/**
|
||||
* @category animation
|
||||
*/
|
||||
|
||||
export function constant () {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* @category animation
|
||||
*/
|
||||
|
||||
import { getError } from '../core/platform/CCDebug';
|
||||
|
||||
export class Playable {
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
|
||||
/**
|
||||
* @category animation
|
||||
*/
|
||||
|
||||
import { ccenum } from '../core/value-types/enum';
|
||||
|
||||
export enum WrapModeMask {
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
|
||||
/**
|
||||
* @category animation
|
||||
*/
|
||||
|
||||
import { AnimationClip, AnimationState } from '../animation';
|
||||
import { CrossFade } from '../animation/cross-fade';
|
||||
import { Playable } from '../animation/playable';
|
||||
|
||||
@@ -24,6 +24,10 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @category core/value-types
|
||||
*/
|
||||
|
||||
import CCClass from '../data/class';
|
||||
import { color4 } from '../vmath';
|
||||
import { ValueType } from './value-type';
|
||||
|
||||
@@ -23,6 +23,10 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @category core/value-types
|
||||
*/
|
||||
|
||||
import CCClass from '../data/class';
|
||||
import { mat4 as xmat4 } from '../vmath';
|
||||
import Quat from './quat';
|
||||
|
||||
@@ -23,6 +23,10 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @category core/value-types
|
||||
*/
|
||||
|
||||
import CCClass from '../data/class';
|
||||
import { quat as xquat } from '../vmath/quat';
|
||||
import { ValueType } from './value-type';
|
||||
|
||||
@@ -24,6 +24,10 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @category core/value-types
|
||||
*/
|
||||
|
||||
import CCClass from '../data/class';
|
||||
import Mat4 from './mat4';
|
||||
import Size from './size';
|
||||
|
||||
@@ -24,6 +24,10 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @category core/value-types
|
||||
*/
|
||||
|
||||
import CCClass from '../data/class';
|
||||
import { ValueType } from './value-type';
|
||||
|
||||
|
||||
@@ -24,6 +24,10 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @category core/value-types
|
||||
*/
|
||||
|
||||
import { errorID } from '../platform/CCDebug';
|
||||
import * as js from '../utils/js';
|
||||
|
||||
|
||||
@@ -24,6 +24,10 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @category core/value-types
|
||||
*/
|
||||
|
||||
import CCClass from '../data/class';
|
||||
import {clamp, vec2} from '../vmath';
|
||||
import Mat4 from './mat4';
|
||||
|
||||
@@ -24,6 +24,10 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @category core/value-types
|
||||
*/
|
||||
|
||||
import CCClass from '../data/class';
|
||||
import {clamp, vec3} from '../vmath';
|
||||
import Mat4 from './mat4';
|
||||
|
||||
@@ -30,7 +30,7 @@ import Mat4 from './mat4';
|
||||
import { ValueType } from './value-type';
|
||||
|
||||
/**
|
||||
* @category Core/Math
|
||||
* @category core/value-types
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user