import Ember from 'ember';

export default Ember.Component.extend({

  /**
    @property tagName
    @type {String}
    @default `line`
  */
  tagName: 'line',

  /**
    @property attributeBindings
    @type {Array}
    @default `[ 'x1', 'x2', 'y1', 'y2', 'transform' ]`
  */
  attributeBindings: [ 'x1', 'x2', 'y1', 'y2', 'transform' ],

  /**
    @property classNames
    @type {Array}
    @default `[ 'hour-mark' ]`
  */
  classNames: [ 'hour-mark' ],

  /**
    This is the value of the hour where the marker should be displayed.

    @property value
    @type {Number}
  */
  value: 0,

  /**
    @property x1
    @type {Number}
    @default 50
  */
  x1:50,

  /**
    @property y1
    @type {Number}
    @default 12
  */
  y1:12,

  /**
    @property x2
    @type {Number}
    @default 50
  */
  x2:50,

  /**
    @property y2
    @type {Number}
    @default 5
  */
  y2:5,

  /**
    @property transform
    @type {String}
    @default `rotate(0 50 50)`
  */
  transform: Ember.computed('value', function() {
    var value = this.get('value') || 0;
    return `rotate(${30 * value} 50 50)`;
  })

});

@@ -1,31 +1,129 @@
-import Ember from 'ember';%0A
+/**%0A  @module ember-clock-face%0A*/%0Aimport Ember from 'ember';%0A%0A/**%0A  @class HourMarkerComponent%0A  @namespace EmberClockFace%0A*/
 %0Aexp

update hour-marker component