|
|
@ -32,7 +32,7 @@ class Box extends NodeBase { |
|
|
|
|
|
|
|
ctx.fillStyle = selected ? this.options.color.highlight.background : hover ? this.options.color.hover.background : this.options.color.background; |
|
|
|
|
|
|
|
let borderRadius = this.options.shapeProperties.borderRadius; |
|
|
|
let borderRadius = this.options.shapeProperties.borderRadius; // only effective for box
|
|
|
|
ctx.roundRect(this.left, this.top, this.width, this.height, borderRadius); |
|
|
|
|
|
|
|
// draw shadow if enabled
|
|
|
|