Skip to content

Commit

Permalink
for beltrame#16 added layers and binding but it is not connected to t…
Browse files Browse the repository at this point in the history
…he brain browser yet
  • Loading branch information
cesine committed Oct 19, 2014
1 parent 48a4119 commit 929a96c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
10 changes: 10 additions & 0 deletions client/js/controllers/MainCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ angular.module('app')
["subject12", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]
];

$scope.layers = [{
label: "layer1",
visibility: 50
}, {
label: "layer2",
visibility: 20
}, {
label: "layer3",
visibility: 0
}];

$scope.useLogScaleForBubbleSize = false;
$scope.toogleButtonScale = function() {
Expand Down
9 changes: 8 additions & 1 deletion client/partials/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<li ng-repeat="dataTransformOrPipeline in dataTransformOrPipelines" class="breadcrumb" ng-class="{active: dataTransformOrPipeline == $parent.dataTransformOrPipeline}">
<a ng-click="selectBenchmark(dataTransformOrPipeline)">{{ dataTransformOrPipeline.name }}</a>
</li>

<li class="breadcrumb">
<table class="matrix">
<tbody>
Expand All @@ -17,6 +17,13 @@
</table>

</li>
<li class="breadcrumb">
<ul class="unstyled">
<li ng-repeat="layer in layers">
<input type="range" ng-model="layer.visibility" max="100" min="0"/> {{layer.label}}
</li>
</ul>
</li>
</ul>
</div>
<div class="col-sm-8" ng-include="partialUrl + '/dataTransformOrPipeline-view.html'" ng-controller="BenchmarkViewCtrl">
Expand Down

0 comments on commit 929a96c

Please sign in to comment.