vislite 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AUTHORS.txt +6 -6
- package/CHANGELOG +7 -1
- package/LICENSE +20 -20
- package/README.md +53 -53
- package/lib/Buffer/index.umd.js +2 -2
- package/lib/Buffer/index.umd.min.js +2 -2
- package/lib/Canvas/index.umd.js +11 -6
- package/lib/Canvas/index.umd.min.js +3 -3
- package/lib/Cardinal/index.umd.js +2 -2
- package/lib/Cardinal/index.umd.min.js +2 -2
- package/lib/Eoap/index.umd.js +2 -2
- package/lib/Eoap/index.umd.min.js +2 -2
- package/lib/Hermite/index.umd.js +2 -2
- package/lib/Hermite/index.umd.min.js +2 -2
- package/lib/Matrix4/index.umd.js +2 -2
- package/lib/Matrix4/index.umd.min.js +2 -2
- package/lib/Mercator/index.umd.js +2 -2
- package/lib/Mercator/index.umd.min.js +2 -2
- package/lib/OralCanvas/index.es.js +11 -6
- package/lib/OralCanvas/index.es.min.js +3 -3
- package/lib/OralWebGL/index.es.js +10 -5
- package/lib/OralWebGL/index.es.min.js +3 -3
- package/lib/SVG/index.umd.js +9 -4
- package/lib/SVG/index.umd.min.js +3 -3
- package/lib/Shader/index.umd.js +2 -2
- package/lib/Shader/index.umd.min.js +2 -2
- package/lib/Texture/index.umd.js +2 -2
- package/lib/Texture/index.umd.min.js +2 -2
- package/lib/WebGL/index.umd.js +10 -5
- package/lib/WebGL/index.umd.min.js +3 -3
- package/lib/animation/index.umd.js +2 -2
- package/lib/animation/index.umd.min.js +2 -2
- package/lib/getLoopColors/index.umd.js +2 -2
- package/lib/getLoopColors/index.umd.min.js +2 -2
- package/lib/getWebGLContext/index.umd.js +2 -2
- package/lib/getWebGLContext/index.umd.min.js +2 -2
- package/lib/index.umd.js +11 -6
- package/lib/index.umd.min.js +3 -3
- package/lib/rotate/index.umd.js +2 -2
- package/lib/rotate/index.umd.min.js +2 -2
- package/lib/ruler/index.umd.js +2 -2
- package/lib/ruler/index.umd.min.js +2 -2
- package/lib/viewHandler/index.umd.js +2 -2
- package/lib/viewHandler/index.umd.min.js +2 -2
- package/miniprogram/ui-canvas/index.js +99 -99
- package/miniprogram/ui-canvas/index.json +4 -4
- package/miniprogram/ui-canvas/index.wxml +4 -4
- package/miniprogram/ui-canvas/index.wxss +5 -5
- package/package/Buffer/index.ts +1 -1
- package/package/Canvas/index.ts +1 -1
- package/package/Cardinal/index.ts +2 -2
- package/package/Eoap/index.ts +2 -2
- package/package/Hermite/index.ts +2 -2
- package/package/Matrix4/index.ts +2 -2
- package/package/Mercator/index.ts +2 -2
- package/package/OralCanvas/index.ts +1 -1
- package/package/OralWebGL/index.ts +1 -1
- package/package/SVG/index.ts +2 -2
- package/package/Shader/index.ts +1 -1
- package/package/Texture/index.ts +1 -1
- package/package/WebGL/index.ts +1 -1
- package/package/animation/index.ts +2 -2
- package/package/getLoopColors/index.ts +2 -2
- package/package/getWebGLContext/index.ts +39 -39
- package/package/index.ts +56 -56
- package/package/rotate/index.ts +2 -2
- package/package/ruler/index.ts +2 -2
- package/package/viewHandler/index.ts +2 -2
- package/package.json +1 -1
- package/src/Canvas.ts +56 -56
- package/src/Eoap.ts +66 -66
- package/src/Matrix4/index.ts +76 -76
- package/src/Matrix4/move.ts +12 -12
- package/src/Matrix4/rotate.ts +15 -15
- package/src/Matrix4/scale.ts +11 -11
- package/src/Matrix4/transform.ts +64 -64
- package/src/Mercator.ts +26 -26
- package/src/SVG.ts +23 -23
- package/src/WebGL.ts +52 -52
- package/src/animation.ts +99 -99
- package/src/common/assemble.ts +1 -1
- package/src/common/canvas/arc.ts +50 -50
- package/src/common/canvas/config.ts +157 -157
- package/src/common/canvas/gradient.ts +29 -29
- package/src/common/canvas/index.ts +10 -7
- package/src/common/canvas/painter.ts +355 -355
- package/src/common/canvas/texts.ts +18 -18
- package/src/common/setStyle.ts +5 -5
- package/src/common/svg/config.ts +173 -173
- package/src/common/svg/index.ts +334 -334
- package/src/common/svg/tool.ts +43 -43
- package/src/common/webgl/buffer.ts +79 -79
- package/src/common/webgl/doDraw.ts +106 -106
- package/src/common/webgl/getColorFactory.ts +26 -26
- package/src/common/webgl/getShader.ts +75 -75
- package/src/common/webgl/getTexture.ts +11 -11
- package/src/common/webgl/getWebGLContext.ts +27 -27
- package/src/common/webgl/index.ts +216 -216
- package/src/common/webgl/shader.ts +75 -75
- package/src/common/webgl/texture.ts +99 -99
- package/src/getLoopColors.ts +42 -42
- package/src/interpolation/Cardinal.ts +109 -109
- package/src/interpolation/Hermite.ts +65 -65
- package/src/rotate.ts +7 -7
- package/src/ruler.ts +99 -99
- package/src/viewHandler.ts +139 -139
- package/types/Buffer.d.ts +23 -23
- package/types/Canvas.d.ts +282 -282
- package/types/CanvasConfig.d.ts +80 -80
- package/types/Cardinal.d.ts +13 -13
- package/types/Gradient.d.ts +14 -14
- package/types/Hermite.d.ts +18 -18
- package/types/Map.d.ts +9 -9
- package/types/Matrix4.d.ts +42 -42
- package/types/Object3D.d.ts +113 -113
- package/types/SVG.d.ts +210 -210
- package/types/SVGConfig.d.ts +58 -58
- package/types/Scene3D.d.ts +6 -6
- package/types/Shader.d.ts +15 -15
- package/types/Texture.d.ts +16 -16
- package/types/WebGL.d.ts +38 -38
- package/types/animation.d.ts +6 -6
- package/types/getLoopColors.d.ts +2 -2
- package/types/getWebGLContext.d.ts +2 -2
- package/types/index.d.ts +129 -129
- package/types/rotate.d.ts +2 -2
- package/types/ruler.d.ts +2 -2
- package/types/viewHandler.d.ts +12 -12
- package/uni-app/ui-canvas.vue +212 -212
package/types/WebGL.d.ts
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import Object3DType from './Object3D'
|
|
2
|
-
import Matrix4Type from './Matrix4'
|
|
3
|
-
|
|
4
|
-
export default interface WebGLType {
|
|
5
|
-
|
|
6
|
-
matrix(initMatrix4?: number[]): Matrix4Type
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* 使用模型数据绘制
|
|
10
|
-
* @param object3D 记录着的模型数据
|
|
11
|
-
*/
|
|
12
|
-
render(object3D: Object3DType): void
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* 重新绘制
|
|
16
|
-
*/
|
|
17
|
-
review(): this
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* 返回变换矩阵
|
|
21
|
-
*/
|
|
22
|
-
getMatrix(): Matrix4Type
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* 返回所有的Object3D内容
|
|
26
|
-
*/
|
|
27
|
-
getObject3D(): Object3DType[]
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* 设置区域
|
|
31
|
-
*/
|
|
32
|
-
setRegion(regionName: string | number): this
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* 获取区域
|
|
36
|
-
*/
|
|
37
|
-
getRegion(x: number, y: number): Promise<string>
|
|
38
|
-
|
|
1
|
+
import Object3DType from './Object3D'
|
|
2
|
+
import Matrix4Type from './Matrix4'
|
|
3
|
+
|
|
4
|
+
export default interface WebGLType {
|
|
5
|
+
|
|
6
|
+
matrix(initMatrix4?: number[]): Matrix4Type
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* 使用模型数据绘制
|
|
10
|
+
* @param object3D 记录着的模型数据
|
|
11
|
+
*/
|
|
12
|
+
render(object3D: Object3DType): void
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* 重新绘制
|
|
16
|
+
*/
|
|
17
|
+
review(): this
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 返回变换矩阵
|
|
21
|
+
*/
|
|
22
|
+
getMatrix(): Matrix4Type
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* 返回所有的Object3D内容
|
|
26
|
+
*/
|
|
27
|
+
getObject3D(): Object3DType[]
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* 设置区域
|
|
31
|
+
*/
|
|
32
|
+
setRegion(regionName: string | number): this
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* 获取区域
|
|
36
|
+
*/
|
|
37
|
+
getRegion(x: number, y: number): Promise<string>
|
|
38
|
+
|
|
39
39
|
}
|
package/types/animation.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
interface animationFun {
|
|
2
|
-
(deep: number): void
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
export default interface animationType {
|
|
6
|
-
(doback: animationFun, duration?: number, callback?: animationFun): Function
|
|
1
|
+
interface animationFun {
|
|
2
|
+
(deep: number): void
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export default interface animationType {
|
|
6
|
+
(doback: animationFun, duration?: number, callback?: animationFun): Function
|
|
7
7
|
}
|
package/types/getLoopColors.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export default interface getLoopColorsType {
|
|
2
|
-
(num: number, alpha?: number): string[]
|
|
1
|
+
export default interface getLoopColorsType {
|
|
2
|
+
(num: number, alpha?: number): string[]
|
|
3
3
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export default interface getWebGLContextType {
|
|
2
|
-
(el: HTMLElement | null, scale?: number): WebGLRenderingContext
|
|
1
|
+
export default interface getWebGLContextType {
|
|
2
|
+
(el: HTMLElement | null, scale?: number): WebGLRenderingContext
|
|
3
3
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,130 +1,130 @@
|
|
|
1
|
-
import CardinalType from './Cardinal'
|
|
2
|
-
import HermiteType from './Hermite'
|
|
3
|
-
|
|
4
|
-
import Matrix4Type from './Matrix4'
|
|
5
|
-
import rotateType from './rotate'
|
|
6
|
-
|
|
7
|
-
import getLoopColorsType from './getLoopColors'
|
|
8
|
-
import animationType from './animation'
|
|
9
|
-
import rulerType from './ruler'
|
|
10
|
-
|
|
11
|
-
import SVGType from './SVG'
|
|
12
|
-
import CanvasType from './Canvas'
|
|
13
|
-
import WebGLType from './WebGL'
|
|
14
|
-
|
|
15
|
-
import getWebGLContextType from './getWebGLContext'
|
|
16
|
-
import ShaderType from './Shader'
|
|
17
|
-
import BufferType from './Buffer'
|
|
18
|
-
import TextureType from './Texture'
|
|
19
|
-
|
|
20
|
-
import MapType from './Map'
|
|
21
|
-
|
|
22
|
-
import viewHandlerType from './viewHandler'
|
|
23
|
-
|
|
24
|
-
// 插值
|
|
25
|
-
interface NewCardinalType extends CardinalType {
|
|
26
|
-
new(t?: number): this
|
|
27
|
-
}
|
|
28
|
-
interface NewHermiteType extends HermiteType {
|
|
29
|
-
new(u?: number): this
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// 变换
|
|
33
|
-
interface NewMatrix4Type extends Matrix4Type {
|
|
34
|
-
new(initMatrix4?: number[]): this
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// 画笔
|
|
38
|
-
interface NewSVGType extends SVGType {
|
|
39
|
-
new(el: HTMLElement | null): this
|
|
40
|
-
}
|
|
41
|
-
interface NewCanvasType extends CanvasType {
|
|
42
|
-
new(el: HTMLElement | null): this
|
|
43
|
-
}
|
|
44
|
-
interface NewWebGLType extends WebGLType {
|
|
45
|
-
new(el: HTMLElement | null): this
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// WebGL
|
|
49
|
-
interface NewShaderType extends ShaderType {
|
|
50
|
-
new(painter: WebGLRenderingContext): this
|
|
51
|
-
}
|
|
52
|
-
interface NewBufferType extends BufferType {
|
|
53
|
-
new(painter: WebGLRenderingContext, isElement?: boolean): this
|
|
54
|
-
}
|
|
55
|
-
interface NewTextureType extends TextureType {
|
|
56
|
-
new(painter: WebGLRenderingContext, type: string, unit?: number): this
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// 投影
|
|
60
|
-
interface NewEoapType extends MapType {
|
|
61
|
-
new(scale?: number, center?: number[]): this
|
|
62
|
-
}
|
|
63
|
-
interface NewMercatorType extends MapType {
|
|
64
|
-
new(scale?: number, center?: number[]): this
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export default class VISLite {
|
|
68
|
-
|
|
69
|
-
// 插值
|
|
70
|
-
static Cardinal: NewCardinalType
|
|
71
|
-
static Hermite: NewHermiteType
|
|
72
|
-
|
|
73
|
-
// 变换
|
|
74
|
-
static Matrix4: NewMatrix4Type
|
|
75
|
-
static rotate: rotateType
|
|
76
|
-
|
|
77
|
-
// 工具
|
|
78
|
-
static getLoopColors: getLoopColorsType
|
|
79
|
-
static animation: animationType
|
|
80
|
-
static ruler: rulerType
|
|
81
|
-
|
|
82
|
-
// 画笔
|
|
83
|
-
static SVG: NewSVGType
|
|
84
|
-
static Canvas: NewCanvasType
|
|
85
|
-
static WebGL: NewWebGLType
|
|
86
|
-
|
|
87
|
-
// WebGL
|
|
88
|
-
static getWebGLContext: getWebGLContextType
|
|
89
|
-
static Shader: NewShaderType
|
|
90
|
-
static Buffer: NewBufferType
|
|
91
|
-
static Texture: NewTextureType
|
|
92
|
-
|
|
93
|
-
// 投影
|
|
94
|
-
static Eoap: NewEoapType
|
|
95
|
-
static Mercator: NewMercatorType
|
|
96
|
-
|
|
97
|
-
// 辅助
|
|
98
|
-
static viewHandler: viewHandlerType
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// 插值
|
|
102
|
-
export let Cardinal: NewCardinalType
|
|
103
|
-
export let Hermite: NewHermiteType
|
|
104
|
-
|
|
105
|
-
// 变换
|
|
106
|
-
export let Matrix4: NewMatrix4Type
|
|
107
|
-
export let rotate: rotateType
|
|
108
|
-
|
|
109
|
-
// 工具
|
|
110
|
-
export let getLoopColors: getLoopColorsType
|
|
111
|
-
export let animation: animationType
|
|
112
|
-
export let ruler: rulerType
|
|
113
|
-
|
|
114
|
-
// 画笔
|
|
115
|
-
export let SVG: NewSVGType
|
|
116
|
-
export let Canvas: NewCanvasType
|
|
117
|
-
export let WebGL: NewWebGLType
|
|
118
|
-
|
|
119
|
-
// WebGL
|
|
120
|
-
export let getWebGLContext: getWebGLContextType
|
|
121
|
-
export let Shader: NewShaderType
|
|
122
|
-
export let Buffer: NewBufferType
|
|
123
|
-
export let Texture: NewTextureType
|
|
124
|
-
|
|
125
|
-
// 投影
|
|
126
|
-
export let Eoap: NewEoapType
|
|
127
|
-
export let Mercator: NewMercatorType
|
|
128
|
-
|
|
129
|
-
// 辅助
|
|
1
|
+
import CardinalType from './Cardinal'
|
|
2
|
+
import HermiteType from './Hermite'
|
|
3
|
+
|
|
4
|
+
import Matrix4Type from './Matrix4'
|
|
5
|
+
import rotateType from './rotate'
|
|
6
|
+
|
|
7
|
+
import getLoopColorsType from './getLoopColors'
|
|
8
|
+
import animationType from './animation'
|
|
9
|
+
import rulerType from './ruler'
|
|
10
|
+
|
|
11
|
+
import SVGType from './SVG'
|
|
12
|
+
import CanvasType from './Canvas'
|
|
13
|
+
import WebGLType from './WebGL'
|
|
14
|
+
|
|
15
|
+
import getWebGLContextType from './getWebGLContext'
|
|
16
|
+
import ShaderType from './Shader'
|
|
17
|
+
import BufferType from './Buffer'
|
|
18
|
+
import TextureType from './Texture'
|
|
19
|
+
|
|
20
|
+
import MapType from './Map'
|
|
21
|
+
|
|
22
|
+
import viewHandlerType from './viewHandler'
|
|
23
|
+
|
|
24
|
+
// 插值
|
|
25
|
+
interface NewCardinalType extends CardinalType {
|
|
26
|
+
new(t?: number): this
|
|
27
|
+
}
|
|
28
|
+
interface NewHermiteType extends HermiteType {
|
|
29
|
+
new(u?: number): this
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// 变换
|
|
33
|
+
interface NewMatrix4Type extends Matrix4Type {
|
|
34
|
+
new(initMatrix4?: number[]): this
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// 画笔
|
|
38
|
+
interface NewSVGType extends SVGType {
|
|
39
|
+
new(el: HTMLElement | null): this
|
|
40
|
+
}
|
|
41
|
+
interface NewCanvasType extends CanvasType {
|
|
42
|
+
new(el: HTMLElement | null): this
|
|
43
|
+
}
|
|
44
|
+
interface NewWebGLType extends WebGLType {
|
|
45
|
+
new(el: HTMLElement | null): this
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// WebGL
|
|
49
|
+
interface NewShaderType extends ShaderType {
|
|
50
|
+
new(painter: WebGLRenderingContext): this
|
|
51
|
+
}
|
|
52
|
+
interface NewBufferType extends BufferType {
|
|
53
|
+
new(painter: WebGLRenderingContext, isElement?: boolean): this
|
|
54
|
+
}
|
|
55
|
+
interface NewTextureType extends TextureType {
|
|
56
|
+
new(painter: WebGLRenderingContext, type: string, unit?: number): this
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// 投影
|
|
60
|
+
interface NewEoapType extends MapType {
|
|
61
|
+
new(scale?: number, center?: number[]): this
|
|
62
|
+
}
|
|
63
|
+
interface NewMercatorType extends MapType {
|
|
64
|
+
new(scale?: number, center?: number[]): this
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export default class VISLite {
|
|
68
|
+
|
|
69
|
+
// 插值
|
|
70
|
+
static Cardinal: NewCardinalType
|
|
71
|
+
static Hermite: NewHermiteType
|
|
72
|
+
|
|
73
|
+
// 变换
|
|
74
|
+
static Matrix4: NewMatrix4Type
|
|
75
|
+
static rotate: rotateType
|
|
76
|
+
|
|
77
|
+
// 工具
|
|
78
|
+
static getLoopColors: getLoopColorsType
|
|
79
|
+
static animation: animationType
|
|
80
|
+
static ruler: rulerType
|
|
81
|
+
|
|
82
|
+
// 画笔
|
|
83
|
+
static SVG: NewSVGType
|
|
84
|
+
static Canvas: NewCanvasType
|
|
85
|
+
static WebGL: NewWebGLType
|
|
86
|
+
|
|
87
|
+
// WebGL
|
|
88
|
+
static getWebGLContext: getWebGLContextType
|
|
89
|
+
static Shader: NewShaderType
|
|
90
|
+
static Buffer: NewBufferType
|
|
91
|
+
static Texture: NewTextureType
|
|
92
|
+
|
|
93
|
+
// 投影
|
|
94
|
+
static Eoap: NewEoapType
|
|
95
|
+
static Mercator: NewMercatorType
|
|
96
|
+
|
|
97
|
+
// 辅助
|
|
98
|
+
static viewHandler: viewHandlerType
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// 插值
|
|
102
|
+
export let Cardinal: NewCardinalType
|
|
103
|
+
export let Hermite: NewHermiteType
|
|
104
|
+
|
|
105
|
+
// 变换
|
|
106
|
+
export let Matrix4: NewMatrix4Type
|
|
107
|
+
export let rotate: rotateType
|
|
108
|
+
|
|
109
|
+
// 工具
|
|
110
|
+
export let getLoopColors: getLoopColorsType
|
|
111
|
+
export let animation: animationType
|
|
112
|
+
export let ruler: rulerType
|
|
113
|
+
|
|
114
|
+
// 画笔
|
|
115
|
+
export let SVG: NewSVGType
|
|
116
|
+
export let Canvas: NewCanvasType
|
|
117
|
+
export let WebGL: NewWebGLType
|
|
118
|
+
|
|
119
|
+
// WebGL
|
|
120
|
+
export let getWebGLContext: getWebGLContextType
|
|
121
|
+
export let Shader: NewShaderType
|
|
122
|
+
export let Buffer: NewBufferType
|
|
123
|
+
export let Texture: NewTextureType
|
|
124
|
+
|
|
125
|
+
// 投影
|
|
126
|
+
export let Eoap: NewEoapType
|
|
127
|
+
export let Mercator: NewMercatorType
|
|
128
|
+
|
|
129
|
+
// 辅助
|
|
130
130
|
export let viewHandler: viewHandlerType
|
package/types/rotate.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export default interface rotateType {
|
|
2
|
-
(cx: number, cy: number, deg: number, x: number, y: number): number[]
|
|
1
|
+
export default interface rotateType {
|
|
2
|
+
(cx: number, cy: number, deg: number, x: number, y: number): number[]
|
|
3
3
|
}
|
package/types/ruler.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export default interface rulerType {
|
|
2
|
-
(maxValue: number, minValue: number, num: number): number[]
|
|
1
|
+
export default interface rulerType {
|
|
2
|
+
(maxValue: number, minValue: number, num: number): number[]
|
|
3
3
|
}
|
package/types/viewHandler.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export interface paramsType {
|
|
2
|
-
type: string
|
|
3
|
-
value: number,
|
|
4
|
-
normal: number[]
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface callbackFun {
|
|
8
|
-
(params: paramsType): void
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export default interface viewHandlerType {
|
|
12
|
-
(callback: callbackFun): void
|
|
1
|
+
export interface paramsType {
|
|
2
|
+
type: string
|
|
3
|
+
value: number,
|
|
4
|
+
normal: number[]
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface callbackFun {
|
|
8
|
+
(params: paramsType): void
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default interface viewHandlerType {
|
|
12
|
+
(callback: callbackFun): void
|
|
13
13
|
}
|