Skip to content

Commit

Permalink
Merge branch 'v1.0.1-rc' into prod
Browse files Browse the repository at this point in the history
  • Loading branch information
tpmccauley committed Jun 15, 2023
2 parents 69ae5b3 + e3b43ab commit 52d3e46
Show file tree
Hide file tree
Showing 35 changed files with 4,953 additions and 1,588 deletions.
71 changes: 45 additions & 26 deletions Default.htm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
<script src="js/lib/BufferGeometryUtils.js"></script>

<script src="js/lib/TrackballControls.js"></script>

<script src="js/lib/OrbitControls.js"></script>

<script src="js/lib/Projector.js"></script>
<script src="js/lib/SVGRenderer.js"></script>

Expand Down Expand Up @@ -77,29 +78,34 @@
<div class="row">
<div class="col-lg-12 bordered black" id="toolbar">
<div class="button-toolbar" role="toolbar">
<div class="btn-group" role="group">

<div class="btn-group" role="group">
<button type="button" class="btn btn-default" data-toggle="modal" data-target="#open-files" title="Open File">
<i class="fa fa-folder-open"></i>
</button>
</div>
<div class="btn-group" role="group">

<div class="btn-group" role="group">
<button type="button" class="btn btn-default" onclick="ispy.reload();" title="Reload page">
<i class="fa fa-redo"></i>
</button>
</div>
<div class="btn-group" role="group">

<div class="btn-group" role="group">
<button type="button" class="btn btn-default disabled" id="prev-event-button" onclick="ispy.prevEvent();" title="Previous Event [Left Arrow]">
<i class="fa fa-step-backward"></i>
</button>
<button type="button" class="btn btn-default disabled" id="next-event-button" onclick="ispy.nextEvent();" title="Next Event [Right Arrow]">
<i class="fa fa-step-forward"></i>
</button>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default" onclick="ispy.resetControls();" title="Return to Start View">

<div class="btn-group" role="group">
<button type="button" class="btn btn-default" onclick="ispy.resetView();" title="Return to Start View">
<i class="fa fa-home"></i>
</button>
</div>

<div class="btn-group" role="group">
<button type="button" class="btn btn-default" onclick="ispy.zoomIn();" title="Zoom In [Shift + Up Arrow]">
<i class="fa fa-search-plus"></i>
Expand All @@ -108,22 +114,31 @@
<i class="fa fa-search-minus"></i>
</button>
</div>

<div class="btn-group" role="group">
<button type="button" id="autorotate" class="btn btn-default" onclick="ispy.autoRotate();" title="Autorotate about Y axis">
<i class="fa fa-undo"></i>
</button>
</div>

<div class="btn-group" role="group">
<button type="button" id="3d" class="btn btn-default active" onclick="ispy.showView('3D');" title="3d view">3D</button>
<button type="button" id="rphi" class="btn btn-default" onclick="ispy.showView('RPhi');" title="rphi view">r&phi;</button>
<button type="button" id="rhoz" class="btn btn-default" onclick="ispy.showView('RhoZ');" title="rhoz view">&rho;z</button>
</div>

<div class="btn-group" role="group">
<button type="button" class="btn btn-default" onclick="ispy.setXY();" title="YX Plane">
<button type="button" id="xy" class="btn btn-default" onclick="ispy.setXY();" title="YX Plane">
<img src="./graphics/yx_small.png" class="img-responsive"/>
</button>
<button type="button" class="btn btn-default" onclick="ispy.setYZ();" title="YZ plane">
<button type="button" id="yz" class="btn btn-default" onclick="ispy.setYZ();" title="YZ plane">
<img src="./graphics/yz_small.png" class="img-responsive"/>
</button>
<button type="button" class="btn btn-default" onclick="ispy.setZX();" title="XZ plane">
<button type="button" id="xz" class="btn btn-default" onclick="ispy.setZX();" title="XZ plane">
<img src="./graphics/xz_small.png" class="img-responsive" title=""/>
</button>
</div>

<div class="btn-group" role="group">
<button type="button" id="perspective" class="btn btn-default active" onclick="ispy.setPerspective();" title="Perspective Projection">
<i class="fa fa-cube"></i>
Expand All @@ -132,13 +147,7 @@
<i class="fa fa-dice-d6"></i>
</button>
</div>
<!--
<div class="btn-group" role="group">
<button type="button" id="3d" class="btn btn-default active" onclick="ispy.showView('3d');" title="3d view">3D</button>
<button type="button" id="rphi" class="btn btn-default" onclick="ispy.showView('rphi');" title="rphi view">r&phi;</button>
<button type="button" id="rhoz" class="btn btn-default" onclick="ispy.showView('rhoz');" title="rhoz view">&rho;z</button>
</div>
-->

<div class="btn-group" role="group">
<button type="button" id="enterFullscreen" class="btn btn-default" onclick="ispy.enterFullscreen();" title="Expand to Fullscreen">
<i class="fa fa-expand"></i>
Expand All @@ -147,32 +156,38 @@
<i class="fa fa-compress"></i>
</button>
</div>
<div class="btn-group" role="group">

<div class="btn-group" role="group">
<button type="button" class="btn btn-default" data-toggle="modal" data-target="#settings" title="Settings">
<i class="fa fa-sliders-h"></i>
</button>
</div>
<div class="btn-group" role="group">

<div class="btn-group" role="group">
<button type="button" class="btn btn-default" data-toggle="modal" data-target="#statistics" onclick="ispy.updateRendererInfo();" title="Stats">
<i class="fa fa-chart-bar"></i>
</button>
</div>
<div class="btn-group" role="group">

<div class="btn-group" role="group">
<button type="button" class="btn btn-default" data-toggle="modal" data-target="#about" title="About">
<i class="fa fa-info"></i>
</button>
</div>
<div class="btn-group" role="group">

<div class="btn-group" role="group">
<button type="button" class="btn btn-default" onclick="ispy.printImage();" title="Print Image to File">
<i class="fa fa-camera"></i>
</button>
</div>
<div class="btn-group" role="group">

<div class="btn-group" role="group">
<button type="button" id="animate" class="btn btn-default" onclick="ispy.toggleAnimation();" title="Start/Stop Animation [Shift + A]">
<i class="fa fa-film"></i>
</button>
</div>
<!--

<!--
<div class="btn-group" role="group">
<button type="button" id="record" class="btn btn-default" onclick="ispy.toggleRecording();" title="Start/Stop Recording">
<i class="fa fa-video-camera"></i>
Expand All @@ -184,16 +199,16 @@
</button>
</div>
-->
<div class="btn-group" role="group">

<div class="btn-group" role="group">
<button type="button" class="btn btn-default" data-toggle="modal" data-target="#export-model" title="Export 3D Model">
<i class="fa fa-upload"></i>
</button>

<button type="button" class="btn btn-default" data-toggle="modal" data-target="#import-model" title="Import 3D Model (obj format)">
<i class="fa fa-download"></i>
</button>
</div>

</div>
</div>
</div>
Expand Down Expand Up @@ -335,6 +350,9 @@ <h4 class="modal-title black">Settings</h4>
<p>
Invert colors: <input id='invert-colors' type='checkbox' onchange='ispy.invertColors();'>
</p>
<p>
Show clipping plane controls: <input id='clipping' type='checkbox'>
</p>
<p>
Hide axes: <input id='show-axes' type='checkbox'>
</p>
Expand Down Expand Up @@ -412,7 +430,8 @@ <h4>iSpy-WebGL <span id="version"></span></h4>
<a href="mailto:[email protected]">Questions/comments/problems</a>
</p>
<p>
<a target="_blank" href="https://github.com/cms-outreach/ispy-webgl/tree/prod#readme">Documentation and FAQ</a>
<a target="_blank" href="https://github.com/cms-outreach/ispy-webgl/tree/master#readme">Documentation and FAQ</a>
</p>
<p>
<a target="_blank" href="https://github.com/cms-outreach/ispy-webgl">Code</a> and
<a target="_blank" href="https://github.com/cms-outreach/ispy-webgl/issues">Issues</a>
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License

Copyright © 2014-2022 iSpy WebGL authors.
Copyright © 2014-2023 iSpy WebGL authors.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
36 changes: 36 additions & 0 deletions css/ispy.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,18 @@ canvas.hover {
}

#treegui {
position: absolute;
top: 0;
right: 0;
z-index: 1002;
padding-top: 0px;
padding-right: 0px;
display: block;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
font-size: 14px;
}

#rphigui {
position: absolute;
top:0;
right:0;
Expand All @@ -108,6 +120,30 @@ canvas.hover {
font-size: 14px;
}

#rhozgui {
position: absolute;
top:0;
right:0;
z-index: 1002;
padding-top: 0px;
padding-right: 0px;
display: block;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
font-size: 14px;
}

#clipgui {
position: absolute;
top:0;
left:65%;
z-index: 1002;
padding-top: 0px;
padding-right: 0px;
display: block;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
font-size: 14px;
}

#toolbar {
float: left;
}
Expand Down
Binary file modified geometry/gltf/CSC3D_V1.glb
Binary file not shown.
Binary file modified geometry/gltf/DTs3D_V1.glb
Binary file not shown.
Binary file modified geometry/gltf/EcalBarrel3D_V2.glb
Binary file not shown.
Binary file modified geometry/gltf/EcalEndcapMinus3D_V1.glb
Binary file not shown.
Binary file modified geometry/gltf/EcalEndcapPlus3D_V1.glb
Binary file not shown.
Binary file modified geometry/gltf/HcalBarrel3D_V1.glb
Binary file not shown.
Binary file modified geometry/gltf/HcalEndcapMinus3D_V1.glb
Binary file not shown.
Binary file modified geometry/gltf/HcalEndcapPlus3D_V1.glb
Binary file not shown.
Binary file modified geometry/gltf/HcalForwardMinus3D_V1.glb
Binary file not shown.
Binary file modified geometry/gltf/HcalForwardPlus3D_V1.glb
Binary file not shown.
Binary file modified geometry/gltf/HcalOuter3D_V1.glb
Binary file not shown.
Binary file modified geometry/gltf/RPCBarrel3D_V1.glb
Binary file not shown.
Binary file modified geometry/gltf/RPCMinusEndcap3D_V1.glb
Binary file not shown.
Binary file modified geometry/gltf/RPCPlusEndcap3D_V1.glb
Binary file not shown.
Binary file added geometry/gltf/RPhi.glb
Binary file not shown.
Binary file added geometry/gltf/RPhi_V2.glb
Binary file not shown.
Binary file added geometry/gltf/RhoZ.glb
Binary file not shown.
Binary file added geometry/gltf/RhoZ_V2.glb
Binary file not shown.
Loading

0 comments on commit 52d3e46

Please sign in to comment.