Browse Source

tweaked circles

v3_develop
Alex de Mulder 10 years ago
parent
commit
d07be630c2
2 changed files with 8 additions and 10 deletions
  1. +4
    -5
      dist/vis.js
  2. +4
    -5
      lib/network/Node.js

+ 4
- 5
dist/vis.js View File

@ -26956,15 +26956,14 @@ return /******/ (function(modules) { // webpackBootstrap
this._drawRawCircle(ctx, centerX, centerY, radius);
ctx.save();
ctx.beginPath();
ctx.arc(centerX, centerY, radius, 0, Math.PI * 2, true);
ctx.closePath();
ctx.clip();
ctx.circle(this.x, this.y, radius);
ctx.stroke();
ctx.clip();
this._drawImageAtPosition(ctx);
ctx.restore();
this.boundingBox.top = this.y - this.options.radius;
this.boundingBox.left = this.x - this.options.radius;
this.boundingBox.right = this.x + this.options.radius;

+ 4
- 5
lib/network/Node.js View File

@ -630,15 +630,14 @@ Node.prototype._drawCircularImage = function (ctx) {
this._drawRawCircle(ctx, centerX, centerY, radius);
ctx.save();
ctx.beginPath();
ctx.arc(centerX, centerY, radius, 0, Math.PI * 2, true);
ctx.closePath();
ctx.clip();
ctx.circle(this.x, this.y, radius);
ctx.stroke();
ctx.clip();
this._drawImageAtPosition(ctx);
ctx.restore();
this.boundingBox.top = this.y - this.options.radius;
this.boundingBox.left = this.x - this.options.radius;
this.boundingBox.right = this.x + this.options.radius;

Loading…
Cancel
Save