Skip to content

Commit

Permalink
latest docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhard-42 committed Jul 5, 2023
1 parent 10834f1 commit 0aa97da
Show file tree
Hide file tree
Showing 12 changed files with 103 additions and 85 deletions.
2 changes: 1 addition & 1 deletion docs/Camera.html
Original file line number Diff line number Diff line change
Expand Up @@ -2247,7 +2247,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Camera.ht
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Tue Jul 04 2023 20:23:50 GMT+0200 (Mitteleuropäische Sommerzeit)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Wed Jul 05 2023 22:19:26 GMT+0200 (Mitteleuropäische Sommerzeit)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/Controls.html
Original file line number Diff line number Diff line change
Expand Up @@ -3338,7 +3338,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Camera.ht
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Tue Jul 04 2023 20:23:50 GMT+0200 (Mitteleuropäische Sommerzeit)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Wed Jul 05 2023 22:19:26 GMT+0200 (Mitteleuropäische Sommerzeit)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/Display.html
Original file line number Diff line number Diff line change
Expand Up @@ -8303,7 +8303,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Camera.ht
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Tue Jul 04 2023 20:23:50 GMT+0200 (Mitteleuropäische Sommerzeit)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Wed Jul 05 2023 22:19:26 GMT+0200 (Mitteleuropäische Sommerzeit)
</footer>

<script> prettyPrint(); </script>
Expand Down
140 changes: 70 additions & 70 deletions docs/Viewer.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/camera.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Camera.ht
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Tue Jul 04 2023 20:23:50 GMT+0200 (Mitteleuropäische Sommerzeit)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Wed Jul 05 2023 22:19:26 GMT+0200 (Mitteleuropäische Sommerzeit)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/controls.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Camera.ht
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Tue Jul 04 2023 20:23:50 GMT+0200 (Mitteleuropäische Sommerzeit)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Wed Jul 05 2023 22:19:26 GMT+0200 (Mitteleuropäische Sommerzeit)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/display.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -1473,7 +1473,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Camera.ht
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Tue Jul 04 2023 20:23:50 GMT+0200 (Mitteleuropäische Sommerzeit)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Wed Jul 05 2023 22:19:26 GMT+0200 (Mitteleuropäische Sommerzeit)
</footer>

<script> prettyPrint(); </script>
Expand Down
15 changes: 12 additions & 3 deletions docs/dist/three-cad-viewer.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -58727,7 +58727,7 @@ class Camera {
}
}

const version="1.8.4";
const version="1.8.5";

class Viewer {
/**
Expand Down Expand Up @@ -59501,8 +59501,8 @@ class Viewer {

const theme =
this.theme === "dark" ||
(this.theme === "browser" &&
window.matchMedia("(prefers-color-scheme: dark)").matches)
(this.theme === "browser" &&
window.matchMedia("(prefers-color-scheme: dark)").matches)
? "dark"
: "light";

Expand Down Expand Up @@ -59618,6 +59618,7 @@ class Viewer {
* @param {boolean} [notify=true] - whether to send notification or not.
*/
presetCamera = (dir, zoom = null, notify = true) => {
this.camera.target = new Vector3(...this.bbox.center());
this.camera.presetCamera(dir, zoom, notify);
this.controls.setTarget(this.camera.target);
this.update(true, notify);
Expand Down Expand Up @@ -60726,6 +60727,14 @@ class Viewer {
// update the this
this.update(true);
}

vector3(x = 0, y = 0, z = 0) {
return new Vector3(x, y, z);
}

quaternion(x = 0, y = 0, z = 0, w = 1) {
return new Quaternion(x, y, z, w);
}
}

export { Display, Timer, Viewer };
2 changes: 1 addition & 1 deletion docs/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -3751,7 +3751,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Camera.ht
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Tue Jul 04 2023 20:23:50 GMT+0200 (Mitteleuropäische Sommerzeit)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Wed Jul 05 2023 22:19:26 GMT+0200 (Mitteleuropäische Sommerzeit)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Camera.ht
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Tue Jul 04 2023 20:23:50 GMT+0200 (Mitteleuropäische Sommerzeit)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Wed Jul 05 2023 22:19:26 GMT+0200 (Mitteleuropäische Sommerzeit)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/types.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Camera.ht
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Tue Jul 04 2023 20:23:50 GMT+0200 (Mitteleuropäische Sommerzeit)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Wed Jul 05 2023 22:19:26 GMT+0200 (Mitteleuropäische Sommerzeit)
</footer>

<script> prettyPrint(); </script>
Expand Down
15 changes: 12 additions & 3 deletions docs/viewer.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -816,8 +816,8 @@ <h1 class="page-title">Source: viewer.js</h1>

const theme =
this.theme === "dark" ||
(this.theme === "browser" &amp;&amp;
window.matchMedia("(prefers-color-scheme: dark)").matches)
(this.theme === "browser" &amp;&amp;
window.matchMedia("(prefers-color-scheme: dark)").matches)
? "dark"
: "light";

Expand Down Expand Up @@ -933,6 +933,7 @@ <h1 class="page-title">Source: viewer.js</h1>
* @param {boolean} [notify=true] - whether to send notification or not.
*/
presetCamera = (dir, zoom = null, notify = true) => {
this.camera.target = new THREE.Vector3(...this.bbox.center());
this.camera.presetCamera(dir, zoom, notify);
this.controls.setTarget(this.camera.target);
this.update(true, notify);
Expand Down Expand Up @@ -2041,6 +2042,14 @@ <h1 class="page-title">Source: viewer.js</h1>
// update the this
this.update(true);
}

vector3(x = 0, y = 0, z = 0) {
return new THREE.Vector3(x, y, z);
}

quaternion(x = 0, y = 0, z = 0, w = 1) {
return new THREE.Quaternion(x, y, z, w);
}
}

export { Viewer };
Expand All @@ -2060,7 +2069,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Camera.ht
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Tue Jul 04 2023 20:23:50 GMT+0200 (Mitteleuropäische Sommerzeit)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Wed Jul 05 2023 22:19:26 GMT+0200 (Mitteleuropäische Sommerzeit)
</footer>

<script> prettyPrint(); </script>
Expand Down

0 comments on commit 0aa97da

Please sign in to comment.