2014-12-03 00:20:53 +00:00
|
|
|
{
|
|
|
|
"name": "Layout components.",
|
|
|
|
"description": "Plug in adding Layout capabiltiies.",
|
|
|
|
"extensions": {
|
2014-12-04 19:53:05 +00:00
|
|
|
"views": [
|
|
|
|
{
|
|
|
|
"key": "layout",
|
|
|
|
"name": "Layout",
|
|
|
|
"glyph": "L",
|
|
|
|
"type": "layout",
|
2014-12-04 21:22:39 +00:00
|
|
|
"templateUrl": "templates/layout.html",
|
2015-02-17 18:03:48 +00:00
|
|
|
"uses": [ "composition" ],
|
|
|
|
"gestures": [ "drop" ]
|
2015-01-15 01:48:57 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "fixed",
|
|
|
|
"name": "Fixed Position",
|
|
|
|
"glyph": "3",
|
|
|
|
"type": "telemetry.panel",
|
|
|
|
"templateUrl": "templates/fixed.html",
|
2015-02-17 18:03:48 +00:00
|
|
|
"uses": [ "composition" ],
|
2015-02-18 00:15:25 +00:00
|
|
|
"gestures": [ "drop" ],
|
|
|
|
"toolbar": {
|
|
|
|
"sections": [
|
|
|
|
{
|
|
|
|
"items": [
|
|
|
|
{
|
2015-02-18 00:29:42 +00:00
|
|
|
"method": "add",
|
2015-02-20 19:30:04 +00:00
|
|
|
"control": "menu-button",
|
2015-02-19 03:56:54 +00:00
|
|
|
"text": "Add",
|
2015-02-20 19:30:04 +00:00
|
|
|
"inclusive": true,
|
|
|
|
"options": [
|
|
|
|
{
|
|
|
|
"name": "Box",
|
|
|
|
"glyph": "\u2610",
|
|
|
|
"key": "fixed.box"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Line",
|
|
|
|
"glyph": "-",
|
|
|
|
"key": "fixed.line"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Text",
|
|
|
|
"glyph": "\u1D1B",
|
|
|
|
"key": "fixed.text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Image",
|
|
|
|
"glyph": "\u2353",
|
|
|
|
"key": "fixed.image"
|
|
|
|
}
|
|
|
|
]
|
2015-02-18 00:15:25 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"items": [
|
|
|
|
{
|
2015-02-19 03:56:54 +00:00
|
|
|
"method": "remove",
|
|
|
|
"control": "button",
|
|
|
|
"text": "Remove",
|
|
|
|
"inclusive": true
|
2015-02-18 00:15:25 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2014-12-04 19:53:05 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"representations": [
|
|
|
|
{
|
|
|
|
"key": "frame",
|
|
|
|
"templateUrl": "templates/frame.html"
|
|
|
|
}
|
|
|
|
],
|
2014-12-04 21:22:39 +00:00
|
|
|
"controllers": [
|
|
|
|
{
|
|
|
|
"key": "LayoutController",
|
|
|
|
"implementation": "LayoutController.js",
|
|
|
|
"depends": [ "$scope" ]
|
2015-01-16 02:36:48 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "FixedController",
|
|
|
|
"implementation": "FixedController.js",
|
2015-01-16 03:16:15 +00:00
|
|
|
"depends": [ "$scope", "telemetrySubscriber", "telemetryFormatter" ]
|
2014-12-04 21:22:39 +00:00
|
|
|
}
|
|
|
|
],
|
2015-02-19 03:41:27 +00:00
|
|
|
"templates": [
|
|
|
|
{
|
|
|
|
"key": "fixed.telemetry",
|
|
|
|
"templateUrl": "templates/elements/telemetry.html"
|
2015-02-20 19:39:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "fixed.box",
|
|
|
|
"templateUrl": "templates/elements/box.html"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "fixed.line",
|
|
|
|
"templateUrl": "templates/elements/line.html"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "fixed.text",
|
|
|
|
"templateUrl": "templates/elements/text.html"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "fixed.image",
|
|
|
|
"templateUrl": "templates/elements/image.html"
|
2015-02-19 03:41:27 +00:00
|
|
|
}
|
|
|
|
],
|
2014-12-03 00:20:53 +00:00
|
|
|
"types": [
|
2014-12-04 18:42:54 +00:00
|
|
|
{
|
|
|
|
"key": "layout",
|
|
|
|
"name": "Layout",
|
|
|
|
"glyph": "L",
|
|
|
|
"description": "A layout in which multiple telemetry panels may be displayed.",
|
|
|
|
"features": "creation",
|
|
|
|
"model": { "composition": [] },
|
|
|
|
"properties": [
|
|
|
|
{
|
|
|
|
"name": "Preferred Size",
|
|
|
|
"control": "select",
|
|
|
|
"options": [
|
|
|
|
{ "name": "Fit to Window", "value": "FIT" },
|
|
|
|
{ "name": "Fixed Size", "value": "FIXED" }
|
|
|
|
],
|
|
|
|
"key": "preferredSize"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "Layout Grid",
|
|
|
|
"control": "composite",
|
|
|
|
"pattern": "^(\\d*[1-9]\\d*)?$",
|
|
|
|
"items": [
|
|
|
|
{
|
|
|
|
"name": "Horizontal grid (px)",
|
|
|
|
"control": "textfield"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Vertical grid (px)",
|
|
|
|
"control": "textfield"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"key": "layoutGrid",
|
|
|
|
"conversion": "number[]"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2014-12-03 00:20:53 +00:00
|
|
|
{
|
|
|
|
"key": "telemetry.panel",
|
|
|
|
"name": "Telemetry Panel",
|
|
|
|
"glyph": "t",
|
|
|
|
"description": "A panel for collecting telemetry elements.",
|
|
|
|
"delegates": [ "telemetry" ],
|
|
|
|
"features": "creation",
|
|
|
|
"model": { "composition": [] },
|
|
|
|
"properties": [
|
|
|
|
{
|
2014-12-03 23:08:41 +00:00
|
|
|
"name": "Preferred Size",
|
|
|
|
"control": "composite",
|
|
|
|
"items": [
|
2014-12-03 00:20:53 +00:00
|
|
|
{
|
2014-12-03 23:08:41 +00:00
|
|
|
"name": "Width (px)",
|
2014-12-03 23:51:42 +00:00
|
|
|
"control": "textfield"
|
2014-12-03 00:20:53 +00:00
|
|
|
},
|
|
|
|
{
|
2014-12-03 23:08:41 +00:00
|
|
|
"name": "Height (px)",
|
2014-12-03 23:51:42 +00:00
|
|
|
"control": "textfield"
|
2014-12-03 00:20:53 +00:00
|
|
|
}
|
|
|
|
],
|
2014-12-03 23:51:42 +00:00
|
|
|
"pattern": "^(\\d*[1-9]\\d*)?$",
|
2014-12-03 23:08:41 +00:00
|
|
|
"property": "preferredSize",
|
2014-12-03 00:20:53 +00:00
|
|
|
"conversion": "number[]"
|
|
|
|
},
|
|
|
|
{
|
2014-12-03 23:08:41 +00:00
|
|
|
"name": "Layout Grid",
|
|
|
|
"control": "composite",
|
|
|
|
"items": [
|
2014-12-03 00:20:53 +00:00
|
|
|
{
|
2014-12-03 23:08:41 +00:00
|
|
|
"name": "Horizontal grid (px)",
|
2014-12-03 23:51:42 +00:00
|
|
|
"control": "textfield"
|
2014-12-03 00:20:53 +00:00
|
|
|
},
|
|
|
|
{
|
2014-12-03 23:08:41 +00:00
|
|
|
"name": "Vertical grid (px)",
|
2014-12-03 23:51:42 +00:00
|
|
|
"control": "textfield"
|
2014-12-03 00:20:53 +00:00
|
|
|
}
|
|
|
|
],
|
2014-12-03 23:51:42 +00:00
|
|
|
"pattern": "^(\\d*[1-9]\\d*)?$",
|
2014-12-03 23:08:41 +00:00
|
|
|
"property": "layoutGrid",
|
2014-12-03 00:20:53 +00:00
|
|
|
"conversion": "number[]"
|
|
|
|
},
|
|
|
|
{
|
2014-12-03 23:08:41 +00:00
|
|
|
"name": "Default View",
|
|
|
|
"control": "select",
|
|
|
|
"options": [
|
|
|
|
{ "name": "Plot", "value": "plot" },
|
|
|
|
{ "name": "Scrolling", "value": "scrolling" }
|
2014-12-03 00:20:53 +00:00
|
|
|
],
|
|
|
|
"comment": "TODO: Infer values from type",
|
|
|
|
"key": "defaultView"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|