Skip to content

Commit

Permalink
fix annotations example bug (#4151)
Browse files Browse the repository at this point in the history
  • Loading branch information
y-71 authored Mar 3, 2023
1 parent 390c1cd commit 6030865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/modelviewer.dev/examples/annotations/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ <h4><span class="font-medium">Show Dimensions. </span></h4>

// update svg
function drawLine(svgLine, dotHotspot1, dotHotspot2, dimensionHotspot) {
if (dotHotspot1 && dotHotspot1) {
if (dotHotspot1 && dotHotspot2) {
svgLine.setAttribute('x1', dotHotspot1.canvasPosition.x);
svgLine.setAttribute('y1', dotHotspot1.canvasPosition.y);
svgLine.setAttribute('x2', dotHotspot2.canvasPosition.x);
Expand Down

0 comments on commit 6030865

Please sign in to comment.