【发布时间】:2016-01-20 16:17:12
【问题描述】:
我是 Joint JS 的新手,无法动态设置以下元素的宽度和高度属性:
var rect = new joint.shapes.basic.Rect({
position: { x: 100, y: 30 },
size: { width: 100, height: 30 },
attrs: { rect: { fill: 'blue' }, text: { text: 'my box', fill: 'white' } }
});
有没有办法动态设置这些属性?
【问题讨论】:
标签: jointjs