@realsee/dnalogel 2.20.5 → 2.21.0-dev.2
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/GuideLinePlugin/Controller.d.ts +3 -5
- package/dist/GuideLinePlugin/GuideLineItem.d.ts +1 -1
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +0 -17
- package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -7
- package/dist/PanoMeasurePlugin/Components/Common/CircleButton.svelte.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Components/Common/Exit.svelte.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Components/Common/Switcher0.svelte.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Components/Common/Switcher1.svelte.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Components/Controller0.svelte.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Components/Controller1.svelte.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +12 -4
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +13 -5
- package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +9 -2
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +22 -9
- package/dist/PanoMeasurePlugin/Model/area.d.ts +62 -0
- package/dist/PanoMeasurePlugin/Model/index.d.ts +9 -0
- package/dist/PanoMeasurePlugin/Model/line.d.ts +4 -1
- package/dist/PanoMeasurePlugin/Model/polygon.d.ts +10 -0
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +4 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/FiveHelper.d.ts +2 -1
- package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +5 -3
- package/dist/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/typings/data.d.ts +23 -0
- package/dist/PanoMeasurePlugin/typings/event.type.d.ts +10 -3
- package/dist/PanoMeasurePlugin/typings/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/dom/areaDom.d.ts +22 -0
- package/dist/PanoMeasurePlugin/utils/dom/base.d.ts +25 -0
- package/dist/PanoMeasurePlugin/utils/dom/distanceItem.d.ts +27 -0
- package/dist/PanoMeasurePlugin/utils/generatePolygonGeometry.d.ts +6 -0
- package/dist/PanoMeasurePlugin/utils/geometryUtil.d.ts +7 -0
- package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/isIntersecting.d.ts +15 -0
- package/dist/PanoMeasurePlugin/utils/line.d.ts +2 -1
- package/dist/index.cjs.js +64 -64
- package/dist/index.js +9427 -8244
- package/dist/index.umd.js +57 -57
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -7
- package/dist/shared-utils/isTouchDevice.d.ts +1 -0
- package/dist/shared-utils/safeObj.d.ts +1 -0
- package/dist/shared-utils/three/IObject3D.d.ts +7 -0
- package/dist/shared-utils/three/Magnifier.d.ts +3 -0
- package/dist/shared-utils/three/PointSelector.d.ts +32 -0
- package/dist/shared-utils/three/PointSelectorHelper.d.ts +50 -0
- package/dist/shared-utils/three/index.d.ts +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +32 -31
- package/docs/classes/CruisePluginController.html +27 -26
- package/docs/classes/GuideLineItem.GuideLineItem.html +21 -20
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +33 -87
- 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 +52 -106
- package/docs/classes/PanoMeasurePluginModel.html +67 -24
- package/docs/classes/PanoMeasurePluginPoint.html +15 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +39 -26
- package/docs/classes/PanoTagPluginController.html +48 -47
- package/docs/classes/Util.BetterTween.html +10 -9
- package/docs/classes/Util.Interval.html +13 -12
- package/docs/classes/Util.Magnifier.html +31 -17
- package/docs/classes/Util.PointDomHelper.html +12 -11
- package/docs/classes/Util.PointHelper.html +12 -11
- package/docs/classes/{Util.FivePointSelector.html → Util.PointSelectorHelper.html} +96 -26
- package/docs/classes/Util.Rectangle.html +14 -13
- package/docs/enums/CameraMovementEffect.html +8 -7
- package/docs/enums/ContentType.html +21 -20
- 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/PointType.html +8 -7
- package/docs/enums/Rotation.html +9 -8
- package/docs/functions/CSS3DRenderPlugin.html +6 -5
- package/docs/functions/CameraMovementPlugin.html +6 -5
- package/docs/functions/CruisePlugin.html +6 -5
- package/docs/functions/GuideLinePlugin.html +6 -5
- package/docs/functions/ItemLabelPlugin.html +6 -5
- package/docs/functions/MapviewFloorplanPlugin.html +6 -5
- package/docs/functions/ModelChassisCompassPlugin.html +6 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -5
- package/docs/functions/ModelFloorplanPlugin.html +6 -5
- package/docs/functions/ModelItemLabelPlugin.html +6 -5
- package/docs/functions/ModelRoomLabelPlugin.html +6 -5
- package/docs/functions/ModelTVVideoPlugin.html +6 -5
- package/docs/functions/ModelViewPlugin.html +6 -5
- package/docs/functions/Object3DHelperPlugin.html +6 -5
- package/docs/functions/PanoCompassPlugin.html +6 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +6 -5
- package/docs/functions/PanoDoorLabelPlugin.html +6 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +6 -5
- package/docs/functions/PanoMeasurePlugin.html +6 -5
- package/docs/functions/PanoRulerPlugin.html +6 -5
- package/docs/functions/PanoRulerProPlugin.html +6 -5
- package/docs/functions/PanoSpatialTagPlugin.html +6 -5
- package/docs/functions/PanoTagPlugin.html +6 -5
- package/docs/functions/PanoVideoPlugin.html +6 -5
- package/docs/functions/TopviewFloorplanPlugin.html +6 -5
- 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 +6 -5
- 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 +9 -8
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +13 -12
- package/docs/interfaces/CruisePluginTypes.EventMap.html +21 -20
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +13 -12
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +15 -14
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +15 -14
- package/docs/interfaces/CruisePluginTypes.PluginData.html +10 -9
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +8 -7
- package/docs/interfaces/CruisePluginTypes.PluginState.html +12 -11
- 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/GuideLineModeItem.GuideLineTagContainer.html +9 -8
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +11 -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 +14 -13
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -8
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +19 -18
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +8 -7
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +19 -18
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +6 -5
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +8 -7
- package/docs/interfaces/GuideLinePluginType.PluginState.html +9 -8
- package/docs/interfaces/GuideLinePluginType.Route.html +12 -11
- 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 +23 -15
- 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 +14 -13
- package/docs/interfaces/TagGLTFObjectGroup.html +7 -6
- package/docs/interfaces/TagIconUrl.html +13 -12
- 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/interfaces/Util.PointIntersection.html +407 -0
- package/docs/modules/CruisePluginTypes.html +6 -5
- package/docs/modules/GuideLineItem.html +6 -5
- package/docs/modules/GuideLineModeItem.html +6 -5
- package/docs/modules/GuideLinePluginType.html +6 -5
- package/docs/modules/PanoVideoPluginType.html +6 -5
- package/docs/modules/Util.html +8 -6
- package/docs/modules.html +6 -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 +6 -5
- package/docs/types/CruisePluginTypes.MoveEffect.html +6 -5
- package/docs/types/DeprecatedMediaPlaneProperty.html +6 -5
- package/docs/types/DeprecatedTagProperty.html +6 -5
- package/docs/types/Direction-1.html +6 -5
- package/docs/types/Direction4.html +6 -5
- package/docs/types/ElementRenderer.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 +6 -5
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +6 -5
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +6 -5
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +6 -5
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +6 -5
- package/docs/types/GuideLinePluginType.PathItem.html +6 -5
- package/docs/types/GuideLinePluginType.PluginData.html +6 -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/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/PartialObjectDeep.html +6 -5
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +6 -5
- package/docs/types/PlaneTag.html +6 -5
- package/docs/types/Point2DTag.html +6 -5
- package/docs/types/Point3DTag.html +6 -5
- package/docs/types/PointTag.html +6 -5
- package/docs/types/PointTagInstance.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/TagId.html +6 -5
- package/docs/types/TagInstance.html +6 -5
- package/docs/types/TagPointType.html +6 -5
- package/docs/types/TagRendererMap.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/GuideLinePlugin/Components/Tag.js +41 -134
- package/libs/GuideLinePlugin/Controller.d.ts +3 -5
- package/libs/GuideLinePlugin/Controller.js +44 -48
- package/libs/GuideLinePlugin/GuideLineItem/index.js +1 -1
- package/libs/GuideLinePlugin/GuideLineItem.d.ts +1 -1
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +113 -150
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +0 -17
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -7
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +17 -19
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +77 -77
- package/libs/Object3DHelperPlugin/Controller.js +3 -2
- package/libs/Object3DHelperPlugin/index.js +6 -5
- package/libs/PanoMeasurePlugin/Components/Common/CircleButton.js +57 -0
- package/libs/PanoMeasurePlugin/Components/Common/CircleButton.svelte.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Components/Common/Exit.js +42 -0
- package/libs/PanoMeasurePlugin/Components/Common/Exit.svelte.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Components/Common/Switcher0.js +250 -0
- package/libs/PanoMeasurePlugin/Components/Common/Switcher0.svelte.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Components/Common/Switcher1.js +211 -0
- package/libs/PanoMeasurePlugin/Components/Common/Switcher1.svelte.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Components/Controller0.js +130 -0
- package/libs/PanoMeasurePlugin/Components/Controller0.svelte.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Components/Controller1.js +255 -0
- package/libs/PanoMeasurePlugin/Components/Controller1.svelte.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +12 -4
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +28 -21
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +13 -5
- package/libs/PanoMeasurePlugin/Controller/EditController.js +184 -75
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +26 -25
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +5 -4
- package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +9 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +99 -53
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +22 -9
- package/libs/PanoMeasurePlugin/Controller/index.js +127 -73
- package/libs/PanoMeasurePlugin/Model/area.d.ts +62 -0
- package/libs/PanoMeasurePlugin/Model/area.js +98 -0
- package/libs/PanoMeasurePlugin/Model/index.d.ts +9 -0
- package/libs/PanoMeasurePlugin/Model/index.js +27 -12
- package/libs/PanoMeasurePlugin/Model/line.d.ts +4 -1
- package/libs/PanoMeasurePlugin/Model/line.js +15 -8
- package/libs/PanoMeasurePlugin/Model/point.js +17 -12
- package/libs/PanoMeasurePlugin/Model/polygon.d.ts +10 -0
- package/libs/PanoMeasurePlugin/Model/polygon.js +39 -0
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +4 -0
- package/libs/PanoMeasurePlugin/Model/polyline.js +10 -3
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +27 -25
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.d.ts +2 -1
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +3 -3
- package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +5 -3
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +112 -35
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/index.js +61 -17
- package/libs/PanoMeasurePlugin/typings/data.d.ts +23 -0
- package/libs/PanoMeasurePlugin/typings/event.type.d.ts +10 -3
- package/libs/PanoMeasurePlugin/typings/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.d.ts +22 -0
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +29 -0
- package/libs/PanoMeasurePlugin/utils/dom/base.d.ts +25 -0
- package/libs/PanoMeasurePlugin/utils/dom/base.js +72 -0
- package/libs/PanoMeasurePlugin/utils/dom/distanceItem.d.ts +27 -0
- package/libs/PanoMeasurePlugin/utils/dom/distanceItem.js +47 -0
- package/libs/PanoMeasurePlugin/utils/generatePolygonGeometry.d.ts +6 -0
- package/libs/PanoMeasurePlugin/utils/generatePolygonGeometry.js +13 -0
- package/libs/PanoMeasurePlugin/utils/geometryUtil.d.ts +7 -0
- package/libs/PanoMeasurePlugin/utils/geometryUtil.js +37 -0
- package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/isIntersecting.d.ts +15 -0
- package/libs/PanoMeasurePlugin/utils/isIntersecting.js +25 -0
- package/libs/PanoMeasurePlugin/utils/line.d.ts +2 -1
- package/libs/PanoTagPlugin/controller/TagRender.js +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/Components/RoomHighlight/Room.js +54 -54
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +8 -8
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +28 -30
- package/libs/index.js +134 -116
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -7
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +29 -49
- package/libs/shared-utils/index.js +6 -6
- package/libs/shared-utils/isTouchDevice.d.ts +1 -0
- package/libs/shared-utils/isTouchDevice.js +4 -0
- package/libs/shared-utils/logger.js +2 -2
- package/libs/shared-utils/safeObj.d.ts +1 -0
- package/libs/shared-utils/safeObj.js +6 -0
- package/libs/shared-utils/three/IObject3D.d.ts +7 -0
- package/libs/shared-utils/three/IObject3D.js +25 -0
- package/libs/shared-utils/three/Magnifier.d.ts +3 -0
- package/libs/shared-utils/three/Magnifier.js +11 -9
- package/libs/shared-utils/three/PointSelector.d.ts +32 -0
- package/libs/shared-utils/three/PointSelector.js +68 -0
- package/libs/shared-utils/three/PointSelectorHelper.d.ts +50 -0
- package/libs/shared-utils/three/PointSelectorHelper.js +100 -0
- package/libs/shared-utils/three/centerPoint.js +1 -3
- package/libs/shared-utils/three/index.d.ts +1 -1
- package/package.json +4 -2
- package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +0 -30
- package/dist/shared-utils/three/FivePointSelector.d.ts +0 -36
- package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +0 -30
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +0 -83
- package/libs/shared-utils/three/FivePointSelector.d.ts +0 -36
- package/libs/shared-utils/three/FivePointSelector.js +0 -49
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
1
|
+
var C = Object.defineProperty, y = Object.defineProperties;
|
|
2
|
+
var k = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var c = Object.getOwnPropertySymbols;
|
|
4
|
+
var w = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var m = (o, e, i) => e in o ? C(o, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[e] = i, u = (o, e) => {
|
|
6
|
+
for (var i in e || (e = {}))
|
|
7
|
+
w.call(e, i) && m(o, i, e[i]);
|
|
8
|
+
if (c)
|
|
9
|
+
for (var i of c(e))
|
|
10
|
+
F.call(e, i) && m(o, i, e[i]);
|
|
11
|
+
return o;
|
|
12
|
+
}, g = (o, e) => y(o, k(e));
|
|
13
|
+
var t = (o, e, i) => (m(o, typeof e != "symbol" ? e + "" : e, i), i);
|
|
14
14
|
import * as l from "three";
|
|
15
|
-
import { logWarning as
|
|
15
|
+
import { logWarning as V, logError as T } from "../../shared-utils/log.js";
|
|
16
16
|
import { createLineGeometry as U } from "../utils/createLineGeometry.js";
|
|
17
17
|
import { isPanoramaLike as x, isModelLike as _ } from "../../shared-utils/five/mode.js";
|
|
18
18
|
import "hammerjs";
|
|
@@ -20,13 +20,13 @@ import "@realsee/five";
|
|
|
20
20
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
21
21
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
22
22
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
23
|
-
import { BetterTween as M, tweenProgress as
|
|
24
|
-
import { loadTexture as
|
|
25
|
-
import
|
|
23
|
+
import { BetterTween as M, tweenProgress as E } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
24
|
+
import { loadTexture as L } from "../../shared-utils/three/loadTexture.js";
|
|
25
|
+
import b from "../../PanoTagPlugin/controller/index.js";
|
|
26
26
|
import O from "../Components/Tag.js";
|
|
27
|
-
import { filterAdjacentDistinct as
|
|
28
|
-
import { objectAssignDeepExports as
|
|
29
|
-
const
|
|
27
|
+
import { filterAdjacentDistinct as P } from "../utils/index.js";
|
|
28
|
+
import { objectAssignDeepExports as G } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
29
|
+
const S = (
|
|
30
30
|
/* glsl */
|
|
31
31
|
`
|
|
32
32
|
varying vec2 vUv;
|
|
@@ -36,7 +36,7 @@ const B = (
|
|
|
36
36
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
37
37
|
}
|
|
38
38
|
`
|
|
39
|
-
),
|
|
39
|
+
), A = (
|
|
40
40
|
/* glsl */
|
|
41
41
|
`
|
|
42
42
|
// 是否使用颜色
|
|
@@ -120,86 +120,77 @@ const B = (
|
|
|
120
120
|
}
|
|
121
121
|
`
|
|
122
122
|
);
|
|
123
|
-
class
|
|
124
|
-
constructor(e,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
i(this, "unitLength", 0.5);
|
|
140
|
-
i(this, "_visibleFloorIndexes", null);
|
|
141
|
-
i(this, "visible", null);
|
|
123
|
+
class B {
|
|
124
|
+
constructor(e, i) {
|
|
125
|
+
t(this, "startTagContainer");
|
|
126
|
+
t(this, "endTagContainer");
|
|
127
|
+
t(this, "mesh");
|
|
128
|
+
t(this, "five");
|
|
129
|
+
t(this, "mode");
|
|
130
|
+
t(this, "path", []);
|
|
131
|
+
t(this, "_panoGroup", null);
|
|
132
|
+
t(this, "skippedPositions", null);
|
|
133
|
+
t(this, "textureUrl", "");
|
|
134
|
+
t(this, "scale", 1);
|
|
135
|
+
t(this, "width", 0.5);
|
|
136
|
+
t(this, "unitLength", 0.5);
|
|
137
|
+
t(this, "_visibleFloorIndexes", null);
|
|
138
|
+
t(this, "visible", null);
|
|
142
139
|
/** Five Mode 是否满足 */
|
|
143
|
-
|
|
140
|
+
t(this, "modeVisible", !1);
|
|
144
141
|
/** 楼层是否满足展示条件 */
|
|
145
|
-
|
|
142
|
+
t(this, "floorVisible", !0);
|
|
146
143
|
/** 默认是否展示 */
|
|
147
|
-
|
|
144
|
+
t(this, "defaultVisible", !1);
|
|
148
145
|
/** 走点动画 */
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
var e, t;
|
|
161
|
-
this.disposed || (this.disposed = !0, this.parent.hooks.off("show", this.updateVisible), this.parent.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("show", this.updateVisible), this.plugin.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("enable", this.updateVisible), this.plugin.hooks.off("disable", this.updateVisible), this.five.off("modeChange", this.onFiveModeChange), this.five.off("modelShownFloorChange", this.onFiveModelShownFloorChange), this.doHide(), (e = this.startTagContainer) == null || e.plugin.dispose(), (t = this.endTagContainer) == null || t.plugin.dispose());
|
|
146
|
+
t(this, "inWalkAnimation", !1);
|
|
147
|
+
t(this, "customVisible", null);
|
|
148
|
+
t(this, "parent");
|
|
149
|
+
t(this, "plugin");
|
|
150
|
+
t(this, "textureHasLoaded", !1);
|
|
151
|
+
t(this, "disposed", !1);
|
|
152
|
+
t(this, "flowAnime", new M({ progress: 0 }).to({ progress: 1 }).duration(1500).repeat(1 / 0));
|
|
153
|
+
t(this, "flickerAnime", E(300).yoyo(!0).repeat(5));
|
|
154
|
+
t(this, "dispose", () => {
|
|
155
|
+
var e, i;
|
|
156
|
+
this.disposed || (this.disposed = !0, this.parent.hooks.off("show", this.updateVisible), this.parent.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("show", this.updateVisible), this.plugin.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("enable", this.updateVisible), this.plugin.hooks.off("disable", this.updateVisible), this.five.off("modeChange", this.onFiveModeChange), this.five.off("modelShownFloorChange", this.onFiveModelShownFloorChange), this.doHide(), (e = this.startTagContainer) == null || e.plugin.dispose(), (i = this.endTagContainer) == null || i.plugin.dispose());
|
|
162
157
|
});
|
|
163
158
|
/** 开始走点动画 */
|
|
164
|
-
|
|
159
|
+
t(this, "onWalkAnimationStart", () => {
|
|
165
160
|
this.inWalkAnimation = !0, this.updateVisible();
|
|
166
161
|
});
|
|
167
162
|
/** 结束走点动画 */
|
|
168
|
-
|
|
163
|
+
t(this, "onWalkAnimationEnd", () => {
|
|
169
164
|
this.inWalkAnimation = !1, this.updateVisible();
|
|
170
165
|
});
|
|
171
166
|
/** 模型状态变更 */
|
|
172
|
-
|
|
167
|
+
t(this, "onFiveModeChange", (e) => {
|
|
173
168
|
this.modeVisible = this.mode === "panorama" ? x(e) : _(e), this.updateVisible();
|
|
174
169
|
});
|
|
175
|
-
|
|
170
|
+
t(this, "onFiveModelShownFloorChange", (e) => {
|
|
176
171
|
this.floorVisible = e === null || this.visibleFloorIndexes === null || this.visibleFloorIndexes.includes(e), this.updateVisible();
|
|
177
172
|
});
|
|
178
173
|
/** 更新可见性 */
|
|
179
|
-
|
|
174
|
+
t(this, "updateVisible", () => {
|
|
180
175
|
const e = (() => !this.parent.visible || !this.plugin.state.enabled || !this.plugin.state.visible ? !1 : this.customVisible !== null ? this.customVisible : this.inWalkAnimation ? !0 : this.modeVisible && this.textureHasLoaded && this.defaultVisible && this.floorVisible)();
|
|
181
176
|
this.visible !== e && (this.visible = e, e ? this.doShow() : this.doHide());
|
|
182
177
|
});
|
|
183
|
-
|
|
184
|
-
const { progress:
|
|
185
|
-
this.mesh.material.uniforms.vOffset.value =
|
|
178
|
+
t(this, "onFlowAnimeUpdate", (e) => {
|
|
179
|
+
const { progress: i } = e;
|
|
180
|
+
this.mesh.material.uniforms.vOffset.value = i, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
186
181
|
});
|
|
187
|
-
|
|
188
|
-
var
|
|
189
|
-
const { progress:
|
|
190
|
-
this.mesh.material.uniforms.flicker.value =
|
|
191
|
-
opacity: s,
|
|
192
|
-
name: this.name,
|
|
193
|
-
distance: Math.floor(this.curvePath.getLength())
|
|
194
|
-
}))), this.endTagContainer.tag && b(this.endTagContainer.tag) && ((r = this.endTagContainer.app) == null || r.$set(p(m({}, this.endTagContainer.tag.data), { opacity: s })));
|
|
182
|
+
t(this, "onFlickerAnimeUpdate", (e) => {
|
|
183
|
+
var n, s;
|
|
184
|
+
const { progress: i } = e, r = 1 - i;
|
|
185
|
+
this.mesh.material.uniforms.flicker.value = r, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && f(this.startTagContainer.tag) && ((n = this.startTagContainer.app) == null || n.$set(g(u({}, this.startTagContainer.tag.data), { opacity: r }))), this.endTagContainer.tag && f(this.endTagContainer.tag) && ((s = this.endTagContainer.app) == null || s.$set(g(u({}, this.endTagContainer.tag.data), { opacity: r })));
|
|
195
186
|
});
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
var
|
|
199
|
-
this.five = e, this.mode =
|
|
200
|
-
const
|
|
201
|
-
vertexShader:
|
|
202
|
-
fragmentShader:
|
|
187
|
+
t(this, "logWarning", (e) => V("GuideLineModeItem: ", e));
|
|
188
|
+
t(this, "logError", (e) => T("GuideLineModeItem: ", e));
|
|
189
|
+
var s, a;
|
|
190
|
+
this.five = e, this.mode = i.mode, this.plugin = i.plugin, this.parent = i.parent, this.startTagContainer = { tag: null, plugin: new b(this.five) }, this.endTagContainer = { tag: null, plugin: new b(this.five) };
|
|
191
|
+
const r = new l.BufferGeometry(), n = new l.ShaderMaterial({
|
|
192
|
+
vertexShader: S,
|
|
193
|
+
fragmentShader: A,
|
|
203
194
|
transparent: !0,
|
|
204
195
|
uniforms: {
|
|
205
196
|
map: { value: null },
|
|
@@ -216,7 +207,7 @@ class R {
|
|
|
216
207
|
vOffset: { value: 0 }
|
|
217
208
|
}
|
|
218
209
|
});
|
|
219
|
-
this.mesh = new l.Mesh(
|
|
210
|
+
this.mesh = new l.Mesh(r, n), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.updateVisible(), this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveModelShownFloorChange((a = (s = this.five.model) == null ? void 0 : s.shownFloor) != null ? a : null), this.flowAnime.onUpdate(this.onFlowAnimeUpdate), this.flickerAnime.onUpdate(this.onFlickerAnimeUpdate), this.parent.hooks.on("show", this.updateVisible), this.parent.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("show", this.updateVisible), this.plugin.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("enable", this.updateVisible), this.plugin.hooks.on("disable", this.updateVisible), this.plugin.hooks.on("dispose", this.dispose), this.five.on("modeChange", this.onFiveModeChange), this.five.on("modelShownFloorChange", this.onFiveModelShownFloorChange);
|
|
220
211
|
}
|
|
221
212
|
get panoGroup() {
|
|
222
213
|
return this._panoGroup;
|
|
@@ -225,14 +216,6 @@ class R {
|
|
|
225
216
|
get visibleFloorIndexes() {
|
|
226
217
|
return this._visibleFloorIndexes;
|
|
227
218
|
}
|
|
228
|
-
/** THREE Curve 路径 */
|
|
229
|
-
get curvePath() {
|
|
230
|
-
return this._curvePath;
|
|
231
|
-
}
|
|
232
|
-
/** THREE Curve 路径上的点 */
|
|
233
|
-
get curvePoints() {
|
|
234
|
-
return this._curvePoints;
|
|
235
|
-
}
|
|
236
219
|
/** 自定义展示 */
|
|
237
220
|
setCustomVisible(e) {
|
|
238
221
|
if (this.disposed)
|
|
@@ -246,10 +229,10 @@ class R {
|
|
|
246
229
|
this.defaultVisible !== e && (this.defaultVisible = e, this.updateVisible());
|
|
247
230
|
}
|
|
248
231
|
/** 基础宽、长 */
|
|
249
|
-
setUnitSize(e,
|
|
232
|
+
setUnitSize(e, i) {
|
|
250
233
|
if (this.disposed)
|
|
251
234
|
return this.logError("disposed");
|
|
252
|
-
this.width = e, this.unitLength =
|
|
235
|
+
this.width = e, this.unitLength = i, this.setGeometryByPath(this.path, { width: e, unit_length: i });
|
|
253
236
|
}
|
|
254
237
|
/** 设置缩放 */
|
|
255
238
|
setScale(e) {
|
|
@@ -258,40 +241,40 @@ class R {
|
|
|
258
241
|
this.scale = e, this.setGeometryByPath(this.path, { scale: e });
|
|
259
242
|
}
|
|
260
243
|
/** 通过点位设置线条形状 */
|
|
261
|
-
setGeometryByPanoGroup(e,
|
|
244
|
+
setGeometryByPanoGroup(e, i) {
|
|
262
245
|
if (this.disposed)
|
|
263
246
|
return this.logError("disposed");
|
|
264
247
|
if (!this.five.work)
|
|
265
248
|
return this.logError("setPathByPanoGroup: work is not ready");
|
|
266
|
-
const
|
|
267
|
-
if (this._panoGroup =
|
|
268
|
-
const
|
|
269
|
-
this.skippedPositions =
|
|
249
|
+
const r = P(e);
|
|
250
|
+
if (this._panoGroup = r, (i == null ? void 0 : i.skipPanoGroup) !== void 0) {
|
|
251
|
+
const s = i.skipPanoGroup ? r.map((a) => this.five.work.observers[a]).map((a) => a.standingPosition.clone()) : null;
|
|
252
|
+
this.skippedPositions = s;
|
|
270
253
|
}
|
|
271
|
-
const
|
|
272
|
-
this.path =
|
|
254
|
+
const n = this.getPathFromPanoGroup(r, this.five.work, i);
|
|
255
|
+
this.path = n, this.setGeometryByPath(n, i);
|
|
273
256
|
}
|
|
274
257
|
/** 通过路径设置线条形状 */
|
|
275
|
-
setGeometryByPath(e,
|
|
276
|
-
var
|
|
258
|
+
setGeometryByPath(e, i) {
|
|
259
|
+
var h, p, v;
|
|
277
260
|
if (this.disposed)
|
|
278
261
|
return this.logError("disposed");
|
|
279
|
-
const
|
|
280
|
-
this.path = e, this.scale =
|
|
281
|
-
const { geometry:
|
|
262
|
+
const r = (h = i == null ? void 0 : i.scale) != null ? h : this.scale, n = (p = i == null ? void 0 : i.width) != null ? p : this.width, s = (v = i == null ? void 0 : i.unit_length) != null ? v : this.unitLength;
|
|
263
|
+
this.path = e, this.scale = r, this.width = n, this.unitLength = s;
|
|
264
|
+
const { geometry: a, maxU: d } = U({
|
|
282
265
|
path: e,
|
|
283
|
-
width:
|
|
284
|
-
unitLength:
|
|
266
|
+
width: n * r,
|
|
267
|
+
unitLength: s * r,
|
|
285
268
|
skipPositions: this.skippedPositions
|
|
286
269
|
});
|
|
287
|
-
this.
|
|
270
|
+
this.mesh.geometry = a, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = d, this.five.needsRender = !0;
|
|
288
271
|
}
|
|
289
272
|
/** 设置线条材质 */
|
|
290
273
|
setMartial(e) {
|
|
291
|
-
var
|
|
274
|
+
var i;
|
|
292
275
|
if (this.disposed)
|
|
293
276
|
return this.logError("disposed");
|
|
294
|
-
(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), ((
|
|
277
|
+
(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), (e == null ? void 0 : e.border_color) !== void 0 && this.setBorderColor(e.border_color), (e == null ? void 0 : e.border_opacity) !== void 0 && this.setBorderOpacity(e.border_opacity);
|
|
295
278
|
}
|
|
296
279
|
/** 设置贴图颜色 */
|
|
297
280
|
setColor(e) {
|
|
@@ -339,15 +322,15 @@ class R {
|
|
|
339
322
|
setTextureUrl(e) {
|
|
340
323
|
if (this.disposed)
|
|
341
324
|
return this.logError("disposed");
|
|
342
|
-
this.textureUrl = e,
|
|
343
|
-
this.disposed || this.textureUrl === e && (
|
|
325
|
+
this.textureUrl = e, L(e).then((i) => {
|
|
326
|
+
this.disposed || this.textureUrl === e && (i.wrapT = l.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());
|
|
344
327
|
});
|
|
345
328
|
}
|
|
346
329
|
setVisibleFloorIndexes(e) {
|
|
347
|
-
var
|
|
330
|
+
var i, r;
|
|
348
331
|
if (this.disposed)
|
|
349
332
|
return this.logError("disposed");
|
|
350
|
-
this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((
|
|
333
|
+
this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((r = (i = this.five.model) == null ? void 0 : i.shownFloor) != null ? r : null);
|
|
351
334
|
}
|
|
352
335
|
setStartTag(e) {
|
|
353
336
|
this.setTag("start", e);
|
|
@@ -361,42 +344,22 @@ class R {
|
|
|
361
344
|
return this.logError("disposed");
|
|
362
345
|
this.flickerAnime.play();
|
|
363
346
|
}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
* - panoIndex 在一个曲线中可能出现多次,无法确定是哪一个。
|
|
369
|
-
*/
|
|
370
|
-
getLengthByPanoGroupIndex(e) {
|
|
371
|
-
return this.disposed ? this.logError("disposed") : this.cacheLengths.length !== 0 ? this.cacheLengths[e] : (this.cacheLengths = this.getPanoGroupLengths(), this.cacheLengths[e]);
|
|
372
|
-
}
|
|
373
|
-
getPanoGroupLengths() {
|
|
374
|
-
const e = this.panoGroup.map((h) => this.five.work.observers[h]), t = this.curvePoints.length, s = this.curvePath.getLength(), a = t - 1, r = s / a, o = this.curvePath.getLengths(a), u = [];
|
|
375
|
-
let d = 0;
|
|
376
|
-
for (let h = 0; h < t; h++) {
|
|
377
|
-
const f = this.curvePoints[h], g = e[d];
|
|
378
|
-
if (!g)
|
|
379
|
-
break;
|
|
380
|
-
g.standingPosition.clone().setY(0).distanceTo(f.clone().setY(0)) < r && (u.push(o[h]), d += 1);
|
|
381
|
-
}
|
|
382
|
-
return u;
|
|
383
|
-
}
|
|
384
|
-
setTag(e, t) {
|
|
385
|
-
const s = e === "start" ? this.startTagContainer : this.endTagContainer;
|
|
386
|
-
t || s.plugin.clearTags();
|
|
387
|
-
const r = A({}, {
|
|
347
|
+
setTag(e, i) {
|
|
348
|
+
const r = e === "start" ? this.startTagContainer : this.endTagContainer;
|
|
349
|
+
i || r.plugin.clearTags();
|
|
350
|
+
const s = G({}, {
|
|
388
351
|
contentType: "Custom",
|
|
389
352
|
stickType: "2DPoint",
|
|
390
353
|
config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
|
|
391
354
|
style: { point: { enabled: !1 } },
|
|
392
355
|
data: {}
|
|
393
|
-
},
|
|
394
|
-
|
|
356
|
+
}, i);
|
|
357
|
+
r.tag = s, f(s) && (r.tag.element = (a) => {
|
|
395
358
|
var h;
|
|
396
|
-
(h =
|
|
397
|
-
const
|
|
398
|
-
return
|
|
399
|
-
}),
|
|
359
|
+
(h = r.app) == null || h.$destroy();
|
|
360
|
+
const d = new O({ target: a, intro: !0, props: s.data });
|
|
361
|
+
return r.app = d, () => d.$destroy();
|
|
362
|
+
}), r.plugin.load({ tagList: [r.tag] });
|
|
400
363
|
}
|
|
401
364
|
doShow() {
|
|
402
365
|
this.mode === "model" && this.flowAnime.play(), this.five.scene.add(this.mesh), this.startTagContainer.plugin.show(), this.endTagContainer.plugin.show(), this.five.needsRender = !0;
|
|
@@ -405,21 +368,21 @@ class R {
|
|
|
405
368
|
this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.mesh), this.startTagContainer.plugin.hide(), this.endTagContainer.plugin.hide(), this.five.needsRender = !0;
|
|
406
369
|
}
|
|
407
370
|
/** 通过 panoIndex 数组计算路径 */
|
|
408
|
-
getPathFromPanoGroup(e,
|
|
371
|
+
getPathFromPanoGroup(e, i, r) {
|
|
409
372
|
if (e.length < 2)
|
|
410
373
|
return [];
|
|
411
|
-
const
|
|
412
|
-
return [
|
|
374
|
+
const s = e.map((a) => i.observers[a]).map((a) => a.standingPosition.toArray());
|
|
375
|
+
return [u({ type: "CatmullRomCurve3", points: s }, r)];
|
|
413
376
|
}
|
|
414
377
|
}
|
|
415
|
-
function
|
|
416
|
-
return
|
|
378
|
+
function f(o) {
|
|
379
|
+
return o.contentType === "Custom";
|
|
417
380
|
}
|
|
418
|
-
const
|
|
381
|
+
const Z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
419
382
|
__proto__: null,
|
|
420
|
-
GuideLineModeItem:
|
|
383
|
+
GuideLineModeItem: B
|
|
421
384
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
422
385
|
export {
|
|
423
|
-
|
|
424
|
-
|
|
386
|
+
B as GuideLineModeItem,
|
|
387
|
+
Z as GuideLineModeItem$1
|
|
425
388
|
};
|
|
@@ -18,19 +18,12 @@ declare class GuideLineModeItem {
|
|
|
18
18
|
get panoGroup(): number[];
|
|
19
19
|
/** 可展示的楼层 */
|
|
20
20
|
get visibleFloorIndexes(): number[];
|
|
21
|
-
/** THREE Curve 路径 */
|
|
22
|
-
get curvePath(): THREE.CurvePath<THREE.Vector3>;
|
|
23
|
-
/** THREE Curve 路径上的点 */
|
|
24
|
-
get curvePoints(): THREE.Vector3[];
|
|
25
|
-
name: string;
|
|
26
21
|
startTagContainer: GuideLineTagContainer;
|
|
27
22
|
endTagContainer: GuideLineTagContainer;
|
|
28
23
|
readonly mesh: THREE.Mesh<THREE.BufferGeometry, THREE.ShaderMaterial>;
|
|
29
24
|
private five;
|
|
30
25
|
private mode;
|
|
31
26
|
private path;
|
|
32
|
-
private _curvePath;
|
|
33
|
-
private _curvePoints;
|
|
34
27
|
private _panoGroup;
|
|
35
28
|
private skippedPositions;
|
|
36
29
|
private textureUrl;
|
|
@@ -54,8 +47,6 @@ declare class GuideLineModeItem {
|
|
|
54
47
|
private disposed;
|
|
55
48
|
private flowAnime;
|
|
56
49
|
private flickerAnime;
|
|
57
|
-
/** 缓存 panoGroup 中每个点距离起点的长度 */
|
|
58
|
-
private cacheLengths;
|
|
59
50
|
constructor(five: Five, options: {
|
|
60
51
|
mode: PluginType.GuideLineModeItemMode;
|
|
61
52
|
plugin: GuideLinePlugin;
|
|
@@ -99,14 +90,6 @@ declare class GuideLineModeItem {
|
|
|
99
90
|
setEndTag(tag: Tag | PluginType.ModelGuideLineTagData | null): void;
|
|
100
91
|
/** 闪烁 */
|
|
101
92
|
flicker(): void;
|
|
102
|
-
/** 求起点到 panoIndex 曲线长度
|
|
103
|
-
* @param index panoIndex 在 panoGroup 中的索引
|
|
104
|
-
*
|
|
105
|
-
* @description 为什么不使用 panoIndex 作为参数?
|
|
106
|
-
* - panoIndex 在一个曲线中可能出现多次,无法确定是哪一个。
|
|
107
|
-
*/
|
|
108
|
-
getLengthByPanoGroupIndex(index: number): number | void;
|
|
109
|
-
private getPanoGroupLengths;
|
|
110
93
|
private setTag;
|
|
111
94
|
/** 开始走点动画 */
|
|
112
95
|
private onWalkAnimationStart;
|
|
@@ -19,12 +19,5 @@ interface LineGeometryOption {
|
|
|
19
19
|
export declare function createLineGeometry(options: LineGeometryOption): {
|
|
20
20
|
geometry: THREE.BufferGeometry;
|
|
21
21
|
maxU: number;
|
|
22
|
-
curvePath?: undefined;
|
|
23
|
-
curvePoints?: undefined;
|
|
24
|
-
} | {
|
|
25
|
-
geometry: THREE.BufferGeometry;
|
|
26
|
-
maxU: number;
|
|
27
|
-
curvePath: THREE.CurvePath<THREE.Vector3>;
|
|
28
|
-
curvePoints: THREE.Vector3[];
|
|
29
22
|
};
|
|
30
23
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as n from "three";
|
|
2
|
-
import { Vector3 as
|
|
2
|
+
import { Vector3 as P } from "three";
|
|
3
3
|
import { polylineNormals as G } from "../../vendor/polyline-normals/index.js";
|
|
4
4
|
import "../../vendor/polyline-miter-util/index.js";
|
|
5
5
|
import "../../vendor/gl-vec2/add.js";
|
|
@@ -12,35 +12,33 @@ function Q(e) {
|
|
|
12
12
|
const i = e.width, g = e.unitLength / i, c = i / 2, E = e.path;
|
|
13
13
|
if (E.length === 0)
|
|
14
14
|
return { geometry: new n.BufferGeometry(), maxU: 0 };
|
|
15
|
-
const
|
|
15
|
+
const h = new n.CurvePath();
|
|
16
16
|
E.forEach((t) => {
|
|
17
|
-
const
|
|
18
|
-
|
|
17
|
+
const a = I(t);
|
|
18
|
+
a && h.add(a);
|
|
19
19
|
});
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
const o = u.getPoints(w), y = o.length, L = G(o.map((t) => [t.x, t.z])), B = (y - 1) * z * M, d = 2 * y, C = d * X, U = d * k, r = new Uint32Array(B), s = new Float32Array(C), a = new Float32Array(U);
|
|
23
|
-
let N = 0, R = 0;
|
|
20
|
+
const x = Math.ceil(h.getLength() * 100), o = h.getPoints(x), w = o.length, L = G(o.map((t) => [t.x, t.z])), B = (w - 1) * z * M, y = 2 * w, C = y * X, U = y * k, r = new Uint32Array(B), s = new Float32Array(C), u = new Float32Array(U);
|
|
21
|
+
let d = 0, N = 0;
|
|
24
22
|
for (let t = 0; t < o.length; t++) {
|
|
25
|
-
const [
|
|
26
|
-
s[t * 6 + 0] =
|
|
27
|
-
const
|
|
28
|
-
s[t * 6 + 3] =
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
31
|
-
const V = new n.Vector3().lerpVectors(
|
|
23
|
+
const [a, R] = L[t][0], T = o[t], { x: A, y: _, z: b } = T, l = new P(A + a * c, _ + 0.05, b + R * c);
|
|
24
|
+
s[t * 6 + 0] = l.x, s[t * 6 + 1] = l.y, s[t * 6 + 2] = l.z;
|
|
25
|
+
const f = new P(A - a * c, _ + 0.05, b - R * c);
|
|
26
|
+
s[t * 6 + 3] = f.x, s[t * 6 + 4] = f.y, s[t * 6 + 5] = f.z, d += t > 0 ? o[t - 1].clone().sub(o[t]).length() : 0;
|
|
27
|
+
const p = d / i / g;
|
|
28
|
+
if (N = p, u[t * 4 + 0] = 0, u[t * 4 + 1] = p, u[t * 4 + 2] = 1, u[t * 4 + 3] = p, e.skipPositions) {
|
|
29
|
+
const V = new n.Vector3().lerpVectors(l, f, 0.5);
|
|
32
30
|
if (e.skipPositions.some((F) => F.distanceTo(V) < 0.26))
|
|
33
31
|
continue;
|
|
34
32
|
}
|
|
35
33
|
t !== o.length - 1 && (r[t * 6 + 0] = t * 2 + 0, r[t * 6 + 1] = t * 2 + 2, r[t * 6 + 2] = t * 2 + 1, r[t * 6 + 3] = t * 2 + 2, r[t * 6 + 4] = t * 2 + 3, r[t * 6 + 5] = t * 2 + 1);
|
|
36
34
|
}
|
|
37
|
-
const
|
|
38
|
-
return
|
|
35
|
+
const m = new n.BufferGeometry();
|
|
36
|
+
return m.setAttribute("position", new n.BufferAttribute(s, 3)), m.setAttribute("uv", new n.BufferAttribute(u, 2)), m.setIndex(new n.BufferAttribute(r, 1)), { geometry: m, maxU: N };
|
|
39
37
|
}
|
|
40
38
|
function I(e) {
|
|
41
39
|
if (O(e)) {
|
|
42
|
-
const i = [e.closed, e.curve_type, e.tension],
|
|
43
|
-
return new n.CatmullRomCurve3(
|
|
40
|
+
const i = [e.closed, e.curve_type, e.tension], v = e.points.map((c) => new n.Vector3().fromArray(c));
|
|
41
|
+
return new n.CatmullRomCurve3(v, ...i);
|
|
44
42
|
}
|
|
45
43
|
}
|
|
46
44
|
function O(e) {
|