[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

@@ -1,3 +1,3 @@
<div ng-style="{ background: ngModel.element.fill }"
<div ng-style="{ background: ngModel.fill(), border: '1px ' + ngModel.stroke() + ' solid' }"
style="width: 100%; height: 100%;">
</div>

View File

@@ -1,3 +1,3 @@
<div ng-style="{ 'background-image': 'url(' + ngModel.element.url + ')'}"
<div ng-style="{ 'background-image': 'url(' + ngModel.element.url + ')', border: '1px solid ' + ngModel.stroke() }"
style="width: 100%; height: 100%; background-size: contain; background-repeat: no-repeat; background-position: center;">
</div>
</div>

View File

@@ -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">
</line>
</svg>

Before

Width:  |  Height:  |  Size: 486 B

After

Width:  |  Height:  |  Size: 505 B

View File

@@ -1,4 +1,4 @@
<div ng-style="{ background: ngModel.element.fill }"
<div ng-style="{ background: ngModel.fill(), border: '1px solid ' + ngModel.stroke() }"
style="width: 100%; height: 100%;">
<div style="position: absolute; left: 0px; top: 0px; bottom: 0px; width: 50%; overflow: hidden;">
{{ngModel.name}}

View File

@@ -1,4 +1,4 @@
<div ng-style="{ background: ngModel.element.fill }"
<div ng-style="{ background: ngModel.fill(), border: '1px solid ' + ngModel.stroke() }"
style="width: 100%; height: 100%; overflow: hidden;">
{{ngModel.element.text}}
</div>