mirror of
https://github.com/nasa/openmct.git
synced 2025-01-20 19:49:17 +00:00
cd98fd475d
Begin using proxies for elements in fixed position view, WTD-879.
29 lines
1.2 KiB
HTML
29 lines
1.2 KiB
HTML
<div style="width: 100%; height: 100%; position: absolute; left: 0px; top: 0px;"
|
|
ng-controller="FixedController as controller"
|
|
mct-resize="controller.setBounds(bounds)">
|
|
|
|
<!-- Background grid -->
|
|
<div ng-repeat="cell in controller.getCellStyles()"
|
|
style="position: absolute; border: 1px gray solid; background: black;"
|
|
ng-click="controller.deselect()"
|
|
ng-style="cell">
|
|
</div>
|
|
|
|
<!-- Fixed position elements -->
|
|
<mct-include ng-repeat="element in controller.getDecoratedElements()"
|
|
style="position: absolute;"
|
|
key="element.template"
|
|
ng-style="element.style"
|
|
ng-click="controller.select(element)"
|
|
ng-model="element">
|
|
</mct-include>
|
|
|
|
<!-- Drag handles -->
|
|
<span ng-show="false && domainObject.hasCapability('editor')">
|
|
<span style="position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; cursor: move;"
|
|
mct-drag-down="controller.startDrag(element, [1,1], [0,0])"
|
|
mct-drag="controller.continueDrag(element)"
|
|
mct-drag-up="controller.endDrag()">
|
|
</span>
|
|
</span>
|
|
</div> |