mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-23 00:00:02 +01:00

Plots can be positioned freely. The plot area does not scrolls yet while editing, but scales to fit all plots which are inside.
15 lines
504 B
JavaScript
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 })
|
|
});
|