[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:
@@ -18,9 +18,24 @@
|
|||||||
ng-class="{ test: controller.selected(element) }"
|
ng-class="{ test: controller.selected(element) }"
|
||||||
ng-style="element.style"
|
ng-style="element.style"
|
||||||
ng-click="controller.select(element)"
|
ng-click="controller.select(element)"
|
||||||
ng-model="element"
|
ng-model="element">
|
||||||
mct-drag-down="controller.startDrag(element); controller.select(element)"
|
|
||||||
mct-drag="controller.continueDrag(delta)"
|
|
||||||
mct-drag-up="controller.endDrag()">
|
|
||||||
</mct-include>
|
</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>
|
</div>
|
||||||
Reference in New Issue
Block a user