@realsee/dnalogel 2.16.0-2 → 2.16.0-alpha.0
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/Controller.d.ts +0 -1
- package/dist/CruisePlugin/Controller.d.ts +2 -1
- package/dist/CruisePlugin/typing.d.ts +2 -12
- package/dist/GuideLinePlugin/Controller.d.ts +12 -20
- package/dist/GuideLinePlugin/index.d.ts +0 -4
- package/dist/GuideLinePlugin/typing.d.ts +1 -70
- package/dist/GuideLinePlugin/utils/getLineGeometries.d.ts +16 -0
- package/dist/PanoTagPlugin/typings/controller.d.ts +5 -2
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +1 -3
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +4 -1
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +69 -0
- package/dist/base/BasePlugin.d.ts +0 -1
- package/dist/index.cjs.js +115 -162
- package/dist/index.js +5234 -5141
- package/dist/index.umd.js +116 -163
- package/dist/shared-utils/five/FiveDomEvents.d.ts +11 -0
- package/dist/shared-utils/index.d.ts +0 -3
- package/dist/shared-utils/logger.d.ts +17 -0
- package/dist/shared-utils/math/pointIsRectangle.d.ts +2 -0
- package/dist/shared-utils/offscreenCanvas.d.ts +2 -0
- package/dist/shared-utils/three/Quadrangle.d.ts +20 -0
- package/dist/shared-utils/three/getPositionsByObjectFit.d.ts +2 -0
- package/dist/shared-utils/three/loadVideoTexture.d.ts +4 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -34
- package/docs/classes/CruisePluginController.html +27 -46
- package/docs/classes/Magnifier.html +20 -23
- package/docs/classes/ModelRoomLabelController.html +11 -14
- package/docs/classes/Object3DHelperController.html +24 -43
- package/docs/classes/PaintBrush.html +15 -18
- package/docs/classes/PanoMeasurePluginLine.html +23 -26
- package/docs/classes/PanoMeasurePluginModel.html +22 -25
- package/docs/classes/PanoMeasurePluginPoint.html +14 -17
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -29
- package/docs/classes/PanoTagPluginController.html +65 -84
- package/docs/classes/Util.BetterTween.html +8 -11
- package/docs/classes/Util.FivePointSelector.html +12 -15
- package/docs/classes/Util.Interval.html +12 -15
- package/docs/classes/Util.Magnifier.html +17 -20
- package/docs/classes/Util.PointDomHelper.html +11 -14
- package/docs/classes/Util.PointHelper.html +11 -14
- package/docs/classes/Util.Rectangle.html +13 -16
- package/docs/enums/CameraMovementEffect.html +7 -10
- package/docs/enums/ContentType.html +19 -22
- package/docs/enums/DIRECTION.html +9 -12
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -12
- package/docs/enums/DimensionType.html +7 -10
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -11
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -12
- package/docs/enums/PaintBrushTypeEnum.html +8 -11
- package/docs/enums/Rotation.html +8 -11
- package/docs/functions/CSS3DRenderPlugin.html +5 -7
- package/docs/functions/CameraMovementPlugin.html +5 -7
- package/docs/functions/CruisePlugin.html +5 -7
- package/docs/functions/GuideLinePlugin.html +6 -8
- package/docs/functions/ItemLabelPlugin.html +5 -7
- package/docs/functions/MapviewFloorplanPlugin.html +5 -7
- package/docs/functions/ModelChassisCompassPlugin.html +5 -7
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -7
- package/docs/functions/ModelFloorplanPlugin.html +5 -7
- package/docs/functions/ModelItemLabelPlugin.html +5 -7
- package/docs/functions/ModelRoomLabelPlugin.html +5 -7
- package/docs/functions/ModelTVVideoPlugin.html +5 -7
- package/docs/functions/ModelViewPlugin.html +5 -7
- package/docs/functions/Object3DHelperPlugin.html +5 -7
- package/docs/functions/PanoCompassPlugin.html +5 -7
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -7
- package/docs/functions/PanoDoorLabelPlugin.html +5 -7
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -7
- package/docs/functions/PanoMeasurePlugin.html +5 -7
- package/docs/functions/PanoRulerPlugin.html +5 -7
- package/docs/functions/PanoRulerProPlugin.html +5 -7
- package/docs/functions/PanoSpatialTagPlugin.html +5 -7
- package/docs/functions/PanoTagPlugin.html +5 -7
- package/docs/functions/PanoVideoPlugin.html +5 -7
- package/docs/functions/TopviewFloorplanPlugin.html +5 -7
- package/docs/functions/Util.getCoordsFromClient.html +6 -13
- package/docs/functions/Util.getCoordsFromElement.html +6 -13
- package/docs/functions/Util.getFrameTime.html +6 -13
- package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -13
- package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -13
- package/docs/functions/Util.isNil.html +6 -13
- package/docs/functions/Util.nextFrame.html +6 -13
- package/docs/functions/Util.notNil.html +6 -13
- package/docs/functions/Util.requestAnimationFrameInterval.html +6 -13
- package/docs/functions/Util.tweenProgress.html +6 -13
- package/docs/functions/pluginFlag.html +6 -8
- package/docs/index.html +5 -7
- package/docs/interfaces/AddTagConfig.html +6 -9
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -14
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -11
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -10
- package/docs/interfaces/EventMap.html +15 -18
- package/docs/interfaces/FloorplanBounding.html +8 -11
- package/docs/interfaces/FloorplanData.html +10 -13
- package/docs/interfaces/FloorplanEntrance.html +11 -14
- package/docs/interfaces/FloorplanExtraObject.html +10 -13
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -11
- package/docs/interfaces/FloorplanFloorData.html +9 -12
- package/docs/interfaces/FloorplanImagePosition.html +7 -10
- package/docs/interfaces/FloorplanObserver.html +9 -12
- package/docs/interfaces/FloorplanOutlineItem.html +9 -12
- package/docs/interfaces/FloorplanPosition.html +7 -10
- package/docs/interfaces/FloorplanRoomItem.html +13 -16
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -10
- package/docs/interfaces/FloorplanServerBounding.html +8 -11
- package/docs/interfaces/FloorplanServerComputedData.html +10 -13
- package/docs/interfaces/FloorplanServerData.html +7 -10
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -13
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -11
- package/docs/interfaces/FloorplanServerEntrance.html +11 -14
- package/docs/interfaces/FloorplanServerFloorData.html +9 -12
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -10
- package/docs/interfaces/FloorplanServerObserver.html +9 -12
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -12
- package/docs/interfaces/FloorplanServerPosition.html +7 -10
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -17
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -10
- package/docs/interfaces/HelperOffset.html +8 -11
- package/docs/interfaces/ImagePlaneGroup.html +6 -9
- package/docs/interfaces/ItemLabelPluginData.html +6 -9
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -14
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -12
- package/docs/interfaces/MinMax.html +7 -10
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -10
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -11
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -10
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -11
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -11
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -9
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -14
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -10
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -9
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -12
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -11
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -9
- package/docs/interfaces/ModelViewPluginExportType.html +11 -14
- package/docs/interfaces/Object3DHelperState.html +8 -11
- package/docs/interfaces/ObjectHelperControllers.html +9 -12
- package/docs/interfaces/PaintBrushAction.html +12 -15
- package/docs/interfaces/PaintBrushConfigs.html +12 -15
- package/docs/interfaces/PaintBrushState.html +10 -13
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -13
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -8
- package/docs/interfaces/PanoMeasureParameterType.html +14 -17
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -11
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -10
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -10
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -13
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -10
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -11
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -12
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -10
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -10
- package/docs/interfaces/PanoRulerProPluginState.html +8 -11
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -8
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -8
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -14
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -13
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -16
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -13
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -16
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -14
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -13
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -9
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -11
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -9
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +15 -18
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -9
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -11
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -13
- package/docs/interfaces/Point.html +8 -11
- package/docs/interfaces/Room.html +9 -12
- package/docs/interfaces/RoomInfo.html +7 -10
- package/docs/interfaces/RoomLabel.html +14 -17
- package/docs/interfaces/RoomRules.html +6 -8
- package/docs/interfaces/Rooms.html +6 -8
- package/docs/interfaces/Scissor.html +9 -12
- package/docs/interfaces/State.html +8 -11
- package/docs/interfaces/TagCacheInterface.html +12 -15
- package/docs/interfaces/TagConfig.html +11 -14
- package/docs/interfaces/TagGLTFObjectGroup.html +6 -9
- package/docs/interfaces/TagIconUrl.html +11 -14
- package/docs/interfaces/TagObjectGroup.html +6 -9
- package/docs/interfaces/TagStyle.html +6 -9
- package/docs/interfaces/Tags.html +10 -13
- package/docs/interfaces/TemporaryState.html +6 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -14
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -11
- package/docs/modules/PanoVideoPluginType.html +5 -8
- package/docs/modules/Util.html +6 -17
- package/docs/modules.html +7 -11
- package/docs/types/ArrayPosition.html +6 -8
- package/docs/types/AudioAppearance.html +6 -8
- package/docs/types/AudioTagTypeConfigKey.html +6 -8
- package/docs/types/CSS3DRenderExportType.html +6 -8
- package/docs/types/CSS3DRenderPluginExportType.html +6 -8
- package/docs/types/CSS3DRenderPluginParameterType.html +6 -8
- package/docs/types/ClassFunctionParameters.html +6 -8
- package/docs/types/Color.html +6 -8
- package/docs/types/ContentTypeConfigKey.html +6 -8
- package/docs/types/ContentTypeConfigKeySplit.html +6 -8
- package/docs/types/ContentTypeMap.html +6 -8
- package/docs/types/Create3DDomContainerReturnType.html +6 -8
- package/docs/types/Create3DElementReturnType.html +6 -8
- package/docs/types/CruisePluginExportType.html +6 -8
- package/docs/types/Direction-1.html +6 -8
- package/docs/types/Direction4.html +6 -8
- package/docs/types/ElementRenderer.html +288 -0
- package/docs/types/FloorplanRuleLabels.html +6 -8
- package/docs/types/FloorplanServerRuleLabels.html +6 -8
- package/docs/types/GuideLinePluginExportType.html +6 -8
- package/docs/types/HelperEventMap.html +6 -8
- package/docs/types/LoadTagConfig.html +6 -8
- package/docs/types/MapviewFloorplanPluginParameterType.html +6 -8
- package/docs/types/MapviewFloorplanPluginReturnType.html +6 -8
- package/docs/types/MediaData.html +6 -8
- package/docs/types/MediaStore.html +6 -8
- package/docs/types/ModelElement.html +6 -8
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -8
- package/docs/types/ModelFloorplanPluginParameterType.html +6 -8
- package/docs/types/ModelFloorplanPluginReturnType.html +6 -8
- package/docs/types/ModelRoomLabelPluginParameters.html +6 -8
- package/docs/types/ModelRoomLabelPluginReturnType.html +6 -8
- package/docs/types/MoveArgs.html +6 -8
- package/docs/types/MoveOpts.html +6 -8
- package/docs/types/Object3DHelperEventMap.html +6 -8
- package/docs/types/ObjectFit.html +6 -8
- package/docs/types/PaintBrushEventMap.html +6 -8
- package/docs/types/PanoCompassPluginData.html +6 -8
- package/docs/types/PanoCompassPluginExportType.html +6 -8
- package/docs/types/PanoCompassPluginParameterType.html +6 -8
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -8
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -8
- package/docs/types/PanoIndex.html +6 -8
- package/docs/types/PanoMeasurePluginEvent.html +6 -8
- package/docs/types/PanoMeasureReturnType.html +6 -8
- package/docs/types/PanoSpatialTagPluginId.html +6 -8
- package/docs/types/PanoTagPluginExportInterface.html +6 -8
- package/docs/types/PanoTagPluginParamsInterface.html +6 -8
- package/docs/types/PanoVideoPluginParameterType.html +6 -8
- package/docs/types/PanoVideoPluginReturnType.html +6 -8
- package/docs/types/PlaneTag.html +6 -8
- package/docs/types/PlaneTagElement.html +6 -8
- package/docs/types/Point2DElement.html +6 -8
- package/docs/types/Point2DTag.html +6 -8
- package/docs/types/Point3DElement.html +6 -8
- package/docs/types/Point3DTag.html +6 -8
- package/docs/types/PointTag.html +6 -8
- package/docs/types/PointTagElement.html +6 -8
- package/docs/types/Position.html +6 -8
- package/docs/types/RotateArgs.html +6 -8
- package/docs/types/RotateOpts.html +6 -8
- package/docs/types/RuleLabelsKey.html +6 -8
- package/docs/types/RuleLabelsValue.html +6 -8
- package/docs/types/StickType.html +6 -8
- package/docs/types/Tag.html +7 -9
- package/docs/types/Tag2D.html +6 -8
- package/docs/types/Tag3D.html +6 -8
- package/docs/types/TagContentType.html +6 -8
- package/docs/types/TagDimensionType.html +6 -8
- package/docs/types/TagElement.html +7 -9
- package/docs/types/TagEvents.html +6 -8
- package/docs/types/TagGLTFObject.html +7 -9
- package/docs/types/TagHooks.html +6 -8
- package/docs/types/TagIconSize.html +6 -8
- package/docs/types/TagId.html +6 -8
- package/docs/types/TopviewFloorplanPluginParameterType.html +6 -8
- package/docs/types/TopviewFloorplanPluginReturnType.html +6 -8
- package/docs/types/WorkCode.html +6 -8
- package/docs/variables/FLOOR_TYPE_MAP.html +6 -8
- package/docs/variables/PLUGIN.html +6 -8
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -8
- package/docs/variables/ROOM_TYPE_MAP.html +6 -8
- package/docs/variables/itemLabelPluginServerParams.html +6 -8
- package/docs/variables/modelItemLabelPluginServerParams.html +6 -8
- package/docs/variables/modelRoomLabelPluginServerParams.html +6 -8
- package/libs/CSS3DRenderPlugin/Controller.d.ts +0 -1
- package/libs/CSS3DRenderPlugin/Controller.js +31 -40
- package/libs/CSS3DRenderPlugin/index.js +6 -12
- package/libs/CruisePlugin/Controller.d.ts +2 -1
- package/libs/CruisePlugin/Controller.js +174 -197
- package/libs/CruisePlugin/index.js +10 -33
- package/libs/CruisePlugin/typing.d.ts +2 -12
- package/libs/GuideLinePlugin/Controller.d.ts +12 -20
- package/libs/GuideLinePlugin/Controller.js +88 -125
- package/libs/GuideLinePlugin/index.d.ts +0 -4
- package/libs/GuideLinePlugin/index.js +7 -33
- package/libs/GuideLinePlugin/typing.d.ts +1 -70
- package/libs/GuideLinePlugin/utils/getLineGeometries.d.ts +16 -0
- package/libs/GuideLinePlugin/utils/getLineGeometries.js +64 -0
- package/libs/ModelTVVideoPlugin/Plugin.js +45 -53
- package/libs/ModelTVVideoPlugin/index.js +5 -11
- package/libs/Object3DHelperPlugin/Controller.js +28 -33
- package/libs/Object3DHelperPlugin/index.js +13 -18
- package/libs/PanoCompassPlugin/Controller.js +6 -8
- package/libs/PanoCompassPlugin/index.js +10 -12
- package/libs/PanoDoorLabelPlugin/BaseController.js +28 -47
- package/libs/PanoDoorLabelPlugin/Controller.js +22 -40
- package/libs/PanoDoorLabelPlugin/index.js +3 -21
- package/libs/PanoMeasurePlugin/typings/index.js +1 -20
- package/libs/PanoSpatialTagPlugin/Plugin.js +3 -8
- package/libs/PanoSpatialTagPlugin/index.js +3 -8
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +4 -2
- package/libs/PanoTagPlugin/Components/Common/Media.js +49 -49
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +4 -2
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +13 -11
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +20 -18
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +38 -36
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +25 -23
- package/libs/PanoTagPlugin/Components/Tag/index.js +26 -25
- package/libs/PanoTagPlugin/Components/TagContainer.js +4 -3
- package/libs/PanoTagPlugin/Components/TagItem.js +4 -3
- package/libs/PanoTagPlugin/controller/TagCache.js +22 -42
- package/libs/PanoTagPlugin/controller/TagComputer.js +4 -5
- package/libs/PanoTagPlugin/controller/TagRender.js +82 -63
- package/libs/PanoTagPlugin/controller/TagUtil.js +13 -20
- package/libs/PanoTagPlugin/controller/index.js +22 -15
- package/libs/PanoTagPlugin/index.js +17 -13
- package/libs/PanoTagPlugin/typings/controller.d.ts +5 -2
- package/libs/PanoTagPlugin/typings/index.js +6 -4
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +1 -3
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +4 -1
- package/libs/PanoTagPlugin/typings/tag/Utils.js +2 -0
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +4 -2
- package/libs/PanoTagPlugin/utils/index.js +35 -33
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +69 -0
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +214 -0
- package/libs/PanoTagPlugin/utils/planeNormal.js +4 -2
- package/libs/PanoTagPlugin/utils/tagPosition.js +9 -7
- package/libs/PanoVideoPlugin/Controller.js +3 -4
- package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
- package/libs/PanoVideoPlugin/index.js +6 -7
- package/libs/base/BasePlugin.d.ts +0 -1
- package/libs/base/BasePlugin.js +10 -21
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +38 -57
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +3 -22
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +29 -48
- package/libs/floorplan/ModelFloorplanPlugin/index.js +3 -22
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +11 -31
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +3 -23
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +40 -59
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +3 -22
- package/libs/floorplan/index.js +0 -6
- package/libs/index.js +120 -118
- package/libs/shared-utils/five/FiveDomEvents.d.ts +11 -0
- package/libs/shared-utils/five/FiveDomEvents.js +77 -0
- package/libs/shared-utils/index.d.ts +0 -3
- package/libs/shared-utils/index.js +29 -36
- package/libs/shared-utils/logger.d.ts +17 -0
- package/libs/shared-utils/logger.js +16 -0
- package/libs/shared-utils/math/pointIsRectangle.d.ts +2 -0
- package/libs/shared-utils/math/pointIsRectangle.js +10 -0
- package/libs/shared-utils/offscreenCanvas.d.ts +2 -0
- package/libs/shared-utils/offscreenCanvas.js +12 -0
- package/libs/shared-utils/three/PointDomHelper.js +1 -1
- package/libs/shared-utils/three/Quadrangle.d.ts +20 -0
- package/libs/shared-utils/three/Quadrangle.js +41 -0
- package/libs/shared-utils/three/getPositionsByObjectFit.d.ts +2 -0
- package/libs/shared-utils/three/getPositionsByObjectFit.js +20 -0
- package/libs/shared-utils/three/loadTexture.js +19 -21
- package/libs/shared-utils/three/loadVideoTexture.d.ts +4 -0
- package/libs/shared-utils/three/loadVideoTexture.js +14 -0
- package/package.json +2 -2
- package/dist/GuideLinePlugin/GuideLineItem.d.ts +0 -26
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +0 -64
- package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -19
- package/dist/GuideLinePlugin/utils/index.d.ts +0 -7
- package/dist/PanoTagPlugin/utils/model/imagePlane.d.ts +0 -9
- package/dist/shared-utils/five/index.d.ts +0 -1
- package/dist/shared-utils/five/mode.d.ts +0 -3
- package/dist/shared-utils/isAbsoluteURL.d.ts +0 -1
- package/dist/shared-utils/log.d.ts +0 -2
- package/docs/classes/GuideLineItem.GuideLineItem.html +0 -169
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -344
- package/docs/functions/Util.isAbsoluteURL.html +0 -79
- package/docs/functions/Util.isModelLike.html +0 -79
- package/docs/functions/Util.isPanoramaLike.html +0 -79
- package/docs/functions/Util.uuid.html +0 -76
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -97
- package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -258
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -92
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -87
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -108
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -85
- package/docs/interfaces/GuideLinePluginType.PluginDataV1.html +0 -76
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -71
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -82
- package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -99
- package/docs/interfaces/GuideLinePluginType.Route.html +0 -103
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -92
- package/docs/modules/GuideLineItem.html +0 -53
- package/docs/modules/GuideLineModeItem.html +0 -53
- package/docs/modules/GuideLinePluginType.html +0 -99
- package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -67
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -65
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -67
- package/docs/types/GuideLinePluginType.PathItem.html +0 -67
- package/docs/types/GuideLinePluginType.PluginData.html +0 -65
- package/libs/GuideLinePlugin/GuideLineItem/index.js +0 -35
- package/libs/GuideLinePlugin/GuideLineItem.d.ts +0 -26
- package/libs/GuideLinePlugin/GuideLineItem.js +0 -31
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +0 -231
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +0 -64
- package/libs/GuideLinePlugin/GuideLineModeItem.js +0 -29
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -19
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +0 -35
- package/libs/GuideLinePlugin/utils/dataFormatter.d.ts +0 -2
- package/libs/GuideLinePlugin/utils/dataFormatter.js +0 -6
- package/libs/GuideLinePlugin/utils/index.d.ts +0 -7
- package/libs/GuideLinePlugin/utils/index.js +0 -32
- package/libs/PanoTagPlugin/utils/model/imagePlane.d.ts +0 -9
- package/libs/PanoTagPlugin/utils/model/imagePlane.js +0 -33
- package/libs/shared-utils/five/index.d.ts +0 -1
- package/libs/shared-utils/five/index.js +0 -1
- package/libs/shared-utils/five/mode.d.ts +0 -3
- package/libs/shared-utils/five/mode.js +0 -11
- package/libs/shared-utils/isAbsoluteURL.d.ts +0 -1
- package/libs/shared-utils/isAbsoluteURL.js +0 -6
- package/libs/shared-utils/log.d.ts +0 -2
- package/libs/shared-utils/log.js +0 -10
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>PluginData | 如视看房插件合集 - v2.16.0-2</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.16.0-2"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
|
-
<div class="tsd-toolbar-contents container">
|
|
3
|
-
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
|
-
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
5
|
-
<div class="field">
|
|
6
|
-
<div id="tsd-toolbar-links"></div></div>
|
|
7
|
-
<ul class="results">
|
|
8
|
-
<li class="state loading">Preparing search index...</li>
|
|
9
|
-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.16.0-2</a></div>
|
|
10
|
-
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
|
-
<div class="container container-main">
|
|
12
|
-
<div class="col-8 col-content">
|
|
13
|
-
<div class="tsd-page-title">
|
|
14
|
-
<ul class="tsd-breadcrumb">
|
|
15
|
-
<li><a href="../modules.html">如视看房插件合集 - v2.16.0-2</a></li>
|
|
16
|
-
<li><a href="../modules/GuideLinePluginType.html">GuideLinePluginType</a></li>
|
|
17
|
-
<li><a href="GuideLinePluginType.PluginData.html">PluginData</a></li></ul>
|
|
18
|
-
<h1>Type alias PluginData</h1></div>
|
|
19
|
-
<div class="tsd-signature">Plugin<wbr/>Data<span class="tsd-signature-symbol">:</span> <a href="../interfaces/GuideLinePluginType.PluginDataV1.html" class="tsd-signature-type" data-tsd-kind="Interface">PluginDataV1</a><span class="tsd-signature-symbol"> | </span><a href="../interfaces/GuideLinePluginType.PluginDataV2.html" class="tsd-signature-type" data-tsd-kind="Interface">PluginDataV2</a></div><aside class="tsd-sources">
|
|
20
|
-
<ul>
|
|
21
|
-
<li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/a512d4d/plugins/src/GuideLinePlugin/typing.ts#L28">plugins/src/GuideLinePlugin/typing.ts:28</a></li></ul></aside></div>
|
|
22
|
-
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
23
|
-
<div class="tsd-navigation settings">
|
|
24
|
-
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
25
|
-
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Settings</h3></summary>
|
|
26
|
-
<div class="tsd-accordion-details">
|
|
27
|
-
<div class="tsd-filter-visibility">
|
|
28
|
-
<h4 class="uppercase">Member Visibility</h4><form>
|
|
29
|
-
<ul id="tsd-filter-options">
|
|
30
|
-
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></form></div>
|
|
31
|
-
<div class="tsd-theme-toggle">
|
|
32
|
-
<h4 class="uppercase">Theme</h4><select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
|
|
33
|
-
<nav class="tsd-navigation primary">
|
|
34
|
-
<details class="tsd-index-accordion" open><summary class="tsd-accordion-summary">
|
|
35
|
-
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
|
|
36
|
-
<div class="tsd-accordion-details">
|
|
37
|
-
<ul>
|
|
38
|
-
<li class="current"><a href="../modules.html">如视看房插件合集 -<wbr/> v2.16.0-<wbr/>2</a>
|
|
39
|
-
<ul>
|
|
40
|
-
<li class="tsd-kind-namespace"><a href="../modules/GuideLineItem.html">Guide<wbr/>Line<wbr/>Item</a></li>
|
|
41
|
-
<li class="tsd-kind-namespace"><a href="../modules/GuideLineModeItem.html">Guide<wbr/>Line<wbr/>Mode<wbr/>Item</a></li>
|
|
42
|
-
<li class="current tsd-kind-namespace"><a href="../modules/GuideLinePluginType.html">Guide<wbr/>Line<wbr/>Plugin<wbr/>Type</a></li>
|
|
43
|
-
<li class="tsd-kind-namespace"><a href="../modules/PanoVideoPluginType.html">Pano<wbr/>Video<wbr/>Plugin<wbr/>Type</a></li>
|
|
44
|
-
<li class="tsd-kind-namespace"><a href="../modules/Util.html">Util</a></li></ul></li></ul></div></details></nav>
|
|
45
|
-
<nav class="tsd-navigation secondary menu-sticky">
|
|
46
|
-
<ul>
|
|
47
|
-
<li class="tsd-kind-reference tsd-parent-kind-namespace"><a href="../modules/GuideLinePluginType.html#GuideLinePluginExportType" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF4D82" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-8388608-path"></rect><path d="M10.354 17V8.24H13.066C13.586 8.24 14.042 8.348 14.434 8.564C14.826 8.772 15.13 9.064 15.346 9.44C15.562 9.816 15.67 10.256 15.67 10.76C15.67 11.352 15.514 11.86 15.202 12.284C14.898 12.708 14.482 13 13.954 13.16L15.79 17H14.518L12.838 13.28H11.434V17H10.354ZM11.434 12.308H13.066C13.514 12.308 13.874 12.168 14.146 11.888C14.418 11.6 14.554 11.224 14.554 10.76C14.554 10.288 14.418 9.912 14.146 9.632C13.874 9.352 13.514 9.212 13.066 9.212H11.434V12.308Z" fill="var(--color-text)" id="icon-8388608-text"></path></svg>Guide<wbr/>Line<wbr/>Plugin<wbr/>Export<wbr/>Type</a></li>
|
|
48
|
-
<li class="tsd-kind-interface tsd-parent-kind-namespace"><a href="../interfaces/GuideLinePluginType.CatmullRomCurve3.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-256-path"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)" id="icon-256-text"></path></svg>Catmull<wbr/>Rom<wbr/>Curve3</a></li>
|
|
49
|
-
<li class="tsd-kind-interface tsd-parent-kind-namespace"><a href="../interfaces/GuideLinePluginType.EventMap.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Event<wbr/>Map</a></li>
|
|
50
|
-
<li class="tsd-kind-interface tsd-parent-kind-namespace"><a href="../interfaces/GuideLinePluginType.GuideLineGeometryStyle.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Guide<wbr/>Line<wbr/>Geometry<wbr/>Style</a></li>
|
|
51
|
-
<li class="tsd-kind-interface tsd-parent-kind-namespace"><a href="../interfaces/GuideLinePluginType.GuideLineItemContainer.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Guide<wbr/>Line<wbr/>Item<wbr/>Container</a></li>
|
|
52
|
-
<li class="tsd-kind-interface tsd-parent-kind-namespace"><a href="../interfaces/GuideLinePluginType.GuideLineMaterialStyle.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Guide<wbr/>Line<wbr/>Material<wbr/>Style</a></li>
|
|
53
|
-
<li class="tsd-kind-interface tsd-parent-kind-namespace"><a href="../interfaces/GuideLinePluginType.LineGeometriesConfig.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Line<wbr/>Geometries<wbr/>Config</a></li>
|
|
54
|
-
<li class="tsd-kind-interface tsd-parent-kind-namespace"><a href="../interfaces/GuideLinePluginType.PluginDataV1.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Plugin<wbr/>Data<wbr/>V1</a></li>
|
|
55
|
-
<li class="tsd-kind-interface tsd-parent-kind-namespace"><a href="../interfaces/GuideLinePluginType.PluginDataV2.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Plugin<wbr/>Data<wbr/>V2</a></li>
|
|
56
|
-
<li class="tsd-kind-interface tsd-parent-kind-namespace"><a href="../interfaces/GuideLinePluginType.PluginServerData.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Plugin<wbr/>Server<wbr/>Data</a></li>
|
|
57
|
-
<li class="tsd-kind-interface tsd-parent-kind-namespace"><a href="../interfaces/GuideLinePluginType.PluginState.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Plugin<wbr/>State</a></li>
|
|
58
|
-
<li class="tsd-kind-interface tsd-parent-kind-namespace"><a href="../interfaces/GuideLinePluginType.Route.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Route</a></li>
|
|
59
|
-
<li class="tsd-kind-interface tsd-parent-kind-namespace"><a href="../interfaces/GuideLinePluginType.RouteConfig.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Route<wbr/>Config</a></li>
|
|
60
|
-
<li class="tsd-kind-type-alias tsd-parent-kind-namespace"><a href="GuideLinePluginType.GuideLineItem.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4194304-path"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)" id="icon-4194304-text"></path></svg>Guide<wbr/>Line<wbr/>Item</a></li>
|
|
61
|
-
<li class="tsd-kind-type-alias tsd-parent-kind-namespace"><a href="GuideLinePluginType.GuideLineModeItemMode.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Guide<wbr/>Line<wbr/>Mode<wbr/>Item<wbr/>Mode</a></li>
|
|
62
|
-
<li class="tsd-kind-type-alias tsd-parent-kind-namespace"><a href="GuideLinePluginType.GuideLineStyle.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Guide<wbr/>Line<wbr/>Style</a></li>
|
|
63
|
-
<li class="tsd-kind-type-alias tsd-parent-kind-namespace"><a href="GuideLinePluginType.PathItem.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Path<wbr/>Item</a></li>
|
|
64
|
-
<li class="current tsd-kind-type-alias tsd-parent-kind-namespace"><a href="GuideLinePluginType.PluginData.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Plugin<wbr/>Data</a></li></ul></nav></div></div>
|
|
65
|
-
<div class="overlay"></div><script src="../assets/main.js"></script></body></html>
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
var u = Object.defineProperty;
|
|
2
|
-
var h = (o, e, t) => e in o ? u(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
-
var i = (o, e, t) => (h(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
-
import c from "object-assign-deep";
|
|
5
|
-
import { GuideLineModeItem as s } from "../GuideLineModeItem/index.js";
|
|
6
|
-
class d {
|
|
7
|
-
constructor(e) {
|
|
8
|
-
i(this, "id");
|
|
9
|
-
i(this, "renderID");
|
|
10
|
-
i(this, "isGuideLine", !0);
|
|
11
|
-
i(this, "panoramaItem");
|
|
12
|
-
i(this, "modelItem");
|
|
13
|
-
i(this, "plugin");
|
|
14
|
-
i(this, "five");
|
|
15
|
-
this.id = e.id, this.five = e.five, this.plugin = e.plugin, this.panoramaItem = new s(this.five, { mode: "panorama", plugin: this.plugin }), this.modelItem = new s(this.five, { mode: "model", plugin: this.plugin });
|
|
16
|
-
}
|
|
17
|
-
setData(e) {
|
|
18
|
-
this.setDataByMode("panorama", e), this.setDataByMode("model", e);
|
|
19
|
-
}
|
|
20
|
-
setDataByMode(e, t) {
|
|
21
|
-
const r = e === "panorama" ? this.panoramaItem : this.modelItem, a = e === "panorama" ? t.panorama_style : t.model_style;
|
|
22
|
-
if (!a)
|
|
23
|
-
return;
|
|
24
|
-
const m = t.path, l = { url: this.plugin.staticPrefix + "/release/web/arrow6.b6ce0c62.png" }, n = a, p = c({ texture: l }, a);
|
|
25
|
-
t.path ? r.setGeometryByPath(m, n) : t.pano_group && r.setGeometryByPanoGroup(t.pano_group, n), r.setMartial(p);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
const I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
29
|
-
__proto__: null,
|
|
30
|
-
GuideLineItem: d
|
|
31
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
32
|
-
export {
|
|
33
|
-
d as GuideLineItem,
|
|
34
|
-
I as GuideLineItem$1
|
|
35
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Five } from '@realsee/five';
|
|
2
|
-
import type GuideLinePlugin from './Controller';
|
|
3
|
-
import type * as PluginType from './typing';
|
|
4
|
-
import { GuideLineModeItem } from './GuideLineModeItem';
|
|
5
|
-
/** 路线引导实例。
|
|
6
|
-
* - 路线包括两个部分:全景路线和模型路线。
|
|
7
|
-
* - Five 切换模态时,路线会自动切换。
|
|
8
|
-
* - GuideLineItem P
|
|
9
|
-
*/
|
|
10
|
-
declare class GuideLineItem {
|
|
11
|
-
readonly id: string | number;
|
|
12
|
-
readonly renderID?: string;
|
|
13
|
-
readonly isGuideLine = true;
|
|
14
|
-
readonly panoramaItem: GuideLineModeItem;
|
|
15
|
-
readonly modelItem: GuideLineModeItem;
|
|
16
|
-
private plugin;
|
|
17
|
-
private five;
|
|
18
|
-
constructor(options: {
|
|
19
|
-
five: Five;
|
|
20
|
-
id: string | number;
|
|
21
|
-
plugin: GuideLinePlugin;
|
|
22
|
-
});
|
|
23
|
-
setData(data: PluginType.GuideLineItem): void;
|
|
24
|
-
setDataByMode(mode: PluginType.GuideLineModeItemMode, data: PluginType.GuideLineItem): void;
|
|
25
|
-
}
|
|
26
|
-
export { GuideLineItem };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import "object-assign-deep";
|
|
2
|
-
import "./GuideLineModeItem/index.js";
|
|
3
|
-
import { GuideLineItem as A } from "./GuideLineItem/index.js";
|
|
4
|
-
import "three";
|
|
5
|
-
import "../shared-utils/log.js";
|
|
6
|
-
import "./utils/createLineGeometry.js";
|
|
7
|
-
import "polyline-normals";
|
|
8
|
-
import "../shared-utils/five/mode.js";
|
|
9
|
-
import "@realsee/five";
|
|
10
|
-
import "hammerjs";
|
|
11
|
-
import "@tweenjs/tween.js";
|
|
12
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
13
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
14
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
15
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
16
|
-
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
17
|
-
import "../CSS3DRenderPlugin/utils/even.js";
|
|
18
|
-
import "../shared-utils/Subscribe.js";
|
|
19
|
-
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
20
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
21
|
-
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
22
|
-
import "../shared-utils/three/centerPoint.js";
|
|
23
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
24
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
25
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
26
|
-
import "../shared-utils/animationFrame/BetterTween.js";
|
|
27
|
-
import "../shared-utils/animationFrame/index.js";
|
|
28
|
-
import "../shared-utils/three/loadTexture.js";
|
|
29
|
-
export {
|
|
30
|
-
A as GuideLineItem
|
|
31
|
-
};
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
var f = Object.defineProperty;
|
|
2
|
-
var p = Object.getOwnPropertySymbols;
|
|
3
|
-
var v = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var n = (r, e, i) => e in r ? f(r, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[e] = i, g = (r, e) => {
|
|
5
|
-
for (var i in e || (e = {}))
|
|
6
|
-
v.call(e, i) && n(r, i, e[i]);
|
|
7
|
-
if (p)
|
|
8
|
-
for (var i of p(e))
|
|
9
|
-
c.call(e, i) && n(r, i, e[i]);
|
|
10
|
-
return r;
|
|
11
|
-
};
|
|
12
|
-
var t = (r, e, i) => (n(r, typeof e != "symbol" ? e + "" : e, i), i);
|
|
13
|
-
import * as o from "three";
|
|
14
|
-
import { logWarning as C, logError as b } from "../../shared-utils/log.js";
|
|
15
|
-
import { createLineGeometry as y } from "../utils/createLineGeometry.js";
|
|
16
|
-
import { isPanoramaLike as E, isModelLike as F } from "../../shared-utils/five/mode.js";
|
|
17
|
-
import "hammerjs";
|
|
18
|
-
import "@realsee/five";
|
|
19
|
-
import "@tweenjs/tween.js";
|
|
20
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
21
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
22
|
-
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
23
|
-
import { loadTexture as P } from "../../shared-utils/three/loadTexture.js";
|
|
24
|
-
const k = `
|
|
25
|
-
varying vec2 vUv;
|
|
26
|
-
|
|
27
|
-
void main() {
|
|
28
|
-
vUv = uv;
|
|
29
|
-
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
30
|
-
}
|
|
31
|
-
`, w = `
|
|
32
|
-
// \u662F\u5426\u4F7F\u7528\u989C\u8272
|
|
33
|
-
uniform int useMapColor;
|
|
34
|
-
// \u8D34\u56FE
|
|
35
|
-
uniform sampler2D map;
|
|
36
|
-
// \u8D34\u56FE\u989C\u8272
|
|
37
|
-
uniform vec3 mapColor;
|
|
38
|
-
// \u8D34\u56FE\u900F\u660E\u5EA6
|
|
39
|
-
uniform float mapOpacity;
|
|
40
|
-
// \u80CC\u666F\u989C\u8272
|
|
41
|
-
uniform vec3 backgroundColor;
|
|
42
|
-
// \u80CC\u666F\u900F\u660E\u5EA6
|
|
43
|
-
uniform float backgroundOpacity;
|
|
44
|
-
// \u6574\u4F53\u900F\u660E\u5EA6
|
|
45
|
-
uniform float opacity;
|
|
46
|
-
// \u7EB9\u7406\u5750\u6807
|
|
47
|
-
varying vec2 vUv;
|
|
48
|
-
|
|
49
|
-
// \u83B7\u53D6\u7EB9\u7406\u989C\u8272
|
|
50
|
-
vec4 getTextureColor() {
|
|
51
|
-
// \u539F\u59CB\u8D34\u56FE\u989C\u8272
|
|
52
|
-
vec4 image = texture2D(map, vUv);
|
|
53
|
-
// \u5982\u679C\u4F7F\u7528\u989C\u8272
|
|
54
|
-
if (useMapColor == 1) {
|
|
55
|
-
// \u6DF7\u5408\u989C\u8272
|
|
56
|
-
image = mix(image, vec4(mapColor, image.a), image.a);
|
|
57
|
-
}
|
|
58
|
-
image.a = image.a * mapOpacity;
|
|
59
|
-
return image;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
void main() {
|
|
63
|
-
vec4 image = getTextureColor();
|
|
64
|
-
// \u8BBE\u7F6E\u80CC\u666F\u989C\u8272
|
|
65
|
-
gl_FragColor = vec4(backgroundColor, backgroundOpacity);
|
|
66
|
-
// \u6DF7\u5408\u989C\u8272\u548C\u80CC\u666F
|
|
67
|
-
gl_FragColor = mix(gl_FragColor, image, image.a);
|
|
68
|
-
// \u8BBE\u7F6E\u6574\u4F53\u900F\u660E\u5EA6
|
|
69
|
-
gl_FragColor.a = gl_FragColor.a * opacity;
|
|
70
|
-
}
|
|
71
|
-
`;
|
|
72
|
-
class M {
|
|
73
|
-
constructor(e, i) {
|
|
74
|
-
t(this, "mesh");
|
|
75
|
-
t(this, "five");
|
|
76
|
-
t(this, "mode");
|
|
77
|
-
t(this, "path", []);
|
|
78
|
-
t(this, "skippedPositions", null);
|
|
79
|
-
t(this, "textureUrl", "");
|
|
80
|
-
t(this, "scale", 1);
|
|
81
|
-
t(this, "width", 0.5);
|
|
82
|
-
t(this, "unitLength", 0.5);
|
|
83
|
-
t(this, "visible", !1);
|
|
84
|
-
t(this, "modeVisible", !1);
|
|
85
|
-
t(this, "customVisible", null);
|
|
86
|
-
t(this, "plugin");
|
|
87
|
-
t(this, "textureHasLoaded", !1);
|
|
88
|
-
t(this, "disposed", !1);
|
|
89
|
-
t(this, "onPluginShow", () => {
|
|
90
|
-
this.updateVisible();
|
|
91
|
-
});
|
|
92
|
-
t(this, "onPluginHide", () => {
|
|
93
|
-
this.updateVisible();
|
|
94
|
-
});
|
|
95
|
-
t(this, "onPluginEnable", () => {
|
|
96
|
-
this.updateVisible();
|
|
97
|
-
});
|
|
98
|
-
t(this, "onPluginDisable", () => {
|
|
99
|
-
this.updateVisible();
|
|
100
|
-
});
|
|
101
|
-
t(this, "onFiveModeChange", (e) => {
|
|
102
|
-
this.modeVisible = this.mode === "panorama" ? E(e) : F(e), this.updateVisible();
|
|
103
|
-
});
|
|
104
|
-
t(this, "logWarning", (e) => C("GuideLineModeItem: ", e));
|
|
105
|
-
t(this, "logError", (e) => b("GuideLineModeItem: ", e));
|
|
106
|
-
this.five = e, this.mode = i.mode, this.plugin = i.plugin;
|
|
107
|
-
const s = new o.BufferGeometry(), u = new o.ShaderMaterial({
|
|
108
|
-
vertexShader: k,
|
|
109
|
-
fragmentShader: w,
|
|
110
|
-
transparent: !0,
|
|
111
|
-
uniforms: {
|
|
112
|
-
map: { value: null },
|
|
113
|
-
useMapColor: { value: 0 },
|
|
114
|
-
mapColor: { value: new o.Color() },
|
|
115
|
-
mapOpacity: { value: 1 },
|
|
116
|
-
backgroundColor: { value: new o.Color() },
|
|
117
|
-
backgroundOpacity: { value: 0 },
|
|
118
|
-
opacity: { value: 1 }
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
this.mesh = new o.Mesh(s, u), this.mesh.name = "GuideLineModeItem", 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);
|
|
122
|
-
}
|
|
123
|
-
setCustomVisible(e) {
|
|
124
|
-
if (this.disposed)
|
|
125
|
-
return this.logError("disposed");
|
|
126
|
-
this.customVisible !== e && (this.customVisible = e, this.updateVisible());
|
|
127
|
-
}
|
|
128
|
-
setModeVisible(e) {
|
|
129
|
-
if (this.disposed)
|
|
130
|
-
return this.logError("disposed");
|
|
131
|
-
this.modeVisible !== e && (this.modeVisible = e, this.updateVisible());
|
|
132
|
-
}
|
|
133
|
-
dispose() {
|
|
134
|
-
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());
|
|
135
|
-
}
|
|
136
|
-
setUnitSize(e, i) {
|
|
137
|
-
if (this.disposed)
|
|
138
|
-
return this.logError("disposed");
|
|
139
|
-
this.width = e, this.unitLength = i, this.setGeometryByPath(this.path, { width: e, unit_length: i });
|
|
140
|
-
}
|
|
141
|
-
setScale(e) {
|
|
142
|
-
if (this.disposed)
|
|
143
|
-
return this.logError("disposed");
|
|
144
|
-
this.scale = e, this.setGeometryByPath(this.path, { scale: e });
|
|
145
|
-
}
|
|
146
|
-
setGeometryByPanoGroup(e, i) {
|
|
147
|
-
if (this.disposed)
|
|
148
|
-
return this.logError("disposed");
|
|
149
|
-
if (!this.five.work)
|
|
150
|
-
return this.logError("setPathByPanoGroup: work is not ready");
|
|
151
|
-
const s = this.getPathFromPanoGroup(e, this.five.work, i);
|
|
152
|
-
this.path = s, this.setGeometryByPath(s, i);
|
|
153
|
-
}
|
|
154
|
-
setGeometryByPath(e, i) {
|
|
155
|
-
var d, l, m;
|
|
156
|
-
if (this.disposed)
|
|
157
|
-
return this.logError("disposed");
|
|
158
|
-
const s = (d = i == null ? void 0 : i.scale) != null ? d : this.scale, u = (l = i == null ? void 0 : i.width) != null ? l : i.width, h = (m = i == null ? void 0 : i.unit_length) != null ? m : i.unit_length;
|
|
159
|
-
this.path = e, this.scale = s, this.width = u, this.unitLength = h;
|
|
160
|
-
const a = y({ path: e, width: u * s, unitLength: h * s });
|
|
161
|
-
this.mesh.geometry = a;
|
|
162
|
-
}
|
|
163
|
-
setSkippedPanoGroup(e) {
|
|
164
|
-
if (this.disposed)
|
|
165
|
-
return this.logError("disposed");
|
|
166
|
-
if (!this.five.work)
|
|
167
|
-
return this.logError("setSkippedPanoGroup: work is not ready");
|
|
168
|
-
const i = e ? e.map((s) => this.five.work.observers[s]).map((s) => s.standingPosition.clone()) : null;
|
|
169
|
-
this.skippedPositions = i;
|
|
170
|
-
}
|
|
171
|
-
setMartial(e) {
|
|
172
|
-
var i;
|
|
173
|
-
if (this.disposed)
|
|
174
|
-
return this.logError("disposed");
|
|
175
|
-
e != null && e.color && this.setColor(e.color), e != null && e.opacity && this.setOpacity(e.opacity), (i = e == null ? void 0 : e.texture) != null && i.url && this.setTextureUrl(e.texture.url);
|
|
176
|
-
}
|
|
177
|
-
setColor(e) {
|
|
178
|
-
if (this.disposed)
|
|
179
|
-
return this.logError("disposed");
|
|
180
|
-
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;
|
|
181
|
-
}
|
|
182
|
-
setBackgroundColor(e) {
|
|
183
|
-
if (this.disposed)
|
|
184
|
-
return this.logError("disposed");
|
|
185
|
-
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;
|
|
186
|
-
}
|
|
187
|
-
setOpacity(e) {
|
|
188
|
-
if (this.disposed)
|
|
189
|
-
return this.logError("disposed");
|
|
190
|
-
this.mesh.material.uniforms.opacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
191
|
-
}
|
|
192
|
-
setBackgroundOpacity(e) {
|
|
193
|
-
if (this.disposed)
|
|
194
|
-
return this.logError("disposed");
|
|
195
|
-
this.mesh.material.uniforms.backgroundOpacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
196
|
-
}
|
|
197
|
-
setMapOpacity(e) {
|
|
198
|
-
if (this.disposed)
|
|
199
|
-
return this.logError("disposed");
|
|
200
|
-
this.mesh.material.uniforms.mapOpacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
201
|
-
}
|
|
202
|
-
setTextureUrl(e) {
|
|
203
|
-
if (this.disposed)
|
|
204
|
-
return this.logError("disposed");
|
|
205
|
-
this.textureUrl = e, P(e).then((i) => {
|
|
206
|
-
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());
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
updateVisible() {
|
|
210
|
-
const e = (() => !this.plugin.state.enabled || !this.plugin.state.visible ? !1 : this.customVisible !== null ? this.customVisible : this.modeVisible && this.textureHasLoaded)();
|
|
211
|
-
this.visible !== e && (this.visible = e, e ? this.doShow() : this.doHide());
|
|
212
|
-
}
|
|
213
|
-
doShow() {
|
|
214
|
-
this.five.scene.add(this.mesh), this.five.needsRender = !0;
|
|
215
|
-
}
|
|
216
|
-
doHide() {
|
|
217
|
-
this.five.scene.remove(this.mesh), this.five.needsRender = !0;
|
|
218
|
-
}
|
|
219
|
-
getPathFromPanoGroup(e, i, s) {
|
|
220
|
-
const h = e.map((a) => i.observers[a]).map((a) => a.standingPosition.toArray());
|
|
221
|
-
return [g({ type: "CatmullRomCurve3", points: h }, s)];
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
const H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
225
|
-
__proto__: null,
|
|
226
|
-
GuideLineModeItem: M
|
|
227
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
228
|
-
export {
|
|
229
|
-
M as GuideLineModeItem,
|
|
230
|
-
H as GuideLineModeItem$1
|
|
231
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import type GuideLinePlugin from './Controller';
|
|
2
|
-
import type { Five } from '@realsee/five';
|
|
3
|
-
import type * as PluginType from './typing';
|
|
4
|
-
import * as THREE from 'three';
|
|
5
|
-
/** @link https://threejs.org/docs/index.html#api/en/extras/curves/CatmullRomCurve3 */
|
|
6
|
-
declare type CatmullRomCurve3RestParams = Omit<PluginType.CatmullRomCurve3, 'type' | 'points'>;
|
|
7
|
-
/** 在不同模态下的 GuideLine */
|
|
8
|
-
declare class GuideLineModeItem {
|
|
9
|
-
readonly mesh: THREE.Mesh<THREE.BufferGeometry, THREE.ShaderMaterial>;
|
|
10
|
-
private five;
|
|
11
|
-
private mode;
|
|
12
|
-
private path;
|
|
13
|
-
private skippedPositions;
|
|
14
|
-
private textureUrl;
|
|
15
|
-
private scale;
|
|
16
|
-
private width;
|
|
17
|
-
private unitLength;
|
|
18
|
-
private visible;
|
|
19
|
-
/** 在当前模态下,是否展示 */
|
|
20
|
-
private modeVisible;
|
|
21
|
-
private customVisible;
|
|
22
|
-
private plugin;
|
|
23
|
-
private textureHasLoaded;
|
|
24
|
-
private disposed;
|
|
25
|
-
constructor(five: Five, options: {
|
|
26
|
-
mode: PluginType.GuideLineModeItemMode;
|
|
27
|
-
plugin: GuideLinePlugin;
|
|
28
|
-
});
|
|
29
|
-
/** 自定义展示 */
|
|
30
|
-
setCustomVisible(visible: boolean | null): void;
|
|
31
|
-
/** 设置模型态展示 */
|
|
32
|
-
setModeVisible(visible: boolean): void;
|
|
33
|
-
dispose(): void;
|
|
34
|
-
/** 基础宽、长 */
|
|
35
|
-
setUnitSize(width: number, length: number): void;
|
|
36
|
-
/** 设置缩放 */
|
|
37
|
-
setScale(scale: number): void;
|
|
38
|
-
/** 通过点位设置线条形状 */
|
|
39
|
-
setGeometryByPanoGroup(panoGroup: number[], options?: CatmullRomCurve3RestParams & PluginType.GuideLineGeometryStyle): void;
|
|
40
|
-
/** 通过路径设置线条形状 */
|
|
41
|
-
setGeometryByPath(path: PluginType.PathItem[], options?: PluginType.GuideLineGeometryStyle): void;
|
|
42
|
-
setSkippedPanoGroup(panoGroup: null | number[]): void;
|
|
43
|
-
/** 设置线条材质 */
|
|
44
|
-
setMartial(options?: PluginType.GuideLineMaterialStyle): void;
|
|
45
|
-
setColor(color: null | number[]): void;
|
|
46
|
-
setBackgroundColor(color: number[]): void;
|
|
47
|
-
setOpacity(opacity: number): void;
|
|
48
|
-
setBackgroundOpacity(opacity: number): void;
|
|
49
|
-
setMapOpacity(opacity: number): void;
|
|
50
|
-
setTextureUrl(url: string): void;
|
|
51
|
-
private onPluginShow;
|
|
52
|
-
private onPluginHide;
|
|
53
|
-
private onPluginEnable;
|
|
54
|
-
private onPluginDisable;
|
|
55
|
-
/** 模型状态变更 */
|
|
56
|
-
private onFiveModeChange;
|
|
57
|
-
private updateVisible;
|
|
58
|
-
private doShow;
|
|
59
|
-
private doHide;
|
|
60
|
-
private getPathFromPanoGroup;
|
|
61
|
-
private logWarning;
|
|
62
|
-
private logError;
|
|
63
|
-
}
|
|
64
|
-
export { GuideLineModeItem };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import "three";
|
|
2
|
-
import "../shared-utils/log.js";
|
|
3
|
-
import "./utils/createLineGeometry.js";
|
|
4
|
-
import "../shared-utils/five/mode.js";
|
|
5
|
-
import "hammerjs";
|
|
6
|
-
import "@realsee/five";
|
|
7
|
-
import "@tweenjs/tween.js";
|
|
8
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
9
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
10
|
-
import "../shared-utils/animationFrame/BetterTween.js";
|
|
11
|
-
import "../shared-utils/three/loadTexture.js";
|
|
12
|
-
import { GuideLineModeItem as w } from "./GuideLineModeItem/index.js";
|
|
13
|
-
import "polyline-normals";
|
|
14
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
15
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
16
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
17
|
-
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
18
|
-
import "../CSS3DRenderPlugin/utils/even.js";
|
|
19
|
-
import "../shared-utils/Subscribe.js";
|
|
20
|
-
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
21
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
22
|
-
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
23
|
-
import "../shared-utils/three/centerPoint.js";
|
|
24
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
25
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
26
|
-
import "../shared-utils/animationFrame/index.js";
|
|
27
|
-
export {
|
|
28
|
-
w as GuideLineModeItem
|
|
29
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
import type * as PluginType from '../typing';
|
|
3
|
-
/** 生成曲线参数 */
|
|
4
|
-
interface LineGeometryOption {
|
|
5
|
-
/** 路径 */
|
|
6
|
-
path: PluginType.PathItem[];
|
|
7
|
-
/** 线宽,默认是 0.5 */
|
|
8
|
-
width: number;
|
|
9
|
-
/** 每一段的长度,默认是 0.5 */
|
|
10
|
-
unitLength: number;
|
|
11
|
-
}
|
|
12
|
-
/** 创建路线的几何体
|
|
13
|
-
* @param curvePoints 三维点位
|
|
14
|
-
* @param unitWidth 线段宽度
|
|
15
|
-
* @param unitLength 每一段的长度
|
|
16
|
-
* @returns THREE BufferGeometry
|
|
17
|
-
*/
|
|
18
|
-
export declare function createLineGeometry(options: LineGeometryOption): THREE.BufferGeometry;
|
|
19
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as c from "three";
|
|
2
|
-
import { Vector3 as b } from "three";
|
|
3
|
-
import U from "polyline-normals";
|
|
4
|
-
const F = 2, V = 3, z = 3, G = 2;
|
|
5
|
-
function D(e) {
|
|
6
|
-
const u = e.width, g = e.unitLength / u, s = u / 2, y = e.path, m = new c.CurvePath();
|
|
7
|
-
y.forEach((t) => {
|
|
8
|
-
const a = M(t);
|
|
9
|
-
a && m.add(a);
|
|
10
|
-
});
|
|
11
|
-
const d = Math.ceil(m.getLength() * 100), n = m.getPoints(d), L = n.length, P = U(n.map((t) => [t.x, t.z])), x = (n.length - 1) * F * V, E = 2 * L, C = E * z, B = E * G, o = new Uint32Array(x), r = new Float32Array(C), i = new Float32Array(B);
|
|
12
|
-
let N = 0;
|
|
13
|
-
for (let t = 0; t < n.length; t++) {
|
|
14
|
-
const [a, R] = P[t][0], T = n[t], { x: p, y: w, z: A } = T, v = new b(p + a * s, w + 0.05, A + R * s);
|
|
15
|
-
r[t * 6 + 0] = v.x, r[t * 6 + 1] = v.y, r[t * 6 + 2] = v.z;
|
|
16
|
-
const h = new b(p - a * s, w + 0.05, A - R * s);
|
|
17
|
-
r[t * 6 + 3] = h.x, r[t * 6 + 4] = h.y, r[t * 6 + 5] = h.z, N += t > 0 ? n[t - 1].clone().sub(n[t]).length() : 0;
|
|
18
|
-
const _ = N / u / g;
|
|
19
|
-
i[t * 4 + 0] = 0, i[t * 4 + 1] = _, i[t * 4 + 2] = 1, i[t * 4 + 3] = _, t !== n.length - 1 && (o[t * 6 + 0] = t * 2 + 0, o[t * 6 + 1] = t * 2 + 2, o[t * 6 + 2] = t * 2 + 1, o[t * 6 + 3] = t * 2 + 2, o[t * 6 + 4] = t * 2 + 3, o[t * 6 + 5] = t * 2 + 1);
|
|
20
|
-
}
|
|
21
|
-
const l = new c.BufferGeometry();
|
|
22
|
-
return l.setAttribute("position", new c.BufferAttribute(r, 3)), l.setAttribute("uv", new c.BufferAttribute(i, 2)), l.setIndex(new c.BufferAttribute(o, 1)), l;
|
|
23
|
-
}
|
|
24
|
-
function M(e) {
|
|
25
|
-
if (X(e)) {
|
|
26
|
-
const u = [e.closed, e.curve_type, e.tension], f = e.points.map((s) => new c.Vector3().fromArray(s));
|
|
27
|
-
return new c.CatmullRomCurve3(f, ...u);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
function X(e) {
|
|
31
|
-
return e.type === "CatmullRomCurve3";
|
|
32
|
-
}
|
|
33
|
-
export {
|
|
34
|
-
D as createLineGeometry
|
|
35
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { GuideLineModeItem } from '../GuideLineModeItem';
|
|
2
|
-
import type * as PluginType from '../typing';
|
|
3
|
-
export declare function updateGuideLineModeItemByData(options: {
|
|
4
|
-
item: GuideLineModeItem;
|
|
5
|
-
data: PluginType.GuideLineItem;
|
|
6
|
-
mode: PluginType.GuideLineModeItemMode;
|
|
7
|
-
}): void;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import "three";
|
|
2
|
-
import "polyline-normals";
|
|
3
|
-
import "@realsee/five";
|
|
4
|
-
import "hammerjs";
|
|
5
|
-
import "@tweenjs/tween.js";
|
|
6
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
7
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
8
|
-
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
9
|
-
import "../../shared-utils/three/loadTexture.js";
|
|
10
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
11
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
12
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
13
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
14
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
15
|
-
import "../../shared-utils/Subscribe.js";
|
|
16
|
-
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
17
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
18
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
19
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
20
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
21
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
22
|
-
import "../../shared-utils/animationFrame/index.js";
|
|
23
|
-
function k(o) {
|
|
24
|
-
const t = o.data, m = o.item, r = o.mode === "panorama" ? t.panorama_style : t.model_style;
|
|
25
|
-
if (!r)
|
|
26
|
-
return;
|
|
27
|
-
const e = t.path, p = r, i = r;
|
|
28
|
-
t.path ? m.setGeometryByPath(e, p) : t.pano_group && m.setGeometryByPanoGroup(t.pano_group, p), m.setMartial(i);
|
|
29
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
k as updateGuideLineModeItemByData
|
|
32
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
import { Vector3 } from 'three';
|
|
3
|
-
declare class ImagePlane extends THREE.Mesh {
|
|
4
|
-
name: string;
|
|
5
|
-
imageSrc?: string;
|
|
6
|
-
constructor(imageSrc: string, cornerPoints: Vector3[]);
|
|
7
|
-
setMatrixByCornerPoints(cornerPoints: Vector3[]): void;
|
|
8
|
-
}
|
|
9
|
-
export default ImagePlane;
|