apextree 1.0.0 → 1.2.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 (58) hide show
  1. package/README.md +9 -5
  2. package/apextree.es.min.js +7127 -0
  3. package/apextree.min.js +1 -0
  4. package/demo/bottom_to_top_view.html +75 -35
  5. package/demo/custom_font_options.html +97 -92
  6. package/demo/dynamic_view_change.html +133 -0
  7. package/demo/{custom_node_template.html → expand_collapse_nodes.html} +4 -4
  8. package/demo/left_to_right_view.html +146 -88
  9. package/demo/per_node_options.html +4 -6
  10. package/demo/right_to_left_view.html +146 -88
  11. package/demo/top_to_bottom_view.html +112 -90
  12. package/index.d.ts +1 -0
  13. package/lib/ApexTree.d.ts +9 -0
  14. package/lib/models/Export.d.ts +9 -0
  15. package/lib/models/Graph.d.ts +35 -0
  16. package/lib/models/Paper.d.ts +32 -0
  17. package/lib/models/Toolbar.d.ts +15 -0
  18. package/lib/models/index.d.ts +2 -0
  19. package/lib/settings/DirectionConfig.d.ts +47 -0
  20. package/lib/settings/Options.d.ts +49 -0
  21. package/lib/utils/EdgeUtils.d.ts +2 -0
  22. package/lib/utils/GraphUtils.d.ts +10 -0
  23. package/{src/utils/index.ts → lib/utils/index.d.ts} +0 -1
  24. package/package.json +15 -54
  25. package/.editorconfig +0 -7
  26. package/.eslintignore +0 -2
  27. package/.eslintrc +0 -9
  28. package/.prettierrc +0 -5
  29. package/.vscode/settings.json +0 -5
  30. package/LICENSE +0 -21
  31. package/demo/graph_toolbar.html +0 -148
  32. package/demo/highlight_on_hover.html +0 -76
  33. package/demo/simple.html +0 -181
  34. package/demo/simple_tooltip.html +0 -138
  35. package/demo/tooltip_with_custom_template.html +0 -105
  36. package/dist/ApexTree.js +0 -2
  37. package/dist/ApexTree.js.LICENSE.txt +0 -10
  38. package/globals.d.ts +0 -4
  39. package/src/ApexTree.ts +0 -32
  40. package/src/icons/export-icon.svg +0 -2
  41. package/src/icons/fit-screen-icon.svg +0 -9
  42. package/src/icons/zoom-in-icon.svg +0 -8
  43. package/src/icons/zoom-out-icon.svg +0 -8
  44. package/src/models/Export.ts +0 -52
  45. package/src/models/Graph.ts +0 -196
  46. package/src/models/Paper.ts +0 -112
  47. package/src/models/Toolbar.ts +0 -71
  48. package/src/models/index.ts +0 -2
  49. package/src/settings/DirectionConfig.ts +0 -227
  50. package/src/settings/Options.ts +0 -92
  51. package/src/utils/EdgeUtils.ts +0 -30
  52. package/src/utils/GraphUtils.ts +0 -104
  53. package/src/utils/Utils.ts +0 -3
  54. package/tsconfig.json +0 -28
  55. package/webpack.common.ts +0 -68
  56. package/webpack.config.ts +0 -7
  57. package/webpack.dev.ts +0 -12
  58. package/webpack.prod.ts +0 -9
package/README.md CHANGED
@@ -1,10 +1,13 @@
1
1
  # ApexTree - Installation and Getting started
2
2
 
3
- The Apextree is a javascript library built on top of couple of helper libraries, and distributed as a Javascript module.
3
+ The Apextree is a javascript library built on SVG that helps to create organizational or hierarchical charts.
4
+
5
+ <img width="811" alt="Screenshot 2023-12-17 at 10 28 04 PM" src="https://github.com/apexcharts/tree/assets/17950663/e09212ec-6322-4c68-ac12-9afc524d2abd">
6
+
4
7
 
5
8
  ## Installation
6
9
 
7
- To add the Apex grid to your project and its dependencies, install the package from npm.
10
+ To add the Apextree to your project and its dependencies, install the package from npm.
8
11
 
9
12
  ```bash
10
13
  npm install apextree
@@ -46,8 +49,8 @@ The layout can be configured by either setting the properties in the table below
46
49
 
47
50
  Options | Default | Description
48
51
  --- |------------------------------| ---
49
- width | None | The width of graph container
50
- height | None | The height of graph container
52
+ width | 400 | The width of graph container
53
+ height | 400 | The height of graph container
51
54
  direction | top | The direction of the tree to start rendering. Possible values: `top`, `bottom`, `left` and `right`
52
55
  contentKey | name | The key of content in passed data object
53
56
  siblingSpacing | 50 | The spacing between sibling nodes
@@ -66,6 +69,7 @@ borderStyle | solid | The border style of the nodes
66
69
  borderRadius | 5px | The border radius of the nodes in pixels
67
70
  borderColor | `#BCBCBC` | The border color of the nodes
68
71
  borderColorHover | `#5C6BC0` | The border color on hover of the nodes
72
+ edgeWidth | `1` | The width for the edges
69
73
  edgeColor | `#BCBCBC` | The color for the edges
70
74
  edgeColorHover | `#BCBCBC` | The color for the edges when highlighted
71
75
  enableTooltip | false | Enable tooltip on hover of nodes
@@ -125,4 +129,4 @@ const data = {
125
129
  }
126
130
  ]
127
131
  }
128
- ```
132
+ ```