apexsankey 1.2.0 β 1.2.4
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/.github/workflows/publish.yml +20 -0
- package/.husky/commit-msg +1 -0
- package/.husky/pre-push +1 -0
- package/CHANGELOG.md +14 -0
- package/LICENSE +80 -0
- package/README.md +2 -0
- package/apexsankey.es.min.js +5689 -183
- package/apexsankey.min.js +9 -1
- package/commitlint.config.js +5 -0
- package/lib/layout/rankAssignment/makeAcyclic.d.ts +1 -1
- package/lib/models/Paper.d.ts +1 -0
- package/package.json +19 -5
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
name: Publish to npm
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
publish:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
- uses: actions/setup-node@v4
|
|
14
|
+
with:
|
|
15
|
+
node-version: '20'
|
|
16
|
+
registry-url: 'https://registry.npmjs.org' # Or your custom registry
|
|
17
|
+
- run: npm install
|
|
18
|
+
- run: npm publish
|
|
19
|
+
env:
|
|
20
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
npx --no -- commitlint --edit "$1"
|
package/.husky/pre-push
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
npm run release && git push --no-verify
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
+
|
|
5
|
+
### [1.2.4](https://github.com/apexcharts/apexsankey/compare/v1.2.3...v1.2.4) (2025-07-27)
|
|
6
|
+
|
|
7
|
+
### [1.2.3](https://github.com/apexcharts/apexsankey/compare/v1.2.2...v1.2.3) (2025-07-27)
|
|
8
|
+
|
|
9
|
+
### 1.2.2 (2025-07-27)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* add auto versioning and release ([2cdd7f7](https://github.com/apexcharts/apexsankey/commit/2cdd7f7650e3508226106538c06f2752d90eef7a))
|
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
|
@@ -62,7 +62,9 @@ The layout can be configured by either setting the properties in the table below
|
|
|
62
62
|
| nodeBorderColor | none | The border color of the nodes |
|
|
63
63
|
| onNodeClick | empty function | The callback function for node click. Node object will be parameter for callback. |
|
|
64
64
|
| edgeOpacity | 0.4 | The opacity value for edges. Values must be between 0 to 1 and in fraction. |
|
|
65
|
+
| edgeGradientFill | true | Enable gradient fill based on source and target node colors. |
|
|
65
66
|
| enableTooltip | false | Enable tooltip on hover of nodes |
|
|
67
|
+
| enableToolbar | false | Enable/disable graph toolbar
|
|
66
68
|
| tooltipId | `sankey-tooltip-container` | The tooltip HTML element id |
|
|
67
69
|
| tooltipTemplate | tooltipTemplate | The HTML template for tooltip |
|
|
68
70
|
| tooltipBorderColor | `#BCBCBC` | The border color of tooltip |
|