[Fixed Position] Add stroke property

Add stroke property to Fixed Position toolbar for
borders, line color. WTD-881.
This commit is contained in:
Victor Woeltjen
2015-02-23 18:05:37 -08:00
parent 6068f0f9c2
commit 13793e221e
9 changed files with 26 additions and 19 deletions

View File

@ -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 = {

View File

@ -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.