vislite 0.5.0 → 0.5.2-alpha.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/CHANGELOG +137 -132
- package/lib/Buffer/index.umd.js +36 -36
- package/lib/Buffer/index.umd.min.js +2 -2
- package/lib/Canvas/index.umd.js +650 -650
- package/lib/Canvas/index.umd.min.js +2 -2
- package/lib/Cardinal/index.umd.js +91 -91
- package/lib/Cardinal/index.umd.min.js +2 -2
- package/lib/Eoap/index.umd.js +34 -34
- package/lib/Eoap/index.umd.min.js +2 -2
- package/lib/Geometry/index.umd.js +142 -142
- package/lib/Geometry/index.umd.min.js +2 -2
- package/lib/Hermite/index.umd.js +36 -36
- package/lib/Hermite/index.umd.min.js +2 -2
- package/lib/Matrix4/index.umd.js +119 -119
- package/lib/Matrix4/index.umd.min.js +2 -2
- package/lib/Mercator/index.umd.js +20 -20
- package/lib/Mercator/index.umd.min.js +2 -2
- package/lib/OralCanvas/index.es.js +598 -598
- package/lib/OralCanvas/index.es.min.js +2 -2
- package/lib/OralWebGL/index.es.js +524 -524
- package/lib/OralWebGL/index.es.min.js +2 -2
- package/lib/SVG/index.umd.js +406 -406
- package/lib/SVG/index.umd.min.js +2 -2
- package/lib/Shader/index.umd.js +61 -61
- package/lib/Shader/index.umd.min.js +2 -2
- package/lib/Texture/index.umd.js +53 -53
- package/lib/Texture/index.umd.min.js +2 -2
- package/lib/TreeLayout/index.umd.js +363 -363
- package/lib/TreeLayout/index.umd.min.js +2 -2
- package/lib/WebGL/index.umd.js +571 -571
- package/lib/WebGL/index.umd.min.js +2 -2
- package/lib/animation/index.umd.js +72 -72
- package/lib/animation/index.umd.min.js +2 -2
- package/lib/formatColor/index.umd.js +40 -40
- package/lib/formatColor/index.umd.min.js +2 -2
- package/lib/getLoopColors/index.umd.js +36 -36
- package/lib/getLoopColors/index.umd.min.js +2 -2
- package/lib/getWebGLContext/index.umd.js +44 -44
- package/lib/getWebGLContext/index.umd.min.js +2 -2
- package/lib/index.umd.js +2647 -2647
- package/lib/index.umd.min.js +2 -2
- package/lib/resizeObserver/index.umd.js +29 -29
- package/lib/resizeObserver/index.umd.min.js +2 -2
- package/lib/rotate/index.umd.js +8 -8
- package/lib/rotate/index.umd.min.js +2 -2
- package/lib/ruler/index.umd.js +126 -126
- package/lib/ruler/index.umd.min.js +2 -2
- package/lib/throttle/index.umd.js +49 -49
- package/lib/throttle/index.umd.min.js +2 -2
- package/lib/viewHandler/index.umd.js +120 -120
- package/lib/viewHandler/index.umd.min.js +2 -2
- package/package/Geometry/index.ts +2 -2
- package/package/index.ts +72 -72
- package/package.json +66 -66
- package/src/Eoap.ts +66 -66
- package/src/Geometry.ts +82 -82
- package/src/Matrix4/index.ts +76 -76
- package/src/Mercator.ts +27 -27
- package/src/TreeLayout/index.ts +186 -186
- package/src/common/geometry/prism-horizontal.ts +33 -33
- package/src/common/geometry/prism-vertical.ts +40 -40
- package/src/common/geometry/sphere-fragment.ts +39 -39
- package/src/common/geometry/tool/circle.ts +11 -11
- package/src/common/svg/index.ts +344 -344
- package/src/rotate.ts +7 -7
- package/types/CanvasConfig.d.ts +106 -106
- package/types/Geometry.d.ts +40 -40
- package/types/GeometryOption.d.ts +11 -11
- package/types/GeometryResult.d.ts +18 -18
- package/types/Map.d.ts +9 -9
- package/types/Matrix4.d.ts +42 -42
- package/types/SVG.d.ts +215 -215
- package/types/TreeLayout.d.ts +54 -54
- package/types/index.d.ts +169 -169
- package/types/rotate.d.ts +2 -2
- package/uni-app/ui-canvas.vue +206 -202
package/types/index.d.ts
CHANGED
|
@@ -1,170 +1,170 @@
|
|
|
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 formatColorType from './formatColor'
|
|
9
|
-
import animationType from './animation'
|
|
10
|
-
import rulerType from './ruler'
|
|
11
|
-
|
|
12
|
-
import SVGType from './SVG'
|
|
13
|
-
import CanvasType from './Canvas'
|
|
14
|
-
import WebGLType from './WebGL'
|
|
15
|
-
|
|
16
|
-
import CanvasOptionType from './CanvasOption'
|
|
17
|
-
import WebGLOptionType from './WebGLOption'
|
|
18
|
-
|
|
19
|
-
import getWebGLContextType from './getWebGLContext'
|
|
20
|
-
import ShaderType from './Shader'
|
|
21
|
-
import BufferType from './Buffer'
|
|
22
|
-
import TextureType from './Texture'
|
|
23
|
-
|
|
24
|
-
import MapType from './Map'
|
|
25
|
-
|
|
26
|
-
import viewHandlerType from './viewHandler'
|
|
27
|
-
import throttleType from './throttle'
|
|
28
|
-
import resizeObserverType from './resizeObserver'
|
|
29
|
-
|
|
30
|
-
import TreeLayoutType from './TreeLayout'
|
|
31
|
-
import TreeConfigType from './TreeConfig'
|
|
32
|
-
|
|
33
|
-
import GeometryType from './Geometry'
|
|
34
|
-
import GeometryOptionType from './GeometryOption'
|
|
35
|
-
|
|
36
|
-
// 插值
|
|
37
|
-
interface NewCardinalType extends CardinalType {
|
|
38
|
-
new(t?: number): this
|
|
39
|
-
}
|
|
40
|
-
interface NewHermiteType extends HermiteType {
|
|
41
|
-
new(u?: number): this
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// 变换
|
|
45
|
-
interface NewMatrix4Type extends Matrix4Type {
|
|
46
|
-
new(initMatrix4?: number[]): this
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// 画笔
|
|
50
|
-
interface NewSVGType extends SVGType {
|
|
51
|
-
new(el: HTMLElement | null): this
|
|
52
|
-
}
|
|
53
|
-
interface NewCanvasType extends CanvasType {
|
|
54
|
-
new(el: HTMLElement | null, option?: CanvasOptionType): this
|
|
55
|
-
}
|
|
56
|
-
interface NewWebGLType extends WebGLType {
|
|
57
|
-
new(el: HTMLElement | null, option?: WebGLOptionType): this
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// WebGL
|
|
61
|
-
interface NewShaderType extends ShaderType {
|
|
62
|
-
new(painter: WebGLRenderingContext): this
|
|
63
|
-
}
|
|
64
|
-
interface NewBufferType extends BufferType {
|
|
65
|
-
new(painter: WebGLRenderingContext, isElement?: boolean): this
|
|
66
|
-
}
|
|
67
|
-
interface NewTextureType extends TextureType {
|
|
68
|
-
new(painter: WebGLRenderingContext, type: string, unit?: number): this
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// 投影
|
|
72
|
-
interface NewEoapType extends MapType {
|
|
73
|
-
new(scale?: number, center?: number[]): this
|
|
74
|
-
}
|
|
75
|
-
interface NewMercatorType extends MapType {
|
|
76
|
-
new(scale?: number, center?: number[]): this
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// 布局
|
|
80
|
-
interface NewTreeLayoutType extends TreeLayoutType {
|
|
81
|
-
new(config?: TreeConfigType): this
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// 几何&模型数据
|
|
85
|
-
interface NewGeometryType extends GeometryType {
|
|
86
|
-
new(option?: GeometryOptionType): this
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export default class VISLite {
|
|
90
|
-
|
|
91
|
-
// 插值
|
|
92
|
-
static Cardinal: NewCardinalType
|
|
93
|
-
static Hermite: NewHermiteType
|
|
94
|
-
|
|
95
|
-
// 变换
|
|
96
|
-
static Matrix4: NewMatrix4Type
|
|
97
|
-
static rotate: rotateType
|
|
98
|
-
|
|
99
|
-
// 工具
|
|
100
|
-
static getLoopColors: getLoopColorsType
|
|
101
|
-
static formatColor: formatColorType
|
|
102
|
-
static animation: animationType
|
|
103
|
-
static ruler: rulerType
|
|
104
|
-
|
|
105
|
-
// 画笔
|
|
106
|
-
static SVG: NewSVGType
|
|
107
|
-
static Canvas: NewCanvasType
|
|
108
|
-
static WebGL: NewWebGLType
|
|
109
|
-
|
|
110
|
-
// WebGL
|
|
111
|
-
static getWebGLContext: getWebGLContextType
|
|
112
|
-
static Shader: NewShaderType
|
|
113
|
-
static Buffer: NewBufferType
|
|
114
|
-
static Texture: NewTextureType
|
|
115
|
-
|
|
116
|
-
// 投影
|
|
117
|
-
static Eoap: NewEoapType
|
|
118
|
-
static Mercator: NewMercatorType
|
|
119
|
-
|
|
120
|
-
// 辅助
|
|
121
|
-
static viewHandler: viewHandlerType
|
|
122
|
-
static throttle: throttleType
|
|
123
|
-
static resizeObserver: resizeObserverType
|
|
124
|
-
|
|
125
|
-
// 布局
|
|
126
|
-
static TreeLayout: NewTreeLayoutType
|
|
127
|
-
|
|
128
|
-
// 几何&模型数据
|
|
129
|
-
static Geometry: NewGeometryType
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
// 插值
|
|
133
|
-
export let Cardinal: NewCardinalType
|
|
134
|
-
export let Hermite: NewHermiteType
|
|
135
|
-
|
|
136
|
-
// 变换
|
|
137
|
-
export let Matrix4: NewMatrix4Type
|
|
138
|
-
export let rotate: rotateType
|
|
139
|
-
|
|
140
|
-
// 工具
|
|
141
|
-
export let getLoopColors: getLoopColorsType
|
|
142
|
-
export let formatColor: formatColorType
|
|
143
|
-
export let animation: animationType
|
|
144
|
-
export let ruler: rulerType
|
|
145
|
-
|
|
146
|
-
// 画笔
|
|
147
|
-
export let SVG: NewSVGType
|
|
148
|
-
export let Canvas: NewCanvasType
|
|
149
|
-
export let WebGL: NewWebGLType
|
|
150
|
-
|
|
151
|
-
// WebGL
|
|
152
|
-
export let getWebGLContext: getWebGLContextType
|
|
153
|
-
export let Shader: NewShaderType
|
|
154
|
-
export let Buffer: NewBufferType
|
|
155
|
-
export let Texture: NewTextureType
|
|
156
|
-
|
|
157
|
-
// 投影
|
|
158
|
-
export let Eoap: NewEoapType
|
|
159
|
-
export let Mercator: NewMercatorType
|
|
160
|
-
|
|
161
|
-
// 辅助
|
|
162
|
-
export let viewHandler: viewHandlerType
|
|
163
|
-
export let throttle: throttleType
|
|
164
|
-
export let resizeObserver: resizeObserverType
|
|
165
|
-
|
|
166
|
-
// 布局
|
|
167
|
-
export let TreeLayout: NewTreeLayoutType
|
|
168
|
-
|
|
169
|
-
// 几何&模型数据
|
|
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 formatColorType from './formatColor'
|
|
9
|
+
import animationType from './animation'
|
|
10
|
+
import rulerType from './ruler'
|
|
11
|
+
|
|
12
|
+
import SVGType from './SVG'
|
|
13
|
+
import CanvasType from './Canvas'
|
|
14
|
+
import WebGLType from './WebGL'
|
|
15
|
+
|
|
16
|
+
import CanvasOptionType from './CanvasOption'
|
|
17
|
+
import WebGLOptionType from './WebGLOption'
|
|
18
|
+
|
|
19
|
+
import getWebGLContextType from './getWebGLContext'
|
|
20
|
+
import ShaderType from './Shader'
|
|
21
|
+
import BufferType from './Buffer'
|
|
22
|
+
import TextureType from './Texture'
|
|
23
|
+
|
|
24
|
+
import MapType from './Map'
|
|
25
|
+
|
|
26
|
+
import viewHandlerType from './viewHandler'
|
|
27
|
+
import throttleType from './throttle'
|
|
28
|
+
import resizeObserverType from './resizeObserver'
|
|
29
|
+
|
|
30
|
+
import TreeLayoutType from './TreeLayout'
|
|
31
|
+
import TreeConfigType from './TreeConfig'
|
|
32
|
+
|
|
33
|
+
import GeometryType from './Geometry'
|
|
34
|
+
import GeometryOptionType from './GeometryOption'
|
|
35
|
+
|
|
36
|
+
// 插值
|
|
37
|
+
interface NewCardinalType extends CardinalType {
|
|
38
|
+
new(t?: number): this
|
|
39
|
+
}
|
|
40
|
+
interface NewHermiteType extends HermiteType {
|
|
41
|
+
new(u?: number): this
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// 变换
|
|
45
|
+
interface NewMatrix4Type extends Matrix4Type {
|
|
46
|
+
new(initMatrix4?: number[]): this
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// 画笔
|
|
50
|
+
interface NewSVGType extends SVGType {
|
|
51
|
+
new(el: HTMLElement | null): this
|
|
52
|
+
}
|
|
53
|
+
interface NewCanvasType extends CanvasType {
|
|
54
|
+
new(el: HTMLElement | null, option?: CanvasOptionType): this
|
|
55
|
+
}
|
|
56
|
+
interface NewWebGLType extends WebGLType {
|
|
57
|
+
new(el: HTMLElement | null, option?: WebGLOptionType): this
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// WebGL
|
|
61
|
+
interface NewShaderType extends ShaderType {
|
|
62
|
+
new(painter: WebGLRenderingContext): this
|
|
63
|
+
}
|
|
64
|
+
interface NewBufferType extends BufferType {
|
|
65
|
+
new(painter: WebGLRenderingContext, isElement?: boolean): this
|
|
66
|
+
}
|
|
67
|
+
interface NewTextureType extends TextureType {
|
|
68
|
+
new(painter: WebGLRenderingContext, type: string, unit?: number): this
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// 投影
|
|
72
|
+
interface NewEoapType extends MapType {
|
|
73
|
+
new(scale?: number, center?: number[]): this
|
|
74
|
+
}
|
|
75
|
+
interface NewMercatorType extends MapType {
|
|
76
|
+
new(scale?: number, center?: number[]): this
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// 布局
|
|
80
|
+
interface NewTreeLayoutType extends TreeLayoutType {
|
|
81
|
+
new(config?: TreeConfigType): this
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// 几何&模型数据
|
|
85
|
+
interface NewGeometryType extends GeometryType {
|
|
86
|
+
new(option?: GeometryOptionType): this
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export default class VISLite {
|
|
90
|
+
|
|
91
|
+
// 插值
|
|
92
|
+
static Cardinal: NewCardinalType
|
|
93
|
+
static Hermite: NewHermiteType
|
|
94
|
+
|
|
95
|
+
// 变换
|
|
96
|
+
static Matrix4: NewMatrix4Type
|
|
97
|
+
static rotate: rotateType
|
|
98
|
+
|
|
99
|
+
// 工具
|
|
100
|
+
static getLoopColors: getLoopColorsType
|
|
101
|
+
static formatColor: formatColorType
|
|
102
|
+
static animation: animationType
|
|
103
|
+
static ruler: rulerType
|
|
104
|
+
|
|
105
|
+
// 画笔
|
|
106
|
+
static SVG: NewSVGType
|
|
107
|
+
static Canvas: NewCanvasType
|
|
108
|
+
static WebGL: NewWebGLType
|
|
109
|
+
|
|
110
|
+
// WebGL
|
|
111
|
+
static getWebGLContext: getWebGLContextType
|
|
112
|
+
static Shader: NewShaderType
|
|
113
|
+
static Buffer: NewBufferType
|
|
114
|
+
static Texture: NewTextureType
|
|
115
|
+
|
|
116
|
+
// 投影
|
|
117
|
+
static Eoap: NewEoapType
|
|
118
|
+
static Mercator: NewMercatorType
|
|
119
|
+
|
|
120
|
+
// 辅助
|
|
121
|
+
static viewHandler: viewHandlerType
|
|
122
|
+
static throttle: throttleType
|
|
123
|
+
static resizeObserver: resizeObserverType
|
|
124
|
+
|
|
125
|
+
// 布局
|
|
126
|
+
static TreeLayout: NewTreeLayoutType
|
|
127
|
+
|
|
128
|
+
// 几何&模型数据
|
|
129
|
+
static Geometry: NewGeometryType
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// 插值
|
|
133
|
+
export let Cardinal: NewCardinalType
|
|
134
|
+
export let Hermite: NewHermiteType
|
|
135
|
+
|
|
136
|
+
// 变换
|
|
137
|
+
export let Matrix4: NewMatrix4Type
|
|
138
|
+
export let rotate: rotateType
|
|
139
|
+
|
|
140
|
+
// 工具
|
|
141
|
+
export let getLoopColors: getLoopColorsType
|
|
142
|
+
export let formatColor: formatColorType
|
|
143
|
+
export let animation: animationType
|
|
144
|
+
export let ruler: rulerType
|
|
145
|
+
|
|
146
|
+
// 画笔
|
|
147
|
+
export let SVG: NewSVGType
|
|
148
|
+
export let Canvas: NewCanvasType
|
|
149
|
+
export let WebGL: NewWebGLType
|
|
150
|
+
|
|
151
|
+
// WebGL
|
|
152
|
+
export let getWebGLContext: getWebGLContextType
|
|
153
|
+
export let Shader: NewShaderType
|
|
154
|
+
export let Buffer: NewBufferType
|
|
155
|
+
export let Texture: NewTextureType
|
|
156
|
+
|
|
157
|
+
// 投影
|
|
158
|
+
export let Eoap: NewEoapType
|
|
159
|
+
export let Mercator: NewMercatorType
|
|
160
|
+
|
|
161
|
+
// 辅助
|
|
162
|
+
export let viewHandler: viewHandlerType
|
|
163
|
+
export let throttle: throttleType
|
|
164
|
+
export let resizeObserver: resizeObserverType
|
|
165
|
+
|
|
166
|
+
// 布局
|
|
167
|
+
export let TreeLayout: NewTreeLayoutType
|
|
168
|
+
|
|
169
|
+
// 几何&模型数据
|
|
170
170
|
export let Geometry: NewGeometryType
|
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, number]
|
|
1
|
+
export default interface rotateType {
|
|
2
|
+
(cx: number, cy: number, deg: number, x: number, y: number): [number, number]
|
|
3
3
|
}
|