Skip to content

Commit 2d40536

Browse files
committed
Remove debug logging, add comment for future work.
1 parent ac9c41f commit 2d40536

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,7 @@
339339
<rect id="outsideRect" x="0" y="0" fill="white" stroke="black" stroke-width="0.01em" />
340340
<rect id="insideRect" fill="white" stroke="black" stroke-width="0.01em" />
341341
<a href="#topStartingDiagonalTable">
342-
<g id="topStartingDiagonalLineGroup" stroke="var(--l1-color)" fill="var(--l1-color)" stroke-width="0.018em"
343-
cursor="pointer">
342+
<g id="topStartingDiagonalLineGroup" stroke="var(--l1-color)" fill="var(--l1-color)" stroke-width="0.018em">
344343
<path id="topStartingDiagonalLine" />
345344
<use xlink:href="#topStartingDiagonalLine" stroke="transparent" fill="transparent" stroke-width="0.13em" />
346345
<text style="font-size: 0.1875rem; dominant-baseline: central" dx="-0.05em" dy="-0.05em">

main.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ function createTableGraphic(surfacePlate) {
192192
document.getElementById('horizontalCenterLine').setAttribute("d", `M ${surfacePlatePercentWidth - xInset} ${surfacePlatePercentHeight / 2} L ${xInset} ${surfacePlatePercentHeight / 2}`)
193193
document.getElementById('verticalCenterLine').setAttribute("d", `M ${surfacePlatePercentWidth / 2} ${yInset} L ${surfacePlatePercentWidth / 2} ${surfacePlatePercentHeight - yInset}`)
194194

195-
// Make the table lines clickable.
195+
// TODO: Later we will probably wire this up to open the tab corresponding to the clicked on line.
196196
document.getElementById('topStartingDiagonalLineGroup').addEventListener('click', event => {
197197
const selectedLine = (() => {
198198
switch (event.originalTarget.tagName) {
@@ -1108,15 +1108,12 @@ function getNonColorBuffers(gl, moodyReport, zMultiplier) {
11081108
}
11091109

11101110
function getColorBuffer(gl, moodyReport, triangleVertices, tableThicknessVertices) {
1111-
console.log(tableThicknessVertices)
1112-
11131111
const triangleZValues = triangleVertices.filter((v, i) => (i + 1) % 3 == 0)
11141112
const minZ = Math.min(...triangleZValues)
11151113
const maxZ = Math.max(...triangleZValues)
11161114
// In case all values are the same minZ = maxZ (i.e. it is a totally flat plate with zero deviation) so we must avoid division by zero - just set all values to 0.0.
11171115
const normalizedTriangleZValues = minZ === maxZ ? triangleZValues.map(() => 0.0) : triangleZValues.map(value => (value - minZ) / (maxZ - minZ))
11181116
const colorMappedZValues = normalizedTriangleZValues.map(value => interpolate(turboColormapData, value))
1119-
console.log(colorMappedZValues)
11201117
const colors = new Array(moodyReport.topStartingDiagonalTable.numStations).fill([0.9568627450980393, 0.2627450980392157, 0.21176470588235294, 1.0]).flat(1)
11211118
.concat(new Array(moodyReport.bottomStartingDiagonalTable.numStations).fill([1.0, 0.9254901960784314, 0.2313725490196078, 1.0]).flat(1))
11221119
.concat(new Array(moodyReport.northPerimeterTable.numStations).fill([0.2980392156862745, 0.6862745098039216, 0.3137254901960784, 1.0]).flat(1))

0 commit comments

Comments
 (0)