code: function (params) {
          this.$id = 'dragBoxUI';
          this.width = 0;
          this.height = 0;
          this.origin = {
              x: params.x,
              y: params.y
          };
      }
docs: Define components.