removeComponent(component) {
    if (component instanceof BaseSpriteComponent) {
      const id = component.getId();
      delete this._componentsById[id];

      // handle component type
      if (component instanceof CompositePass) {
        this._renderCmd.removeCompositePass(component);
      }
    }
  }
Removes a component from this sprite. Components must have unique ids.
@param component