@playcanvas/supersplat-viewer 1.35.1 → 1.35.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playcanvas/supersplat-viewer",
3
- "version": "1.35.1",
3
+ "version": "1.35.2",
4
4
  "author": "PlayCanvas <support@playcanvas.com>",
5
5
  "homepage": "https://github.com/playcanvas/supersplat-viewer#readme",
6
6
  "description": "Viewer for https://superspl.at",
package/public/index.css CHANGED
@@ -838,6 +838,7 @@
838
838
  position: absolute;
839
839
  left: 0;
840
840
  top: 0;
841
+ will-change: transform;
841
842
  display: none;
842
843
  align-items: center;
843
844
  justify-content: center;
@@ -872,6 +873,9 @@
872
873
  .sse-viewer .sse-annotations > .sse-annotation {
873
874
  --sse-annotation-bkg: rgba(0, 0, 0, 0.9);
874
875
  position: absolute;
876
+ left: 0;
877
+ top: 0;
878
+ will-change: transform;
875
879
  width: -moz-max-content;
876
880
  width: max-content;
877
881
  max-width: min(280px, 100% - 16px);
@@ -912,6 +916,9 @@
912
916
  .sse-viewer .sse-annotations > .sse-annotation:has(> .sse-annotation-text:empty) > .sse-annotation-text {
913
917
  display: none;
914
918
  }
919
+ .sse-viewer .sse-annotations > .sse-annotation:has(> .sse-annotation-title:empty):has(> .sse-annotation-text:empty) {
920
+ display: none;
921
+ }
915
922
  .sse-viewer .sse-annotations > .sse-annotation.sse-arrow-right::before, .sse-viewer .sse-annotations > .sse-annotation.sse-arrow-left::before {
916
923
  content: "";
917
924
  position: absolute;
package/public/index.js CHANGED
@@ -83843,7 +83843,7 @@ const importSettings = (settings) => {
83843
83843
  return result;
83844
83844
  };
83845
83845
 
83846
- var version = "1.35.1";
83846
+ var version = "1.35.2";
83847
83847
 
83848
83848
  class Tooltip {
83849
83849
  register;
@@ -84058,7 +84058,9 @@ class Annotation extends Script {
84058
84058
  initialize() {
84059
84059
  const ctx = this.context;
84060
84060
  this.hotspotDom = document.createElement('div');
84061
- this.hotspotDom.className = 'sse-annotation-hotspot';
84061
+ // dimmed until the occlusion test first shows it in view, rather than every hotspot
84062
+ // showing at full strength on the reveal and the hidden ones fading afterwards
84063
+ this.hotspotDom.className = 'sse-annotation-hotspot sse-occluded';
84062
84064
  this.hotspotDom.textContent = this.label;
84063
84065
  const onClick = (e) => {
84064
84066
  e.stopPropagation();
@@ -84187,8 +84189,7 @@ class Annotation extends Script {
84187
84189
  tooltip.style.setProperty('--arrow-top', `${arrowY}px`);
84188
84190
  tooltip.classList.toggle('sse-arrow-right', !flipped);
84189
84191
  tooltip.classList.toggle('sse-arrow-left', flipped);
84190
- tooltip.style.left = `${left}px`;
84191
- tooltip.style.top = `${top}px`;
84192
+ tooltip.style.transform = `translate(${left}px, ${top}px)`;
84192
84193
  }
84193
84194
  }
84194
84195
  /**