Skip to content

Commit c49589f

Browse files
luney112Yomguithereal
authored andcommitted
Fix bug with displayLabels: false and using webgl renderer
1 parent 2aedb29 commit c49589f

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/renderers/sigma.renderers.webgl.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -451,23 +451,23 @@
451451
}
452452
}
453453

454-
if (drawLabels) {
455-
a = this.camera.quadtree.area(
456-
this.camera.getRectangle(this.width, this.height)
457-
);
454+
a = this.camera.quadtree.area(
455+
this.camera.getRectangle(this.width, this.height)
456+
);
458457

459-
// Apply camera view to these nodes:
460-
this.camera.applyView(
461-
undefined,
462-
undefined,
463-
{
464-
nodes: a,
465-
edges: [],
466-
width: this.width,
467-
height: this.height
468-
}
469-
);
458+
// Apply camera view to these nodes:
459+
this.camera.applyView(
460+
undefined,
461+
undefined,
462+
{
463+
nodes: a,
464+
edges: [],
465+
width: this.width,
466+
height: this.height
467+
}
468+
);
470469

470+
if (drawLabels) {
471471
o = function(key) {
472472
return self.settings({
473473
prefix: self.camera.prefix

0 commit comments

Comments
 (0)