|
|
|
@ -1,5 +1,7 @@ |
|
|
|
Drupal.behaviors.islandora_herbarium_object_graph = { |
|
|
|
Drupal.behaviors.islandora_herbarium_object_graph = { |
|
|
|
attach: function (context, settings) { |
|
|
|
attach: function (context, settings) { |
|
|
|
|
|
|
|
// only run once:
|
|
|
|
|
|
|
|
if (context == document) { |
|
|
|
var svg = d3.select(".fdg"), |
|
|
|
var svg = d3.select(".fdg"), |
|
|
|
width = +svg.attr("width"), |
|
|
|
width = +svg.attr("width"), |
|
|
|
height = +svg.attr("height"); |
|
|
|
height = +svg.attr("height"); |
|
|
|
@ -125,4 +127,5 @@ Drupal.behaviors.islandora_herbarium_object_graph = { |
|
|
|
d.fy = null; |
|
|
|
d.fy = null; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|