belowjs 1.4.1 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/belowjs.js +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
📖 **[Full Documentation & Examples](https://patrick-morrison.github.io/belowjs/)**
|
|
8
8
|
|
|
9
|
-
> **Current Version:** `1.4.
|
|
9
|
+
> **Current Version:** `1.4.2` - Survey brightness control and animation example improvements for smaller and darker objects.
|
|
10
10
|
|
|
11
11
|
**Dive Shipwrecks in Virtual Reality**
|
|
12
12
|
|
|
@@ -59,11 +59,11 @@ This gives you a complete VR-ready 3D viewer with dive lighting, measurement too
|
|
|
59
59
|
{
|
|
60
60
|
"imports": {
|
|
61
61
|
"three": "https://cdn.jsdelivr.net/npm/three@0.179.1/+esm",
|
|
62
|
-
"belowjs": "https://cdn.jsdelivr.net/npm/belowjs@1.4.
|
|
62
|
+
"belowjs": "https://cdn.jsdelivr.net/npm/belowjs@1.4.2/dist/belowjs.js"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
</script>
|
|
66
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/belowjs@1.4.
|
|
66
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/belowjs@1.4.2/dist/belowjs.css">
|
|
67
67
|
<style>
|
|
68
68
|
body, html { margin: 0; padding: 0; overflow: hidden; }
|
|
69
69
|
</style>
|
package/dist/belowjs.js
CHANGED
|
@@ -8490,6 +8490,10 @@ class Hn {
|
|
|
8490
8490
|
isTransitionInProgress() {
|
|
8491
8491
|
return this.isTransitioning;
|
|
8492
8492
|
}
|
|
8493
|
+
setSurveyBrightness(e = 1) {
|
|
8494
|
+
const t = Math.max(0.5, Math.min(5, e));
|
|
8495
|
+
this.overheadLight && (this.overheadLight.intensity = 0.6 * t), this.clearModeDirectionalLight && (this.clearModeDirectionalLight.intensity = 1.2 * t), this.clearModeHemisphereLight && (this.clearModeHemisphereLight.intensity = 0.7 * t), this.fillLight && (this.fillLight.intensity = 0.8 * t), this.bottomLight && (this.bottomLight.intensity = 0.3 * t);
|
|
8496
|
+
}
|
|
8493
8497
|
dispose() {
|
|
8494
8498
|
this.isDisposed = !0, this.cancelActiveAnimations(), requestAnimationFrame(() => {
|
|
8495
8499
|
try {
|
package/package.json
CHANGED