Skip to content

Commit

Permalink
added forceLabel node attribute to skip the labelThreshold test for a…
Browse files Browse the repository at this point in the history
…ny node
  • Loading branch information
jacomyal committed Apr 3, 2012
1 parent 4b80b8d commit 02cb7d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/plotter.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ function Plotter(nodesCtx, edgesCtx, labelsCtx, hoverCtx, graph, w, h) {
function drawLabel(node) {
var ctx = labelsCtx;

if (node['displaySize'] >= self.p.labelThreshold) {
if (node['displaySize'] >= self.p.labelThreshold || node['forceLabel']) {
var fontSize = self.p.labelSize == 'fixed' ?
self.p.defaultLabelSize :
self.p.labelSizeRatio * node['displaySize'];
Expand Down

0 comments on commit 02cb7d0

Please sign in to comment.