From 2c3cf20bb7c5096d201543ccae569dfdaafb3833 Mon Sep 17 00:00:00 2001 From: ChiaNing Date: Tue, 30 Jul 2019 16:45:06 +0800 Subject: [PATCH] value-types API change (#5014) --- cocos/core/math/affine-transform.ts | 2 +- cocos/core/math/bits.ts | 2 +- cocos/core/math/color.ts | 2 +- cocos/core/math/index.ts | 2 +- cocos/core/math/mat3.ts | 2 +- cocos/core/math/mat4.ts | 2 +- cocos/core/math/quat.ts | 2 +- cocos/core/math/rect.ts | 2 +- cocos/core/math/size.ts | 2 +- cocos/core/math/type-define.ts | 7 ++++++- cocos/core/math/utils.ts | 2 +- cocos/core/math/vec2.ts | 2 +- cocos/core/math/vec3.ts | 2 +- cocos/core/math/vec4.ts | 2 +- cocos/core/value-types/index.ts | 4 ++++ 15 files changed, 23 insertions(+), 14 deletions(-) diff --git a/cocos/core/math/affine-transform.ts b/cocos/core/math/affine-transform.ts index 4ee1b8020b..0ced4db3ad 100644 --- a/cocos/core/math/affine-transform.ts +++ b/cocos/core/math/affine-transform.ts @@ -26,7 +26,7 @@ */ /** - * @category core/value-types + * @category core/math */ import { Mat4 } from './mat4'; diff --git a/cocos/core/math/bits.ts b/cocos/core/math/bits.ts index 62b846e547..7eced13b4b 100644 --- a/cocos/core/math/bits.ts +++ b/cocos/core/math/bits.ts @@ -1,5 +1,5 @@ /** - * @category core/value-types + * @category core/math */ /** diff --git a/cocos/core/math/color.ts b/cocos/core/math/color.ts index 3f1b457816..e5c180ff5d 100644 --- a/cocos/core/math/color.ts +++ b/cocos/core/math/color.ts @@ -25,7 +25,7 @@ */ /** - * @category core/value-types + * @category core/math */ import CCClass from '../data/class'; diff --git a/cocos/core/math/index.ts b/cocos/core/math/index.ts index 064e2024c3..a1e1de3188 100644 --- a/cocos/core/math/index.ts +++ b/cocos/core/math/index.ts @@ -25,7 +25,7 @@ */ /** - * @category core/value-types + * @category core/math */ import * as bits from './bits'; diff --git a/cocos/core/math/mat3.ts b/cocos/core/math/mat3.ts index 2d8d9c5550..c9d4fc83e1 100644 --- a/cocos/core/math/mat3.ts +++ b/cocos/core/math/mat3.ts @@ -24,7 +24,7 @@ */ /** - * @category core/value-types + * @category core/math */ import CCClass from '../data/class'; diff --git a/cocos/core/math/mat4.ts b/cocos/core/math/mat4.ts index 42e8c66a2b..b472ac29d8 100644 --- a/cocos/core/math/mat4.ts +++ b/cocos/core/math/mat4.ts @@ -24,7 +24,7 @@ */ /** - * @category core/value-types + * @category core/math */ import CCClass from '../data/class'; diff --git a/cocos/core/math/quat.ts b/cocos/core/math/quat.ts index fd14ed8ad0..7d0a872a97 100644 --- a/cocos/core/math/quat.ts +++ b/cocos/core/math/quat.ts @@ -24,7 +24,7 @@ */ /** - * @category core/value-types + * @category core/math */ import CCClass from '../data/class'; diff --git a/cocos/core/math/rect.ts b/cocos/core/math/rect.ts index 5a79a81b0c..d515027127 100644 --- a/cocos/core/math/rect.ts +++ b/cocos/core/math/rect.ts @@ -25,7 +25,7 @@ */ /** - * @category core/value-types + * @category core/math */ import CCClass from '../data/class'; diff --git a/cocos/core/math/size.ts b/cocos/core/math/size.ts index 571cf8df3e..eaed76a1ce 100644 --- a/cocos/core/math/size.ts +++ b/cocos/core/math/size.ts @@ -25,7 +25,7 @@ */ /** - * @category core/value-types + * @category core/math */ import CCClass from '../data/class'; diff --git a/cocos/core/math/type-define.ts b/cocos/core/math/type-define.ts index 17fcb1391c..fa5c49b8fa 100644 --- a/cocos/core/math/type-define.ts +++ b/cocos/core/math/type-define.ts @@ -1,4 +1,9 @@ - +/** + * @category core/math + */ +/** + * @hidden + */ export interface IColorLike { r: number; g: number; diff --git a/cocos/core/math/utils.ts b/cocos/core/math/utils.ts index 350868111a..5112251165 100644 --- a/cocos/core/math/utils.ts +++ b/cocos/core/math/utils.ts @@ -1,5 +1,5 @@ /** - * @category core/value-types + * @category core/math */ const _d2r = Math.PI / 180.0; diff --git a/cocos/core/math/vec2.ts b/cocos/core/math/vec2.ts index dde18cb05e..cf41fe1b0f 100644 --- a/cocos/core/math/vec2.ts +++ b/cocos/core/math/vec2.ts @@ -25,7 +25,7 @@ */ /** - * @category core/value-types + * @category core/math */ import CCClass from '../data/class'; diff --git a/cocos/core/math/vec3.ts b/cocos/core/math/vec3.ts index 4c6d819026..38fed61193 100644 --- a/cocos/core/math/vec3.ts +++ b/cocos/core/math/vec3.ts @@ -25,7 +25,7 @@ */ /** - * @category core/value-types + * @category core/math */ import CCClass from '../data/class'; diff --git a/cocos/core/math/vec4.ts b/cocos/core/math/vec4.ts index 34747f18ae..38f5a0cd05 100644 --- a/cocos/core/math/vec4.ts +++ b/cocos/core/math/vec4.ts @@ -25,7 +25,7 @@ */ /** - * @category core/value-types + * @category core/math */ import CCClass from '../data/class'; diff --git a/cocos/core/value-types/index.ts b/cocos/core/value-types/index.ts index 695a0a7f6f..07b25b8a8d 100644 --- a/cocos/core/value-types/index.ts +++ b/cocos/core/value-types/index.ts @@ -24,5 +24,9 @@ THE SOFTWARE. */ +/** + * @hidden + */ + export { Enum } from './enum'; export { ValueType } from './value-type';