diff --git a/platform/features/layout/bundle.json b/platform/features/layout/bundle.json index 3c86ca8421..a85ce3d980 100644 --- a/platform/features/layout/bundle.json +++ b/platform/features/layout/bundle.json @@ -29,7 +29,6 @@ "glyph": "+", "control": "menu-button", "text": "Add", - "inclusive": true, "options": [ { "name": "Box", @@ -61,7 +60,6 @@ "method": "order", "glyph": "o", "control": "menu-button", - "inclusive": true, "options": [ { "name": "Move to Top", @@ -88,8 +86,12 @@ { "property": "fill", "glyph": "X", - "control": "color", - "inclusive": true + "control": "color" + }, + { + "property": "stroke", + "glyph": "-", + "control": "color" } ] }, diff --git a/platform/features/layout/res/templates/elements/box.html b/platform/features/layout/res/templates/elements/box.html index 58ecf860d7..3ca8eef7da 100644 --- a/platform/features/layout/res/templates/elements/box.html +++ b/platform/features/layout/res/templates/elements/box.html @@ -1,3 +1,3 @@ -
\ No newline at end of file diff --git a/platform/features/layout/res/templates/elements/image.html b/platform/features/layout/res/templates/elements/image.html index 041147df27..6115b8f4cd 100644 --- a/platform/features/layout/res/templates/elements/image.html +++ b/platform/features/layout/res/templates/elements/image.html @@ -1,3 +1,3 @@ -
-
\ No newline at end of file + diff --git a/platform/features/layout/res/templates/elements/line.html b/platform/features/layout/res/templates/elements/line.html index 524cd451ca..11408bbe9b 100644 --- a/platform/features/layout/res/templates/elements/line.html +++ b/platform/features/layout/res/templates/elements/line.html @@ -4,7 +4,7 @@ ng-attr-y1="{{parameters.gridSize[1] * ngModel.y1() + 1}}" ng-attr-x2="{{parameters.gridSize[0] * ngModel.x2() + 1}}" ng-attr-y2="{{parameters.gridSize[1] * ngModel.y2() + 1}}" - stroke="lightgray" + ng-attr-stroke="{{ngModel.stroke()}}" stroke-width="2"> \ No newline at end of file diff --git a/platform/features/layout/res/templates/elements/telemetry.html b/platform/features/layout/res/templates/elements/telemetry.html index f5b51a0311..051c33e159 100644 --- a/platform/features/layout/res/templates/elements/telemetry.html +++ b/platform/features/layout/res/templates/elements/telemetry.html @@ -1,4 +1,4 @@ -
{{ngModel.name}} diff --git a/platform/features/layout/res/templates/elements/text.html b/platform/features/layout/res/templates/elements/text.html index 2b52f04598..043df913cf 100644 --- a/platform/features/layout/res/templates/elements/text.html +++ b/platform/features/layout/res/templates/elements/text.html @@ -1,4 +1,4 @@ -
{{ngModel.element.text}}
\ No newline at end of file diff --git a/platform/features/layout/src/FixedController.js b/platform/features/layout/src/FixedController.js index 442f966033..dc298a1d89 100644 --- a/platform/features/layout/src/FixedController.js +++ b/platform/features/layout/src/FixedController.js @@ -193,6 +193,7 @@ define( x: Math.floor(position.x / gridSize[0]), y: Math.floor(position.y / gridSize[1]), id: id, + stroke: "transparent", width: DEFAULT_DIMENSIONS[0], height: DEFAULT_DIMENSIONS[1] }); diff --git a/platform/features/layout/src/elements/ElementFactory.js b/platform/features/layout/src/elements/ElementFactory.js index 4ad229e30a..e61b0136d5 100644 --- a/platform/features/layout/src/elements/ElementFactory.js +++ b/platform/features/layout/src/elements/ElementFactory.js @@ -6,20 +6,24 @@ define( "use strict"; var INITIAL_STATES = { - "fixed.image": {}, + "fixed.image": { + stroke: "transparent" + }, "fixed.box": { - fill: "#888", - border: "transparent" + fill: "#717171", + border: "transparent", + stroke: "transparent" }, "fixed.line": { x: 5, y: 9, x2: 6, - y2: 6 + y2: 6, + stroke: "#717171" }, "fixed.text": { fill: "transparent", - border: "transparent" + stroke: "transparent" } }, DIALOGS = { diff --git a/platform/features/layout/src/elements/ElementProxy.js b/platform/features/layout/src/elements/ElementProxy.js index 438725f384..7d5fa3540b 100644 --- a/platform/features/layout/src/elements/ElementProxy.js +++ b/platform/features/layout/src/elements/ElementProxy.js @@ -49,11 +49,11 @@ define( */ y: new AccessorMutator(element, 'y'), /** - * Get and/or set the z index of this element. - * @param {number} [z] the new z index (if setting) - * @returns {number} the z index + * Get and/or set the stroke color of this element. + * @param {string} [stroke] the new stroke color (if setting) + * @returns {string} the stroke color */ - z: new AccessorMutator(element, 'z'), + stroke: new AccessorMutator(element, 'stroke'), /** * Get and/or set the width of this element. * Units are in fixed position grid space.