Skip to content

Commit 02cb7d0

Browse files
committed
added forceLabel node attribute to skip the labelThreshold test for any node
1 parent 4b80b8d commit 02cb7d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/plotter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ function Plotter(nodesCtx, edgesCtx, labelsCtx, hoverCtx, graph, w, h) {
361361
function drawLabel(node) {
362362
var ctx = labelsCtx;
363363

364-
if (node['displaySize'] >= self.p.labelThreshold) {
364+
if (node['displaySize'] >= self.p.labelThreshold || node['forceLabel']) {
365365
var fontSize = self.p.labelSize == 'fixed' ?
366366
self.p.defaultLabelSize :
367367
self.p.labelSizeRatio * node['displaySize'];

0 commit comments

Comments
 (0)