Browse Source

fixed arrowheads not being colored

v3_develop
Alex de Mulder 10 years ago
parent
commit
aac382fc1c
4 changed files with 2028 additions and 2023 deletions
  1. +1
    -0
      HISTORY.md
  2. +2024
    -2022
      dist/vis.js
  3. +1
    -1
      examples/network/01_basic_usage.html
  4. +2
    -0
      lib/network/Edge.js

+ 1
- 0
HISTORY.md View File

@ -12,6 +12,7 @@ http://visjs.org
### Network
- Fixed onRelease with navigation option.
- Fixed arrow heads not being colored.
## 2014-10-28, version 3.6.3

+ 2024
- 2022
dist/vis.js
File diff suppressed because it is too large
View File


+ 1
- 1
examples/network/01_basic_usage.html View File

@ -43,7 +43,7 @@
nodes: nodes,
edges: edges
};
var options = {};
var options = {edges:{style:'arrow-center'}};
var network = new vis.Network(container, data, options);
</script>

+ 2
- 0
lib/network/Edge.js View File

@ -717,6 +717,7 @@ Edge.prototype._drawArrowCenter = function(ctx) {
var point;
// set style
ctx.strokeStyle = this._getColor();
ctx.fillStyle = ctx.strokeStyle;
ctx.lineWidth = this._getLineWidth();
if (this.from != this.to) {
@ -790,6 +791,7 @@ Edge.prototype._drawArrowCenter = function(ctx) {
Edge.prototype._drawArrow = function(ctx) {
// set style
ctx.strokeStyle = this._getColor();
ctx.fillStyle = ctx.strokeStyle;
ctx.lineWidth = this._getLineWidth();
var angle, length;

Loading…
Cancel
Save