Commit 19173db33e4800e8ba6153caa825634187399d7a
1 parent
c8382405
updates
Showing
4 changed files
with
6 additions
and
6 deletions
datalets/graph-datalet/graph-clustering-datalet.html
| @@ -471,9 +471,9 @@ Example: | @@ -471,9 +471,9 @@ Example: | ||
| 471 | 471 | ||
| 472 | 472 | ||
| 473 | _this.gnodes.attr("cx", function (t) { | 473 | _this.gnodes.attr("cx", function (t) { |
| 474 | - return t.x = Math.max(25, Math.min(_this.width - 50, t.x)) | 474 | + return t.x = Math.max(25, Math.min(_this.width, t.x)) |
| 475 | }).attr("cy", function (t) { | 475 | }).attr("cy", function (t) { |
| 476 | - return t.y = Math.max(8, Math.min(600, t.y)) | 476 | + return t.y = Math.max(8, Math.min(_this.height, t.y)) |
| 477 | }); | 477 | }); |
| 478 | 478 | ||
| 479 | _this.glinks.attr("x1", function (t) { | 479 | _this.glinks.attr("x1", function (t) { |
datalets/graph-datalet/graph-datalet.html
| @@ -286,7 +286,7 @@ Example: | @@ -286,7 +286,7 @@ Example: | ||
| 286 | 286 | ||
| 287 | 287 | ||
| 288 | _this.gnodes.attr("cx", function (t) { | 288 | _this.gnodes.attr("cx", function (t) { |
| 289 | - return t.x = Math.max(25, Math.min(_this.width - 50, t.x)) | 289 | + return t.x = Math.max(25, Math.min(_this.width, t.x)) |
| 290 | }).attr("cy", function (t) { | 290 | }).attr("cy", function (t) { |
| 291 | return t.y = Math.max(8, Math.min(_this.height, t.y)) | 291 | return t.y = Math.max(8, Math.min(_this.height, t.y)) |
| 292 | }); | 292 | }); |
datalets/graph-datalet/graph-with-clustering-datalet.html
| @@ -461,7 +461,7 @@ Example: | @@ -461,7 +461,7 @@ Example: | ||
| 461 | }); | 461 | }); |
| 462 | 462 | ||
| 463 | _this.svgNodes.attr("cx", function (t) { | 463 | _this.svgNodes.attr("cx", function (t) { |
| 464 | - return t.x = Math.max(25, Math.min(_this.width - 50, t.x)) | 464 | + return t.x = Math.max(25, Math.min(_this.width, t.x)) |
| 465 | }).attr("cy", function (t) { | 465 | }).attr("cy", function (t) { |
| 466 | return t.y = Math.max(8, Math.min(_this.height, t.y)) | 466 | return t.y = Math.max(8, Math.min(_this.height, t.y)) |
| 467 | }); | 467 | }); |
datalets/graph-datalet/graph-with-clustering-extend-datalet.html
| @@ -493,9 +493,9 @@ Example: | @@ -493,9 +493,9 @@ Example: | ||
| 493 | }); | 493 | }); |
| 494 | 494 | ||
| 495 | _this.svgNodes.attr("cx", function (t) { | 495 | _this.svgNodes.attr("cx", function (t) { |
| 496 | - return t.x = Math.max(25, Math.min(_this.width - 50, t.x)) | 496 | + return t.x = Math.max(25, Math.min(_this.width, t.x)) |
| 497 | }).attr("cy", function (t) { | 497 | }).attr("cy", function (t) { |
| 498 | - return t.y = Math.max(8, Math.min(600, t.y)) | 498 | + return t.y = Math.max(8, Math.min(_this.height, t.y)) |
| 499 | }); | 499 | }); |
| 500 | 500 | ||
| 501 | _this.svgLinks.attr("x1", function (t) { | 501 | _this.svgLinks.attr("x1", function (t) { |