@antv/hierarchy 0.6.10 → 0.6.12

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 (44) hide show
  1. package/.eslintrc +9 -23
  2. package/.github/workflows/build.yml +32 -0
  3. package/README.md +10 -2
  4. package/assets/compact-box-bt.png +0 -0
  5. package/assets/compact-box-h.png +0 -0
  6. package/assets/compact-box-lr.png +0 -0
  7. package/assets/compact-box-rl.png +0 -0
  8. package/assets/compact-box-tb.png +0 -0
  9. package/assets/compact-box-v.png +0 -0
  10. package/assets/dendrogram-bt.png +0 -0
  11. package/assets/dendrogram-h.png +0 -0
  12. package/assets/dendrogram-lr.png +0 -0
  13. package/assets/dendrogram-rl.png +0 -0
  14. package/assets/dendrogram-tb.png +0 -0
  15. package/assets/dendrogram-v.png +0 -0
  16. package/assets/indented-h.png +0 -0
  17. package/assets/indented-lr.png +0 -0
  18. package/assets/indented-rl.png +0 -0
  19. package/assets/layered-tidy-bt.png +0 -0
  20. package/assets/layered-tidy-h.png +0 -0
  21. package/assets/layered-tidy-lr.png +0 -0
  22. package/assets/layered-tidy-rl.png +0 -0
  23. package/assets/layered-tidy-tb.png +0 -0
  24. package/assets/layered-tidy-v.png +0 -0
  25. package/assets/mindmap.png +0 -0
  26. package/build/hierarchy.js +196 -3394
  27. package/build/hierarchy.js.map +1 -1
  28. package/dist/hierarchy.min.js +1 -1
  29. package/lib/compact-box.js +1 -1
  30. package/lib/dendrogram.js +1 -1
  31. package/lib/indented.js +1 -2
  32. package/lib/layout/dendrogram.js +0 -1
  33. package/lib/layout/do-layout.js +0 -1
  34. package/lib/layout/hierarchy.js +0 -3
  35. package/lib/layout/indented.js +6 -12
  36. package/lib/layout/mindmap.js +0 -1
  37. package/lib/mindmap.js +1 -1
  38. package/lib/util.js +1 -4
  39. package/package.json +35 -44
  40. package/src/layout/indented.js +8 -10
  41. package/src/util.js +1 -3
  42. package/.github/ISSUE_TEMPLATE.md +0 -21
  43. package/.github/PULL_REQUEST_TEMPLATE.md +0 -19
  44. package/.travis.yml +0 -25
package/.eslintrc CHANGED
@@ -1,7 +1,5 @@
1
1
  {
2
- "extends": [
3
- "egg"
4
- ],
2
+ "extends": ["egg"],
5
3
  "globals": {
6
4
  "$": true,
7
5
  "DataSet": true,
@@ -12,31 +10,19 @@
12
10
  "parserOptions": {
13
11
  "sourceType": "module"
14
12
  },
15
- "plugins": [
16
- "html"
17
- ],
13
+ "plugins": ["html"],
18
14
  "rules": {
19
- "no-bitwise": [
20
- 0
21
- ],
22
- "experimentalDecorators": [
23
- 0
24
- ],
25
- "comma-dangle": [
26
- "error",
27
- "never"
28
- ],
15
+ "no-bitwise": [0],
16
+ "experimentalDecorators": [0],
17
+ "comma-dangle": ["error", "never"],
29
18
  "no-console": [
30
19
  "error",
31
20
  {
32
- "allow": [
33
- "warn",
34
- "error"
35
- ]
21
+ "allow": ["warn", "error"]
36
22
  }
37
23
  ],
38
- "linebreak-style": [
39
- 0
40
- ]
24
+ "linebreak-style": [0],
25
+ "quotes": [0],
26
+ "arrow-parens": [0]
41
27
  }
42
28
  }
@@ -0,0 +1,32 @@
1
+ name: build
2
+
3
+ on: [ push, pull_request ]
4
+
5
+ jobs:
6
+ build:
7
+
8
+ runs-on: ubuntu-latest
9
+
10
+ steps:
11
+ - name: Checkout
12
+ uses: actions/checkout@v2.3.4
13
+
14
+ - name: Setup Node.js environment
15
+ uses: actions/setup-node@v2.1.5
16
+ with:
17
+ node-version: '12'
18
+
19
+ - name: Cache node modules
20
+ uses: actions/cache@v2
21
+ env:
22
+ cache-name: cache-node-modules
23
+ with:
24
+ path: ./node_modules
25
+ key: ${{ runner.os }}-build-cache-node-modules-${{ hashFiles('**/package.json') }}
26
+ restore-keys: |
27
+ cache-node-modules-
28
+
29
+ - name: Run ci
30
+ run: |
31
+ npm install
32
+ npm run ci
package/README.md CHANGED
@@ -1,6 +1,14 @@
1
- # hierarchy
1
+ <h1 align="center">
2
+ <b>@antv/hierarchy</b>
3
+ </h1>
4
+
5
+ > Layout algorithms for visualizing hierarchical data.
6
+
7
+ [![Build Status](https://github.com/antvis/hierarchy/actions/workflows/build.yml/badge.svg)](https://github.com/antvis/hierarchy/actions)
8
+ [![npm Version](https://img.shields.io/npm/v/@antv/hierarchy.svg)](https://www.npmjs.com/package/@antv/hierarchy)
9
+ [![npm Download](https://img.shields.io/npm/dm/@antv/hierarchy.svg)](https://www.npmjs.com/package/@antv/hierarchy)
10
+ [![npm License](https://img.shields.io/npm/l/@antv/hierarchy.svg)](https://www.npmjs.com/package/@antv/hierarchy)
2
11
 
3
- layout algorithms for visualizing hierarchical data.
4
12
 
5
13
  ## API
6
14
 
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file