Ember2 progress

This commit is contained in:
2015-08-17 15:13:31 +02:00
parent 5d02f5d37b
commit 2df1b38e8f
34 changed files with 229 additions and 206 deletions
@@ -1,5 +1,5 @@
attr = DS.attr
App.SectionElement = DS.Model.extend App.SvgElementMixin,
App.SectionElement = DS.Model.extend App.SvgElementMixin, App.Rotation,
position_x: attr 'number', defaultValue: 0
position_y: attr 'number', defaultValue: 0
rotation: attr 'number', defaultValue: 0
@@ -6,6 +6,9 @@ App.Section = DS.Model.extend
tables: DS.hasMany('table')
section_elements: DS.hasMany('section-element')
section_areas: DS.hasMany('section-area')
editmode: false
arrange_tables_in_grid: (tables)->
epsilon = 1e-10
tables ||= @get('tables').sortBy('number')