Skip to content

Commit 8a3396d

Browse files
committed
Increase 3D tooltip delta to 1e-4 of complete scene
1 parent d740f13 commit 8a3396d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

scripts/JSRoot3DPainter.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,6 @@
344344

345345
var newtop = new THREE.Object3D();
346346

347-
newtop.rotation.x = this.toplevel.rotation.x;
348-
newtop.rotation.y = this.toplevel.rotation.y;
349-
350347
this.scene.remove(this.toplevel);
351348

352349
this.scene.add(newtop);
@@ -365,8 +362,6 @@
365362
//scene.fog = new THREE.Fog(0xffffff, 500, 3000);
366363

367364
this.toplevel = new THREE.Object3D();
368-
//this.toplevel.rotation.x = 30 * Math.PI / 180;
369-
//this.toplevel.rotation.y = 30 * Math.PI / 180;
370365
this.scene.add(this.toplevel);
371366
this.scene_width = size.width;
372367
this.scene_height = size.height
@@ -418,7 +413,7 @@
418413
}
419414

420415
if (tip !== null) {
421-
var delta = 1e-5*painter.size3d;
416+
var delta = 1e-4*painter.size3d;
422417
if ((tip.x1 > tip.x2) || (tip.y1 > tip.y2) || (tip.z1 > tip.z2)) console.warn('check 3D hints coordinates');
423418
tip.x1 -= delta; tip.x2 += delta;
424419
tip.y1 -= delta; tip.y2 += delta;

0 commit comments

Comments
 (0)