'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var Container = require('../rendering/scene/Container.js');
var TilingSpriteView = require('./TilingSpriteView.js');

class TilingSprite extends Container.Container {
  constructor(options) {
    super({
      view: new TilingSpriteView.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;
  }
}

exports.TilingSprite = TilingSprite;
//# sourceMappingURL=TilingSprite.js.map
