How to use the phovea_core/src.mixin function in phovea_core

To help you get started, we’ve selected a few phovea_core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Caleydo / taco / src / heat_map.ts View on Github external
case 'CELL':
        d3.select(this.$node.node().parentElement).classed('heatmap-has-column-labels', true);
        this.$node.classed('heatmap-row-labels', true).classed('heatmap-column-labels', true);
        scale[0] -= 0.65; // decrease width of heat map to show row labels TODO make it flexible based on the longest label
        break;
      case 'ROW':
        this.$node.classed('heatmap-row-labels', true);
        scale[0] -= 0.65; // decrease width of heat map to show row labels TODO make it flexible based on the longest label
        break;
      case 'COLUMN':
        d3.select(this.$node.node().parentElement).classed('column-labels', true);
        this.$node.classed('heatmap-column-labels', true);
        break;
    }

    const options = mixin({}, this.heatMapOptions, {
      scale,
      labels: showLabels
    });

    this.$node.classed('loading', true);

    return Promise.all([plugins[0].load()])
      .then((args) => {
        this.clearContent();

       // console.log('args from plugins', args);
        const plugin = args[0];
       // console.log('const plugin- args', plugin);
        plugin.factory(
          dataset,
          this.$node.node(),
github Caleydo / taco / src / reorder_view.ts View on Github external
constructor(public parent:Element, options:any) {
    this.options = mixin(this.options, options);

    this.$node = d3.select(parent)
      .append('svg')
      .classed('reorderView', true)
      .classed('fadeout', !ChangeTypes.REORDER.isActive);
  }
github Caleydo / ordino / src / form / internal / FormCheckBox.ts View on Github external
constructor(parent: IFormParent, $parent, desc: ICheckBoxElementDesc) {
    super(parent, mixin({options: { checked: true, unchecked: false}}, desc));

    this.$node = $parent.append('div').classed('checkbox', true);

    this.build();
  }