vislite 0.5.0-alpha.0 → 0.5.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 (63) hide show
  1. package/CHANGELOG +4 -1
  2. package/lib/Buffer/index.umd.js +2 -2
  3. package/lib/Buffer/index.umd.min.js +2 -2
  4. package/lib/Canvas/index.umd.js +2 -2
  5. package/lib/Canvas/index.umd.min.js +2 -2
  6. package/lib/Cardinal/index.umd.js +2 -2
  7. package/lib/Cardinal/index.umd.min.js +2 -2
  8. package/lib/Eoap/index.umd.js +2 -2
  9. package/lib/Eoap/index.umd.min.js +2 -2
  10. package/lib/Geometry/index.umd.js +26 -25
  11. package/lib/Geometry/index.umd.min.js +3 -3
  12. package/lib/Hermite/index.umd.js +2 -2
  13. package/lib/Hermite/index.umd.min.js +2 -2
  14. package/lib/Matrix4/index.umd.js +2 -2
  15. package/lib/Matrix4/index.umd.min.js +2 -2
  16. package/lib/Mercator/index.umd.js +2 -2
  17. package/lib/Mercator/index.umd.min.js +2 -2
  18. package/lib/OralCanvas/index.es.js +2 -2
  19. package/lib/OralCanvas/index.es.min.js +2 -2
  20. package/lib/OralWebGL/index.es.js +2 -2
  21. package/lib/OralWebGL/index.es.min.js +2 -2
  22. package/lib/SVG/index.umd.js +8 -2
  23. package/lib/SVG/index.umd.min.js +3 -3
  24. package/lib/Shader/index.umd.js +2 -2
  25. package/lib/Shader/index.umd.min.js +2 -2
  26. package/lib/Texture/index.umd.js +2 -2
  27. package/lib/Texture/index.umd.min.js +2 -2
  28. package/lib/TreeLayout/index.umd.js +7 -4
  29. package/lib/TreeLayout/index.umd.min.js +3 -3
  30. package/lib/WebGL/index.umd.js +2 -2
  31. package/lib/WebGL/index.umd.min.js +2 -2
  32. package/lib/animation/index.umd.js +2 -2
  33. package/lib/animation/index.umd.min.js +2 -2
  34. package/lib/formatColor/index.umd.js +2 -2
  35. package/lib/formatColor/index.umd.min.js +2 -2
  36. package/lib/getLoopColors/index.umd.js +2 -2
  37. package/lib/getLoopColors/index.umd.min.js +2 -2
  38. package/lib/getWebGLContext/index.umd.js +2 -2
  39. package/lib/getWebGLContext/index.umd.min.js +2 -2
  40. package/lib/index.umd.js +37 -27
  41. package/lib/index.umd.min.js +3 -3
  42. package/lib/resizeObserver/index.umd.js +2 -2
  43. package/lib/resizeObserver/index.umd.min.js +2 -2
  44. package/lib/rotate/index.umd.js +2 -2
  45. package/lib/rotate/index.umd.min.js +2 -2
  46. package/lib/ruler/index.umd.js +2 -2
  47. package/lib/ruler/index.umd.min.js +2 -2
  48. package/lib/throttle/index.umd.js +2 -2
  49. package/lib/throttle/index.umd.min.js +2 -2
  50. package/lib/viewHandler/index.umd.js +2 -2
  51. package/lib/viewHandler/index.umd.min.js +2 -2
  52. package/package.json +1 -1
  53. package/src/Geometry.ts +17 -16
  54. package/src/TreeLayout/index.ts +186 -185
  55. package/src/common/geometry/prism-horizontal.ts +8 -9
  56. package/src/common/svg/index.ts +344 -336
  57. package/types/Canvas.d.ts +295 -295
  58. package/types/CanvasConfig.d.ts +106 -82
  59. package/types/Geometry.d.ts +6 -0
  60. package/types/Hermite.d.ts +5 -5
  61. package/types/SVG.d.ts +215 -210
  62. package/types/SVGConfig.d.ts +16 -0
  63. package/types/TreeLayout.d.ts +54 -48
@@ -38,24 +38,40 @@ export default interface SVGConfigType {
38
38
  * 文字大小,默认16
39
39
  */
40
40
  "fontSize"?: number
41
+
42
+ /**
43
+ * 已废弃,向下兼容,请用 fontSize 代替
44
+ */
41
45
  "font-size"?: number // 向下兼容
42
46
 
43
47
  /**
44
48
  * 字体,默认"sans-serif"
45
49
  */
46
50
  "fontFamily"?: string
51
+
52
+ /**
53
+ * 已废弃,向下兼容,请用 fontFamily 代替
54
+ */
47
55
  "font-family"?: string // 向下兼容
48
56
 
49
57
  /**
50
58
  * 圆弧开始端闭合方式,默认"butt"直线闭合(还有"round"圆帽闭合,"-round"反圆帽闭合)
51
59
  */
52
60
  "arcStartCap"?: arcCapType
61
+
62
+ /**
63
+ * 已废弃,向下兼容,请用 arcStartCap 代替
64
+ */
53
65
  "arc-start-cap"?: string // 向下兼容
54
66
 
55
67
  /**
56
68
  * 圆弧结束端闭合方式,默认"butt"直线闭合(还有"round"圆帽闭合,"-round"反圆帽闭合)
57
69
  */
58
70
  "arcEndCap"?: arcCapType
71
+
72
+ /**
73
+ * 已废弃,向下兼容,请用 arcEndCap 代替
74
+ */
59
75
  "arc-end-cap"?: string // 向下兼容
60
76
 
61
77
  }
@@ -1,49 +1,55 @@
1
- import TreeType from "./Tree"
2
- import { TreeResultType } from "./Tree"
3
- import TreeOptionType from './TreeOption'
4
-
5
- export default interface TreeLayoutType extends TreeType {
6
-
7
- /**
8
- * 设置布局的行为
9
- * @param option
10
- */
11
- setOption(option: TreeOptionType): this
12
-
13
- /**
14
- * 单纯的树图坐标计算
15
- * @param initTree 原始数据
16
- */
17
- use(initTree: any, noOpens?: {}): TreeResultType
18
-
19
- /**
20
- * 绑定新的数据和渲染方法
21
- * @param initTree 原始数据
22
- * @param renderBack 渲染方法
23
- */
24
- bind(initTree: any, renderBack: (tree: TreeResultType) => void): this
25
-
26
- /**
27
- * 解除绑定
28
- */
29
- unbind(): this
30
-
31
- /**
32
- * 闭合指定节点
33
- * @param id
34
- */
35
- closeNode(id: string): this
36
-
37
- /**
38
- * 展开指定节点
39
- * @param id
40
- */
41
- openNode(id: string): this
42
-
43
- /**
44
- * 闭合或展开指定节点
45
- * @param id
46
- */
47
- toggleNode(id: string): this
48
-
1
+ import TreeType from "./Tree"
2
+ import { TreeResultType } from "./Tree"
3
+ import TreeOptionType from './TreeOption'
4
+
5
+ export default interface TreeLayoutType extends TreeType {
6
+
7
+ /**
8
+ * 设置布局的行为
9
+ * @param option
10
+ */
11
+ setOption(option: TreeOptionType): this
12
+
13
+ /**
14
+ * 单纯的树图坐标计算
15
+ * @param initTree 原始数据
16
+ * @param noOpens 可选,结点初始是否闭合控制
17
+ */
18
+ use(initTree: any, noOpens?: {
19
+ [id: string]: boolean
20
+ }): TreeResultType
21
+
22
+ /**
23
+ * 绑定新的数据和渲染方法
24
+ * @param initTree 原始数据
25
+ * @param renderBack 渲染方法
26
+ * @param noOpens 可选,结点初始是否闭合控制
27
+ */
28
+ bind(initTree: any, renderBack: (tree: TreeResultType) => void, noOpens?: {
29
+ [id: string]: boolean
30
+ }): this
31
+
32
+ /**
33
+ * 解除绑定
34
+ */
35
+ unbind(): this
36
+
37
+ /**
38
+ * 闭合指定节点
39
+ * @param id
40
+ */
41
+ closeNode(id: string): this
42
+
43
+ /**
44
+ * 展开指定节点
45
+ * @param id
46
+ */
47
+ openNode(id: string): this
48
+
49
+ /**
50
+ * 闭合或展开指定节点
51
+ * @param id
52
+ */
53
+ toggleNode(id: string): this
54
+
49
55
  }