Skip to content
This repository was archived by the owner on Nov 29, 2022. It is now read-only.

Commit 5b1134e

Browse files
committed
chore: add entity method in graph
1 parent 5c21125 commit 5b1134e

File tree

5 files changed

+3429
-17990
lines changed

5 files changed

+3429
-17990
lines changed

examples/SemanticsReact.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
<script>process = {env:{}};</script>
77
<script type="module">
88
import { Layout, Graph, React, ReactDOM, Vertex, Edge } from '../dist/vis2.es5.js';
9+
import { schemata } from '../resources/_schemata.js'
10+
import { data } from '../resources/az_alievs.js'
11+
12+
913
function useGraph(){
1014
const [graph, setGraph] = React.useState(new Graph());
1115
const metaSetGraph = function(){
@@ -28,7 +32,13 @@
2832
React.createElement('input', { value:count, onChange:({target})=>{
2933
setCount(target.value)
3034
} }
31-
)
35+
),
36+
React.createElement('button',{
37+
onClick:()=>{
38+
data
39+
.map(rawEntity=> )
40+
}
41+
},'add our friends')
3242
),
3343
React.createElement('div', null,
3444
React.createElement(Layout, {graph})

0 commit comments

Comments
 (0)