Commit 1edf9252 authored by Adam Procter's avatar Adam Procter

Merge branch 'boundingbox'

parents 8960c7ba 25eec292
Pipeline #162 failed with stages
in 1 minute and 18 seconds
......@@ -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