mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
设置按钮类。
This commit is contained in:
parent
446a8d79af
commit
bca464df24
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user