apextree 1.2.0 β 1.4.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/.editorconfig +7 -0
- package/.eslintignore +2 -0
- package/.eslintrc +9 -0
- package/.prettierrc +5 -0
- package/.vscode/settings.json +5 -0
- package/LICENSE +80 -0
- package/README.md +2 -0
- package/apextree.es.min.js +15673 -1530
- package/apextree.min.js +1 -1
- package/demo/bottom_to_top_view.html +3 -3
- package/demo/custom_font_options.html +2 -2
- package/demo/dynamic_view_change.html +2 -2
- package/demo/expand_collapse_nodes.html +1 -1
- package/demo/group_leaf_nodes.html +118 -0
- package/demo/left_to_right_view.html +3 -3
- package/demo/per_node_options.html +7 -5
- package/demo/right_to_left_view.html +1 -2
- package/demo/top_to_bottom_view.html +1 -2
- package/globals.d.ts +4 -0
- package/lib/ApexTree.d.ts +4 -3
- package/lib/models/DagreGraph.d.ts +30 -0
- package/lib/models/Graph.d.ts +10 -24
- package/lib/models/GraphNode.d.ts +20 -0
- package/lib/models/GraphPoint.d.ts +4 -0
- package/lib/models/Paper.d.ts +22 -22
- package/lib/models/TreeNode.d.ts +15 -0
- package/lib/models/index.d.ts +3 -2
- package/lib/settings/DirectionConfig.d.ts +22 -30
- package/lib/settings/Options.d.ts +36 -26
- package/lib/utils/EdgeUtils.d.ts +3 -2
- package/lib/utils/GraphUtils.d.ts +4 -7
- package/package.json +14 -11
- package/tsconfig.json +28 -0
- package/webpack.common.ts +68 -0
- package/webpack.config.ts +7 -0
- package/webpack.dev.ts +12 -0
- package/webpack.prod.ts +9 -0
package/.editorconfig
ADDED
package/.eslintignore
ADDED
package/.eslintrc
ADDED
package/.prettierrc
ADDED
package/LICENSE
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
## π License Options for ApexCharts
|
|
2
|
+
|
|
3
|
+
ApexCharts is offered under a **dual-license model** to support individuals, startups, and commercial products of all sizes.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
### π Community License (Free)
|
|
8
|
+
|
|
9
|
+
For individuals, non-profits, educators, and small businesses with **less than $2 million USD in annual revenue**.
|
|
10
|
+
|
|
11
|
+
β
Whatβs allowed:
|
|
12
|
+
|
|
13
|
+
- Personal, educational, or non-profit use
|
|
14
|
+
- Commercial use by small orgs (< $2M annual revenue)
|
|
15
|
+
- Modifications and redistribution (with attribution)
|
|
16
|
+
|
|
17
|
+
π« Not allowed:
|
|
18
|
+
|
|
19
|
+
- Use by companies or entities over $2M/year revenue
|
|
20
|
+
- Use in competing charting products
|
|
21
|
+
- Sublicensing under different terms
|
|
22
|
+
|
|
23
|
+
β‘ By using ApexCharts under this license, you confirm that **you qualify as a Small Organization**.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
### πΌ Commercial License (Paid)
|
|
28
|
+
|
|
29
|
+
Required if **you or your affiliated organization earns $2 million USD or more per year**.
|
|
30
|
+
|
|
31
|
+
β
What's included:
|
|
32
|
+
|
|
33
|
+
- Use in internal tools and commercial applications
|
|
34
|
+
- Modifications and app-level distribution
|
|
35
|
+
- 12-month subscription with updates & support
|
|
36
|
+
|
|
37
|
+
π« Not allowed:
|
|
38
|
+
|
|
39
|
+
- Redistribution in toolkits, SDKs, or platforms
|
|
40
|
+
- Use by unlicensed developers
|
|
41
|
+
- Competing charting products
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
### π OEM / Redistribution License (Paid)
|
|
46
|
+
|
|
47
|
+
Required if you are **embedding ApexCharts into a product or platform used by other people**, such as:
|
|
48
|
+
|
|
49
|
+
- No-code dashboards
|
|
50
|
+
- Developer platforms
|
|
51
|
+
- Embedded BI tools
|
|
52
|
+
- White-labeled apps or SDKs
|
|
53
|
+
|
|
54
|
+
β
What's included:
|
|
55
|
+
|
|
56
|
+
- Redistribution rights for 1 application or product
|
|
57
|
+
- 12-month subscription with updates & support
|
|
58
|
+
|
|
59
|
+
β
OEM **not required** if your app simply renders static charts and users **cannot** configure or interact with them.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
### β οΈ License Acceptance
|
|
64
|
+
|
|
65
|
+
By installing ApexCharts (e.g., via `npm install apexcharts`), you are agreeing to the applicable license based on your usage:
|
|
66
|
+
|
|
67
|
+
- Community License (if under $2M revenue)
|
|
68
|
+
- Commercial License (if over $2M revenue)
|
|
69
|
+
- OEM License (if redistributing to third-party users)
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
### π Need a License or Have Questions?
|
|
74
|
+
|
|
75
|
+
π§ Contact us at [sales@apexcharts.com](mailto:sales@apexcharts.com)
|
|
76
|
+
π Read full license agreements here: [https://apexcharts.com/license](https://apexcharts.com/license)
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
Thank you for supporting ApexCharts! Your licensing helps keep it free and open for individuals and small teams.
|
package/README.md
CHANGED
|
@@ -73,6 +73,8 @@ edgeWidth | `1` | The width for the edges
|
|
|
73
73
|
edgeColor | `#BCBCBC` | The color for the edges
|
|
74
74
|
edgeColorHover | `#BCBCBC` | The color for the edges when highlighted
|
|
75
75
|
enableTooltip | false | Enable tooltip on hover of nodes
|
|
76
|
+
groupLeafNodes | false | For stacking leaf nodes
|
|
77
|
+
groupLeafNodesSpacing | 10 | Spacing between stacked leaf nodes
|
|
76
78
|
tooltipId | `apextree-tooltip-container` | The tooltip HTML element id
|
|
77
79
|
tooltipTemplate | defaultNodeTemplate | The HTML template for tooltip
|
|
78
80
|
tooltipMaxWidth | 100 | The max width of the tooltip
|