How to use the basis.ui.Node.prototype function in basis

To help you get started, we’ve selected a few basis 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 smelukov / webpack-runtime-analyzer / src / ui / src / pages / graph / graph.js View on Github external
init: function() {
        Node.prototype.init.call(this);

        this.graph = Value.query(this, 'target.data.profile.data.modules').pipe('itemsChanged', function(modules) {
            if (!modules) {
                return;
            }

            var nodes = [];
            var links = [];

            modules.forEach(function(module) {
                // todo add error/warning count
                nodes.push({
                    id: module.data.name,
                    group: getTypeByExt(module.data.name),
                    main: !module.data.reasons.itemCount
                });
github basisjs / basisjs / src / devpanel / view / ui / view / index.js View on Github external
emit_update: function(delta){
      Node.prototype.groupingClass.prototype.emit_update.call(this, delta);

      if ('grouping' in delta)
      {
        if (this.data.grouping)
          this.setGrouping({
            delegate: instanceMap[this.data.grouping]
          });
        else
          this.setGrouping();
      }
    },
    init: function(){
github lahmatiy / component-inspector / src / inspector / dom-viewer / sections.js View on Github external
init: function() {
    this.childNodes = this.locations || this.childNodes;
    Node.prototype.init.call(this);
  }
});
github basisjs / basisjs / src / devpanel / view / template-info / view / index.js View on Github external
destroy: function(){
    this.showSource.destroy();
    this.showSource = null;
    Node.prototype.destroy.call(this);
  }
});
github smelukov / webpack-runtime-analyzer / src / ui / src / ui / cells / fileSize / index.js View on Github external
init: function() {
        Node.prototype.init.call(this);

        this.setSize(this.size);
    }
});
github lahmatiy / component-inspector / src / inspector / panel / index.js View on Github external
init: function() {
    Node.prototype.init.call(this);

    this.dde = new MoveableElement();
  },
  templateSync: function() {
github smelukov / webpack-runtime-analyzer / src / ui / src / ui / colorBar / index.js View on Github external
init: function() {
        Node.prototype.init.call(this);

        this.tooltip = new this.tooltipClass({
            delegate: Value.query(this, 'selection.pick()')
        });
    }
});
github basisjs / basisjs / src / basis / ui / panel.js View on Github external
templateSync: function(){
      Node.prototype.templateSync.call(this);

      if (!SUPPORT_DISPLAYBOX)
      {
        listenResize(this.element, this.realign, this);
        listenResize(this.childNodesElement, this.realign, this);
      }
    },
    realign: function(){
github basisjs / basisjs / src / devpanel / view / warnings / view / index.js View on Github external
init: function(){
      Node.prototype.init.call(this);
      this.syncLocList();
    }
  }
github basisjs / basisjs / src / basis / ui / scroller.js View on Github external
destroy: function(){
      this.scroller.destroy();
      this.scroller = null;

      Node.prototype.destroy.call(this);
    }
  });