@realsee/dnalogel 2.16.0-4 → 2.16.0-7
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/CruisePlugin/index.d.ts +2 -0
- package/dist/CruisePlugin/typing.d.ts +32 -40
- package/dist/GuideLinePlugin/Controller.d.ts +2 -0
- package/dist/GuideLinePlugin/GuideLineItem.d.ts +6 -0
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +38 -5
- package/dist/GuideLinePlugin/typing.d.ts +33 -4
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +5 -5
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +3 -1
- package/dist/index.cjs.js +67 -67
- package/dist/index.js +8846 -8678
- package/dist/index.umd.js +54 -54
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +32 -31
- package/docs/classes/CruisePluginController.html +39 -38
- package/docs/classes/GuideLineItem.GuideLineItem.html +49 -16
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +218 -49
- package/docs/classes/Magnifier.html +21 -20
- package/docs/classes/ModelRoomLabelController.html +12 -11
- package/docs/classes/Object3DHelperController.html +26 -25
- package/docs/classes/PaintBrush.html +16 -15
- package/docs/classes/PanoMeasurePluginLine.html +24 -23
- package/docs/classes/PanoMeasurePluginModel.html +23 -22
- package/docs/classes/PanoMeasurePluginPoint.html +15 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +27 -26
- package/docs/classes/PanoTagPluginController.html +48 -47
- package/docs/classes/Util.BetterTween.html +9 -8
- package/docs/classes/Util.FivePointSelector.html +13 -12
- package/docs/classes/Util.Interval.html +13 -12
- package/docs/classes/Util.Magnifier.html +18 -17
- package/docs/classes/Util.PointDomHelper.html +12 -11
- package/docs/classes/Util.PointHelper.html +12 -11
- package/docs/classes/Util.Rectangle.html +14 -13
- package/docs/enums/CameraMovementEffect.html +8 -7
- package/docs/enums/ContentType.html +20 -19
- package/docs/enums/DIRECTION.html +10 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -9
- package/docs/enums/DimensionType.html +8 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +9 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -9
- package/docs/enums/PaintBrushTypeEnum.html +9 -8
- package/docs/enums/Rotation.html +9 -8
- package/docs/functions/CSS3DRenderPlugin.html +5 -4
- package/docs/functions/CameraMovementPlugin.html +5 -4
- package/docs/functions/CruisePlugin.html +5 -4
- package/docs/functions/GuideLinePlugin.html +6 -5
- package/docs/functions/ItemLabelPlugin.html +5 -4
- package/docs/functions/MapviewFloorplanPlugin.html +5 -4
- package/docs/functions/ModelChassisCompassPlugin.html +5 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
- package/docs/functions/ModelFloorplanPlugin.html +5 -4
- package/docs/functions/ModelItemLabelPlugin.html +5 -4
- package/docs/functions/ModelRoomLabelPlugin.html +5 -4
- package/docs/functions/ModelTVVideoPlugin.html +5 -4
- package/docs/functions/ModelViewPlugin.html +5 -4
- package/docs/functions/Object3DHelperPlugin.html +5 -4
- package/docs/functions/PanoCompassPlugin.html +5 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
- package/docs/functions/PanoDoorLabelPlugin.html +5 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
- package/docs/functions/PanoMeasurePlugin.html +5 -4
- package/docs/functions/PanoRulerPlugin.html +5 -4
- package/docs/functions/PanoRulerProPlugin.html +5 -4
- package/docs/functions/PanoSpatialTagPlugin.html +5 -4
- package/docs/functions/PanoTagPlugin.html +5 -4
- package/docs/functions/PanoVideoPlugin.html +5 -4
- package/docs/functions/TopviewFloorplanPlugin.html +5 -4
- package/docs/functions/Util.getCoordsFromClient.html +6 -5
- package/docs/functions/Util.getCoordsFromElement.html +6 -5
- package/docs/functions/Util.getFrameTime.html +6 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -5
- package/docs/functions/Util.isAbsoluteURL.html +6 -5
- package/docs/functions/Util.isModelLike.html +6 -5
- package/docs/functions/Util.isNil.html +6 -5
- package/docs/functions/Util.isPanoramaLike.html +6 -5
- package/docs/functions/Util.nextFrame.html +6 -5
- package/docs/functions/Util.notNil.html +6 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +6 -5
- package/docs/functions/Util.tweenProgress.html +6 -5
- package/docs/functions/Util.uuid.html +6 -5
- package/docs/functions/pluginFlag.html +6 -5
- package/docs/index.html +5 -4
- package/docs/interfaces/AddTagConfig.html +7 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +12 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +9 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +8 -7
- package/docs/interfaces/CruisePluginTypes.Config.html +107 -0
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +112 -0
- package/docs/interfaces/CruisePluginTypes.EventMap.html +429 -0
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +120 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +141 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +143 -0
- package/docs/interfaces/CruisePluginTypes.PluginData.html +95 -0
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +83 -0
- package/docs/interfaces/CruisePluginTypes.PluginState.html +148 -0
- package/docs/interfaces/EventMap.html +16 -15
- package/docs/interfaces/FloorplanBounding.html +9 -8
- package/docs/interfaces/FloorplanData.html +11 -10
- package/docs/interfaces/FloorplanEntrance.html +12 -11
- package/docs/interfaces/FloorplanExtraObject.html +11 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +9 -8
- package/docs/interfaces/FloorplanFloorData.html +10 -9
- package/docs/interfaces/FloorplanImagePosition.html +8 -7
- package/docs/interfaces/FloorplanObserver.html +10 -9
- package/docs/interfaces/FloorplanOutlineItem.html +10 -9
- package/docs/interfaces/FloorplanPosition.html +8 -7
- package/docs/interfaces/FloorplanRoomItem.html +14 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +8 -7
- package/docs/interfaces/FloorplanServerBounding.html +9 -8
- package/docs/interfaces/FloorplanServerComputedData.html +11 -10
- package/docs/interfaces/FloorplanServerData.html +8 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +11 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +9 -8
- package/docs/interfaces/FloorplanServerEntrance.html +12 -11
- package/docs/interfaces/FloorplanServerFloorData.html +10 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +8 -7
- package/docs/interfaces/FloorplanServerObserver.html +10 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +10 -9
- package/docs/interfaces/FloorplanServerPosition.html +8 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +15 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +8 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +15 -10
- package/docs/interfaces/GuideLinePluginType.EventMap.html +14 -13
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +9 -8
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +7 -6
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -11
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -8
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +179 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTag.html +211 -0
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +293 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV1.html +8 -7
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +7 -6
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +8 -7
- package/docs/interfaces/GuideLinePluginType.PluginState.html +10 -9
- package/docs/interfaces/GuideLinePluginType.Route.html +11 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +10 -9
- package/docs/interfaces/HelperOffset.html +9 -8
- package/docs/interfaces/ImagePlaneGroup.html +7 -6
- package/docs/interfaces/ItemLabelPluginData.html +7 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +12 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +10 -9
- package/docs/interfaces/MinMax.html +8 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +8 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +9 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +8 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +9 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +9 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +7 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +12 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +8 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +7 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +10 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +9 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +7 -6
- package/docs/interfaces/ModelViewPluginExportType.html +12 -11
- package/docs/interfaces/Object3DHelperState.html +9 -8
- package/docs/interfaces/ObjectHelperControllers.html +10 -9
- package/docs/interfaces/PaintBrushAction.html +13 -12
- package/docs/interfaces/PaintBrushConfigs.html +13 -12
- package/docs/interfaces/PaintBrushState.html +11 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -5
- package/docs/interfaces/PanoMeasureParameterType.html +15 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +9 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +8 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +8 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +9 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +11 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +8 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +9 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +10 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +8 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +8 -7
- package/docs/interfaces/PanoRulerProPluginState.html +9 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +12 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +11 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +14 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +11 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +14 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +12 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +11 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +7 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +9 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +7 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +10 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +7 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +9 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +11 -10
- package/docs/interfaces/Point.html +9 -8
- package/docs/interfaces/Room.html +10 -9
- package/docs/interfaces/RoomInfo.html +8 -7
- package/docs/interfaces/RoomLabel.html +15 -14
- package/docs/interfaces/RoomRules.html +6 -5
- package/docs/interfaces/Rooms.html +6 -5
- package/docs/interfaces/Scissor.html +10 -9
- package/docs/interfaces/State.html +9 -8
- package/docs/interfaces/TagCacheInterface.html +13 -12
- package/docs/interfaces/TagConfig.html +12 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +7 -6
- package/docs/interfaces/TagIconUrl.html +27 -17
- package/docs/interfaces/TagObjectGroup.html +7 -6
- package/docs/interfaces/TagStyle.html +7 -6
- package/docs/interfaces/Tags.html +10 -9
- package/docs/interfaces/TemporaryState.html +7 -6
- package/docs/interfaces/Util.MagnifierParameter.html +12 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +9 -8
- package/docs/modules/CruisePluginTypes.html +88 -0
- package/docs/modules/GuideLineItem.html +6 -5
- package/docs/modules/GuideLineModeItem.html +6 -5
- package/docs/modules/GuideLinePluginType.html +14 -5
- package/docs/modules/PanoVideoPluginType.html +6 -5
- package/docs/modules/Util.html +6 -5
- package/docs/modules.html +7 -5
- package/docs/types/ArrayPosition.html +6 -5
- package/docs/types/AudioAppearance.html +6 -5
- package/docs/types/AudioTagTypeConfigKey.html +6 -5
- package/docs/types/CSS3DRenderExportType.html +6 -5
- package/docs/types/CSS3DRenderPluginExportType.html +6 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
- package/docs/types/ClassFunctionParameters.html +6 -5
- package/docs/types/Color.html +6 -5
- package/docs/types/ContentTypeConfigKey.html +6 -5
- package/docs/types/ContentTypeConfigKeySplit.html +6 -5
- package/docs/types/ContentTypeMap.html +6 -5
- package/docs/types/Create3DDomContainerReturnType.html +6 -5
- package/docs/types/Create3DElementReturnType.html +6 -5
- package/docs/types/CruisePluginExportType.html +6 -5
- package/docs/types/CruisePluginTypes.CruiseData.html +60 -0
- package/docs/types/CruisePluginTypes.MoveEffect.html +60 -0
- package/docs/types/Direction-1.html +6 -5
- package/docs/types/Direction4.html +6 -5
- package/docs/types/FloorplanRuleLabels.html +6 -5
- package/docs/types/FloorplanServerRuleLabels.html +6 -5
- package/docs/types/GuideLinePluginExportType.html +6 -5
- package/docs/types/GuideLinePluginType.GuideLineItem.html +11 -6
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +105 -0
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +10 -5
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +10 -5
- package/docs/types/GuideLinePluginType.PathItem.html +10 -5
- package/docs/types/GuideLinePluginType.PluginData.html +10 -5
- package/docs/types/HelperEventMap.html +6 -5
- package/docs/types/LoadTagConfig.html +6 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
- package/docs/types/MediaData.html +6 -5
- package/docs/types/MediaStore.html +6 -5
- package/docs/types/ModelElement.html +6 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
- package/docs/types/MoveArgs.html +6 -5
- package/docs/types/MoveOpts.html +6 -5
- package/docs/types/Object3DHelperEventMap.html +6 -5
- package/docs/types/ObjectFit.html +6 -5
- package/docs/types/PaintBrushEventMap.html +6 -5
- package/docs/types/PanoCompassPluginData.html +6 -5
- package/docs/types/PanoCompassPluginExportType.html +6 -5
- package/docs/types/PanoCompassPluginParameterType.html +6 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
- package/docs/types/PanoIndex.html +6 -5
- package/docs/types/PanoMeasurePluginEvent.html +6 -5
- package/docs/types/PanoMeasureReturnType.html +6 -5
- package/docs/types/PanoSpatialTagPluginId.html +6 -5
- package/docs/types/PanoTagPluginExportInterface.html +6 -5
- package/docs/types/PanoTagPluginParamsInterface.html +6 -5
- package/docs/types/PanoVideoPluginParameterType.html +6 -5
- package/docs/types/PanoVideoPluginReturnType.html +6 -5
- package/docs/types/PlaneTag.html +6 -5
- package/docs/types/PlaneTagElement.html +6 -5
- package/docs/types/Point2DElement.html +6 -5
- package/docs/types/Point2DTag.html +6 -5
- package/docs/types/Point3DElement.html +6 -5
- package/docs/types/Point3DTag.html +6 -5
- package/docs/types/PointTag.html +6 -5
- package/docs/types/PointTagElement.html +6 -5
- package/docs/types/Position.html +6 -5
- package/docs/types/RotateArgs.html +6 -5
- package/docs/types/RotateOpts.html +6 -5
- package/docs/types/RuleLabelsKey.html +6 -5
- package/docs/types/RuleLabelsValue.html +6 -5
- package/docs/types/StickType.html +6 -5
- package/docs/types/Tag.html +6 -5
- package/docs/types/Tag2D.html +6 -5
- package/docs/types/Tag3D.html +6 -5
- package/docs/types/TagContentType.html +6 -5
- package/docs/types/TagDimensionType.html +6 -5
- package/docs/types/TagElement.html +6 -5
- package/docs/types/TagEvents.html +6 -5
- package/docs/types/TagGLTFObject.html +6 -5
- package/docs/types/TagHooks.html +6 -5
- package/docs/types/TagIconSize.html +6 -5
- package/docs/types/TagId.html +6 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
- package/docs/types/WorkCode.html +6 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
- package/docs/variables/PLUGIN.html +6 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
- package/docs/variables/ROOM_TYPE_MAP.html +6 -5
- package/docs/variables/itemLabelPluginServerParams.html +6 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
- package/libs/CruisePlugin/Controller.js +222 -118
- package/libs/CruisePlugin/index.d.ts +2 -0
- package/libs/CruisePlugin/index.js +110 -5
- package/libs/CruisePlugin/typing/index.js +6 -0
- package/libs/CruisePlugin/typing.d.ts +32 -40
- package/libs/GuideLinePlugin/Components/Tag.js +49 -0
- package/libs/GuideLinePlugin/Controller.d.ts +2 -0
- package/libs/GuideLinePlugin/Controller.js +199 -85
- package/libs/GuideLinePlugin/GuideLineItem/index.js +109 -22
- package/libs/GuideLinePlugin/GuideLineItem.d.ts +6 -0
- package/libs/GuideLinePlugin/GuideLineItem.js +123 -4
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +84 -53
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +38 -5
- package/libs/GuideLinePlugin/GuideLineModeItem.js +106 -2
- package/libs/GuideLinePlugin/index.js +119 -7
- package/libs/GuideLinePlugin/typing.d.ts +33 -4
- package/libs/GuideLinePlugin/typing.js +34 -1
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +19 -16
- package/libs/GuideLinePlugin/utils/index.js +17 -4
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +92 -66
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/TagComputer.js +6 -0
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +5 -5
- package/libs/PanoTagPlugin/controller/index.js +5 -5
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +3 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +120 -117
- package/package.json +1 -1
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import "object-assign-deep";
|
|
2
2
|
import "./GuideLineModeItem/index.js";
|
|
3
|
-
import
|
|
4
|
-
import "three";
|
|
3
|
+
import "../CruisePlugin/Controller.js";
|
|
5
4
|
import "../shared-utils/log.js";
|
|
5
|
+
import "../shared-utils/to.js";
|
|
6
|
+
import "@realsee/five";
|
|
7
|
+
import "../shared-utils/five/changeMode.js";
|
|
8
|
+
import { GuideLineItem as Om } from "./GuideLineItem/index.js";
|
|
9
|
+
import "three";
|
|
6
10
|
import "./utils/createLineGeometry.js";
|
|
7
11
|
import "polyline-normals";
|
|
8
12
|
import "../shared-utils/five/mode.js";
|
|
9
|
-
import "@realsee/five";
|
|
10
13
|
import "hammerjs";
|
|
11
14
|
import "@tweenjs/tween.js";
|
|
12
15
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
@@ -26,6 +29,122 @@ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
|
26
29
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
27
30
|
import "../shared-utils/animationFrame/index.js";
|
|
28
31
|
import "../shared-utils/three/loadTexture.js";
|
|
32
|
+
import "../PanoTagPlugin/controller/index.js";
|
|
33
|
+
import "../PanoTagPlugin/utils/addDebugPoints.js";
|
|
34
|
+
import "@realsee/five/gltf-loader";
|
|
35
|
+
import "../PanoTagPlugin/utils/tag/tagCheck.js";
|
|
36
|
+
import "../PanoTagPlugin/utils/actionAfterFiveModelLoad.js";
|
|
37
|
+
import "../PanoTagPlugin/utils/debounce.js";
|
|
38
|
+
import "../PanoTagPlugin/utils/throttle.js";
|
|
39
|
+
import "../PanoTagPlugin/utils/resizeObserver.js";
|
|
40
|
+
import "../PanoTagPlugin/utils/tag/format.js";
|
|
41
|
+
import "../shared-utils/audio.js";
|
|
42
|
+
import "../PanoTagPlugin/controller/TagRender.js";
|
|
43
|
+
import "../PanoTagPlugin/controller/TagComputer.js";
|
|
44
|
+
import "../PanoTagPlugin/utils/tagPosition.js";
|
|
45
|
+
import "../PanoTagPlugin/utils/checkRange.js";
|
|
46
|
+
import "../shared-utils/isNil.js";
|
|
47
|
+
import "../PanoTagPlugin/controller/TagUtil.js";
|
|
48
|
+
import "../PanoTagPlugin/tag.config.js";
|
|
49
|
+
import "../PanoTagPlugin/utils/planeNormal.js";
|
|
50
|
+
import "../PanoTagPlugin/utils/normalPositionToPositions.js";
|
|
51
|
+
import "../PanoTagPlugin/controller/TagCache.js";
|
|
52
|
+
import "../base/BasePlugin.js";
|
|
53
|
+
import "../shared-utils/isAbsoluteURL.js";
|
|
54
|
+
import "../vendor/svelte/store/index.js";
|
|
55
|
+
import "../vendor/svelte/internal/index.js";
|
|
56
|
+
import "../PanoTagPlugin/utils/device.js";
|
|
57
|
+
import "../shared-utils/threex/domevents/index.js";
|
|
58
|
+
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
59
|
+
import "../PanoTagPlugin/Components/TagItem.js";
|
|
60
|
+
import "../PanoTagPlugin/Components/Tag/index.js";
|
|
61
|
+
import "../PanoTagPlugin/Components/Tag/TextTag/index.js";
|
|
62
|
+
import "../PanoTagPlugin/Components/Tag/TextTag/TextTag.js";
|
|
63
|
+
import "../PanoTagPlugin/Components/Common/Line/Straight.js";
|
|
64
|
+
import "../vendor/svelte/transition/index.js";
|
|
65
|
+
import "../vendor/svelte/easing/index.js";
|
|
66
|
+
import "../shared-utils/uuid.js";
|
|
67
|
+
import "../PanoTagPlugin/Components/Common/Shadow.js";
|
|
68
|
+
import "../PanoTagPlugin/Components/Common/Text/FlyMText.js";
|
|
69
|
+
import "../PanoTagPlugin/Components/Common/Text/FlyText.js";
|
|
70
|
+
import "animejs";
|
|
71
|
+
import "../PanoTagPlugin/utils/search.js";
|
|
72
|
+
import "../PanoTagPlugin/utils/constants.js";
|
|
73
|
+
import "../PanoTagPlugin/Components/Common/Arrow.js";
|
|
74
|
+
import "../PanoTagPlugin/Assets/Icon.js";
|
|
75
|
+
import "../PanoTagPlugin/utils/doUtil.js";
|
|
76
|
+
import "../shared-utils/svelte/resizeObserver.js";
|
|
77
|
+
import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
78
|
+
import "../PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js";
|
|
79
|
+
import "../PanoTagPlugin/Components/Common/Text/MText.js";
|
|
80
|
+
import "../PanoTagPlugin/utils/px2rem.js";
|
|
81
|
+
import "../PanoTagPlugin/Components/Tag/ImageTextTag.js";
|
|
82
|
+
import "../PanoTagPlugin/Components/Common/Line/Polyline.js";
|
|
83
|
+
import "../PanoTagPlugin/Components/Common/Media.js";
|
|
84
|
+
import "../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
|
|
85
|
+
import "../vendor/svelte-carousel/src/components/Dots/Dots.js";
|
|
86
|
+
import "../vendor/svelte-carousel/src/components/Dot/Dot.js";
|
|
87
|
+
import "../vendor/svelte-carousel/src/components/Arrow/Arrow.js";
|
|
88
|
+
import "../vendor/svelte-carousel/src/direction.js";
|
|
89
|
+
import "../vendor/svelte-carousel/src/components/Progress/Progress.js";
|
|
90
|
+
import "../vendor/svelte-carousel/src/actions/swipeable/swipeable.js";
|
|
91
|
+
import "../vendor/svelte-carousel/src/actions/swipeable/event.js";
|
|
92
|
+
import "../vendor/svelte-carousel/src/utils/event.js";
|
|
93
|
+
import "../vendor/svelte-carousel/src/units.js";
|
|
94
|
+
import "../vendor/svelte-carousel/src/actions/hoverable/hoverable.js";
|
|
95
|
+
import "../vendor/svelte-carousel/src/actions/hoverable/event.js";
|
|
96
|
+
import "../vendor/svelte-carousel/src/actions/tappable/tappable.js";
|
|
97
|
+
import "../vendor/svelte-carousel/src/utils/math.js";
|
|
98
|
+
import "../vendor/svelte-carousel/src/actions/tappable/event.js";
|
|
99
|
+
import "../vendor/svelte-carousel/src/utils/page.js";
|
|
100
|
+
import "../vendor/svelte-carousel/src/utils/clones.js";
|
|
101
|
+
import "../vendor/svelte-carousel/src/utils/object.js";
|
|
102
|
+
import "../vendor/svelte-carousel/src/components/Carousel/createCarousel.js";
|
|
103
|
+
import "../vendor/simply-reactive/src/simply-reactive.js";
|
|
104
|
+
import "lodash.get";
|
|
105
|
+
import "lodash.clonedeep";
|
|
106
|
+
import "../vendor/simply-reactive/src/utils/subscription.js";
|
|
107
|
+
import "../vendor/simply-reactive/src/utils/object.js";
|
|
108
|
+
import "lodash.isequal";
|
|
109
|
+
import "../vendor/simply-reactive/src/utils/watcher.js";
|
|
110
|
+
import "../vendor/svelte-carousel/src/utils/lazy.js";
|
|
111
|
+
import "../vendor/svelte-carousel/src/utils/ProgressManager.js";
|
|
112
|
+
import "../vendor/svelte-carousel/src/utils/interval.js";
|
|
113
|
+
import "../PanoTagPlugin/Components/Common/MediaItem.js";
|
|
114
|
+
import "../PanoTagPlugin/Components/Tag/MarketingTag.js";
|
|
115
|
+
import "../PanoTagPlugin/utils/noTypecheck.js";
|
|
116
|
+
import "../PanoTagPlugin/Components/Tag/AudioTag/index.js";
|
|
117
|
+
import "../PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js";
|
|
118
|
+
import "../PanoTagPlugin/Components/Common/Audio.js";
|
|
119
|
+
import "../PanoTagPlugin/utils/audio/SharedAudio.js";
|
|
120
|
+
import "../PanoTagPlugin/Components/Common/Icon/audioIcon.js";
|
|
121
|
+
import "../PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
122
|
+
import "../PanoTagPlugin/Components/Tag/MediaPlane.js";
|
|
123
|
+
import "../PanoTagPlugin/Components/Tag/LinkTag.js";
|
|
124
|
+
import "../PanoTagPlugin/Components/Common/Icon/Icon.js";
|
|
125
|
+
import "../PanoTagPlugin/utils/getImageInfo.js";
|
|
126
|
+
import "../PanoTagPlugin/Components/Tag/CustomTag.js";
|
|
127
|
+
import "classnames";
|
|
128
|
+
import "../PanoTagPlugin/Components/Common/TagPoint.js";
|
|
129
|
+
import "../PanoTagPlugin/utils/model/imagePlane.js";
|
|
130
|
+
import "../CSS3DRenderPlugin/index.js";
|
|
131
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
132
|
+
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
133
|
+
import "../shared-utils/three/GLTFLoader.js";
|
|
134
|
+
import "./Components/Tag.js";
|
|
135
|
+
import "../base/BasePluginWithData.js";
|
|
136
|
+
import "./index.js";
|
|
137
|
+
import "./Controller.js";
|
|
138
|
+
import "../shared-utils/equal.js";
|
|
139
|
+
import "../shared-utils/isTruelyObject.js";
|
|
140
|
+
import "../shared-utils/nearlyEqual.js";
|
|
141
|
+
import "../CruisePlugin/utils/coordinatesAngle.js";
|
|
142
|
+
import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
143
|
+
import "../CruisePlugin/utils/safeCall.js";
|
|
144
|
+
import "../CruisePlugin/utils/vectorToCoordinates.js";
|
|
145
|
+
import "../CruisePlugin/utils/formatRad.js";
|
|
146
|
+
import "../CruisePlugin/utils/linerValue.js";
|
|
147
|
+
import "../CruisePlugin/utils/sleep.js";
|
|
29
148
|
export {
|
|
30
|
-
|
|
149
|
+
Om as GuideLineItem
|
|
31
150
|
};
|
|
@@ -1,34 +1,38 @@
|
|
|
1
|
-
var
|
|
1
|
+
var v = Object.defineProperty;
|
|
2
2
|
var g = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var C = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var h = (r, e, i) => e in r ? v(r, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[e] = i, f = (r, e) => {
|
|
5
5
|
for (var i in e || (e = {}))
|
|
6
|
-
|
|
6
|
+
C.call(e, i) && h(r, i, e[i]);
|
|
7
7
|
if (g)
|
|
8
8
|
for (var i of g(e))
|
|
9
|
-
|
|
9
|
+
b.call(e, i) && h(r, i, e[i]);
|
|
10
10
|
return r;
|
|
11
11
|
};
|
|
12
|
-
var t = (r, e, i) => (
|
|
13
|
-
import * as
|
|
14
|
-
import { logWarning as
|
|
15
|
-
import { createLineGeometry as
|
|
16
|
-
import { isPanoramaLike as
|
|
12
|
+
var t = (r, e, i) => (h(r, typeof e != "symbol" ? e + "" : e, i), i);
|
|
13
|
+
import * as o from "three";
|
|
14
|
+
import { logWarning as E, logError as F } from "../../shared-utils/log.js";
|
|
15
|
+
import { createLineGeometry as y } from "../utils/createLineGeometry.js";
|
|
16
|
+
import { isPanoramaLike as k, isModelLike as P } from "../../shared-utils/five/mode.js";
|
|
17
17
|
import "hammerjs";
|
|
18
18
|
import "@realsee/five";
|
|
19
19
|
import "@tweenjs/tween.js";
|
|
20
20
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
21
21
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
22
22
|
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
23
|
-
import { loadTexture as
|
|
24
|
-
|
|
23
|
+
import { loadTexture as w } from "../../shared-utils/three/loadTexture.js";
|
|
24
|
+
import "object-assign-deep";
|
|
25
|
+
import p from "../../PanoTagPlugin/controller/index.js";
|
|
26
|
+
import "@realsee/five/gltf-loader";
|
|
27
|
+
import U from "../Components/Tag.js";
|
|
28
|
+
const x = `
|
|
25
29
|
varying vec2 vUv;
|
|
26
30
|
|
|
27
31
|
void main() {
|
|
28
32
|
vUv = uv;
|
|
29
33
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
30
34
|
}
|
|
31
|
-
`,
|
|
35
|
+
`, L = `
|
|
32
36
|
// \u662F\u5426\u4F7F\u7528\u989C\u8272
|
|
33
37
|
uniform int useMapColor;
|
|
34
38
|
// \u8D34\u56FE
|
|
@@ -86,12 +90,15 @@ const U = `
|
|
|
86
90
|
gl_FragColor.a = gl_FragColor.a * linearGradientOpacity();
|
|
87
91
|
}
|
|
88
92
|
`;
|
|
89
|
-
class
|
|
93
|
+
class V {
|
|
90
94
|
constructor(e, i) {
|
|
95
|
+
t(this, "startTagPlugin");
|
|
96
|
+
t(this, "endTagPlugin");
|
|
91
97
|
t(this, "mesh");
|
|
92
98
|
t(this, "five");
|
|
93
99
|
t(this, "mode");
|
|
94
100
|
t(this, "path", []);
|
|
101
|
+
t(this, "_panoGroup", null);
|
|
95
102
|
t(this, "skippedPositions", null);
|
|
96
103
|
t(this, "textureUrl", "");
|
|
97
104
|
t(this, "scale", 1);
|
|
@@ -99,10 +106,14 @@ class x {
|
|
|
99
106
|
t(this, "unitLength", 0.5);
|
|
100
107
|
t(this, "visible", !1);
|
|
101
108
|
t(this, "modeVisible", !1);
|
|
109
|
+
t(this, "defaultVisible", !0);
|
|
110
|
+
t(this, "inWalkAnimation", !1);
|
|
102
111
|
t(this, "customVisible", null);
|
|
112
|
+
t(this, "parent");
|
|
103
113
|
t(this, "plugin");
|
|
104
114
|
t(this, "textureHasLoaded", !1);
|
|
105
115
|
t(this, "disposed", !1);
|
|
116
|
+
t(this, "onTagContainerChange", (e, i) => new U({ target: e, intro: !0, props: i.data }).$destroy);
|
|
106
117
|
t(this, "onPluginShow", () => {
|
|
107
118
|
this.updateVisible();
|
|
108
119
|
});
|
|
@@ -115,38 +126,47 @@ class x {
|
|
|
115
126
|
t(this, "onPluginDisable", () => {
|
|
116
127
|
this.updateVisible();
|
|
117
128
|
});
|
|
129
|
+
t(this, "onWalkAnimationStart", () => {
|
|
130
|
+
this.inWalkAnimation = !0, this.updateVisible();
|
|
131
|
+
});
|
|
132
|
+
t(this, "onWalkAnimationEnd", () => {
|
|
133
|
+
this.inWalkAnimation = !1, this.updateVisible();
|
|
134
|
+
});
|
|
118
135
|
t(this, "onFiveModeChange", (e) => {
|
|
119
|
-
this.modeVisible = this.mode === "panorama" ?
|
|
136
|
+
this.modeVisible = this.mode === "panorama" ? k(e) : P(e), this.updateVisible();
|
|
120
137
|
});
|
|
121
|
-
t(this, "logWarning", (e) =>
|
|
122
|
-
t(this, "logError", (e) =>
|
|
123
|
-
this.five = e, this.mode = i.mode, this.plugin = i.plugin;
|
|
124
|
-
const s = new
|
|
125
|
-
vertexShader:
|
|
126
|
-
fragmentShader:
|
|
138
|
+
t(this, "logWarning", (e) => E("GuideLineModeItem: ", e));
|
|
139
|
+
t(this, "logError", (e) => F("GuideLineModeItem: ", e));
|
|
140
|
+
this.five = e, this.mode = i.mode, this.plugin = i.plugin, this.parent = i.parent, this.startTagPlugin = new p(this.five), this.endTagPlugin = new p(this.five);
|
|
141
|
+
const s = new o.BufferGeometry(), a = new o.ShaderMaterial({
|
|
142
|
+
vertexShader: x,
|
|
143
|
+
fragmentShader: L,
|
|
127
144
|
transparent: !0,
|
|
128
145
|
uniforms: {
|
|
129
146
|
map: { value: null },
|
|
130
147
|
useMapColor: { value: 0 },
|
|
131
|
-
mapColor: { value: new
|
|
148
|
+
mapColor: { value: new o.Color() },
|
|
132
149
|
mapOpacity: { value: 1 },
|
|
133
|
-
backgroundColor: { value: new
|
|
150
|
+
backgroundColor: { value: new o.Color() },
|
|
134
151
|
backgroundOpacity: { value: 0 },
|
|
135
152
|
opacity: { value: 1 },
|
|
136
153
|
maxU: { value: 0 }
|
|
137
154
|
}
|
|
138
155
|
});
|
|
139
|
-
this.mesh = new
|
|
156
|
+
this.mesh = new o.Mesh(s, a), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.plugin.hooks.on("show", this.onPluginShow), this.plugin.hooks.on("hide", this.onPluginHide), this.plugin.hooks.on("enable", this.onPluginEnable), this.plugin.hooks.on("disable", this.onPluginDisable), this.five.on("modeChange", this.onFiveModeChange), this.onFiveModeChange(this.five.getCurrentState().mode);
|
|
157
|
+
}
|
|
158
|
+
get panoGroup() {
|
|
159
|
+
return this._panoGroup;
|
|
140
160
|
}
|
|
141
161
|
setCustomVisible(e) {
|
|
142
162
|
if (this.disposed)
|
|
143
163
|
return this.logError("disposed");
|
|
144
164
|
this.customVisible !== e && (this.customVisible = e, this.updateVisible());
|
|
145
165
|
}
|
|
146
|
-
|
|
166
|
+
setDefaultVisible(e) {
|
|
147
167
|
if (this.disposed)
|
|
148
168
|
return this.logError("disposed");
|
|
149
|
-
this.
|
|
169
|
+
this.defaultVisible !== e && (this.defaultVisible = e, this.updateVisible());
|
|
150
170
|
}
|
|
151
171
|
dispose() {
|
|
152
172
|
this.disposed || (this.disposed = !0, this.five.off("modeChange", this.onFiveModeChange), this.plugin.hooks.off("show", this.onPluginShow), this.plugin.hooks.off("hide", this.onPluginHide), this.plugin.hooks.off("enable", this.onPluginEnable), this.plugin.hooks.off("disable", this.onPluginDisable), this.doHide());
|
|
@@ -166,46 +186,42 @@ class x {
|
|
|
166
186
|
return this.logError("disposed");
|
|
167
187
|
if (!this.five.work)
|
|
168
188
|
return this.logError("setPathByPanoGroup: work is not ready");
|
|
189
|
+
if (this._panoGroup = e, (i == null ? void 0 : i.skipPanoGroup) !== void 0) {
|
|
190
|
+
const a = i.skipPanoGroup ? e.map((u) => this.five.work.observers[u]).map((u) => u.standingPosition.clone()) : null;
|
|
191
|
+
this.skippedPositions = a;
|
|
192
|
+
}
|
|
169
193
|
const s = this.getPathFromPanoGroup(e, this.five.work, i);
|
|
170
194
|
this.path = s, this.setGeometryByPath(s, i);
|
|
171
195
|
}
|
|
172
196
|
setGeometryByPath(e, i) {
|
|
173
|
-
var
|
|
197
|
+
var l, d, m;
|
|
174
198
|
if (this.disposed)
|
|
175
199
|
return this.logError("disposed");
|
|
176
|
-
const s = (
|
|
177
|
-
this.path = e, this.scale = s, this.width =
|
|
178
|
-
const { geometry:
|
|
200
|
+
const s = (l = i == null ? void 0 : i.scale) != null ? l : this.scale, a = (d = i == null ? void 0 : i.width) != null ? d : this.width, u = (m = i == null ? void 0 : i.unit_length) != null ? m : this.unitLength;
|
|
201
|
+
this.path = e, this.scale = s, this.width = a, this.unitLength = u;
|
|
202
|
+
const { geometry: n, maxU: c } = y({
|
|
179
203
|
path: e,
|
|
180
|
-
width:
|
|
181
|
-
unitLength:
|
|
204
|
+
width: a * s,
|
|
205
|
+
unitLength: u * s,
|
|
182
206
|
skipPositions: this.skippedPositions
|
|
183
207
|
});
|
|
184
|
-
this.mesh.geometry =
|
|
185
|
-
}
|
|
186
|
-
setSkippedPanoGroup(e) {
|
|
187
|
-
if (this.disposed)
|
|
188
|
-
return this.logError("disposed");
|
|
189
|
-
if (!this.five.work)
|
|
190
|
-
return this.logError("setSkippedPanoGroup: work is not ready");
|
|
191
|
-
const i = e ? e.map((s) => this.five.work.observers[s]).map((s) => s.standingPosition.clone()) : null;
|
|
192
|
-
this.skippedPositions = i;
|
|
208
|
+
this.mesh.geometry = n, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = c, this.five.needsRender = !0;
|
|
193
209
|
}
|
|
194
210
|
setMartial(e) {
|
|
195
211
|
var i;
|
|
196
212
|
if (this.disposed)
|
|
197
213
|
return this.logError("disposed");
|
|
198
|
-
e
|
|
214
|
+
(e == null ? void 0 : e.visible) !== void 0 && this.setDefaultVisible(e.visible), (e == null ? void 0 : e.color) !== void 0 && this.setColor(e.color), (e == null ? void 0 : e.opacity) !== void 0 && this.setOpacity(e.opacity), ((i = e == null ? void 0 : e.texture) == null ? void 0 : i.url) !== void 0 && this.setTextureUrl(e.texture.url), (e == null ? void 0 : e.background_color) !== void 0 && this.setBackgroundColor(e.background_color), (e == null ? void 0 : e.background_opacity) !== void 0 && this.setBackgroundOpacity(e.background_opacity);
|
|
199
215
|
}
|
|
200
216
|
setColor(e) {
|
|
201
217
|
if (this.disposed)
|
|
202
218
|
return this.logError("disposed");
|
|
203
|
-
this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniforms.mapColor.value = new
|
|
219
|
+
this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniforms.mapColor.value = new o.Color().setRGB(e[0], e[1], e[2]), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
204
220
|
}
|
|
205
221
|
setBackgroundColor(e) {
|
|
206
222
|
if (this.disposed)
|
|
207
223
|
return this.logError("disposed");
|
|
208
|
-
this.mesh.material.uniforms.backgroundColor.value = new
|
|
224
|
+
this.mesh.material.uniforms.backgroundColor.value = new o.Color().setRGB(e[0], e[1], e[2]), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
209
225
|
}
|
|
210
226
|
setOpacity(e) {
|
|
211
227
|
if (this.disposed)
|
|
@@ -225,12 +241,22 @@ class x {
|
|
|
225
241
|
setTextureUrl(e) {
|
|
226
242
|
if (this.disposed)
|
|
227
243
|
return this.logError("disposed");
|
|
228
|
-
this.textureUrl = e,
|
|
229
|
-
this.disposed || this.textureUrl === e && (i.wrapT =
|
|
244
|
+
this.textureUrl = e, w(e).then((i) => {
|
|
245
|
+
this.disposed || this.textureUrl === e && (i.wrapT = o.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.uniforms.map.value = i, this.mesh.material.uniformsNeedUpdate = !0, this.mesh.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
|
|
230
246
|
});
|
|
231
247
|
}
|
|
248
|
+
setStartTag(e) {
|
|
249
|
+
this.setTag("start", e);
|
|
250
|
+
}
|
|
251
|
+
setEndTag(e) {
|
|
252
|
+
this.setTag("end", e);
|
|
253
|
+
}
|
|
254
|
+
setTag(e, i) {
|
|
255
|
+
const s = e === "start" ? this.startTagPlugin : this.endTagPlugin;
|
|
256
|
+
T(i) && (i.element = (a) => this.onTagContainerChange(a, i)), s.load({ tagList: [i] });
|
|
257
|
+
}
|
|
232
258
|
updateVisible() {
|
|
233
|
-
const e = (() => !this.plugin.state.enabled || !this.plugin.state.visible ? !1 : this.customVisible !== null ? this.customVisible : this.modeVisible && this.textureHasLoaded)();
|
|
259
|
+
const e = (() => !this.plugin.state.enabled || !this.plugin.state.visible ? !1 : this.customVisible !== null ? this.customVisible : this.inWalkAnimation ? !0 : this.modeVisible && this.textureHasLoaded && this.defaultVisible)();
|
|
234
260
|
this.visible !== e && (this.visible = e, e ? this.doShow() : this.doHide());
|
|
235
261
|
}
|
|
236
262
|
doShow() {
|
|
@@ -240,15 +266,20 @@ class x {
|
|
|
240
266
|
this.five.scene.remove(this.mesh), this.five.needsRender = !0;
|
|
241
267
|
}
|
|
242
268
|
getPathFromPanoGroup(e, i, s) {
|
|
243
|
-
|
|
244
|
-
|
|
269
|
+
if (e.length < 2)
|
|
270
|
+
return [];
|
|
271
|
+
const u = e.map((n) => i.observers[n]).map((n) => n.standingPosition.toArray());
|
|
272
|
+
return [f({ type: "CatmullRomCurve3", points: u }, s)];
|
|
245
273
|
}
|
|
246
274
|
}
|
|
247
|
-
|
|
275
|
+
function T(r) {
|
|
276
|
+
return r.contentType === "Custom";
|
|
277
|
+
}
|
|
278
|
+
const $ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
248
279
|
__proto__: null,
|
|
249
|
-
GuideLineModeItem:
|
|
280
|
+
GuideLineModeItem: V
|
|
250
281
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
251
282
|
export {
|
|
252
|
-
|
|
253
|
-
|
|
283
|
+
V as GuideLineModeItem,
|
|
284
|
+
$ as GuideLineModeItem$1
|
|
254
285
|
};
|
|
@@ -2,61 +2,94 @@ import type GuideLinePlugin from './Controller';
|
|
|
2
2
|
import type { Five } from '@realsee/five';
|
|
3
3
|
import type * as PluginType from './typing';
|
|
4
4
|
import * as THREE from 'three';
|
|
5
|
+
import { GuideLineItem } from './GuideLineItem';
|
|
6
|
+
import { PanoTagPluginController, Tag } from '../PanoTagPlugin';
|
|
5
7
|
/** @link https://threejs.org/docs/index.html#api/en/extras/curves/CatmullRomCurve3 */
|
|
6
8
|
declare type CatmullRomCurve3RestParams = Omit<PluginType.CatmullRomCurve3, 'type' | 'points'>;
|
|
7
9
|
/** 在不同模态下的 GuideLine */
|
|
8
10
|
declare class GuideLineModeItem {
|
|
11
|
+
get panoGroup(): number[];
|
|
12
|
+
startTagPlugin: PanoTagPluginController;
|
|
13
|
+
endTagPlugin: PanoTagPluginController;
|
|
9
14
|
readonly mesh: THREE.Mesh<THREE.BufferGeometry, THREE.ShaderMaterial>;
|
|
10
15
|
private five;
|
|
11
16
|
private mode;
|
|
12
17
|
private path;
|
|
18
|
+
private _panoGroup;
|
|
13
19
|
private skippedPositions;
|
|
14
20
|
private textureUrl;
|
|
15
21
|
private scale;
|
|
16
22
|
private width;
|
|
17
23
|
private unitLength;
|
|
18
24
|
private visible;
|
|
19
|
-
/**
|
|
25
|
+
/** Five Mode 是否满足 */
|
|
20
26
|
private modeVisible;
|
|
27
|
+
/** 默认是否展示 */
|
|
28
|
+
private defaultVisible;
|
|
29
|
+
/** 走点动画 */
|
|
30
|
+
private inWalkAnimation;
|
|
21
31
|
private customVisible;
|
|
32
|
+
private parent;
|
|
22
33
|
private plugin;
|
|
23
34
|
private textureHasLoaded;
|
|
24
35
|
private disposed;
|
|
25
36
|
constructor(five: Five, options: {
|
|
26
37
|
mode: PluginType.GuideLineModeItemMode;
|
|
27
38
|
plugin: GuideLinePlugin;
|
|
39
|
+
parent: GuideLineItem;
|
|
28
40
|
});
|
|
29
41
|
/** 自定义展示 */
|
|
30
42
|
setCustomVisible(visible: boolean | null): void;
|
|
31
|
-
/**
|
|
32
|
-
|
|
43
|
+
/** 设置默认展示 */
|
|
44
|
+
setDefaultVisible(visible: boolean): void;
|
|
33
45
|
dispose(): void;
|
|
34
46
|
/** 基础宽、长 */
|
|
35
47
|
setUnitSize(width: number, length: number): void;
|
|
36
48
|
/** 设置缩放 */
|
|
37
49
|
setScale(scale: number): void;
|
|
38
50
|
/** 通过点位设置线条形状 */
|
|
39
|
-
setGeometryByPanoGroup(panoGroup: number[], options?: CatmullRomCurve3RestParams & PluginType.GuideLineGeometryStyle
|
|
51
|
+
setGeometryByPanoGroup(panoGroup: number[], options?: CatmullRomCurve3RestParams & PluginType.GuideLineGeometryStyle & {
|
|
52
|
+
skipPanoGroup?: boolean;
|
|
53
|
+
}): void;
|
|
40
54
|
/** 通过路径设置线条形状 */
|
|
41
55
|
setGeometryByPath(path: PluginType.PathItem[], options?: PluginType.GuideLineGeometryStyle): void;
|
|
42
|
-
setSkippedPanoGroup(panoGroup: null | number[]): void;
|
|
43
56
|
/** 设置线条材质 */
|
|
44
57
|
setMartial(options?: PluginType.GuideLineMaterialStyle): void;
|
|
58
|
+
/** 设置贴图颜色 */
|
|
45
59
|
setColor(color: null | number[]): void;
|
|
60
|
+
/** 设置背景颜色 */
|
|
46
61
|
setBackgroundColor(color: number[]): void;
|
|
62
|
+
/** 设置整体透明度 */
|
|
47
63
|
setOpacity(opacity: number): void;
|
|
64
|
+
/** 设置背景透明度 */
|
|
48
65
|
setBackgroundOpacity(opacity: number): void;
|
|
66
|
+
/** 设置贴图透明度 */
|
|
49
67
|
setMapOpacity(opacity: number): void;
|
|
68
|
+
/** 设置贴图 */
|
|
50
69
|
setTextureUrl(url: string): void;
|
|
70
|
+
setStartTag(tag: Tag): void;
|
|
71
|
+
setEndTag(tag: Tag): void;
|
|
72
|
+
private setTag;
|
|
73
|
+
private onTagContainerChange;
|
|
74
|
+
/** 当设置 GuideLinePLugin 展示 */
|
|
51
75
|
private onPluginShow;
|
|
76
|
+
/** 当设置 GuideLinePLugin 隐藏 */
|
|
52
77
|
private onPluginHide;
|
|
78
|
+
/** 当设置 GuideLinePLugin 开启 */
|
|
53
79
|
private onPluginEnable;
|
|
80
|
+
/** 当设置 GuideLinePLugin 关闭 */
|
|
54
81
|
private onPluginDisable;
|
|
82
|
+
/** 开始走点动画 */
|
|
83
|
+
private onWalkAnimationStart;
|
|
84
|
+
/** 结束走点动画 */
|
|
85
|
+
private onWalkAnimationEnd;
|
|
55
86
|
/** 模型状态变更 */
|
|
56
87
|
private onFiveModeChange;
|
|
88
|
+
/** 更新可见性 */
|
|
57
89
|
private updateVisible;
|
|
58
90
|
private doShow;
|
|
59
91
|
private doHide;
|
|
92
|
+
/** 通过 panoIndex 数组计算路径 */
|
|
60
93
|
private getPathFromPanoGroup;
|
|
61
94
|
private logWarning;
|
|
62
95
|
private logError;
|
|
@@ -9,7 +9,11 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
|
9
9
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
10
10
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
11
11
|
import "../shared-utils/three/loadTexture.js";
|
|
12
|
-
import
|
|
12
|
+
import "object-assign-deep";
|
|
13
|
+
import { GuideLineModeItem as qi } from "./GuideLineModeItem/index.js";
|
|
14
|
+
import "../PanoTagPlugin/controller/index.js";
|
|
15
|
+
import "@realsee/five/gltf-loader";
|
|
16
|
+
import "./Components/Tag.js";
|
|
13
17
|
import "polyline-normals";
|
|
14
18
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
15
19
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -24,6 +28,106 @@ import "../shared-utils/three/centerPoint.js";
|
|
|
24
28
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
25
29
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
26
30
|
import "../shared-utils/animationFrame/index.js";
|
|
31
|
+
import "../PanoTagPlugin/utils/addDebugPoints.js";
|
|
32
|
+
import "../PanoTagPlugin/utils/tag/tagCheck.js";
|
|
33
|
+
import "../PanoTagPlugin/utils/actionAfterFiveModelLoad.js";
|
|
34
|
+
import "../PanoTagPlugin/utils/debounce.js";
|
|
35
|
+
import "../PanoTagPlugin/utils/throttle.js";
|
|
36
|
+
import "../PanoTagPlugin/utils/resizeObserver.js";
|
|
37
|
+
import "../PanoTagPlugin/utils/tag/format.js";
|
|
38
|
+
import "../shared-utils/audio.js";
|
|
39
|
+
import "../PanoTagPlugin/controller/TagRender.js";
|
|
40
|
+
import "../PanoTagPlugin/controller/TagComputer.js";
|
|
41
|
+
import "../PanoTagPlugin/utils/tagPosition.js";
|
|
42
|
+
import "../PanoTagPlugin/utils/checkRange.js";
|
|
43
|
+
import "../shared-utils/isNil.js";
|
|
44
|
+
import "../PanoTagPlugin/controller/TagUtil.js";
|
|
45
|
+
import "../PanoTagPlugin/tag.config.js";
|
|
46
|
+
import "../PanoTagPlugin/utils/planeNormal.js";
|
|
47
|
+
import "../PanoTagPlugin/utils/normalPositionToPositions.js";
|
|
48
|
+
import "../PanoTagPlugin/controller/TagCache.js";
|
|
49
|
+
import "../base/BasePlugin.js";
|
|
50
|
+
import "../shared-utils/isAbsoluteURL.js";
|
|
51
|
+
import "../vendor/svelte/store/index.js";
|
|
52
|
+
import "../vendor/svelte/internal/index.js";
|
|
53
|
+
import "../PanoTagPlugin/utils/device.js";
|
|
54
|
+
import "../shared-utils/threex/domevents/index.js";
|
|
55
|
+
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
56
|
+
import "../PanoTagPlugin/Components/TagItem.js";
|
|
57
|
+
import "../PanoTagPlugin/Components/Tag/index.js";
|
|
58
|
+
import "../PanoTagPlugin/Components/Tag/TextTag/index.js";
|
|
59
|
+
import "../PanoTagPlugin/Components/Tag/TextTag/TextTag.js";
|
|
60
|
+
import "../PanoTagPlugin/Components/Common/Line/Straight.js";
|
|
61
|
+
import "../vendor/svelte/transition/index.js";
|
|
62
|
+
import "../vendor/svelte/easing/index.js";
|
|
63
|
+
import "../shared-utils/uuid.js";
|
|
64
|
+
import "../PanoTagPlugin/Components/Common/Shadow.js";
|
|
65
|
+
import "../PanoTagPlugin/Components/Common/Text/FlyMText.js";
|
|
66
|
+
import "../PanoTagPlugin/Components/Common/Text/FlyText.js";
|
|
67
|
+
import "animejs";
|
|
68
|
+
import "../PanoTagPlugin/utils/search.js";
|
|
69
|
+
import "../PanoTagPlugin/utils/constants.js";
|
|
70
|
+
import "../PanoTagPlugin/Components/Common/Arrow.js";
|
|
71
|
+
import "../PanoTagPlugin/Assets/Icon.js";
|
|
72
|
+
import "../PanoTagPlugin/utils/doUtil.js";
|
|
73
|
+
import "../shared-utils/svelte/resizeObserver.js";
|
|
74
|
+
import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
75
|
+
import "../PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js";
|
|
76
|
+
import "../PanoTagPlugin/Components/Common/Text/MText.js";
|
|
77
|
+
import "../PanoTagPlugin/utils/px2rem.js";
|
|
78
|
+
import "../PanoTagPlugin/Components/Tag/ImageTextTag.js";
|
|
79
|
+
import "../PanoTagPlugin/Components/Common/Line/Polyline.js";
|
|
80
|
+
import "../PanoTagPlugin/Components/Common/Media.js";
|
|
81
|
+
import "../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
|
|
82
|
+
import "../vendor/svelte-carousel/src/components/Dots/Dots.js";
|
|
83
|
+
import "../vendor/svelte-carousel/src/components/Dot/Dot.js";
|
|
84
|
+
import "../vendor/svelte-carousel/src/components/Arrow/Arrow.js";
|
|
85
|
+
import "../vendor/svelte-carousel/src/direction.js";
|
|
86
|
+
import "../vendor/svelte-carousel/src/components/Progress/Progress.js";
|
|
87
|
+
import "../vendor/svelte-carousel/src/actions/swipeable/swipeable.js";
|
|
88
|
+
import "../vendor/svelte-carousel/src/actions/swipeable/event.js";
|
|
89
|
+
import "../vendor/svelte-carousel/src/utils/event.js";
|
|
90
|
+
import "../vendor/svelte-carousel/src/units.js";
|
|
91
|
+
import "../vendor/svelte-carousel/src/actions/hoverable/hoverable.js";
|
|
92
|
+
import "../vendor/svelte-carousel/src/actions/hoverable/event.js";
|
|
93
|
+
import "../vendor/svelte-carousel/src/actions/tappable/tappable.js";
|
|
94
|
+
import "../vendor/svelte-carousel/src/utils/math.js";
|
|
95
|
+
import "../vendor/svelte-carousel/src/actions/tappable/event.js";
|
|
96
|
+
import "../vendor/svelte-carousel/src/utils/page.js";
|
|
97
|
+
import "../vendor/svelte-carousel/src/utils/clones.js";
|
|
98
|
+
import "../vendor/svelte-carousel/src/utils/object.js";
|
|
99
|
+
import "../vendor/svelte-carousel/src/components/Carousel/createCarousel.js";
|
|
100
|
+
import "../vendor/simply-reactive/src/simply-reactive.js";
|
|
101
|
+
import "lodash.get";
|
|
102
|
+
import "lodash.clonedeep";
|
|
103
|
+
import "../vendor/simply-reactive/src/utils/subscription.js";
|
|
104
|
+
import "../vendor/simply-reactive/src/utils/object.js";
|
|
105
|
+
import "lodash.isequal";
|
|
106
|
+
import "../vendor/simply-reactive/src/utils/watcher.js";
|
|
107
|
+
import "../vendor/svelte-carousel/src/utils/lazy.js";
|
|
108
|
+
import "../vendor/svelte-carousel/src/utils/ProgressManager.js";
|
|
109
|
+
import "../vendor/svelte-carousel/src/utils/interval.js";
|
|
110
|
+
import "../PanoTagPlugin/Components/Common/MediaItem.js";
|
|
111
|
+
import "../PanoTagPlugin/Components/Tag/MarketingTag.js";
|
|
112
|
+
import "../PanoTagPlugin/utils/noTypecheck.js";
|
|
113
|
+
import "../PanoTagPlugin/Components/Tag/AudioTag/index.js";
|
|
114
|
+
import "../PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js";
|
|
115
|
+
import "../PanoTagPlugin/Components/Common/Audio.js";
|
|
116
|
+
import "../PanoTagPlugin/utils/audio/SharedAudio.js";
|
|
117
|
+
import "../PanoTagPlugin/Components/Common/Icon/audioIcon.js";
|
|
118
|
+
import "../PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
119
|
+
import "../PanoTagPlugin/Components/Tag/MediaPlane.js";
|
|
120
|
+
import "../PanoTagPlugin/Components/Tag/LinkTag.js";
|
|
121
|
+
import "../PanoTagPlugin/Components/Common/Icon/Icon.js";
|
|
122
|
+
import "../PanoTagPlugin/utils/getImageInfo.js";
|
|
123
|
+
import "../PanoTagPlugin/Components/Tag/CustomTag.js";
|
|
124
|
+
import "classnames";
|
|
125
|
+
import "../PanoTagPlugin/Components/Common/TagPoint.js";
|
|
126
|
+
import "../PanoTagPlugin/utils/model/imagePlane.js";
|
|
127
|
+
import "../CSS3DRenderPlugin/index.js";
|
|
128
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
129
|
+
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
130
|
+
import "../shared-utils/three/GLTFLoader.js";
|
|
27
131
|
export {
|
|
28
|
-
|
|
132
|
+
qi as GuideLineModeItem
|
|
29
133
|
};
|