import { Container } from '../rendering/scene/Container.mjs';
import { TilingSpriteView } from './TilingSpriteView.mjs';

class TilingSprite extends Container {
  constructor(options) {
    super({
      view: new TilingSpriteView(options),
      label: "TilingSprite",
      ...options
    });
    this.allowChildren = false;
  }
  set texture(value) {
    this.view.texture = value;
  }
  get texture() {
    return this.view.texture;
  }
  get anchor() {
    return this.view.anchor;
  }
  set anchor(value) {
    this.view.anchor.x = value.x;
    this.view.anchor.y = value.y;
  }
  get width() {
    return this.view.width;
  }
  set width(value) {
    this.view.width = value;
  }
  get height() {
    return this.view.height;
  }
  set height(value) {
    this.view.height = value;
  }
  get tilePosition() {
    return this.view._tileTransform.position;
  }
  set tilePosition(value) {
    this.view._tileTransform.position.copyFrom(value);
  }
  get tileScale() {
    return this.view._tileTransform.scale;
  }
  set tileScale(value) {
    this.view._tileTransform.scale.copyFrom(value);
  }
  set tileRotation(value) {
    this.view._tileTransform.rotation = value;
  }
  get tileRotation() {
    return this.view._tileTransform.rotation;
  }
  get tileTransform() {
    return this.view._tileTransform;
  }
}

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