setGraphButtonEnabled(name, enable) {

    const className = `vis-button tmap-${name}`;
    const b = utils.getFirstElementByClassName(className, this.domNode);
    $tw.utils.toggleClass(b, 'tmap-button-enabled', enable);

  }
If a button is enabled it means it is displayed on the graph canvas.

@param {string} name - The name of the button to enabled. Has to
    correspond with the css button name.
@param {boolean} enable - True if the button should be visible,
    false otherwise.