code: function () {
        var el = this.el;
        var data = this.data;
  
        var quad = this.quad = document.createElement('a-entity');
        var self = this;
  
        quad.setAttribute('rotation', data.rotation);
        quad.setAttribute('text', {width: .25, color: '#fff', value: data.text, align: 'center'});
        el.appendChild(quad);
  
        // Line
        var material = this.material = new THREE.LineBasicMaterial({color: data.lineColor, opacity: data.opacity, transparent: data.opacity < 1});
        var geometry = this.geometry = new THREE.BufferGeometry();
        geometry.addAttribute('position', new THREE.BufferAttribute(new Float32Array(2 * 3), 3));
  
        this.line = new THREE.Line(geometry, material);
        this.el.setObject3D('tooltip-line', this.line);
  
      }
docs: Called once when component is attached. Generally for initial setup.