[Fixed Position] Add selection/handle markup

Add initial markup for selection highlight, drag handles to
allow position/resize of elements in Fixed Position view,
WTD-882.
This commit is contained in:
Victor Woeltjen 2015-02-24 10:06:34 -08:00
parent 1e76264d82
commit cd6c8afddc

View File

@ -18,9 +18,24 @@
ng-class="{ test: controller.selected(element) }"
ng-style="element.style"
ng-click="controller.select(element)"
ng-model="element"
mct-drag-down="controller.startDrag(element); controller.select(element)"
mct-drag="controller.continueDrag(delta)"
mct-drag-up="controller.endDrag()">
ng-model="element">
</mct-include>
<!-- Selection highlight, handles -->
<span ng-if="controller.selected()">
<div class="test"
mct-drag-down="controller.startDrag(controller.selected())"
mct-drag="controller.continueDrag(delta)"
mct-drag-up="controller.endDrag()"
ng-style="controller.selected().style">
</div>
<div ng-repeat="handle in controller.handles()"
ng-style="handle.style"
mct-drag-down="handle.startDrag()"
mct-drag="handle.continueDrag(delta)"
mct-drag-up="handle.endDrag()">
O
</div>
</span>
</div>