import { css, LitElement, html } from "lit";
import { property } from "lit/decorators.js";
import { WatchCircleType } from "../watch/watch.js";
import { customElement } from "../../decorator.js";
import { Priority } from "../types.js";
import { RotType, RotPosition } from "./rot-renderer.js";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __decorateClass = (decorators, target, key, kind) => {
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
    if (decorator = decorators[i])
      result = (kind ? decorator(target, key, result) : decorator(result)) || result;
  if (kind && result) __defProp(target, key, result);
  return result;
};
let ObcRateOfTurn = class extends LitElement {
  constructor() {
    super(...arguments);
    this.rotationsPerMinute = 1;
    this.rotType = RotType.dots;
    this.rotPosition = RotPosition.scale;
    this.priority = Priority.regular;
    this.barStartAngle = 0;
    this.barEndAngle = 30;
    this.watchCircleType = WatchCircleType.single;
  }
  render() {
    return html`<div class="container">
      <obc-watch
        .watchCircleType=${this.watchCircleType}
        .priority=${this.priority}
        .rotType=${this.rotType}
        .rotPosition=${this.rotPosition}
        .rotStartAngle=${this.barStartAngle}
        .rotEndAngle=${this.barEndAngle}
        .rotationsPerMinute=${this.rotationsPerMinute}
      ></obc-watch>
    </div>`;
  }
};
ObcRateOfTurn.styles = css`
    * {
      box-sizing: border-box;
    }

    .container {
      position: relative;
      width: 100%;
      height: 100%;
    }

    .container > * {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }
  `;
__decorateClass([
  property({ type: Number })
], ObcRateOfTurn.prototype, "rotationsPerMinute", 2);
__decorateClass([
  property({ type: String })
], ObcRateOfTurn.prototype, "rotType", 2);
__decorateClass([
  property({ type: String })
], ObcRateOfTurn.prototype, "rotPosition", 2);
__decorateClass([
  property({ type: String })
], ObcRateOfTurn.prototype, "priority", 2);
__decorateClass([
  property({ type: Number })
], ObcRateOfTurn.prototype, "barStartAngle", 2);
__decorateClass([
  property({ type: Number })
], ObcRateOfTurn.prototype, "barEndAngle", 2);
__decorateClass([
  property({ type: String })
], ObcRateOfTurn.prototype, "watchCircleType", 2);
ObcRateOfTurn = __decorateClass([
  customElement("obc-rate-of-turn")
], ObcRateOfTurn);
export {
  ObcRateOfTurn,
  RotPosition,
  RotType
};
//# sourceMappingURL=rate-of-turn.js.map
