vislite 0.8.0 → 1.0.0-next.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 +18 -2
- package/LICENSE +20 -20
- package/README.md +2 -36
- package/lib/Buffer/index.umd.js +2 -2
- package/lib/Buffer/index.umd.min.js +2 -2
- package/lib/Canvas/index.umd.js +9 -24
- 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/SVG/index.umd.js +19 -35
- package/lib/SVG/index.umd.min.js +3 -3
- package/lib/Shader/index.umd.js +3 -82
- package/lib/Shader/index.umd.min.js +3 -3
- package/lib/Texture/index.umd.js +2 -2
- package/lib/Texture/index.umd.min.js +2 -2
- package/lib/TreeLayout/index.umd.js +2 -2
- package/lib/TreeLayout/index.umd.min.js +2 -2
- 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 +104 -975
- package/lib/index.umd.min.js +3 -3
- package/lib/move/index.umd.js +2 -2
- package/lib/move/index.umd.min.js +2 -2
- 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/scale/index.umd.js +2 -2
- package/lib/scale/index.umd.min.js +2 -2
- package/lib/throttle/index.umd.js +2 -2
- package/lib/throttle/index.umd.min.js +2 -2
- package/miniprogram/ui-canvas/index.js +100 -107
- 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 +2 -2
- package/package/Canvas/index.ts +2 -2
- 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/SVG/index.ts +2 -2
- package/package/Shader/index.ts +2 -39
- package/package/Texture/index.ts +2 -2
- package/package/TreeLayout/index.ts +2 -2
- package/package/animation/index.ts +2 -2
- package/package/getLoopColors/index.ts +2 -2
- package/package/index.ts +65 -76
- package/package/move/index.ts +2 -2
- package/package/rotate/index.ts +2 -2
- package/package/ruler/index.ts +2 -2
- package/package/scale/index.ts +2 -2
- package/package/throttle/index.ts +2 -2
- package/package.json +1 -1
- package/src/Eoap.ts +66 -66
- package/src/Matrix4/index.ts +84 -84
- 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 +27 -27
- package/src/SVG.ts +24 -24
- package/src/animation.ts +98 -98
- package/src/common/assemble.ts +22 -22
- package/src/common/canvas/arc.ts +51 -51
- package/src/common/canvas/config.ts +158 -158
- package/src/common/canvas/gradient.ts +24 -29
- package/src/common/canvas/index.ts +1 -12
- package/src/common/canvas/texts.ts +18 -18
- package/src/common/mergeOption.ts +6 -6
- package/src/common/setStyle.ts +5 -5
- package/src/common/svg/config.ts +190 -190
- package/src/common/svg/gradient.ts +53 -63
- package/src/common/svg/index.ts +347 -356
- package/src/common/svg/tool.ts +44 -44
- package/src/common/tree/index.ts +25 -25
- package/src/common/tree/toInnerTree.ts +59 -59
- package/src/common/tree/toPlainTree.ts +132 -132
- package/src/common/webgl/buffer.ts +79 -79
- package/src/common/webgl/getWebGLContext.ts +1 -1
- package/src/common/webgl/shader.ts +75 -75
- package/src/common/webgl/texture.ts +97 -97
- package/src/getLoopColors.ts +42 -42
- package/src/interpolation/Cardinal.ts +110 -110
- package/src/interpolation/Hermite.ts +65 -65
- package/src/layout/TreeLayout.ts +188 -188
- package/src/move.ts +7 -7
- package/src/rotate.ts +7 -7
- package/src/ruler.ts +209 -209
- package/src/scale.ts +6 -6
- package/src/throttle.ts +52 -52
- package/types/Buffer.d.ts +23 -23
- package/types/CanvasConfig.d.ts +106 -106
- package/types/CanvasOption.d.ts +8 -8
- package/types/CanvasOpts.d.ts +9 -9
- 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 +47 -47
- package/types/SVG.d.ts +238 -238
- package/types/SVGConfig.d.ts +79 -79
- package/types/Shader.d.ts +16 -23
- package/types/Texture.d.ts +16 -16
- package/types/Tree.d.ts +69 -69
- package/types/TreeConfig.d.ts +36 -36
- package/types/TreeLayout.d.ts +54 -54
- package/types/TreeOption.d.ts +48 -48
- package/types/animation.d.ts +9 -6
- package/types/getLoopColors.d.ts +5 -2
- package/types/getWebGLContext.d.ts +3 -0
- package/types/index.d.ts +146 -176
- package/types/move.d.ts +5 -2
- package/types/painterConfig.d.ts +2 -2
- package/types/rotate.d.ts +5 -2
- package/types/ruler.d.ts +10 -7
- package/types/scale.d.ts +5 -2
- package/types/throttle.d.ts +7 -4
- package/types/throttleOption.d.ts +21 -21
- package/uni-app/ui-canvas.vue +4 -11
- package/lib/Geometry/index.umd.d.ts +0 -3
- package/lib/Geometry/index.umd.js +0 -353
- package/lib/Geometry/index.umd.min.d.ts +0 -3
- package/lib/Geometry/index.umd.min.js +0 -11
- package/lib/OralCanvas/index.es.d.ts +0 -3
- package/lib/OralCanvas/index.es.js +0 -693
- package/lib/OralCanvas/index.es.min.d.ts +0 -3
- package/lib/OralCanvas/index.es.min.js +0 -11
- package/lib/OralWebGL/index.es.d.ts +0 -3
- package/lib/OralWebGL/index.es.js +0 -639
- package/lib/OralWebGL/index.es.min.d.ts +0 -3
- package/lib/OralWebGL/index.es.min.js +0 -11
- package/lib/WebGL/index.umd.d.ts +0 -3
- package/lib/WebGL/index.umd.js +0 -712
- package/lib/WebGL/index.umd.min.d.ts +0 -3
- package/lib/WebGL/index.umd.min.js +0 -11
- package/lib/formatColor/index.umd.d.ts +0 -3
- package/lib/formatColor/index.umd.js +0 -59
- package/lib/formatColor/index.umd.min.d.ts +0 -3
- package/lib/formatColor/index.umd.min.js +0 -11
- package/lib/resizeObserver/index.umd.d.ts +0 -3
- package/lib/resizeObserver/index.umd.js +0 -49
- package/lib/resizeObserver/index.umd.min.d.ts +0 -3
- package/lib/resizeObserver/index.umd.min.js +0 -11
- package/lib/viewHandler/index.umd.d.ts +0 -3
- package/lib/viewHandler/index.umd.js +0 -139
- package/lib/viewHandler/index.umd.min.d.ts +0 -3
- package/lib/viewHandler/index.umd.min.js +0 -11
- package/package/Geometry/index.ts +0 -3
- package/package/OralCanvas/index.ts +0 -3
- package/package/OralWebGL/index.ts +0 -3
- package/package/WebGL/index.ts +0 -3
- package/package/formatColor/index.ts +0 -3
- package/package/resizeObserver/index.ts +0 -3
- package/package/viewHandler/index.ts +0 -3
- package/src/Geometry.ts +0 -211
- package/src/WebGL.ts +0 -67
- package/src/common/geometry/prism-horizontal.ts +0 -50
- package/src/common/geometry/prism-vertical.ts +0 -55
- package/src/common/geometry/sphere-fragment.ts +0 -40
- package/src/common/geometry/tool/circle.ts +0 -18
- package/src/common/geometry/tool/rotateLine.ts +0 -49
- package/src/common/geometry/tool/triangles.ts +0 -24
- package/src/common/webgl/doDraw.ts +0 -109
- package/src/common/webgl/getColorFactory.ts +0 -27
- package/src/common/webgl/getShader.ts +0 -49
- package/src/common/webgl/getTexture.ts +0 -12
- package/src/common/webgl/index.ts +0 -228
- package/src/formatColor.ts +0 -45
- package/src/resizeObserver.ts +0 -38
- package/src/shader/fsColor.c +0 -8
- package/src/shader/fsColors.c +0 -8
- package/src/shader/fsCube.c +0 -9
- package/src/shader/fsImage.c +0 -9
- package/src/shader/vsColor.c +0 -18
- package/src/shader/vsColors.c +0 -14
- package/src/shader/vsCube.c +0 -14
- package/src/shader/vsImage.c +0 -14
- package/src/viewHandler.ts +0 -161
- package/types/Geometry.d.ts +0 -133
- package/types/GeometryOption.d.ts +0 -12
- package/types/GeometryResult.d.ts +0 -19
- package/types/Object3D.d.ts +0 -115
- package/types/Scene3D.d.ts +0 -7
- package/types/WebGL.d.ts +0 -39
- package/types/WebGLOption.d.ts +0 -15
- package/types/formatColor.d.ts +0 -3
- package/types/resizeObserver.d.ts +0 -3
- package/types/viewHandler.d.ts +0 -14
|
@@ -1,107 +1,100 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
let dpr = wx.getSystemInfoSync().pixelRatio;
|
|
4
|
-
|
|
5
|
-
Component({
|
|
6
|
-
properties: {
|
|
7
|
-
width: {
|
|
8
|
-
type: Number,
|
|
9
|
-
default: 300
|
|
10
|
-
},
|
|
11
|
-
height: {
|
|
12
|
-
type: Number,
|
|
13
|
-
default: 150
|
|
14
|
-
},
|
|
15
|
-
region: {
|
|
16
|
-
type: Boolean,
|
|
17
|
-
default: true
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
this.data.
|
|
62
|
-
getContext() {
|
|
63
|
-
return
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
},
|
|
102
|
-
doitstart(event) {
|
|
103
|
-
this.doit(event, this.data.touchstart);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
});
|
|
1
|
+
import { _Canvas as RawCanvas } from "../../lib/index.umd.min.js";
|
|
2
|
+
|
|
3
|
+
let dpr = wx.getSystemInfoSync().pixelRatio;
|
|
4
|
+
|
|
5
|
+
Component({
|
|
6
|
+
properties: {
|
|
7
|
+
width: {
|
|
8
|
+
type: Number,
|
|
9
|
+
default: 300
|
|
10
|
+
},
|
|
11
|
+
height: {
|
|
12
|
+
type: Number,
|
|
13
|
+
default: 150
|
|
14
|
+
},
|
|
15
|
+
region: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: true
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
data: {
|
|
21
|
+
help: {}
|
|
22
|
+
},
|
|
23
|
+
lifetimes: {
|
|
24
|
+
ready() {
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
methods: {
|
|
29
|
+
fetch() {
|
|
30
|
+
return new Promise((resolve, reject) => {
|
|
31
|
+
|
|
32
|
+
let getCanvasContext = (idName, doback) => {
|
|
33
|
+
if (idName != 'region' || this.data.region) {
|
|
34
|
+
const query = wx.createSelectorQuery().in(this);
|
|
35
|
+
query.select('#' + idName)
|
|
36
|
+
.fields({ node: true, size: true })
|
|
37
|
+
.exec((res) => {
|
|
38
|
+
const canvas = res[0].node;
|
|
39
|
+
const ctx = canvas.getContext('2d');
|
|
40
|
+
|
|
41
|
+
canvas.width = res[0].width * (idName == "region" ? 1 : dpr);
|
|
42
|
+
canvas.height = res[0].height * (idName == "region" ? 1 : dpr);
|
|
43
|
+
|
|
44
|
+
if (idName != "region") {
|
|
45
|
+
ctx.scale(dpr, dpr);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
doback(ctx);
|
|
49
|
+
});
|
|
50
|
+
} else {
|
|
51
|
+
doback(null);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
getCanvasContext("painter", painter => {
|
|
56
|
+
getCanvasContext("region", region => {
|
|
57
|
+
this.data.help.instance = new RawCanvas({
|
|
58
|
+
getContext() {
|
|
59
|
+
return painter;
|
|
60
|
+
}
|
|
61
|
+
}, this.data.region ? {
|
|
62
|
+
getContext() {
|
|
63
|
+
return region;
|
|
64
|
+
}
|
|
65
|
+
} : null);
|
|
66
|
+
|
|
67
|
+
this.data.help.instance.toDataURL = () => {
|
|
68
|
+
return new Promise((resolveUrl) => {
|
|
69
|
+
wx.canvasToTempFilePath({
|
|
70
|
+
canvasId: "painter",
|
|
71
|
+
success: function (e) {
|
|
72
|
+
resolveUrl(e.tempFilePath);
|
|
73
|
+
},
|
|
74
|
+
}, this);
|
|
75
|
+
})
|
|
76
|
+
};
|
|
77
|
+
resolve(this.data.help.instance);
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
});
|
|
82
|
+
},
|
|
83
|
+
doit(event) {
|
|
84
|
+
let x = event.touches[0].x;
|
|
85
|
+
let y = event.touches[0].y;
|
|
86
|
+
|
|
87
|
+
this.data.help.instance.getRegion(x, y).then((regionName) => {
|
|
88
|
+
this.triggerEvent('dotouchstart', {
|
|
89
|
+
name: regionName,
|
|
90
|
+
x: x,
|
|
91
|
+
y: y
|
|
92
|
+
})
|
|
93
|
+
});
|
|
94
|
+
},
|
|
95
|
+
doitstart(event) {
|
|
96
|
+
this.doit(event);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
2
|
-
"usingComponents": {},
|
|
3
|
-
"component": true
|
|
4
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"usingComponents": {},
|
|
3
|
+
"component": true
|
|
4
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<view>
|
|
2
|
-
<canvas type="2d" id="painter" style='width:{{width}}px;height:{{height}}px;' bindtouchstart="doitstart"></canvas>
|
|
3
|
-
<canvas wx:if="{{region}}" type="2d" id="region" style='width:{{width}}px;height:{{height}}px;' class="region"></canvas>
|
|
4
|
-
</view>
|
|
1
|
+
<view>
|
|
2
|
+
<canvas type="2d" id="painter" style='width:{{width}}px;height:{{height}}px;' bindtouchstart="doitstart"></canvas>
|
|
3
|
+
<canvas wx:if="{{region}}" type="2d" id="region" style='width:{{width}}px;height:{{height}}px;' class="region"></canvas>
|
|
4
|
+
</view>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* 辅助的区域不应该可以看见 */
|
|
2
|
-
.region {
|
|
3
|
-
position: fixed;
|
|
4
|
-
left: 50000px;
|
|
5
|
-
}
|
|
1
|
+
/* 辅助的区域不应该可以看见 */
|
|
2
|
+
.region {
|
|
3
|
+
position: fixed;
|
|
4
|
+
left: 50000px;
|
|
5
|
+
}
|
package/package/Buffer/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Buffer from '../../src/common/webgl/buffer'
|
|
2
|
-
|
|
1
|
+
import Buffer from '../../src/common/webgl/buffer'
|
|
2
|
+
|
|
3
3
|
export default Buffer
|
package/package/Canvas/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Canvas from "../../src/Canvas"
|
|
2
|
-
|
|
1
|
+
import Canvas from "../../src/Canvas"
|
|
2
|
+
|
|
3
3
|
export default Canvas
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Cardinal from "../../src/interpolation/Cardinal"
|
|
2
|
-
|
|
1
|
+
import Cardinal from "../../src/interpolation/Cardinal"
|
|
2
|
+
|
|
3
3
|
export default Cardinal
|
package/package/Eoap/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Eoap from "../../src/Eoap"
|
|
2
|
-
|
|
1
|
+
import Eoap from "../../src/Eoap"
|
|
2
|
+
|
|
3
3
|
export default Eoap
|
package/package/Hermite/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Hermite from "../../src/interpolation/Hermite"
|
|
2
|
-
|
|
1
|
+
import Hermite from "../../src/interpolation/Hermite"
|
|
2
|
+
|
|
3
3
|
export default Hermite
|
package/package/Matrix4/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Matrix4 from "../../src/Matrix4/index"
|
|
2
|
-
|
|
1
|
+
import Matrix4 from "../../src/Matrix4/index"
|
|
2
|
+
|
|
3
3
|
export default Matrix4
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Mercator from "../../src/Mercator"
|
|
2
|
-
|
|
1
|
+
import Mercator from "../../src/Mercator"
|
|
2
|
+
|
|
3
3
|
export default Mercator
|
package/package/SVG/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import SVG from "../../src/SVG"
|
|
2
|
-
|
|
1
|
+
import SVG from "../../src/SVG"
|
|
2
|
+
|
|
3
3
|
export default SVG
|
package/package/Shader/index.ts
CHANGED
|
@@ -1,40 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import OralShader from '../../src/common/webgl/shader'
|
|
4
|
-
|
|
5
|
-
import vsColor from '../../src/shader/vsColor.c'
|
|
6
|
-
import vsColors from '../../src/shader/vsColors.c'
|
|
7
|
-
import vsImage from '../../src/shader/vsImage.c'
|
|
8
|
-
import vsCube from '../../src/shader/vsCube.c'
|
|
9
|
-
|
|
10
|
-
import fsColor from '../../src/shader/fsColor.c'
|
|
11
|
-
import fsColors from '../../src/shader/fsColors.c'
|
|
12
|
-
import fsImage from '../../src/shader/fsImage.c'
|
|
13
|
-
import fsCube from '../../src/shader/fsCube.c'
|
|
14
|
-
|
|
15
|
-
class Shader extends OralShader implements ShaderType {
|
|
16
|
-
|
|
17
|
-
compile(vshaderSource: string, fshaderSource: string): this
|
|
18
|
-
compile(shaderName: string): this
|
|
19
|
-
compile(arg1: string, arg2?: string) {
|
|
20
|
-
if (arg2) {
|
|
21
|
-
super.compile(arg1, arg2)
|
|
22
|
-
} else {
|
|
23
|
-
super.compile({
|
|
24
|
-
"color": vsColor,
|
|
25
|
-
"colors": vsColors,
|
|
26
|
-
"image": vsImage,
|
|
27
|
-
"cube": vsCube
|
|
28
|
-
}[arg1], {
|
|
29
|
-
"color": fsColor,
|
|
30
|
-
"colors": fsColors,
|
|
31
|
-
"image": fsImage,
|
|
32
|
-
"cube": fsCube
|
|
33
|
-
}[arg1])
|
|
34
|
-
}
|
|
35
|
-
return this
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
1
|
+
import Shader from '../../src/common/webgl/shader'
|
|
2
|
+
|
|
40
3
|
export default Shader
|
package/package/Texture/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Texture from '../../src/common/webgl/texture'
|
|
2
|
-
|
|
1
|
+
import Texture from '../../src/common/webgl/texture'
|
|
2
|
+
|
|
3
3
|
export default Texture
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import TreeLayout from "../../src/layout/TreeLayout"
|
|
2
|
-
|
|
1
|
+
import TreeLayout from "../../src/layout/TreeLayout"
|
|
2
|
+
|
|
3
3
|
export default TreeLayout
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import animation from "../../src/animation"
|
|
2
|
-
|
|
1
|
+
import animation from "../../src/animation"
|
|
2
|
+
|
|
3
3
|
export default animation
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import getLoopColors from "../../src/getLoopColors"
|
|
2
|
-
|
|
1
|
+
import getLoopColors from "../../src/getLoopColors"
|
|
2
|
+
|
|
3
3
|
export default getLoopColors
|
package/package/index.ts
CHANGED
|
@@ -1,77 +1,66 @@
|
|
|
1
|
-
import Cardinal from "./Cardinal/index"
|
|
2
|
-
import Hermite from "./Hermite/index"
|
|
3
|
-
|
|
4
|
-
import Matrix4 from "./Matrix4/index"
|
|
5
|
-
import rotate from "./rotate/index"
|
|
6
|
-
import move from "./move/index"
|
|
7
|
-
import scale from "./scale/index"
|
|
8
|
-
|
|
9
|
-
import getLoopColors from "./getLoopColors/index"
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
import
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
import
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
//
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
//
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
// 辅助
|
|
68
|
-
viewHandler,
|
|
69
|
-
resizeObserver,
|
|
70
|
-
throttle,
|
|
71
|
-
|
|
72
|
-
// 布局
|
|
73
|
-
TreeLayout,
|
|
74
|
-
|
|
75
|
-
// 几何&模型数据
|
|
76
|
-
Geometry
|
|
1
|
+
import Cardinal from "./Cardinal/index"
|
|
2
|
+
import Hermite from "./Hermite/index"
|
|
3
|
+
|
|
4
|
+
import Matrix4 from "./Matrix4/index"
|
|
5
|
+
import rotate from "./rotate/index"
|
|
6
|
+
import move from "./move/index"
|
|
7
|
+
import scale from "./scale/index"
|
|
8
|
+
|
|
9
|
+
import getLoopColors from "./getLoopColors/index"
|
|
10
|
+
import animation from "./animation/index"
|
|
11
|
+
import ruler from "./ruler/index"
|
|
12
|
+
|
|
13
|
+
import SVG from "./SVG/index"
|
|
14
|
+
import Canvas from "./Canvas/index"
|
|
15
|
+
import _Canvas from "../src/common/canvas/index"
|
|
16
|
+
|
|
17
|
+
import getWebGLContext from "./getWebGLContext/index"
|
|
18
|
+
import Shader from "./Shader/index"
|
|
19
|
+
import Texture from "./Texture/index"
|
|
20
|
+
import Buffer from "./Buffer/index"
|
|
21
|
+
|
|
22
|
+
import Eoap from "./Eoap/index"
|
|
23
|
+
import Mercator from "./Mercator/index"
|
|
24
|
+
|
|
25
|
+
import throttle from "./throttle/index"
|
|
26
|
+
|
|
27
|
+
import TreeLayout from "./TreeLayout/index"
|
|
28
|
+
|
|
29
|
+
export default {
|
|
30
|
+
|
|
31
|
+
// 插值
|
|
32
|
+
Cardinal,
|
|
33
|
+
Hermite,
|
|
34
|
+
|
|
35
|
+
// 变换
|
|
36
|
+
Matrix4,
|
|
37
|
+
rotate,
|
|
38
|
+
move,
|
|
39
|
+
scale,
|
|
40
|
+
|
|
41
|
+
// 工具
|
|
42
|
+
getLoopColors,
|
|
43
|
+
animation,
|
|
44
|
+
ruler,
|
|
45
|
+
|
|
46
|
+
// 画笔
|
|
47
|
+
SVG,
|
|
48
|
+
Canvas,
|
|
49
|
+
_Canvas,
|
|
50
|
+
|
|
51
|
+
// WebGL
|
|
52
|
+
getWebGLContext,
|
|
53
|
+
Shader,
|
|
54
|
+
Texture,
|
|
55
|
+
Buffer,
|
|
56
|
+
|
|
57
|
+
// 投影
|
|
58
|
+
Eoap,
|
|
59
|
+
Mercator,
|
|
60
|
+
|
|
61
|
+
// 辅助
|
|
62
|
+
throttle,
|
|
63
|
+
|
|
64
|
+
// 布局
|
|
65
|
+
TreeLayout
|
|
77
66
|
}
|
package/package/move/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import move from "../../src/move"
|
|
2
|
-
|
|
1
|
+
import move from "../../src/move"
|
|
2
|
+
|
|
3
3
|
export default move
|
package/package/rotate/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import rotate from "../../src/rotate"
|
|
2
|
-
|
|
1
|
+
import rotate from "../../src/rotate"
|
|
2
|
+
|
|
3
3
|
export default rotate
|
package/package/ruler/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ruler from "../../src/ruler"
|
|
2
|
-
|
|
1
|
+
import ruler from "../../src/ruler"
|
|
2
|
+
|
|
3
3
|
export default ruler
|
package/package/scale/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import scale from "../../src/scale"
|
|
2
|
-
|
|
1
|
+
import scale from "../../src/scale"
|
|
2
|
+
|
|
3
3
|
export default scale
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import throttle from "../../src/throttle"
|
|
2
|
-
|
|
1
|
+
import throttle from "../../src/throttle"
|
|
2
|
+
|
|
3
3
|
export default throttle
|