import EventEmitter from 'eventemitter3';
import { Matrix } from '../../../maths/Matrix.mjs';
import { uid } from '../../../utils/data/uid.mjs';

class LayerRenderable extends EventEmitter {
  constructor({ original, view }) {
    super();
    this.uid = uid("renderable");
    this.view = view;
    this._original = original;
    this.layerTransform = new Matrix();
    this.layerColor = 4294967295;
    this.layerVisibleRenderable = 3;
    this.view.owner = this;
  }
  get layerBlendMode() {
    return this._original.layerBlendMode;
  }
  onViewUpdate() {
    this.didViewUpdate = true;
    this._original.layerGroup.onChildViewUpdate(this);
  }
  get isRenderable() {
    return this._original.isRenderable;
  }
}

export { LayerRenderable };
//# sourceMappingURL=LayerRenderable.mjs.map
