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

class ProxyRenderable extends EventEmitter {
  constructor({ original, view }) {
    super();
    this.uid = uid("renderable");
    this.didViewUpdate = false;
    this.view = view;
    if (original) {
      this.init(original);
    }
  }
  init(original) {
    this._original = original;
    this.layerTransform = original.layerTransform;
  }
  get layerColor() {
    return this._original.layerColor;
  }
  get layerBlendMode() {
    return this._original.layerBlendMode;
  }
  get layerVisibleRenderable() {
    return this._original.layerVisibleRenderable;
  }
  get isRenderable() {
    return this._original.isRenderable;
  }
}

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