Add section elements
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
attr = DS.attr
|
||||
App.SectionElement = DS.Model.extend App.SvgElementMixin,
|
||||
position_x: attr 'number', defaultValue: 0
|
||||
position_y: attr 'number', defaultValue: 0
|
||||
rotation: attr 'number', defaultValue: 0
|
||||
section: DS.belongsTo('section')
|
||||
@@ -4,3 +4,4 @@ App.Section = DS.Model.extend
|
||||
width: attr 'number'
|
||||
height: attr 'number'
|
||||
tables: DS.hasMany('table')
|
||||
section_elements: DS.hasMany('section_element')
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
attr = DS.attr
|
||||
App.SvgElement = DS.Model.extend App.SvgElementMixin
|
||||
Reference in New Issue
Block a user