vislite 0.8.0 → 1.0.0-next.0

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 (201) hide show
  1. package/AUTHORS.txt +6 -6
  2. package/CHANGELOG +17 -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 -944
  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/resizeObserver/index.umd.js +2 -2
  38. package/lib/resizeObserver/index.umd.min.js +2 -2
  39. package/lib/rotate/index.umd.js +2 -2
  40. package/lib/rotate/index.umd.min.js +2 -2
  41. package/lib/ruler/index.umd.js +2 -2
  42. package/lib/ruler/index.umd.min.js +2 -2
  43. package/lib/scale/index.umd.js +2 -2
  44. package/lib/scale/index.umd.min.js +2 -2
  45. package/lib/throttle/index.umd.js +2 -2
  46. package/lib/throttle/index.umd.min.js +2 -2
  47. package/miniprogram/ui-canvas/index.js +100 -107
  48. package/miniprogram/ui-canvas/index.json +4 -4
  49. package/miniprogram/ui-canvas/index.wxml +4 -4
  50. package/miniprogram/ui-canvas/index.wxss +5 -5
  51. package/package/Buffer/index.ts +2 -2
  52. package/package/Canvas/index.ts +2 -2
  53. package/package/Cardinal/index.ts +2 -2
  54. package/package/Eoap/index.ts +2 -2
  55. package/package/Hermite/index.ts +2 -2
  56. package/package/Matrix4/index.ts +2 -2
  57. package/package/Mercator/index.ts +2 -2
  58. package/package/SVG/index.ts +2 -2
  59. package/package/Shader/index.ts +2 -39
  60. package/package/Texture/index.ts +2 -2
  61. package/package/TreeLayout/index.ts +2 -2
  62. package/package/animation/index.ts +2 -2
  63. package/package/getLoopColors/index.ts +2 -2
  64. package/package/index.ts +67 -76
  65. package/package/move/index.ts +2 -2
  66. package/package/resizeObserver/index.ts +2 -2
  67. package/package/rotate/index.ts +2 -2
  68. package/package/ruler/index.ts +2 -2
  69. package/package/scale/index.ts +2 -2
  70. package/package/throttle/index.ts +2 -2
  71. package/package.json +1 -1
  72. package/src/Eoap.ts +66 -66
  73. package/src/Matrix4/index.ts +84 -84
  74. package/src/Matrix4/move.ts +12 -12
  75. package/src/Matrix4/rotate.ts +15 -15
  76. package/src/Matrix4/scale.ts +11 -11
  77. package/src/Matrix4/transform.ts +64 -64
  78. package/src/Mercator.ts +27 -27
  79. package/src/SVG.ts +24 -24
  80. package/src/animation.ts +98 -98
  81. package/src/common/assemble.ts +22 -22
  82. package/src/common/canvas/arc.ts +51 -51
  83. package/src/common/canvas/config.ts +158 -158
  84. package/src/common/canvas/gradient.ts +24 -29
  85. package/src/common/canvas/index.ts +1 -12
  86. package/src/common/canvas/texts.ts +18 -18
  87. package/src/common/mergeOption.ts +6 -6
  88. package/src/common/setStyle.ts +5 -5
  89. package/src/common/svg/config.ts +190 -190
  90. package/src/common/svg/gradient.ts +53 -63
  91. package/src/common/svg/index.ts +347 -356
  92. package/src/common/svg/tool.ts +44 -44
  93. package/src/common/tree/index.ts +25 -25
  94. package/src/common/tree/toInnerTree.ts +59 -59
  95. package/src/common/tree/toPlainTree.ts +132 -132
  96. package/src/common/webgl/buffer.ts +79 -79
  97. package/src/common/webgl/getWebGLContext.ts +1 -1
  98. package/src/common/webgl/shader.ts +75 -75
  99. package/src/common/webgl/texture.ts +97 -97
  100. package/src/formatColor.ts +44 -44
  101. package/src/getLoopColors.ts +42 -42
  102. package/src/interpolation/Cardinal.ts +110 -110
  103. package/src/interpolation/Hermite.ts +65 -65
  104. package/src/layout/TreeLayout.ts +188 -188
  105. package/src/move.ts +7 -7
  106. package/src/resizeObserver.ts +37 -37
  107. package/src/rotate.ts +7 -7
  108. package/src/ruler.ts +209 -209
  109. package/src/scale.ts +6 -6
  110. package/src/throttle.ts +52 -52
  111. package/types/Buffer.d.ts +23 -23
  112. package/types/CanvasConfig.d.ts +106 -106
  113. package/types/CanvasOption.d.ts +8 -8
  114. package/types/CanvasOpts.d.ts +9 -9
  115. package/types/Cardinal.d.ts +13 -13
  116. package/types/Gradient.d.ts +14 -14
  117. package/types/Hermite.d.ts +18 -18
  118. package/types/Map.d.ts +9 -9
  119. package/types/Matrix4.d.ts +47 -47
  120. package/types/SVG.d.ts +238 -238
  121. package/types/SVGConfig.d.ts +79 -79
  122. package/types/Shader.d.ts +16 -23
  123. package/types/Texture.d.ts +16 -16
  124. package/types/Tree.d.ts +69 -69
  125. package/types/TreeConfig.d.ts +36 -36
  126. package/types/TreeLayout.d.ts +54 -54
  127. package/types/TreeOption.d.ts +48 -48
  128. package/types/animation.d.ts +9 -6
  129. package/types/getLoopColors.d.ts +5 -2
  130. package/types/getWebGLContext.d.ts +3 -0
  131. package/types/index.d.ts +149 -176
  132. package/types/move.d.ts +5 -2
  133. package/types/painterConfig.d.ts +2 -2
  134. package/types/resizeObserver.d.ts +5 -2
  135. package/types/rotate.d.ts +5 -2
  136. package/types/ruler.d.ts +10 -7
  137. package/types/scale.d.ts +5 -2
  138. package/types/throttle.d.ts +7 -4
  139. package/types/throttleOption.d.ts +21 -21
  140. package/uni-app/ui-canvas.vue +4 -11
  141. package/lib/Geometry/index.umd.d.ts +0 -3
  142. package/lib/Geometry/index.umd.js +0 -353
  143. package/lib/Geometry/index.umd.min.d.ts +0 -3
  144. package/lib/Geometry/index.umd.min.js +0 -11
  145. package/lib/OralCanvas/index.es.d.ts +0 -3
  146. package/lib/OralCanvas/index.es.js +0 -693
  147. package/lib/OralCanvas/index.es.min.d.ts +0 -3
  148. package/lib/OralCanvas/index.es.min.js +0 -11
  149. package/lib/OralWebGL/index.es.d.ts +0 -3
  150. package/lib/OralWebGL/index.es.js +0 -639
  151. package/lib/OralWebGL/index.es.min.d.ts +0 -3
  152. package/lib/OralWebGL/index.es.min.js +0 -11
  153. package/lib/WebGL/index.umd.d.ts +0 -3
  154. package/lib/WebGL/index.umd.js +0 -712
  155. package/lib/WebGL/index.umd.min.d.ts +0 -3
  156. package/lib/WebGL/index.umd.min.js +0 -11
  157. package/lib/formatColor/index.umd.d.ts +0 -3
  158. package/lib/formatColor/index.umd.js +0 -59
  159. package/lib/formatColor/index.umd.min.d.ts +0 -3
  160. package/lib/formatColor/index.umd.min.js +0 -11
  161. package/lib/viewHandler/index.umd.d.ts +0 -3
  162. package/lib/viewHandler/index.umd.js +0 -139
  163. package/lib/viewHandler/index.umd.min.d.ts +0 -3
  164. package/lib/viewHandler/index.umd.min.js +0 -11
  165. package/package/Geometry/index.ts +0 -3
  166. package/package/OralCanvas/index.ts +0 -3
  167. package/package/OralWebGL/index.ts +0 -3
  168. package/package/WebGL/index.ts +0 -3
  169. package/package/formatColor/index.ts +0 -3
  170. package/package/viewHandler/index.ts +0 -3
  171. package/src/Geometry.ts +0 -211
  172. package/src/WebGL.ts +0 -67
  173. package/src/common/geometry/prism-horizontal.ts +0 -50
  174. package/src/common/geometry/prism-vertical.ts +0 -55
  175. package/src/common/geometry/sphere-fragment.ts +0 -40
  176. package/src/common/geometry/tool/circle.ts +0 -18
  177. package/src/common/geometry/tool/rotateLine.ts +0 -49
  178. package/src/common/geometry/tool/triangles.ts +0 -24
  179. package/src/common/webgl/doDraw.ts +0 -109
  180. package/src/common/webgl/getColorFactory.ts +0 -27
  181. package/src/common/webgl/getShader.ts +0 -49
  182. package/src/common/webgl/getTexture.ts +0 -12
  183. package/src/common/webgl/index.ts +0 -228
  184. package/src/shader/fsColor.c +0 -8
  185. package/src/shader/fsColors.c +0 -8
  186. package/src/shader/fsCube.c +0 -9
  187. package/src/shader/fsImage.c +0 -9
  188. package/src/shader/vsColor.c +0 -18
  189. package/src/shader/vsColors.c +0 -14
  190. package/src/shader/vsCube.c +0 -14
  191. package/src/shader/vsImage.c +0 -14
  192. package/src/viewHandler.ts +0 -161
  193. package/types/Geometry.d.ts +0 -133
  194. package/types/GeometryOption.d.ts +0 -12
  195. package/types/GeometryResult.d.ts +0 -19
  196. package/types/Object3D.d.ts +0 -115
  197. package/types/Scene3D.d.ts +0 -7
  198. package/types/WebGL.d.ts +0 -39
  199. package/types/WebGLOption.d.ts +0 -15
  200. package/types/formatColor.d.ts +0 -3
  201. 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,68 @@
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 resizeObserver from "./resizeObserver/index"
26
+ import throttle from "./throttle/index"
27
+
28
+ import TreeLayout from "./TreeLayout/index"
29
+
30
+ export default {
31
+
32
+ // 插值
33
+ Cardinal,
34
+ Hermite,
35
+
36
+ // 变换
37
+ Matrix4,
38
+ rotate,
39
+ move,
40
+ scale,
41
+
42
+ // 工具
43
+ getLoopColors,
44
+ animation,
45
+ ruler,
46
+
47
+ // 画笔
48
+ SVG,
49
+ Canvas,
50
+ _Canvas,
51
+
52
+ // WebGL
53
+ getWebGLContext,
54
+ Shader,
55
+ Texture,
56
+ Buffer,
57
+
58
+ // 投影
59
+ Eoap,
60
+ Mercator,
61
+
62
+ // 辅助
63
+ resizeObserver,
64
+ throttle,
65
+
66
+ // 布局
67
+ TreeLayout
77
68
  }
@@ -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 resizeObserver from "../../src/resizeObserver"
2
-
1
+ import resizeObserver from "../../src/resizeObserver"
2
+
3
3
  export default resizeObserver
@@ -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.0",
4
4
  "description": "灵活、快速、简单的数据可视化交互式跨端前端库",
5
5
  "main": "./lib/index.umd.min.js",
6
6
  "typings": "./types/index.d.ts",