Browse Source

rename gotchas to tips

Gregg Tavares 6 years ago
parent
commit
97220a1668

+ 6 - 6
threejs/lessons/threejs-gotchas.md → threejs/lessons/threejs-tips.md

@@ -1,4 +1,4 @@
-Title: Three.js Gotchas
+Title: Three.js Tips
 Description: Small issues that might trip you up using three.js
 
 This article is a collection of small issues you might run into
@@ -47,7 +47,7 @@ const saveBlob = (function() {
 Here's the example from [the article on responsiveness](threejs-responsive.html)
 with the code above added and some CSS to place the button
 
-{{{example url="../threejs-gotchas-screenshot-bad.html"}}}
+{{{example url="../threejs-tips-screenshot-bad.html"}}}
 
 When I tried it I got this screenshot
 
@@ -118,7 +118,7 @@ elem.addEventListener('click', () => {
 
 And now it should work.
 
-{{{example url="../threejs-gotchas-screenshot-good.html" }}}
+{{{example url="../threejs-tips-screenshot-good.html" }}}
 
 For a different solution see the next item.
 
@@ -145,7 +145,7 @@ const canvas = document.querySelector('#c');
 +renderer.autoClearColor = false;
 ```
 
-{{{example url="../threejs-gotchas-preservedrawingbuffer.html" }}}
+{{{example url="../threejs-tips-preservedrawingbuffer.html" }}}
 
 Note that if you were serious about making a drawing program this would not be a
 solution as the browser will still clear the canvas anytime we change its
@@ -232,7 +232,7 @@ Notice you can't get the first canvas to accept keyboard input.
 The second canvas you can but it gets highlighted. The 3rd
 canvas has both solutions applied.
 
-{{{example url="../threejs-gotchas-tabindex.html"}}}
+{{{example url="../threejs-tips-tabindex.html"}}}
 
 ---
 
@@ -333,4 +333,4 @@ body {
 note that `pointer-events: none` makes the canvas invisible to the mouse
 and touch events so you can select the text beneath.
 
-{{{example url="../threejs-gotchas-transparent-canvas.html" }}}
+{{{example url="../threejs-tips-transparent-canvas.html" }}}

+ 4 - 7
threejs/lessons/toc.html

@@ -39,6 +39,10 @@
     <li><a href="/threejs/lessons/threejs-rendering-on-demand.html">Rendering On Demand</a></li>
     <li><a href="/threejs/lessons/threejs-debugging-javascript.html">Debugging JavaScript</a></li>
     <li><a href="/threejs/lessons/threejs-debugging-glsl.html">Debugging GLSL</a></li>
+    <li><a href="/threejs/lessons/threejs-tips.html#screenshot">Taking a screenshot</a></li>
+    <li><a href="/threejs/lessons/threejs-tips.html#preservedrawingbuffer">Prevent the Canvas Being Cleared</a></li>
+    <li><a href="/threejs/lessons/threejs-tips.html#tabindex">Get Keyboard Input From a Canvas</a></li>
+    <li><a href="/threejs/lessons/threejs-tips.html#transparent-canvas">Make the Canvas Transparent</a></li>
   </ul>
   <li>Fundamentals</li>
   <ul>
@@ -54,13 +58,6 @@
     <li><a href="/threejs/lessons/threejs-custom-geometry.html">Custom Geometry</a></li>
     <li><a href="/threejs/lessons/threejs-custom-buffergeometry.html">Custom BufferGeometry</a></li>
   </ul>
-  <li>Gotchas</li>
-  <ul>
-    <li><a href="/threejs/lessons/threejs-gotchas.html#screenshot">Taking a screenshot</a></li>
-    <li><a href="/threejs/lessons/threejs-gotchas.html#preservedrawingbuffer">Prevent the Canvas Being Cleared</a></li>
-    <li><a href="/threejs/lessons/threejs-gotchas.html#tabindex">Get Keyboard Input From a Canvas</a></li>
-    <li><a href="/threejs/lessons/threejs-gotchas.html#transparent-canvas">Make the Canvas Transparent</a></li>
-  </ul>
   <li>Reference</li>
   <ul>
     <li><a href="/threejs/lessons/threejs-material-table.html">Material Table</a></li>

+ 0 - 0
threejs/threejs-gotchas-preservedrawingbuffer.html → threejs/threejs-tips-preservedrawingbuffer.html


+ 0 - 0
threejs/threejs-gotchas-screenshot-bad.html → threejs/threejs-tips-screenshot-bad.html


+ 0 - 0
threejs/threejs-gotchas-screenshot-good.html → threejs/threejs-tips-screenshot-good.html


+ 0 - 0
threejs/threejs-gotchas-tabindex.html → threejs/threejs-tips-tabindex.html


+ 0 - 0
threejs/threejs-gotchas-transparent-canvas.html → threejs/threejs-tips-transparent-canvas.html