ep-lib-ts 1.0.55 → 1.0.57
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/{types/Answer.d.ts → Answer.d.ts} +0 -1
- package/dist/{types/Hierarchy.d.ts → Hierarchy.d.ts} +1 -1
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/_virtual/dynamic-import-helper.js +9 -0
- package/dist/basics/EpAvatar.d.ts +21 -0
- package/dist/basics/EpAvatar.js +4 -0
- package/dist/basics/EpBadge.d.ts +6 -0
- package/dist/basics/EpBadge.js +4 -0
- package/dist/basics/EpBtn.d.ts +14 -0
- package/dist/basics/EpBtn.js +4 -0
- package/dist/basics/EpCard.d.ts +14 -0
- package/dist/basics/EpCard.js +4 -0
- package/dist/basics/EpChip.d.ts +10 -0
- package/dist/basics/EpChip.js +4 -0
- package/dist/basics/EpDivider.d.ts +8 -0
- package/dist/basics/EpDivider.js +4 -0
- package/dist/basics/EpFlex.d.ts +7 -0
- package/dist/basics/EpFlex.js +4 -0
- package/dist/basics/EpHover.d.ts +9 -0
- package/dist/basics/EpHover.js +4 -0
- package/dist/basics/EpHoverCard.d.ts +19 -0
- package/dist/basics/EpHoverCard.js +4 -0
- package/dist/basics/EpIcon.d.ts +6 -0
- package/dist/basics/EpIcon.js +4 -0
- package/dist/basics/EpImg.d.ts +17 -0
- package/dist/basics/EpImg.js +4 -0
- package/dist/basics/EpImgCarousel.d.ts +20 -0
- package/dist/basics/EpImgCarousel.js +4 -0
- package/dist/basics/EpList.d.ts +3 -0
- package/dist/basics/EpList.js +4 -0
- package/dist/basics/EpListItem.d.ts +7 -0
- package/dist/basics/EpListItem.js +4 -0
- package/dist/basics/EpSection.d.ts +13 -0
- package/dist/basics/EpSection.js +4 -0
- package/dist/basics/EpSectionCols.d.ts +17 -0
- package/dist/basics/EpSectionCols.js +4 -0
- package/dist/basics/EpSpinner.d.ts +6 -0
- package/dist/basics/EpSpinner.js +4 -0
- package/dist/basics/EpStackedList.d.ts +10 -0
- package/dist/basics/EpStackedList.js +4 -0
- package/dist/basics/EpTable.d.ts +5 -0
- package/dist/basics/EpTable.js +4 -0
- package/dist/basics/EpText.d.ts +11 -0
- package/dist/basics/EpText.js +4 -0
- package/dist/charts/EpBarChart.d.ts +30 -0
- package/dist/charts/EpBarChart.js +4 -0
- package/dist/charts/EpFunnelChart.d.ts +31 -0
- package/dist/charts/EpFunnelChart.js +4 -0
- package/dist/charts/EpLineChart.d.ts +28 -0
- package/dist/charts/EpLineChart.js +4 -0
- package/dist/charts/EpPieChart.d.ts +32 -0
- package/dist/charts/EpPieChart.js +4 -0
- package/dist/components/basics/EpAvatar.vue.js +32 -0
- package/dist/components/basics/EpAvatar.vue2.js +4 -0
- package/dist/components/basics/EpBadge.vue.js +22 -0
- package/dist/components/basics/EpBadge.vue2.js +4 -0
- package/dist/components/basics/EpBtn.vue.js +79 -0
- package/dist/components/basics/EpBtn.vue2.js +4 -0
- package/dist/components/basics/EpCard.vue.js +80 -0
- package/dist/components/basics/EpCard.vue2.js +4 -0
- package/dist/components/basics/EpChip.vue.js +49 -0
- package/dist/components/basics/EpChip.vue2.js +4 -0
- package/dist/components/basics/EpDivider.vue.js +21 -0
- package/dist/components/basics/EpDivider.vue2.js +4 -0
- package/dist/components/basics/EpFlex.vue.js +12 -0
- package/dist/components/basics/EpFlex.vue2.js +4 -0
- package/dist/components/basics/EpHover.vue.js +36 -0
- package/dist/components/basics/EpHover.vue2.js +4 -0
- package/dist/components/basics/EpHoverCard.vue.js +86 -0
- package/dist/components/basics/EpHoverCard.vue2.js +4 -0
- package/dist/components/basics/EpIcon.vue.js +26 -0
- package/dist/components/basics/EpIcon.vue2.js +4 -0
- package/dist/components/basics/EpImg.vue.js +184 -0
- package/dist/components/basics/EpImg.vue2.js +4 -0
- package/dist/components/basics/EpImgCarousel.vue.js +124 -0
- package/dist/components/basics/EpImgCarousel.vue2.js +4 -0
- package/dist/components/basics/EpList.vue.js +12 -0
- package/dist/components/basics/EpListItem.vue.js +35 -0
- package/dist/components/basics/EpListItem.vue2.js +4 -0
- package/dist/components/basics/EpSection.vue.js +74 -0
- package/dist/components/basics/EpSection.vue2.js +4 -0
- package/dist/components/basics/EpSectionCols.vue.js +94 -0
- package/dist/components/basics/EpSectionCols.vue2.js +4 -0
- package/dist/components/basics/EpSpinner.vue.js +122 -0
- package/dist/components/basics/EpSpinner.vue2.js +4 -0
- package/dist/components/basics/EpStackedList.vue.js +70 -0
- package/dist/components/basics/EpStackedList.vue2.js +4 -0
- package/dist/components/basics/EpTable.vue.js +49 -0
- package/dist/components/basics/EpTable.vue2.js +4 -0
- package/dist/components/basics/EpText.vue.js +83 -0
- package/dist/components/basics/EpText.vue2.js +4 -0
- package/dist/components/charts/EpBarChart.vue.js +78 -0
- package/dist/components/charts/EpBarChart.vue2.js +4 -0
- package/dist/components/charts/EpFunnelChart.vue.js +112 -0
- package/dist/components/charts/EpFunnelChart.vue2.js +4 -0
- package/dist/components/charts/EpLineChart.vue.js +91 -0
- package/dist/components/charts/EpLineChart.vue2.js +4 -0
- package/dist/components/charts/EpPieChart.vue.js +75 -0
- package/dist/components/charts/EpPieChart.vue2.js +4 -0
- package/dist/components/educationals/EpBranchingScenario.vue.js +7 -0
- package/dist/components/educationals/EpBranchingScenario.vue2.js +236 -0
- package/dist/components/educationals/EpCodeblock.vue.js +44 -0
- package/dist/components/educationals/EpCodeblock.vue3.js +5 -0
- package/dist/components/educationals/EpConclusion.vue.js +40 -0
- package/dist/components/educationals/EpConclusion.vue2.js +4 -0
- package/dist/components/educationals/EpDescription.vue.js +40 -0
- package/dist/components/educationals/EpDescription.vue2.js +4 -0
- package/dist/components/educationals/EpDocument.vue.js +99 -0
- package/dist/components/educationals/EpDocument.vue2.js +4 -0
- package/dist/components/educationals/EpEdu.vue.js +81 -0
- package/dist/components/educationals/EpEdu.vue2.js +4 -0
- package/dist/components/educationals/EpInstructions.vue.js +49 -0
- package/dist/components/educationals/EpInstructions.vue2.js +4 -0
- package/dist/components/educationals/EpIntroduction.vue.js +39 -0
- package/dist/components/educationals/EpIntroduction.vue2.js +4 -0
- package/dist/components/educationals/EpObjective.vue.js +39 -0
- package/dist/components/educationals/EpObjective.vue2.js +4 -0
- package/dist/components/educationals/EpReading.vue.js +307 -0
- package/dist/components/educationals/EpReading.vue2.js +4 -0
- package/dist/components/educationals/EpResource.vue.js +33 -0
- package/dist/components/educationals/EpResource.vue2.js +4 -0
- package/dist/components/educationals/EpScope.vue.js +25 -0
- package/dist/components/educationals/EpScope.vue2.js +4 -0
- package/dist/components/educationals/EpSpecificObjective.vue.js +37 -0
- package/dist/components/educationals/EpSpecificObjective.vue2.js +4 -0
- package/dist/components/forms/EpCheckbox.vue2.js +4 -0
- package/dist/components/forms/EpInput.vue.js +62 -0
- package/dist/components/forms/EpInput.vue2.js +4 -0
- package/dist/components/forms/EpRadio.vue.js +41 -0
- package/dist/components/forms/EpRadio.vue2.js +4 -0
- package/dist/components/forms/EpRadioSummative.vue.js +37 -0
- package/dist/components/forms/EpRadioSummative.vue2.js +4 -0
- package/dist/components/forms/EpSelect.vue2.js +4 -0
- package/dist/components/forms/EpSwitch.vue.js +48 -0
- package/dist/components/forms/EpSwitch.vue2.js +4 -0
- package/dist/{EpTextarea-VJ4pdPV_.js → components/forms/EpTextarea.vue.js} +6 -15
- package/dist/components/forms/EpTextarea.vue2.js +4 -0
- package/dist/{EpToggle-BTkTNVEz.js → components/forms/EpToggle.vue.js} +7 -16
- package/dist/components/forms/EpToggle.vue2.js +4 -0
- package/dist/{Ep360Image-T9Z_eSbf.js → components/interactions/Ep360Image.vue.js} +1 -1
- package/dist/components/interactions/Ep360Image.vue2.js +4 -0
- package/dist/{Ep360Video-CkVrfj8k.js → components/interactions/Ep360Video.vue.js} +1 -1
- package/dist/components/interactions/Ep360Video.vue2.js +4 -0
- package/dist/components/interactions/EpAccordeon.vue.js +7 -0
- package/dist/components/interactions/EpAccordeon.vue2.js +75 -0
- package/dist/components/interactions/EpContentSlider.vue.js +184 -0
- package/dist/components/interactions/EpContentSlider.vue2.js +4 -0
- package/dist/{EpDarkmode-Kj9ZCege.js → components/interactions/EpDarkMode.vue.js} +5 -5
- package/dist/components/interactions/EpDarkMode.vue2.js +4 -0
- package/dist/components/interactions/EpDraggable.vue.js +144 -0
- package/dist/components/interactions/EpDraggable.vue2.js +4 -0
- package/dist/{EpHotsPot-nT87sUMT.js → components/interactions/EpHotsPot.vue.js} +1 -1
- package/dist/components/interactions/EpHotsPot.vue2.js +4 -0
- package/dist/components/interactions/EpModal.vue.js +55 -0
- package/dist/components/interactions/EpModal.vue3.js +5 -0
- package/dist/components/interactions/EpQuestion.vue.js +175 -0
- package/dist/components/interactions/EpQuestion.vue2.js +4 -0
- package/dist/components/interactions/EpSummativeTable.vue.js +49 -0
- package/dist/components/interactions/EpSummativeTable.vue2.js +4 -0
- package/dist/components/interactions/EpSvgShow.vue.js +69 -0
- package/dist/components/interactions/EpSvgShow.vue2.js +4 -0
- package/dist/components/interactions/EpTabs.vue.js +12 -0
- package/dist/components/interactions/EpTooltip.vue.js +24 -0
- package/dist/components/interactions/EpTooltip.vue3.js +5 -0
- package/dist/components/medias/EpAudio.vue.js +76 -0
- package/dist/components/medias/EpAudio.vue2.js +4 -0
- package/dist/components/medias/EpCardLink.vue.js +65 -0
- package/dist/components/medias/EpCardLink.vue2.js +4 -0
- package/dist/components/medias/EpCarousel.vue.js +7 -0
- package/dist/components/medias/EpCarousel.vue2.js +162 -0
- package/dist/components/medias/EpHierarchy.vue.js +7 -0
- package/dist/components/medias/EpHierarchy.vue2.js +172 -0
- package/dist/components/medias/EpIframe.vue.js +53 -0
- package/dist/components/medias/EpIframe.vue2.js +4 -0
- package/dist/components/medias/EpKatex.vue.js +7 -0
- package/dist/components/medias/EpKatex.vue2.js +58 -0
- package/dist/components/medias/EpLink.vue.js +73 -0
- package/dist/components/medias/EpLink.vue2.js +4 -0
- package/dist/components/medias/EpLinkVersion.vue.js +34 -0
- package/dist/components/medias/EpLinkVersion.vue2.js +4 -0
- package/dist/components/medias/EpLottieSvg.vue.js +47 -0
- package/dist/components/medias/EpLottieSvg.vue2.js +4 -0
- package/dist/components/medias/EpSensibleImage.vue.js +7 -0
- package/dist/components/medias/EpSensibleImage.vue2.js +71 -0
- package/dist/components/medias/EpSoftware.vue.js +113 -0
- package/dist/components/medias/EpSoftware.vue2.js +4 -0
- package/dist/components/medias/EpSvg.vue.js +56 -0
- package/dist/components/medias/EpSvg.vue2.js +4 -0
- package/dist/components/medias/EpTerm.vue.js +144 -0
- package/dist/components/medias/EpTerm.vue2.js +4 -0
- package/dist/components/medias/EpTimeLine.vue.js +64 -0
- package/dist/components/medias/EpTimeLine.vue3.js +5 -0
- package/dist/components/medias/EpVideo.vue.js +83 -0
- package/dist/components/medias/EpVideo.vue2.js +4 -0
- package/dist/components/medias/EpVideoPanopto.vue.js +56 -0
- package/dist/components/medias/EpVideoPanopto.vue2.js +4 -0
- package/dist/components/medias/EpWordDef.vue.js +100 -0
- package/dist/components/medias/EpWordDef.vue2.js +4 -0
- package/dist/components/signages/EpAlert.vue.js +7 -0
- package/dist/components/signages/EpAlert.vue2.js +68 -0
- package/dist/components/signages/EpBadge.vue.js +32 -0
- package/dist/components/signages/EpBadge.vue2.js +4 -0
- package/dist/components/signages/EpHeader.vue.js +205 -0
- package/dist/components/signages/EpHeader.vue2.js +4 -0
- package/dist/components/signages/EpNothing.vue.js +10 -0
- package/dist/components/signages/EpQuote.vue.js +76 -0
- package/dist/components/signages/EpQuote.vue2.js +4 -0
- package/dist/components/signages/EpSkeleton.vue.js +34 -0
- package/dist/components/signages/EpSkeleton.vue3.js +5 -0
- package/dist/components/tools/BgAudio.vue.js +59 -0
- package/dist/components/tools/BgAudio.vue2.js +4 -0
- package/dist/components/tools/Details.vue.js +4 -0
- package/dist/components/tools/Details.vue2.js +55 -0
- package/dist/components/tools/DisplayBox.vue.js +5 -0
- package/dist/components/tools/DisplayBox.vue2.js +36 -0
- package/dist/components/tools/SvgFilter.vue.js +54 -0
- package/dist/components/tools/TextMedia.vue.js +4 -0
- package/dist/components/tools/TextMedia.vue2.js +41 -0
- package/dist/components/tools/TimelineItem.vue.js +7 -0
- package/dist/components/tools/TimelineItem.vue2.js +112 -0
- package/dist/components/tools/TwoColsMedia.vue.js +4 -0
- package/dist/components/tools/TwoColsMedia.vue2.js +50 -0
- package/dist/composables/isHtml.js +6 -0
- package/dist/composables/useColors.js +133 -0
- package/dist/composables/useComponent.js +40 -0
- package/dist/composables/useCreateUid.js +7 -0
- package/dist/composables/useIcons.js +32 -0
- package/dist/composables/useMarkdown.js +12 -0
- package/dist/composables/useRenderText.js +8 -0
- package/dist/educationals/EpBranchingScenario.d.ts +21 -0
- package/dist/educationals/EpBranchingScenario.js +4 -0
- package/dist/educationals/EpCodeblock.d.ts +12 -0
- package/dist/educationals/EpCodeblock.js +5 -0
- package/dist/educationals/EpConclusion.d.ts +5 -0
- package/dist/educationals/EpConclusion.js +4 -0
- package/dist/educationals/EpDescription.d.ts +5 -0
- package/dist/educationals/EpDescription.js +4 -0
- package/dist/educationals/EpDocument.d.ts +10 -0
- package/dist/educationals/EpDocument.js +4 -0
- package/dist/educationals/EpEdu.d.ts +13 -0
- package/dist/educationals/EpEdu.js +4 -0
- package/dist/educationals/EpInstructions.d.ts +13 -0
- package/dist/educationals/EpInstructions.js +4 -0
- package/dist/educationals/EpIntroduction.d.ts +5 -0
- package/dist/educationals/EpIntroduction.js +4 -0
- package/dist/educationals/EpObjective.d.ts +5 -0
- package/dist/educationals/EpObjective.js +4 -0
- package/dist/educationals/EpReading.d.ts +26 -0
- package/dist/educationals/EpReading.js +4 -0
- package/dist/educationals/EpResource.d.ts +8 -0
- package/dist/educationals/EpResource.js +4 -0
- package/dist/educationals/EpScope.d.ts +4 -0
- package/dist/educationals/EpScope.js +4 -0
- package/dist/educationals/EpSpecificObjective.d.ts +7 -0
- package/dist/educationals/EpSpecificObjective.js +4 -0
- package/dist/ep-lib-ts.css +1 -0
- package/dist/forms/EpCheckbox.d.ts +8 -0
- package/dist/forms/EpCheckbox.js +4 -0
- package/dist/forms/EpInput.d.ts +21 -0
- package/dist/forms/EpInput.js +4 -0
- package/dist/forms/EpRadio.d.ts +10 -0
- package/dist/forms/EpRadio.js +4 -0
- package/dist/forms/EpRadioSummative.d.ts +10 -0
- package/dist/forms/EpRadioSummative.js +4 -0
- package/dist/forms/EpSelect.d.ts +7 -0
- package/dist/forms/EpSelect.js +4 -0
- package/dist/forms/EpSwitch.d.ts +10 -0
- package/dist/forms/EpSwitch.js +4 -0
- package/dist/forms/EpTextarea.d.ts +23 -0
- package/dist/forms/EpTextarea.js +4 -0
- package/dist/forms/EpToggle.d.ts +13 -0
- package/dist/forms/EpToggle.js +4 -0
- package/dist/interactions/Ep360Image.d.ts +4 -0
- package/dist/interactions/Ep360Image.js +4 -0
- package/dist/interactions/Ep360Video.d.ts +3 -0
- package/dist/interactions/Ep360Video.js +4 -0
- package/dist/interactions/EpAccordeon.d.ts +9 -0
- package/dist/interactions/EpAccordeon.js +4 -0
- package/dist/interactions/EpContentSlider.d.ts +7 -0
- package/dist/interactions/EpContentSlider.js +4 -0
- package/dist/interactions/EpDarkMode.d.ts +1 -0
- package/dist/interactions/EpDarkMode.js +4 -0
- package/dist/interactions/EpDraggable.d.ts +6 -0
- package/dist/interactions/EpDraggable.js +4 -0
- package/dist/interactions/EpHotsPot.d.ts +17 -0
- package/dist/interactions/EpHotsPot.js +4 -0
- package/dist/interactions/EpModal.d.ts +10 -0
- package/dist/interactions/EpModal.js +5 -0
- package/dist/interactions/EpQuestion.d.ts +19 -0
- package/dist/interactions/EpQuestion.js +4 -0
- package/dist/interactions/EpSummativeTable.d.ts +6 -0
- package/dist/interactions/EpSummativeTable.js +4 -0
- package/dist/interactions/EpSvgShow.d.ts +5 -0
- package/dist/interactions/EpSvgShow.js +4 -0
- package/dist/interactions/EpTabs.d.ts +1 -0
- package/dist/interactions/EpTabs.js +4 -0
- package/dist/interactions/EpTooltip.d.ts +24 -0
- package/dist/interactions/EpTooltip.js +5 -0
- package/dist/medias/EpAudio.d.ts +13 -0
- package/dist/medias/EpAudio.js +4 -0
- package/dist/medias/EpCardLink.d.ts +19 -0
- package/dist/medias/EpCardLink.js +4 -0
- package/dist/medias/EpCarousel.d.ts +13 -0
- package/dist/medias/EpCarousel.js +4 -0
- package/dist/medias/EpHierarchy.d.ts +10 -0
- package/dist/medias/EpHierarchy.js +4 -0
- package/dist/medias/EpIframe.d.ts +13 -0
- package/dist/medias/EpIframe.js +4 -0
- package/dist/medias/EpKatex.d.ts +10 -0
- package/dist/medias/EpKatex.js +4 -0
- package/dist/medias/EpLink.d.ts +13 -0
- package/dist/medias/EpLink.js +4 -0
- package/dist/medias/EpLinkVersion.d.ts +18 -0
- package/dist/medias/EpLinkVersion.js +4 -0
- package/dist/medias/EpLottieSvg.d.ts +12 -0
- package/dist/medias/EpLottieSvg.js +4 -0
- package/dist/medias/EpSensibleImage.d.ts +11 -0
- package/dist/medias/EpSoftware.d.ts +16 -0
- package/dist/medias/EpSoftware.js +4 -0
- package/dist/medias/EpSvg.d.ts +12 -0
- package/dist/medias/EpSvg.js +4 -0
- package/dist/medias/EpTerm.d.ts +15 -0
- package/dist/medias/EpTerm.js +4 -0
- package/dist/medias/EpTimeLine.d.ts +13 -0
- package/dist/medias/EpTimeLine.js +5 -0
- package/dist/medias/EpVideo.d.ts +13 -0
- package/dist/medias/EpVideo.js +4 -0
- package/dist/medias/EpVideoPanopto.d.ts +13 -0
- package/dist/medias/EpVideoPanopto.js +4 -0
- package/dist/medias/EpWordDef.d.ts +25 -0
- package/dist/medias/EpWordDef.js +4 -0
- package/dist/signages/EpAlert.d.ts +16 -0
- package/dist/signages/EpAlert.js +4 -0
- package/dist/signages/EpBadge.d.ts +22 -0
- package/dist/signages/EpBadge.js +4 -0
- package/dist/signages/EpHeader.d.ts +28 -0
- package/dist/signages/EpHeader.js +4 -0
- package/dist/signages/EpNothing.d.ts +1 -0
- package/dist/signages/EpNothing.js +4 -0
- package/dist/signages/EpQuote.d.ts +6 -0
- package/dist/signages/EpQuote.js +4 -0
- package/dist/signages/EpSkeleton.d.ts +9 -0
- package/dist/signages/EpSkeleton.js +5 -0
- package/dist/types/Accordeon.js +51 -0
- package/dist/types/Alert.js +75 -0
- package/dist/types/Avatar.js +20 -0
- package/dist/{EpBadge-CWIq_C51.js → types/Badge.js} +3 -33
- package/dist/types/Btn.js +50 -0
- package/dist/types/Card.js +8 -0
- package/dist/types/Chip.js +42 -0
- package/dist/types/Codeblock.js +79 -0
- package/dist/types/Cols.js +10 -0
- package/dist/types/Image.js +23 -0
- package/dist/types/Medias.js +14 -0
- package/dist/types/Radio.js +13 -0
- package/dist/types/StackedList.js +9 -0
- package/dist/types/Switch.js +13 -0
- package/dist/types/TimeLine.js +22 -0
- package/dist/{EpTooltip-J6UMMP3d.js → types/Tooltip.js} +3 -25
- package/package.json +82 -60
- package/.vscode/extensions.json +0 -3
- package/dist/BgAudio-CjD8rE6L.js +0 -4
- package/dist/Details-DodNJLmk.js +0 -4
- package/dist/DisplayBox-a9QABBg0.js +0 -4
- package/dist/EpAlert-DL2pQmkm.js +0 -4
- package/dist/EpAudio-B1eoAvQp.js +0 -4
- package/dist/EpAvatar-DUWW5trW.js +0 -4
- package/dist/EpBadge-BZZQvAVs.js +0 -4
- package/dist/EpBarChart-Bv4LoxxX.js +0 -4
- package/dist/EpBtn-BfLGlVXl.js +0 -4
- package/dist/EpCard-Crpcs4JY.js +0 -4
- package/dist/EpCardLink-MoItEiyt.js +0 -4
- package/dist/EpChip-BceMyKjr.js +0 -4
- package/dist/EpCodeblock-D87dvIve.js +0 -4
- package/dist/EpConclusion-CqJsk0kW.js +0 -4
- package/dist/EpContentSlider-W35bm8vM.js +0 -4
- package/dist/EpDescription-CkrMusXA.js +0 -4
- package/dist/EpDivider-PDLfxtHT.js +0 -4
- package/dist/EpDocument-BDU1ahk8.js +0 -4
- package/dist/EpDraggable-Co8uBigH.js +0 -1676
- package/dist/EpEdu-CHRkMMgm.js +0 -4
- package/dist/EpFlex-DARmMuRJ.js +0 -4
- package/dist/EpFunnelChart-z5FrSEHw.js +0 -4
- package/dist/EpHeader-DVN3apTI.js +0 -4
- package/dist/EpHover-heeBGubv.js +0 -4
- package/dist/EpHoverCard-2rYupP8M.js +0 -4
- package/dist/EpIcon-D1hHhkw2.js +0 -4
- package/dist/EpIframe-BebJ46m_.js +0 -4
- package/dist/EpImg-DLtDRMKo.js +0 -4
- package/dist/EpImgCarousel-Sdulf0vy.js +0 -4
- package/dist/EpInput-BAl9kb_b.js +0 -1095
- package/dist/EpInstructions-C4jVOwjT.js +0 -4
- package/dist/EpIntroduction-DlDvwvqJ.js +0 -4
- package/dist/EpLineChart-CtzLjbJ7.js +0 -4
- package/dist/EpLink-42Jwja2Y.js +0 -4
- package/dist/EpLinkVersion-DIvWaYUN.js +0 -4
- package/dist/EpList-B9M5lt1v.js +0 -12
- package/dist/EpListitem-DXh4Kniu.js +0 -37
- package/dist/EpLottieSvg-NNSQLDpl.js +0 -1971
- package/dist/EpModal-BsON1lr3.js +0 -4
- package/dist/EpNothing-YipAP3oo.js +0 -10
- package/dist/EpObjective-BbUe8GFm.js +0 -4
- package/dist/EpPieChart-MLoj6BR_.js +0 -4
- package/dist/EpQuestion-BtF1Qgmj.js +0 -4
- package/dist/EpQuote-Cibs-LKa.js +0 -4
- package/dist/EpRadio-BWLLcGbB.js +0 -4
- package/dist/EpRadioSummative-DxivBGqM.js +0 -4
- package/dist/EpReading-D_Hpr3ao.js +0 -4
- package/dist/EpResource-BE_aXHAi.js +0 -4
- package/dist/EpScope-DiXtqmae.js +0 -4
- package/dist/EpSection-B3W0ffnN.js +0 -4
- package/dist/EpSectionCols-DbM-vHrS.js +0 -4
- package/dist/EpSkeleton-CFNm58SZ.js +0 -4
- package/dist/EpSoftware-Bob71yqB.js +0 -4
- package/dist/EpSpecificObjective-C7tWNHHd.js +0 -4
- package/dist/EpSpinner-Do8Jowd9.js +0 -4
- package/dist/EpStackedList-sgilE4yA.js +0 -4
- package/dist/EpSummativeTable-BJi8VUtB.js +0 -4
- package/dist/EpSvg-DqQt1rvC.js +0 -4
- package/dist/EpSvgShow-DtDVgeJl.js +0 -4
- package/dist/EpSwitch-DtQon_hm.js +0 -64
- package/dist/EpTable-DXuHhHqq.js +0 -4
- package/dist/EpTerm-jaZtSD0w.js +0 -4
- package/dist/EpText-CwvgGSLh.js +0 -4
- package/dist/EpTimeLine-CCCyOGBT.js +0 -4
- package/dist/EpVideo-EeWrLoqr.js +0 -4
- package/dist/EpVideoPanopto-2xqsTrPY.js +0 -4
- package/dist/EpWordDef-bqKugyLs.js +0 -4
- package/dist/TextMedia-BCE1F2fb.js +0 -4
- package/dist/components/basics/EpAvatar.vue.d.ts +0 -51
- package/dist/components/basics/EpBadge.vue.d.ts +0 -37
- package/dist/components/basics/EpBtn.vue.d.ts +0 -64
- package/dist/components/basics/EpCard.vue.d.ts +0 -78
- package/dist/components/basics/EpChip.vue.d.ts +0 -60
- package/dist/components/basics/EpDivider.vue.d.ts +0 -46
- package/dist/components/basics/EpFlex.vue.d.ts +0 -11
- package/dist/components/basics/EpHover.vue.d.ts +0 -53
- package/dist/components/basics/EpHoverCard.vue.d.ts +0 -86
- package/dist/components/basics/EpIcon.vue.d.ts +0 -34
- package/dist/components/basics/EpImg.vue.d.ts +0 -64
- package/dist/components/basics/EpImgCarousel.vue.d.ts +0 -77
- package/dist/components/basics/EpList.vue.d.ts +0 -11
- package/dist/components/basics/EpListitem.vue.d.ts +0 -45
- package/dist/components/basics/EpSection.vue.d.ts +0 -55
- package/dist/components/basics/EpSectionCols.vue.d.ts +0 -69
- package/dist/components/basics/EpSpinner.vue.d.ts +0 -40
- package/dist/components/basics/EpStackedList.vue.d.ts +0 -58
- package/dist/components/basics/EpTable.vue.d.ts +0 -24
- package/dist/components/basics/EpText.vue.d.ts +0 -51
- package/dist/components/charts/EpBarChart.vue.d.ts +0 -57
- package/dist/components/charts/EpFunnelChart.vue.d.ts +0 -61
- package/dist/components/charts/EpLineChart.vue.d.ts +0 -57
- package/dist/components/charts/EpPieChart.vue.d.ts +0 -62
- package/dist/components/educationals/EpBranchingScenario.vue.d.ts +0 -74
- package/dist/components/educationals/EpCodeblock.vue.d.ts +0 -48
- package/dist/components/educationals/EpConclusion.vue.d.ts +0 -39
- package/dist/components/educationals/EpDescription.vue.d.ts +0 -39
- package/dist/components/educationals/EpDocument.vue.d.ts +0 -44
- package/dist/components/educationals/EpEdu.vue.d.ts +0 -62
- package/dist/components/educationals/EpInstructions.vue.d.ts +0 -37
- package/dist/components/educationals/EpIntroduction.vue.d.ts +0 -39
- package/dist/components/educationals/EpObjective.vue.d.ts +0 -39
- package/dist/components/educationals/EpReading.vue.d.ts +0 -87
- package/dist/components/educationals/EpResource.vue.d.ts +0 -34
- package/dist/components/educationals/EpScope.vue.d.ts +0 -24
- package/dist/components/educationals/EpSpecificObjective.vue.d.ts +0 -35
- package/dist/components/forms/EpCheckbox.vue.d.ts +0 -52
- package/dist/components/forms/EpInput.vue.d.ts +0 -65
- package/dist/components/forms/EpRadio.vue.d.ts +0 -57
- package/dist/components/forms/EpRadioSummative.vue.d.ts +0 -57
- package/dist/components/forms/EpSelect.vue.d.ts +0 -28
- package/dist/components/forms/EpSwitch.vue.d.ts +0 -58
- package/dist/components/forms/EpTextarea.vue.d.ts +0 -76
- package/dist/components/forms/EpToggle.vue.d.ts +0 -72
- package/dist/components/interactions/Ep360Image.vue.d.ts +0 -2
- package/dist/components/interactions/Ep360Video.vue.d.ts +0 -2
- package/dist/components/interactions/EpAccordeon.vue.d.ts +0 -53
- package/dist/components/interactions/EpContentSlider.vue.d.ts +0 -39
- package/dist/components/interactions/EpDarkmode.vue.d.ts +0 -7
- package/dist/components/interactions/EpDraggable.vue.d.ts +0 -26
- package/dist/components/interactions/EpHotsPot.vue.d.ts +0 -47
- package/dist/components/interactions/EpModal.vue.d.ts +0 -67
- package/dist/components/interactions/EpQuestion.vue.d.ts +0 -65
- package/dist/components/interactions/EpSummativeTable.vue.d.ts +0 -32
- package/dist/components/interactions/EpSvgShow.vue.d.ts +0 -33
- package/dist/components/interactions/EpTabs.vue.d.ts +0 -2
- package/dist/components/interactions/EpTooltip.vue.d.ts +0 -51
- package/dist/components/medias/EpAudio.vue.d.ts +0 -48
- package/dist/components/medias/EpCardLink.vue.d.ts +0 -65
- package/dist/components/medias/EpCarousel.vue.d.ts +0 -57
- package/dist/components/medias/EpHierarchy.vue.d.ts +0 -51
- package/dist/components/medias/EpIframe.vue.d.ts +0 -45
- package/dist/components/medias/EpKatex.vue.d.ts +0 -36
- package/dist/components/medias/EpLink.vue.d.ts +0 -42
- package/dist/components/medias/EpLinkVersion.vue.d.ts +0 -50
- package/dist/components/medias/EpLottieSvg.vue.d.ts +0 -58
- package/dist/components/medias/EpSoftware.vue.d.ts +0 -59
- package/dist/components/medias/EpSvg.vue.d.ts +0 -38
- package/dist/components/medias/EpTerm.vue.d.ts +0 -72
- package/dist/components/medias/EpTimeLine.vue.d.ts +0 -32
- package/dist/components/medias/EpVideo.vue.d.ts +0 -45
- package/dist/components/medias/EpVideoPanopto.vue.d.ts +0 -45
- package/dist/components/medias/EpWordDef.vue.d.ts +0 -63
- package/dist/components/signages/EpAlert.vue.d.ts +0 -55
- package/dist/components/signages/EpBadge.vue.d.ts +0 -59
- package/dist/components/signages/EpHeader.vue.d.ts +0 -112
- package/dist/components/signages/EpNothing.vue.d.ts +0 -2
- package/dist/components/signages/EpQuote.vue.d.ts +0 -49
- package/dist/components/signages/EpSkeleton.vue.d.ts +0 -45
- package/dist/components/tools/BgAudio.vue.d.ts +0 -29
- package/dist/components/tools/Details.vue.d.ts +0 -36
- package/dist/components/tools/DisplayBox.vue.d.ts +0 -19
- package/dist/components/tools/SvgFilter.vue.d.ts +0 -2
- package/dist/components/tools/TextMedia.vue.d.ts +0 -27
- package/dist/components/tools/TimelineItem.vue.d.ts +0 -38
- package/dist/composables/isHtml.d.ts +0 -1
- package/dist/composables/useColors.d.ts +0 -1
- package/dist/composables/useComponent.d.ts +0 -6
- package/dist/composables/useCreateUid.d.ts +0 -2
- package/dist/composables/useIcons.d.ts +0 -26
- package/dist/composables/useMarkdown.d.ts +0 -1
- package/dist/composables/useRenderText.d.ts +0 -1
- package/dist/ep-lib-ts.js +0 -61
- package/dist/ep-lib-ts.umd.cjs +0 -465
- package/dist/index-Bhy3n4DI.js +0 -49358
- package/dist/index-CO05CQPt.js +0 -3430
- package/dist/index-Cllz2Ia3.js +0 -24640
- package/dist/index.d.ts +0 -60
- package/dist/main.d.ts +0 -1
- package/dist/prism-CFRbvIsk.js +0 -1182
- package/dist/router.d.ts +0 -2
- package/dist/style.css +0 -1
- package/src/components/basics/EpAvatar.vue +0 -72
- package/src/components/basics/EpBadge.vue +0 -78
- package/src/components/basics/EpBtn.vue +0 -88
- package/src/components/basics/EpCard.vue +0 -125
- package/src/components/basics/EpChip.vue +0 -80
- package/src/components/basics/EpDivider.vue +0 -40
- package/src/components/basics/EpFlex.vue +0 -43
- package/src/components/basics/EpHover.vue +0 -61
- package/src/components/basics/EpHoverCard.vue +0 -125
- package/src/components/basics/EpIcon.vue +0 -25
- package/src/components/basics/EpImg.vue +0 -162
- package/src/components/basics/EpImgCarousel.vue +0 -145
- package/src/components/basics/EpList.vue +0 -10
- package/src/components/basics/EpListitem.vue +0 -52
- package/src/components/basics/EpSection.vue +0 -74
- package/src/components/basics/EpSectionCols.vue +0 -100
- package/src/components/basics/EpSpinner.vue +0 -57
- package/src/components/basics/EpStackedList.vue +0 -79
- package/src/components/basics/EpTable.vue +0 -33
- package/src/components/basics/EpText.vue +0 -148
- package/src/components/charts/EpBarChart.vue +0 -94
- package/src/components/charts/EpFunnelChart.vue +0 -135
- package/src/components/charts/EpLineChart.vue +0 -106
- package/src/components/charts/EpPieChart.vue +0 -102
- package/src/components/educationals/EpBranchingScenario.vue +0 -307
- package/src/components/educationals/EpCodeblock.vue +0 -74
- package/src/components/educationals/EpConclusion.vue +0 -38
- package/src/components/educationals/EpDescription.vue +0 -38
- package/src/components/educationals/EpDocument.vue +0 -92
- package/src/components/educationals/EpEdu.vue +0 -126
- package/src/components/educationals/EpInstructions.vue +0 -49
- package/src/components/educationals/EpIntroduction.vue +0 -38
- package/src/components/educationals/EpObjective.vue +0 -41
- package/src/components/educationals/EpReading.vue +0 -255
- package/src/components/educationals/EpResource.vue +0 -85
- package/src/components/educationals/EpScope.vue +0 -29
- package/src/components/educationals/EpSpecificObjective.vue +0 -37
- package/src/components/forms/EpCheckbox.vue +0 -47
- package/src/components/forms/EpInput.vue +0 -178
- package/src/components/forms/EpRadio.vue +0 -72
- package/src/components/forms/EpRadioSummative.vue +0 -53
- package/src/components/forms/EpSelect.vue +0 -30
- package/src/components/forms/EpSwitch.vue +0 -73
- package/src/components/forms/EpTextarea.vue +0 -87
- package/src/components/forms/EpToggle.vue +0 -96
- package/src/components/interactions/Ep360Image.vue +0 -338
- package/src/components/interactions/Ep360Video.vue +0 -356
- package/src/components/interactions/EpAccordeon.vue +0 -91
- package/src/components/interactions/EpContentSlider.vue +0 -177
- package/src/components/interactions/EpDarkmode.vue +0 -44
- package/src/components/interactions/EpDraggable.vue +0 -192
- package/src/components/interactions/EpHotsPot.vue +0 -86
- package/src/components/interactions/EpModal.vue +0 -119
- package/src/components/interactions/EpQuestion.vue +0 -188
- package/src/components/interactions/EpSummativeTable.vue +0 -59
- package/src/components/interactions/EpSvgShow.vue +0 -108
- package/src/components/interactions/EpTabs.vue +0 -10
- package/src/components/interactions/EpTooltip.vue +0 -164
- package/src/components/medias/EpAudio.vue +0 -97
- package/src/components/medias/EpCardLink.vue +0 -82
- package/src/components/medias/EpCarousel.vue +0 -190
- package/src/components/medias/EpHierarchy.vue +0 -368
- package/src/components/medias/EpIframe.vue +0 -73
- package/src/components/medias/EpKatex.vue +0 -76
- package/src/components/medias/EpLink.vue +0 -78
- package/src/components/medias/EpLinkVersion.vue +0 -48
- package/src/components/medias/EpLottieSvg.vue +0 -79
- package/src/components/medias/EpSoftware.vue +0 -92
- package/src/components/medias/EpSvg.vue +0 -66
- package/src/components/medias/EpTerm.vue +0 -174
- package/src/components/medias/EpTimeLine.vue +0 -109
- package/src/components/medias/EpVideo.vue +0 -130
- package/src/components/medias/EpVideoPanopto.vue +0 -71
- package/src/components/medias/EpWordDef.vue +0 -142
- package/src/components/signages/EpAlert.vue +0 -98
- package/src/components/signages/EpBadge.vue +0 -82
- package/src/components/signages/EpHeader.vue +0 -215
- package/src/components/signages/EpNothing.vue +0 -5
- package/src/components/signages/EpQuote.vue +0 -72
- package/src/components/signages/EpSkeleton.vue +0 -48
- package/src/components/tools/BgAudio.vue +0 -51
- package/src/components/tools/Details.vue +0 -47
- package/src/components/tools/DisplayBox.vue +0 -44
- package/src/components/tools/SvgFilter.vue +0 -220
- package/src/components/tools/TextMedia.vue +0 -44
- package/src/components/tools/TimelineItem.vue +0 -141
- /package/dist/{types/Accordeon.d.ts → Accordeon.d.ts} +0 -0
- /package/dist/{types/Aframe.d.ts → Aframe.d.ts} +0 -0
- /package/dist/{types/Alert.d.ts → Alert.d.ts} +0 -0
- /package/dist/{types/Avatar.d.ts → Avatar.d.ts} +0 -0
- /package/dist/{types/Badge.d.ts → Badge.d.ts} +0 -0
- /package/dist/{types/Border.d.ts → Border.d.ts} +0 -0
- /package/dist/{types/Btn.d.ts → Btn.d.ts} +0 -0
- /package/dist/{types/Card.d.ts → Card.d.ts} +0 -0
- /package/dist/{types/Chip.d.ts → Chip.d.ts} +0 -0
- /package/dist/{types/Codeblock.d.ts → Codeblock.d.ts} +0 -0
- /package/dist/{types/Cols.d.ts → Cols.d.ts} +0 -0
- /package/dist/{types/Component.d.ts → Component.d.ts} +0 -0
- /package/dist/{types/Draggable.d.ts → Draggable.d.ts} +0 -0
- /package/dist/{types/GlossaryEntry.d.ts → GlossaryEntry.d.ts} +0 -0
- /package/dist/{types/Hover.d.ts → Hover.d.ts} +0 -0
- /package/dist/{types/Image.d.ts → Image.d.ts} +0 -0
- /package/dist/{types/MandateLevel.d.ts → MandateLevel.d.ts} +0 -0
- /package/dist/{types/MediaCarousel.d.ts → MediaCarousel.d.ts} +0 -0
- /package/dist/{types/Medias.d.ts → Medias.d.ts} +0 -0
- /package/dist/{types/Radio.d.ts → Radio.d.ts} +0 -0
- /package/dist/{types/Slides.d.ts → Slides.d.ts} +0 -0
- /package/dist/{types/StackedList.d.ts → StackedList.d.ts} +0 -0
- /package/dist/{types/SummativeTable.d.ts → SummativeTable.d.ts} +0 -0
- /package/dist/{types/Switch.d.ts → Switch.d.ts} +0 -0
- /package/dist/{types/Three.d.ts → Three.d.ts} +0 -0
- /package/dist/{types/TimeLine.d.ts → TimeLine.d.ts} +0 -0
- /package/dist/{types/Tooltip.d.ts → Tooltip.d.ts} +0 -0
- /package/dist/{EpCheckbox-D-AiG1k1.js → components/forms/EpCheckbox.vue.js} +0 -0
- /package/dist/{EpSelect-C10jbOyP.js → components/forms/EpSelect.vue.js} +0 -0
- /package/dist/{types/image360.d.ts → image360.d.ts} +0 -0
- /package/dist/{types/video360.d.ts → video360.d.ts} +0 -0
|
@@ -1,338 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
// DO NOT DELETE. IMPORTANT FOR VIDEO NAVIGATION : this.el.object3D.getWorldPosition(position);
|
|
3
|
-
/*import { ref, onMounted } from "vue";
|
|
4
|
-
import type { Pin, Scene } from "../../types/image360";
|
|
5
|
-
|
|
6
|
-
interface Props {
|
|
7
|
-
scenes: Scene[];
|
|
8
|
-
id?: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const props = defineProps<Props>();
|
|
12
|
-
|
|
13
|
-
const currentSceneIndex = ref(0);
|
|
14
|
-
const hoveredPin = ref<Pin | null>(null);
|
|
15
|
-
const clickedPin = ref<Pin | null>(null);
|
|
16
|
-
|
|
17
|
-
let AFRAME: any;
|
|
18
|
-
let THREE: any;
|
|
19
|
-
|
|
20
|
-
onMounted(async () => {
|
|
21
|
-
// Lazy load aframe and three.js
|
|
22
|
-
const aframeModule = await import('aframe');
|
|
23
|
-
AFRAME = window.AFRAME ?? aframeModule;
|
|
24
|
-
THREE = await import('three');
|
|
25
|
-
|
|
26
|
-
await checkAndDeleteComponent("rotation-reader", 2000);
|
|
27
|
-
await registerRotationReaderComponent(2000);
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
function handleMarkerClick(pin: Pin, event: Event): void {
|
|
31
|
-
if (!pin) return;
|
|
32
|
-
|
|
33
|
-
if (pin?.event === "onClick" || !pin.event) {
|
|
34
|
-
if (pin.type === "descriptive") {
|
|
35
|
-
clickedPin.value = pin;
|
|
36
|
-
const target = event.target as HTMLElement;
|
|
37
|
-
target.setAttribute("material", "opacity: 0; transparent: true");
|
|
38
|
-
} else if (pin.type === "action") {
|
|
39
|
-
const nextSceneIndex = props.scenes.findIndex(scene => scene.id === pin.scene);
|
|
40
|
-
if (nextSceneIndex !== -1) {
|
|
41
|
-
currentSceneIndex.value = nextSceneIndex;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function handleMouseEnter(pin: Pin | null, event: Event): void {
|
|
48
|
-
if (!pin) return;
|
|
49
|
-
|
|
50
|
-
if (pin?.event === "onHover" || !pin?.event) {
|
|
51
|
-
hoveredPin.value = pin;
|
|
52
|
-
const target = event.target as HTMLElement;
|
|
53
|
-
target.setAttribute("material", "opacity: 0; transparent: true");
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function handleMouseLeave(pin: Pin | null, event: Event): void {
|
|
58
|
-
if (!pin) return;
|
|
59
|
-
|
|
60
|
-
const relatedTarget = (event as MouseEvent).relatedTarget as HTMLElement;
|
|
61
|
-
|
|
62
|
-
if (pin?.event === "onHover" || !pin?.event) {
|
|
63
|
-
const target = event.target as HTMLElement;
|
|
64
|
-
if (clickedPin.value === pin) {
|
|
65
|
-
target.setAttribute("material", "opacity: 1; transparent: true");
|
|
66
|
-
}
|
|
67
|
-
if (
|
|
68
|
-
!relatedTarget?.classList.contains("interactive-area") &&
|
|
69
|
-
hoveredPin.value?.id === pin?.id
|
|
70
|
-
) {
|
|
71
|
-
hoveredPin.value = null;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
function convertToPosition(x: number, y: number): string {
|
|
77
|
-
return `${x / 10} ${y / 10} -5`;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
async function checkAndDeleteComponent(componentName: string, delayMs = 1000) {
|
|
81
|
-
if (AFRAME?.components[componentName]) {
|
|
82
|
-
await delay(delayMs);
|
|
83
|
-
delete AFRAME.components[componentName];
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
function delay(ms: number): Promise<void> {
|
|
88
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
async function registerRotationReaderComponent(delayMs = 1000) {
|
|
92
|
-
await delay(delayMs);
|
|
93
|
-
if (AFRAME.components["rotation-reader"]) {
|
|
94
|
-
console.warn("Existing rotation-reader component found. Re-registering...");
|
|
95
|
-
delete AFRAME.components["rotation-reader"];
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
AFRAME.registerComponent("rotation-reader", {
|
|
99
|
-
schema: {},
|
|
100
|
-
tick: createTickFunction(),
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
function createTickFunction() {
|
|
105
|
-
const quaternion = new THREE.Quaternion();
|
|
106
|
-
const cameraPosition = new THREE.Vector3();
|
|
107
|
-
const objectPosition = new THREE.Vector3();
|
|
108
|
-
|
|
109
|
-
const referenceDistance = 5;
|
|
110
|
-
const initialScale = 0.8;
|
|
111
|
-
|
|
112
|
-
return function (this: {
|
|
113
|
-
el: { object3D: InstanceType<typeof THREE.Object3D>; sceneEl: any };
|
|
114
|
-
}) {
|
|
115
|
-
updateCameraQuaternion(this.el.object3D, quaternion);
|
|
116
|
-
|
|
117
|
-
const sceneEl = this.el.sceneEl;
|
|
118
|
-
updatePinsRotation(quaternion, sceneEl);
|
|
119
|
-
|
|
120
|
-
this.el.object3D.getWorldPosition(cameraPosition);
|
|
121
|
-
|
|
122
|
-
sceneEl.querySelectorAll(".pin-marker").forEach((pinElement: any) => {
|
|
123
|
-
const pinObject = pinElement.object3D;
|
|
124
|
-
if (pinObject) {
|
|
125
|
-
pinObject.getWorldPosition(objectPosition);
|
|
126
|
-
const distance = cameraPosition.distanceTo(objectPosition);
|
|
127
|
-
const scale = (distance * initialScale) / referenceDistance;
|
|
128
|
-
pinObject.scale.set(scale, scale, scale);
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
|
|
132
|
-
sceneEl.querySelectorAll(".frame").forEach((frameElement: any) => {
|
|
133
|
-
const frameObject = frameElement.object3D;
|
|
134
|
-
if (frameObject) {
|
|
135
|
-
frameObject.getWorldPosition(objectPosition);
|
|
136
|
-
const distance = cameraPosition.distanceTo(objectPosition);
|
|
137
|
-
const scale = (distance * initialScale) / referenceDistance;
|
|
138
|
-
frameObject.scale.set(scale, scale, scale);
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
function updateCameraQuaternion(
|
|
145
|
-
object3D: InstanceType<typeof THREE.Object3D>,
|
|
146
|
-
quaternion: InstanceType<typeof THREE.Quaternion>
|
|
147
|
-
) {
|
|
148
|
-
object3D.getWorldQuaternion(quaternion);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
function updatePinsRotation(quaternion: InstanceType<typeof THREE.Quaternion>, sceneEl: any) {
|
|
152
|
-
sceneEl.querySelectorAll(".pin-marker").forEach((pinElement: any) => {
|
|
153
|
-
const pinObject = pinElement.object3D;
|
|
154
|
-
if (pinObject) {
|
|
155
|
-
pinObject.setRotationFromQuaternion(quaternion);
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
sceneEl.querySelectorAll(".frame").forEach((pinElement: any) => {
|
|
159
|
-
const pinObject = pinElement.object3D;
|
|
160
|
-
if (pinObject) {
|
|
161
|
-
pinObject.setRotationFromQuaternion(quaternion);
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
function removeFrame() {
|
|
167
|
-
clickedPin.value = null;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
function getPinOpacity(pinId: number): number {
|
|
171
|
-
return (hoveredPin.value?.id === pinId || clickedPin.value?.id === pinId) ? 0 : 1;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
function getPinColor(pin: Pin): string {
|
|
175
|
-
return pin.color || "indigo";
|
|
176
|
-
}*/
|
|
177
|
-
</script>
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
<template>
|
|
181
|
-
<!--
|
|
182
|
-
<div
|
|
183
|
-
style="
|
|
184
|
-
width: 800px;
|
|
185
|
-
height: 600px;
|
|
186
|
-
overflow: hidden;
|
|
187
|
-
position: relative;
|
|
188
|
-
margin: auto;
|
|
189
|
-
"
|
|
190
|
-
>
|
|
191
|
-
<a-scene :id="id" embedded>
|
|
192
|
-
<a-assets>
|
|
193
|
-
<img
|
|
194
|
-
v-for="scene in props.scenes"
|
|
195
|
-
:key="scene.id"
|
|
196
|
-
:id="`image${scene.id}`"
|
|
197
|
-
:src="scene.skyImage"
|
|
198
|
-
crossorigin="anonymous"
|
|
199
|
-
/>
|
|
200
|
-
</a-assets>
|
|
201
|
-
<a-entity camera look-controls id="rig" rotation-reader>
|
|
202
|
-
<a-cursor
|
|
203
|
-
id="cursor"
|
|
204
|
-
cursor="rayOrigin: mouse"
|
|
205
|
-
raycaster="objects: none"
|
|
206
|
-
geometry="primitive: ring; radiusInner: 0; radiusOuter: 0"
|
|
207
|
-
material="opacity: 0; transparent: true"
|
|
208
|
-
></a-cursor>
|
|
209
|
-
</a-entity>
|
|
210
|
-
|
|
211
|
-
<a-sky
|
|
212
|
-
:src="`#image${props.scenes[currentSceneIndex].id}`"
|
|
213
|
-
radius="100"
|
|
214
|
-
></a-sky>
|
|
215
|
-
|
|
216
|
-
<a-entity
|
|
217
|
-
v-for="pin in props.scenes[currentSceneIndex].pins"
|
|
218
|
-
:key="pin.id"
|
|
219
|
-
:position="convertToPosition(pin.x, pin.y)"
|
|
220
|
-
cursor="rayOrigin: mouse"
|
|
221
|
-
>
|
|
222
|
-
<a-circle
|
|
223
|
-
class="pin-marker"
|
|
224
|
-
:color="getPinColor(pin)"
|
|
225
|
-
radius="0.15"
|
|
226
|
-
shader="flat"
|
|
227
|
-
:material="`opacity: ${getPinOpacity(
|
|
228
|
-
pin.id
|
|
229
|
-
)}; transparent: true;`"
|
|
230
|
-
@click="(event: Event) => handleMarkerClick(pin, event)"
|
|
231
|
-
@mouseenter="(event: Event) => handleMouseEnter(pin, event)"
|
|
232
|
-
>
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
<a-circle
|
|
236
|
-
position="0 0 0.01"
|
|
237
|
-
color="#FFF"
|
|
238
|
-
radius="0.05"
|
|
239
|
-
material="opacity: 0;"
|
|
240
|
-
></a-circle>
|
|
241
|
-
|
|
242
|
-
</a-circle>
|
|
243
|
-
</a-entity>
|
|
244
|
-
|
|
245
|
-
<a-entity
|
|
246
|
-
v-if="hoveredPin"
|
|
247
|
-
:position="convertToPosition(hoveredPin.x, hoveredPin.y)"
|
|
248
|
-
class="frame interactive-area"
|
|
249
|
-
cursor="rayOrigin: mouse"
|
|
250
|
-
@mouseleave="(event: Event) => handleMouseLeave(hoveredPin, event)"
|
|
251
|
-
>
|
|
252
|
-
<a-plane
|
|
253
|
-
color="white"
|
|
254
|
-
:opacity="1"
|
|
255
|
-
width="4"
|
|
256
|
-
height="1.5"
|
|
257
|
-
material="shader: standard; side: double;"
|
|
258
|
-
position="0 0 0"
|
|
259
|
-
geometry="primitive: plane; height: 1.5; width: 4;"
|
|
260
|
-
>
|
|
261
|
-
</a-plane>
|
|
262
|
-
|
|
263
|
-
<a-text
|
|
264
|
-
:value="hoveredPin.title"
|
|
265
|
-
color="#2c3e50"
|
|
266
|
-
font="dejavu"
|
|
267
|
-
align="center"
|
|
268
|
-
width="3.8"
|
|
269
|
-
position="0 0.3 0.01"
|
|
270
|
-
>
|
|
271
|
-
</a-text>
|
|
272
|
-
|
|
273
|
-
<a-text
|
|
274
|
-
:value="hoveredPin.description"
|
|
275
|
-
color="#34495e"
|
|
276
|
-
font="dejavu"
|
|
277
|
-
align="center"
|
|
278
|
-
width="3.5"
|
|
279
|
-
position="0 -0.3 0.01"
|
|
280
|
-
>
|
|
281
|
-
</a-text>
|
|
282
|
-
</a-entity>
|
|
283
|
-
|
|
284
|
-
<a-entity
|
|
285
|
-
v-if="clickedPin"
|
|
286
|
-
:position="convertToPosition(clickedPin.x, clickedPin.y)"
|
|
287
|
-
class="frame interactive-area"
|
|
288
|
-
cursor="rayOrigin: mouse"
|
|
289
|
-
>
|
|
290
|
-
<a-plane
|
|
291
|
-
color="white"
|
|
292
|
-
:opacity="1"
|
|
293
|
-
width="4"
|
|
294
|
-
height="1.5"
|
|
295
|
-
material="shader: standard; side: double;"
|
|
296
|
-
position="0 0 0"
|
|
297
|
-
geometry="primitive: plane; height: 1.5; width: 4;"
|
|
298
|
-
>
|
|
299
|
-
</a-plane>
|
|
300
|
-
|
|
301
|
-
<a-plane
|
|
302
|
-
class="close-frame"
|
|
303
|
-
color="red"
|
|
304
|
-
width="0.4"
|
|
305
|
-
height="0.4"
|
|
306
|
-
position="1.8 0.55 0.01"
|
|
307
|
-
material="shader: flat; side: double; transparent: true;"
|
|
308
|
-
geometry="primitive: plane; height: 0.4; width: 0.4;"
|
|
309
|
-
@click="removeFrame"
|
|
310
|
-
>
|
|
311
|
-
</a-plane>
|
|
312
|
-
|
|
313
|
-
<a-text
|
|
314
|
-
:value="clickedPin.title"
|
|
315
|
-
color="#2c3e50"
|
|
316
|
-
font="dejavu"
|
|
317
|
-
align="center"
|
|
318
|
-
width="3.8"
|
|
319
|
-
position="0 0.3 0.01"
|
|
320
|
-
>
|
|
321
|
-
</a-text>
|
|
322
|
-
|
|
323
|
-
<a-text
|
|
324
|
-
:value="clickedPin.description"
|
|
325
|
-
color="#34495e"
|
|
326
|
-
font="dejavu"
|
|
327
|
-
align="center"
|
|
328
|
-
width="3.5"
|
|
329
|
-
position="0 -0.3 0.01"
|
|
330
|
-
>
|
|
331
|
-
</a-text>
|
|
332
|
-
</a-entity>
|
|
333
|
-
</a-scene>
|
|
334
|
-
</div>-->
|
|
335
|
-
<div>
|
|
336
|
-
La lib aframe et three.js à revoir
|
|
337
|
-
</div>
|
|
338
|
-
</template>
|
|
@@ -1,356 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
/*
|
|
3
|
-
import { ref, onMounted } from "vue";
|
|
4
|
-
// import * as AFRAME from "aframe";
|
|
5
|
-
|
|
6
|
-
import { Object3D, Quaternion, Vector3 } from "three";
|
|
7
|
-
import type { Pin, Scene } from "../../types/video360";
|
|
8
|
-
|
|
9
|
-
interface Props {
|
|
10
|
-
scenes:Scene[];
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const props = defineProps<Props>();
|
|
14
|
-
|
|
15
|
-
const currentSceneIndex = ref(0);
|
|
16
|
-
const hoveredPin = ref<Pin | null>(null);
|
|
17
|
-
const clickedPin = ref<Pin | null>(null);
|
|
18
|
-
const isPlaying = ref(false);
|
|
19
|
-
|
|
20
|
-
const AFRAME = window.AFRAME;
|
|
21
|
-
|
|
22
|
-
if (!AFRAME.components["rotation-reader"]) {
|
|
23
|
-
AFRAME.registerComponent("rotation-reader", {
|
|
24
|
-
schema: {},
|
|
25
|
-
tick: createTickFunction(),
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function handleMarkerClick(pin: Pin, event: Event): void {
|
|
30
|
-
if (!pin) return;
|
|
31
|
-
|
|
32
|
-
if (pin?.event === "onClick") {
|
|
33
|
-
if (pin.type === "descriptive") {
|
|
34
|
-
clickedPin.value = pin;
|
|
35
|
-
const target = event.target as HTMLElement;
|
|
36
|
-
target.setAttribute("material", "opacity: 0; transparent: true");
|
|
37
|
-
console.log("Marker clicked:", pin);
|
|
38
|
-
} else if (pin.type === "action") {
|
|
39
|
-
const nextSceneIndex = props.scenes.findIndex(
|
|
40
|
-
(scene) => scene.id === pin.scene
|
|
41
|
-
);
|
|
42
|
-
if (nextSceneIndex !== -1) {
|
|
43
|
-
currentSceneIndex.value = nextSceneIndex;
|
|
44
|
-
}
|
|
45
|
-
console.log(
|
|
46
|
-
"Action Pin Clicked. Scene switched to:",
|
|
47
|
-
currentSceneIndex.value
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
function handleMouseEnter(pin: Pin | null, event: Event): void {
|
|
54
|
-
if (!pin) return;
|
|
55
|
-
if (pin.event === "onHover" || !pin.event) {
|
|
56
|
-
hoveredPin.value = pin;
|
|
57
|
-
console.log("Marker hovered:", pin);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function handleMouseLeave(pin: Pin | null, event: Event): void {
|
|
62
|
-
if (!pin) return;
|
|
63
|
-
const relatedTarget = (event as MouseEvent).relatedTarget as HTMLElement;
|
|
64
|
-
if (pin.event === "onHover" || !pin?.event) {
|
|
65
|
-
if (
|
|
66
|
-
!relatedTarget?.classList.contains("interactive-area") &&
|
|
67
|
-
hoveredPin.value?.id === pin.id
|
|
68
|
-
) {
|
|
69
|
-
hoveredPin.value = null;
|
|
70
|
-
console.log("Hover cleared:", pin);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
function convertToPosition(x: number, y: number): string {
|
|
76
|
-
return `${x / 10} ${y / 10} -5`;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
function removeFrame() {
|
|
80
|
-
clickedPin.value = null;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
function getPinColor(pin: Pin): string {
|
|
84
|
-
return pin.color || "indigo";
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
function getPinOpacity(pinId: number): number {
|
|
88
|
-
return (hoveredPin.value && hoveredPin.value.id === pinId) ||
|
|
89
|
-
(clickedPin.value && clickedPin.value.id === pinId)
|
|
90
|
-
? 0
|
|
91
|
-
: 1;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
function toggleVideo() {
|
|
95
|
-
isPlaying.value = !isPlaying.value;
|
|
96
|
-
const videoElements = document.querySelectorAll<HTMLVideoElement>(".video");
|
|
97
|
-
videoElements.forEach((video) => {
|
|
98
|
-
isPlaying.value ? video.play() : video.pause();
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
onMounted(() => {
|
|
103
|
-
(async () => {
|
|
104
|
-
await checkAndDeleteComponent("rotation-reader", 2000);
|
|
105
|
-
})();
|
|
106
|
-
(async () => {
|
|
107
|
-
await registerRotationReaderComponent(2000);
|
|
108
|
-
})();
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
async function checkAndDeleteComponent(
|
|
112
|
-
componentName: string,
|
|
113
|
-
delayMs: number = 1000
|
|
114
|
-
) {
|
|
115
|
-
if (AFRAME.components[componentName]) {
|
|
116
|
-
await delay(delayMs);
|
|
117
|
-
delete AFRAME.components[componentName];
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
function delay(ms: number): Promise<void> {
|
|
122
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
async function registerRotationReaderComponent(delayMs: number = 1000) {
|
|
126
|
-
await delay(delayMs);
|
|
127
|
-
if (AFRAME.components["rotation-reader"]) {
|
|
128
|
-
console.warn("Existing rotation-reader found. Re-registering...");
|
|
129
|
-
delete AFRAME.components["rotation-reader"];
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
AFRAME.registerComponent("rotation-reader", {
|
|
133
|
-
schema: {},
|
|
134
|
-
tick: createTickFunction(),
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
function createTickFunction() {
|
|
139
|
-
const quaternion = new Quaternion();
|
|
140
|
-
const cameraPosition = new Vector3();
|
|
141
|
-
const objectPosition = new Vector3();
|
|
142
|
-
|
|
143
|
-
const referenceDistance = 5;
|
|
144
|
-
const initialScale = 0.8;
|
|
145
|
-
|
|
146
|
-
return function (this: {
|
|
147
|
-
el: { object3D: InstanceType<typeof Object3D>; sceneEl: any };
|
|
148
|
-
}) {
|
|
149
|
-
updateCameraQuaternion(this.el.object3D, quaternion);
|
|
150
|
-
updatePinsRotation(quaternion);
|
|
151
|
-
|
|
152
|
-
this.el.object3D.getWorldPosition(cameraPosition);
|
|
153
|
-
|
|
154
|
-
document.querySelectorAll(".pin-marker").forEach((pinElement) => {
|
|
155
|
-
const pinObject = (pinElement as any).object3D;
|
|
156
|
-
if (pinObject) {
|
|
157
|
-
pinObject.getWorldPosition(objectPosition);
|
|
158
|
-
const distance = cameraPosition.distanceTo(objectPosition);
|
|
159
|
-
const scale = (distance * initialScale) / referenceDistance;
|
|
160
|
-
pinObject.scale.set(scale, scale, scale);
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
|
|
164
|
-
document.querySelectorAll(".frame").forEach((frameElement) => {
|
|
165
|
-
const frameObject = (frameElement as any).object3D;
|
|
166
|
-
if (frameObject) {
|
|
167
|
-
frameObject.getWorldPosition(objectPosition);
|
|
168
|
-
const distance = cameraPosition.distanceTo(objectPosition);
|
|
169
|
-
const scale = (distance * initialScale) / referenceDistance;
|
|
170
|
-
frameObject.scale.set(scale, scale, scale);
|
|
171
|
-
}
|
|
172
|
-
});
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
function updateCameraQuaternion(
|
|
177
|
-
object3D: InstanceType<typeof Object3D>,
|
|
178
|
-
quaternion: InstanceType<typeof Quaternion>
|
|
179
|
-
) {
|
|
180
|
-
object3D.getWorldQuaternion(quaternion);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
function updatePinsRotation(quaternion: InstanceType<typeof Quaternion>) {
|
|
184
|
-
|
|
185
|
-
document.querySelectorAll(".pin-marker").forEach((pinElement) => {
|
|
186
|
-
const pinObject = (pinElement as any).object3D;
|
|
187
|
-
if (pinObject) {
|
|
188
|
-
pinObject.setRotationFromQuaternion(quaternion);
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
|
|
192
|
-
document.querySelectorAll(".frame").forEach((frameElement) => {
|
|
193
|
-
const frameObject = (frameElement as any).object3D;
|
|
194
|
-
if (frameObject) {
|
|
195
|
-
frameObject.setRotationFromQuaternion(quaternion);
|
|
196
|
-
}
|
|
197
|
-
});
|
|
198
|
-
}*/
|
|
199
|
-
</script>
|
|
200
|
-
|
|
201
|
-
<template>
|
|
202
|
-
<!--
|
|
203
|
-
<div style="width: 1200px; height: 800px; position: relative; margin: auto">
|
|
204
|
-
<button @click="toggleVideo()">
|
|
205
|
-
{{ isPlaying ? "Pause" : "Play" }}
|
|
206
|
-
</button>
|
|
207
|
-
|
|
208
|
-
<a-scene embedded>
|
|
209
|
-
<a-assets>
|
|
210
|
-
<video
|
|
211
|
-
v-for="scene in props.scenes"
|
|
212
|
-
:id="`video${scene.id}`"
|
|
213
|
-
:src="scene.skyVideo"
|
|
214
|
-
muted
|
|
215
|
-
class="video"
|
|
216
|
-
playsinline
|
|
217
|
-
loop
|
|
218
|
-
crossorigin="anonymous"
|
|
219
|
-
></video>
|
|
220
|
-
</a-assets>
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
<a-entity camera look-controls id="rig" rotation-reader>
|
|
224
|
-
<a-cursor
|
|
225
|
-
id="cursor"
|
|
226
|
-
cursor="rayOrigin: mouse"
|
|
227
|
-
raycaster="objects: none"
|
|
228
|
-
geometry="primitive: ring; radiusInner: 0; radiusOuter: 0"
|
|
229
|
-
material="opacity: 0; transparent: true"
|
|
230
|
-
></a-cursor>
|
|
231
|
-
</a-entity>
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
<a-videosphere
|
|
235
|
-
v-for="scene in props.scenes"
|
|
236
|
-
:key="scene.id"
|
|
237
|
-
:src="`#video${props.scenes[currentSceneIndex].id}`"
|
|
238
|
-
></a-videosphere>
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
<a-entity
|
|
242
|
-
v-for="pin in props.scenes[currentSceneIndex].pins"
|
|
243
|
-
:key="pin.id"
|
|
244
|
-
:position="convertToPosition(pin.x, pin.y)"
|
|
245
|
-
cursor="rayOrigin: mouse"
|
|
246
|
-
>
|
|
247
|
-
<a-circle
|
|
248
|
-
class="pin-marker"
|
|
249
|
-
:color="getPinColor(pin)"
|
|
250
|
-
radius="0.15"
|
|
251
|
-
shader="flat"
|
|
252
|
-
:material="`opacity: ${getPinOpacity(
|
|
253
|
-
pin.id
|
|
254
|
-
)}; transparent: true`"
|
|
255
|
-
@click="(event: Event) => handleMarkerClick(pin, event)"
|
|
256
|
-
@mouseenter="(event: Event) => handleMouseEnter(pin, event)"
|
|
257
|
-
@mouseleave="(event: Event) => handleMouseLeave(pin, event)"
|
|
258
|
-
>
|
|
259
|
-
|
|
260
|
-
<a-circle
|
|
261
|
-
position="0 0 0.01"
|
|
262
|
-
color="#FFF"
|
|
263
|
-
radius="0.05"
|
|
264
|
-
material="opacity: 0;"
|
|
265
|
-
></a-circle>
|
|
266
|
-
|
|
267
|
-
</a-circle>
|
|
268
|
-
</a-entity>
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
<a-entity
|
|
272
|
-
v-if="hoveredPin"
|
|
273
|
-
:position="convertToPosition(hoveredPin.x, hoveredPin.y)"
|
|
274
|
-
class="frame interactive-area"
|
|
275
|
-
cursor="rayOrigin: mouse"
|
|
276
|
-
@mouseleave="(event: Event) => handleMouseLeave(hoveredPin, event)"
|
|
277
|
-
>
|
|
278
|
-
<a-plane
|
|
279
|
-
color="white"
|
|
280
|
-
:opacity="1"
|
|
281
|
-
width="4"
|
|
282
|
-
height="1.5"
|
|
283
|
-
material="shader: standard; side: double;"
|
|
284
|
-
position="0 0 0"
|
|
285
|
-
geometry="primitive: plane; height: 1.5; width: 4;"
|
|
286
|
-
></a-plane>
|
|
287
|
-
|
|
288
|
-
<a-text
|
|
289
|
-
:value="hoveredPin.title"
|
|
290
|
-
color="#2c3e50"
|
|
291
|
-
font="dejavu"
|
|
292
|
-
align="center"
|
|
293
|
-
width="3.8"
|
|
294
|
-
position="0 0.3 0.01"
|
|
295
|
-
></a-text>
|
|
296
|
-
<a-text
|
|
297
|
-
:value="hoveredPin.description"
|
|
298
|
-
color="#34495e"
|
|
299
|
-
font="dejavu"
|
|
300
|
-
align="center"
|
|
301
|
-
width="3.5"
|
|
302
|
-
position="0 -0.3 0.01"
|
|
303
|
-
></a-text>
|
|
304
|
-
</a-entity>
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
<a-entity
|
|
308
|
-
v-if="clickedPin"
|
|
309
|
-
:position="convertToPosition(clickedPin.x, clickedPin.y)"
|
|
310
|
-
class="frame interactive-area"
|
|
311
|
-
cursor="rayOrigin: mouse"
|
|
312
|
-
>
|
|
313
|
-
<a-plane
|
|
314
|
-
color="white"
|
|
315
|
-
:opacity="1"
|
|
316
|
-
width="4"
|
|
317
|
-
height="1.5"
|
|
318
|
-
material="shader: standard; side: double;"
|
|
319
|
-
position="0 0 0"
|
|
320
|
-
geometry="primitive: plane; height: 1.5; width: 4;"
|
|
321
|
-
></a-plane>
|
|
322
|
-
|
|
323
|
-
<a-plane
|
|
324
|
-
class="close-frame"
|
|
325
|
-
color="red"
|
|
326
|
-
width="0.4"
|
|
327
|
-
height="0.4"
|
|
328
|
-
position="1.8 0.55 0.01"
|
|
329
|
-
material="shader: flat; side: double; transparent: true;"
|
|
330
|
-
geometry="primitive: plane; height: 0.4; width: 0.4;"
|
|
331
|
-
@click="removeFrame"
|
|
332
|
-
></a-plane>
|
|
333
|
-
|
|
334
|
-
<a-text
|
|
335
|
-
:value="clickedPin.title"
|
|
336
|
-
color="#2c3e50"
|
|
337
|
-
font="dejavu"
|
|
338
|
-
align="center"
|
|
339
|
-
width="3.8"
|
|
340
|
-
position="0 0.3 0.01"
|
|
341
|
-
></a-text>
|
|
342
|
-
<a-text
|
|
343
|
-
:value="clickedPin.description"
|
|
344
|
-
color="#34495e"
|
|
345
|
-
font="dejavu"
|
|
346
|
-
align="center"
|
|
347
|
-
width="3.5"
|
|
348
|
-
position="0 -0.3 0.01"
|
|
349
|
-
></a-text>
|
|
350
|
-
</a-entity>
|
|
351
|
-
</a-scene>
|
|
352
|
-
</div>-->
|
|
353
|
-
<div>
|
|
354
|
-
La lib aframe et three.js à revoir
|
|
355
|
-
</div>
|
|
356
|
-
</template>
|