Browse Source

Release 4.6.0

flowchartTest v4.6.0
Alex de Mulder 9 years ago
parent
commit
1b381ecf93
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      lib/network/modules/NodesHandler.js
  2. +1
    -1
      lib/network/modules/components/nodes/shapes/Box.js

+ 3
- 3
lib/network/modules/NodesHandler.js View File

@ -93,9 +93,9 @@ class NodesHandler {
}, },
shape: 'ellipse', shape: 'ellipse',
shapeProperties: { shapeProperties: {
borderDashes: false,
borderRadius: 6,
useImageSize: false
borderDashes: false, // only for borders
borderRadius: 6, // only for box shape
useImageSize: false // only for image and circularImage shapes
}, },
size: 25, size: 25,
title: undefined, title: undefined,

+ 1
- 1
lib/network/modules/components/nodes/shapes/Box.js View File

@ -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; 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); ctx.roundRect(this.left, this.top, this.width, this.height, borderRadius);
// draw shadow if enabled // draw shadow if enabled

Loading…
Cancel
Save