3
我是新來的聯合JS,我不能夠動態地設置以下元素的寬度和高度屬性:如何在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' } }
});
有什麼辦法來動態設置這些屬性?
明白了。謝謝.. –