Skip to content

PhylocanvasGL does not respect the "interactive" property set after the component has been created.

In the snippet below, the setProps(...) call in the last line property 'nodeSize' value 5 will have the effect, but 'interactive' value true will not enable interactivity.

const tree = new phylocanvas.PhylocanvasGL(
  document.querySelector("#demo"),
  {
    interactive: false,
    treeToCanvasRation: 0.75,
    size: { width: 400, height: 300 },
    source: `(Bovine:0.69395,(Gibbon:0.36079,(Orangutan:0.33636,(Gorilla:0.17147,(Chimp:1.19268,Human:0.11927):0.08386):0.06124):0.15057):0.54939,Mouse:1.21460);`,
  },
);
tree.setProps({interactive: true, nodeSize: 5});

In the snippet result, setProps(...) call in the last line 'nodeSize' will have the effect, but 'interactive' will not.