-
-
Notifications
You must be signed in to change notification settings - Fork 6
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 #23 from sgratzl/release/v2.4.1
Release v2.4.1
- Loading branch information
Showing
4 changed files
with
84 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "cytoscape-layers", | ||
"description": "Cytoscape.js plugin for rendering layers in SVG, DOM, or Canvas", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"author": { | ||
"name": "Samuel Gratzl", | ||
"email": "[email protected]", | ||
|
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,77 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Sample</title> | ||
<style> | ||
body { | ||
margin: 0; | ||
} | ||
#app { | ||
width: 100vw; | ||
height: 100vh; | ||
display: block; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script src="https://cdn.jsdelivr.net/npm/cytoscape"></script> | ||
<script src="../build/index.umd.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/cytoscape-overlays@^1.3.0"></script> | ||
<script> | ||
const cy = cytoscape({ | ||
container: document.getElementById('app'), | ||
elements: [ | ||
...['a', 'b'].map((id) => ({ | ||
data: { | ||
id, | ||
value: Math.random(), | ||
values: Array(100) | ||
.fill(0) | ||
.map(() => Math.random()), | ||
line: Array(10) | ||
.fill(0) | ||
.map(() => Math.random()), | ||
}, | ||
})), | ||
{ | ||
data: { | ||
id: 'ab', | ||
source: 'a', | ||
target: 'b', | ||
}, | ||
}, | ||
], | ||
}); | ||
cy.overlays( | ||
[ | ||
{ | ||
position: 'top', | ||
vis: CytoscapeOverlays.renderBar('value', { | ||
backgroundColor: 'steelblue', | ||
}), | ||
}, | ||
{ | ||
vis: CytoscapeOverlays.renderBoxplot('values', { | ||
backgroundColor: 'darkred', | ||
}), | ||
}, | ||
{ | ||
vis: CytoscapeOverlays.renderHistogram('values', { | ||
backgroundColor: 'darkgreen', | ||
}), | ||
}, | ||
{ | ||
vis: CytoscapeOverlays.renderSparkLine('line', { | ||
backgroundColor: 'darkgreen', | ||
}), | ||
}, | ||
], | ||
{ | ||
updateOn: 'render', | ||
backgroundColor: 'white', | ||
} | ||
); | ||
</script> | ||
</body> | ||
</html> |
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