@ -0,0 +1,82 @@ | |||||
<html> | |||||
<head> | |||||
<title>Network | Selected/Unselected Image</title> | |||||
<script type="text/javascript" src="../../../dist/vis.js"></script> | |||||
<link href="../../../dist/vis-network.min.css" rel="stylesheet" type="text/css" /> | |||||
<style type="text/css"> | |||||
body { | |||||
font: 10pt arial; | |||||
} | |||||
#mynetwork { | |||||
width: 600px; | |||||
height: 600px; | |||||
border: 1px solid lightgray; | |||||
} | |||||
</style> | |||||
</head> | |||||
<body> | |||||
<div id="mynetwork"></div> | |||||
<script type="text/javascript"> | |||||
// create an array with nodes | |||||
var nodes = new vis.DataSet([{ | |||||
id: 1, | |||||
shape: 'image', | |||||
size: 20, | |||||
label: 'No select image', | |||||
image: './unselected.svg', | |||||
}, { | |||||
id: 2, | |||||
shape: 'image', | |||||
size: 20, | |||||
label: 'Select image broken', | |||||
image: { | |||||
unselected: './unselected.svg', | |||||
selected: './BROKEN_LINK/selected.svg', | |||||
}, | |||||
}, { | |||||
id: 3, | |||||
shape: 'image', | |||||
size: 20, | |||||
label: 'Select works!', | |||||
image: { | |||||
unselected: './unselected.svg', | |||||
selected: './selected.svg', | |||||
}, | |||||
shapeProperties: { | |||||
borderDashes: [15, 5], | |||||
interpolation: false, | |||||
} | |||||
}]); | |||||
// create an array with edges | |||||
var edges = new vis.DataSet([ | |||||
{from: 1, to: 2}, | |||||
{from: 2, to: 3}, | |||||
]); | |||||
// create a network | |||||
var container = document.getElementById('mynetwork'); | |||||
// provide the data in the vis format | |||||
var data = { | |||||
nodes: nodes, | |||||
edges: edges | |||||
}; | |||||
var options = { | |||||
layout:{ | |||||
randomSeed: 5 | |||||
}, | |||||
nodes: { | |||||
brokenImage: './broken-image.png', | |||||
} | |||||
}; | |||||
// initialize! | |||||
var network = new vis.Network(container, data, options); | |||||
</script> | |||||
</body> | |||||
</html> |
@ -0,0 +1,53 @@ | |||||
<?xml version="1.0" encoding="utf-8"?> | |||||
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> | |||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> | |||||
<svg version="1.1" | |||||
id="svg4137" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" | |||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="504.566px" | |||||
height="577.672px" viewBox="0 0 504.566 577.672" enable-background="new 0 0 504.566 577.672" xml:space="preserve"> | |||||
<g id="path4697_1_"> | |||||
<polygon fill="#FFCB94" points="16,152.415 252.29,15.998 488.572,152.415 488.572,425.249 252.29,561.667 16.008,425.249 "/> | |||||
<g> | |||||
<polyline fill="none" stroke="#214255" stroke-width="40" stroke-miterlimit="100" points="16,152.425 16,152.415 16.009,152.41 | |||||
"/> | |||||
<line fill="none" stroke="#214255" stroke-width="40" stroke-miterlimit="100" stroke-dasharray="68.2077,0,68.2077,68.2032" x1="75.075" y1="118.309" x2="222.748" y2="33.053"/> | |||||
<polyline fill="none" stroke="#214255" stroke-width="40" stroke-miterlimit="100" points="252.281,16.002 252.29,15.998 | |||||
252.299,16.002 "/> | |||||
<line fill="none" stroke="#214255" stroke-width="40" stroke-miterlimit="100" stroke-dasharray="68.2058,0,68.2058,68.2013" x1="311.363" y1="50.104" x2="459.031" y2="135.36"/> | |||||
<polyline fill="none" stroke="#214255" stroke-width="40" stroke-miterlimit="100" points="488.563,152.41 488.572,152.415 | |||||
488.572,152.425 "/> | |||||
<line fill="none" stroke="#214255" stroke-width="40" stroke-miterlimit="100" stroke-dasharray="68.2056,0,68.2056,68.2011" x1="488.572" y1="220.626" x2="488.572" y2="391.138"/> | |||||
<polyline fill="none" stroke="#214255" stroke-width="40" stroke-miterlimit="100" points="488.572,425.239 488.572,425.249 | |||||
488.563,425.253 "/> | |||||
<line fill="none" stroke="#214255" stroke-width="40" stroke-miterlimit="100" stroke-dasharray="68.2059,0,68.2059,68.2014" x1="429.499" y1="459.354" x2="281.831" y2="544.611"/> | |||||
<polyline fill="none" stroke="#214255" stroke-width="40" stroke-miterlimit="100" points="252.299,561.662 252.29,561.667 | |||||
252.281,561.662 "/> | |||||
<line fill="none" stroke="#214255" stroke-width="40" stroke-miterlimit="100" stroke-dasharray="68.2061,0,68.2061,68.2016" x1="193.218" y1="527.561" x2="45.549" y2="442.304"/> | |||||
<polyline fill="none" stroke="#214255" stroke-width="40" stroke-miterlimit="100" points="16.017,425.253 16.008,425.249 | |||||
16.008,425.239 "/> | |||||
<line fill="none" stroke="#214255" stroke-width="40" stroke-miterlimit="100" stroke-dasharray="68.2056,0,68.2056,68.2011" x1="16.006" y1="357.038" x2="16.001" y2="186.525"/> | |||||
</g> | |||||
</g> | |||||
<g id="path4697"> | |||||
<g> | |||||
<polyline fill="none" stroke="#F7941E" stroke-width="40" stroke-miterlimit="100" points="16.002,228.415 16,152.415 | |||||
81.819,114.416 "/> | |||||
<polyline fill="none" stroke="#F7941E" stroke-width="40" stroke-miterlimit="100" points="186.472,53.997 252.29,15.998 | |||||
318.108,53.998 "/> | |||||
<polyline fill="none" stroke="#F7941E" stroke-width="40" stroke-miterlimit="100" points="422.754,114.415 488.572,152.415 | |||||
488.572,228.415 "/> | |||||
<polyline fill="none" stroke="#F7941E" stroke-width="40" stroke-miterlimit="100" points="488.572,349.249 488.572,425.249 | |||||
422.754,463.249 "/> | |||||
<polyline fill="none" stroke="#F7941E" stroke-width="40" stroke-miterlimit="100" points="318.108,523.667 252.29,561.667 | |||||
186.472,523.667 "/> | |||||
<polyline fill="none" stroke="#F7941E" stroke-width="40" stroke-miterlimit="100" points="81.826,463.249 16.008,425.249 | |||||
16.006,349.249 "/> | |||||
</g> | |||||
</g> | |||||
</svg> |
@ -0,0 +1,6 @@ | |||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |||||
<svg id="svg4137" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="203.79mm" width="178mm" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" viewBox="0 0 630.70347 722.08501"> | |||||
<g id="layer1" transform="translate(61.066 -28.463)"> | |||||
<path id="path4697" stroke-linejoin="round" fill="#f57f17" stroke="#37474e" stroke-linecap="round" stroke-miterlimit="100" stroke-width="40" d="m-41.066 218.98 295.36-170.52l295.35 170.52 0.00001 341.04-295.35 170.52-295.35-170.52z"/> | |||||
</g> | |||||
</svg> |