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.
Files changed (203) hide show
  1. package/AUTHORS.txt +6 -6
  2. package/CHANGELOG +18 -2
  3. package/LICENSE +20 -20
  4. package/README.md +2 -36
  5. package/lib/Buffer/index.umd.js +2 -2
  6. package/lib/Buffer/index.umd.min.js +2 -2
  7. package/lib/Canvas/index.umd.js +9 -24
  8. package/lib/Canvas/index.umd.min.js +3 -3
  9. package/lib/Cardinal/index.umd.js +2 -2
  10. package/lib/Cardinal/index.umd.min.js +2 -2
  11. package/lib/Eoap/index.umd.js +2 -2
  12. package/lib/Eoap/index.umd.min.js +2 -2
  13. package/lib/Hermite/index.umd.js +2 -2
  14. package/lib/Hermite/index.umd.min.js +2 -2
  15. package/lib/Matrix4/index.umd.js +2 -2
  16. package/lib/Matrix4/index.umd.min.js +2 -2
  17. package/lib/Mercator/index.umd.js +2 -2
  18. package/lib/Mercator/index.umd.min.js +2 -2
  19. package/lib/SVG/index.umd.js +19 -35
  20. package/lib/SVG/index.umd.min.js +3 -3
  21. package/lib/Shader/index.umd.js +3 -82
  22. package/lib/Shader/index.umd.min.js +3 -3
  23. package/lib/Texture/index.umd.js +2 -2
  24. package/lib/Texture/index.umd.min.js +2 -2
  25. package/lib/TreeLayout/index.umd.js +2 -2
  26. package/lib/TreeLayout/index.umd.min.js +2 -2
  27. package/lib/animation/index.umd.js +2 -2
  28. package/lib/animation/index.umd.min.js +2 -2
  29. package/lib/getLoopColors/index.umd.js +2 -2
  30. package/lib/getLoopColors/index.umd.min.js +2 -2
  31. package/lib/getWebGLContext/index.umd.js +2 -2
  32. package/lib/getWebGLContext/index.umd.min.js +2 -2
  33. package/lib/index.umd.js +104 -975
  34. package/lib/index.umd.min.js +3 -3
  35. package/lib/move/index.umd.js +2 -2
  36. package/lib/move/index.umd.min.js +2 -2
  37. package/lib/rotate/index.umd.js +2 -2
  38. package/lib/rotate/index.umd.min.js +2 -2
  39. package/lib/ruler/index.umd.js +2 -2
  40. package/lib/ruler/index.umd.min.js +2 -2
  41. package/lib/scale/index.umd.js +2 -2
  42. package/lib/scale/index.umd.min.js +2 -2
  43. package/lib/throttle/index.umd.js +2 -2
  44. package/lib/throttle/index.umd.min.js +2 -2
  45. package/miniprogram/ui-canvas/index.js +100 -107
  46. package/miniprogram/ui-canvas/index.json +4 -4
  47. package/miniprogram/ui-canvas/index.wxml +4 -4
  48. package/miniprogram/ui-canvas/index.wxss +5 -5
  49. package/package/Buffer/index.ts +2 -2
  50. package/package/Canvas/index.ts +2 -2
  51. package/package/Cardinal/index.ts +2 -2
  52. package/package/Eoap/index.ts +2 -2
  53. package/package/Hermite/index.ts +2 -2
  54. package/package/Matrix4/index.ts +2 -2
  55. package/package/Mercator/index.ts +2 -2
  56. package/package/SVG/index.ts +2 -2
  57. package/package/Shader/index.ts +2 -39
  58. package/package/Texture/index.ts +2 -2
  59. package/package/TreeLayout/index.ts +2 -2
  60. package/package/animation/index.ts +2 -2
  61. package/package/getLoopColors/index.ts +2 -2
  62. package/package/index.ts +65 -76
  63. package/package/move/index.ts +2 -2
  64. package/package/rotate/index.ts +2 -2
  65. package/package/ruler/index.ts +2 -2
  66. package/package/scale/index.ts +2 -2
  67. package/package/throttle/index.ts +2 -2
  68. package/package.json +1 -1
  69. package/src/Eoap.ts +66 -66
  70. package/src/Matrix4/index.ts +84 -84
  71. package/src/Matrix4/move.ts +12 -12
  72. package/src/Matrix4/rotate.ts +15 -15
  73. package/src/Matrix4/scale.ts +11 -11
  74. package/src/Matrix4/transform.ts +64 -64
  75. package/src/Mercator.ts +27 -27
  76. package/src/SVG.ts +24 -24
  77. package/src/animation.ts +98 -98
  78. package/src/common/assemble.ts +22 -22
  79. package/src/common/canvas/arc.ts +51 -51
  80. package/src/common/canvas/config.ts +158 -158
  81. package/src/common/canvas/gradient.ts +24 -29
  82. package/src/common/canvas/index.ts +1 -12
  83. package/src/common/canvas/texts.ts +18 -18
  84. package/src/common/mergeOption.ts +6 -6
  85. package/src/common/setStyle.ts +5 -5
  86. package/src/common/svg/config.ts +190 -190
  87. package/src/common/svg/gradient.ts +53 -63
  88. package/src/common/svg/index.ts +347 -356
  89. package/src/common/svg/tool.ts +44 -44
  90. package/src/common/tree/index.ts +25 -25
  91. package/src/common/tree/toInnerTree.ts +59 -59
  92. package/src/common/tree/toPlainTree.ts +132 -132
  93. package/src/common/webgl/buffer.ts +79 -79
  94. package/src/common/webgl/getWebGLContext.ts +1 -1
  95. package/src/common/webgl/shader.ts +75 -75
  96. package/src/common/webgl/texture.ts +97 -97
  97. package/src/getLoopColors.ts +42 -42
  98. package/src/interpolation/Cardinal.ts +110 -110
  99. package/src/interpolation/Hermite.ts +65 -65
  100. package/src/layout/TreeLayout.ts +188 -188
  101. package/src/move.ts +7 -7
  102. package/src/rotate.ts +7 -7
  103. package/src/ruler.ts +209 -209
  104. package/src/scale.ts +6 -6
  105. package/src/throttle.ts +52 -52
  106. package/types/Buffer.d.ts +23 -23
  107. package/types/CanvasConfig.d.ts +106 -106
  108. package/types/CanvasOption.d.ts +8 -8
  109. package/types/CanvasOpts.d.ts +9 -9
  110. package/types/Cardinal.d.ts +13 -13
  111. package/types/Gradient.d.ts +14 -14
  112. package/types/Hermite.d.ts +18 -18
  113. package/types/Map.d.ts +9 -9
  114. package/types/Matrix4.d.ts +47 -47
  115. package/types/SVG.d.ts +238 -238
  116. package/types/SVGConfig.d.ts +79 -79
  117. package/types/Shader.d.ts +16 -23
  118. package/types/Texture.d.ts +16 -16
  119. package/types/Tree.d.ts +69 -69
  120. package/types/TreeConfig.d.ts +36 -36
  121. package/types/TreeLayout.d.ts +54 -54
  122. package/types/TreeOption.d.ts +48 -48
  123. package/types/animation.d.ts +9 -6
  124. package/types/getLoopColors.d.ts +5 -2
  125. package/types/getWebGLContext.d.ts +3 -0
  126. package/types/index.d.ts +146 -176
  127. package/types/move.d.ts +5 -2
  128. package/types/painterConfig.d.ts +2 -2
  129. package/types/rotate.d.ts +5 -2
  130. package/types/ruler.d.ts +10 -7
  131. package/types/scale.d.ts +5 -2
  132. package/types/throttle.d.ts +7 -4
  133. package/types/throttleOption.d.ts +21 -21
  134. package/uni-app/ui-canvas.vue +4 -11
  135. package/lib/Geometry/index.umd.d.ts +0 -3
  136. package/lib/Geometry/index.umd.js +0 -353
  137. package/lib/Geometry/index.umd.min.d.ts +0 -3
  138. package/lib/Geometry/index.umd.min.js +0 -11
  139. package/lib/OralCanvas/index.es.d.ts +0 -3
  140. package/lib/OralCanvas/index.es.js +0 -693
  141. package/lib/OralCanvas/index.es.min.d.ts +0 -3
  142. package/lib/OralCanvas/index.es.min.js +0 -11
  143. package/lib/OralWebGL/index.es.d.ts +0 -3
  144. package/lib/OralWebGL/index.es.js +0 -639
  145. package/lib/OralWebGL/index.es.min.d.ts +0 -3
  146. package/lib/OralWebGL/index.es.min.js +0 -11
  147. package/lib/WebGL/index.umd.d.ts +0 -3
  148. package/lib/WebGL/index.umd.js +0 -712
  149. package/lib/WebGL/index.umd.min.d.ts +0 -3
  150. package/lib/WebGL/index.umd.min.js +0 -11
  151. package/lib/formatColor/index.umd.d.ts +0 -3
  152. package/lib/formatColor/index.umd.js +0 -59
  153. package/lib/formatColor/index.umd.min.d.ts +0 -3
  154. package/lib/formatColor/index.umd.min.js +0 -11
  155. package/lib/resizeObserver/index.umd.d.ts +0 -3
  156. package/lib/resizeObserver/index.umd.js +0 -49
  157. package/lib/resizeObserver/index.umd.min.d.ts +0 -3
  158. package/lib/resizeObserver/index.umd.min.js +0 -11
  159. package/lib/viewHandler/index.umd.d.ts +0 -3
  160. package/lib/viewHandler/index.umd.js +0 -139
  161. package/lib/viewHandler/index.umd.min.d.ts +0 -3
  162. package/lib/viewHandler/index.umd.min.js +0 -11
  163. package/package/Geometry/index.ts +0 -3
  164. package/package/OralCanvas/index.ts +0 -3
  165. package/package/OralWebGL/index.ts +0 -3
  166. package/package/WebGL/index.ts +0 -3
  167. package/package/formatColor/index.ts +0 -3
  168. package/package/resizeObserver/index.ts +0 -3
  169. package/package/viewHandler/index.ts +0 -3
  170. package/src/Geometry.ts +0 -211
  171. package/src/WebGL.ts +0 -67
  172. package/src/common/geometry/prism-horizontal.ts +0 -50
  173. package/src/common/geometry/prism-vertical.ts +0 -55
  174. package/src/common/geometry/sphere-fragment.ts +0 -40
  175. package/src/common/geometry/tool/circle.ts +0 -18
  176. package/src/common/geometry/tool/rotateLine.ts +0 -49
  177. package/src/common/geometry/tool/triangles.ts +0 -24
  178. package/src/common/webgl/doDraw.ts +0 -109
  179. package/src/common/webgl/getColorFactory.ts +0 -27
  180. package/src/common/webgl/getShader.ts +0 -49
  181. package/src/common/webgl/getTexture.ts +0 -12
  182. package/src/common/webgl/index.ts +0 -228
  183. package/src/formatColor.ts +0 -45
  184. package/src/resizeObserver.ts +0 -38
  185. package/src/shader/fsColor.c +0 -8
  186. package/src/shader/fsColors.c +0 -8
  187. package/src/shader/fsCube.c +0 -9
  188. package/src/shader/fsImage.c +0 -9
  189. package/src/shader/vsColor.c +0 -18
  190. package/src/shader/vsColors.c +0 -14
  191. package/src/shader/vsCube.c +0 -14
  192. package/src/shader/vsImage.c +0 -14
  193. package/src/viewHandler.ts +0 -161
  194. package/types/Geometry.d.ts +0 -133
  195. package/types/GeometryOption.d.ts +0 -12
  196. package/types/GeometryResult.d.ts +0 -19
  197. package/types/Object3D.d.ts +0 -115
  198. package/types/Scene3D.d.ts +0 -7
  199. package/types/WebGL.d.ts +0 -39
  200. package/types/WebGLOption.d.ts +0 -15
  201. package/types/formatColor.d.ts +0 -3
  202. package/types/resizeObserver.d.ts +0 -3
  203. package/types/viewHandler.d.ts +0 -14
@@ -1,107 +1,100 @@
1
- import OralCanvas from "../../lib/OralCanvas/index.es.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
- touchstart: {
20
- type: Function,
21
- default: () => { }
22
- }
23
- },
24
- data: {
25
- help: {}
26
- },
27
- lifetimes: {
28
- ready() {
29
-
30
- }
31
- },
32
- methods: {
33
- fetch() {
34
- return new Promise((resolve, reject) => {
35
-
36
- let getCanvasContext = (idName, doback) => {
37
- if (idName != 'region' || this.data.region) {
38
- const query = wx.createSelectorQuery().in(this);
39
- query.select('#' + idName)
40
- .fields({ node: true, size: true })
41
- .exec((res) => {
42
- const canvas = res[0].node;
43
- const ctx = canvas.getContext('2d');
44
-
45
- canvas.width = res[0].width * (idName == "region" ? 1 : dpr);
46
- canvas.height = res[0].height * (idName == "region" ? 1 : dpr);
47
-
48
- if (idName != "region") {
49
- ctx.scale(dpr, dpr);
50
- }
51
-
52
- doback(ctx);
53
- });
54
- } else {
55
- doback(null);
56
- }
57
- };
58
-
59
- getCanvasContext("painter", painter => {
60
- getCanvasContext("region", region => {
61
- this.data.help.instance = new OralCanvas({
62
- getContext() {
63
- return painter;
64
- }
65
- }, this.data.region ? {
66
- getContext() {
67
- return region;
68
- }
69
- } : null);
70
-
71
- this.data.help.instance.toDataURL = () => {
72
- return new Promise((resolveUrl) => {
73
- wx.canvasToTempFilePath({
74
- canvasId: "painter",
75
- success: function (e) {
76
- resolveUrl(e.tempFilePath);
77
- },
78
- }, this);
79
- })
80
- };
81
- resolve(this.data.help.instance);
82
- });
83
- });
84
-
85
- });
86
- },
87
- doit(event, doback) {
88
- let x = event.touches[0].x;
89
- let y = event.touches[0].y;
90
-
91
- this.data.help.instance.getRegion(x, y).then((regionName) => {
92
- // 兼容旧语法
93
- if (doback) doback(regionName);
94
-
95
- this.triggerEvent('dotouchstart', {
96
- name: regionName,
97
- x: x,
98
- y: y
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
+ }
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
- import Eoap from "../../src/Eoap"
2
-
1
+ import Eoap from "../../src/Eoap"
2
+
3
3
  export default Eoap
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
- import SVG from "../../src/SVG"
2
-
1
+ import SVG from "../../src/SVG"
2
+
3
3
  export default SVG
@@ -1,40 +1,3 @@
1
- import type ShaderType from '../../types/Shader'
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
@@ -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 formatColor from "./formatColor/index"
11
- import animation from "./animation/index"
12
- import ruler from "./ruler/index"
13
-
14
- import SVG from "./SVG/index"
15
- import Canvas from "./Canvas/index"
16
- import WebGL from "./WebGL/index"
17
-
18
- import getWebGLContext from "./getWebGLContext/index"
19
- import Shader from "./Shader/index"
20
- import Texture from "./Texture/index"
21
- import Buffer from "./Buffer/index"
22
-
23
- import Eoap from "./Eoap/index"
24
- import Mercator from "./Mercator/index"
25
-
26
- import viewHandler from "./viewHandler/index"
27
- import resizeObserver from "./resizeObserver/index"
28
- import throttle from "./throttle/index"
29
-
30
- import TreeLayout from "./TreeLayout/index"
31
-
32
- import Geometry from "./Geometry/index"
33
-
34
- export default {
35
-
36
- // 插值
37
- Cardinal,
38
- Hermite,
39
-
40
- // 变换
41
- Matrix4,
42
- rotate,
43
- move,
44
- scale,
45
-
46
- // 工具
47
- getLoopColors,
48
- formatColor,
49
- animation,
50
- ruler,
51
-
52
- // 画笔
53
- SVG,
54
- Canvas,
55
- WebGL,
56
-
57
- // WebGL
58
- getWebGLContext,
59
- Shader,
60
- Texture,
61
- Buffer,
62
-
63
- // 投影
64
- Eoap,
65
- Mercator,
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
  }
@@ -1,3 +1,3 @@
1
- import move from "../../src/move"
2
-
1
+ import move from "../../src/move"
2
+
3
3
  export default move
@@ -1,3 +1,3 @@
1
- import rotate from "../../src/rotate"
2
-
1
+ import rotate from "../../src/rotate"
2
+
3
3
  export default rotate
@@ -1,3 +1,3 @@
1
- import ruler from "../../src/ruler"
2
-
1
+ import ruler from "../../src/ruler"
2
+
3
3
  export default ruler
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vislite",
3
- "version": "0.8.0",
3
+ "version": "1.0.0-next.1",
4
4
  "description": "灵活、快速、简单的数据可视化交互式跨端前端库",
5
5
  "main": "./lib/index.umd.min.js",
6
6
  "typings": "./types/index.d.ts",