three-cad-viewer 5.1.1 → 5.1.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.
@@ -97854,7 +97854,7 @@ void main() {
97854
97854
  }
97855
97855
  }
97856
97856
 
97857
- const version = "5.1.1";
97857
+ const version = "5.1.2";
97858
97858
 
97859
97859
  /**
97860
97860
  * `PickedComponent` over a GPU id-pick result. Drives the shader
@@ -109477,7 +109477,7 @@ void mainImage(const in vec4 inputColor, const in vec2 uv, const in float depth,
109477
109477
  this._capOutlineCamera = [];
109478
109478
  /** Pending redraw that adds the outline once the camera has settled. */
109479
109479
  this._capOutlineSettle = null;
109480
- /** Whether the attached animation has moved parts (Play pressed or time slider moved). */
109480
+ /** Whether the attached animation has moved parts (Play or time slider, not stopped since). */
109481
109481
  this._animationStarted = false;
109482
109482
  // ---------------------------------------------------------------------------
109483
109483
  // Render Loop & Scene Updates
@@ -109894,6 +109894,10 @@ void mainImage(const in vec4 inputColor, const in vec2 uv, const in float depth,
109894
109894
  break;
109895
109895
  case "stop":
109896
109896
  this.clipAction.stop();
109897
+ // stop() restores the parts' original transforms (three.js
109898
+ // AnimationMixer._deactivateAction -> restoreOriginalState), so they are
109899
+ // at their model positions again and points can be copied.
109900
+ this._animationStarted = false;
109897
109901
  this._setAnimationPlaying(false);
109898
109902
  break;
109899
109903
  }
@@ -112017,8 +112021,9 @@ void mainImage(const in vec4 inputColor, const in vec2 uv, const in float depth,
112017
112021
  * Copy the world-space point under the cursor as `"x, y, z"` to the clipboard and
112018
112022
  * send it to the host as a `copiedPoint` notification (for hosts that block the
112019
112023
  * browser clipboard). Does nothing while parts may be displaced from their model
112020
- * positions — explode mode, an animation once started (Play or time slider), a
112021
- * z-scale other than 1 — or when no visible component is under the cursor.
112024
+ * positions — explode mode, an animation that was played or scrubbed and not
112025
+ * stopped since (Stop puts the parts back), a z-scale other than 1 — or when no
112026
+ * visible component is under the cursor.
112022
112027
  * @returns true when a point was copied (the caller then consumes the key event).
112023
112028
  */
112024
112029
  copyPointUnderCursor() {