-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from sgratzl/release/v3.7.0
Release v3.7.0
- Loading branch information
Showing
20 changed files
with
2,851 additions
and
1,509 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,5 @@ | |
/yarn.lock | ||
/.vscode | ||
*.png | ||
*.tsbuildinfo | ||
*.tsbuildinfo | ||
/samples/type_test.js |
300 changes: 150 additions & 150 deletions
300
.yarn/releases/yarn-3.1.0.cjs → .yarn/releases/yarn-3.1.1.cjs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
import { Chart, LinearScale, PointElement } from 'chart.js'; | ||
import { ForceDirectedGraphController, EdgeLine } from '../build'; | ||
|
||
// register controller in chart.js and ensure the defaults are set | ||
Chart.register(ForceDirectedGraphController, EdgeLine, LinearScale, PointElement); | ||
|
||
const ctx = document.querySelector('canvas').getContext('2d'); | ||
|
||
const chart1 = new Chart(ctx, { | ||
type: 'forceDirectedGraph', | ||
data: { | ||
labels: ['A', 'B', 'C'], // node labels | ||
datasets: [ | ||
{ | ||
data: [ | ||
// nodes as objects | ||
{ x: 1, y: 2 }, // x, y will be set by the force directed graph and can be omitted | ||
{ x: 3, y: 1 }, | ||
{ x: 5, y: 3 }, | ||
], | ||
edges: [ | ||
// edge list where source/target refers to the node index | ||
{ source: 0, target: 1 }, | ||
{ source: 0, target: 2 }, | ||
], | ||
}, | ||
], | ||
}, | ||
options: { | ||
elements: { | ||
point: { | ||
backgroundColor: 'red', | ||
}, | ||
edgeLine: { | ||
backgroundColor: 'red', | ||
}, | ||
}, | ||
}, | ||
}); | ||
|
||
const chart2 = new Chart(ctx, { | ||
type: 'tree', | ||
data: { | ||
labels: ['A', 'B', 'C'], // node labels | ||
datasets: [ | ||
{ | ||
data: [ | ||
// nodes as objects | ||
{ x: 1, y: 2 }, // x, y will be set by the force directed graph and can be omitted | ||
{ x: 3, y: 1, parent: 0 }, | ||
{ x: 5, y: 3, parent: 0 }, | ||
], | ||
}, | ||
], | ||
}, | ||
options: { | ||
elements: { | ||
point: { | ||
backgroundColor: 'red', | ||
}, | ||
edgeLine: { | ||
backgroundColor: 'red', | ||
}, | ||
}, | ||
}, | ||
}); | ||
|
||
const chart3 = new Chart(ctx, { | ||
type: 'dendogram', | ||
data: { | ||
labels: ['A', 'B', 'C'], // node labels | ||
datasets: [ | ||
{ | ||
data: [ | ||
// nodes as objects | ||
{ x: 1, y: 2 }, // x, y will be set by the force directed graph and can be omitted | ||
{ x: 3, y: 1, parent: 0 }, | ||
{ x: 5, y: 3, parent: 0 }, | ||
], | ||
}, | ||
], | ||
}, | ||
options: { | ||
elements: { | ||
point: { | ||
backgroundColor: 'red', | ||
}, | ||
edgeLine: { | ||
backgroundColor: 'red', | ||
}, | ||
}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.