Skip to content

Commit

Permalink
Build with protection
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Jun 18, 2024
1 parent ea44f8f commit 439c377
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/jsroot.js
Original file line number Diff line number Diff line change
Expand Up @@ -78969,7 +78969,7 @@ function getCameraPosition(fp) {
dist_xy = Math.sqrt((p.x-p0.x)**2 + (p.y-p0.y)**2),
new_theta = Math.atan2((p.z - p0.z)/dist, dist_xy/dist) / Math.PI * 180,
new_phi = 270 - Math.atan2((p.y - p0.y)/dist_xy, (p.x - p0.x)/dist_xy)/ Math.PI * 180,
pad = fp.getPadPainter().getRootPad(true);
pad = fp.getPadPainter()?.getRootPad(true);

fp.camera_Phi = new_phi >= 360 ? new_phi - 360 : new_phi;
fp.camera_Theta = new_theta;
Expand Down
2 changes: 1 addition & 1 deletion modules/hist/hist3d.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ function getCameraPosition(fp) {
dist_xy = Math.sqrt((p.x-p0.x)**2 + (p.y-p0.y)**2),
new_theta = Math.atan2((p.z - p0.z)/dist, dist_xy/dist) / Math.PI * 180,
new_phi = 270 - Math.atan2((p.y - p0.y)/dist_xy, (p.x - p0.x)/dist_xy)/ Math.PI * 180,
pad = fp.getPadPainter().getRootPad(true);
pad = fp.getPadPainter()?.getRootPad(true);

fp.camera_Phi = new_phi >= 360 ? new_phi - 360 : new_phi;
fp.camera_Theta = new_theta;
Expand Down

0 comments on commit 439c377

Please sign in to comment.