code: function (oldData) {
         var data = this.data;
  
         this.material.color.setStyle(data.color);
         this.material.opacity = data.opacity;
         this.material.transparent = data.transparent;
         this.material.wireframe = data.debug;
         this.material.side = parseSide(data.side);
  
         var diff = AFRAME.utils.diff(data, oldData);
         if ('src' in diff) {
           this.updateMap();
         }
         else if ('width' in diff || 'height' in diff || 'padding' in diff || 'left' in diff || 'top' in diff || 'bottom' in diff || 'right' in diff) {
           this.regenerateMesh();
         }
       }
docs: Called when component is attached and when component data changes.
  Generally modifies the entity based on the data.