@realsee/dnalogel 2.1.0-alpha.2 → 2.1.0-alpha.3
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/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/dist/CSS3DRenderPlugin/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/dist/CSS3DRenderPlugin/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/dist/CSS3DRenderPlugin/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/dist/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/dist/CSS3DRenderPlugin/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/controller/index.d.ts +8 -6
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/index.d.ts +0 -1
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/typings/controller.d.ts +10 -1
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/typings/tag.d.ts +21 -9
- package/dist/CSS3DRenderPlugin/index.js +12 -6
- package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/dist/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/dist/CameraMovementPlugin/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/dist/CameraMovementPlugin/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/dist/CameraMovementPlugin/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/dist/CameraMovementPlugin/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/dist/CameraMovementPlugin/PanoTagPlugin/controller/index.d.ts +8 -6
- package/dist/CameraMovementPlugin/PanoTagPlugin/index.d.ts +0 -1
- package/dist/CameraMovementPlugin/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/CameraMovementPlugin/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/CameraMovementPlugin/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/CameraMovementPlugin/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/CameraMovementPlugin/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/CameraMovementPlugin/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/CameraMovementPlugin/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/CameraMovementPlugin/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/CameraMovementPlugin/PanoTagPlugin/typings/controller.d.ts +10 -1
- package/dist/CameraMovementPlugin/PanoTagPlugin/typings/tag.d.ts +21 -9
- package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/dist/CruisePlugin/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/dist/CruisePlugin/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/dist/CruisePlugin/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/dist/CruisePlugin/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/dist/CruisePlugin/PanoTagPlugin/Assets/Icon.d.ts +2 -0
- package/dist/CruisePlugin/PanoTagPlugin/controller/TagCacheController.d.ts +22 -0
- package/dist/CruisePlugin/PanoTagPlugin/controller/TagComputer.d.ts +69 -0
- package/dist/CruisePlugin/PanoTagPlugin/controller/index.d.ts +138 -0
- package/dist/CruisePlugin/PanoTagPlugin/index.d.ts +7 -0
- package/dist/CruisePlugin/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/CruisePlugin/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/CruisePlugin/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/CruisePlugin/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/CruisePlugin/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/CruisePlugin/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/CruisePlugin/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/CruisePlugin/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/CruisePlugin/PanoTagPlugin/typings/controller.d.ts +99 -0
- package/dist/CruisePlugin/PanoTagPlugin/typings/index.d.ts +2 -0
- package/dist/CruisePlugin/PanoTagPlugin/typings/tag.d.ts +223 -0
- package/dist/CruisePlugin/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +2 -0
- package/dist/CruisePlugin/PanoTagPlugin/utils/addDebugPoints.d.ts +3 -0
- package/dist/CruisePlugin/PanoTagPlugin/utils/checkRange.d.ts +4 -0
- package/dist/CruisePlugin/PanoTagPlugin/utils/debounce.d.ts +7 -0
- package/dist/CruisePlugin/PanoTagPlugin/utils/index.d.ts +12 -0
- package/dist/CruisePlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -0
- package/dist/CruisePlugin/PanoTagPlugin/utils/normalPositionToPositions.d.ts +2 -0
- package/dist/CruisePlugin/PanoTagPlugin/utils/planeNormal.d.ts +4 -0
- package/dist/CruisePlugin/PanoTagPlugin/utils/resizeObserver.d.ts +4 -0
- package/dist/CruisePlugin/PanoTagPlugin/utils/search.d.ts +11 -0
- package/dist/CruisePlugin/PanoTagPlugin/utils/tagPosition.d.ts +3 -0
- package/dist/CruisePlugin/PanoTagPlugin/utils/throttle.d.ts +7 -0
- package/dist/CruisePlugin/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/dist/CruisePlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/dist/GuideLinePlugin/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/dist/GuideLinePlugin/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/dist/GuideLinePlugin/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/dist/GuideLinePlugin/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/dist/GuideLinePlugin/PanoTagPlugin/Assets/Icon.d.ts +2 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/controller/TagCacheController.d.ts +22 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/controller/TagComputer.d.ts +69 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/controller/index.d.ts +138 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/index.d.ts +7 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/typings/controller.d.ts +99 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/typings/index.d.ts +2 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/typings/tag.d.ts +223 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +2 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/utils/addDebugPoints.d.ts +3 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/utils/checkRange.d.ts +4 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/utils/debounce.d.ts +7 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/utils/index.d.ts +12 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/utils/normalPositionToPositions.d.ts +2 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/utils/planeNormal.d.ts +4 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/utils/resizeObserver.d.ts +4 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/utils/search.d.ts +11 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/utils/tagPosition.d.ts +3 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/utils/throttle.d.ts +7 -0
- package/dist/GuideLinePlugin/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/dist/GuideLinePlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/dist/ItemLabelPlugin/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/dist/ItemLabelPlugin/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/dist/ItemLabelPlugin/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/dist/ItemLabelPlugin/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/dist/ItemLabelPlugin/PanoTagPlugin/controller/index.d.ts +8 -6
- package/dist/ItemLabelPlugin/PanoTagPlugin/index.d.ts +0 -1
- package/dist/ItemLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/ItemLabelPlugin/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/ItemLabelPlugin/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/ItemLabelPlugin/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/ItemLabelPlugin/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/ItemLabelPlugin/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/ItemLabelPlugin/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/ItemLabelPlugin/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/ItemLabelPlugin/PanoTagPlugin/typings/controller.d.ts +10 -1
- package/dist/ItemLabelPlugin/PanoTagPlugin/typings/tag.d.ts +21 -9
- package/dist/ItemLabelPlugin/index.js +12 -12
- package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/dist/ModelChassisCompassPlugin/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/dist/ModelChassisCompassPlugin/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/dist/ModelChassisCompassPlugin/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/dist/ModelChassisCompassPlugin/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/controller/index.d.ts +8 -6
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/index.d.ts +0 -1
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/typings/controller.d.ts +10 -1
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/typings/tag.d.ts +21 -9
- package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/dist/ModelEntryDoorGuidePlugin/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/dist/ModelEntryDoorGuidePlugin/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/dist/ModelEntryDoorGuidePlugin/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/dist/ModelEntryDoorGuidePlugin/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/controller/index.d.ts +8 -6
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/index.d.ts +0 -1
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/typings/controller.d.ts +10 -1
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/typings/tag.d.ts +21 -9
- package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/dist/ModelItemLabelPlugin/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/dist/ModelItemLabelPlugin/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/dist/ModelItemLabelPlugin/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/dist/ModelItemLabelPlugin/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/controller/index.d.ts +8 -6
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/index.d.ts +0 -1
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/typings/controller.d.ts +10 -1
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/typings/tag.d.ts +21 -9
- package/dist/ModelItemLabelPlugin/index.js +6 -6
- package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/dist/ModelRoomLabelPlugin/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/dist/ModelRoomLabelPlugin/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/dist/ModelRoomLabelPlugin/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/dist/ModelRoomLabelPlugin/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/controller/index.d.ts +8 -6
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/index.d.ts +0 -1
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/typings/controller.d.ts +10 -1
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/typings/tag.d.ts +21 -9
- package/dist/ModelRoomLabelPlugin/index.js +4 -4
- package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/dist/ModelTVVideoPlugin/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/dist/ModelTVVideoPlugin/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/dist/ModelTVVideoPlugin/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/dist/ModelTVVideoPlugin/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/controller/index.d.ts +8 -6
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/index.d.ts +0 -1
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/typings/controller.d.ts +10 -1
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/typings/tag.d.ts +21 -9
- package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/dist/ModelViewPlugin/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/dist/ModelViewPlugin/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/dist/ModelViewPlugin/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/dist/ModelViewPlugin/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/dist/ModelViewPlugin/PanoTagPlugin/controller/index.d.ts +8 -6
- package/dist/ModelViewPlugin/PanoTagPlugin/index.d.ts +0 -1
- package/dist/ModelViewPlugin/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/ModelViewPlugin/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/ModelViewPlugin/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/ModelViewPlugin/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/ModelViewPlugin/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/ModelViewPlugin/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/ModelViewPlugin/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/ModelViewPlugin/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/ModelViewPlugin/PanoTagPlugin/typings/controller.d.ts +10 -1
- package/dist/ModelViewPlugin/PanoTagPlugin/typings/tag.d.ts +21 -9
- package/dist/ModelViewPlugin/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/dist/ModelViewPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/dist/Object3DHelperPlugin/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/dist/Object3DHelperPlugin/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/dist/Object3DHelperPlugin/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/dist/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/dist/Object3DHelperPlugin/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/dist/Object3DHelperPlugin/PanoTagPlugin/Assets/Icon.d.ts +2 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/controller/TagCacheController.d.ts +22 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/controller/TagComputer.d.ts +69 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/controller/index.d.ts +138 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/index.d.ts +7 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/typings/controller.d.ts +99 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/typings/index.d.ts +2 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/typings/tag.d.ts +223 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +2 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/utils/addDebugPoints.d.ts +3 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/utils/checkRange.d.ts +4 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/utils/debounce.d.ts +7 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/utils/index.d.ts +12 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/utils/normalPositionToPositions.d.ts +2 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/utils/planeNormal.d.ts +4 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/utils/resizeObserver.d.ts +4 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/utils/search.d.ts +11 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/utils/tagPosition.d.ts +3 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/utils/throttle.d.ts +7 -0
- package/dist/Object3DHelperPlugin/index.js +10 -7
- package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/dist/PanoCompassPlugin/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/dist/PanoCompassPlugin/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/dist/PanoCompassPlugin/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/dist/PanoCompassPlugin/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/dist/PanoCompassPlugin/PanoTagPlugin/controller/index.d.ts +8 -6
- package/dist/PanoCompassPlugin/PanoTagPlugin/index.d.ts +0 -1
- package/dist/PanoCompassPlugin/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/PanoCompassPlugin/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/PanoCompassPlugin/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/PanoCompassPlugin/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/PanoCompassPlugin/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/PanoCompassPlugin/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/PanoCompassPlugin/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/PanoCompassPlugin/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/PanoCompassPlugin/PanoTagPlugin/typings/controller.d.ts +10 -1
- package/dist/PanoCompassPlugin/PanoTagPlugin/typings/tag.d.ts +21 -9
- package/dist/PanoCompassPlugin/index.js +12 -6
- package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/dist/PanoCursorRaycasterPlugin/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/dist/PanoCursorRaycasterPlugin/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/dist/PanoCursorRaycasterPlugin/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/dist/PanoCursorRaycasterPlugin/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/controller/index.d.ts +8 -6
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/index.d.ts +0 -1
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/typings/controller.d.ts +10 -1
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/typings/tag.d.ts +21 -9
- package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/dist/PanoDoorLabelPlugin/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/dist/PanoDoorLabelPlugin/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/dist/PanoDoorLabelPlugin/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/dist/PanoDoorLabelPlugin/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/controller/index.d.ts +8 -6
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/index.d.ts +0 -1
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/typings/controller.d.ts +10 -1
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/typings/tag.d.ts +21 -9
- package/dist/PanoDoorLabelPlugin/index.js +6 -6
- package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/dist/PanoMeasurePlugin/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/dist/PanoMeasurePlugin/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/dist/PanoMeasurePlugin/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/dist/PanoMeasurePlugin/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/dist/PanoMeasurePlugin/PanoTagPlugin/controller/index.d.ts +8 -6
- package/dist/PanoMeasurePlugin/PanoTagPlugin/index.d.ts +0 -1
- package/dist/PanoMeasurePlugin/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/PanoMeasurePlugin/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/PanoMeasurePlugin/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/PanoMeasurePlugin/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/PanoMeasurePlugin/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/PanoMeasurePlugin/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/PanoMeasurePlugin/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/PanoMeasurePlugin/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/PanoMeasurePlugin/PanoTagPlugin/typings/controller.d.ts +10 -1
- package/dist/PanoMeasurePlugin/PanoTagPlugin/typings/tag.d.ts +21 -9
- package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/dist/PanoRulerPlugin/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/dist/PanoRulerPlugin/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/dist/PanoRulerPlugin/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/dist/PanoRulerPlugin/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/dist/PanoRulerPlugin/PanoTagPlugin/controller/index.d.ts +8 -6
- package/dist/PanoRulerPlugin/PanoTagPlugin/index.d.ts +0 -1
- package/dist/PanoRulerPlugin/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/PanoRulerPlugin/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/PanoRulerPlugin/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/PanoRulerPlugin/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/PanoRulerPlugin/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/PanoRulerPlugin/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/PanoRulerPlugin/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/PanoRulerPlugin/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/PanoRulerPlugin/PanoTagPlugin/typings/controller.d.ts +10 -1
- package/dist/PanoRulerPlugin/PanoTagPlugin/typings/tag.d.ts +21 -9
- package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/dist/PanoRulerProPlugin/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/dist/PanoRulerProPlugin/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/dist/PanoRulerProPlugin/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/dist/PanoRulerProPlugin/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/dist/PanoRulerProPlugin/PanoTagPlugin/controller/index.d.ts +8 -6
- package/dist/PanoRulerProPlugin/PanoTagPlugin/index.d.ts +0 -1
- package/dist/PanoRulerProPlugin/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/PanoRulerProPlugin/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/PanoRulerProPlugin/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/PanoRulerProPlugin/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/PanoRulerProPlugin/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/PanoRulerProPlugin/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/PanoRulerProPlugin/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/PanoRulerProPlugin/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/PanoRulerProPlugin/PanoTagPlugin/typings/controller.d.ts +10 -1
- package/dist/PanoRulerProPlugin/PanoTagPlugin/typings/tag.d.ts +21 -9
- package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/dist/PanoSpatialTagPlugin/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/dist/PanoSpatialTagPlugin/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/dist/PanoSpatialTagPlugin/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/dist/PanoSpatialTagPlugin/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/controller/index.d.ts +8 -6
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/index.d.ts +0 -1
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/typings/controller.d.ts +10 -1
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/typings/tag.d.ts +21 -9
- package/dist/PanoSpatialTagPlugin/index.js +12 -6
- package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/dist/PanoTagPlugin/CSS3DRenderPlugin/CSS3DRender.d.ts +156 -0
- package/dist/PanoTagPlugin/CSS3DRenderPlugin/Controller.d.ts +11 -43
- package/dist/PanoTagPlugin/CSS3DRenderPlugin/typing.d.ts +6 -3
- package/dist/PanoTagPlugin/CSS3DRenderPlugin/utils/CSS3DObjectPlus.d.ts +16 -0
- package/dist/PanoTagPlugin/CruisePlugin/Controller.d.ts +170 -0
- package/dist/PanoTagPlugin/CruisePlugin/index.d.ts +6 -0
- package/dist/PanoTagPlugin/CruisePlugin/typing.d.ts +129 -0
- package/dist/PanoTagPlugin/CruisePlugin/utils/coordinatesAngle.d.ts +12 -0
- package/dist/PanoTagPlugin/CruisePlugin/utils/coordinatesToVector.d.ts +7 -0
- package/dist/PanoTagPlugin/CruisePlugin/utils/formatRad.d.ts +7 -0
- package/dist/PanoTagPlugin/CruisePlugin/utils/linerValue.d.ts +1 -0
- package/dist/PanoTagPlugin/CruisePlugin/utils/safeCall.d.ts +1 -0
- package/dist/PanoTagPlugin/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/PanoTagPlugin/CruisePlugin/utils/vectorToCoordinates.d.ts +7 -0
- package/dist/PanoTagPlugin/GuideLinePlugin/Controller.d.ts +46 -0
- package/dist/PanoTagPlugin/GuideLinePlugin/index.d.ts +5 -0
- package/dist/PanoTagPlugin/GuideLinePlugin/typing.d.ts +31 -0
- package/dist/PanoTagPlugin/GuideLinePlugin/utils/getArrowMaterial.d.ts +4 -0
- package/dist/PanoTagPlugin/GuideLinePlugin/utils/getLineGeometries.d.ts +14 -0
- package/dist/PanoTagPlugin/GuideLinePlugin/utils/getPoint.d.ts +3 -0
- package/dist/PanoTagPlugin/ItemLabelPlugin/utils/isImpacted.d.ts +2 -0
- package/dist/PanoTagPlugin/Object3DHelperPlugin/Controller.d.ts +25 -0
- package/dist/PanoTagPlugin/Object3DHelperPlugin/FiveControllerWrapper.d.ts +19 -0
- package/dist/PanoTagPlugin/Object3DHelperPlugin/index.d.ts +6 -0
- package/dist/PanoTagPlugin/Object3DHelperPlugin/mocks/addObject3D.d.ts +2 -0
- package/dist/PanoTagPlugin/Object3DHelperPlugin/mocks/objects.d.ts +7 -0
- package/dist/PanoTagPlugin/PanoDoorLabelPlugin/Controller.d.ts +2 -1
- package/dist/PanoTagPlugin/PanoDoorLabelPlugin/typings.d.ts +5 -0
- package/dist/PanoTagPlugin/PanoTagPlugin/controller/index.d.ts +8 -6
- package/dist/PanoTagPlugin/PanoTagPlugin/index.d.ts +0 -1
- package/dist/PanoTagPlugin/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/PanoTagPlugin/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/PanoTagPlugin/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/PanoTagPlugin/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/PanoTagPlugin/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/PanoTagPlugin/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/PanoTagPlugin/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/PanoTagPlugin/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/PanoTagPlugin/PanoTagPlugin/typings/controller.d.ts +10 -1
- package/dist/PanoTagPlugin/PanoTagPlugin/typings/tag.d.ts +21 -9
- package/dist/PanoTagPlugin/controller/index.d.ts +8 -6
- package/dist/PanoTagPlugin/floorplan/MapviewFloorplanPlugin/Controller.d.ts +95 -0
- package/dist/PanoTagPlugin/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
- package/dist/PanoTagPlugin/floorplan/MapviewFloorplanPlugin/typing.d.ts +107 -0
- package/dist/PanoTagPlugin/floorplan/index.d.ts +2 -1
- package/dist/PanoTagPlugin/index.d.ts +0 -1
- package/dist/PanoTagPlugin/index.js +1319 -607
- package/dist/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +39 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +89 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Constants/color.d.ts +12 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +6 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Controller/MoveController.d.ts +13 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +37 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Controller/RotateController.d.ts +22 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.d.ts +11 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Helper/HTML/tipsDom.d.ts +6 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.d.ts +2 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +13 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.d.ts +17 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Helper/OutlineHelper.d.ts +11 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +39 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +54 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Helper/index.d.ts +5 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/index.d.ts +73 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/typings/Direction.d.ts +2 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +46 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/typings/Scissor.d.ts +17 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/typings/index.d.ts +5 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/utils/calculateThreeMouse.d.ts +14 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/utils/direction.d.ts +14 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/utils/filterNotColinearPoints.d.ts +2 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/utils/getMouseRaycaster.d.ts +5 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/utils/getPoint.d.ts +3 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/utils/index.d.ts +8 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/utils/negateScale.d.ts +2 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/utils/normalPositionToPositions.d.ts +5 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/utils/object3DBoundingPosition.d.ts +1 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/utils/vectorIsEqual.d.ts +2 -0
- package/dist/PanoTagPlugin/shared-utils/Subscribe.d.ts +41 -25
- package/dist/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/PanoTagPlugin/typings/controller.d.ts +10 -1
- package/dist/PanoTagPlugin/typings/tag.d.ts +21 -9
- package/dist/floorplan/MapviewFloorplanPlugin/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/dist/floorplan/MapviewFloorplanPlugin/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/dist/floorplan/MapviewFloorplanPlugin/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/dist/floorplan/MapviewFloorplanPlugin/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/Assets/Icon.d.ts +2 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/controller/TagCacheController.d.ts +22 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/controller/TagComputer.d.ts +69 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/controller/index.d.ts +138 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/index.d.ts +7 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +99 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/typings/index.d.ts +2 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +223 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +2 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/utils/addDebugPoints.d.ts +3 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/utils/checkRange.d.ts +4 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/utils/debounce.d.ts +7 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/utils/index.d.ts +12 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/utils/normalPositionToPositions.d.ts +2 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/utils/planeNormal.d.ts +4 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/utils/resizeObserver.d.ts +4 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/utils/search.d.ts +11 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/utils/tagPosition.d.ts +3 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/utils/throttle.d.ts +7 -0
- package/dist/floorplan/MapviewFloorplanPlugin/index.js +4 -4
- package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/dist/floorplan/ModelFloorplanPlugin/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/dist/floorplan/ModelFloorplanPlugin/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/dist/floorplan/ModelFloorplanPlugin/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/dist/floorplan/ModelFloorplanPlugin/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/controller/index.d.ts +8 -6
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/index.d.ts +0 -1
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +10 -1
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +21 -9
- package/dist/floorplan/ModelFloorplanPlugin/index.js +4 -4
- package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/dist/floorplan/PanoFloorplanRadarPlugin/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/dist/floorplan/PanoFloorplanRadarPlugin/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/controller/index.d.ts +8 -6
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/index.d.ts +0 -1
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/typings/controller.d.ts +10 -1
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/typings/tag.d.ts +21 -9
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +4 -4
- package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/dist/floorplan/TopviewFloorplanPlugin/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/dist/floorplan/TopviewFloorplanPlugin/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/dist/floorplan/TopviewFloorplanPlugin/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/dist/floorplan/TopviewFloorplanPlugin/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/controller/index.d.ts +8 -6
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/index.d.ts +0 -1
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/tag.config.d.ts +7 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +10 -1
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +21 -9
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +4 -4
- package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +9862 -379
- package/dist/index.js +9865 -373
- package/dist/index.umd.js +9867 -377
- package/dist/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/docs/assets/search.js +1 -1
- package/docs/classes/CruisePluginController.html +14 -14
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/classes/Object3DHelperController.html +15 -0
- package/docs/classes/PanoTagPluginController.html +188 -0
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/Rotation.html +2 -2
- package/docs/index.html +2 -2
- package/docs/interfaces/{EventMap.html → CSS3DRenderPluginEventMap.html} +3 -3
- package/docs/interfaces/CSS3DRenderPluginState.html +3 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +7 -7
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +6 -6
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +1 -1
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
- package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
- package/docs/interfaces/FloorplanServerEntrance.html +7 -7
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +1 -1
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/ModelViewPluginExportType.html +1 -1
- package/docs/interfaces/Object3DHelperState.html +1 -0
- package/docs/interfaces/OpenParameter.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +1 -1
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginState.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
- package/docs/interfaces/Point.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -1
- package/docs/interfaces/RoomInfo.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +14 -0
- package/docs/modules.html +17 -17
- package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +8 -10
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +8 -3
- package/libs/CSS3DRenderPlugin/Controller.d.ts +2 -2
- package/libs/CSS3DRenderPlugin/Controller.js +2 -1
- package/libs/CSS3DRenderPlugin/typing.d.ts +2 -2
- package/libs/ItemLabelPlugin/ItemLabelItem.js +12 -12
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +6 -6
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +4 -4
- package/libs/Object3DHelperPlugin/Controller.d.ts +2 -3
- package/libs/Object3DHelperPlugin/Controller.js +0 -1
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +6 -6
- package/libs/PanoTagPlugin/Components/Common/Media.js +221 -89
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +3 -3
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +4 -4
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +4 -4
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +2 -2
- package/libs/PanoTagPlugin/Components/Common/Text.js +2 -2
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +6 -6
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +3 -3
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +22 -24
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +9 -9
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +22 -23
- package/libs/PanoTagPlugin/Components/Tag/MediaPanel.js +159 -0
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +3 -3
- package/libs/PanoTagPlugin/Components/Tag/index.js +113 -13
- package/libs/PanoTagPlugin/Components/TagWrapper.js +4 -12
- package/libs/PanoTagPlugin/controller/TagComputer.js +6 -6
- package/libs/PanoTagPlugin/controller/index.d.ts +8 -6
- package/libs/PanoTagPlugin/controller/index.js +33 -40
- package/libs/PanoTagPlugin/index.d.ts +0 -1
- package/libs/PanoTagPlugin/index.js +0 -4
- package/libs/PanoTagPlugin/mocks/mock1.d.ts +167 -0
- package/libs/PanoTagPlugin/mocks/mock1.js +165 -0
- package/libs/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/libs/PanoTagPlugin/mocks/mock2.js +293 -0
- package/libs/PanoTagPlugin/mocks/mock3.d.ts +14 -0
- package/libs/PanoTagPlugin/mocks/mock3.js +32 -0
- package/libs/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/libs/PanoTagPlugin/mocks/mock4.js +57 -0
- package/libs/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/libs/PanoTagPlugin/mocks/mock5.js +14 -0
- package/libs/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/libs/PanoTagPlugin/mocks/mock6.js +236 -0
- package/libs/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/libs/PanoTagPlugin/mocks/mock7.js +246 -0
- package/libs/PanoTagPlugin/tag.config.d.ts +7 -0
- package/libs/PanoTagPlugin/tag.config.js +46 -0
- package/libs/PanoTagPlugin/typings/controller.d.ts +10 -1
- package/libs/PanoTagPlugin/typings/tag.d.ts +21 -9
- package/libs/floorplan/Components/Compass.js +4 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +4 -4
- package/libs/index.d.ts +2 -0
- package/libs/index.js +4 -0
- package/libs/shared-utils/Object3DHelper/index.d.ts +5 -5
- package/libs/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -4
- package/package.json +8 -3
- package/dist/CSS3DRenderPlugin/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/dist/CSS3DRenderPlugin/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/dist/CSS3DRenderPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/dist/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/dist/CameraMovementPlugin/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/dist/CameraMovementPlugin/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/dist/CameraMovementPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/dist/CruisePlugin/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/dist/CruisePlugin/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/dist/CruisePlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/dist/GuideLinePlugin/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/dist/GuideLinePlugin/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/dist/GuideLinePlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/dist/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/dist/ItemLabelPlugin/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/dist/ItemLabelPlugin/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/dist/ItemLabelPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/dist/ModelChassisCompassPlugin/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/dist/ModelChassisCompassPlugin/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/dist/ModelChassisCompassPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/dist/ModelEntryDoorGuidePlugin/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/dist/ModelEntryDoorGuidePlugin/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/dist/ModelEntryDoorGuidePlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/dist/ModelItemLabelPlugin/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/dist/ModelItemLabelPlugin/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/dist/ModelItemLabelPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/dist/ModelRoomLabelPlugin/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/dist/ModelRoomLabelPlugin/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/dist/ModelRoomLabelPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/dist/ModelTVVideoPlugin/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/dist/ModelTVVideoPlugin/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/dist/ModelTVVideoPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/dist/ModelViewPlugin/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/dist/ModelViewPlugin/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/dist/ModelViewPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/dist/PanoCompassPlugin/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/dist/PanoCompassPlugin/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/dist/PanoCompassPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/dist/PanoCursorRaycasterPlugin/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/dist/PanoCursorRaycasterPlugin/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/dist/PanoCursorRaycasterPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/dist/PanoDoorLabelPlugin/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/dist/PanoDoorLabelPlugin/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/dist/PanoDoorLabelPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/dist/PanoMeasurePlugin/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/dist/PanoMeasurePlugin/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/dist/PanoMeasurePlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/dist/PanoRulerPlugin/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/dist/PanoRulerPlugin/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/dist/PanoRulerPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/dist/PanoRulerProPlugin/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/dist/PanoRulerProPlugin/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/dist/PanoRulerProPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/dist/PanoSpatialTagPlugin/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/dist/PanoSpatialTagPlugin/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/dist/PanoSpatialTagPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/dist/floorplan/MapviewFloorplanPlugin/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/dist/floorplan/MapviewFloorplanPlugin/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/dist/floorplan/MapviewFloorplanPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/dist/floorplan/ModelFloorplanPlugin/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/dist/floorplan/ModelFloorplanPlugin/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/dist/floorplan/ModelFloorplanPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/dist/floorplan/PanoFloorplanRadarPlugin/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/dist/floorplan/PanoFloorplanRadarPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/dist/floorplan/TopviewFloorplanPlugin/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/dist/floorplan/TopviewFloorplanPlugin/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/dist/floorplan/TopviewFloorplanPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/docs/interfaces/State.html +0 -3
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var five = require('@realsee/five');
|
|
5
6
|
var THREE = require('three');
|
|
6
7
|
var objectAssignDeep = require('object-assign-deep');
|
|
7
8
|
var store = require('svelte/store');
|
|
@@ -10,7 +11,6 @@ var transition = require('svelte/transition');
|
|
|
10
11
|
var anime = require('animejs');
|
|
11
12
|
var svelte = require('svelte');
|
|
12
13
|
var easing = require('svelte/easing');
|
|
13
|
-
var five = require('@realsee/five');
|
|
14
14
|
var CSS3DRenderer = require('three/examples/jsm/renderers/CSS3DRenderer');
|
|
15
15
|
|
|
16
16
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -256,17 +256,17 @@ function resizeObserver(func, element) {
|
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
|
|
259
|
+
var DimensionType;
|
|
260
260
|
(function (DimensionType) {
|
|
261
261
|
DimensionType["Two"] = "2D";
|
|
262
262
|
DimensionType["Three"] = "3D";
|
|
263
|
-
})(
|
|
264
|
-
|
|
263
|
+
})(DimensionType || (DimensionType = {}));
|
|
264
|
+
var PointType;
|
|
265
265
|
(function (PointType) {
|
|
266
266
|
PointType["PointTag"] = "PointTag";
|
|
267
267
|
PointType["PlaneTag"] = "PlaneTag";
|
|
268
|
-
})(
|
|
269
|
-
|
|
268
|
+
})(PointType || (PointType = {}));
|
|
269
|
+
var ContentType;
|
|
270
270
|
(function (ContentType) {
|
|
271
271
|
/** 音频标签 */
|
|
272
272
|
ContentType["Audio"] = "Audio";
|
|
@@ -282,12 +282,12 @@ exports.ContentType = void 0;
|
|
|
282
282
|
ContentType["MediaPanel"] = "MediaPanel";
|
|
283
283
|
/** 其他/自定义标签 */
|
|
284
284
|
ContentType["Custom"] = "Custom";
|
|
285
|
-
})(
|
|
286
|
-
|
|
285
|
+
})(ContentType || (ContentType = {}));
|
|
286
|
+
var LinkType;
|
|
287
287
|
(function (LinkType) {
|
|
288
288
|
LinkType["VrLink"] = "vr";
|
|
289
289
|
LinkType["NormalLink"] = "normal";
|
|
290
|
-
})(
|
|
290
|
+
})(LinkType || (LinkType = {}));
|
|
291
291
|
|
|
292
292
|
// uuid
|
|
293
293
|
function S4() {
|
|
@@ -301,14 +301,14 @@ function uuid() {
|
|
|
301
301
|
return (S4() + S4() + '-' + S4() + '-4' + S4().substr(0, 3) + '-' + S4() + '-' + S4() + S4() + S4()).toLowerCase();
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
/* src/PanoTagPlugin/Components/Common/Line/Straight.svelte generated by Svelte v3.
|
|
304
|
+
/* src/PanoTagPlugin/Components/Common/Line/Straight.svelte generated by Svelte v3.50.1 */
|
|
305
305
|
|
|
306
|
-
function add_css$
|
|
306
|
+
function add_css$k(target) {
|
|
307
307
|
internal.append_styles(target, "svelte-1omzoh4", ".straight-line.svelte-1omzoh4{display:block;width:100%;height:100%;overflow:visible}");
|
|
308
308
|
}
|
|
309
309
|
|
|
310
310
|
// (17:2) {#if unfolded}
|
|
311
|
-
function create_if_block$
|
|
311
|
+
function create_if_block$g(ctx) {
|
|
312
312
|
let path;
|
|
313
313
|
let path_intro;
|
|
314
314
|
let path_outro;
|
|
@@ -366,13 +366,13 @@ function create_if_block$f(ctx) {
|
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
368
|
|
|
369
|
-
function create_fragment$
|
|
369
|
+
function create_fragment$k(ctx) {
|
|
370
370
|
let svg;
|
|
371
371
|
let defs;
|
|
372
372
|
let linearGradient;
|
|
373
373
|
let stop0;
|
|
374
374
|
let stop1;
|
|
375
|
-
let if_block = /*unfolded*/ ctx[3] && create_if_block$
|
|
375
|
+
let if_block = /*unfolded*/ ctx[3] && create_if_block$g(ctx);
|
|
376
376
|
|
|
377
377
|
return {
|
|
378
378
|
c() {
|
|
@@ -411,7 +411,7 @@ function create_fragment$j(ctx) {
|
|
|
411
411
|
internal.transition_in(if_block, 1);
|
|
412
412
|
}
|
|
413
413
|
} else {
|
|
414
|
-
if_block = create_if_block$
|
|
414
|
+
if_block = create_if_block$g(ctx);
|
|
415
415
|
if_block.c();
|
|
416
416
|
internal.transition_in(if_block, 1);
|
|
417
417
|
if_block.m(svg, null);
|
|
@@ -439,7 +439,7 @@ function create_fragment$j(ctx) {
|
|
|
439
439
|
};
|
|
440
440
|
}
|
|
441
441
|
|
|
442
|
-
function instance$
|
|
442
|
+
function instance$k($$self, $$props, $$invalidate) {
|
|
443
443
|
let { inDelay = 0 } = $$props;
|
|
444
444
|
let { duration = 0 } = $$props;
|
|
445
445
|
let { outDelay = 0 } = $$props;
|
|
@@ -463,8 +463,8 @@ class Straight extends internal.SvelteComponent {
|
|
|
463
463
|
internal.init(
|
|
464
464
|
this,
|
|
465
465
|
options,
|
|
466
|
-
instance$
|
|
467
|
-
create_fragment$
|
|
466
|
+
instance$k,
|
|
467
|
+
create_fragment$k,
|
|
468
468
|
internal.safe_not_equal,
|
|
469
469
|
{
|
|
470
470
|
inDelay: 0,
|
|
@@ -472,19 +472,19 @@ class Straight extends internal.SvelteComponent {
|
|
|
472
472
|
outDelay: 2,
|
|
473
473
|
unfolded: 3
|
|
474
474
|
},
|
|
475
|
-
add_css$
|
|
475
|
+
add_css$k
|
|
476
476
|
);
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
479
|
|
|
480
|
-
/* src/PanoTagPlugin/Components/Common/Shadow.svelte generated by Svelte v3.
|
|
480
|
+
/* src/PanoTagPlugin/Components/Common/Shadow.svelte generated by Svelte v3.50.1 */
|
|
481
481
|
|
|
482
|
-
function add_css$
|
|
482
|
+
function add_css$j(target) {
|
|
483
483
|
internal.append_styles(target, "svelte-faoauy", ".shadow.svelte-faoauy{position:absolute}");
|
|
484
484
|
}
|
|
485
485
|
|
|
486
486
|
// (21:0) {#if visible}
|
|
487
|
-
function create_if_block$
|
|
487
|
+
function create_if_block$f(ctx) {
|
|
488
488
|
let div;
|
|
489
489
|
let div_style_value;
|
|
490
490
|
let div_intro;
|
|
@@ -580,9 +580,9 @@ function create_if_block$e(ctx) {
|
|
|
580
580
|
};
|
|
581
581
|
}
|
|
582
582
|
|
|
583
|
-
function create_fragment$
|
|
583
|
+
function create_fragment$j(ctx) {
|
|
584
584
|
let if_block_anchor;
|
|
585
|
-
let if_block = /*visible*/ ctx[2] && create_if_block$
|
|
585
|
+
let if_block = /*visible*/ ctx[2] && create_if_block$f(ctx);
|
|
586
586
|
|
|
587
587
|
return {
|
|
588
588
|
c() {
|
|
@@ -602,7 +602,7 @@ function create_fragment$i(ctx) {
|
|
|
602
602
|
internal.transition_in(if_block, 1);
|
|
603
603
|
}
|
|
604
604
|
} else {
|
|
605
|
-
if_block = create_if_block$
|
|
605
|
+
if_block = create_if_block$f(ctx);
|
|
606
606
|
if_block.c();
|
|
607
607
|
internal.transition_in(if_block, 1);
|
|
608
608
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -634,7 +634,7 @@ function px2rem(value) {
|
|
|
634
634
|
return typeof value === 'number' ? value / 16 + 'rem' : value;
|
|
635
635
|
}
|
|
636
636
|
|
|
637
|
-
function instance$
|
|
637
|
+
function instance$j($$self, $$props, $$invalidate) {
|
|
638
638
|
let { inDelay = 1000 } = $$props;
|
|
639
639
|
let { outDelay = 1000 } = $$props;
|
|
640
640
|
let { visible = true } = $$props;
|
|
@@ -692,8 +692,8 @@ class Shadow extends internal.SvelteComponent {
|
|
|
692
692
|
internal.init(
|
|
693
693
|
this,
|
|
694
694
|
options,
|
|
695
|
-
instance$
|
|
696
|
-
create_fragment$
|
|
695
|
+
instance$j,
|
|
696
|
+
create_fragment$j,
|
|
697
697
|
internal.safe_not_equal,
|
|
698
698
|
{
|
|
699
699
|
inDelay: 0,
|
|
@@ -711,7 +711,7 @@ class Shadow extends internal.SvelteComponent {
|
|
|
711
711
|
opacity: 12,
|
|
712
712
|
zIndex: 13
|
|
713
713
|
},
|
|
714
|
-
add_css$
|
|
714
|
+
add_css$j
|
|
715
715
|
);
|
|
716
716
|
}
|
|
717
717
|
}
|
|
@@ -728,13 +728,13 @@ function notNil(value) {
|
|
|
728
728
|
return value !== null && value !== undefined;
|
|
729
729
|
}
|
|
730
730
|
|
|
731
|
-
/* src/PanoTagPlugin/Components/Common/Text.svelte generated by Svelte v3.
|
|
731
|
+
/* src/PanoTagPlugin/Components/Common/Text.svelte generated by Svelte v3.50.1 */
|
|
732
732
|
|
|
733
|
-
function add_css$
|
|
733
|
+
function add_css$i(target) {
|
|
734
734
|
internal.append_styles(target, "svelte-1b2n9wi", ".text-char.svelte-1b2n9wi{display:inline-block;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}");
|
|
735
735
|
}
|
|
736
736
|
|
|
737
|
-
function get_each_context$
|
|
737
|
+
function get_each_context$5(ctx, list, i) {
|
|
738
738
|
const child_ctx = ctx.slice();
|
|
739
739
|
child_ctx[10] = list[i];
|
|
740
740
|
child_ctx[11] = list;
|
|
@@ -743,7 +743,7 @@ function get_each_context$4(ctx, list, i) {
|
|
|
743
743
|
}
|
|
744
744
|
|
|
745
745
|
// (60:0) {#each contentList as item, index}
|
|
746
|
-
function create_each_block$
|
|
746
|
+
function create_each_block$5(ctx) {
|
|
747
747
|
let span;
|
|
748
748
|
let t_value = /*item*/ ctx[10] + "";
|
|
749
749
|
let t;
|
|
@@ -779,13 +779,13 @@ function create_each_block$4(ctx) {
|
|
|
779
779
|
};
|
|
780
780
|
}
|
|
781
781
|
|
|
782
|
-
function create_fragment$
|
|
782
|
+
function create_fragment$i(ctx) {
|
|
783
783
|
let each_1_anchor;
|
|
784
784
|
let each_value = /*contentList*/ ctx[1];
|
|
785
785
|
let each_blocks = [];
|
|
786
786
|
|
|
787
787
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
788
|
-
each_blocks[i] = create_each_block$
|
|
788
|
+
each_blocks[i] = create_each_block$5(get_each_context$5(ctx, each_value, i));
|
|
789
789
|
}
|
|
790
790
|
|
|
791
791
|
return {
|
|
@@ -809,12 +809,12 @@ function create_fragment$h(ctx) {
|
|
|
809
809
|
let i;
|
|
810
810
|
|
|
811
811
|
for (i = 0; i < each_value.length; i += 1) {
|
|
812
|
-
const child_ctx = get_each_context$
|
|
812
|
+
const child_ctx = get_each_context$5(ctx, each_value, i);
|
|
813
813
|
|
|
814
814
|
if (each_blocks[i]) {
|
|
815
815
|
each_blocks[i].p(child_ctx, dirty);
|
|
816
816
|
} else {
|
|
817
|
-
each_blocks[i] = create_each_block$
|
|
817
|
+
each_blocks[i] = create_each_block$5(child_ctx);
|
|
818
818
|
each_blocks[i].c();
|
|
819
819
|
each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
|
|
820
820
|
}
|
|
@@ -836,7 +836,7 @@ function create_fragment$h(ctx) {
|
|
|
836
836
|
};
|
|
837
837
|
}
|
|
838
838
|
|
|
839
|
-
function instance$
|
|
839
|
+
function instance$i($$self, $$props, $$invalidate) {
|
|
840
840
|
let contentList;
|
|
841
841
|
let { inDelay = 0 } = $$props;
|
|
842
842
|
let { outDelay = 0 } = $$props;
|
|
@@ -930,8 +930,8 @@ class Text extends internal.SvelteComponent {
|
|
|
930
930
|
internal.init(
|
|
931
931
|
this,
|
|
932
932
|
options,
|
|
933
|
-
instance$
|
|
934
|
-
create_fragment$
|
|
933
|
+
instance$i,
|
|
934
|
+
create_fragment$i,
|
|
935
935
|
internal.safe_not_equal,
|
|
936
936
|
{
|
|
937
937
|
inDelay: 2,
|
|
@@ -939,7 +939,7 @@ class Text extends internal.SvelteComponent {
|
|
|
939
939
|
content: 4,
|
|
940
940
|
unfolded: 5
|
|
941
941
|
},
|
|
942
|
-
add_css$
|
|
942
|
+
add_css$i
|
|
943
943
|
);
|
|
944
944
|
}
|
|
945
945
|
}
|
|
@@ -947,14 +947,14 @@ class Text extends internal.SvelteComponent {
|
|
|
947
947
|
const Image_Arrow = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKqADAAQAAAABAAAAKgAAAADUGqULAAAB0ElEQVRYCe2WSUoEQRBFLVHEiVZU1I03cKW38SSewRt4A5fiTty5cQIFR9pZQWkcUNSe2/Z9yISiSGxRkUAy4BGZSVX168gistraYsQKxArECsQKxApYqkDyU5lmsznMM+ZgAGpQhaUkSRbINgLJCXiCBtSgAkVYtGGIBTKj8AgKSVahDNvQa0IUkUG4Bx91BpLdBTOS/cgUIB3a+gMwI9mFzE3a0I3z5B4r292JzGVA8tSSZILMcUDyzIykthOZvYDk+V9Ktmz4yGzhOhV4/+5YU4N/hzqo0StX3Fg5TcnNlYvgs8bPsM4hkScHoyO46haRnGEYktQVI+4ypUYKyXtxyUu27JCceAMJvjo0HoM5CEZ7cPX7i013q3IWVV5r2aw/2TK+svWbPGU68KQCa6pYeus1V0X99quSfvtVSc39lmfz2mdbz32tg1dAJ0421AVs9E7/FxBSezrMmjI/gm5/nYmMkBq+TqBs7LNgTlZH6EnWlPmORdk+pHQipUNfTxtg7p3NIXWRMvXfoqusmXsNhpC6crIS1Zf9C6yAOdlxpK5BW18CiT7A/G93gE+P0FY/RoO+RWqS62YhB2r4YhlixArECsQKxArECvzjCnwAOr0wF44ggHAAAAAASUVORK5CYII=';
|
|
948
948
|
const Image_Play = 'data:image/png;base64,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';
|
|
949
949
|
|
|
950
|
-
/* src/PanoTagPlugin/Components/Common/Arrow.svelte generated by Svelte v3.
|
|
950
|
+
/* src/PanoTagPlugin/Components/Common/Arrow.svelte generated by Svelte v3.50.1 */
|
|
951
951
|
|
|
952
|
-
function add_css$
|
|
952
|
+
function add_css$h(target) {
|
|
953
953
|
internal.append_styles(target, "svelte-1ogmlqq", ".arrow.svelte-1ogmlqq{width:100%;height:100%;background-size:100%;transition:transform 400ms ease-in-out;cursor:pointer;pointer-events:auto}.arrow-wrapper.svelte-1ogmlqq{position:relative;width:100%;height:100%}.arrow.left.svelte-1ogmlqq{transform:rotate(0deg)}.arrow.right.svelte-1ogmlqq{transform:rotate(-180deg)}.arrow.top.svelte-1ogmlqq{transform:rotate(90deg)}.arrow.bottom.svelte-1ogmlqq{transform:rotate(-90deg)}");
|
|
954
954
|
}
|
|
955
955
|
|
|
956
956
|
// (12:0) {#if visible}
|
|
957
|
-
function create_if_block$
|
|
957
|
+
function create_if_block$e(ctx) {
|
|
958
958
|
let div1;
|
|
959
959
|
let shadow;
|
|
960
960
|
let t;
|
|
@@ -1048,10 +1048,10 @@ function create_if_block$d(ctx) {
|
|
|
1048
1048
|
};
|
|
1049
1049
|
}
|
|
1050
1050
|
|
|
1051
|
-
function create_fragment$
|
|
1051
|
+
function create_fragment$h(ctx) {
|
|
1052
1052
|
let if_block_anchor;
|
|
1053
1053
|
let current;
|
|
1054
|
-
let if_block = /*visible*/ ctx[1] && create_if_block$
|
|
1054
|
+
let if_block = /*visible*/ ctx[1] && create_if_block$e(ctx);
|
|
1055
1055
|
|
|
1056
1056
|
return {
|
|
1057
1057
|
c() {
|
|
@@ -1072,7 +1072,7 @@ function create_fragment$g(ctx) {
|
|
|
1072
1072
|
internal.transition_in(if_block, 1);
|
|
1073
1073
|
}
|
|
1074
1074
|
} else {
|
|
1075
|
-
if_block = create_if_block$
|
|
1075
|
+
if_block = create_if_block$e(ctx);
|
|
1076
1076
|
if_block.c();
|
|
1077
1077
|
internal.transition_in(if_block, 1);
|
|
1078
1078
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -1103,7 +1103,7 @@ function create_fragment$g(ctx) {
|
|
|
1103
1103
|
};
|
|
1104
1104
|
}
|
|
1105
1105
|
|
|
1106
|
-
function instance$
|
|
1106
|
+
function instance$h($$self, $$props, $$invalidate) {
|
|
1107
1107
|
let { direction = 'right' } = $$props;
|
|
1108
1108
|
let { visible = true } = $$props;
|
|
1109
1109
|
let { duration = 0 } = $$props;
|
|
@@ -1132,8 +1132,8 @@ class Arrow extends internal.SvelteComponent {
|
|
|
1132
1132
|
internal.init(
|
|
1133
1133
|
this,
|
|
1134
1134
|
options,
|
|
1135
|
-
instance$
|
|
1136
|
-
create_fragment$
|
|
1135
|
+
instance$h,
|
|
1136
|
+
create_fragment$h,
|
|
1137
1137
|
internal.safe_not_equal,
|
|
1138
1138
|
{
|
|
1139
1139
|
direction: 0,
|
|
@@ -1142,18 +1142,18 @@ class Arrow extends internal.SvelteComponent {
|
|
|
1142
1142
|
inDelay: 3,
|
|
1143
1143
|
outDelay: 4
|
|
1144
1144
|
},
|
|
1145
|
-
add_css$
|
|
1145
|
+
add_css$h
|
|
1146
1146
|
);
|
|
1147
1147
|
}
|
|
1148
1148
|
}
|
|
1149
1149
|
|
|
1150
|
-
/* src/PanoTagPlugin/Components/Common/MultiLineText.svelte generated by Svelte v3.
|
|
1150
|
+
/* src/PanoTagPlugin/Components/Common/MultiLineText.svelte generated by Svelte v3.50.1 */
|
|
1151
1151
|
|
|
1152
|
-
function add_css$
|
|
1152
|
+
function add_css$g(target) {
|
|
1153
1153
|
internal.append_styles(target, "svelte-1fuzm7v", ".text.svelte-1fuzm7v{pointer-events:auto;box-sizing:border-box;display:inline-block;max-width:7.5rem;transition:transform 400ms ease-in-out;font-size:0.75rem;line-height:1.125rem;white-space:initial;cursor:pointer}.arrow.svelte-1fuzm7v{pointer-events:auto;display:inline-block;vertical-align:top;width:0.875rem;height:0.875rem;margin-left:0.125rem;margin-top:0.125rem}");
|
|
1154
1154
|
}
|
|
1155
1155
|
|
|
1156
|
-
function get_each_context$
|
|
1156
|
+
function get_each_context$4(ctx, list, i) {
|
|
1157
1157
|
const child_ctx = ctx.slice();
|
|
1158
1158
|
child_ctx[11] = list[i].id;
|
|
1159
1159
|
child_ctx[12] = list[i].content;
|
|
@@ -1161,7 +1161,7 @@ function get_each_context$3(ctx, list, i) {
|
|
|
1161
1161
|
}
|
|
1162
1162
|
|
|
1163
1163
|
// (23:0) {#each textItems as { id, content }
|
|
1164
|
-
function create_each_block$
|
|
1164
|
+
function create_each_block$4(key_1, ctx) {
|
|
1165
1165
|
let div;
|
|
1166
1166
|
let text_1;
|
|
1167
1167
|
let current;
|
|
@@ -1221,7 +1221,7 @@ function create_each_block$3(key_1, ctx) {
|
|
|
1221
1221
|
}
|
|
1222
1222
|
|
|
1223
1223
|
// (28:0) {#if lineHeight < textHeight}
|
|
1224
|
-
function create_if_block$
|
|
1224
|
+
function create_if_block$d(ctx) {
|
|
1225
1225
|
let div;
|
|
1226
1226
|
let arrow;
|
|
1227
1227
|
let current;
|
|
@@ -1268,7 +1268,7 @@ function create_if_block$c(ctx) {
|
|
|
1268
1268
|
};
|
|
1269
1269
|
}
|
|
1270
1270
|
|
|
1271
|
-
function create_fragment$
|
|
1271
|
+
function create_fragment$g(ctx) {
|
|
1272
1272
|
let each_blocks = [];
|
|
1273
1273
|
let each_1_lookup = new Map();
|
|
1274
1274
|
let t;
|
|
@@ -1278,12 +1278,12 @@ function create_fragment$f(ctx) {
|
|
|
1278
1278
|
const get_key = ctx => /*id*/ ctx[11];
|
|
1279
1279
|
|
|
1280
1280
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
1281
|
-
let child_ctx = get_each_context$
|
|
1281
|
+
let child_ctx = get_each_context$4(ctx, each_value, i);
|
|
1282
1282
|
let key = get_key(child_ctx);
|
|
1283
|
-
each_1_lookup.set(key, each_blocks[i] = create_each_block$
|
|
1283
|
+
each_1_lookup.set(key, each_blocks[i] = create_each_block$4(key, child_ctx));
|
|
1284
1284
|
}
|
|
1285
1285
|
|
|
1286
|
-
let if_block = /*lineHeight*/ ctx[3] < /*textHeight*/ ctx[4] && create_if_block$
|
|
1286
|
+
let if_block = /*lineHeight*/ ctx[3] < /*textHeight*/ ctx[4] && create_if_block$d(ctx);
|
|
1287
1287
|
|
|
1288
1288
|
return {
|
|
1289
1289
|
c() {
|
|
@@ -1309,7 +1309,7 @@ function create_fragment$f(ctx) {
|
|
|
1309
1309
|
if (dirty & /*textElement, transform, visible, textItems, foldTextDelay*/ 167) {
|
|
1310
1310
|
each_value = /*textItems*/ ctx[1];
|
|
1311
1311
|
internal.group_outros();
|
|
1312
|
-
each_blocks = internal.update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, t.parentNode, internal.outro_and_destroy_block, create_each_block$
|
|
1312
|
+
each_blocks = internal.update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, t.parentNode, internal.outro_and_destroy_block, create_each_block$4, t, get_each_context$4);
|
|
1313
1313
|
internal.check_outros();
|
|
1314
1314
|
}
|
|
1315
1315
|
|
|
@@ -1321,7 +1321,7 @@ function create_fragment$f(ctx) {
|
|
|
1321
1321
|
internal.transition_in(if_block, 1);
|
|
1322
1322
|
}
|
|
1323
1323
|
} else {
|
|
1324
|
-
if_block = create_if_block$
|
|
1324
|
+
if_block = create_if_block$d(ctx);
|
|
1325
1325
|
if_block.c();
|
|
1326
1326
|
internal.transition_in(if_block, 1);
|
|
1327
1327
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -1366,7 +1366,7 @@ function create_fragment$f(ctx) {
|
|
|
1366
1366
|
};
|
|
1367
1367
|
}
|
|
1368
1368
|
|
|
1369
|
-
function instance$
|
|
1369
|
+
function instance$g($$self, $$props, $$invalidate) {
|
|
1370
1370
|
let transform;
|
|
1371
1371
|
let arrowDirection;
|
|
1372
1372
|
let foldTextDelay;
|
|
@@ -1441,27 +1441,27 @@ class MultiLineText extends internal.SvelteComponent {
|
|
|
1441
1441
|
internal.init(
|
|
1442
1442
|
this,
|
|
1443
1443
|
options,
|
|
1444
|
-
instance$
|
|
1445
|
-
create_fragment$
|
|
1444
|
+
instance$g,
|
|
1445
|
+
create_fragment$g,
|
|
1446
1446
|
internal.safe_not_equal,
|
|
1447
1447
|
{
|
|
1448
1448
|
visible: 0,
|
|
1449
1449
|
textUnfolded: 8,
|
|
1450
1450
|
textItems: 1
|
|
1451
1451
|
},
|
|
1452
|
-
add_css$
|
|
1452
|
+
add_css$g
|
|
1453
1453
|
);
|
|
1454
1454
|
}
|
|
1455
1455
|
}
|
|
1456
1456
|
|
|
1457
|
-
/* src/PanoTagPlugin/Components/Tag/TextTag.svelte generated by Svelte v3.
|
|
1457
|
+
/* src/PanoTagPlugin/Components/Tag/TextTag.svelte generated by Svelte v3.50.1 */
|
|
1458
1458
|
|
|
1459
|
-
function add_css$
|
|
1459
|
+
function add_css$f(target) {
|
|
1460
1460
|
internal.append_styles(target, "svelte-4fxqxl", ".line.svelte-4fxqxl{position:absolute;top:0;left:0;width:10.125rem;height:0.0625rem;transform:translate3d(0, -50%, 0.625rem)}.content.svelte-4fxqxl{width:-webkit-max-content;width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0;overflow:hidden;box-sizing:border-box;font-size:0;pointer-events:none;white-space:nowrap;font-weight:600}");
|
|
1461
1461
|
}
|
|
1462
1462
|
|
|
1463
1463
|
// (29:0) {#if tag.state}
|
|
1464
|
-
function create_if_block$
|
|
1464
|
+
function create_if_block$c(ctx) {
|
|
1465
1465
|
let shadow;
|
|
1466
1466
|
let t0;
|
|
1467
1467
|
let div0;
|
|
@@ -1579,10 +1579,10 @@ function create_if_block$b(ctx) {
|
|
|
1579
1579
|
};
|
|
1580
1580
|
}
|
|
1581
1581
|
|
|
1582
|
-
function create_fragment$
|
|
1582
|
+
function create_fragment$f(ctx) {
|
|
1583
1583
|
let if_block_anchor;
|
|
1584
1584
|
let current;
|
|
1585
|
-
let if_block = /*tag*/ ctx[0].state && create_if_block$
|
|
1585
|
+
let if_block = /*tag*/ ctx[0].state && create_if_block$c(ctx);
|
|
1586
1586
|
|
|
1587
1587
|
return {
|
|
1588
1588
|
c() {
|
|
@@ -1603,7 +1603,7 @@ function create_fragment$e(ctx) {
|
|
|
1603
1603
|
internal.transition_in(if_block, 1);
|
|
1604
1604
|
}
|
|
1605
1605
|
} else {
|
|
1606
|
-
if_block = create_if_block$
|
|
1606
|
+
if_block = create_if_block$c(ctx);
|
|
1607
1607
|
if_block.c();
|
|
1608
1608
|
internal.transition_in(if_block, 1);
|
|
1609
1609
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -1634,7 +1634,7 @@ function create_fragment$e(ctx) {
|
|
|
1634
1634
|
};
|
|
1635
1635
|
}
|
|
1636
1636
|
|
|
1637
|
-
function instance$
|
|
1637
|
+
function instance$f($$self, $$props, $$invalidate) {
|
|
1638
1638
|
let unfolded;
|
|
1639
1639
|
let text;
|
|
1640
1640
|
let foldTextDelay;
|
|
@@ -1709,18 +1709,18 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
|
1709
1709
|
class TextTag extends internal.SvelteComponent {
|
|
1710
1710
|
constructor(options) {
|
|
1711
1711
|
super();
|
|
1712
|
-
internal.init(this, options, instance$
|
|
1712
|
+
internal.init(this, options, instance$f, create_fragment$f, internal.safe_not_equal, { tag: 0 }, add_css$f);
|
|
1713
1713
|
}
|
|
1714
1714
|
}
|
|
1715
1715
|
|
|
1716
|
-
/* src/PanoTagPlugin/Components/Common/Line/Polyline.svelte generated by Svelte v3.
|
|
1716
|
+
/* src/PanoTagPlugin/Components/Common/Line/Polyline.svelte generated by Svelte v3.50.1 */
|
|
1717
1717
|
|
|
1718
|
-
function add_css$
|
|
1718
|
+
function add_css$e(target) {
|
|
1719
1719
|
internal.append_styles(target, "svelte-e72ouh", ".line.svelte-e72ouh{width:100%;height:100%;overflow:visible}");
|
|
1720
1720
|
}
|
|
1721
1721
|
|
|
1722
1722
|
// (18:2) {#if unfolded}
|
|
1723
|
-
function create_if_block$
|
|
1723
|
+
function create_if_block$b(ctx) {
|
|
1724
1724
|
let path;
|
|
1725
1725
|
let path_intro;
|
|
1726
1726
|
let path_outro;
|
|
@@ -1780,13 +1780,13 @@ function create_if_block$a(ctx) {
|
|
|
1780
1780
|
};
|
|
1781
1781
|
}
|
|
1782
1782
|
|
|
1783
|
-
function create_fragment$
|
|
1783
|
+
function create_fragment$e(ctx) {
|
|
1784
1784
|
let svg;
|
|
1785
1785
|
let defs;
|
|
1786
1786
|
let linearGradient;
|
|
1787
1787
|
let stop0;
|
|
1788
1788
|
let stop1;
|
|
1789
|
-
let if_block = /*unfolded*/ ctx[3] && create_if_block$
|
|
1789
|
+
let if_block = /*unfolded*/ ctx[3] && create_if_block$b(ctx);
|
|
1790
1790
|
|
|
1791
1791
|
return {
|
|
1792
1792
|
c() {
|
|
@@ -1824,7 +1824,7 @@ function create_fragment$d(ctx) {
|
|
|
1824
1824
|
internal.transition_in(if_block, 1);
|
|
1825
1825
|
}
|
|
1826
1826
|
} else {
|
|
1827
|
-
if_block = create_if_block$
|
|
1827
|
+
if_block = create_if_block$b(ctx);
|
|
1828
1828
|
if_block.c();
|
|
1829
1829
|
internal.transition_in(if_block, 1);
|
|
1830
1830
|
if_block.m(svg, null);
|
|
@@ -1852,7 +1852,7 @@ function create_fragment$d(ctx) {
|
|
|
1852
1852
|
};
|
|
1853
1853
|
}
|
|
1854
1854
|
|
|
1855
|
-
function instance$
|
|
1855
|
+
function instance$e($$self, $$props, $$invalidate) {
|
|
1856
1856
|
let { inDelay = 0 } = $$props;
|
|
1857
1857
|
let { duration = 0 } = $$props;
|
|
1858
1858
|
let { outDelay = 0 } = $$props;
|
|
@@ -1876,8 +1876,8 @@ class Polyline extends internal.SvelteComponent {
|
|
|
1876
1876
|
internal.init(
|
|
1877
1877
|
this,
|
|
1878
1878
|
options,
|
|
1879
|
-
instance$
|
|
1880
|
-
create_fragment$
|
|
1879
|
+
instance$e,
|
|
1880
|
+
create_fragment$e,
|
|
1881
1881
|
internal.safe_not_equal,
|
|
1882
1882
|
{
|
|
1883
1883
|
inDelay: 0,
|
|
@@ -1885,80 +1885,84 @@ class Polyline extends internal.SvelteComponent {
|
|
|
1885
1885
|
outDelay: 2,
|
|
1886
1886
|
unfolded: 3
|
|
1887
1887
|
},
|
|
1888
|
-
add_css$
|
|
1888
|
+
add_css$e
|
|
1889
1889
|
);
|
|
1890
1890
|
}
|
|
1891
1891
|
}
|
|
1892
1892
|
|
|
1893
|
-
/* src/PanoTagPlugin/Components/Common/Media.svelte generated by Svelte v3.
|
|
1893
|
+
/* src/PanoTagPlugin/Components/Common/Media.svelte generated by Svelte v3.50.1 */
|
|
1894
1894
|
|
|
1895
|
-
function add_css$
|
|
1896
|
-
internal.append_styles(target, "svelte-
|
|
1895
|
+
function add_css$d(target) {
|
|
1896
|
+
internal.append_styles(target, "svelte-129jnm", ".media.svelte-129jnm{width:100%;height:100%;position:relative;overflow:hidden;border-radius:0.125rem}.carousel-item.svelte-129jnm{height:100%}.media-content.svelte-129jnm{width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;-o-object-fit:inherit;object-fit:inherit}.video-icon.svelte-129jnm{width:1.75rem;height:1.75rem;background-size:100%;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}");
|
|
1897
1897
|
}
|
|
1898
1898
|
|
|
1899
|
-
|
|
1900
|
-
|
|
1899
|
+
function get_each_context$3(ctx, list, i) {
|
|
1900
|
+
const child_ctx = ctx.slice();
|
|
1901
|
+
child_ctx[9] = list[i];
|
|
1902
|
+
return child_ctx;
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
// (16:0) {#if unfolded}
|
|
1906
|
+
function create_if_block$a(ctx) {
|
|
1901
1907
|
let div;
|
|
1902
|
-
let t;
|
|
1903
1908
|
let div_intro;
|
|
1904
1909
|
let div_outro;
|
|
1905
1910
|
let current;
|
|
1911
|
+
let each_value = /*mediaDataList*/ ctx[6];
|
|
1912
|
+
let each_blocks = [];
|
|
1906
1913
|
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
return create_else_block$1;
|
|
1914
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
1915
|
+
each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
|
|
1910
1916
|
}
|
|
1911
1917
|
|
|
1912
|
-
let current_block_type = select_block_type(ctx);
|
|
1913
|
-
let if_block0 = current_block_type(ctx);
|
|
1914
|
-
let if_block1 = /*mediaData*/ ctx[0].type === 'Video' && create_if_block_1$6();
|
|
1915
|
-
|
|
1916
1918
|
return {
|
|
1917
1919
|
c() {
|
|
1918
1920
|
div = internal.element("div");
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1921
|
+
|
|
1922
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
1923
|
+
each_blocks[i].c();
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
internal.attr(div, "class", "media svelte-129jnm");
|
|
1927
|
+
internal.toggle_class(div, "unfolded", /*unfolded*/ ctx[3]);
|
|
1924
1928
|
},
|
|
1925
1929
|
m(target, anchor) {
|
|
1926
1930
|
internal.insert(target, div, anchor);
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1931
|
+
|
|
1932
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
1933
|
+
each_blocks[i].m(div, null);
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1930
1936
|
current = true;
|
|
1931
1937
|
},
|
|
1932
1938
|
p(new_ctx, dirty) {
|
|
1933
1939
|
ctx = new_ctx;
|
|
1934
1940
|
|
|
1935
|
-
if (
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
if_block0.d(1);
|
|
1939
|
-
if_block0 = current_block_type(ctx);
|
|
1941
|
+
if (dirty & /*objectFit, Image_Play, mediaDataList*/ 96) {
|
|
1942
|
+
each_value = /*mediaDataList*/ ctx[6];
|
|
1943
|
+
let i;
|
|
1940
1944
|
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1945
|
+
for (i = 0; i < each_value.length; i += 1) {
|
|
1946
|
+
const child_ctx = get_each_context$3(ctx, each_value, i);
|
|
1947
|
+
|
|
1948
|
+
if (each_blocks[i]) {
|
|
1949
|
+
each_blocks[i].p(child_ctx, dirty);
|
|
1950
|
+
} else {
|
|
1951
|
+
each_blocks[i] = create_each_block$3(child_ctx);
|
|
1952
|
+
each_blocks[i].c();
|
|
1953
|
+
each_blocks[i].m(div, null);
|
|
1954
|
+
}
|
|
1944
1955
|
}
|
|
1945
|
-
}
|
|
1946
1956
|
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
if_block1.p(ctx, dirty);
|
|
1950
|
-
} else {
|
|
1951
|
-
if_block1 = create_if_block_1$6();
|
|
1952
|
-
if_block1.c();
|
|
1953
|
-
if_block1.m(div, null);
|
|
1957
|
+
for (; i < each_blocks.length; i += 1) {
|
|
1958
|
+
each_blocks[i].d(1);
|
|
1954
1959
|
}
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
if_block1 = null;
|
|
1960
|
+
|
|
1961
|
+
each_blocks.length = each_value.length;
|
|
1958
1962
|
}
|
|
1959
1963
|
|
|
1960
|
-
if (dirty & /*unfolded*/
|
|
1961
|
-
internal.toggle_class(div, "unfolded", /*unfolded*/ ctx[
|
|
1964
|
+
if (!current || dirty & /*unfolded*/ 8) {
|
|
1965
|
+
internal.toggle_class(div, "unfolded", /*unfolded*/ ctx[3]);
|
|
1962
1966
|
}
|
|
1963
1967
|
},
|
|
1964
1968
|
i(local) {
|
|
@@ -1968,12 +1972,14 @@ function create_if_block$9(ctx) {
|
|
|
1968
1972
|
internal.add_render_callback(() => {
|
|
1969
1973
|
if (div_outro) div_outro.end(1);
|
|
1970
1974
|
|
|
1971
|
-
div_intro = internal.create_in_transition(div, transition.fly,
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1975
|
+
div_intro = internal.create_in_transition(div, transition.fly, /*animation*/ ctx[4]
|
|
1976
|
+
? {
|
|
1977
|
+
y: 4,
|
|
1978
|
+
duration: /*duration*/ ctx[2],
|
|
1979
|
+
delay: /*inDelay*/ ctx[0],
|
|
1980
|
+
easing: easing.linear
|
|
1981
|
+
}
|
|
1982
|
+
: undefined);
|
|
1977
1983
|
|
|
1978
1984
|
div_intro.start();
|
|
1979
1985
|
});
|
|
@@ -1985,27 +1991,28 @@ function create_if_block$9(ctx) {
|
|
|
1985
1991
|
if (div_intro) div_intro.invalidate();
|
|
1986
1992
|
|
|
1987
1993
|
if (local) {
|
|
1988
|
-
div_outro = internal.create_out_transition(div, transition.fly,
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
+
div_outro = internal.create_out_transition(div, transition.fly, /*animation*/ ctx[4]
|
|
1995
|
+
? {
|
|
1996
|
+
y: 4,
|
|
1997
|
+
duration: /*duration*/ ctx[2],
|
|
1998
|
+
delay: /*outDelay*/ ctx[1],
|
|
1999
|
+
easing: easing.linear
|
|
2000
|
+
}
|
|
2001
|
+
: undefined);
|
|
1994
2002
|
}
|
|
1995
2003
|
|
|
1996
2004
|
current = false;
|
|
1997
2005
|
},
|
|
1998
2006
|
d(detaching) {
|
|
1999
2007
|
if (detaching) internal.detach(div);
|
|
2000
|
-
|
|
2001
|
-
if (if_block1) if_block1.d();
|
|
2008
|
+
internal.destroy_each(each_blocks, detaching);
|
|
2002
2009
|
if (detaching && div_outro) div_outro.end();
|
|
2003
2010
|
}
|
|
2004
2011
|
};
|
|
2005
2012
|
}
|
|
2006
2013
|
|
|
2007
|
-
// (
|
|
2008
|
-
function
|
|
2014
|
+
// (29:65)
|
|
2015
|
+
function create_if_block_4$2(ctx) {
|
|
2009
2016
|
let video;
|
|
2010
2017
|
let video_src_value;
|
|
2011
2018
|
let video_poster_value;
|
|
@@ -2013,26 +2020,26 @@ function create_else_block$1(ctx) {
|
|
|
2013
2020
|
return {
|
|
2014
2021
|
c() {
|
|
2015
2022
|
video = internal.element("video");
|
|
2016
|
-
internal.attr(video, "class", "media-content svelte-
|
|
2017
|
-
if (!internal.src_url_equal(video.src, video_src_value = /*
|
|
2018
|
-
internal.attr(video, "poster", video_poster_value = /*
|
|
2023
|
+
internal.attr(video, "class", "media-content svelte-129jnm");
|
|
2024
|
+
if (!internal.src_url_equal(video.src, video_src_value = /*media*/ ctx[9].url)) internal.attr(video, "src", video_src_value);
|
|
2025
|
+
internal.attr(video, "poster", video_poster_value = /*media*/ ctx[9].videoCoverUrl);
|
|
2019
2026
|
video.playsInline = true;
|
|
2020
2027
|
internal.attr(video, "paused", "");
|
|
2021
2028
|
video.loop = false;
|
|
2022
2029
|
internal.attr(video, "preload", "auto");
|
|
2023
2030
|
internal.attr(video, "crossorigin", "");
|
|
2024
2031
|
video.controls = false;
|
|
2025
|
-
video.muted =
|
|
2032
|
+
video.muted = true;
|
|
2026
2033
|
},
|
|
2027
2034
|
m(target, anchor) {
|
|
2028
2035
|
internal.insert(target, video, anchor);
|
|
2029
2036
|
},
|
|
2030
2037
|
p(ctx, dirty) {
|
|
2031
|
-
if (dirty & /*
|
|
2038
|
+
if (dirty & /*mediaDataList*/ 64 && !internal.src_url_equal(video.src, video_src_value = /*media*/ ctx[9].url)) {
|
|
2032
2039
|
internal.attr(video, "src", video_src_value);
|
|
2033
2040
|
}
|
|
2034
2041
|
|
|
2035
|
-
if (dirty & /*
|
|
2042
|
+
if (dirty & /*mediaDataList*/ 64 && video_poster_value !== (video_poster_value = /*media*/ ctx[9].videoCoverUrl)) {
|
|
2036
2043
|
internal.attr(video, "poster", video_poster_value);
|
|
2037
2044
|
}
|
|
2038
2045
|
},
|
|
@@ -2042,7 +2049,38 @@ function create_else_block$1(ctx) {
|
|
|
2042
2049
|
};
|
|
2043
2050
|
}
|
|
2044
2051
|
|
|
2045
|
-
// (
|
|
2052
|
+
// (27:64)
|
|
2053
|
+
function create_if_block_3$2(ctx) {
|
|
2054
|
+
let img;
|
|
2055
|
+
let img_src_value;
|
|
2056
|
+
let img_alt_value;
|
|
2057
|
+
|
|
2058
|
+
return {
|
|
2059
|
+
c() {
|
|
2060
|
+
img = internal.element("img");
|
|
2061
|
+
internal.attr(img, "class", "media-content svelte-129jnm");
|
|
2062
|
+
if (!internal.src_url_equal(img.src, img_src_value = /*media*/ ctx[9].videoCoverUrl)) internal.attr(img, "src", img_src_value);
|
|
2063
|
+
internal.attr(img, "alt", img_alt_value = /*media*/ ctx[9].name);
|
|
2064
|
+
},
|
|
2065
|
+
m(target, anchor) {
|
|
2066
|
+
internal.insert(target, img, anchor);
|
|
2067
|
+
},
|
|
2068
|
+
p(ctx, dirty) {
|
|
2069
|
+
if (dirty & /*mediaDataList*/ 64 && !internal.src_url_equal(img.src, img_src_value = /*media*/ ctx[9].videoCoverUrl)) {
|
|
2070
|
+
internal.attr(img, "src", img_src_value);
|
|
2071
|
+
}
|
|
2072
|
+
|
|
2073
|
+
if (dirty & /*mediaDataList*/ 64 && img_alt_value !== (img_alt_value = /*media*/ ctx[9].name)) {
|
|
2074
|
+
internal.attr(img, "alt", img_alt_value);
|
|
2075
|
+
}
|
|
2076
|
+
},
|
|
2077
|
+
d(detaching) {
|
|
2078
|
+
if (detaching) internal.detach(img);
|
|
2079
|
+
}
|
|
2080
|
+
};
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
// (25:8) {#if media.type === 'Image'}
|
|
2046
2084
|
function create_if_block_2$3(ctx) {
|
|
2047
2085
|
let img;
|
|
2048
2086
|
let img_src_value;
|
|
@@ -2051,19 +2089,19 @@ function create_if_block_2$3(ctx) {
|
|
|
2051
2089
|
return {
|
|
2052
2090
|
c() {
|
|
2053
2091
|
img = internal.element("img");
|
|
2054
|
-
internal.attr(img, "class", "media-content svelte-
|
|
2055
|
-
if (!internal.src_url_equal(img.src, img_src_value = /*
|
|
2056
|
-
internal.attr(img, "alt", img_alt_value = /*
|
|
2092
|
+
internal.attr(img, "class", "media-content carousel-indicator-item svelte-129jnm");
|
|
2093
|
+
if (!internal.src_url_equal(img.src, img_src_value = /*media*/ ctx[9].url)) internal.attr(img, "src", img_src_value);
|
|
2094
|
+
internal.attr(img, "alt", img_alt_value = /*media*/ ctx[9].name);
|
|
2057
2095
|
},
|
|
2058
2096
|
m(target, anchor) {
|
|
2059
2097
|
internal.insert(target, img, anchor);
|
|
2060
2098
|
},
|
|
2061
2099
|
p(ctx, dirty) {
|
|
2062
|
-
if (dirty & /*
|
|
2100
|
+
if (dirty & /*mediaDataList*/ 64 && !internal.src_url_equal(img.src, img_src_value = /*media*/ ctx[9].url)) {
|
|
2063
2101
|
internal.attr(img, "src", img_src_value);
|
|
2064
2102
|
}
|
|
2065
2103
|
|
|
2066
|
-
if (dirty & /*
|
|
2104
|
+
if (dirty & /*mediaDataList*/ 64 && img_alt_value !== (img_alt_value = /*media*/ ctx[9].name)) {
|
|
2067
2105
|
internal.attr(img, "alt", img_alt_value);
|
|
2068
2106
|
}
|
|
2069
2107
|
},
|
|
@@ -2073,14 +2111,14 @@ function create_if_block_2$3(ctx) {
|
|
|
2073
2111
|
};
|
|
2074
2112
|
}
|
|
2075
2113
|
|
|
2076
|
-
// (
|
|
2114
|
+
// (33:8) {#if media.type === 'Video'}
|
|
2077
2115
|
function create_if_block_1$6(ctx) {
|
|
2078
2116
|
let div;
|
|
2079
2117
|
|
|
2080
2118
|
return {
|
|
2081
2119
|
c() {
|
|
2082
2120
|
div = internal.element("div");
|
|
2083
|
-
internal.attr(div, "class", "video-icon svelte-
|
|
2121
|
+
internal.attr(div, "class", "video-icon svelte-129jnm");
|
|
2084
2122
|
internal.set_style(div, "background-image", "url(" + Image_Play + ")");
|
|
2085
2123
|
},
|
|
2086
2124
|
m(target, anchor) {
|
|
@@ -2093,9 +2131,85 @@ function create_if_block_1$6(ctx) {
|
|
|
2093
2131
|
};
|
|
2094
2132
|
}
|
|
2095
2133
|
|
|
2096
|
-
|
|
2134
|
+
// (23:4) {#each mediaDataList as media}
|
|
2135
|
+
function create_each_block$3(ctx) {
|
|
2136
|
+
let div;
|
|
2137
|
+
let t0;
|
|
2138
|
+
let t1;
|
|
2139
|
+
let div_style_value;
|
|
2140
|
+
|
|
2141
|
+
function select_block_type(ctx, dirty) {
|
|
2142
|
+
if (/*media*/ ctx[9].type === 'Image') return create_if_block_2$3;
|
|
2143
|
+
if (/*media*/ ctx[9].type === 'Video' && /*media*/ ctx[9].videoCoverUrl) return create_if_block_3$2;
|
|
2144
|
+
if (/*media*/ ctx[9].type === 'Video' && !/*media*/ ctx[9].videoCoverUrl) return create_if_block_4$2;
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
let current_block_type = select_block_type(ctx);
|
|
2148
|
+
let if_block0 = current_block_type && current_block_type(ctx);
|
|
2149
|
+
let if_block1 = /*media*/ ctx[9].type === 'Video' && create_if_block_1$6();
|
|
2150
|
+
|
|
2151
|
+
return {
|
|
2152
|
+
c() {
|
|
2153
|
+
div = internal.element("div");
|
|
2154
|
+
if (if_block0) if_block0.c();
|
|
2155
|
+
t0 = internal.space();
|
|
2156
|
+
if (if_block1) if_block1.c();
|
|
2157
|
+
t1 = internal.space();
|
|
2158
|
+
internal.attr(div, "class", "carousel-item svelte-129jnm");
|
|
2159
|
+
internal.attr(div, "style", div_style_value = `object-fit: ${/*objectFit*/ ctx[5]};`);
|
|
2160
|
+
},
|
|
2161
|
+
m(target, anchor) {
|
|
2162
|
+
internal.insert(target, div, anchor);
|
|
2163
|
+
if (if_block0) if_block0.m(div, null);
|
|
2164
|
+
internal.append(div, t0);
|
|
2165
|
+
if (if_block1) if_block1.m(div, null);
|
|
2166
|
+
internal.append(div, t1);
|
|
2167
|
+
},
|
|
2168
|
+
p(ctx, dirty) {
|
|
2169
|
+
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block0) {
|
|
2170
|
+
if_block0.p(ctx, dirty);
|
|
2171
|
+
} else {
|
|
2172
|
+
if (if_block0) if_block0.d(1);
|
|
2173
|
+
if_block0 = current_block_type && current_block_type(ctx);
|
|
2174
|
+
|
|
2175
|
+
if (if_block0) {
|
|
2176
|
+
if_block0.c();
|
|
2177
|
+
if_block0.m(div, t0);
|
|
2178
|
+
}
|
|
2179
|
+
}
|
|
2180
|
+
|
|
2181
|
+
if (/*media*/ ctx[9].type === 'Video') {
|
|
2182
|
+
if (if_block1) {
|
|
2183
|
+
if_block1.p(ctx, dirty);
|
|
2184
|
+
} else {
|
|
2185
|
+
if_block1 = create_if_block_1$6();
|
|
2186
|
+
if_block1.c();
|
|
2187
|
+
if_block1.m(div, t1);
|
|
2188
|
+
}
|
|
2189
|
+
} else if (if_block1) {
|
|
2190
|
+
if_block1.d(1);
|
|
2191
|
+
if_block1 = null;
|
|
2192
|
+
}
|
|
2193
|
+
|
|
2194
|
+
if (dirty & /*objectFit*/ 32 && div_style_value !== (div_style_value = `object-fit: ${/*objectFit*/ ctx[5]};`)) {
|
|
2195
|
+
internal.attr(div, "style", div_style_value);
|
|
2196
|
+
}
|
|
2197
|
+
},
|
|
2198
|
+
d(detaching) {
|
|
2199
|
+
if (detaching) internal.detach(div);
|
|
2200
|
+
|
|
2201
|
+
if (if_block0) {
|
|
2202
|
+
if_block0.d();
|
|
2203
|
+
}
|
|
2204
|
+
|
|
2205
|
+
if (if_block1) if_block1.d();
|
|
2206
|
+
}
|
|
2207
|
+
};
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2210
|
+
function create_fragment$d(ctx) {
|
|
2097
2211
|
let if_block_anchor;
|
|
2098
|
-
let if_block = /*unfolded*/ ctx[
|
|
2212
|
+
let if_block = /*unfolded*/ ctx[3] && create_if_block$a(ctx);
|
|
2099
2213
|
|
|
2100
2214
|
return {
|
|
2101
2215
|
c() {
|
|
@@ -2107,15 +2221,15 @@ function create_fragment$c(ctx) {
|
|
|
2107
2221
|
internal.insert(target, if_block_anchor, anchor);
|
|
2108
2222
|
},
|
|
2109
2223
|
p(ctx, [dirty]) {
|
|
2110
|
-
if (/*unfolded*/ ctx[
|
|
2224
|
+
if (/*unfolded*/ ctx[3]) {
|
|
2111
2225
|
if (if_block) {
|
|
2112
2226
|
if_block.p(ctx, dirty);
|
|
2113
2227
|
|
|
2114
|
-
if (dirty & /*unfolded*/
|
|
2228
|
+
if (dirty & /*unfolded*/ 8) {
|
|
2115
2229
|
internal.transition_in(if_block, 1);
|
|
2116
2230
|
}
|
|
2117
2231
|
} else {
|
|
2118
|
-
if_block = create_if_block$
|
|
2232
|
+
if_block = create_if_block$a(ctx);
|
|
2119
2233
|
if_block.c();
|
|
2120
2234
|
internal.transition_in(if_block, 1);
|
|
2121
2235
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -2143,31 +2257,45 @@ function create_fragment$c(ctx) {
|
|
|
2143
2257
|
};
|
|
2144
2258
|
}
|
|
2145
2259
|
|
|
2146
|
-
function instance$
|
|
2147
|
-
let
|
|
2260
|
+
function instance$d($$self, $$props, $$invalidate) {
|
|
2261
|
+
let mediaDataList;
|
|
2148
2262
|
let { mediaData } = $$props;
|
|
2149
2263
|
let { inDelay = 0 } = $$props;
|
|
2150
2264
|
let { outDelay = 0 } = $$props;
|
|
2151
2265
|
let { duration = 0 } = $$props;
|
|
2152
2266
|
let { unfolded = true } = $$props;
|
|
2267
|
+
let { animation = true } = $$props;
|
|
2268
|
+
let { objectFit = 'cover' } = $$props;
|
|
2269
|
+
let { enableCarousel = true } = $$props;
|
|
2153
2270
|
|
|
2154
2271
|
$$self.$$set = $$props => {
|
|
2155
|
-
if ('mediaData' in $$props) $$invalidate(
|
|
2156
|
-
if ('inDelay' in $$props) $$invalidate(
|
|
2157
|
-
if ('outDelay' in $$props) $$invalidate(
|
|
2158
|
-
if ('duration' in $$props) $$invalidate(
|
|
2159
|
-
if ('unfolded' in $$props) $$invalidate(
|
|
2272
|
+
if ('mediaData' in $$props) $$invalidate(7, mediaData = $$props.mediaData);
|
|
2273
|
+
if ('inDelay' in $$props) $$invalidate(0, inDelay = $$props.inDelay);
|
|
2274
|
+
if ('outDelay' in $$props) $$invalidate(1, outDelay = $$props.outDelay);
|
|
2275
|
+
if ('duration' in $$props) $$invalidate(2, duration = $$props.duration);
|
|
2276
|
+
if ('unfolded' in $$props) $$invalidate(3, unfolded = $$props.unfolded);
|
|
2277
|
+
if ('animation' in $$props) $$invalidate(4, animation = $$props.animation);
|
|
2278
|
+
if ('objectFit' in $$props) $$invalidate(5, objectFit = $$props.objectFit);
|
|
2279
|
+
if ('enableCarousel' in $$props) $$invalidate(8, enableCarousel = $$props.enableCarousel);
|
|
2160
2280
|
};
|
|
2161
2281
|
|
|
2162
2282
|
$$self.$$.update = () => {
|
|
2163
|
-
if ($$self.$$.dirty & /*mediaData*/
|
|
2164
|
-
$$invalidate(
|
|
2165
|
-
? mediaData.url
|
|
2166
|
-
: mediaData.videoCoverUrl);
|
|
2283
|
+
if ($$self.$$.dirty & /*enableCarousel, mediaData*/ 384) {
|
|
2284
|
+
$$invalidate(6, mediaDataList = (enableCarousel ? mediaData : [mediaData[0]]).filter(notNil));
|
|
2167
2285
|
}
|
|
2168
2286
|
};
|
|
2169
2287
|
|
|
2170
|
-
return [
|
|
2288
|
+
return [
|
|
2289
|
+
inDelay,
|
|
2290
|
+
outDelay,
|
|
2291
|
+
duration,
|
|
2292
|
+
unfolded,
|
|
2293
|
+
animation,
|
|
2294
|
+
objectFit,
|
|
2295
|
+
mediaDataList,
|
|
2296
|
+
mediaData,
|
|
2297
|
+
enableCarousel
|
|
2298
|
+
];
|
|
2171
2299
|
}
|
|
2172
2300
|
|
|
2173
2301
|
class Media extends internal.SvelteComponent {
|
|
@@ -2177,36 +2305,39 @@ class Media extends internal.SvelteComponent {
|
|
|
2177
2305
|
internal.init(
|
|
2178
2306
|
this,
|
|
2179
2307
|
options,
|
|
2180
|
-
instance$
|
|
2181
|
-
create_fragment$
|
|
2308
|
+
instance$d,
|
|
2309
|
+
create_fragment$d,
|
|
2182
2310
|
internal.safe_not_equal,
|
|
2183
2311
|
{
|
|
2184
|
-
mediaData:
|
|
2185
|
-
inDelay:
|
|
2186
|
-
outDelay:
|
|
2187
|
-
duration:
|
|
2188
|
-
unfolded:
|
|
2312
|
+
mediaData: 7,
|
|
2313
|
+
inDelay: 0,
|
|
2314
|
+
outDelay: 1,
|
|
2315
|
+
duration: 2,
|
|
2316
|
+
unfolded: 3,
|
|
2317
|
+
animation: 4,
|
|
2318
|
+
objectFit: 5,
|
|
2319
|
+
enableCarousel: 8
|
|
2189
2320
|
},
|
|
2190
|
-
add_css$
|
|
2321
|
+
add_css$d
|
|
2191
2322
|
);
|
|
2192
2323
|
}
|
|
2193
2324
|
}
|
|
2194
2325
|
|
|
2195
|
-
/* src/PanoTagPlugin/Components/Tag/ImageTextTag.svelte generated by Svelte v3.
|
|
2326
|
+
/* src/PanoTagPlugin/Components/Tag/ImageTextTag.svelte generated by Svelte v3.50.1 */
|
|
2196
2327
|
|
|
2197
|
-
function add_css$
|
|
2328
|
+
function add_css$c(target) {
|
|
2198
2329
|
internal.append_styles(target, "svelte-1p8f9wy", ".line.svelte-1p8f9wy{position:absolute;width:6.5625rem;height:1.3125rem;transform:translateY(-100%);z-index:10}.text.svelte-1p8f9wy{position:absolute;width:6.25rem;left:1rem;bottom:0.0625rem;z-index:10;font-weight:600}.media-wrapper.svelte-1p8f9wy{position:absolute;left:0.875rem;top:-5.3125rem;width:5.625rem;height:3.75rem;z-index:10;font-weight:600}");
|
|
2199
2330
|
}
|
|
2200
2331
|
|
|
2201
2332
|
function get_each_context$2(ctx, list, i) {
|
|
2202
2333
|
const child_ctx = ctx.slice();
|
|
2203
|
-
child_ctx[
|
|
2334
|
+
child_ctx[8] = list[i].id;
|
|
2204
2335
|
child_ctx[1] = list[i].content;
|
|
2205
2336
|
return child_ctx;
|
|
2206
2337
|
}
|
|
2207
2338
|
|
|
2208
2339
|
// (19:0) {#if tag.state}
|
|
2209
|
-
function create_if_block$
|
|
2340
|
+
function create_if_block$9(ctx) {
|
|
2210
2341
|
let shadow;
|
|
2211
2342
|
let t0;
|
|
2212
2343
|
let div;
|
|
@@ -2238,7 +2369,7 @@ function create_if_block$8(ctx) {
|
|
|
2238
2369
|
});
|
|
2239
2370
|
|
|
2240
2371
|
let each_value = /*textItems*/ ctx[2];
|
|
2241
|
-
const get_key = ctx => /*id*/ ctx[
|
|
2372
|
+
const get_key = ctx => /*id*/ ctx[8];
|
|
2242
2373
|
|
|
2243
2374
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
2244
2375
|
let child_ctx = get_each_context$2(ctx, each_value, i);
|
|
@@ -2414,10 +2545,10 @@ function create_each_block$2(key_1, ctx) {
|
|
|
2414
2545
|
// (29:2) {#if mediaData}
|
|
2415
2546
|
function create_if_block_1$5(ctx) {
|
|
2416
2547
|
let div;
|
|
2417
|
-
let
|
|
2548
|
+
let media;
|
|
2418
2549
|
let current;
|
|
2419
2550
|
|
|
2420
|
-
|
|
2551
|
+
media = new Media({
|
|
2421
2552
|
props: {
|
|
2422
2553
|
unfolded: /*unfolded*/ ctx[4],
|
|
2423
2554
|
mediaData: /*mediaData*/ ctx[3],
|
|
@@ -2429,40 +2560,40 @@ function create_if_block_1$5(ctx) {
|
|
|
2429
2560
|
return {
|
|
2430
2561
|
c() {
|
|
2431
2562
|
div = internal.element("div");
|
|
2432
|
-
internal.create_component(
|
|
2563
|
+
internal.create_component(media.$$.fragment);
|
|
2433
2564
|
internal.attr(div, "class", "media-wrapper svelte-1p8f9wy");
|
|
2434
2565
|
},
|
|
2435
2566
|
m(target, anchor) {
|
|
2436
2567
|
internal.insert(target, div, anchor);
|
|
2437
|
-
internal.mount_component(
|
|
2568
|
+
internal.mount_component(media, div, null);
|
|
2438
2569
|
current = true;
|
|
2439
2570
|
},
|
|
2440
2571
|
p(ctx, dirty) {
|
|
2441
|
-
const
|
|
2442
|
-
if (dirty & /*unfolded*/ 16)
|
|
2443
|
-
if (dirty & /*mediaData*/ 8)
|
|
2444
|
-
|
|
2572
|
+
const media_changes = {};
|
|
2573
|
+
if (dirty & /*unfolded*/ 16) media_changes.unfolded = /*unfolded*/ ctx[4];
|
|
2574
|
+
if (dirty & /*mediaData*/ 8) media_changes.mediaData = /*mediaData*/ ctx[3];
|
|
2575
|
+
media.$set(media_changes);
|
|
2445
2576
|
},
|
|
2446
2577
|
i(local) {
|
|
2447
2578
|
if (current) return;
|
|
2448
|
-
internal.transition_in(
|
|
2579
|
+
internal.transition_in(media.$$.fragment, local);
|
|
2449
2580
|
current = true;
|
|
2450
2581
|
},
|
|
2451
2582
|
o(local) {
|
|
2452
|
-
internal.transition_out(
|
|
2583
|
+
internal.transition_out(media.$$.fragment, local);
|
|
2453
2584
|
current = false;
|
|
2454
2585
|
},
|
|
2455
2586
|
d(detaching) {
|
|
2456
2587
|
if (detaching) internal.detach(div);
|
|
2457
|
-
internal.destroy_component(
|
|
2588
|
+
internal.destroy_component(media);
|
|
2458
2589
|
}
|
|
2459
2590
|
};
|
|
2460
2591
|
}
|
|
2461
2592
|
|
|
2462
|
-
function create_fragment$
|
|
2593
|
+
function create_fragment$c(ctx) {
|
|
2463
2594
|
let if_block_anchor;
|
|
2464
2595
|
let current;
|
|
2465
|
-
let if_block = /*tag*/ ctx[0].state && create_if_block$
|
|
2596
|
+
let if_block = /*tag*/ ctx[0].state && create_if_block$9(ctx);
|
|
2466
2597
|
|
|
2467
2598
|
return {
|
|
2468
2599
|
c() {
|
|
@@ -2483,7 +2614,7 @@ function create_fragment$b(ctx) {
|
|
|
2483
2614
|
internal.transition_in(if_block, 1);
|
|
2484
2615
|
}
|
|
2485
2616
|
} else {
|
|
2486
|
-
if_block = create_if_block$
|
|
2617
|
+
if_block = create_if_block$9(ctx);
|
|
2487
2618
|
if_block.c();
|
|
2488
2619
|
internal.transition_in(if_block, 1);
|
|
2489
2620
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -2514,11 +2645,11 @@ function create_fragment$b(ctx) {
|
|
|
2514
2645
|
};
|
|
2515
2646
|
}
|
|
2516
2647
|
|
|
2517
|
-
function instance$
|
|
2648
|
+
function instance$c($$self, $$props, $$invalidate) {
|
|
2518
2649
|
let unfolded;
|
|
2519
2650
|
let content;
|
|
2520
2651
|
let mediaData;
|
|
2521
|
-
var _a, _b, _c
|
|
2652
|
+
var _a, _b, _c;
|
|
2522
2653
|
let { tag } = $$props;
|
|
2523
2654
|
let textItems;
|
|
2524
2655
|
|
|
@@ -2543,10 +2674,8 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
2543
2674
|
: tag.data.text);
|
|
2544
2675
|
}
|
|
2545
2676
|
|
|
2546
|
-
if ($$self.$$.dirty & /*tag
|
|
2547
|
-
$$invalidate(3, mediaData =
|
|
2548
|
-
? void 0
|
|
2549
|
-
: _d[0]);
|
|
2677
|
+
if ($$self.$$.dirty & /*tag*/ 1) {
|
|
2678
|
+
$$invalidate(3, mediaData = tag.data.mediaData);
|
|
2550
2679
|
}
|
|
2551
2680
|
|
|
2552
2681
|
if ($$self.$$.dirty & /*content*/ 2) {
|
|
@@ -2557,20 +2686,20 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
2557
2686
|
}
|
|
2558
2687
|
};
|
|
2559
2688
|
|
|
2560
|
-
return [tag, content, textItems, mediaData, unfolded, _a, _b, _c
|
|
2689
|
+
return [tag, content, textItems, mediaData, unfolded, _a, _b, _c];
|
|
2561
2690
|
}
|
|
2562
2691
|
|
|
2563
2692
|
class ImageTextTag extends internal.SvelteComponent {
|
|
2564
2693
|
constructor(options) {
|
|
2565
2694
|
super();
|
|
2566
|
-
internal.init(this, options, instance$
|
|
2695
|
+
internal.init(this, options, instance$c, create_fragment$c, internal.safe_not_equal, { tag: 0 }, add_css$c);
|
|
2567
2696
|
}
|
|
2568
2697
|
}
|
|
2569
2698
|
|
|
2570
|
-
/* src/PanoTagPlugin/Components/Tag/MarketingTag.svelte generated by Svelte v3.
|
|
2699
|
+
/* src/PanoTagPlugin/Components/Tag/MarketingTag.svelte generated by Svelte v3.50.1 */
|
|
2571
2700
|
|
|
2572
|
-
function add_css$
|
|
2573
|
-
internal.append_styles(target, "svelte-
|
|
2701
|
+
function add_css$b(target) {
|
|
2702
|
+
internal.append_styles(target, "svelte-xgzc8c", ".svelte-xgzc8c.svelte-xgzc8c{box-sizing:border-box}.marketing.svelte-xgzc8c.svelte-xgzc8c{transform:translateY(-100%)}.content.svelte-xgzc8c .headerImage.svelte-xgzc8c{position:absolute;width:100%;top:0.25rem;transform:translateY(-100%);border-top-left-radius:0.25rem;border-top-right-radius:0.25rem}.line.svelte-xgzc8c.svelte-xgzc8c{position:absolute;height:2.0625rem;width:0.0625rem;left:50%;transform:translateX(-50%);background-color:white;bottom:0;transform-origin:bottom;transition:all 500ms}.content.svelte-xgzc8c.svelte-xgzc8c{background-color:white;position:relative;display:flex;flex-direction:column;min-width:11.125rem;width:-webkit-max-content;width:-moz-max-content;width:max-content;height:-webkit-max-content;height:-moz-max-content;height:max-content;border-radius:0.25rem;top:-1.875rem;left:-1rem;padding:0.5rem 0rem 0.5625rem;transition:all 500ms}.title.svelte-xgzc8c.svelte-xgzc8c{position:absolute;background-color:white;border-radius:0.25rem;width:100%;top:0.5rem;padding-left:0.75rem;padding-right:0.75rem}.title.svelte-xgzc8c .text.svelte-xgzc8c{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:0.75rem;font-weight:bold;line-height:1.125rem;color:#000}.footer.svelte-xgzc8c.svelte-xgzc8c{position:relative;padding-left:0.75rem;padding-right:0.75rem;width:100%;height:1.375rem;display:flex;align-items:center}.footer.svelte-xgzc8c .goto-button.svelte-xgzc8c{flex-shrink:0;white-space:nowrap;background-image:linear-gradient(to right, rgba(87, 144, 253, 1) 0, rgba(42, 114, 254, 1) 100%);color:#fff;font-size:0.625rem;border-radius:0.875rem;font-weight:bold;padding-left:0.5rem;padding-right:0.5rem;height:1.25rem;margin-left:auto;display:flex;align-items:center}.footer.svelte-xgzc8c .goto-icon.svelte-xgzc8c::after{content:'';display:inline-block;width:0.75rem;height:0.75rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAeFBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////GqOSsAAAAJ3RSTlMAFNO2pYt4bErz8uP6ysawgVtBPDcR5C4s2L6ZmJBzZGJXUyEeDws/0G2zAAAAkklEQVQ4y+3TRw6DMBAF0OAeJ3QCpCe0uf8NwRILLBYfiS1/aT3JoymnI+sERZ5VCH0iVto3QDfBLmeSSMUTogRV9bBEpJAKaYpGijn13aTSLeraeG9D0NZFZv4/rRL5FDHnITlllqjv6tykWsmX4JHr05y7j6oFKq2P8He48B0tAM0EY0EDxquClw6vLz6EI35GmwwSZpe+WOgAAAAASUVORK5CYII=);background-size:100% auto;background-repeat:no-repeat}.price.svelte-xgzc8c.svelte-xgzc8c{flex-shrink:0;margin-right:0.75rem;white-space:nowrap;color:#ff6600;display:flex;align-items:baseline}.price.svelte-xgzc8c .value.svelte-xgzc8c{position:relative;top:0.0625rem;font-size:1.125rem;line-height:1.375rem;font-family:TG-TYPE, PingFangSC, Segoe UI, Rototo, sans-serif;letter-spacing:0rem}.price.svelte-xgzc8c .unit.svelte-xgzc8c{padding-left:0.125rem;font-size:0.625rem}.tag.svelte-xgzc8c.svelte-xgzc8c{position:relative;background-color:white;display:flex;width:-webkit-max-content;width:-moz-max-content;width:max-content;padding-left:0.75rem;padding-right:0.75rem}.tag.svelte-xgzc8c .base-tag.svelte-xgzc8c{height:1rem;margin-top:1.375rem;margin-bottom:0.5rem;margin-right:0.25rem;font-size:0.625rem;line-height:0.875rem;padding:0.0625rem 0.25rem;border-radius:0.125rem;overflow:hidden}.tag.svelte-xgzc8c .primary-tag.svelte-xgzc8c{background:#e5eefe;color:#0055ff}.tag.svelte-xgzc8c .secondary-tag.svelte-xgzc8c{background:rgba(255, 102, 0, 0.08);color:rgba(255, 102, 0, 1)}.unfolded.svelte-xgzc8c .line.svelte-xgzc8c{transform:translateX(-50%) scale(1, 1)}.folded.svelte-xgzc8c .line.svelte-xgzc8c{transform:translateX(-50%) scale(1, 0);transition-timing-function:ease-in}.unfolded.svelte-xgzc8c .content.svelte-xgzc8c{opacity:1}.folded.svelte-xgzc8c .content.svelte-xgzc8c{opacity:0;transform:translateY(0.425rem);transition-timing-function:ease-in}");
|
|
2574
2703
|
}
|
|
2575
2704
|
|
|
2576
2705
|
function get_each_context$1(ctx, list, i) {
|
|
@@ -2585,7 +2714,7 @@ function get_each_context_1(ctx, list, i) {
|
|
|
2585
2714
|
return child_ctx;
|
|
2586
2715
|
}
|
|
2587
2716
|
|
|
2588
|
-
// (
|
|
2717
|
+
// (28:8) {#if tag}
|
|
2589
2718
|
function create_if_block_4$1(ctx) {
|
|
2590
2719
|
let div;
|
|
2591
2720
|
let t_value = /*tag*/ ctx[0] + "";
|
|
@@ -2595,7 +2724,7 @@ function create_if_block_4$1(ctx) {
|
|
|
2595
2724
|
c() {
|
|
2596
2725
|
div = internal.element("div");
|
|
2597
2726
|
t = internal.text(t_value);
|
|
2598
|
-
internal.attr(div, "class", "base-tag primary-tag svelte-
|
|
2727
|
+
internal.attr(div, "class", "base-tag primary-tag svelte-xgzc8c");
|
|
2599
2728
|
},
|
|
2600
2729
|
m(target, anchor) {
|
|
2601
2730
|
internal.insert(target, div, anchor);
|
|
@@ -2610,7 +2739,7 @@ function create_if_block_4$1(ctx) {
|
|
|
2610
2739
|
};
|
|
2611
2740
|
}
|
|
2612
2741
|
|
|
2613
|
-
// (
|
|
2742
|
+
// (27:6) {#each data.brandTags || [] as tag}
|
|
2614
2743
|
function create_each_block_1(ctx) {
|
|
2615
2744
|
let if_block_anchor;
|
|
2616
2745
|
let if_block = /*tag*/ ctx[0] && create_if_block_4$1(ctx);
|
|
@@ -2645,7 +2774,7 @@ function create_each_block_1(ctx) {
|
|
|
2645
2774
|
};
|
|
2646
2775
|
}
|
|
2647
2776
|
|
|
2648
|
-
// (
|
|
2777
|
+
// (33:8) {#if tag}
|
|
2649
2778
|
function create_if_block_3$1(ctx) {
|
|
2650
2779
|
let div;
|
|
2651
2780
|
let t_value = /*tag*/ ctx[0] + "";
|
|
@@ -2655,7 +2784,7 @@ function create_if_block_3$1(ctx) {
|
|
|
2655
2784
|
c() {
|
|
2656
2785
|
div = internal.element("div");
|
|
2657
2786
|
t = internal.text(t_value);
|
|
2658
|
-
internal.attr(div, "class", "base-tag secondary-tag svelte-
|
|
2787
|
+
internal.attr(div, "class", "base-tag secondary-tag svelte-xgzc8c");
|
|
2659
2788
|
},
|
|
2660
2789
|
m(target, anchor) {
|
|
2661
2790
|
internal.insert(target, div, anchor);
|
|
@@ -2670,7 +2799,7 @@ function create_if_block_3$1(ctx) {
|
|
|
2670
2799
|
};
|
|
2671
2800
|
}
|
|
2672
2801
|
|
|
2673
|
-
// (
|
|
2802
|
+
// (32:6) {#each data.tags || [] as tag}
|
|
2674
2803
|
function create_each_block$1(ctx) {
|
|
2675
2804
|
let if_block_anchor;
|
|
2676
2805
|
let if_block = /*tag*/ ctx[0] && create_if_block_3$1(ctx);
|
|
@@ -2705,7 +2834,7 @@ function create_each_block$1(ctx) {
|
|
|
2705
2834
|
};
|
|
2706
2835
|
}
|
|
2707
2836
|
|
|
2708
|
-
// (
|
|
2837
|
+
// (45:6) {#if data.price?.value !== undefined && data.price?.value !== null}
|
|
2709
2838
|
function create_if_block_1$4(ctx) {
|
|
2710
2839
|
let div;
|
|
2711
2840
|
let span;
|
|
@@ -2721,8 +2850,8 @@ function create_if_block_1$4(ctx) {
|
|
|
2721
2850
|
t0 = internal.text(t0_value);
|
|
2722
2851
|
t1 = internal.space();
|
|
2723
2852
|
if (if_block) if_block.c();
|
|
2724
|
-
internal.attr(span, "class", "value svelte-
|
|
2725
|
-
internal.attr(div, "class", "price svelte-
|
|
2853
|
+
internal.attr(span, "class", "value svelte-xgzc8c");
|
|
2854
|
+
internal.attr(div, "class", "price svelte-xgzc8c");
|
|
2726
2855
|
},
|
|
2727
2856
|
m(target, anchor) {
|
|
2728
2857
|
internal.insert(target, div, anchor);
|
|
@@ -2754,7 +2883,7 @@ function create_if_block_1$4(ctx) {
|
|
|
2754
2883
|
};
|
|
2755
2884
|
}
|
|
2756
2885
|
|
|
2757
|
-
// (
|
|
2886
|
+
// (50:10) {#if data.price.unit}
|
|
2758
2887
|
function create_if_block_2$2(ctx) {
|
|
2759
2888
|
let span;
|
|
2760
2889
|
let t_value = /*data*/ ctx[2].price.unit + "";
|
|
@@ -2764,7 +2893,7 @@ function create_if_block_2$2(ctx) {
|
|
|
2764
2893
|
c() {
|
|
2765
2894
|
span = internal.element("span");
|
|
2766
2895
|
t = internal.text(t_value);
|
|
2767
|
-
internal.attr(span, "class", "unit svelte-
|
|
2896
|
+
internal.attr(span, "class", "unit svelte-xgzc8c");
|
|
2768
2897
|
},
|
|
2769
2898
|
m(target, anchor) {
|
|
2770
2899
|
internal.insert(target, span, anchor);
|
|
@@ -2779,8 +2908,8 @@ function create_if_block_2$2(ctx) {
|
|
|
2779
2908
|
};
|
|
2780
2909
|
}
|
|
2781
2910
|
|
|
2782
|
-
// (
|
|
2783
|
-
function create_if_block$
|
|
2911
|
+
// (57:6) {#if data.highlightText}
|
|
2912
|
+
function create_if_block$8(ctx) {
|
|
2784
2913
|
let div;
|
|
2785
2914
|
let t_value = /*data*/ ctx[2].highlightText + "";
|
|
2786
2915
|
let t;
|
|
@@ -2789,7 +2918,7 @@ function create_if_block$7(ctx) {
|
|
|
2789
2918
|
c() {
|
|
2790
2919
|
div = internal.element("div");
|
|
2791
2920
|
t = internal.text(t_value);
|
|
2792
|
-
internal.attr(div, "class", "goto-button goto-icon svelte-
|
|
2921
|
+
internal.attr(div, "class", "goto-button goto-icon svelte-xgzc8c");
|
|
2793
2922
|
},
|
|
2794
2923
|
m(target, anchor) {
|
|
2795
2924
|
internal.insert(target, div, anchor);
|
|
@@ -2804,7 +2933,7 @@ function create_if_block$7(ctx) {
|
|
|
2804
2933
|
};
|
|
2805
2934
|
}
|
|
2806
2935
|
|
|
2807
|
-
function create_fragment$
|
|
2936
|
+
function create_fragment$b(ctx) {
|
|
2808
2937
|
let div6;
|
|
2809
2938
|
let shadow;
|
|
2810
2939
|
let t0;
|
|
@@ -2852,7 +2981,7 @@ function create_fragment$a(ctx) {
|
|
|
2852
2981
|
}
|
|
2853
2982
|
|
|
2854
2983
|
let if_block0 = /*data*/ ctx[2].price?.value !== undefined && /*data*/ ctx[2].price?.value !== null && create_if_block_1$4(ctx);
|
|
2855
|
-
let if_block1 = /*data*/ ctx[2].highlightText && create_if_block$
|
|
2984
|
+
let if_block1 = /*data*/ ctx[2].highlightText && create_if_block$8(ctx);
|
|
2856
2985
|
|
|
2857
2986
|
return {
|
|
2858
2987
|
c() {
|
|
@@ -2885,7 +3014,7 @@ function create_fragment$a(ctx) {
|
|
|
2885
3014
|
if (if_block0) if_block0.c();
|
|
2886
3015
|
t7 = internal.space();
|
|
2887
3016
|
if (if_block1) if_block1.c();
|
|
2888
|
-
internal.attr(div0, "class", "line svelte-
|
|
3017
|
+
internal.attr(div0, "class", "line svelte-xgzc8c");
|
|
2889
3018
|
|
|
2890
3019
|
internal.set_style(
|
|
2891
3020
|
div0,
|
|
@@ -2896,13 +3025,13 @@ function create_fragment$a(ctx) {
|
|
|
2896
3025
|
false
|
|
2897
3026
|
);
|
|
2898
3027
|
|
|
2899
|
-
internal.attr(img, "class", "headerImage svelte-
|
|
3028
|
+
internal.attr(img, "class", "headerImage svelte-xgzc8c");
|
|
2900
3029
|
if (!internal.src_url_equal(img.src, img_src_value = /*data*/ ctx[2].headerPictureUrl)) internal.attr(img, "src", img_src_value);
|
|
2901
3030
|
internal.attr(img, "alt", "");
|
|
2902
|
-
internal.attr(div1, "class", "tag svelte-
|
|
2903
|
-
internal.attr(div2, "class", "text svelte-
|
|
2904
|
-
internal.attr(div3, "class", "title svelte-
|
|
2905
|
-
internal.attr(div4, "class", "footer svelte-
|
|
3031
|
+
internal.attr(div1, "class", "tag svelte-xgzc8c");
|
|
3032
|
+
internal.attr(div2, "class", "text svelte-xgzc8c");
|
|
3033
|
+
internal.attr(div3, "class", "title svelte-xgzc8c");
|
|
3034
|
+
internal.attr(div4, "class", "footer svelte-xgzc8c");
|
|
2906
3035
|
|
|
2907
3036
|
internal.set_style(
|
|
2908
3037
|
div4,
|
|
@@ -2913,7 +3042,7 @@ function create_fragment$a(ctx) {
|
|
|
2913
3042
|
false
|
|
2914
3043
|
);
|
|
2915
3044
|
|
|
2916
|
-
internal.attr(div5, "class", "content svelte-
|
|
3045
|
+
internal.attr(div5, "class", "content svelte-xgzc8c");
|
|
2917
3046
|
|
|
2918
3047
|
internal.set_style(
|
|
2919
3048
|
div5,
|
|
@@ -2924,7 +3053,7 @@ function create_fragment$a(ctx) {
|
|
|
2924
3053
|
false
|
|
2925
3054
|
);
|
|
2926
3055
|
|
|
2927
|
-
internal.attr(div6, "class", "marketing svelte-
|
|
3056
|
+
internal.attr(div6, "class", "marketing svelte-xgzc8c");
|
|
2928
3057
|
internal.toggle_class(div6, "unfolded", /*unfolded*/ ctx[1]);
|
|
2929
3058
|
internal.toggle_class(div6, "folded", /*folded*/ ctx[3]);
|
|
2930
3059
|
},
|
|
@@ -3045,7 +3174,7 @@ function create_fragment$a(ctx) {
|
|
|
3045
3174
|
if (if_block1) {
|
|
3046
3175
|
if_block1.p(ctx, dirty);
|
|
3047
3176
|
} else {
|
|
3048
|
-
if_block1 = create_if_block$
|
|
3177
|
+
if_block1 = create_if_block$8(ctx);
|
|
3049
3178
|
if_block1.c();
|
|
3050
3179
|
if_block1.m(div4, null);
|
|
3051
3180
|
}
|
|
@@ -3076,11 +3205,11 @@ function create_fragment$a(ctx) {
|
|
|
3076
3205
|
);
|
|
3077
3206
|
}
|
|
3078
3207
|
|
|
3079
|
-
if (dirty & /*unfolded*/ 2) {
|
|
3208
|
+
if (!current || dirty & /*unfolded*/ 2) {
|
|
3080
3209
|
internal.toggle_class(div6, "unfolded", /*unfolded*/ ctx[1]);
|
|
3081
3210
|
}
|
|
3082
3211
|
|
|
3083
|
-
if (dirty & /*folded*/ 8) {
|
|
3212
|
+
if (!current || dirty & /*folded*/ 8) {
|
|
3084
3213
|
internal.toggle_class(div6, "folded", /*folded*/ ctx[3]);
|
|
3085
3214
|
}
|
|
3086
3215
|
},
|
|
@@ -3115,7 +3244,7 @@ const tagContentShowWhenLineStartGrow = 180;
|
|
|
3115
3244
|
// 标签出现时长
|
|
3116
3245
|
const tagContentShow = 500;
|
|
3117
3246
|
|
|
3118
|
-
function instance$
|
|
3247
|
+
function instance$b($$self, $$props, $$invalidate) {
|
|
3119
3248
|
let unfolded;
|
|
3120
3249
|
let folded;
|
|
3121
3250
|
let data;
|
|
@@ -3150,18 +3279,18 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
3150
3279
|
class MarketingTag extends internal.SvelteComponent {
|
|
3151
3280
|
constructor(options) {
|
|
3152
3281
|
super();
|
|
3153
|
-
internal.init(this, options, instance$
|
|
3282
|
+
internal.init(this, options, instance$b, create_fragment$b, internal.safe_not_equal, { tag: 0 }, add_css$b);
|
|
3154
3283
|
}
|
|
3155
3284
|
}
|
|
3156
3285
|
|
|
3157
|
-
/* src/PanoTagPlugin/Components/Common/Audio.svelte generated by Svelte v3.
|
|
3286
|
+
/* src/PanoTagPlugin/Components/Common/Audio.svelte generated by Svelte v3.50.1 */
|
|
3158
3287
|
|
|
3159
|
-
function add_css$
|
|
3288
|
+
function add_css$a(target) {
|
|
3160
3289
|
internal.append_styles(target, "svelte-tlcvd7", ".audio.svelte-tlcvd7.svelte-tlcvd7{position:relative;width:100%;height:100%;cursor:pointer}@-webkit-keyframes svelte-tlcvd7-playing{25%{background-image:url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='9' cy='9' r='8' transform='translate(-1 -1)' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E\")}50%{background-image:url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM5.533 6.685L4.169 8.049l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E\")}75%{background-image:url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm-.656 4.874l-.906.905A3.35 3.35 0 0 1 7.369 8.1c0 .875-.333 1.67-.88 2.268l.906.906A4.628 4.628 0 0 0 8.65 8.101a4.627 4.627 0 0 0-1.306-3.227zm-1.811 1.81L4.169 8.05l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E\")}}@keyframes svelte-tlcvd7-playing{25%{background-image:url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='9' cy='9' r='8' transform='translate(-1 -1)' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E\")}50%{background-image:url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM5.533 6.685L4.169 8.049l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E\")}75%{background-image:url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm-.656 4.874l-.906.905A3.35 3.35 0 0 1 7.369 8.1c0 .875-.333 1.67-.88 2.268l.906.906A4.628 4.628 0 0 0 8.65 8.101a4.627 4.627 0 0 0-1.306-3.227zm-1.811 1.81L4.169 8.05l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E\")}}.paused.svelte-tlcvd7 .audio-icon.svelte-tlcvd7{-webkit-animation:none;animation:none}.audio-icon.svelte-tlcvd7.svelte-tlcvd7{width:100%;height:100%;border-radius:50%;background-size:100%;-webkit-animation:svelte-tlcvd7-playing 2s steps(1) infinite;animation:svelte-tlcvd7-playing 2s steps(1) infinite;background-image:url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm1.428 2.79l-.953.952a6.222 6.222 0 0 1 1.775 4.36c0 1.571-.58 3.006-1.538 4.103l-.184.202.793.794a7.344 7.344 0 0 0 2.21-5.26A7.341 7.341 0 0 0 9.428 2.79zM7.344 4.873l-.906.905A3.35 3.35 0 0 1 7.369 8.1c0 .802-.28 1.537-.748 2.115l-.132.153.906.906A4.628 4.628 0 0 0 8.65 8.101a4.627 4.627 0 0 0-1.306-3.227zm-1.811 1.81L4.169 8.05l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E\")}");
|
|
3161
3290
|
}
|
|
3162
3291
|
|
|
3163
3292
|
// (34:0) {#if unfolded}
|
|
3164
|
-
function create_if_block$
|
|
3293
|
+
function create_if_block$7(ctx) {
|
|
3165
3294
|
let div1;
|
|
3166
3295
|
let shadow;
|
|
3167
3296
|
let t0;
|
|
@@ -3231,7 +3360,7 @@ function create_if_block$6(ctx) {
|
|
|
3231
3360
|
audio_1[audio_1_is_paused ? "pause" : "play"]();
|
|
3232
3361
|
}
|
|
3233
3362
|
|
|
3234
|
-
if (dirty & /*paused*/ 64) {
|
|
3363
|
+
if (!current || dirty & /*paused*/ 64) {
|
|
3235
3364
|
internal.toggle_class(div1, "paused", /*paused*/ ctx[6]);
|
|
3236
3365
|
}
|
|
3237
3366
|
},
|
|
@@ -3280,10 +3409,10 @@ function create_if_block$6(ctx) {
|
|
|
3280
3409
|
};
|
|
3281
3410
|
}
|
|
3282
3411
|
|
|
3283
|
-
function create_fragment$
|
|
3412
|
+
function create_fragment$a(ctx) {
|
|
3284
3413
|
let if_block_anchor;
|
|
3285
3414
|
let current;
|
|
3286
|
-
let if_block = /*unfolded*/ ctx[4] && create_if_block$
|
|
3415
|
+
let if_block = /*unfolded*/ ctx[4] && create_if_block$7(ctx);
|
|
3287
3416
|
|
|
3288
3417
|
return {
|
|
3289
3418
|
c() {
|
|
@@ -3304,7 +3433,7 @@ function create_fragment$9(ctx) {
|
|
|
3304
3433
|
internal.transition_in(if_block, 1);
|
|
3305
3434
|
}
|
|
3306
3435
|
} else {
|
|
3307
|
-
if_block = create_if_block$
|
|
3436
|
+
if_block = create_if_block$7(ctx);
|
|
3308
3437
|
if_block.c();
|
|
3309
3438
|
internal.transition_in(if_block, 1);
|
|
3310
3439
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -3335,7 +3464,7 @@ function create_fragment$9(ctx) {
|
|
|
3335
3464
|
};
|
|
3336
3465
|
}
|
|
3337
3466
|
|
|
3338
|
-
function instance$
|
|
3467
|
+
function instance$a($$self, $$props, $$invalidate) {
|
|
3339
3468
|
let { inDelay = 0 } = $$props;
|
|
3340
3469
|
let { outDelay = 0 } = $$props;
|
|
3341
3470
|
let { duration = 0 } = $$props;
|
|
@@ -3450,8 +3579,8 @@ class Audio extends internal.SvelteComponent {
|
|
|
3450
3579
|
internal.init(
|
|
3451
3580
|
this,
|
|
3452
3581
|
options,
|
|
3453
|
-
instance$
|
|
3454
|
-
create_fragment$
|
|
3582
|
+
instance$a,
|
|
3583
|
+
create_fragment$a,
|
|
3455
3584
|
internal.safe_not_equal,
|
|
3456
3585
|
{
|
|
3457
3586
|
inDelay: 0,
|
|
@@ -3462,19 +3591,19 @@ class Audio extends internal.SvelteComponent {
|
|
|
3462
3591
|
mediaStore: 8,
|
|
3463
3592
|
hooksInfo: 9
|
|
3464
3593
|
},
|
|
3465
|
-
add_css$
|
|
3594
|
+
add_css$a
|
|
3466
3595
|
);
|
|
3467
3596
|
}
|
|
3468
3597
|
}
|
|
3469
3598
|
|
|
3470
|
-
/* src/PanoTagPlugin/Components/Tag/AudioTag.svelte generated by Svelte v3.
|
|
3599
|
+
/* src/PanoTagPlugin/Components/Tag/AudioTag.svelte generated by Svelte v3.50.1 */
|
|
3471
3600
|
|
|
3472
|
-
function add_css$
|
|
3601
|
+
function add_css$9(target) {
|
|
3473
3602
|
internal.append_styles(target, "svelte-z2d21h", ".audio-tag.svelte-z2d21h.svelte-z2d21h{position:absolute;left:0;top:0;width:0;height:0;overflow:visible}.line.svelte-z2d21h.svelte-z2d21h{display:flex;position:absolute;top:0;left:0;width:10.125rem;height:0.0625rem;transform:translate3d(0, -50%, 0.625rem)}.content.svelte-z2d21h.svelte-z2d21h{width:-webkit-max-content;width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0.125rem;overflow:hidden;box-sizing:border-box;font-size:0;white-space:nowrap;font-weight:600}.wrapper.svelte-z2d21h.svelte-z2d21h{position:relative;width:100%;height:100%}.audio-icon.svelte-z2d21h.svelte-z2d21h{vertical-align:top;display:inline-block;width:1rem;height:1rem;margin-right:0.25rem;margin-top:0.0625rem}.unfolded.svelte-z2d21h .audio-icon.svelte-z2d21h{pointer-events:auto}");
|
|
3474
3603
|
}
|
|
3475
3604
|
|
|
3476
3605
|
// (28:0) {#if tag.state}
|
|
3477
|
-
function create_if_block$
|
|
3606
|
+
function create_if_block$6(ctx) {
|
|
3478
3607
|
let div5;
|
|
3479
3608
|
let shadow;
|
|
3480
3609
|
let t0;
|
|
@@ -3605,7 +3734,7 @@ function create_if_block$5(ctx) {
|
|
|
3605
3734
|
if (dirty & /*textItems*/ 16) multilinetext_changes.textItems = /*textItems*/ ctx[4];
|
|
3606
3735
|
multilinetext.$set(multilinetext_changes);
|
|
3607
3736
|
|
|
3608
|
-
if (dirty & /*unfolded*/ 64) {
|
|
3737
|
+
if (!current || dirty & /*unfolded*/ 64) {
|
|
3609
3738
|
internal.toggle_class(div5, "unfolded", /*unfolded*/ ctx[6]);
|
|
3610
3739
|
}
|
|
3611
3740
|
},
|
|
@@ -3637,10 +3766,10 @@ function create_if_block$5(ctx) {
|
|
|
3637
3766
|
};
|
|
3638
3767
|
}
|
|
3639
3768
|
|
|
3640
|
-
function create_fragment$
|
|
3769
|
+
function create_fragment$9(ctx) {
|
|
3641
3770
|
let if_block_anchor;
|
|
3642
3771
|
let current;
|
|
3643
|
-
let if_block = /*tag*/ ctx[1].state && create_if_block$
|
|
3772
|
+
let if_block = /*tag*/ ctx[1].state && create_if_block$6(ctx);
|
|
3644
3773
|
|
|
3645
3774
|
return {
|
|
3646
3775
|
c() {
|
|
@@ -3661,7 +3790,7 @@ function create_fragment$8(ctx) {
|
|
|
3661
3790
|
internal.transition_in(if_block, 1);
|
|
3662
3791
|
}
|
|
3663
3792
|
} else {
|
|
3664
|
-
if_block = create_if_block$
|
|
3793
|
+
if_block = create_if_block$6(ctx);
|
|
3665
3794
|
if_block.c();
|
|
3666
3795
|
internal.transition_in(if_block, 1);
|
|
3667
3796
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -3692,7 +3821,7 @@ function create_fragment$8(ctx) {
|
|
|
3692
3821
|
};
|
|
3693
3822
|
}
|
|
3694
3823
|
|
|
3695
|
-
function instance$
|
|
3824
|
+
function instance$9($$self, $$props, $$invalidate) {
|
|
3696
3825
|
let unfolded;
|
|
3697
3826
|
let text;
|
|
3698
3827
|
let foldTextDelay;
|
|
@@ -3759,14 +3888,152 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
|
3759
3888
|
class AudioTag extends internal.SvelteComponent {
|
|
3760
3889
|
constructor(options) {
|
|
3761
3890
|
super();
|
|
3762
|
-
internal.init(this, options, instance$
|
|
3891
|
+
internal.init(this, options, instance$9, create_fragment$9, internal.safe_not_equal, { mediaStore: 0, tag: 1 }, add_css$9);
|
|
3892
|
+
}
|
|
3893
|
+
}
|
|
3894
|
+
|
|
3895
|
+
/* src/PanoTagPlugin/Components/Tag/MediaPanel.svelte generated by Svelte v3.50.1 */
|
|
3896
|
+
|
|
3897
|
+
function add_css$8(target) {
|
|
3898
|
+
internal.append_styles(target, "svelte-10cw0el", ".media-wrapper.svelte-10cw0el{position:absolute;width:100%;height:100%}");
|
|
3899
|
+
}
|
|
3900
|
+
|
|
3901
|
+
// (8:0) {#if tag.state && mediaData}
|
|
3902
|
+
function create_if_block$5(ctx) {
|
|
3903
|
+
let div;
|
|
3904
|
+
let media;
|
|
3905
|
+
let current;
|
|
3906
|
+
|
|
3907
|
+
media = new Media({
|
|
3908
|
+
props: {
|
|
3909
|
+
unfolded: /*unfolded*/ ctx[2],
|
|
3910
|
+
mediaData: /*mediaData*/ ctx[1],
|
|
3911
|
+
inDelay: 500,
|
|
3912
|
+
duration: 500
|
|
3913
|
+
}
|
|
3914
|
+
});
|
|
3915
|
+
|
|
3916
|
+
return {
|
|
3917
|
+
c() {
|
|
3918
|
+
div = internal.element("div");
|
|
3919
|
+
internal.create_component(media.$$.fragment);
|
|
3920
|
+
internal.attr(div, "class", "media-wrapper svelte-10cw0el");
|
|
3921
|
+
},
|
|
3922
|
+
m(target, anchor) {
|
|
3923
|
+
internal.insert(target, div, anchor);
|
|
3924
|
+
internal.mount_component(media, div, null);
|
|
3925
|
+
current = true;
|
|
3926
|
+
},
|
|
3927
|
+
p(ctx, dirty) {
|
|
3928
|
+
const media_changes = {};
|
|
3929
|
+
if (dirty & /*unfolded*/ 4) media_changes.unfolded = /*unfolded*/ ctx[2];
|
|
3930
|
+
if (dirty & /*mediaData*/ 2) media_changes.mediaData = /*mediaData*/ ctx[1];
|
|
3931
|
+
media.$set(media_changes);
|
|
3932
|
+
},
|
|
3933
|
+
i(local) {
|
|
3934
|
+
if (current) return;
|
|
3935
|
+
internal.transition_in(media.$$.fragment, local);
|
|
3936
|
+
current = true;
|
|
3937
|
+
},
|
|
3938
|
+
o(local) {
|
|
3939
|
+
internal.transition_out(media.$$.fragment, local);
|
|
3940
|
+
current = false;
|
|
3941
|
+
},
|
|
3942
|
+
d(detaching) {
|
|
3943
|
+
if (detaching) internal.detach(div);
|
|
3944
|
+
internal.destroy_component(media);
|
|
3945
|
+
}
|
|
3946
|
+
};
|
|
3947
|
+
}
|
|
3948
|
+
|
|
3949
|
+
function create_fragment$8(ctx) {
|
|
3950
|
+
let if_block_anchor;
|
|
3951
|
+
let current;
|
|
3952
|
+
let if_block = /*tag*/ ctx[0].state && /*mediaData*/ ctx[1] && create_if_block$5(ctx);
|
|
3953
|
+
|
|
3954
|
+
return {
|
|
3955
|
+
c() {
|
|
3956
|
+
if (if_block) if_block.c();
|
|
3957
|
+
if_block_anchor = internal.empty();
|
|
3958
|
+
},
|
|
3959
|
+
m(target, anchor) {
|
|
3960
|
+
if (if_block) if_block.m(target, anchor);
|
|
3961
|
+
internal.insert(target, if_block_anchor, anchor);
|
|
3962
|
+
current = true;
|
|
3963
|
+
},
|
|
3964
|
+
p(ctx, [dirty]) {
|
|
3965
|
+
if (/*tag*/ ctx[0].state && /*mediaData*/ ctx[1]) {
|
|
3966
|
+
if (if_block) {
|
|
3967
|
+
if_block.p(ctx, dirty);
|
|
3968
|
+
|
|
3969
|
+
if (dirty & /*tag, mediaData*/ 3) {
|
|
3970
|
+
internal.transition_in(if_block, 1);
|
|
3971
|
+
}
|
|
3972
|
+
} else {
|
|
3973
|
+
if_block = create_if_block$5(ctx);
|
|
3974
|
+
if_block.c();
|
|
3975
|
+
internal.transition_in(if_block, 1);
|
|
3976
|
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
3977
|
+
}
|
|
3978
|
+
} else if (if_block) {
|
|
3979
|
+
internal.group_outros();
|
|
3980
|
+
|
|
3981
|
+
internal.transition_out(if_block, 1, 1, () => {
|
|
3982
|
+
if_block = null;
|
|
3983
|
+
});
|
|
3984
|
+
|
|
3985
|
+
internal.check_outros();
|
|
3986
|
+
}
|
|
3987
|
+
},
|
|
3988
|
+
i(local) {
|
|
3989
|
+
if (current) return;
|
|
3990
|
+
internal.transition_in(if_block);
|
|
3991
|
+
current = true;
|
|
3992
|
+
},
|
|
3993
|
+
o(local) {
|
|
3994
|
+
internal.transition_out(if_block);
|
|
3995
|
+
current = false;
|
|
3996
|
+
},
|
|
3997
|
+
d(detaching) {
|
|
3998
|
+
if (if_block) if_block.d(detaching);
|
|
3999
|
+
if (detaching) internal.detach(if_block_anchor);
|
|
4000
|
+
}
|
|
4001
|
+
};
|
|
4002
|
+
}
|
|
4003
|
+
|
|
4004
|
+
function instance$8($$self, $$props, $$invalidate) {
|
|
4005
|
+
let unfolded;
|
|
4006
|
+
let mediaData;
|
|
4007
|
+
let { tag } = $$props;
|
|
4008
|
+
|
|
4009
|
+
$$self.$$set = $$props => {
|
|
4010
|
+
if ('tag' in $$props) $$invalidate(0, tag = $$props.tag);
|
|
4011
|
+
};
|
|
4012
|
+
|
|
4013
|
+
$$self.$$.update = () => {
|
|
4014
|
+
if ($$self.$$.dirty & /*tag*/ 1) {
|
|
4015
|
+
$$invalidate(2, unfolded = tag.state ? tag.state.unfolded : false);
|
|
4016
|
+
}
|
|
4017
|
+
|
|
4018
|
+
if ($$self.$$.dirty & /*tag*/ 1) {
|
|
4019
|
+
$$invalidate(1, mediaData = tag.data.mediaData);
|
|
4020
|
+
}
|
|
4021
|
+
};
|
|
4022
|
+
|
|
4023
|
+
return [tag, mediaData, unfolded];
|
|
4024
|
+
}
|
|
4025
|
+
|
|
4026
|
+
class MediaPanel extends internal.SvelteComponent {
|
|
4027
|
+
constructor(options) {
|
|
4028
|
+
super();
|
|
4029
|
+
internal.init(this, options, instance$8, create_fragment$8, internal.safe_not_equal, { tag: 0 }, add_css$8);
|
|
3763
4030
|
}
|
|
3764
4031
|
}
|
|
3765
4032
|
|
|
3766
|
-
/* src/PanoTagPlugin/Components/Tag/LinkTag.svelte generated by Svelte v3.
|
|
4033
|
+
/* src/PanoTagPlugin/Components/Tag/LinkTag.svelte generated by Svelte v3.50.1 */
|
|
3767
4034
|
|
|
3768
4035
|
function add_css$7(target) {
|
|
3769
|
-
internal.append_styles(target, "svelte-
|
|
4036
|
+
internal.append_styles(target, "svelte-ydv848", ".wrapper.svelte-ydv848{font-weight:600;cursor:pointer;width:-webkit-max-content;width:-moz-max-content;width:max-content;height:-webkit-max-content;height:-moz-max-content;height:max-content;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:auto}.text-wrapper.svelte-ydv848{position:relative;display:flex;align-items:center;justify-content:center}.icon.svelte-ydv848{position:relative;margin-bottom:0.6875rem}.arrow0.svelte-ydv848,.arrow1.svelte-ydv848,.arrow2.svelte-ydv848{position:absolute;width:1.625rem;height:0.75rem;background-image:url(data:image/png;base64,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);background-repeat:no-repeat;background-size:contain;-webkit-animation-fill-mode:backwards;animation-fill-mode:backwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-duration:1.2s;animation-duration:1.2s}.arrow1.svelte-ydv848{position:relative}.arrow0.svelte-ydv848{top:-0.75rem;-webkit-animation-name:svelte-ydv848-up0;animation-name:svelte-ydv848-up0}.arrow1.svelte-ydv848{-webkit-animation-name:svelte-ydv848-up1;animation-name:svelte-ydv848-up1}.arrow2.svelte-ydv848{top:0.75rem;-webkit-animation-name:svelte-ydv848-up2;animation-name:svelte-ydv848-up2}.text.svelte-ydv848{font-size:0.875rem;color:#ffffff;letter-spacing:0;text-align:center;line-height:1.125rem;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}@-webkit-keyframes svelte-ydv848-up0{0%{opacity:0.8;transform:translateY(0) scale(0.84)}33.33%,100%{opacity:0;transform:translateY(-0.75rem) scale(0.84)}}@keyframes svelte-ydv848-up0{0%{opacity:0.8;transform:translateY(0) scale(0.84)}33.33%,100%{opacity:0;transform:translateY(-0.75rem) scale(0.84)}}@-webkit-keyframes svelte-ydv848-up1{0%{opacity:1;transform:translateY(0rem) scale(1)}33.33%,100%{opacity:0.8;transform:translateY(-0.75rem) scale(0.84)}}@keyframes svelte-ydv848-up1{0%{opacity:1;transform:translateY(0rem) scale(1)}33.33%,100%{opacity:0.8;transform:translateY(-0.75rem) scale(0.84)}}@-webkit-keyframes svelte-ydv848-up2{0%{opacity:0}33.33%,100%{opacity:1;transform:translateY(-0.75rem)}}@keyframes svelte-ydv848-up2{0%{opacity:0}33.33%,100%{opacity:1;transform:translateY(-0.75rem)}}.link.svelte-ydv848{position:relative;width:1.75rem;height:0.75rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAAkCAMAAAAgl+0yAAAAnFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+TINBkAAAAM3RSTlMAjLy6ILM2Fi+Zng3BrPvao4VC9ceneQfKkmNdV1AbEeLOsHA77ujUtn5JLnRraSUUjVLj/+RVAAABhElEQVRIx63V2W6CQBiGYUBUQGDYdwTZQZZa7v/eimik/ket/7yZ4yeTTCYf8+dOX8etxGVoxAvCVbguR3g0uRTMA0w4odGi+CbzFnGKosCqrmHc5rdEwzCwqtGFJlC7DqtOcTxANY67BHnVKOpVoEZRjFPdLgxbqIZhhFTjINChGgThF06NhpGd35OGMcCppyDPfajm+YhUR8cRoeo4+RGlJnnbalBt2x6nHh1dt4Gq6bqDU886y2ZQZVn9jFJ51vcbqPo+Up18UeSgKoo3nHqVJEkGqi1JPk49aLZmQdW2xXf1zP+vUFHsC1QVReK33xdk+w9SaqAq+732UvvdZ2UEqrud8lR5Wc4a7pO8GaoL9VBjy7rMlMosq1lV43LhZlrtF+yuJlbtEXpqXXP3NYwI8VJqakOIziw5aepV1FQuTdfhvlWVZdJCrao6MPe0spRpqV5ZFivqNqYpq3RQ2TST5/h4quoRCmwqq6rymol6plV53IZSomTKE/MroWfxDevL/wAEdPq1eGDh4AAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-size:contain;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-duration:1.2s;animation-duration:1.2s;-webkit-animation-name:svelte-ydv848-left-right;animation-name:svelte-ydv848-left-right}@-webkit-keyframes svelte-ydv848-left-right{0%,100%{opacity:0.8;transform:translateX(-0.3125rem)}50%{opacity:1;transform:translateX(0)}}@keyframes svelte-ydv848-left-right{0%,100%{opacity:0.8;transform:translateX(-0.3125rem)}50%{opacity:1;transform:translateX(0)}}");
|
|
3770
4037
|
}
|
|
3771
4038
|
|
|
3772
4039
|
// (14:52)
|
|
@@ -3794,7 +4061,7 @@ function create_if_block_1$3(ctx) {
|
|
|
3794
4061
|
internal.create_component(shadow.$$.fragment);
|
|
3795
4062
|
t = internal.space();
|
|
3796
4063
|
div = internal.element("div");
|
|
3797
|
-
internal.attr(div, "class", "link svelte-
|
|
4064
|
+
internal.attr(div, "class", "link svelte-ydv848");
|
|
3798
4065
|
},
|
|
3799
4066
|
m(target, anchor) {
|
|
3800
4067
|
internal.mount_component(shadow, target, anchor);
|
|
@@ -3852,9 +4119,9 @@ function create_if_block$4(ctx) {
|
|
|
3852
4119
|
div1 = internal.element("div");
|
|
3853
4120
|
t2 = internal.space();
|
|
3854
4121
|
div2 = internal.element("div");
|
|
3855
|
-
internal.attr(div0, "class", "arrow0 svelte-
|
|
3856
|
-
internal.attr(div1, "class", "arrow1 svelte-
|
|
3857
|
-
internal.attr(div2, "class", "arrow2 svelte-
|
|
4122
|
+
internal.attr(div0, "class", "arrow0 svelte-ydv848");
|
|
4123
|
+
internal.attr(div1, "class", "arrow1 svelte-ydv848");
|
|
4124
|
+
internal.attr(div2, "class", "arrow2 svelte-ydv848");
|
|
3858
4125
|
},
|
|
3859
4126
|
m(target, anchor) {
|
|
3860
4127
|
internal.mount_component(shadow, target, anchor);
|
|
@@ -3904,8 +4171,8 @@ function create_fragment$7(ctx) {
|
|
|
3904
4171
|
const if_blocks = [];
|
|
3905
4172
|
|
|
3906
4173
|
function select_block_type(ctx, dirty) {
|
|
3907
|
-
if (/*data*/ ctx[0].linkType ===
|
|
3908
|
-
if (/*data*/ ctx[0].linkType ===
|
|
4174
|
+
if (/*data*/ ctx[0].linkType === LinkType.VrLink) return 0;
|
|
4175
|
+
if (/*data*/ ctx[0].linkType === LinkType.NormalLink) return 1;
|
|
3909
4176
|
return -1;
|
|
3910
4177
|
}
|
|
3911
4178
|
|
|
@@ -3938,10 +4205,10 @@ function create_fragment$7(ctx) {
|
|
|
3938
4205
|
t1 = internal.space();
|
|
3939
4206
|
div1 = internal.element("div");
|
|
3940
4207
|
t2 = internal.text(t2_value);
|
|
3941
|
-
internal.attr(div0, "class", "icon svelte-
|
|
3942
|
-
internal.attr(div1, "class", "text svelte-
|
|
3943
|
-
internal.attr(div2, "class", "text-wrapper svelte-
|
|
3944
|
-
internal.attr(div3, "class", "wrapper svelte-
|
|
4208
|
+
internal.attr(div0, "class", "icon svelte-ydv848");
|
|
4209
|
+
internal.attr(div1, "class", "text svelte-ydv848");
|
|
4210
|
+
internal.attr(div2, "class", "text-wrapper svelte-ydv848");
|
|
4211
|
+
internal.attr(div3, "class", "wrapper svelte-ydv848");
|
|
3945
4212
|
},
|
|
3946
4213
|
m(target, anchor) {
|
|
3947
4214
|
internal.insert(target, div3, anchor);
|
|
@@ -4038,13 +4305,13 @@ class LinkTag extends internal.SvelteComponent {
|
|
|
4038
4305
|
}
|
|
4039
4306
|
}
|
|
4040
4307
|
|
|
4041
|
-
/* src/PanoTagPlugin/Components/Tag/CustomTag.svelte generated by Svelte v3.
|
|
4308
|
+
/* src/PanoTagPlugin/Components/Tag/CustomTag.svelte generated by Svelte v3.50.1 */
|
|
4042
4309
|
|
|
4043
4310
|
function add_css$6(target) {
|
|
4044
4311
|
internal.append_styles(target, "svelte-kzl2aj", ".customElement__container.svelte-kzl2aj{position:relative}");
|
|
4045
4312
|
}
|
|
4046
4313
|
|
|
4047
|
-
// (24:2) {#if tag.element === 'string'}
|
|
4314
|
+
// (24:2) {#if typeof tag.element === 'string'}
|
|
4048
4315
|
function create_if_block$3(ctx) {
|
|
4049
4316
|
let html_tag;
|
|
4050
4317
|
let raw_value = /*tag*/ ctx[0].element + "";
|
|
@@ -4072,7 +4339,7 @@ function create_if_block$3(ctx) {
|
|
|
4072
4339
|
|
|
4073
4340
|
function create_fragment$6(ctx) {
|
|
4074
4341
|
let div;
|
|
4075
|
-
let if_block = /*tag*/ ctx[0].element === 'string' && create_if_block$3(ctx);
|
|
4342
|
+
let if_block = typeof /*tag*/ ctx[0].element === 'string' && create_if_block$3(ctx);
|
|
4076
4343
|
|
|
4077
4344
|
return {
|
|
4078
4345
|
c() {
|
|
@@ -4086,7 +4353,7 @@ function create_fragment$6(ctx) {
|
|
|
4086
4353
|
/*div_binding*/ ctx[2](div);
|
|
4087
4354
|
},
|
|
4088
4355
|
p(ctx, [dirty]) {
|
|
4089
|
-
if (/*tag*/ ctx[0].element === 'string') {
|
|
4356
|
+
if (typeof /*tag*/ ctx[0].element === 'string') {
|
|
4090
4357
|
if (if_block) {
|
|
4091
4358
|
if_block.p(ctx, dirty);
|
|
4092
4359
|
} else {
|
|
@@ -4157,13 +4424,50 @@ class CustomTag extends internal.SvelteComponent {
|
|
|
4157
4424
|
}
|
|
4158
4425
|
}
|
|
4159
4426
|
|
|
4160
|
-
/* src/PanoTagPlugin/Components/Tag/index.svelte generated by Svelte v3.
|
|
4427
|
+
/* src/PanoTagPlugin/Components/Tag/index.svelte generated by Svelte v3.50.1 */
|
|
4161
4428
|
|
|
4162
4429
|
function add_css$5(target) {
|
|
4163
|
-
internal.append_styles(target, "svelte-
|
|
4430
|
+
internal.append_styles(target, "svelte-sfzj5l", "@font-face{font-family:'TG-TYPE';font-style:normal;font-weight:400;src:local('TG-TYPE-Bold'),\n url(data:application/font-woff2;charset=utf-8;base64,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)\n format('woff2')}.content__container.svelte-sfzj5l{position:relative;left:50%;top:50%;transform:translate(-50%, -50%);font-family:PingFangSC, Segoe UI, Rototo, sans-serif}*{-webkit-tap-highlight-color:transparent}.content__wrapper.svelte-sfzj5l{pointer-events:none;width:100%;height:100%}.withAnimation.svelte-sfzj5l{transition:opacity 0.3s linear}.content__container.hide.svelte-sfzj5l{opacity:0;pointer-events:none}.content__container.disable.svelte-sfzj5l{display:none}.content__container.hide.svelte-sfzj5l *{pointer-events:none}.content.svelte-sfzj5l{position:relative;width:100%;height:100%;font-size:0.75rem;line-height:1.125rem;color:#fff}.content.svelte-sfzj5l:not(.unfolded){pointer-events:none}.content.svelte-sfzj5l:not(.unfolded) *{pointer-events:none !important}.content.unfolded.svelte-sfzj5l{pointer-events:auto}");
|
|
4431
|
+
}
|
|
4432
|
+
|
|
4433
|
+
// (67:59)
|
|
4434
|
+
function create_if_block_6(ctx) {
|
|
4435
|
+
let mediapanel;
|
|
4436
|
+
let current;
|
|
4437
|
+
|
|
4438
|
+
mediapanel = new MediaPanel({
|
|
4439
|
+
props: { tag: noTypecheck(/*tag*/ ctx[1]) }
|
|
4440
|
+
});
|
|
4441
|
+
|
|
4442
|
+
return {
|
|
4443
|
+
c() {
|
|
4444
|
+
internal.create_component(mediapanel.$$.fragment);
|
|
4445
|
+
},
|
|
4446
|
+
m(target, anchor) {
|
|
4447
|
+
internal.mount_component(mediapanel, target, anchor);
|
|
4448
|
+
current = true;
|
|
4449
|
+
},
|
|
4450
|
+
p(ctx, dirty) {
|
|
4451
|
+
const mediapanel_changes = {};
|
|
4452
|
+
if (dirty & /*tag*/ 2) mediapanel_changes.tag = noTypecheck(/*tag*/ ctx[1]);
|
|
4453
|
+
mediapanel.$set(mediapanel_changes);
|
|
4454
|
+
},
|
|
4455
|
+
i(local) {
|
|
4456
|
+
if (current) return;
|
|
4457
|
+
internal.transition_in(mediapanel.$$.fragment, local);
|
|
4458
|
+
current = true;
|
|
4459
|
+
},
|
|
4460
|
+
o(local) {
|
|
4461
|
+
internal.transition_out(mediapanel.$$.fragment, local);
|
|
4462
|
+
current = false;
|
|
4463
|
+
},
|
|
4464
|
+
d(detaching) {
|
|
4465
|
+
internal.destroy_component(mediapanel, detaching);
|
|
4466
|
+
}
|
|
4467
|
+
};
|
|
4164
4468
|
}
|
|
4165
4469
|
|
|
4166
|
-
// (
|
|
4470
|
+
// (65:53)
|
|
4167
4471
|
function create_if_block_5(ctx) {
|
|
4168
4472
|
let linktag;
|
|
4169
4473
|
let current;
|
|
@@ -4200,7 +4504,7 @@ function create_if_block_5(ctx) {
|
|
|
4200
4504
|
};
|
|
4201
4505
|
}
|
|
4202
4506
|
|
|
4203
|
-
// (
|
|
4507
|
+
// (63:58)
|
|
4204
4508
|
function create_if_block_4(ctx) {
|
|
4205
4509
|
let marketingtag;
|
|
4206
4510
|
let current;
|
|
@@ -4237,7 +4541,7 @@ function create_if_block_4(ctx) {
|
|
|
4237
4541
|
};
|
|
4238
4542
|
}
|
|
4239
4543
|
|
|
4240
|
-
// (
|
|
4544
|
+
// (61:54)
|
|
4241
4545
|
function create_if_block_3(ctx) {
|
|
4242
4546
|
let audiotag;
|
|
4243
4547
|
let current;
|
|
@@ -4278,7 +4582,7 @@ function create_if_block_3(ctx) {
|
|
|
4278
4582
|
};
|
|
4279
4583
|
}
|
|
4280
4584
|
|
|
4281
|
-
// (
|
|
4585
|
+
// (59:58)
|
|
4282
4586
|
function create_if_block_2$1(ctx) {
|
|
4283
4587
|
let imagetexttag;
|
|
4284
4588
|
let current;
|
|
@@ -4315,7 +4619,7 @@ function create_if_block_2$1(ctx) {
|
|
|
4315
4619
|
};
|
|
4316
4620
|
}
|
|
4317
4621
|
|
|
4318
|
-
// (
|
|
4622
|
+
// (57:53)
|
|
4319
4623
|
function create_if_block_1$2(ctx) {
|
|
4320
4624
|
let texttag;
|
|
4321
4625
|
let current;
|
|
@@ -4352,7 +4656,7 @@ function create_if_block_1$2(ctx) {
|
|
|
4352
4656
|
};
|
|
4353
4657
|
}
|
|
4354
4658
|
|
|
4355
|
-
// (
|
|
4659
|
+
// (55:6) {#if tag.element}
|
|
4356
4660
|
function create_if_block$2(ctx) {
|
|
4357
4661
|
let customtag;
|
|
4358
4662
|
let current;
|
|
@@ -4406,18 +4710,20 @@ function create_fragment$5(ctx) {
|
|
|
4406
4710
|
create_if_block_2$1,
|
|
4407
4711
|
create_if_block_3,
|
|
4408
4712
|
create_if_block_4,
|
|
4409
|
-
create_if_block_5
|
|
4713
|
+
create_if_block_5,
|
|
4714
|
+
create_if_block_6
|
|
4410
4715
|
];
|
|
4411
4716
|
|
|
4412
4717
|
const if_blocks = [];
|
|
4413
4718
|
|
|
4414
4719
|
function select_block_type(ctx, dirty) {
|
|
4415
4720
|
if (/*tag*/ ctx[1].element) return 0;
|
|
4416
|
-
if (/*tag*/ ctx[1].contentType ===
|
|
4417
|
-
if (/*tag*/ ctx[1].contentType ===
|
|
4418
|
-
if (/*tag*/ ctx[1].contentType ===
|
|
4419
|
-
if (/*tag*/ ctx[1].contentType ===
|
|
4420
|
-
if (/*tag*/ ctx[1].contentType ===
|
|
4721
|
+
if (/*tag*/ ctx[1].contentType === ContentType.Text) return 1;
|
|
4722
|
+
if (/*tag*/ ctx[1].contentType === ContentType.ImageText) return 2;
|
|
4723
|
+
if (/*tag*/ ctx[1].contentType === ContentType.Audio) return 3;
|
|
4724
|
+
if (/*tag*/ ctx[1].contentType === ContentType.Marketing) return 4;
|
|
4725
|
+
if (/*tag*/ ctx[1].contentType === ContentType.Link) return 5;
|
|
4726
|
+
if (/*tag*/ ctx[1].contentType === ContentType.MediaPanel) return 6;
|
|
4421
4727
|
return -1;
|
|
4422
4728
|
}
|
|
4423
4729
|
|
|
@@ -4431,14 +4737,16 @@ function create_fragment$5(ctx) {
|
|
|
4431
4737
|
div1 = internal.element("div");
|
|
4432
4738
|
div0 = internal.element("div");
|
|
4433
4739
|
if (if_block) if_block.c();
|
|
4434
|
-
internal.attr(div0, "class", "content svelte-
|
|
4740
|
+
internal.attr(div0, "class", "content svelte-sfzj5l");
|
|
4435
4741
|
internal.toggle_class(div0, "unfolded", /*tag*/ ctx[1].state?.unfolded);
|
|
4436
|
-
internal.attr(div1, "class", "content__wrapper svelte-
|
|
4437
|
-
internal.attr(div2, "class", "content__container svelte-
|
|
4742
|
+
internal.attr(div1, "class", "content__wrapper svelte-sfzj5l");
|
|
4743
|
+
internal.attr(div2, "class", "content__container svelte-sfzj5l");
|
|
4438
4744
|
internal.attr(div2, "data-id", div2_data_id_value = /*tag*/ ctx[1].id);
|
|
4439
4745
|
internal.toggle_class(div2, "disable", /*tag*/ ctx[1].enabled === false || /*tag*/ ctx[1].temporaryState?.visible === false);
|
|
4440
4746
|
internal.toggle_class(div2, "hide", !/*state*/ ctx[3].visible || !/*temporaryState*/ ctx[5].visible || !/*tag*/ ctx[1].state?.visible);
|
|
4441
4747
|
internal.toggle_class(div2, "withAnimation", /*withAnimation*/ ctx[0]);
|
|
4748
|
+
internal.set_style(div2, "width", /*tag*/ ctx[1].pointType === 'PointTag' ? 0 : '100%', false);
|
|
4749
|
+
internal.set_style(div2, "height", /*tag*/ ctx[1].pointType === 'PointTag' ? 0 : '100%', false);
|
|
4442
4750
|
},
|
|
4443
4751
|
m(target, anchor) {
|
|
4444
4752
|
internal.insert(target, div2, anchor);
|
|
@@ -4452,7 +4760,7 @@ function create_fragment$5(ctx) {
|
|
|
4452
4760
|
current = true;
|
|
4453
4761
|
|
|
4454
4762
|
if (!mounted) {
|
|
4455
|
-
dispose = internal.listen(div2, "click", internal.stop_propagation(/*click_handler*/ ctx[
|
|
4763
|
+
dispose = internal.listen(div2, "click", internal.stop_propagation(/*click_handler*/ ctx[12]));
|
|
4456
4764
|
mounted = true;
|
|
4457
4765
|
}
|
|
4458
4766
|
},
|
|
@@ -4492,7 +4800,7 @@ function create_fragment$5(ctx) {
|
|
|
4492
4800
|
}
|
|
4493
4801
|
}
|
|
4494
4802
|
|
|
4495
|
-
if (dirty & /*tag*/ 2) {
|
|
4803
|
+
if (!current || dirty & /*tag*/ 2) {
|
|
4496
4804
|
internal.toggle_class(div0, "unfolded", /*tag*/ ctx[1].state?.unfolded);
|
|
4497
4805
|
}
|
|
4498
4806
|
|
|
@@ -4500,17 +4808,25 @@ function create_fragment$5(ctx) {
|
|
|
4500
4808
|
internal.attr(div2, "data-id", div2_data_id_value);
|
|
4501
4809
|
}
|
|
4502
4810
|
|
|
4503
|
-
if (dirty & /*tag*/ 2) {
|
|
4811
|
+
if (!current || dirty & /*tag*/ 2) {
|
|
4504
4812
|
internal.toggle_class(div2, "disable", /*tag*/ ctx[1].enabled === false || /*tag*/ ctx[1].temporaryState?.visible === false);
|
|
4505
4813
|
}
|
|
4506
4814
|
|
|
4507
|
-
if (dirty & /*state, temporaryState, tag*/ 42) {
|
|
4815
|
+
if (!current || dirty & /*state, temporaryState, tag*/ 42) {
|
|
4508
4816
|
internal.toggle_class(div2, "hide", !/*state*/ ctx[3].visible || !/*temporaryState*/ ctx[5].visible || !/*tag*/ ctx[1].state?.visible);
|
|
4509
4817
|
}
|
|
4510
4818
|
|
|
4511
|
-
if (dirty & /*withAnimation*/ 1) {
|
|
4819
|
+
if (!current || dirty & /*withAnimation*/ 1) {
|
|
4512
4820
|
internal.toggle_class(div2, "withAnimation", /*withAnimation*/ ctx[0]);
|
|
4513
4821
|
}
|
|
4822
|
+
|
|
4823
|
+
if (dirty & /*tag*/ 2) {
|
|
4824
|
+
internal.set_style(div2, "width", /*tag*/ ctx[1].pointType === 'PointTag' ? 0 : '100%', false);
|
|
4825
|
+
}
|
|
4826
|
+
|
|
4827
|
+
if (dirty & /*tag*/ 2) {
|
|
4828
|
+
internal.set_style(div2, "height", /*tag*/ ctx[1].pointType === 'PointTag' ? 0 : '100%', false);
|
|
4829
|
+
}
|
|
4514
4830
|
},
|
|
4515
4831
|
i(local) {
|
|
4516
4832
|
if (current) return;
|
|
@@ -4535,6 +4851,9 @@ function create_fragment$5(ctx) {
|
|
|
4535
4851
|
}
|
|
4536
4852
|
|
|
4537
4853
|
function instance$5($$self, $$props, $$invalidate) {
|
|
4854
|
+
let unfolded;
|
|
4855
|
+
let visible;
|
|
4856
|
+
var _a, _b;
|
|
4538
4857
|
let { withAnimation = false } = $$props;
|
|
4539
4858
|
let { tag } = $$props;
|
|
4540
4859
|
let { hooks } = $$props;
|
|
@@ -4542,6 +4861,8 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
4542
4861
|
let { mediaStore } = $$props;
|
|
4543
4862
|
let { temporaryState } = $$props;
|
|
4544
4863
|
svelte.setContext('hooks', hooks);
|
|
4864
|
+
let lastVisibleState;
|
|
4865
|
+
let lastUnfoldedState;
|
|
4545
4866
|
const click_handler = event => hooks.emit('click', { event, target: 'TagContent', tag });
|
|
4546
4867
|
|
|
4547
4868
|
$$self.$$set = $$props => {
|
|
@@ -4553,7 +4874,51 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
4553
4874
|
if ('temporaryState' in $$props) $$invalidate(5, temporaryState = $$props.temporaryState);
|
|
4554
4875
|
};
|
|
4555
4876
|
|
|
4556
|
-
|
|
4877
|
+
$$self.$$.update = () => {
|
|
4878
|
+
if ($$self.$$.dirty & /*tag, _a*/ 66) {
|
|
4879
|
+
$$invalidate(11, unfolded = $$invalidate(6, _a = tag.state) === null || _a === void 0
|
|
4880
|
+
? void 0
|
|
4881
|
+
: _a.unfolded);
|
|
4882
|
+
}
|
|
4883
|
+
|
|
4884
|
+
if ($$self.$$.dirty & /*tag, _b*/ 130) {
|
|
4885
|
+
$$invalidate(10, visible = $$invalidate(7, _b = tag.state) === null || _b === void 0
|
|
4886
|
+
? void 0
|
|
4887
|
+
: _b.visible);
|
|
4888
|
+
}
|
|
4889
|
+
|
|
4890
|
+
if ($$self.$$.dirty & /*tag, unfolded, lastUnfoldedState, visible, lastVisibleState*/ 3842) {
|
|
4891
|
+
{
|
|
4892
|
+
if (tag.hooks) {
|
|
4893
|
+
if (unfolded !== undefined && unfolded !== lastUnfoldedState) {
|
|
4894
|
+
$$invalidate(9, lastUnfoldedState = unfolded);
|
|
4895
|
+
if (unfolded) tag.hooks.emit('unfolded'); else tag.hooks.emit('folded');
|
|
4896
|
+
}
|
|
4897
|
+
|
|
4898
|
+
if (visible !== undefined && visible !== lastVisibleState) {
|
|
4899
|
+
$$invalidate(8, lastVisibleState = visible);
|
|
4900
|
+
if (visible) tag.hooks.emit('show'); else tag.hooks.emit('hide');
|
|
4901
|
+
}
|
|
4902
|
+
}
|
|
4903
|
+
}
|
|
4904
|
+
}
|
|
4905
|
+
};
|
|
4906
|
+
|
|
4907
|
+
return [
|
|
4908
|
+
withAnimation,
|
|
4909
|
+
tag,
|
|
4910
|
+
hooks,
|
|
4911
|
+
state,
|
|
4912
|
+
mediaStore,
|
|
4913
|
+
temporaryState,
|
|
4914
|
+
_a,
|
|
4915
|
+
_b,
|
|
4916
|
+
lastVisibleState,
|
|
4917
|
+
lastUnfoldedState,
|
|
4918
|
+
visible,
|
|
4919
|
+
unfolded,
|
|
4920
|
+
click_handler
|
|
4921
|
+
];
|
|
4557
4922
|
}
|
|
4558
4923
|
|
|
4559
4924
|
class Tag extends internal.SvelteComponent {
|
|
@@ -4579,10 +4944,10 @@ class Tag extends internal.SvelteComponent {
|
|
|
4579
4944
|
}
|
|
4580
4945
|
}
|
|
4581
4946
|
|
|
4582
|
-
/* src/PanoTagPlugin/Components/Common/Point/CustomPoint.svelte generated by Svelte v3.
|
|
4947
|
+
/* src/PanoTagPlugin/Components/Common/Point/CustomPoint.svelte generated by Svelte v3.50.1 */
|
|
4583
4948
|
|
|
4584
4949
|
function add_css$4(target) {
|
|
4585
|
-
internal.append_styles(target, "svelte-
|
|
4950
|
+
internal.append_styles(target, "svelte-mhqidy", ".point.svelte-mhqidy.svelte-mhqidy{width:1.5rem;height:1.5rem}.small-point.svelte-mhqidy.svelte-mhqidy,.big-point.svelte-mhqidy.svelte-mhqidy{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all 500ms}.big-point.svelte-mhqidy.svelte-mhqidy{background-color:rgba(0, 0, 0, 0.1)}.folded.point.svelte-mhqidy.svelte-mhqidy{-webkit-animation:svelte-mhqidy-breathing 2s linear infinite;animation:svelte-mhqidy-breathing 2s linear infinite}.big-point.svelte-mhqidy.svelte-mhqidy::before,.big-point.svelte-mhqidy.svelte-mhqidy::after{content:'';display:block;position:absolute;background-size:contain;background-repeat:no-repeat;pointer-events:none}.big-point.svelte-mhqidy.svelte-mhqidy::before{width:100%;height:100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAMAAABiM0N1AAAAqFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8j1z1tAAAAOHRSTlMABgoNFBsYIhEmHyksMoJ6RZ5aXzpnU03AtqaZjLuGN+zcifnW0cjEqnA+lOZzbWLhkH6i8rGuagnOwPMAAAQOSURBVFjDrZiHctpAEIYXYzvGOvXeUe+IYuD93ywrJAIhFJX8M8zoBHzz757utHvwTETJHJPfGQZfWJXILWCMPuqNbuu6vj+khrHjed40TWvFfQ2jvCl8nGha6lQCl7s07UqcUlfOZrOxVtKsN2a+0uJYK+ScEIqiFifhBSGSsnJ8f8u99cLMVnEUHTKXIOMX6vuk5gpphFYyhmHzHpzcDqNUJGgEER+oz5OaK8ShNcIdt+zx1ys7lhdqiDlRkPF+JaSdWIhasaz6lLPQ1qFDIwYpDeTr62veCS8bGLIQRSsVK78/5nDeOlYIYhovHeOtU0dDXw2KSGiKesQRyjJ10Q66QcyZMTvpTEMUumpMieyWvs9ZLZcmodAOYlorsysBflpjiEJTFBEY5+7sicul34T1iak5U25momN9Ya4wPCT57r8cteW0dk4YuKMTqjXVkgjciFr+8B3ngnmM6kii5X/efB0F+jUHnuiatLJY+Et84EnUNacfiaKZjQhX4oJAwPlqOB3mJaoh4dxxG5Nc3Q8DkywunP6kBalN53J7G3g0JqiNC3qpjQ7TRPvmn2U3L3/kU4JaTn/SKU0qb76dDf0kGNjHJbD+wX1gcMxO6fZVrzXUcQaROkvt3+pljIYugQ0LDi1ZBgeN9JK9MjTCkmgwgPou19I5QzBI5yy5RvqOw6xMMbKzoeGWmnQfBBwa6woj6wyNsYSx7R0chWuOwsjOqR6aboyNyvcpgOsl3ZzNhoNm3bztdAK1x5NuzmCwunkjjq4AEzKXFI1NUmVnwIfydJBoW7CPVAR1uR6XbVwlmgF2xF1yPTbbubYHLZamgyTNhiSmp4PoJIEk+R+gOAFb+x+hxRoctHw6iItsMLT/Mf3RHixbnP5AyhEPmZ1NB+E6A0V3pi9aPqyB6Pz0bSTxXID0kE/d2DgvxBFzEKdutdXawJGSMlM3/3Sd4fA93bnTXkfSuvwGFGOI016QbKm3VdbOn/bKjpd1e6Pg1SlFhPzjdXWNwjNTyprkhz33i4Wpji600FA5h05q4Ywv/bxge7mNRe7YYtQMwqt/kMLixpXHQhBwcCXBYukxBbvkBTv4S5V/HNNC6EF089tPxxGHNzV8sKTgRhSzVYa2Wf5yeadHphlWGdb4IUeEO5K2SHrUiqJuW9GiLFdwVzRbCXTf5tg11mvhYdufZbLUr11XEi/k4KHexUxWSY8DBCby7AU8E3eUhfzVkYZgR6H/agF8C3KNqCeHLIIRR7oEr0XXsixy9P1jH/doJLF2nPXbIlw5y1aC6t4eROW1pduaLs/7b6NEqFiWrWpBzaXuaOy4Nfe6bRfqGwzSXBJZhnF8y9oUhcnzOyM9pI7wCWP0LSkyy1iFWWwsFp8LeKLfd4doRyTLRacAAAAASUVORK5CYII=)}.folded.svelte-mhqidy .big-point.svelte-mhqidy::before{-webkit-animation:svelte-mhqidy-rotate 2s linear infinite;animation:svelte-mhqidy-rotate 2s linear infinite}.big-point.svelte-mhqidy.svelte-mhqidy::after{position:absolute;width:1rem;height:1rem;background-image:var(--iconUrl)}.small-point.svelte-mhqidy.svelte-mhqidy::before{content:'';display:block;position:absolute;pointer-events:none;width:0.25rem;height:0.25rem;border-radius:100%;background-color:white}.folded.svelte-mhqidy .big-point.svelte-mhqidy{opacity:1;scale:1}.unfolded.svelte-mhqidy .big-point.svelte-mhqidy{opacity:0;scale:0}.folded.svelte-mhqidy .small-point.svelte-mhqidy{opacity:0;scale:6}.unfolded.svelte-mhqidy .small-point.svelte-mhqidy{opacity:1;scale:1}@-webkit-keyframes svelte-mhqidy-rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@keyframes svelte-mhqidy-rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@-webkit-keyframes svelte-mhqidy-breathing{0%{transform:scale(1)}25%{transform:scale(0.9)}50%{transform:scale(1)}}@keyframes svelte-mhqidy-breathing{0%{transform:scale(1)}25%{transform:scale(0.9)}50%{transform:scale(1)}}");
|
|
4586
4951
|
}
|
|
4587
4952
|
|
|
4588
4953
|
function create_fragment$4(ctx) {
|
|
@@ -4610,12 +4975,12 @@ function create_fragment$4(ctx) {
|
|
|
4610
4975
|
div0 = internal.element("div");
|
|
4611
4976
|
t1 = internal.space();
|
|
4612
4977
|
div1 = internal.element("div");
|
|
4613
|
-
internal.attr(div0, "class", "small-point svelte-
|
|
4978
|
+
internal.attr(div0, "class", "small-point svelte-mhqidy");
|
|
4614
4979
|
internal.set_style(div0, "transition-delay", /*folded*/ ctx[3] ? /*foldDelay*/ ctx[2] + 'ms' : '0ms', false);
|
|
4615
|
-
internal.attr(div1, "class", "big-point svelte-
|
|
4980
|
+
internal.attr(div1, "class", "big-point svelte-mhqidy");
|
|
4616
4981
|
internal.set_style(div1, "--iconUrl", "url(" + /*iconUrl*/ ctx[1] + ")");
|
|
4617
4982
|
internal.set_style(div1, "transition-delay", /*folded*/ ctx[3] ? /*foldDelay*/ ctx[2] + 'ms' : '0ms', false);
|
|
4618
|
-
internal.attr(div2, "class", "point svelte-
|
|
4983
|
+
internal.attr(div2, "class", "point svelte-mhqidy");
|
|
4619
4984
|
internal.toggle_class(div2, "folded", /*folded*/ ctx[3]);
|
|
4620
4985
|
internal.toggle_class(div2, "unfolded", /*unfolded*/ ctx[0]);
|
|
4621
4986
|
},
|
|
@@ -4641,11 +5006,11 @@ function create_fragment$4(ctx) {
|
|
|
4641
5006
|
internal.set_style(div1, "transition-delay", /*folded*/ ctx[3] ? /*foldDelay*/ ctx[2] + 'ms' : '0ms', false);
|
|
4642
5007
|
}
|
|
4643
5008
|
|
|
4644
|
-
if (dirty & /*folded*/ 8) {
|
|
5009
|
+
if (!current || dirty & /*folded*/ 8) {
|
|
4645
5010
|
internal.toggle_class(div2, "folded", /*folded*/ ctx[3]);
|
|
4646
5011
|
}
|
|
4647
5012
|
|
|
4648
|
-
if (dirty & /*unfolded*/ 1) {
|
|
5013
|
+
if (!current || dirty & /*unfolded*/ 1) {
|
|
4649
5014
|
internal.toggle_class(div2, "unfolded", /*unfolded*/ ctx[0]);
|
|
4650
5015
|
}
|
|
4651
5016
|
},
|
|
@@ -4693,10 +5058,10 @@ class CustomPoint extends internal.SvelteComponent {
|
|
|
4693
5058
|
}
|
|
4694
5059
|
}
|
|
4695
5060
|
|
|
4696
|
-
/* src/PanoTagPlugin/Components/Common/Point/DefaultPoint.svelte generated by Svelte v3.
|
|
5061
|
+
/* src/PanoTagPlugin/Components/Common/Point/DefaultPoint.svelte generated by Svelte v3.50.1 */
|
|
4697
5062
|
|
|
4698
5063
|
function add_css$3(target) {
|
|
4699
|
-
internal.append_styles(target, "svelte-
|
|
5064
|
+
internal.append_styles(target, "svelte-1rg9uk", ".point.svelte-1rg9uk.svelte-1rg9uk{width:1rem;height:1rem}.small-point.svelte-1rg9uk.svelte-1rg9uk,.big-point.svelte-1rg9uk.svelte-1rg9uk{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all 500ms}.big-point.svelte-1rg9uk.svelte-1rg9uk::before,.big-point.svelte-1rg9uk.svelte-1rg9uk::after{content:'';display:block;position:absolute;background-size:contain;background-repeat:no-repeat;pointer-events:none}.big-point.svelte-1rg9uk.svelte-1rg9uk::before{width:100%;height:100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAMAAABiM0N1AAAAqFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8j1z1tAAAAOHRSTlMABgoNFBsYIhEmHyksMoJ6RZ5aXzpnU03AtqaZjLuGN+zcifnW0cjEqnA+lOZzbWLhkH6i8rGuagnOwPMAAAQOSURBVFjDrZiHctpAEIYXYzvGOvXeUe+IYuD93ywrJAIhFJX8M8zoBHzz757utHvwTETJHJPfGQZfWJXILWCMPuqNbuu6vj+khrHjed40TWvFfQ2jvCl8nGha6lQCl7s07UqcUlfOZrOxVtKsN2a+0uJYK+ScEIqiFifhBSGSsnJ8f8u99cLMVnEUHTKXIOMX6vuk5gpphFYyhmHzHpzcDqNUJGgEER+oz5OaK8ShNcIdt+zx1ys7lhdqiDlRkPF+JaSdWIhasaz6lLPQ1qFDIwYpDeTr62veCS8bGLIQRSsVK78/5nDeOlYIYhovHeOtU0dDXw2KSGiKesQRyjJ10Q66QcyZMTvpTEMUumpMieyWvs9ZLZcmodAOYlorsysBflpjiEJTFBEY5+7sicul34T1iak5U25momN9Ya4wPCT57r8cteW0dk4YuKMTqjXVkgjciFr+8B3ngnmM6kii5X/efB0F+jUHnuiatLJY+Et84EnUNacfiaKZjQhX4oJAwPlqOB3mJaoh4dxxG5Nc3Q8DkywunP6kBalN53J7G3g0JqiNC3qpjQ7TRPvmn2U3L3/kU4JaTn/SKU0qb76dDf0kGNjHJbD+wX1gcMxO6fZVrzXUcQaROkvt3+pljIYugQ0LDi1ZBgeN9JK9MjTCkmgwgPou19I5QzBI5yy5RvqOw6xMMbKzoeGWmnQfBBwa6woj6wyNsYSx7R0chWuOwsjOqR6aboyNyvcpgOsl3ZzNhoNm3bztdAK1x5NuzmCwunkjjq4AEzKXFI1NUmVnwIfydJBoW7CPVAR1uR6XbVwlmgF2xF1yPTbbubYHLZamgyTNhiSmp4PoJIEk+R+gOAFb+x+hxRoctHw6iItsMLT/Mf3RHixbnP5AyhEPmZ1NB+E6A0V3pi9aPqyB6Pz0bSTxXID0kE/d2DgvxBFzEKdutdXawJGSMlM3/3Sd4fA93bnTXkfSuvwGFGOI016QbKm3VdbOn/bKjpd1e6Pg1SlFhPzjdXWNwjNTyprkhz33i4Wpji600FA5h05q4Ywv/bxge7mNRe7YYtQMwqt/kMLixpXHQhBwcCXBYukxBbvkBTv4S5V/HNNC6EF089tPxxGHNzV8sKTgRhSzVYa2Wf5yeadHphlWGdb4IUeEO5K2SHrUiqJuW9GiLFdwVzRbCXTf5tg11mvhYdufZbLUr11XEi/k4KHexUxWSY8DBCby7AU8E3eUhfzVkYZgR6H/agF8C3KNqCeHLIIRR7oEr0XXsixy9P1jH/doJLF2nPXbIlw5y1aC6t4eROW1pduaLs/7b6NEqFiWrWpBzaXuaOy4Nfe6bRfqGwzSXBJZhnF8y9oUhcnzOyM9pI7wCWP0LSkyy1iFWWwsFp8LeKLfd4doRyTLRacAAAAASUVORK5CYII=);background-size:contain;background-repeat:no-repeat}.small-point.svelte-1rg9uk.svelte-1rg9uk::before{content:'';display:block;position:absolute;pointer-events:none;width:0.375rem;height:0.375rem;border-radius:100%;background-color:white}.unfolded.svelte-1rg9uk .big-point.svelte-1rg9uk{opacity:0;transform:scale(0)}.folded.svelte-1rg9uk .big-point.svelte-1rg9uk{opacity:1;transform:scale(1)}.unfolded.svelte-1rg9uk .small-point.svelte-1rg9uk{transform:scale(0.6)}.folded.svelte-1rg9uk .small-point.svelte-1rg9uk{transform:scale(1)}");
|
|
4700
5065
|
}
|
|
4701
5066
|
|
|
4702
5067
|
function create_fragment$3(ctx) {
|
|
@@ -4724,11 +5089,11 @@ function create_fragment$3(ctx) {
|
|
|
4724
5089
|
div0 = internal.element("div");
|
|
4725
5090
|
t1 = internal.space();
|
|
4726
5091
|
div1 = internal.element("div");
|
|
4727
|
-
internal.attr(div0, "class", "small-point svelte-
|
|
5092
|
+
internal.attr(div0, "class", "small-point svelte-1rg9uk");
|
|
4728
5093
|
internal.set_style(div0, "transition-delay", /*folded*/ ctx[2] ? /*foldDelay*/ ctx[1] + 'ms' : '0ms', false);
|
|
4729
|
-
internal.attr(div1, "class", "big-point svelte-
|
|
5094
|
+
internal.attr(div1, "class", "big-point svelte-1rg9uk");
|
|
4730
5095
|
internal.set_style(div1, "transition-delay", /*folded*/ ctx[2] ? /*foldDelay*/ ctx[1] + 'ms' : '0ms', false);
|
|
4731
|
-
internal.attr(div2, "class", "point svelte-
|
|
5096
|
+
internal.attr(div2, "class", "point svelte-1rg9uk");
|
|
4732
5097
|
internal.toggle_class(div2, "unfolded", /*unfolded*/ ctx[0]);
|
|
4733
5098
|
internal.toggle_class(div2, "folded", /*folded*/ ctx[2]);
|
|
4734
5099
|
},
|
|
@@ -4750,11 +5115,11 @@ function create_fragment$3(ctx) {
|
|
|
4750
5115
|
internal.set_style(div1, "transition-delay", /*folded*/ ctx[2] ? /*foldDelay*/ ctx[1] + 'ms' : '0ms', false);
|
|
4751
5116
|
}
|
|
4752
5117
|
|
|
4753
|
-
if (dirty & /*unfolded*/ 1) {
|
|
5118
|
+
if (!current || dirty & /*unfolded*/ 1) {
|
|
4754
5119
|
internal.toggle_class(div2, "unfolded", /*unfolded*/ ctx[0]);
|
|
4755
5120
|
}
|
|
4756
5121
|
|
|
4757
|
-
if (dirty & /*folded*/ 4) {
|
|
5122
|
+
if (!current || dirty & /*folded*/ 4) {
|
|
4758
5123
|
internal.toggle_class(div2, "folded", /*folded*/ ctx[2]);
|
|
4759
5124
|
}
|
|
4760
5125
|
},
|
|
@@ -4800,7 +5165,7 @@ class DefaultPoint extends internal.SvelteComponent {
|
|
|
4800
5165
|
}
|
|
4801
5166
|
}
|
|
4802
5167
|
|
|
4803
|
-
/* src/PanoTagPlugin/Components/Common/Point/PointSwitch.svelte generated by Svelte v3.
|
|
5168
|
+
/* src/PanoTagPlugin/Components/Common/Point/PointSwitch.svelte generated by Svelte v3.50.1 */
|
|
4804
5169
|
|
|
4805
5170
|
function add_css$2(target) {
|
|
4806
5171
|
internal.append_styles(target, "svelte-r4i9gl", ".point-click-helper.svelte-r4i9gl{width:2.5rem;height:2.5rem;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}");
|
|
@@ -4810,7 +5175,7 @@ function add_css$2(target) {
|
|
|
4810
5175
|
function create_if_block$1(ctx) {
|
|
4811
5176
|
let if_block_anchor;
|
|
4812
5177
|
let current;
|
|
4813
|
-
let if_block = /*tag*/ ctx[0].contentType !==
|
|
5178
|
+
let if_block = /*tag*/ ctx[0].contentType !== ContentType.Link && create_if_block_1$1(ctx);
|
|
4814
5179
|
|
|
4815
5180
|
return {
|
|
4816
5181
|
c() {
|
|
@@ -4823,7 +5188,7 @@ function create_if_block$1(ctx) {
|
|
|
4823
5188
|
current = true;
|
|
4824
5189
|
},
|
|
4825
5190
|
p(ctx, dirty) {
|
|
4826
|
-
if (/*tag*/ ctx[0].contentType !==
|
|
5191
|
+
if (/*tag*/ ctx[0].contentType !== ContentType.Link) {
|
|
4827
5192
|
if (if_block) {
|
|
4828
5193
|
if_block.p(ctx, dirty);
|
|
4829
5194
|
|
|
@@ -5095,7 +5460,7 @@ function instance$2($$self, $$props, $$invalidate) {
|
|
|
5095
5460
|
? void 0
|
|
5096
5461
|
: _a.foldedPointDelay) !== null && _b !== void 0
|
|
5097
5462
|
? _b
|
|
5098
|
-
: tag.contentType ===
|
|
5463
|
+
: tag.contentType === ContentType.Marketing
|
|
5099
5464
|
? 600
|
|
5100
5465
|
: undefined);
|
|
5101
5466
|
}
|
|
@@ -5111,7 +5476,7 @@ class PointSwitch extends internal.SvelteComponent {
|
|
|
5111
5476
|
}
|
|
5112
5477
|
}
|
|
5113
5478
|
|
|
5114
|
-
/* src/PanoTagPlugin/Components/TagWrapper.svelte generated by Svelte v3.
|
|
5479
|
+
/* src/PanoTagPlugin/Components/TagWrapper.svelte generated by Svelte v3.50.1 */
|
|
5115
5480
|
|
|
5116
5481
|
function add_css$1(target) {
|
|
5117
5482
|
internal.append_styles(target, "svelte-1vzhbu2", ".wrapper.svelte-1vzhbu2{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto}.point.svelte-1vzhbu2{-webkit-tap-highlight-color:transparent;position:absolute;transform:translate(-50%, -50%);left:50%;top:50%}");
|
|
@@ -5219,8 +5584,8 @@ function create_fragment$1(ctx) {
|
|
|
5219
5584
|
let t;
|
|
5220
5585
|
let div_data_id_value;
|
|
5221
5586
|
let current;
|
|
5222
|
-
let if_block0 = /*tag*/ ctx[1].dimensionType ===
|
|
5223
|
-
let if_block1 = /*tag*/ ctx[1].pointType ===
|
|
5587
|
+
let if_block0 = /*tag*/ ctx[1].dimensionType === DimensionType.Two && create_if_block_1(ctx);
|
|
5588
|
+
let if_block1 = /*tag*/ ctx[1].pointType === PointType.PointTag && /*tag*/ ctx[1].style?.point?.style !== 'noPoint' && create_if_block(ctx);
|
|
5224
5589
|
|
|
5225
5590
|
return {
|
|
5226
5591
|
c() {
|
|
@@ -5244,7 +5609,7 @@ function create_fragment$1(ctx) {
|
|
|
5244
5609
|
current = true;
|
|
5245
5610
|
},
|
|
5246
5611
|
p(ctx, [dirty]) {
|
|
5247
|
-
if (/*tag*/ ctx[1].dimensionType ===
|
|
5612
|
+
if (/*tag*/ ctx[1].dimensionType === DimensionType.Two) {
|
|
5248
5613
|
if (if_block0) {
|
|
5249
5614
|
if_block0.p(ctx, dirty);
|
|
5250
5615
|
|
|
@@ -5267,7 +5632,7 @@ function create_fragment$1(ctx) {
|
|
|
5267
5632
|
internal.check_outros();
|
|
5268
5633
|
}
|
|
5269
5634
|
|
|
5270
|
-
if (/*tag*/ ctx[1].pointType ===
|
|
5635
|
+
if (/*tag*/ ctx[1].pointType === PointType.PointTag && /*tag*/ ctx[1].style?.point?.style !== 'noPoint') {
|
|
5271
5636
|
if (if_block1) {
|
|
5272
5637
|
if_block1.p(ctx, dirty);
|
|
5273
5638
|
|
|
@@ -5294,11 +5659,11 @@ function create_fragment$1(ctx) {
|
|
|
5294
5659
|
internal.attr(div, "data-id", div_data_id_value);
|
|
5295
5660
|
}
|
|
5296
5661
|
|
|
5297
|
-
if (dirty & /*hide*/ 1024) {
|
|
5662
|
+
if (!current || dirty & /*hide*/ 1024) {
|
|
5298
5663
|
internal.toggle_class(div, "hide", /*hide*/ ctx[10]);
|
|
5299
5664
|
}
|
|
5300
5665
|
|
|
5301
|
-
if (dirty & /*unfolded*/ 64) {
|
|
5666
|
+
if (!current || dirty & /*unfolded*/ 64) {
|
|
5302
5667
|
internal.toggle_class(div, "unfolded", /*unfolded*/ ctx[6]);
|
|
5303
5668
|
}
|
|
5304
5669
|
|
|
@@ -5366,14 +5731,6 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
5366
5731
|
hooks.emit('click', { event, target: 'TagPoint', tag });
|
|
5367
5732
|
};
|
|
5368
5733
|
|
|
5369
|
-
svelte.onMount(() => {
|
|
5370
|
-
hooks.emit('exposure', { id: tag.id, type: 'start' });
|
|
5371
|
-
|
|
5372
|
-
return () => {
|
|
5373
|
-
hooks.emit('exposure', { id: tag.id, type: 'end' });
|
|
5374
|
-
};
|
|
5375
|
-
});
|
|
5376
|
-
|
|
5377
5734
|
$$self.$$set = $$props => {
|
|
5378
5735
|
if ('withAnimation' in $$props) $$invalidate(0, withAnimation = $$props.withAnimation);
|
|
5379
5736
|
if ('tag' in $$props) $$invalidate(1, tag = $$props.tag);
|
|
@@ -5409,7 +5766,7 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
5409
5766
|
}
|
|
5410
5767
|
|
|
5411
5768
|
if ($$self.$$.dirty & /*tag, _e*/ 65538) {
|
|
5412
|
-
$$invalidate(7, zIndex = tag.contentType ===
|
|
5769
|
+
$$invalidate(7, zIndex = tag.contentType === ContentType.Link
|
|
5413
5770
|
? 20
|
|
5414
5771
|
: ($$invalidate(16, _e = tag.state) === null || _e === void 0
|
|
5415
5772
|
? void 0
|
|
@@ -5467,7 +5824,7 @@ class TagWrapper extends internal.SvelteComponent {
|
|
|
5467
5824
|
}
|
|
5468
5825
|
}
|
|
5469
5826
|
|
|
5470
|
-
/* src/PanoTagPlugin/Components/PointTag.svelte generated by Svelte v3.
|
|
5827
|
+
/* src/PanoTagPlugin/Components/PointTag.svelte generated by Svelte v3.50.1 */
|
|
5471
5828
|
|
|
5472
5829
|
function add_css(target) {
|
|
5473
5830
|
internal.append_styles(target, "svelte-1d5dpm8", ".tag2D__container.svelte-1d5dpm8{box-sizing:border-box;position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;opacity:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tag2D.hide.svelte-1d5dpm8{display:none}.withAnimation.svelte-1d5dpm8{transition:opacity 0.3s linear}.tag2D__container.hide.svelte-1d5dpm8{opacity:0;pointer-events:none}.tag2D__container.hide.svelte-1d5dpm8 *{pointer-events:none}");
|
|
@@ -5540,7 +5897,7 @@ function create_each_block(key_1, ctx) {
|
|
|
5540
5897
|
|
|
5541
5898
|
tagwrapper.$set(tagwrapper_changes);
|
|
5542
5899
|
|
|
5543
|
-
if (dirty & /*tags*/ 2) {
|
|
5900
|
+
if (!current || dirty & /*tags*/ 2) {
|
|
5544
5901
|
internal.toggle_class(div, "hide", !/*tag*/ ctx[6].pointTagStyle?.leftPercent || !/*tag*/ ctx[6].pointTagStyle?.topPercent || /*tag*/ ctx[6].enabled === false || !/*tag*/ ctx[6].state || /*tag*/ ctx[6].temporaryState?.visible === false);
|
|
5545
5902
|
}
|
|
5546
5903
|
},
|
|
@@ -5603,11 +5960,11 @@ function create_fragment(ctx) {
|
|
|
5603
5960
|
internal.check_outros();
|
|
5604
5961
|
}
|
|
5605
5962
|
|
|
5606
|
-
if (dirty & /*state, temporaryState*/ 40) {
|
|
5963
|
+
if (!current || dirty & /*state, temporaryState*/ 40) {
|
|
5607
5964
|
internal.toggle_class(div, "hide", !/*state*/ ctx[3].visible || !/*temporaryState*/ ctx[5].visible);
|
|
5608
5965
|
}
|
|
5609
5966
|
|
|
5610
|
-
if (dirty & /*withAnimation*/ 1) {
|
|
5967
|
+
if (!current || dirty & /*withAnimation*/ 1) {
|
|
5611
5968
|
internal.toggle_class(div, "withAnimation", /*withAnimation*/ ctx[0]);
|
|
5612
5969
|
}
|
|
5613
5970
|
},
|
|
@@ -5680,20 +6037,65 @@ class PointTag extends internal.SvelteComponent {
|
|
|
5680
6037
|
}
|
|
5681
6038
|
}
|
|
5682
6039
|
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
6040
|
+
const DefaultConfig = {
|
|
6041
|
+
globalConfig: {
|
|
6042
|
+
initialState: {
|
|
6043
|
+
// unfolded: false,
|
|
6044
|
+
},
|
|
6045
|
+
visibleConfig: {
|
|
6046
|
+
visibleDistance: { max: 5 },
|
|
6047
|
+
angleRange: { min: -45, max: 45 },
|
|
6048
|
+
},
|
|
6049
|
+
unfoldedConfig: {
|
|
6050
|
+
autoUnfold: {
|
|
6051
|
+
strategy: 'MinimumDistance',
|
|
6052
|
+
},
|
|
6053
|
+
},
|
|
6054
|
+
tag3DConfig: {
|
|
6055
|
+
ratio: 0.0035,
|
|
6056
|
+
devicePixelRatio: window.devicePixelRatio,
|
|
6057
|
+
},
|
|
6058
|
+
},
|
|
6059
|
+
contentTypeConfig: {
|
|
6060
|
+
'Any-Link-Any': {
|
|
6061
|
+
unfoldedConfig: {
|
|
6062
|
+
// VR 跳转标签没有展开/收起状态
|
|
6063
|
+
disableFold: true,
|
|
6064
|
+
autoUnfold: undefined,
|
|
6065
|
+
},
|
|
6066
|
+
initialState: {
|
|
6067
|
+
unfolded: true,
|
|
6068
|
+
},
|
|
6069
|
+
},
|
|
6070
|
+
'Any-Marketing-Any': {
|
|
6071
|
+
unfoldedConfig: undefined,
|
|
6072
|
+
},
|
|
6073
|
+
'3D-MediaPanel-PlaneTag': {
|
|
6074
|
+
unfoldedConfig: {
|
|
6075
|
+
disableFold: true,
|
|
6076
|
+
},
|
|
6077
|
+
visibleConfig: {
|
|
6078
|
+
angleRange: undefined,
|
|
6079
|
+
visibleDistance: undefined,
|
|
6080
|
+
},
|
|
6081
|
+
},
|
|
6082
|
+
},
|
|
6083
|
+
};
|
|
6084
|
+
|
|
6085
|
+
/**
|
|
6086
|
+
* plugin 的基本控制器
|
|
6087
|
+
*/
|
|
6088
|
+
class Controller$1 {
|
|
6089
|
+
constructor(five$1) {
|
|
6090
|
+
Object.defineProperty(this, "five", {
|
|
6091
|
+
enumerable: true,
|
|
6092
|
+
configurable: true,
|
|
6093
|
+
writable: true,
|
|
6094
|
+
value: void 0
|
|
6095
|
+
});
|
|
6096
|
+
/**
|
|
6097
|
+
* 插件事件钩子
|
|
6098
|
+
*/
|
|
5697
6099
|
Object.defineProperty(this, "hooks", {
|
|
5698
6100
|
enumerable: true,
|
|
5699
6101
|
configurable: true,
|
|
@@ -5829,6 +6231,7 @@ class TagComputer extends TagCacheController {
|
|
|
5829
6231
|
const visible = (() => {
|
|
5830
6232
|
var _a, _b, _c, _d, _e;
|
|
5831
6233
|
const config = (_a = this.getTagConfig(tag).visibleConfig) !== null && _a !== void 0 ? _a : {};
|
|
6234
|
+
// console.log(config)
|
|
5832
6235
|
const distance = this.getDistance(tag);
|
|
5833
6236
|
if (typeof config === 'function') {
|
|
5834
6237
|
return config(this.five, { tag, distance });
|
|
@@ -5868,19 +6271,18 @@ class TagComputer extends TagCacheController {
|
|
|
5868
6271
|
if (intersection && intersection.distance + distanceError < distance)
|
|
5869
6272
|
return false;
|
|
5870
6273
|
}
|
|
5871
|
-
// console.log(tag.id, '角度检测', tag)
|
|
6274
|
+
// console.log(tag.id, '角度检测', tag, config.angleRange)
|
|
5872
6275
|
// 角度检测
|
|
5873
|
-
if (tag.dimensionType ===
|
|
6276
|
+
if (config.angleRange && tag.dimensionType === DimensionType.Three) {
|
|
5874
6277
|
const visible = checkRange(this.getAngle(tag), config.angleRange);
|
|
5875
6278
|
if (visible === false)
|
|
5876
6279
|
return false;
|
|
5877
6280
|
}
|
|
5878
6281
|
// 结束
|
|
5879
|
-
// console.log(tag.id, '结束', tag)
|
|
6282
|
+
// console.log(tag.id, '结束', tag, visible)
|
|
5880
6283
|
return true;
|
|
5881
6284
|
}
|
|
5882
6285
|
})();
|
|
5883
|
-
// console.log(tag.id, 'end', tag, visible)
|
|
5884
6286
|
cache.visible = visible;
|
|
5885
6287
|
return cache.visible;
|
|
5886
6288
|
}
|
|
@@ -6004,7 +6406,7 @@ class TagComputer extends TagCacheController {
|
|
|
6004
6406
|
if (observerPosition === undefined)
|
|
6005
6407
|
throw new Error(`getDistance(): observerPosition is ${observerPosition}`);
|
|
6006
6408
|
const position = (() => {
|
|
6007
|
-
if (tag.pointType ===
|
|
6409
|
+
if (tag.pointType === PointType.PointTag) {
|
|
6008
6410
|
return arrayPositionToVector3(tag === null || tag === void 0 ? void 0 : tag.position);
|
|
6009
6411
|
}
|
|
6010
6412
|
else {
|
|
@@ -6032,7 +6434,7 @@ class TagComputer extends TagCacheController {
|
|
|
6032
6434
|
if (observerPosition === undefined)
|
|
6033
6435
|
throw new Error(`getAngleRange(): observerPosition is ${observerPosition}`);
|
|
6034
6436
|
const normal = (() => {
|
|
6035
|
-
if (tag.pointType ===
|
|
6437
|
+
if (tag.pointType === PointType.PointTag)
|
|
6036
6438
|
return anyPositionToVector3(tag.normal);
|
|
6037
6439
|
else
|
|
6038
6440
|
return planeNormal(tag.position);
|
|
@@ -6045,7 +6447,7 @@ class TagComputer extends TagCacheController {
|
|
|
6045
6447
|
return cache.angle;
|
|
6046
6448
|
}
|
|
6047
6449
|
}
|
|
6048
|
-
// TODO:
|
|
6450
|
+
// TODO: 缓存
|
|
6049
6451
|
/**
|
|
6050
6452
|
* @description: 获取merge后的配置
|
|
6051
6453
|
*/
|
|
@@ -6149,30 +6551,282 @@ class TagComputer extends TagCacheController {
|
|
|
6149
6551
|
}
|
|
6150
6552
|
// TODO: 优化点:下面这些函数,调用比较频繁,可以按点位加缓存
|
|
6151
6553
|
filterPointTag() {
|
|
6152
|
-
return this.tags.filter((tag) => tag.pointType ===
|
|
6554
|
+
return this.tags.filter((tag) => tag.pointType === PointType.PointTag);
|
|
6153
6555
|
}
|
|
6154
6556
|
filterTag2D() {
|
|
6155
|
-
return this.tags.filter((tag) => tag.dimensionType ===
|
|
6557
|
+
return this.tags.filter((tag) => tag.dimensionType === DimensionType.Two);
|
|
6156
6558
|
}
|
|
6157
6559
|
filter3DPointTag() {
|
|
6158
|
-
return this.tags.filter((tag) => tag.dimensionType ===
|
|
6560
|
+
return this.tags.filter((tag) => tag.dimensionType === DimensionType.Three && tag.pointType === PointType.PointTag);
|
|
6159
6561
|
}
|
|
6160
6562
|
filter3DTag() {
|
|
6161
|
-
return this.tags.filter((tag) => tag.dimensionType ===
|
|
6563
|
+
return this.tags.filter((tag) => tag.dimensionType === DimensionType.Three);
|
|
6162
6564
|
}
|
|
6163
6565
|
filterPlaneTag() {
|
|
6164
|
-
return this.tags.filter((tag) => tag.dimensionType ===
|
|
6566
|
+
return this.tags.filter((tag) => tag.dimensionType === DimensionType.Three && tag.pointType === PointType.PlaneTag);
|
|
6165
6567
|
}
|
|
6166
6568
|
}
|
|
6167
6569
|
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6570
|
+
function createSymbol(description) {
|
|
6571
|
+
// @ts-ignore
|
|
6572
|
+
return typeof Symbol === 'undefined' ? `$Symbol<${description}>$` : Symbol(description);
|
|
6573
|
+
}
|
|
6574
|
+
const EVENT_SYMBOL = createSymbol('$$EVENT$$');
|
|
6575
|
+
function __generateEventIfNotExisted(instance) {
|
|
6576
|
+
if (!instance[EVENT_SYMBOL]) {
|
|
6577
|
+
instance[EVENT_SYMBOL] = {};
|
|
6578
|
+
}
|
|
6579
|
+
return instance[EVENT_SYMBOL];
|
|
6580
|
+
}
|
|
6581
|
+
function __removeEventIfNotExisted(instance) {
|
|
6582
|
+
if (!instance[EVENT_SYMBOL]) {
|
|
6583
|
+
delete instance[EVENT_SYMBOL];
|
|
6584
|
+
}
|
|
6585
|
+
}
|
|
6586
|
+
/**
|
|
6587
|
+
* 监听者模式
|
|
6588
|
+
* @template T - 预设的监听回调类型
|
|
6589
|
+
* @example
|
|
6590
|
+
* ```
|
|
6591
|
+
* new Subscribe<{
|
|
6592
|
+
* "foo": [arg1: number, arg2: string],
|
|
6593
|
+
* "bar": [arg: boolean],
|
|
6594
|
+
* }>()
|
|
6595
|
+
* ```
|
|
6596
|
+
*/
|
|
6597
|
+
class Subscribe {
|
|
6598
|
+
/**
|
|
6599
|
+
* 判断是否注册了事件
|
|
6600
|
+
* @param name - 事件类型
|
|
6601
|
+
*/
|
|
6602
|
+
hasListener(name) {
|
|
6603
|
+
const events = __generateEventIfNotExisted(this);
|
|
6604
|
+
return Boolean((events === null || events === void 0 ? void 0 : events[name]) && events[name].length > 0);
|
|
6605
|
+
}
|
|
6606
|
+
/**
|
|
6607
|
+
* 注册事件
|
|
6608
|
+
* @param name - 事件类型
|
|
6609
|
+
* @param callback - 事件回调函数
|
|
6610
|
+
* @param once - 是否只执行一次
|
|
6611
|
+
* @returns 解除事件
|
|
6612
|
+
* @template K - 预设的监听事件名称
|
|
6613
|
+
* @template C - 回调函数函数上下文
|
|
6614
|
+
*/
|
|
6615
|
+
on(name, callback, once) {
|
|
6616
|
+
const events = __generateEventIfNotExisted(this);
|
|
6617
|
+
if (!events[name])
|
|
6618
|
+
events[name] = [];
|
|
6619
|
+
events[name].push([callback, once || false]);
|
|
6620
|
+
return () => this.off(name, callback);
|
|
6621
|
+
}
|
|
6622
|
+
/**
|
|
6623
|
+
* 注册事件(是否只执行一次)
|
|
6624
|
+
* @param name - 事件类型
|
|
6625
|
+
* @param callback - 事件回调函数
|
|
6626
|
+
* @returns 解除事件
|
|
6627
|
+
* @template K - 预设的监听事件名称
|
|
6628
|
+
* @template C - 回调函数函数上下文
|
|
6629
|
+
*/
|
|
6630
|
+
once(name, callback) {
|
|
6631
|
+
return this.on(name, callback, true);
|
|
6632
|
+
}
|
|
6633
|
+
/**
|
|
6634
|
+
* 解除事件
|
|
6635
|
+
*
|
|
6636
|
+
* 如果 name 不传的话解除对应所有事件
|
|
6637
|
+
* 如果 name, callback 不传的话解除所有name的所有事件
|
|
6638
|
+
* @param name - 事件类型
|
|
6639
|
+
* @param callback - 事件回调函数
|
|
6640
|
+
* @template K - 预设的监听事件名称
|
|
6641
|
+
*/
|
|
6642
|
+
off(name, callback) {
|
|
6643
|
+
if (name === undefined) {
|
|
6644
|
+
__removeEventIfNotExisted(this);
|
|
6645
|
+
return;
|
|
6646
|
+
}
|
|
6647
|
+
const events = __generateEventIfNotExisted(this);
|
|
6648
|
+
if (!events[name])
|
|
6649
|
+
events[name] = [];
|
|
6650
|
+
if (callback === undefined) {
|
|
6651
|
+
events[name].length = 0;
|
|
6652
|
+
return;
|
|
6653
|
+
}
|
|
6654
|
+
let index = 0;
|
|
6655
|
+
for (; index < events[name].length; index++) {
|
|
6656
|
+
if (events[name][index][0] === callback)
|
|
6657
|
+
break;
|
|
6658
|
+
}
|
|
6659
|
+
if (index < events[name].length) {
|
|
6660
|
+
events[name].splice(index, 1);
|
|
6661
|
+
}
|
|
6662
|
+
}
|
|
6663
|
+
/**
|
|
6664
|
+
* 触发事件
|
|
6665
|
+
* @param name - 事件类型
|
|
6666
|
+
* @param data - 触发事件的数据
|
|
6667
|
+
* @returns canceled 是否被触发取消
|
|
6668
|
+
* @template K - 预设的监听事件名称
|
|
6669
|
+
*/
|
|
6670
|
+
emit(name, ...data) {
|
|
6671
|
+
let canceled = false;
|
|
6672
|
+
const events = __generateEventIfNotExisted(this);
|
|
6673
|
+
const event = events[name] || [];
|
|
6674
|
+
for (let one of event.slice()) {
|
|
6675
|
+
const [callback, once = false] = one;
|
|
6676
|
+
const result = callback(...data);
|
|
6677
|
+
if (once)
|
|
6678
|
+
this.off(name, callback);
|
|
6679
|
+
if (result === false)
|
|
6680
|
+
canceled = true;
|
|
6681
|
+
}
|
|
6682
|
+
return canceled;
|
|
6683
|
+
}
|
|
6684
|
+
}
|
|
6685
|
+
|
|
6686
|
+
const VERSION$3 = '1.0.0';
|
|
6687
|
+
const NAME = `CSS3DObjectPlus@${VERSION$3}`;
|
|
6171
6688
|
const MinRatio = 0.00216;
|
|
6172
|
-
const
|
|
6173
|
-
class
|
|
6174
|
-
constructor(
|
|
6175
|
-
|
|
6689
|
+
const DefaultRatio = 0.003;
|
|
6690
|
+
class CSS3DObjectPlus extends CSS3DRenderer.CSS3DObject {
|
|
6691
|
+
constructor(container, cornerPoints, ratio = DefaultRatio, dpr = 1) {
|
|
6692
|
+
const realRatio = Math.max(MinRatio, ratio);
|
|
6693
|
+
const planeWidth = cornerPoints[0].distanceTo(cornerPoints[1]);
|
|
6694
|
+
const planeHeight = cornerPoints[1].distanceTo(cornerPoints[2]);
|
|
6695
|
+
const domWidthPx = evenNumber((planeWidth / ratio) * dpr);
|
|
6696
|
+
const domHeightPx = evenNumber((planeHeight / ratio) * dpr);
|
|
6697
|
+
const centerPosition = centerPoint(cornerPoints[0], cornerPoints[2]);
|
|
6698
|
+
let css3DObjectElement;
|
|
6699
|
+
if (realRatio === ratio) {
|
|
6700
|
+
container.style.width = `${domWidthPx}px`;
|
|
6701
|
+
container.style.height = `${domHeightPx}px`;
|
|
6702
|
+
css3DObjectElement = container;
|
|
6703
|
+
}
|
|
6704
|
+
else {
|
|
6705
|
+
// 兼容ratio小于0.00216的情况
|
|
6706
|
+
const element = document.createElement('div');
|
|
6707
|
+
element.style.width = `${domWidthPx}px`;
|
|
6708
|
+
element.style.height = `${domHeightPx}px`;
|
|
6709
|
+
element.style.pointerEvents = 'none';
|
|
6710
|
+
const scale = ratio / realRatio;
|
|
6711
|
+
container.style.position = 'absolute';
|
|
6712
|
+
container.style.left = '0';
|
|
6713
|
+
container.style.top = '0';
|
|
6714
|
+
container.style.width = `${scale * domWidthPx}px`;
|
|
6715
|
+
container.style.height = `${scale * domHeightPx}px`;
|
|
6716
|
+
element.appendChild(container);
|
|
6717
|
+
css3DObjectElement = element;
|
|
6718
|
+
}
|
|
6719
|
+
super(css3DObjectElement);
|
|
6720
|
+
Object.defineProperty(this, "version", {
|
|
6721
|
+
enumerable: true,
|
|
6722
|
+
configurable: true,
|
|
6723
|
+
writable: true,
|
|
6724
|
+
value: VERSION$3
|
|
6725
|
+
});
|
|
6726
|
+
Object.defineProperty(this, "width", {
|
|
6727
|
+
enumerable: true,
|
|
6728
|
+
configurable: true,
|
|
6729
|
+
writable: true,
|
|
6730
|
+
value: void 0
|
|
6731
|
+
});
|
|
6732
|
+
Object.defineProperty(this, "height", {
|
|
6733
|
+
enumerable: true,
|
|
6734
|
+
configurable: true,
|
|
6735
|
+
writable: true,
|
|
6736
|
+
value: void 0
|
|
6737
|
+
});
|
|
6738
|
+
Object.defineProperty(this, "domWidthPx", {
|
|
6739
|
+
enumerable: true,
|
|
6740
|
+
configurable: true,
|
|
6741
|
+
writable: true,
|
|
6742
|
+
value: void 0
|
|
6743
|
+
});
|
|
6744
|
+
Object.defineProperty(this, "domHeightPx", {
|
|
6745
|
+
enumerable: true,
|
|
6746
|
+
configurable: true,
|
|
6747
|
+
writable: true,
|
|
6748
|
+
value: void 0
|
|
6749
|
+
});
|
|
6750
|
+
Object.defineProperty(this, "cornerPoints", {
|
|
6751
|
+
enumerable: true,
|
|
6752
|
+
configurable: true,
|
|
6753
|
+
writable: true,
|
|
6754
|
+
value: void 0
|
|
6755
|
+
});
|
|
6756
|
+
Object.defineProperty(this, "ratio", {
|
|
6757
|
+
enumerable: true,
|
|
6758
|
+
configurable: true,
|
|
6759
|
+
writable: true,
|
|
6760
|
+
value: void 0
|
|
6761
|
+
});
|
|
6762
|
+
Object.defineProperty(this, "container", {
|
|
6763
|
+
enumerable: true,
|
|
6764
|
+
configurable: true,
|
|
6765
|
+
writable: true,
|
|
6766
|
+
value: void 0
|
|
6767
|
+
});
|
|
6768
|
+
Object.defineProperty(this, "centerPosition", {
|
|
6769
|
+
enumerable: true,
|
|
6770
|
+
configurable: true,
|
|
6771
|
+
writable: true,
|
|
6772
|
+
value: void 0
|
|
6773
|
+
});
|
|
6774
|
+
this.scale.set(realRatio, realRatio, realRatio);
|
|
6775
|
+
// set public property
|
|
6776
|
+
this.cornerPoints = cornerPoints;
|
|
6777
|
+
this.ratio = ratio;
|
|
6778
|
+
this.container = container;
|
|
6779
|
+
if (realRatio === ratio) {
|
|
6780
|
+
this.width = planeWidth;
|
|
6781
|
+
this.height = planeHeight;
|
|
6782
|
+
this.domWidthPx = domWidthPx;
|
|
6783
|
+
this.domHeightPx = domHeightPx;
|
|
6784
|
+
this.centerPosition = centerPosition;
|
|
6785
|
+
}
|
|
6786
|
+
else {
|
|
6787
|
+
const scale = ratio / realRatio;
|
|
6788
|
+
this.width = scale * planeWidth;
|
|
6789
|
+
this.height = scale * planeHeight;
|
|
6790
|
+
this.domWidthPx = scale * domWidthPx;
|
|
6791
|
+
this.domHeightPx = scale * domHeightPx;
|
|
6792
|
+
this.centerPosition = new THREE.Vector3()
|
|
6793
|
+
.subVectors(centerPosition.clone(), cornerPoints[0].clone())
|
|
6794
|
+
.multiplyScalar(scale)
|
|
6795
|
+
.add(cornerPoints[0]);
|
|
6796
|
+
}
|
|
6797
|
+
// end
|
|
6798
|
+
container.classList.add(`${NAME}__container`);
|
|
6799
|
+
// 旋转前
|
|
6800
|
+
const startVector01 = new THREE.Vector3(1, 0, 0); // dom初始01点向量
|
|
6801
|
+
const startVector12 = new THREE.Vector3(0, 1, 0); // dom初始12点向量
|
|
6802
|
+
// 旋转后
|
|
6803
|
+
const endVector01 = new THREE.Vector3().subVectors(cornerPoints[1], cornerPoints[0]); // 点0 -> 点1 的向量
|
|
6804
|
+
const endVector12 = new THREE.Vector3().subVectors(cornerPoints[2], cornerPoints[1]); // 点1 -> 点2 的向量
|
|
6805
|
+
// 使Vector01重合
|
|
6806
|
+
const vector01Quaternion = new THREE__namespace.Quaternion().setFromUnitVectors(startVector01.normalize(), endVector01.normalize());
|
|
6807
|
+
this.applyQuaternion(vector01Quaternion);
|
|
6808
|
+
startVector12.applyQuaternion(vector01Quaternion);
|
|
6809
|
+
// 使Vector12重合
|
|
6810
|
+
const vector12Quaternion = new THREE__namespace.Quaternion().setFromUnitVectors(startVector12.normalize(), endVector12.normalize());
|
|
6811
|
+
this.applyQuaternion(vector12Quaternion);
|
|
6812
|
+
// set position
|
|
6813
|
+
this.position.set(centerPosition.x, centerPosition.y, centerPosition.z);
|
|
6814
|
+
}
|
|
6815
|
+
}
|
|
6816
|
+
|
|
6817
|
+
const VERSION$2 = 'v2.0.0';
|
|
6818
|
+
const PLUGIN_NAME$2 = 'CSS3DRenderer';
|
|
6819
|
+
const PLUGIN = `${PLUGIN_NAME$2}@${VERSION$2}`;
|
|
6820
|
+
const pluginFlag$1 = (name) => `${PLUGIN}--${name}`;
|
|
6821
|
+
const globalStore = {};
|
|
6822
|
+
class CSS3DRender {
|
|
6823
|
+
constructor() {
|
|
6824
|
+
Object.defineProperty(this, "hooks", {
|
|
6825
|
+
enumerable: true,
|
|
6826
|
+
configurable: true,
|
|
6827
|
+
writable: true,
|
|
6828
|
+
value: new Subscribe()
|
|
6829
|
+
});
|
|
6176
6830
|
Object.defineProperty(this, "state", {
|
|
6177
6831
|
enumerable: true,
|
|
6178
6832
|
configurable: true,
|
|
@@ -6180,6 +6834,7 @@ class Controller extends Controller$1 {
|
|
|
6180
6834
|
value: {
|
|
6181
6835
|
enabled: true,
|
|
6182
6836
|
visible: true,
|
|
6837
|
+
disposed: false,
|
|
6183
6838
|
}
|
|
6184
6839
|
});
|
|
6185
6840
|
Object.defineProperty(this, "store", {
|
|
@@ -6187,54 +6842,11 @@ class Controller extends Controller$1 {
|
|
|
6187
6842
|
configurable: true,
|
|
6188
6843
|
writable: true,
|
|
6189
6844
|
value: {
|
|
6190
|
-
disposed: false,
|
|
6191
6845
|
disposers: [],
|
|
6192
6846
|
frontModeCSS3DObjects: {},
|
|
6193
6847
|
behindModeCSS3DObjects: {},
|
|
6194
6848
|
}
|
|
6195
6849
|
});
|
|
6196
|
-
Object.defineProperty(this, "setVisibleById", {
|
|
6197
|
-
enumerable: true,
|
|
6198
|
-
configurable: true,
|
|
6199
|
-
writable: true,
|
|
6200
|
-
value: (id, visible) => {
|
|
6201
|
-
var _a;
|
|
6202
|
-
const data = (_a = this.store.frontModeCSS3DObjects[id]) !== null && _a !== void 0 ? _a : this.store.behindModeCSS3DObjects[id];
|
|
6203
|
-
if (!data)
|
|
6204
|
-
return;
|
|
6205
|
-
data.css3DObject.visible = visible;
|
|
6206
|
-
data.visible = visible;
|
|
6207
|
-
if (data.mode === 'behind')
|
|
6208
|
-
data.opacityMesh.visible = visible;
|
|
6209
|
-
this.five.needsRender = true;
|
|
6210
|
-
}
|
|
6211
|
-
});
|
|
6212
|
-
Object.defineProperty(this, "setEnabledById", {
|
|
6213
|
-
enumerable: true,
|
|
6214
|
-
configurable: true,
|
|
6215
|
-
writable: true,
|
|
6216
|
-
value: (id, enabled) => {
|
|
6217
|
-
var _a, _b, _c;
|
|
6218
|
-
const data = (_a = this.store.frontModeCSS3DObjects[id]) !== null && _a !== void 0 ? _a : this.store.behindModeCSS3DObjects[id];
|
|
6219
|
-
if (!data)
|
|
6220
|
-
return;
|
|
6221
|
-
const css3DScene = data.mode === 'front' ? (_b = globalState.frontModeStore) === null || _b === void 0 ? void 0 : _b.css3DScene : (_c = globalState.behindModeStore) === null || _c === void 0 ? void 0 : _c.css3DScene;
|
|
6222
|
-
if (!css3DScene)
|
|
6223
|
-
return;
|
|
6224
|
-
if (enabled) {
|
|
6225
|
-
css3DScene.add(data.css3DObject);
|
|
6226
|
-
if (data.mode === 'behind')
|
|
6227
|
-
this.five.scene.add(data.opacityMesh);
|
|
6228
|
-
}
|
|
6229
|
-
else {
|
|
6230
|
-
css3DScene.remove(data.css3DObject);
|
|
6231
|
-
if (data.mode === 'behind')
|
|
6232
|
-
this.five.scene.remove(data.opacityMesh);
|
|
6233
|
-
}
|
|
6234
|
-
data.enabled = enabled;
|
|
6235
|
-
this.five.needsRender = true;
|
|
6236
|
-
}
|
|
6237
|
-
});
|
|
6238
6850
|
/**
|
|
6239
6851
|
* @description 根据传入的四个点位创建一个 3d dom容器,可以通过ReactDom.render()的方式将react组件放到容器中
|
|
6240
6852
|
* @param { Vector3Position[] } points 矩形四个点坐标
|
|
@@ -6243,15 +6855,14 @@ class Controller extends Controller$1 {
|
|
|
6243
6855
|
* | key | type | defaultValue | comment |
|
|
6244
6856
|
* | - | - | - | - |
|
|
6245
6857
|
* | `ratio` | *`number`* | `0.00216` | 1px对应多少米,默认为 0.00216,即1px对应2.16mm |
|
|
6246
|
-
* | ~~`dpr`~~ | ~~*`number`*~~ | ~~`undefined`~~ | ~~**已改名**,请使用~~ `devicePixelRatio` |
|
|
6247
6858
|
* | `devicePixelRatio` | *`number`* | `1` | 设备的物理像素分辨率与CSS像素分辨率的比值 |
|
|
6248
6859
|
* | `container` | *`HTMLElement`* | `undefined` | 自定义 return 中的 `container`
|
|
6249
6860
|
* | `pointerEvents` | *`'none'\|'auto'`* | `'none'` | container 的 css属性:`pointer-events` 的值 |
|
|
6250
6861
|
* | `autoRender` | *`boolean`* | `true` | 是否自动渲染,通常为true |
|
|
6251
6862
|
* | `mode` | *`'front'\|'behind'`* | `front` | 两种模式:|
|
|
6252
|
-
* | | | | `front` 模式:DOM 处于 five Canvas
|
|
6863
|
+
* | | | | `front` 模式:DOM 处于 five Canvas 上方,所以无法模拟遮挡效果,需要手动检测是否可见去设置显隐 |
|
|
6253
6864
|
* | | | | `behind` 模式:DOM 处于 five Canvas 下方,可以模拟真实的遮挡效果,但是 DOM 必须是非透明的 |
|
|
6254
|
-
* | `
|
|
6865
|
+
* | `scene` | *`THREE.Scene`* | `undefined` | 如果 mode 为 `behind`,需要传入 |
|
|
6255
6866
|
*
|
|
6256
6867
|
* @return
|
|
6257
6868
|
* ```typescript
|
|
@@ -6270,36 +6881,29 @@ class Controller extends Controller$1 {
|
|
|
6270
6881
|
* } | void
|
|
6271
6882
|
* ```
|
|
6272
6883
|
*/
|
|
6273
|
-
Object.defineProperty(this, "
|
|
6884
|
+
Object.defineProperty(this, "create3DElement", {
|
|
6274
6885
|
enumerable: true,
|
|
6275
6886
|
configurable: true,
|
|
6276
6887
|
writable: true,
|
|
6277
|
-
value: (points, config) => {
|
|
6278
|
-
if (this.
|
|
6888
|
+
value: (camera, points, config) => {
|
|
6889
|
+
if (this.state.disposed)
|
|
6279
6890
|
return this.disposedErrorLog();
|
|
6280
6891
|
// ==== init ====
|
|
6281
6892
|
const mergeConfig = (() => {
|
|
6282
|
-
|
|
6283
|
-
if ((config === null || config === void 0 ? void 0 : config.dpr) !== undefined)
|
|
6284
|
-
console.warn(`${PLUGIN_NAME$1}: please use "config.devicePixelRatio" replace "config.dpr"`);
|
|
6285
|
-
const defaultconfig = {
|
|
6893
|
+
const defaultConfig = {
|
|
6286
6894
|
ratio: 0.00216,
|
|
6287
|
-
devicePixelRatio:
|
|
6895
|
+
devicePixelRatio: 1,
|
|
6288
6896
|
mode: 'front',
|
|
6289
6897
|
autoRender: true,
|
|
6290
6898
|
container: document.createElement('div'),
|
|
6291
6899
|
pointerEvents: 'none',
|
|
6292
6900
|
};
|
|
6293
|
-
return Object.assign(
|
|
6901
|
+
return Object.assign(defaultConfig, config);
|
|
6294
6902
|
})();
|
|
6295
6903
|
const vector3Points = points.map(anyPositionToVector3);
|
|
6296
6904
|
if ((vector3Points === null || vector3Points === void 0 ? void 0 : vector3Points.length) < 4)
|
|
6297
|
-
return console.error(`${
|
|
6298
|
-
const { five, store } = this;
|
|
6905
|
+
return console.error(`${PLUGIN}: requires 4 point but params may have fewer`);
|
|
6299
6906
|
const { ratio, devicePixelRatio: dpr, mode, autoRender, container, pointerEvents } = mergeConfig;
|
|
6300
|
-
const fiveElement = five.getElement();
|
|
6301
|
-
if (!fiveElement)
|
|
6302
|
-
return console.error(`${PLUGIN_NAME$1}: five.getElement() is ${fiveElement}`);
|
|
6303
6907
|
const disposers = [];
|
|
6304
6908
|
// ==== init END ====
|
|
6305
6909
|
// 获取css3DObject, 如果mode为behind的话,也一起获取mesh
|
|
@@ -6311,47 +6915,47 @@ class Controller extends Controller$1 {
|
|
|
6311
6915
|
pointerEvents,
|
|
6312
6916
|
});
|
|
6313
6917
|
container.id = `container--${css3DObject.uuid}`;
|
|
6314
|
-
|
|
6315
|
-
const
|
|
6316
|
-
const behindModeAndBehindModeUnInited = mode === 'behind' && !globalState.behindModeStore;
|
|
6918
|
+
const frontModeAndFrontModeUnInited = mode === 'front' && !globalStore.frontModeStore;
|
|
6919
|
+
const behindModeAndBehindModeUnInited = mode === 'behind' && !globalStore.behindModeStore;
|
|
6317
6920
|
if (behindModeAndBehindModeUnInited) {
|
|
6318
|
-
|
|
6921
|
+
globalStore.behindModeStore = {
|
|
6922
|
+
scene: mergeConfig.scene,
|
|
6923
|
+
css3DScene: new THREE__namespace.Scene(),
|
|
6924
|
+
css3DRenderer: new CSS3DRenderer.CSS3DRenderer(),
|
|
6925
|
+
};
|
|
6319
6926
|
}
|
|
6320
6927
|
if (frontModeAndFrontModeUnInited) {
|
|
6321
|
-
|
|
6928
|
+
globalStore.frontModeStore = { css3DScene: new THREE__namespace.Scene(), css3DRenderer: new CSS3DRenderer.CSS3DRenderer() };
|
|
6322
6929
|
}
|
|
6323
|
-
const modeStore = mode === 'front' ?
|
|
6930
|
+
const modeStore = mode === 'front' ? globalStore.frontModeStore : globalStore.behindModeStore;
|
|
6324
6931
|
const { css3DScene, css3DRenderer } = modeStore;
|
|
6325
6932
|
const render = (() => {
|
|
6326
6933
|
const renderCSS3DObject = () => {
|
|
6327
|
-
var _a;
|
|
6328
|
-
const addCSS3DObject = () => {
|
|
6329
|
-
css3DScene.add(css3DObject);
|
|
6330
|
-
if (mode === 'behind' && opacityMesh) {
|
|
6331
|
-
five.scene.add(opacityMesh);
|
|
6332
|
-
disposers.push(() => opacityMesh && five.scene.remove(opacityMesh));
|
|
6333
|
-
}
|
|
6334
|
-
};
|
|
6335
6934
|
if (mode === 'front') {
|
|
6336
|
-
store.frontModeCSS3DObjects[css3DObject.uuid] = {
|
|
6337
|
-
|
|
6935
|
+
this.store.frontModeCSS3DObjects[css3DObject.uuid] = {
|
|
6936
|
+
visible: true,
|
|
6937
|
+
enabled: true,
|
|
6938
|
+
css3DObject,
|
|
6939
|
+
mode: 'front',
|
|
6940
|
+
};
|
|
6338
6941
|
}
|
|
6339
6942
|
else {
|
|
6340
|
-
store.behindModeCSS3DObjects[css3DObject.uuid] = {
|
|
6943
|
+
this.store.behindModeCSS3DObjects[css3DObject.uuid] = {
|
|
6341
6944
|
visible: true,
|
|
6342
6945
|
enabled: true,
|
|
6343
6946
|
css3DObject,
|
|
6344
6947
|
opacityMesh: opacityMesh,
|
|
6345
6948
|
mode: 'behind',
|
|
6949
|
+
scene: mergeConfig.scene,
|
|
6346
6950
|
};
|
|
6347
|
-
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
|
|
6951
|
+
}
|
|
6952
|
+
css3DScene.add(css3DObject);
|
|
6953
|
+
if (mode === 'behind' && opacityMesh) {
|
|
6954
|
+
mergeConfig.scene.add(opacityMesh);
|
|
6955
|
+
disposers.push(() => opacityMesh && mergeConfig.scene.remove(opacityMesh));
|
|
6351
6956
|
}
|
|
6352
6957
|
};
|
|
6353
6958
|
if (frontModeAndFrontModeUnInited || behindModeAndBehindModeUnInited) {
|
|
6354
|
-
resizeObserver = this.createResizeObserver(css3DRenderer.setSize);
|
|
6355
6959
|
css3DRenderer.domElement.style.position = 'absolute';
|
|
6356
6960
|
css3DRenderer.domElement.style.top = '0';
|
|
6357
6961
|
css3DRenderer.domElement.style.userSelect = 'none';
|
|
@@ -6360,24 +6964,21 @@ class Controller extends Controller$1 {
|
|
|
6360
6964
|
const renderEveryFrame = () => {
|
|
6361
6965
|
const requestAnimationFrameId = requestAnimationFrame(renderEveryFrame);
|
|
6362
6966
|
modeStore.requestAnimationFrameId = requestAnimationFrameId;
|
|
6363
|
-
css3DRenderer.render(css3DScene,
|
|
6967
|
+
css3DRenderer.render(css3DScene, camera);
|
|
6364
6968
|
};
|
|
6365
6969
|
return () => {
|
|
6366
|
-
var _a;
|
|
6367
6970
|
renderCSS3DObject();
|
|
6368
|
-
(_a = resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.observe) === null || _a === void 0 ? void 0 : _a.call(resizeObserver);
|
|
6369
6971
|
renderEveryFrame();
|
|
6370
6972
|
};
|
|
6371
6973
|
}
|
|
6372
6974
|
return () => renderCSS3DObject();
|
|
6373
6975
|
})();
|
|
6374
|
-
|
|
6375
|
-
|
|
6376
|
-
|
|
6377
|
-
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
wrapper.appendChild(css3DRenderer.domElement);
|
|
6976
|
+
const wrapper = mode === 'front' ? globalStore.frontModeContainer : globalStore.behindModeContainer;
|
|
6977
|
+
if (wrapper) {
|
|
6978
|
+
this.appendToElement(wrapper, mode);
|
|
6979
|
+
const store = mode === 'front' ? globalStore.frontModeStore : globalStore.behindModeStore;
|
|
6980
|
+
if (store)
|
|
6981
|
+
store.appendedToPage = true;
|
|
6381
6982
|
}
|
|
6382
6983
|
const setVisible = (visible) => this.setVisibleById(css3DObject.uuid, visible);
|
|
6383
6984
|
const setEnabled = (enabled) => this.setEnabledById(css3DObject.uuid, enabled);
|
|
@@ -6386,9 +6987,8 @@ class Controller extends Controller$1 {
|
|
|
6386
6987
|
const enable = () => setEnabled(true);
|
|
6387
6988
|
const disable = () => setEnabled(false);
|
|
6388
6989
|
const dispose = () => {
|
|
6389
|
-
|
|
6390
|
-
delete store.
|
|
6391
|
-
delete store.behindModeCSS3DObjects[css3DObject.uuid];
|
|
6990
|
+
delete this.store.frontModeCSS3DObjects[css3DObject.uuid];
|
|
6991
|
+
delete this.store.behindModeCSS3DObjects[css3DObject.uuid];
|
|
6392
6992
|
disposers.forEach((d) => d === null || d === void 0 ? void 0 : d());
|
|
6393
6993
|
css3DScene.remove(css3DObject);
|
|
6394
6994
|
// 如果全没了,就清除父容器
|
|
@@ -6398,16 +6998,13 @@ class Controller extends Controller$1 {
|
|
|
6398
6998
|
}
|
|
6399
6999
|
css3DRenderer.domElement.remove();
|
|
6400
7000
|
if (mode === 'front')
|
|
6401
|
-
|
|
7001
|
+
globalStore.frontModeStore = undefined;
|
|
6402
7002
|
if (mode === 'behind')
|
|
6403
|
-
|
|
6404
|
-
if (!globalState.behindModeStore && !globalState.frontModeStore) {
|
|
6405
|
-
(_a = resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.unobserve) === null || _a === void 0 ? void 0 : _a.call(resizeObserver);
|
|
6406
|
-
}
|
|
7003
|
+
globalStore.behindModeStore = undefined;
|
|
6407
7004
|
}
|
|
6408
7005
|
return true;
|
|
6409
7006
|
};
|
|
6410
|
-
store.disposers.push(dispose);
|
|
7007
|
+
this.store.disposers.push(dispose);
|
|
6411
7008
|
if (autoRender)
|
|
6412
7009
|
render();
|
|
6413
7010
|
return {
|
|
@@ -6422,89 +7019,60 @@ class Controller extends Controller$1 {
|
|
|
6422
7019
|
disable,
|
|
6423
7020
|
enable,
|
|
6424
7021
|
setEnabled,
|
|
7022
|
+
appendToElement: (container) => this.appendToElement(container, mode),
|
|
6425
7023
|
};
|
|
6426
7024
|
}
|
|
6427
7025
|
});
|
|
6428
|
-
Object.defineProperty(this, "
|
|
7026
|
+
Object.defineProperty(this, "setVisibleById", {
|
|
6429
7027
|
enumerable: true,
|
|
6430
7028
|
configurable: true,
|
|
6431
7029
|
writable: true,
|
|
6432
|
-
value: (
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
const width = evenNumber(fiveElement.clientWidth, { smaller: true });
|
|
6442
|
-
const height = evenNumber(fiveElement.clientHeight, { smaller: true });
|
|
6443
|
-
resizeHandler(width, height);
|
|
6444
|
-
};
|
|
6445
|
-
const observer = new ResizeObserver(resizeObserverHandler);
|
|
6446
|
-
if (fireImmediately)
|
|
6447
|
-
resizeObserverHandler();
|
|
6448
|
-
return {
|
|
6449
|
-
observe: () => observer.observe(fiveElement),
|
|
6450
|
-
unobserve: () => observer.unobserve(fiveElement),
|
|
6451
|
-
};
|
|
7030
|
+
value: (id, visible) => {
|
|
7031
|
+
var _a;
|
|
7032
|
+
const data = (_a = this.store.frontModeCSS3DObjects[id]) !== null && _a !== void 0 ? _a : this.store.behindModeCSS3DObjects[id];
|
|
7033
|
+
if (!data)
|
|
7034
|
+
return;
|
|
7035
|
+
data.css3DObject.visible = visible;
|
|
7036
|
+
data.visible = visible;
|
|
7037
|
+
if (data.mode === 'behind')
|
|
7038
|
+
data.opacityMesh.visible = visible;
|
|
6452
7039
|
}
|
|
6453
7040
|
});
|
|
6454
|
-
Object.defineProperty(this, "
|
|
7041
|
+
Object.defineProperty(this, "setEnabledById", {
|
|
6455
7042
|
enumerable: true,
|
|
6456
7043
|
configurable: true,
|
|
6457
7044
|
writable: true,
|
|
6458
|
-
value: (
|
|
6459
|
-
|
|
6460
|
-
const
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
const
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
if (
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
|
|
6470
|
-
container.style.height = `${domHeightPx}px`;
|
|
7045
|
+
value: (id, enabled) => {
|
|
7046
|
+
var _a, _b, _c;
|
|
7047
|
+
const data = (_a = this.store.frontModeCSS3DObjects[id]) !== null && _a !== void 0 ? _a : this.store.behindModeCSS3DObjects[id];
|
|
7048
|
+
if (!data)
|
|
7049
|
+
return;
|
|
7050
|
+
const css3DScene = data.mode === 'front' ? (_b = globalStore.frontModeStore) === null || _b === void 0 ? void 0 : _b.css3DScene : (_c = globalStore.behindModeStore) === null || _c === void 0 ? void 0 : _c.css3DScene;
|
|
7051
|
+
if (!css3DScene)
|
|
7052
|
+
return;
|
|
7053
|
+
if (enabled) {
|
|
7054
|
+
css3DScene.add(data.css3DObject);
|
|
7055
|
+
if (data.mode === 'behind')
|
|
7056
|
+
data.scene.add(data.opacityMesh);
|
|
6471
7057
|
}
|
|
6472
7058
|
else {
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
css3DObject.scale.set(ratio, ratio, ratio);
|
|
6477
|
-
element.style.width = `${domWidthPx}px`;
|
|
6478
|
-
element.style.height = `${domHeightPx}px`;
|
|
6479
|
-
element.style.pointerEvents = 'none';
|
|
6480
|
-
const scale = wantRatio / ratio;
|
|
6481
|
-
container.style.position = 'absolute';
|
|
6482
|
-
container.style.left = '0';
|
|
6483
|
-
container.style.top = '0';
|
|
6484
|
-
container.style.width = `${scale * domWidthPx}px`;
|
|
6485
|
-
container.style.height = `${scale * domHeightPx}px`;
|
|
6486
|
-
element.appendChild(container);
|
|
7059
|
+
css3DScene.remove(data.css3DObject);
|
|
7060
|
+
if (data.mode === 'behind')
|
|
7061
|
+
data.scene.remove(data.opacityMesh);
|
|
6487
7062
|
}
|
|
7063
|
+
data.enabled = enabled;
|
|
7064
|
+
}
|
|
7065
|
+
});
|
|
7066
|
+
Object.defineProperty(this, "createObject", {
|
|
7067
|
+
enumerable: true,
|
|
7068
|
+
configurable: true,
|
|
7069
|
+
writable: true,
|
|
7070
|
+
value: (points, config) => {
|
|
7071
|
+
const { ratio, dpr, container, mode, pointerEvents } = config;
|
|
7072
|
+
const css3DObject = new CSS3DObjectPlus(container, points, ratio, dpr);
|
|
6488
7073
|
container.style.pointerEvents = pointerEvents;
|
|
6489
|
-
|
|
6490
|
-
const
|
|
6491
|
-
const vector12 = points[2].clone().sub(points[1]); // 点1 -> 点2 的向量
|
|
6492
|
-
// 旋转平面
|
|
6493
|
-
const rotateXAngle = new THREE.Vector3(0, 1, 0).angleTo(new THREE.Vector3(0, vector12.y, vector12.z));
|
|
6494
|
-
const rotateYAngle = new THREE.Vector3(1, 0, 0).angleTo(new THREE.Vector3(vector01.x, 0, vector01.z));
|
|
6495
|
-
const rotateZAngle = vector01.angleTo(new THREE.Vector3(vector01.x, 0, vector01.z));
|
|
6496
|
-
/**
|
|
6497
|
-
* [0,1,0] => [0,0,1] 为rotate WorldX正方向
|
|
6498
|
-
* [0,0,1] => [0,1,0] 为rotate WorldY正方向
|
|
6499
|
-
* [0,1,1] => [-1,0,0] 为rotate WorldZ正方向
|
|
6500
|
-
*/
|
|
6501
|
-
const rotateX = (vector12.z > 0 ? -1 : 1) * rotateXAngle;
|
|
6502
|
-
const rotateY = (vector01.z < 0 ? 1 : -1) * rotateYAngle;
|
|
6503
|
-
const rotateZ = ((vector01.x > 0 && vector01.y < 0) || (vector01.x < 0 && vector01.y > 0) ? -1 : 1) * rotateZAngle;
|
|
6504
|
-
css3DObject.rotateOnWorldAxis(new THREE.Vector3(1, 0, 0), rotateX); // x
|
|
6505
|
-
css3DObject.rotateOnWorldAxis(new THREE.Vector3(0, 1, 0), rotateY); // y
|
|
6506
|
-
css3DObject.rotateOnWorldAxis(new THREE.Vector3(0, 0, 1), rotateZ); // z
|
|
6507
|
-
css3DObject.position.set(centerPosition.x, centerPosition.y, centerPosition.z);
|
|
7074
|
+
container.classList.add(`${PLUGIN_NAME$2}__container`);
|
|
7075
|
+
const { domWidthPx, domHeightPx } = css3DObject;
|
|
6508
7076
|
// 生成透明Mesh
|
|
6509
7077
|
const opacityMesh = (() => {
|
|
6510
7078
|
if (mode === 'behind') {
|
|
@@ -6525,17 +7093,45 @@ class Controller extends Controller$1 {
|
|
|
6525
7093
|
return { css3DObject, opacityMesh };
|
|
6526
7094
|
}
|
|
6527
7095
|
});
|
|
7096
|
+
Object.defineProperty(this, "createResizeObserver", {
|
|
7097
|
+
enumerable: true,
|
|
7098
|
+
configurable: true,
|
|
7099
|
+
writable: true,
|
|
7100
|
+
value: (element, resizeHandler, fireImmediately = true) => {
|
|
7101
|
+
if (!element || !ResizeObserver)
|
|
7102
|
+
return { observe: () => { }, unobserve: () => { } };
|
|
7103
|
+
const resizeObserverHandler = () => {
|
|
7104
|
+
/**
|
|
7105
|
+
* 这里evenNumber策略是遇到奇数会加1,在某些浏览器中会触发滚动条显示,导致fiveElement变小,fiveElement变小又触发了这里的resize,宽高变小,滚动条消失,然后又触发resize。。。无限循环
|
|
7106
|
+
* 所以为了规避上面这种情况,evenNumber设置了一个参数,遇到奇数可选择减一
|
|
7107
|
+
*/
|
|
7108
|
+
const width = evenNumber(element.clientWidth, { smaller: true });
|
|
7109
|
+
const height = evenNumber(element.clientHeight, { smaller: true });
|
|
7110
|
+
resizeHandler(width, height);
|
|
7111
|
+
};
|
|
7112
|
+
const observer = new ResizeObserver(resizeObserverHandler);
|
|
7113
|
+
if (fireImmediately)
|
|
7114
|
+
resizeObserverHandler();
|
|
7115
|
+
return {
|
|
7116
|
+
observe: () => observer.observe(element),
|
|
7117
|
+
unobserve: () => observer.unobserve(element),
|
|
7118
|
+
};
|
|
7119
|
+
}
|
|
7120
|
+
});
|
|
6528
7121
|
Object.defineProperty(this, "disposedErrorLog", {
|
|
6529
7122
|
enumerable: true,
|
|
6530
7123
|
configurable: true,
|
|
6531
7124
|
writable: true,
|
|
6532
7125
|
value: () => {
|
|
6533
|
-
console.error(`${
|
|
7126
|
+
console.error(`${PLUGIN} is disposed`);
|
|
6534
7127
|
}
|
|
6535
7128
|
});
|
|
6536
7129
|
}
|
|
7130
|
+
getCurrentState() {
|
|
7131
|
+
return this.state;
|
|
7132
|
+
}
|
|
6537
7133
|
setState(state, options = { userAction: true }) {
|
|
6538
|
-
if (this.
|
|
7134
|
+
if (this.state.disposed)
|
|
6539
7135
|
return this.disposedErrorLog();
|
|
6540
7136
|
const prevState = Object.assign({}, this.state);
|
|
6541
7137
|
this.state = Object.assign(this.state, state);
|
|
@@ -6547,40 +7143,63 @@ class Controller extends Controller$1 {
|
|
|
6547
7143
|
}
|
|
6548
7144
|
this.hooks.emit('stateChange', { state: this.state, prevState, userAction: options.userAction });
|
|
6549
7145
|
}
|
|
6550
|
-
/** @deprecated disposeAll() renamed as dispose() */
|
|
6551
|
-
disposeAll() {
|
|
6552
|
-
return this.dispose();
|
|
6553
|
-
}
|
|
6554
7146
|
dispose() {
|
|
6555
7147
|
this.store.disposers.forEach((d) => d === null || d === void 0 ? void 0 : d());
|
|
6556
7148
|
this.store.disposers = [];
|
|
6557
7149
|
this.hooks.emit('dispose');
|
|
6558
|
-
this.
|
|
7150
|
+
this.state.disposed = true;
|
|
6559
7151
|
}
|
|
6560
7152
|
async show({ userAction } = { userAction: true }) {
|
|
6561
|
-
if (this.
|
|
7153
|
+
if (this.state.disposed)
|
|
6562
7154
|
return this.disposedErrorLog();
|
|
6563
7155
|
this.setState({ visible: true }, { userAction });
|
|
6564
7156
|
this.hooks.emit('show', { userAction });
|
|
6565
7157
|
}
|
|
6566
7158
|
async hide({ userAction } = { userAction: true }) {
|
|
6567
|
-
if (this.
|
|
7159
|
+
if (this.state.disposed)
|
|
6568
7160
|
return this.disposedErrorLog();
|
|
6569
7161
|
this.setState({ visible: false }, { userAction });
|
|
6570
7162
|
this.hooks.emit('hide', { userAction });
|
|
6571
7163
|
}
|
|
6572
7164
|
enable({ userAction } = { userAction: true }) {
|
|
6573
|
-
if (this.
|
|
7165
|
+
if (this.state.disposed)
|
|
6574
7166
|
return this.disposedErrorLog();
|
|
6575
7167
|
this.setState({ enabled: true }, { userAction });
|
|
6576
7168
|
this.hooks.emit('enable', { userAction });
|
|
6577
7169
|
}
|
|
6578
7170
|
disable({ userAction } = { userAction: true }) {
|
|
6579
|
-
if (this.
|
|
7171
|
+
if (this.state.disposed)
|
|
6580
7172
|
return this.disposedErrorLog();
|
|
6581
7173
|
this.setState({ enabled: false }, { userAction });
|
|
6582
7174
|
this.hooks.emit('disable', { userAction });
|
|
6583
7175
|
}
|
|
7176
|
+
appendToElement(container, mode) {
|
|
7177
|
+
if (!container)
|
|
7178
|
+
throw new Error(`${PLUGIN} Cannot append to container: container is ${container}`);
|
|
7179
|
+
const store = mode === 'front' ? globalStore.frontModeStore : globalStore.behindModeStore;
|
|
7180
|
+
if (!store) {
|
|
7181
|
+
if (mode === 'front')
|
|
7182
|
+
globalStore.frontModeContainer = container;
|
|
7183
|
+
if (mode === 'behind')
|
|
7184
|
+
globalStore.behindModeContainer = container;
|
|
7185
|
+
return;
|
|
7186
|
+
}
|
|
7187
|
+
if (store.appendedToPage)
|
|
7188
|
+
return;
|
|
7189
|
+
container.appendChild(store.css3DRenderer.domElement);
|
|
7190
|
+
if (!globalStore.resizeObserver) {
|
|
7191
|
+
const reSize = (width, height) => {
|
|
7192
|
+
var _a, _b;
|
|
7193
|
+
(_a = globalStore.frontModeStore) === null || _a === void 0 ? void 0 : _a.css3DRenderer.setSize(width, height);
|
|
7194
|
+
(_b = globalStore.behindModeStore) === null || _b === void 0 ? void 0 : _b.css3DRenderer.setSize(width, height);
|
|
7195
|
+
};
|
|
7196
|
+
const { observe, unobserve } = this.createResizeObserver(container, reSize, true);
|
|
7197
|
+
globalStore.resizeObserver = { observe, unobserve };
|
|
7198
|
+
observe();
|
|
7199
|
+
this.store.disposers.push(unobserve);
|
|
7200
|
+
}
|
|
7201
|
+
store.appendedToPage = true;
|
|
7202
|
+
}
|
|
6584
7203
|
async handleShow() {
|
|
6585
7204
|
Object.values(this.store.frontModeCSS3DObjects).forEach((value) => {
|
|
6586
7205
|
value.css3DObject.visible = value.visible;
|
|
@@ -6589,7 +7208,6 @@ class Controller extends Controller$1 {
|
|
|
6589
7208
|
value.css3DObject.visible = value.visible;
|
|
6590
7209
|
value.opacityMesh.visible = value.visible;
|
|
6591
7210
|
});
|
|
6592
|
-
this.five.needsRender = true;
|
|
6593
7211
|
}
|
|
6594
7212
|
async handleHide() {
|
|
6595
7213
|
Object.values(this.store.frontModeCSS3DObjects).forEach((value) => {
|
|
@@ -6599,77 +7217,148 @@ class Controller extends Controller$1 {
|
|
|
6599
7217
|
value.css3DObject.visible = false;
|
|
6600
7218
|
value.opacityMesh.visible = false;
|
|
6601
7219
|
});
|
|
6602
|
-
this.five.needsRender = true;
|
|
6603
7220
|
}
|
|
6604
7221
|
handleEnable() {
|
|
6605
7222
|
Object.values(this.store.frontModeCSS3DObjects).forEach((value) => {
|
|
6606
7223
|
var _a;
|
|
6607
7224
|
if (!value.enabled)
|
|
6608
7225
|
return;
|
|
6609
|
-
(_a =
|
|
7226
|
+
(_a = globalStore.frontModeStore) === null || _a === void 0 ? void 0 : _a.css3DScene.add(value.css3DObject);
|
|
6610
7227
|
});
|
|
6611
7228
|
Object.values(this.store.behindModeCSS3DObjects).forEach((value) => {
|
|
6612
|
-
var _a;
|
|
7229
|
+
var _a, _b;
|
|
6613
7230
|
if (!value.enabled)
|
|
6614
7231
|
return;
|
|
6615
|
-
(_a =
|
|
6616
|
-
|
|
7232
|
+
(_a = globalStore.behindModeStore) === null || _a === void 0 ? void 0 : _a.css3DScene.add(value.css3DObject);
|
|
7233
|
+
(_b = globalStore.behindModeStore) === null || _b === void 0 ? void 0 : _b.scene.add(value.opacityMesh);
|
|
6617
7234
|
});
|
|
6618
|
-
this.five.needsRender = true;
|
|
6619
7235
|
}
|
|
6620
7236
|
handleDisable() {
|
|
6621
7237
|
Object.values(this.store.frontModeCSS3DObjects).forEach((value) => {
|
|
6622
7238
|
var _a;
|
|
6623
|
-
(_a =
|
|
7239
|
+
(_a = globalStore.frontModeStore) === null || _a === void 0 ? void 0 : _a.css3DScene.remove(value.css3DObject);
|
|
6624
7240
|
});
|
|
6625
7241
|
Object.values(this.store.behindModeCSS3DObjects).forEach((value) => {
|
|
6626
|
-
var _a;
|
|
6627
|
-
(_a =
|
|
6628
|
-
|
|
7242
|
+
var _a, _b;
|
|
7243
|
+
(_a = globalStore.behindModeStore) === null || _a === void 0 ? void 0 : _a.css3DScene.remove(value.css3DObject);
|
|
7244
|
+
(_b = globalStore.behindModeStore) === null || _b === void 0 ? void 0 : _b.scene.remove(value.opacityMesh);
|
|
7245
|
+
});
|
|
7246
|
+
}
|
|
7247
|
+
}
|
|
7248
|
+
|
|
7249
|
+
const VERSION$1 = 'v2.0.0';
|
|
7250
|
+
const PLUGIN_NAME$1 = `CSS3DRenderPlugin-${random()}@${VERSION$1}`;
|
|
7251
|
+
class Controller extends CSS3DRender {
|
|
7252
|
+
constructor(five) {
|
|
7253
|
+
super();
|
|
7254
|
+
Object.defineProperty(this, "five", {
|
|
7255
|
+
enumerable: true,
|
|
7256
|
+
configurable: true,
|
|
7257
|
+
writable: true,
|
|
7258
|
+
value: void 0
|
|
6629
7259
|
});
|
|
7260
|
+
/**
|
|
7261
|
+
* @description 根据传入的四个点位创建一个 3d dom容器,可以通过ReactDom.render()的方式将react组件放到容器中
|
|
7262
|
+
* @param { Vector3Position[] } points 矩形四个点坐标
|
|
7263
|
+
* @param config 均为可选值
|
|
7264
|
+
* @config_document `config` 均为可选值
|
|
7265
|
+
* | key | type | defaultValue | comment |
|
|
7266
|
+
* | - | - | - | - |
|
|
7267
|
+
* | `ratio` | *`number`* | `0.00216` | 1px对应多少米,默认为 0.00216,即1px对应2.16mm |
|
|
7268
|
+
* | ~~`dpr`~~ | ~~*`number`*~~ | ~~`undefined`~~ | ~~**已改名**,请使用~~ `devicePixelRatio` |
|
|
7269
|
+
* | `devicePixelRatio` | *`number`* | `1` | 设备的物理像素分辨率与CSS像素分辨率的比值 |
|
|
7270
|
+
* | `container` | *`HTMLElement`* | `undefined` | 自定义 return 中的 `container`
|
|
7271
|
+
* | `pointerEvents` | *`'none'\|'auto'`* | `'none'` | container 的 css属性:`pointer-events` 的值 |
|
|
7272
|
+
* | `autoRender` | *`boolean`* | `true` | 是否自动渲染,通常为true |
|
|
7273
|
+
* | `mode` | *`'front'\|'behind'`* | `front` | 两种模式:|
|
|
7274
|
+
* | | | | `front` 模式:DOM 处于 five Canvas 上方,所以无法模拟遮挡效果,需要手动检测是否可见去设置显隐 |
|
|
7275
|
+
* | | | | `behind` 模式:DOM 处于 five Canvas 下方,可以模拟真实的遮挡效果,但是 DOM 必须是非透明的 |
|
|
7276
|
+
* | `behindFiveContainer` | *`HTMLElement`* | `undefined` | 如果 mode 为 `behind`,需要传入容器,并确保此容器位five下方,且中间无其他不透明的dom元素遮挡 |
|
|
7277
|
+
*
|
|
7278
|
+
* @return
|
|
7279
|
+
* ```typescript
|
|
7280
|
+
* {
|
|
7281
|
+
* id: string, // id
|
|
7282
|
+
* container: HTMLDIVElement // dom容器
|
|
7283
|
+
* dispose: () => void // 销毁
|
|
7284
|
+
* css3DObject: CSS3DObject // THREE.CSS3DObject 实例
|
|
7285
|
+
* render?: () => void // 渲染函数,当 config.autoRender = true || undefined 时为 undefined
|
|
7286
|
+
* setVisible: (visible: boolean) => void // 设置显隐, 同 setVisibleById(id, visible)
|
|
7287
|
+
* show: () => void // 同 setVisible(true)
|
|
7288
|
+
* hide: () => void // 同 setVisible(false)
|
|
7289
|
+
* setEnabled: (enabled: boolean) => void // 添加/移除 container, 同 setEnabledById(id, enabled)
|
|
7290
|
+
* enable: () => void // 同 setEnabled(true)
|
|
7291
|
+
* disable: () => void // 同 setEnabled(false)
|
|
7292
|
+
* } | void
|
|
7293
|
+
* ```
|
|
7294
|
+
*/
|
|
7295
|
+
Object.defineProperty(this, "create3DDomContainer", {
|
|
7296
|
+
enumerable: true,
|
|
7297
|
+
configurable: true,
|
|
7298
|
+
writable: true,
|
|
7299
|
+
value: (points, config) => {
|
|
7300
|
+
if (this.state.disposed)
|
|
7301
|
+
return;
|
|
7302
|
+
// ==== init ====
|
|
7303
|
+
const mergeConfig = (() => {
|
|
7304
|
+
var _a;
|
|
7305
|
+
if ((config === null || config === void 0 ? void 0 : config.dpr) !== undefined)
|
|
7306
|
+
console.warn(`${PLUGIN_NAME$1}: please use "config.devicePixelRatio" replace "config.dpr"`);
|
|
7307
|
+
const defaultconfig = {
|
|
7308
|
+
ratio: 0.00216,
|
|
7309
|
+
devicePixelRatio: (_a = config === null || config === void 0 ? void 0 : config.dpr) !== null && _a !== void 0 ? _a : 1,
|
|
7310
|
+
mode: 'front',
|
|
7311
|
+
autoRender: true,
|
|
7312
|
+
};
|
|
7313
|
+
return Object.assign(defaultconfig, config, (config === null || config === void 0 ? void 0 : config.mode) === 'behind' ? { scene: this.five.scene } : undefined);
|
|
7314
|
+
})();
|
|
7315
|
+
const fiveElement = this.five.getElement();
|
|
7316
|
+
if (!fiveElement)
|
|
7317
|
+
return console.error(`${PLUGIN_NAME$1}: five.getElement() is ${fiveElement}`);
|
|
7318
|
+
const { autoRender, mode } = mergeConfig;
|
|
7319
|
+
// 自动添加dom
|
|
7320
|
+
const wrapper = mode === 'front' ? fiveElement.parentElement : mergeConfig.behindFiveContainer;
|
|
7321
|
+
this.appendToElement(wrapper || document.body, mode);
|
|
7322
|
+
const create3DElementResault = this.create3DElement(this.five.camera, points, Object.assign(Object.assign({}, mergeConfig), { autoRender: false }));
|
|
7323
|
+
if (!create3DElementResault)
|
|
7324
|
+
return;
|
|
7325
|
+
const oldRender = create3DElementResault.render;
|
|
7326
|
+
const newRender = () => {
|
|
7327
|
+
var _a;
|
|
7328
|
+
if (mode === 'front') {
|
|
7329
|
+
oldRender();
|
|
7330
|
+
}
|
|
7331
|
+
if (mode === 'behind') {
|
|
7332
|
+
if ((_a = this.five.model) === null || _a === void 0 ? void 0 : _a.loaded)
|
|
7333
|
+
oldRender();
|
|
7334
|
+
else
|
|
7335
|
+
this.five.once('modelLoaded', () => oldRender());
|
|
7336
|
+
}
|
|
7337
|
+
};
|
|
7338
|
+
if (autoRender)
|
|
7339
|
+
newRender();
|
|
7340
|
+
return Object.assign(Object.assign({}, create3DElementResault), { render: autoRender ? undefined : newRender });
|
|
7341
|
+
}
|
|
7342
|
+
});
|
|
7343
|
+
this.five = five;
|
|
7344
|
+
}
|
|
7345
|
+
/** @deprecated disposeAll() renamed as dispose() */
|
|
7346
|
+
disposeAll() {
|
|
7347
|
+
return this.dispose();
|
|
7348
|
+
}
|
|
7349
|
+
setState(...params) {
|
|
7350
|
+
const result = super.setState(...params);
|
|
6630
7351
|
this.five.needsRender = true;
|
|
7352
|
+
return result;
|
|
6631
7353
|
}
|
|
6632
7354
|
}
|
|
6633
7355
|
|
|
6634
7356
|
const CSS3DRenderPlugin = (five) => new Controller(five);
|
|
6635
7357
|
|
|
6636
|
-
|
|
7358
|
+
// declare const __APP_VERSION__: string
|
|
7359
|
+
const VERSION = '0.2.0';
|
|
6637
7360
|
const PLUGIN_NAME = `DnalogelPlugin-PanoTagPlugin-${random()}@${VERSION}`;
|
|
6638
7361
|
const TAG_INITIAL_UNFOLDED = true;
|
|
6639
|
-
const DefaultConfig = {
|
|
6640
|
-
globalConfig: {
|
|
6641
|
-
initialState: {
|
|
6642
|
-
// unfolded: false,
|
|
6643
|
-
},
|
|
6644
|
-
visibleConfig: {
|
|
6645
|
-
visibleDistance: { max: 5 },
|
|
6646
|
-
angleRange: { min: -45, max: 45 },
|
|
6647
|
-
},
|
|
6648
|
-
unfoldedConfig: {
|
|
6649
|
-
autoUnfold: {
|
|
6650
|
-
strategy: 'MinimumDistance',
|
|
6651
|
-
},
|
|
6652
|
-
},
|
|
6653
|
-
tag3DConfig: {
|
|
6654
|
-
ratio: 0.0035,
|
|
6655
|
-
devicePixelRatio: window.devicePixelRatio,
|
|
6656
|
-
},
|
|
6657
|
-
},
|
|
6658
|
-
contentTypeConfig: {
|
|
6659
|
-
'Any-Link-Any': {
|
|
6660
|
-
unfoldedConfig: {
|
|
6661
|
-
disableFold: true,
|
|
6662
|
-
autoUnfold: undefined,
|
|
6663
|
-
},
|
|
6664
|
-
initialState: {
|
|
6665
|
-
unfolded: true,
|
|
6666
|
-
},
|
|
6667
|
-
},
|
|
6668
|
-
'Any-Marketing-Any': {
|
|
6669
|
-
unfoldedConfig: undefined,
|
|
6670
|
-
},
|
|
6671
|
-
},
|
|
6672
|
-
};
|
|
6673
7362
|
const pluginFlag = (name) => `${PLUGIN_NAME}--${name}`;
|
|
6674
7363
|
class PanoTagPluginController extends TagComputer {
|
|
6675
7364
|
constructor(five, params) {
|
|
@@ -6738,9 +7427,16 @@ class PanoTagPluginController extends TagComputer {
|
|
|
6738
7427
|
value: {
|
|
6739
7428
|
disposers: [],
|
|
6740
7429
|
disposed: false,
|
|
7430
|
+
resizeObserverDisposerAdding: false,
|
|
6741
7431
|
css3DRenderDisposer: new Map(),
|
|
6742
7432
|
}
|
|
6743
7433
|
});
|
|
7434
|
+
Object.defineProperty(this, "staticUrl", {
|
|
7435
|
+
enumerable: true,
|
|
7436
|
+
configurable: true,
|
|
7437
|
+
writable: true,
|
|
7438
|
+
value: void 0
|
|
7439
|
+
});
|
|
6744
7440
|
Object.defineProperty(this, "disposedErrorLog", {
|
|
6745
7441
|
enumerable: true,
|
|
6746
7442
|
configurable: true,
|
|
@@ -6749,9 +7445,24 @@ class PanoTagPluginController extends TagComputer {
|
|
|
6749
7445
|
console.error(`${PLUGIN_NAME} is disposed`);
|
|
6750
7446
|
}
|
|
6751
7447
|
});
|
|
6752
|
-
this.params = Object.assign({ debug: false, mergePluginDefaultConfigToLoadDataConfig: false, config: this.config
|
|
7448
|
+
this.params = Object.assign({ debug: false, mergePluginDefaultConfigToLoadDataConfig: false, config: this.config, staticConfig: {
|
|
7449
|
+
host: 'vrlab-static.ljcdn.com',
|
|
7450
|
+
} }, params);
|
|
6753
7451
|
this.debug = this.params.debug;
|
|
6754
7452
|
this.config = this.params.config;
|
|
7453
|
+
this.staticUrl = (() => {
|
|
7454
|
+
var _a;
|
|
7455
|
+
const staticConfig = this.params.staticConfig;
|
|
7456
|
+
if (typeof staticConfig === 'string') {
|
|
7457
|
+
return staticConfig;
|
|
7458
|
+
}
|
|
7459
|
+
else {
|
|
7460
|
+
const protocol = staticConfig.protocol ? staticConfig.protocol + ':' : '';
|
|
7461
|
+
const host = (_a = staticConfig.host) !== null && _a !== void 0 ? _a : 'vrlab-static.ljcdn.com';
|
|
7462
|
+
const port = staticConfig.port ? ':' + staticConfig.port : '';
|
|
7463
|
+
return `${protocol}//${host}${port}`;
|
|
7464
|
+
}
|
|
7465
|
+
})();
|
|
6755
7466
|
Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this });
|
|
6756
7467
|
}
|
|
6757
7468
|
/**
|
|
@@ -6787,7 +7498,7 @@ class PanoTagPluginController extends TagComputer {
|
|
|
6787
7498
|
const _tags = tags
|
|
6788
7499
|
.map((tag) => {
|
|
6789
7500
|
const config = this.getTagConfig(tag);
|
|
6790
|
-
return Object.assign(Object.assign({}, tag), { state: Object.assign({ visible: undefined, unfolded: TAG_INITIAL_UNFOLDED }, config.initialState) });
|
|
7501
|
+
return Object.assign(Object.assign({}, tag), { state: Object.assign({ visible: undefined, unfolded: TAG_INITIAL_UNFOLDED }, config.initialState), hooks: new five.Subscribe() });
|
|
6791
7502
|
})
|
|
6792
7503
|
.filter((tag) => tag.position);
|
|
6793
7504
|
this.tags.push(..._tags);
|
|
@@ -6798,10 +7509,13 @@ class PanoTagPluginController extends TagComputer {
|
|
|
6798
7509
|
(_b = (_a = this.store).eventListenerDisposer) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
6799
7510
|
}
|
|
6800
7511
|
this.store.eventListenerDisposer = this.addEventListener();
|
|
6801
|
-
|
|
7512
|
+
// resizeObserverDisposerAdding 避免200ms内重复执行 addResizeObserver
|
|
7513
|
+
if (!this.store.resizeObserverDisposer && !this.store.resizeObserverDisposerAdding) {
|
|
6802
7514
|
const resizeObserverDisposer = this.addResizeObserver();
|
|
7515
|
+
this.store.resizeObserverDisposerAdding = true;
|
|
6803
7516
|
setTimeout(() => {
|
|
6804
7517
|
this.store.resizeObserverDisposer = resizeObserverDisposer;
|
|
7518
|
+
this.store.resizeObserverDisposerAdding = false;
|
|
6805
7519
|
}, 200);
|
|
6806
7520
|
}
|
|
6807
7521
|
this.checkPanelTag();
|
|
@@ -6853,6 +7567,7 @@ class PanoTagPluginController extends TagComputer {
|
|
|
6853
7567
|
this.store.eventListenerDisposer = undefined;
|
|
6854
7568
|
(_f = (_e = this.store).resizeObserverDisposer) === null || _f === void 0 ? void 0 : _f.call(_e);
|
|
6855
7569
|
this.store.resizeObserverDisposer = undefined;
|
|
7570
|
+
this.store.resizeObserverDisposerAdding = false;
|
|
6856
7571
|
this.clearCache();
|
|
6857
7572
|
this.hooks.emit('dispose');
|
|
6858
7573
|
}
|
|
@@ -7169,13 +7884,13 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7169
7884
|
return;
|
|
7170
7885
|
if (!this.css3DRenderPlugin)
|
|
7171
7886
|
this.css3DRenderPlugin = CSS3DRenderPlugin(this.five);
|
|
7172
|
-
if (tag.pointType ===
|
|
7887
|
+
if (tag.pointType === PointType.PointTag && !tag.normal)
|
|
7173
7888
|
return console.error('updateRenderPlaneTag: 三维点标签缺少法向量!');
|
|
7174
7889
|
// 四个点
|
|
7175
|
-
const positions = tag.pointType ===
|
|
7890
|
+
const positions = tag.pointType === PointType.PlaneTag
|
|
7176
7891
|
? tag.position
|
|
7177
7892
|
: normalPositionToPositions(this.five.camera.position, arrayPositionToVector3(tag.position), arrayPositionToVector3(tag.normal));
|
|
7178
|
-
const normal = tag.pointType ===
|
|
7893
|
+
const normal = tag.pointType === PointType.PlaneTag ? planeNormal(tag.position) : arrayPositionToVector3(tag.normal);
|
|
7179
7894
|
const create3DDomContainerConfig = this.getTagConfig(tag).tag3DConfig;
|
|
7180
7895
|
const domContainer = this.css3DRenderPlugin.create3DDomContainer(positions, create3DDomContainerConfig);
|
|
7181
7896
|
if (!domContainer)
|
|
@@ -7225,14 +7940,14 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7225
7940
|
// 3D 转 2D 的时候要销毁 3D container
|
|
7226
7941
|
this.tags.forEach((tag) => {
|
|
7227
7942
|
var _a;
|
|
7228
|
-
if (tag.dimensionType ===
|
|
7943
|
+
if (tag.dimensionType === DimensionType.Two && tag.pointType === PointType.PointTag) {
|
|
7229
7944
|
(_a = tag.tag3DContentSvelte) === null || _a === void 0 ? void 0 : _a.domContainer.dispose();
|
|
7230
7945
|
tag.tag3DContentSvelte = undefined;
|
|
7231
7946
|
}
|
|
7232
7947
|
});
|
|
7233
7948
|
for (const [id, disposer] of this.store.css3DRenderDisposer) {
|
|
7234
7949
|
const tag = this.getTagById(id);
|
|
7235
|
-
if (!tag || tag.dimensionType !==
|
|
7950
|
+
if (!tag || tag.dimensionType !== DimensionType.Three) {
|
|
7236
7951
|
disposer === null || disposer === void 0 ? void 0 : disposer();
|
|
7237
7952
|
this.store.css3DRenderDisposer.delete(id);
|
|
7238
7953
|
}
|
|
@@ -7240,11 +7955,8 @@ class PanoTagPluginController extends TagComputer {
|
|
|
7240
7955
|
}
|
|
7241
7956
|
}
|
|
7242
7957
|
|
|
7243
|
-
// DELETE
|
|
7244
|
-
Object.assign(window, { objectAssignDeep: objectAssignDeep__default["default"] });
|
|
7245
7958
|
const PanoTagPlugin = (five, params) => new PanoTagPluginController(five, params);
|
|
7246
7959
|
|
|
7247
|
-
exports.DefaultConfig = DefaultConfig;
|
|
7248
7960
|
exports.PanoTagPlugin = PanoTagPlugin;
|
|
7249
7961
|
exports.PanoTagPluginController = PanoTagPluginController;
|
|
7250
7962
|
exports["default"] = PanoTagPlugin;
|