Skip to content

Commit

Permalink
Merge pull request #69 from uhmlavalab/master
Browse files Browse the repository at this point in the history
Pull request for update on the default node fill color .
  • Loading branch information
daldoyle authored Nov 9, 2018
2 parents 6f64f97 + d48cf1e commit d2fafd3
Show file tree
Hide file tree
Showing 66 changed files with 27 additions and 10 deletions.
Empty file modified src/CustomHover.js
100644 → 100755
Empty file.
6 changes: 4 additions & 2 deletions src/atlas3.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,8 @@ export class Atlas3 extends MetricsPanelCtrl {
min: ctrl.panel.min[j],
lineWidth: ctrl.panel.size[j],
twin_tubes: ctrl.panel.twin_tubes,
mapSource: ctrl.panel.mapSrc[j]
mapSource: ctrl.panel.mapSrc[j],
endpointColor : ctrl.panel.nodeFillColor
});
if(ctrl.panel.mapSrc[j] === null || ctrl.panel.mapSrc[j] === undefined || ctrl.panel.mapSrc[j] === "") {
ctrl.layer_ids.push('');
Expand Down Expand Up @@ -658,7 +659,8 @@ export class Atlas3 extends MetricsPanelCtrl {
min: ctrl.panel.min[i],
twin_tubes: ctrl.panel.twin_tubes,
lineWidth: ctrl.panel.size[i],
mapSource: ctrl.panel.mapSrc[i]
mapSource: ctrl.panel.mapSrc[i],
endpointColor : ctrl.panel.nodeFillColor,
});
ctrl.layer_ids.push(networkLayer.layerId());
ctrl.panel.layers.push(networkLayer);
Expand Down
Empty file modified src/css/JsonEditor.css
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions src/css/Legend.css
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,12 @@ limitations under the License.

.atlas-legend.atlas-info-div.horizontal .numbers .scale-num.zero {
text-align: left;
color: snow;
}

.atlas-legend.atlas-info-div.horizontal .numbers .scale-num.hundred {
text-align: right;
color: snow;
}

/* infodiv style */
Expand Down
Empty file modified src/css/MiniMap.css
100644 → 100755
Empty file.
Empty file modified src/css/NetworkLayer.css
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion src/css/TrafficLayer.css
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ limitations under the License.

.popHighlight{
stroke-width: 2px;
stroke: #ddd;
stroke: black;
}

.popHighlight:hover{
Expand Down
Empty file modified src/images/Colors-demo.gif
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/atlas_logo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/atlas_logo_60o.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/colors-1.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/colors-2.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/colors-3-1.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/colors-3-2.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/custom-hover-box-2.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/custom-node-box.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/example.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/invert-legend.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/invert-scheme.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/json-editor.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/layer-options-1.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/layer-options-2.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/line-color.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/logical-map.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/map-options-logical.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/map-options.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/network-map.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/networkmap-main-1.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/node-color.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/opacity-1.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/opacity-2.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/opacity-colors.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/images/opacity-scheme.png
100644 → 100755
Empty file modified src/images/threshold-1.png
100644 → 100755
Empty file modified src/images/threshold-2.png
100644 → 100755
Empty file modified src/images/threshold-scheme.png
100644 → 100755
Empty file modified src/images/tooltip-options-1.png
100644 → 100755
Empty file modified src/images/tsds-query.png
100644 → 100755
Empty file modified src/images/twin-tubes.png
100644 → 100755
Empty file modified src/js/index/DataSource.js
100644 → 100755
Empty file.
Empty file modified src/js/index/LeafletMap.js
100644 → 100755
Empty file.
Empty file modified src/js/index/Legend.js
100644 → 100755
Empty file.
Empty file modified src/js/map/BaseLayer.js
100644 → 100755
Empty file.
Empty file modified src/js/map/BaseMap.js
100644 → 100755
Empty file.
Empty file modified src/js/map/LeafletMap.js
100644 → 100755
Empty file.
Empty file modified src/js/map/NetworkLayer.js
100644 → 100755
Empty file.
7 changes: 4 additions & 3 deletions src/js/map/SingleTubeLayer.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,10 @@ var SingleTubeLayer = function(params){

//--- UPDATE -- Update any existing endpoints
endpoints.select('.popHighlight')
.style("fill", function(d){
return d.endpointColor = undefined ? layer.endpointColor() : d.endpointColor;
})
//.style("fill", function(d){
// return d.endpointColor = undefined ? layer.endpointColor() : d.endpointColor;
//})
.style('fill',layer.endpointColor()||d.endpointColor)
.attr("fill-opacity", function(d){
return d.endpointOpacity = undefined ? layer.endpointOpacity() : d.endpointOpacity;
});
Expand Down
Empty file modified src/js/map/TrafficLayer.js
100644 → 100755
Empty file.
7 changes: 4 additions & 3 deletions src/js/map/TwinTubeLayer.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -679,9 +679,10 @@ var TwinTubeLayer = function(params){

//--- UPDATE -- Update any existing endpoints
endpoints.select('.popHighlight')
.style("fill", function(d){
return d.endpointColor = undefined ? layer.endpointColor() : d.endpointColor;
})
//.style("fill", function(d){
// return d.endpointColor = undefined ? layer.endpointColor() : d.endpointColor;
// })
.style('fill',layer.endpointColor()||d.endpointColor)
.attr("fill-opacity", function(d){
return d.endpointOpacity = undefined ? layer.endpointOpacity() : d.endpointOpacity;
});
Expand Down
Empty file modified src/js/util/DataSource.js
100644 → 100755
Empty file.
Empty file modified src/js/util/DataSourceFormatter.js
100644 → 100755
Empty file.
Empty file modified src/js/util/Enums.js
100644 → 100755
Empty file.
Empty file modified src/js/util/Functions.js
100644 → 100755
Empty file.
Empty file modified src/js/util/Geometry.js
100644 → 100755
Empty file.
Empty file modified src/js/util/Interval.js
100644 → 100755
Empty file.
Empty file modified src/js/util/Topology.js
100644 → 100755
Empty file.
Empty file modified src/js/util/UrlFormatter.js
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion src/js/widget/InfoDiv.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ var InfoDiv = function(params){
case 'bl':
_infoDiv.style('position', 'relative')
.style('bottom', '0px')
.style('left', '0px');
.style('left', '20px');
break;
case 'tr':
_infoDiv.style('position', 'relative')
Expand Down
Empty file modified src/js/widget/Legend.js
100644 → 100755
Empty file.
Empty file modified src/module.js
100644 → 100755
Empty file.
6 changes: 6 additions & 0 deletions src/partials/display_editor.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ <h5 class="section-heading">Colors</h5>
</div>

</div>
<div class="gf-form">
<label class="gf-form-label width-9">Default Node color</label>
<span class="gf-form-label">
<spectrum-picker ng-model="ctrl.panel.nodeFillColor" ng-change="ctrl.render()" ></spectrum-picker>
</span>
</div>

</div>

Expand Down
Empty file modified src/partials/editor.html
100644 → 100755
Empty file.
Empty file modified src/partials/json_editor.html
100644 → 100755
Empty file.
Empty file modified src/partials/module.html
100644 → 100755
Empty file.
Empty file modified src/plugin.json
100644 → 100755
Empty file.
5 changes: 5 additions & 0 deletions src/scale.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import _ from "lodash";
import * as d3 from 'd3';

let colorSchemes = [
{name: 'OrBu', value: 'interpolateOrBu', invert: 'dark'},
{name: 'RdYlGn', value: 'interpolateRdYlGn', invert: 'always'},
{name: 'Blues', value: 'interpolateBlues', invert: 'dark'},
{name: 'Greens', value: 'interpolateGreens', invert: 'dark'},
Expand Down Expand Up @@ -133,6 +134,10 @@ export class Scale {
var b=0;

switch(color) {
case 'interpolateOrBu':
this.calculate(251,174,96,-3,0,3);
break;

case 'interpolateRdYlGn':
this.calculate(255,g,b,-3,5,0);
break;
Expand Down

0 comments on commit d2fafd3

Please sign in to comment.