[Fixed Position] Initial template

Add initial template, declaration for fixed position view,
WTD-615.
This commit is contained in:
Victor Woeltjen 2015-01-14 17:48:57 -08:00
parent 731c2b6c21
commit 7f21cc044d
2 changed files with 34 additions and 0 deletions

View File

@ -10,6 +10,14 @@
"type": "layout",
"templateUrl": "templates/layout.html",
"uses": [ "composition" ]
},
{
"key": "fixed",
"name": "Fixed Position",
"glyph": "3",
"type": "telemetry.panel",
"templateUrl": "templates/fixed.html",
"uses": [ "composition" ]
}
],
"representations": [

View File

@ -0,0 +1,26 @@
<div style="width: 100%; height: 100%;"
ng-controller="FixedController as controller">
<div ng-repeat="childObject in composition"
ng-style="controller.getStyle(childObject.getId())">
<div>
<mct-representation key="'frame'"
mct-object="childObject">
</mct-representation>
</div>
<!-- Drag handles -->
<span ng-show="domainObject.hasCapability('editor')">
<span style="position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; cursor: move;"
mct-drag-down="controller.startDrag(childObject.getId(), [1,1], [0,0])"
mct-drag="controller.continueDrag(delta)"
mct-drag-up="controller.endDrag()">
</span>
</span>
</div>
</div>