Commit 25eec292 authored by Adam Procter's avatar Adam Procter

added boundaries to match SVG

parent 8960c7ba
......@@ -51,7 +51,10 @@ export default {
data.forEach(element => {
//index = index + 20
var rect_1 = nodes.group().translate(element.xpos, element.ypos).draggy()
var rect_1 = nodes.group().translate(element.xpos, element.ypos).draggy({minX: 0,
minY: 0,
maxX: 600,
maxY: 300})
rect_1.rect(150, 40).attr({
fill: colours[Math.floor(Math.random() * colours.length)]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment