mirror of
https://github.com/nasa/openmct.git
synced 2025-01-31 16:36:13 +00:00
[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:
parent
1e76264d82
commit
cd6c8afddc
@ -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>
|
Loading…
x
Reference in New Issue
Block a user