@@ -10,7 +10,7 @@ define(["jupyter-js-widgets", "underscore", "three"],
10
10
var Detector = require ( "./examples/js/Detector.js" ) ;
11
11
12
12
var RendererView = widgets . DOMWidgetView . extend ( {
13
- render : function ( ) {
13
+ render : function ( ) {
14
14
console . log ( 'created renderer' ) ;
15
15
this . on ( 'displayed' , this . show , this ) ;
16
16
var that = this ;
@@ -32,6 +32,7 @@ define(["jupyter-js-widgets", "underscore", "three"],
32
32
} else {
33
33
this . renderer = new THREE . CanvasRenderer ( ) ;
34
34
}
35
+ this . el . className = "jupyter-widget jupyter-threejs" ;
35
36
this . $el . empty ( ) . append ( this . renderer . domElement ) ;
36
37
var that = this ;
37
38
var view_promises = [ ] ;
@@ -108,7 +109,7 @@ define(["jupyter-js-widgets", "underscore", "three"],
108
109
}
109
110
} ,
110
111
111
- update : function ( ) {
112
+ update : function ( ) {
112
113
var that = this ;
113
114
this . view_promises . then ( function ( ) {
114
115
that . effectrenderer . setSize ( that . model . get ( 'width' ) , that . model . get ( 'height' ) ) ;
@@ -1516,8 +1517,8 @@ define(["jupyter-js-widgets", "underscore", "three"],
1516
1517
_view_name : 'ShaderMaterialView' ,
1517
1518
_model_name : 'ShaderMaterialModel' ,
1518
1519
1519
- fragmentShader : 'void main(){ }' ,
1520
- vertexShader : 'void main(){ }' ,
1520
+ fragmentShader : 'void main() { }' ,
1521
+ vertexShader : 'void main() { }' ,
1521
1522
morphTargets : false ,
1522
1523
lights : false ,
1523
1524
morphNormals : false ,
0 commit comments