设置按钮类。

This commit is contained in:
tengge1 2019-04-28 21:02:38 +08:00
parent 446a8d79af
commit bca464df24

View File

@ -10,7 +10,10 @@ function Button(parent, options = {}) {
var paddingTop = 4;
var g = d3.select(parent)
.append('g');
.append('g')
.classed('Button', true)
.classed('Draggable', true)
.style('pointer-events', 'all');
var rect = g.append('rect')
.attr('x', 0)