three-cad-viewer 1.2.7 → 1.2.8

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.
@@ -51722,12 +51722,12 @@ class Display {
51722
51722
  this.viewer.presetCamera(btn);
51723
51723
  };
51724
51724
 
51725
-
51726
51725
  /**
51727
51726
  * Show/hide pinning button
51728
51727
  * @function
51729
51728
  * @param {boolean} flag - Whether to show/hide the pinning button
51730
- */ setPinning(flag) {
51729
+ */
51730
+ setPinning(flag) {
51731
51731
  const el = this._getElement("tcv_pin");
51732
51732
  el.style.display = flag ? "inline-block" : "none";
51733
51733
  }
@@ -51785,8 +51785,10 @@ class Display {
51785
51785
  this.cadClip.style.display = "none";
51786
51786
  this.viewer.nestedGroup.setBackVisible(false);
51787
51787
  this.viewer.setLocalClipping(false);
51788
- this.lastPlaneState = this.viewer.getClipPlaneHelpers();
51788
+ // copy state since setClipHelpers(false) will set to false
51789
+ var lastPlaneState = this.viewer.getClipPlaneHelpers();
51789
51790
  this.viewer.setClipPlaneHelpers(false);
51791
+ this.lastPlaneState = lastPlaneState;
51790
51792
  changed = true;
51791
51793
  }
51792
51794
  if (tab === "clip" && this.activeTab !== "clip") {