Skip to content

Commit

Permalink
Remove includeMath
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmasson committed Aug 30, 2022
1 parent ef91b10 commit a38f1fc
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 23 deletions.
9 changes: 0 additions & 9 deletions build/mathcell.js
Original file line number Diff line number Diff line change
Expand Up @@ -2829,15 +2829,6 @@ function threejsTemplate( config, lights, texts, points, lines, surfaces ) {
<script>
var config = ${config};
if ( config.includeMath ) {
var script = document.createElement( 'script' );
script.src = 'https://cdn.jsdelivr.net/gh/paulmasson/math/build/math.js';
document.head.append( script ); // more reliable than body
}
var scene = new THREE.Scene();
var renderer = new THREE.WebGLRenderer( { antialias: true } );
Expand Down
2 changes: 0 additions & 2 deletions docs/animations.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,5 @@

<p>Objects and surfaces can be assigned a <code>group</code> name in their <code>options</code> dictionaries for common animation operations.</p>

<p>Higher-level <a href="https://github.com/paulmasson/math" target="_blank">Math</a> can be used by setting <code>includeMath</code> to <code>true</code>. Animate with Bessel functions or Jacobi elliptic functions! See <a href="examples/kepler-orbits.html">Kepler orbits</a> for an example using numerical inversion.</p>

</body>
</html>
4 changes: 1 addition & 3 deletions docs/outputs.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@
<code>equalAspect</code></td><td><code>false</code>
</td></tr><tr><td>
<code>frame</code></td><td><code>true</code>
</td></tr><tr><td>
<code>includeMath</code></td><td><code>false</code>
</td></tr><tr><td>
<code>viewpoint</code></td><td>automatic
</td></tr></table>
Expand All @@ -107,7 +105,7 @@

<p><code>material</code> can take the additional values 'normal' or 'standard'.</p>

<p>See the <a href="animations.html">animations</a> page for those two options and <code>includeMath</code>.</p>
<p>See the <a href="animations.html">animations</a> page for those two options, as well as how to include functions that are not part of standard JavaScript.</p>

<br/><p>A <code>matrix</code> output displays the contents of a two-dimensional array in matrix form. You may need to adjust the width and height of the MathCell to show the entire array properly.</p>

Expand Down
9 changes: 0 additions & 9 deletions src/render/threejs-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,6 @@ function threejsTemplate( config, lights, texts, points, lines, surfaces ) {
<script>
var config = ${config};
if ( config.includeMath ) {
var script = document.createElement( 'script' );
script.src = 'https://cdn.jsdelivr.net/gh/paulmasson/math/build/math.js';
document.head.append( script ); // more reliable than body
}
var scene = new THREE.Scene();
var renderer = new THREE.WebGLRenderer( { antialias: true } );
Expand Down

0 comments on commit a38f1fc

Please sign in to comment.