@epigraph/solutions 1.0.21 → 1.0.22
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/dist/epigraph-solutions.js +12 -11
- package/package.json +1 -1
|
@@ -13194,7 +13194,7 @@ ${r.join(`
|
|
|
13194
13194
|
width: 100%;
|
|
13195
13195
|
height: 100%;
|
|
13196
13196
|
pointer-events: none;
|
|
13197
|
-
z-index:
|
|
13197
|
+
z-index: 7;
|
|
13198
13198
|
}
|
|
13199
13199
|
|
|
13200
13200
|
.dimensions-label {
|
|
@@ -13625,7 +13625,7 @@ ${r.join(`
|
|
|
13625
13625
|
pointer-events: none;
|
|
13626
13626
|
transition: opacity 0.5s ease;
|
|
13627
13627
|
opacity: 1;
|
|
13628
|
-
z-index:
|
|
13628
|
+
z-index: 9;
|
|
13629
13629
|
}
|
|
13630
13630
|
|
|
13631
13631
|
.tooltip.right {
|
|
@@ -13706,7 +13706,7 @@ ${r.join(`
|
|
|
13706
13706
|
:host(.hover) {
|
|
13707
13707
|
background-color: unset;
|
|
13708
13708
|
cursor: pointer;
|
|
13709
|
-
z-index:
|
|
13709
|
+
z-index: 9;
|
|
13710
13710
|
opacity: 1 !important;
|
|
13711
13711
|
|
|
13712
13712
|
.hotspot-center-circle {
|
|
@@ -14169,7 +14169,7 @@ ${r.join(`
|
|
|
14169
14169
|
align-items: center;
|
|
14170
14170
|
opacity: 1;
|
|
14171
14171
|
transition: opacity 0.3s ease;
|
|
14172
|
-
z-index:
|
|
14172
|
+
z-index: 2;
|
|
14173
14173
|
}
|
|
14174
14174
|
|
|
14175
14175
|
.video-controls.playing {
|
|
@@ -14367,7 +14367,7 @@ ${r.join(`
|
|
|
14367
14367
|
padding: 8px 16px;
|
|
14368
14368
|
height: 30px;
|
|
14369
14369
|
box-sizing: border-box;
|
|
14370
|
-
z-index:
|
|
14370
|
+
z-index: 9;
|
|
14371
14371
|
}
|
|
14372
14372
|
|
|
14373
14373
|
:host([hide-pagination]) ::part(pagination) {
|
|
@@ -16102,7 +16102,7 @@ ${r.join(`
|
|
|
16102
16102
|
height: 100%;
|
|
16103
16103
|
pointer-events: none;
|
|
16104
16104
|
}
|
|
16105
|
-
`]}static setupWebComponent(){window.customElements.get(rf.webComponentName)||window.customElements.define(rf.webComponentName,rf)}firstUpdated(e){super.firstUpdated(e),this.__setupEventListeners()}addHotspot(e,t=!0){const n=new px({config:e,appWcRef:this.appWcRef,hotspotManagerRef:this});if(n.hidden)return;this.hotspots.set(n.hotspotId,n);const i=this.appWcRef.sceneManager.sceneStructure.getEntityForAssetId(e.assetId);i&&i.addHotspot(n),t&&this.updateHotspotsOrder(Array.from(this.hotspots.keys()))}updateHotspot(e,t){const n=this.hotspots.get(e);if(!n){window.epigraph.logger.error({title:`Invalid hotspot ID: ${e}`});return}n.updateConfig(t),this.__resolveHotspotCardContents()}removeHotspot(e,t=!0){this.hotspots.delete(e),t&&this.updateHotspotsOrder(Array.from(this.hotspots.keys()))}stepHotspots(e){const t=this.activeHotspotIndex;if(t===null)return;const n=this.hotspotsOrder.length;let i=t;e==="next"?(i=t+1,i>=n&&(i=0)):e==="prev"&&(i=t-1,i<0&&(i=n-1));const r=this.hotspotsOrder[i];this.setActiveHotspot({hotspotId:r})}nextHotspot(){return this.stepHotspots("next"),this.appWcRef.eventsManager.hotspotNextEvent.fire({hotspot:this.activeHotspot}),this.activeHotspot}previousHotspot(){return this.stepHotspots("prev"),this.appWcRef.eventsManager.hotspotPreviousEvent.fire({hotspot:this.activeHotspot}),this.activeHotspot}openHotspot({hotspotId:e,state:t,skipHotspotOpenEvent:n=!1}){this.appWcRef.playInteractionPrompt=!1,this.setActiveHotspot({hotspotId:e,state:t}),n||this.appWcRef.eventsManager.hotspotOpenEvent.fire({hotspot:this.activeHotspot});const i=new Hr(!0,Hr.PANEL_TYPE.HOTSPOT_PANEL,Hr.TRIGGER_SOURCE.HOTSPOT,[]);this.appWcRef.epigraphAnalytics.sendEvent(i)}closeActiveHotspot(){const e=this.activeHotspot?.hotspotId;this.setActiveHotspot({hotspotId:null}),this.appWcRef.eventsManager.hotspotClosedEvent.fire({hotspotId:e});const t=new $r(!0,$r.PANEL_TYPE.HOTSPOT_PANEL,$r.TRIGGER_SOURCE.BUTTON,[]);this.appWcRef.epigraphAnalytics.sendEvent(t)}updateHotspotsOrder(e){this.hotspotsOrder=e}removeAllHotspots(){for(const e of this.hotspots.keys())this.removeHotspot(e)}setActiveHotspotByIndex(e){const t=this.hotspotsOrder[e];this.setActiveHotspot({hotspotId:t})}updateActiveHotspotIndex(){this.activeHotspot?this.activeHotspotIndex=this.hotspotsOrder.indexOf(this.activeHotspot?.hotspotId):this.activeHotspotIndex=-1}setActiveHotspotState(e){this.__mobileHotspotCardsManager.setAttribute("cards-state",e)}setActiveHotspot({hotspotId:e,state:t=this.__mobileHotspotCardsManager.cardsState??$n.collapsed}){if(this.activeHotspot?.hotspotId===e)return;const{x:n,y:i,z:r}=this.__cameraOffsetApplied;if((n!==0||i!==0||r!==0)&&(this.appWcRef.cameraManager.mainCameraControls.setFocalOffset(0,0,0,!0),this.__cameraOffsetApplied.x=0,this.__cameraOffsetApplied.y=0,this.__cameraOffsetApplied.z=0),e===null){const l=!!this.activeHotspot;this.activeHotspot=void 0,this.updateActiveHotspotIndex(),l&&this.appWcRef.cameraManager.resetCurrentCameraTransformsToLastSavedState();return}this.enabled===!1&&(this.enabled=!0);const a=!this.activeHotspot;if(this.activeHotspot=this.hotspots.get(e),this.activeHotspot===void 0)return;this.updateActiveHotspotIndex(),this.setActiveHotspotState(t),this.__resolveHotspotCardContents();let o=this.activeHotspot.camera;if(this.activeHotspot?.camera.target.x===9999.9999&&(o=JSON.parse(JSON.stringify(o)),o.target=this.appWcRef.sceneManager.currentSceneCenter,this.appWcRef.cameraManager.mainCameraControls.setFocalOffset(-.5,0,0,!0),this.__cameraOffsetApplied.x=-.5),this.appWcRef.eventsManager.cameraMoveToTransform.fire({cameraTransforms:o,saveFirst:a,ignoreCameraLimits:!0}),this.appWcRef.isPortraitOrientation){const l=this.appWcRef.cameraManager.mainCameraControls,c=new Q;l.getTarget(c,!0);const h=new Q;l.getPosition(h,!0),l.setLookAt(h.x-c.x,h.y,h.z-c.z,0,c.y,0,!0),l.setFocalOffset(0,.1,0,!0),this.__cameraOffsetApplied.y=.1}this.activeHotspot.visited=!0,window.addEventListener("keydown",l=>{l.key==="Escape"&&this.closeActiveHotspot()},{once:!0})}__resolveHotspotCardContents(){this.__allCards=[];let e=0;const t=this.hotspots.size-1,n=this.hotspots.size>1,i=this.appWcRef.productSettings.hotspots.showNavigationButtons;for(const r of this.hotspots.values()){const a=e===0,o=e===t,l=ae`
|
|
16105
|
+
`]}static setupWebComponent(){window.customElements.get(rf.webComponentName)||window.customElements.define(rf.webComponentName,rf)}firstUpdated(e){super.firstUpdated(e),this.__isPortrait=this.appWcRef.isPortraitOrientation,this.__setupEventListeners()}addHotspot(e,t=!0){const n=new px({config:e,appWcRef:this.appWcRef,hotspotManagerRef:this});if(n.hidden)return;this.hotspots.set(n.hotspotId,n);const i=this.appWcRef.sceneManager.sceneStructure.getEntityForAssetId(e.assetId);i&&i.addHotspot(n),t&&this.updateHotspotsOrder(Array.from(this.hotspots.keys()))}updateHotspot(e,t){const n=this.hotspots.get(e);if(!n){window.epigraph.logger.error({title:`Invalid hotspot ID: ${e}`});return}n.updateConfig(t),this.__resolveHotspotCardContents()}removeHotspot(e,t=!0){this.hotspots.delete(e),t&&this.updateHotspotsOrder(Array.from(this.hotspots.keys()))}stepHotspots(e){const t=this.activeHotspotIndex;if(t===null)return;const n=this.hotspotsOrder.length;let i=t;e==="next"?(i=t+1,i>=n&&(i=0)):e==="prev"&&(i=t-1,i<0&&(i=n-1));const r=this.hotspotsOrder[i];this.setActiveHotspot({hotspotId:r})}nextHotspot(){return this.stepHotspots("next"),this.appWcRef.eventsManager.hotspotNextEvent.fire({hotspot:this.activeHotspot}),this.activeHotspot}previousHotspot(){return this.stepHotspots("prev"),this.appWcRef.eventsManager.hotspotPreviousEvent.fire({hotspot:this.activeHotspot}),this.activeHotspot}openHotspot({hotspotId:e,state:t,skipHotspotOpenEvent:n=!1}){this.appWcRef.playInteractionPrompt=!1,this.setActiveHotspot({hotspotId:e,state:t}),n||this.appWcRef.eventsManager.hotspotOpenEvent.fire({hotspot:this.activeHotspot});const i=new Hr(!0,Hr.PANEL_TYPE.HOTSPOT_PANEL,Hr.TRIGGER_SOURCE.HOTSPOT,[]);this.appWcRef.epigraphAnalytics.sendEvent(i)}closeActiveHotspot(){const e=this.activeHotspot?.hotspotId;this.setActiveHotspot({hotspotId:null}),this.appWcRef.eventsManager.hotspotClosedEvent.fire({hotspotId:e});const t=new $r(!0,$r.PANEL_TYPE.HOTSPOT_PANEL,$r.TRIGGER_SOURCE.BUTTON,[]);this.appWcRef.epigraphAnalytics.sendEvent(t)}updateHotspotsOrder(e){this.hotspotsOrder=e}removeAllHotspots(){for(const e of this.hotspots.keys())this.removeHotspot(e)}setActiveHotspotByIndex(e){const t=this.hotspotsOrder[e];this.setActiveHotspot({hotspotId:t})}updateActiveHotspotIndex(){this.activeHotspot?this.activeHotspotIndex=this.hotspotsOrder.indexOf(this.activeHotspot?.hotspotId):this.activeHotspotIndex=-1}setActiveHotspotState(e){this.__mobileHotspotCardsManager.setAttribute("cards-state",e)}setActiveHotspot({hotspotId:e,state:t=this.__mobileHotspotCardsManager.cardsState??$n.collapsed}){if(this.activeHotspot?.hotspotId===e)return;const{x:n,y:i,z:r}=this.__cameraOffsetApplied;if((n!==0||i!==0||r!==0)&&(this.appWcRef.cameraManager.mainCameraControls.setFocalOffset(0,0,0,!0),this.__cameraOffsetApplied.x=0,this.__cameraOffsetApplied.y=0,this.__cameraOffsetApplied.z=0),e===null){const l=!!this.activeHotspot;this.activeHotspot=void 0,this.updateActiveHotspotIndex(),l&&this.appWcRef.cameraManager.resetCurrentCameraTransformsToLastSavedState();return}this.enabled===!1&&(this.enabled=!0);const a=!this.activeHotspot;if(this.activeHotspot=this.hotspots.get(e),this.activeHotspot===void 0)return;this.updateActiveHotspotIndex(),this.setActiveHotspotState(t),this.__resolveHotspotCardContents();let o=this.activeHotspot.camera;if(this.activeHotspot?.camera.target.x===9999.9999&&(o=JSON.parse(JSON.stringify(o)),o.target=this.appWcRef.sceneManager.currentSceneCenter,this.appWcRef.cameraManager.mainCameraControls.setFocalOffset(-.5,0,0,!0),this.__cameraOffsetApplied.x=-.5),this.appWcRef.eventsManager.cameraMoveToTransform.fire({cameraTransforms:o,saveFirst:a,ignoreCameraLimits:!0}),this.appWcRef.isPortraitOrientation){const l=this.appWcRef.cameraManager.mainCameraControls,c=new Q;l.getTarget(c,!0);const h=new Q;l.getPosition(h,!0),l.setLookAt(h.x-c.x,h.y,h.z-c.z,0,c.y,0,!0),l.setFocalOffset(0,.1,0,!0),this.__cameraOffsetApplied.y=.1}this.activeHotspot.visited=!0,window.addEventListener("keydown",l=>{l.key==="Escape"&&this.closeActiveHotspot()},{once:!0})}__resolveHotspotCardContents(){this.__allCards=[];let e=0;const t=this.hotspots.size-1,n=this.hotspots.size>1,i=this.appWcRef.productSettings.hotspots.showNavigationButtons;for(const r of this.hotspots.values()){const a=e===0,o=e===t,l=ae`
|
|
16106
16106
|
<swiper-slide part="swiper-slide">
|
|
16107
16107
|
<style>
|
|
16108
16108
|
.expand-button {
|
|
@@ -17483,7 +17483,7 @@ void main() {
|
|
|
17483
17483
|
user-select: none;
|
|
17484
17484
|
margin-left: 4px !important;
|
|
17485
17485
|
-webkit-user-select: none;
|
|
17486
|
-
z-index:
|
|
17486
|
+
z-index: 7;
|
|
17487
17487
|
}
|
|
17488
17488
|
|
|
17489
17489
|
.lil-gui, .lil-gui * {
|
|
@@ -17999,7 +17999,7 @@ void main() {
|
|
|
17999
17999
|
}
|
|
18000
18000
|
|
|
18001
18001
|
.hotspots-manager {
|
|
18002
|
-
z-index:
|
|
18002
|
+
z-index: 6;
|
|
18003
18003
|
}
|
|
18004
18004
|
|
|
18005
18005
|
.debug-manager {
|
|
@@ -18013,13 +18013,13 @@ void main() {
|
|
|
18013
18013
|
left: 50%;
|
|
18014
18014
|
top: 50%;
|
|
18015
18015
|
transform: translate(-50%, -50%);
|
|
18016
|
-
z-index:
|
|
18016
|
+
z-index: 7;
|
|
18017
18017
|
}
|
|
18018
18018
|
|
|
18019
18019
|
.splash-screen {
|
|
18020
18020
|
position: absolute;
|
|
18021
18021
|
background-color: white;
|
|
18022
|
-
z-index:
|
|
18022
|
+
z-index: 9;
|
|
18023
18023
|
top: 0;
|
|
18024
18024
|
left: 0;
|
|
18025
18025
|
right: 0;
|
|
@@ -18037,7 +18037,7 @@ void main() {
|
|
|
18037
18037
|
padding: inherit;
|
|
18038
18038
|
align-items: flex-start;
|
|
18039
18039
|
transition: opacity 0.5s;
|
|
18040
|
-
z-index:
|
|
18040
|
+
z-index: 6;
|
|
18041
18041
|
}
|
|
18042
18042
|
|
|
18043
18043
|
.toolset.hide {
|
|
@@ -18070,6 +18070,7 @@ void main() {
|
|
|
18070
18070
|
transition: opacity 0.5s;
|
|
18071
18071
|
position: absolute;
|
|
18072
18072
|
pointer-events: auto;
|
|
18073
|
+
z-index: 6;
|
|
18073
18074
|
}
|
|
18074
18075
|
|
|
18075
18076
|
.powered-by-epigraph-button.hide {
|