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.
- package/README.md +9 -5
- package/apextree.es.min.js +7127 -0
- package/apextree.min.js +1 -0
- package/demo/bottom_to_top_view.html +75 -35
- package/demo/custom_font_options.html +97 -92
- package/demo/dynamic_view_change.html +133 -0
- package/demo/{custom_node_template.html → expand_collapse_nodes.html} +4 -4
- package/demo/left_to_right_view.html +146 -88
- package/demo/per_node_options.html +4 -6
- package/demo/right_to_left_view.html +146 -88
- package/demo/top_to_bottom_view.html +112 -90
- package/index.d.ts +1 -0
- package/lib/ApexTree.d.ts +9 -0
- package/lib/models/Export.d.ts +9 -0
- package/lib/models/Graph.d.ts +35 -0
- package/lib/models/Paper.d.ts +32 -0
- package/lib/models/Toolbar.d.ts +15 -0
- package/lib/models/index.d.ts +2 -0
- package/lib/settings/DirectionConfig.d.ts +47 -0
- package/lib/settings/Options.d.ts +49 -0
- package/lib/utils/EdgeUtils.d.ts +2 -0
- package/lib/utils/GraphUtils.d.ts +10 -0
- package/{src/utils/index.ts → lib/utils/index.d.ts} +0 -1
- package/package.json +15 -54
- package/.editorconfig +0 -7
- package/.eslintignore +0 -2
- package/.eslintrc +0 -9
- package/.prettierrc +0 -5
- package/.vscode/settings.json +0 -5
- package/LICENSE +0 -21
- package/demo/graph_toolbar.html +0 -148
- package/demo/highlight_on_hover.html +0 -76
- package/demo/simple.html +0 -181
- package/demo/simple_tooltip.html +0 -138
- package/demo/tooltip_with_custom_template.html +0 -105
- package/dist/ApexTree.js +0 -2
- package/dist/ApexTree.js.LICENSE.txt +0 -10
- package/globals.d.ts +0 -4
- package/src/ApexTree.ts +0 -32
- package/src/icons/export-icon.svg +0 -2
- package/src/icons/fit-screen-icon.svg +0 -9
- package/src/icons/zoom-in-icon.svg +0 -8
- package/src/icons/zoom-out-icon.svg +0 -8
- package/src/models/Export.ts +0 -52
- package/src/models/Graph.ts +0 -196
- package/src/models/Paper.ts +0 -112
- package/src/models/Toolbar.ts +0 -71
- package/src/models/index.ts +0 -2
- package/src/settings/DirectionConfig.ts +0 -227
- package/src/settings/Options.ts +0 -92
- package/src/utils/EdgeUtils.ts +0 -30
- package/src/utils/GraphUtils.ts +0 -104
- package/src/utils/Utils.ts +0 -3
- package/tsconfig.json +0 -28
- package/webpack.common.ts +0 -68
- package/webpack.config.ts +0 -7
- package/webpack.dev.ts +0 -12
- 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
|
|
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
|
|
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 |
|
|
50
|
-
height |
|
|
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
|
+
```
|