Skip to content

Commit

Permalink
Merge pull request #715 from hainm/set-color
Browse files Browse the repository at this point in the history
ColorMakerRegistry -> ColormakerRegistry
  • Loading branch information
hainm authored Oct 27, 2017
2 parents f2ead08 + 6b60e51 commit 1c63952
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion js/src/widget_ngl.js
Original file line number Diff line number Diff line change
Expand Up @@ -607,8 +607,9 @@ var NGLView = widgets.DOMWidgetView.extend({
},

setColorByResidue: function(colors, component_index, repr_index){
console.log('NGL.ColormakerRegistry', NGL.ColormakerRegistry);
var repr = this.stage.compList[component_index].reprList[repr_index];
var schemeId = NGL.ColorMakerRegistry.addScheme(function(params){
var schemeId = NGL.ColormakerRegistry.addScheme(function(params){
this.atomColor = function(atom){
var color = colors[atom.residueIndex];
return color
Expand Down
4 changes: 3 additions & 1 deletion nglview/static/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nglview/static/index.js.map

Large diffs are not rendered by default.

0 comments on commit 1c63952

Please sign in to comment.