import { G as a } from "./am-chart.H2jnOzFc.js";
class e extends a {
  _beforeChanged() {
    super._beforeChanged(), (this.isDirty("width") || this.isDirty("height") || this.isPrivateDirty("width") || this.isPrivateDirty("height")) && (this._clear = !0);
  }
  _changed() {
    super._changed(), this._clear && !this.get("draw") && this._draw();
  }
  _draw() {
    const t = this.width(), s = this.height(), i = this._display;
    i.moveTo(-t / 2, s / 2), i.lineTo(0, -s / 2), i.lineTo(t / 2, s / 2), i.lineTo(-t / 2, s / 2), i.closePath();
  }
  _updateSize() {
    this.markDirty(), this._clear = !0;
  }
}
e.className = "Triangle";
e.classNames = a.classNames.concat([e.className]);
export {
  e as T
};
