1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-23 00:00:02 +01:00
VILLASweb/app/models/plot.js
Markus Grigull 77ebf05526 Change plots to free arrangement
Plots can be positioned freely. The plot area does not scrolls yet while
editing, but scales to fit all plots which are inside.
2016-07-19 16:13:56 +02:00

15 lines
504 B
JavaScript

import Model from 'ember-data/model';
import attr from 'ember-data/attr';
import { belongsTo } from 'ember-data/relationships';
export default Model.extend({
name: attr('string'),
signal: attr('string'),
width: attr('number', { defaultValue: 100 }),
height: attr('number', { defaultValue: 100 }),
title: attr('string'),
type: attr('string'),
x: attr('number', { defaultValue: 0 }),
y: attr('number', { defaultValue: 0 }),
visualization: belongsTo('Visualization', { async: true })
});