@realsee/dnalogel 3.63.4-alpha.4 → 3.64.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/CHANGELOG.md +5 -0
- package/dist/GuideLinePlugin/Controller.d.ts +2 -13
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +3 -15
- package/dist/GuideLinePlugin/typing.d.ts +21 -4
- package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -12
- package/dist/GuideLinePlugin/utils/createPath.d.ts +3 -0
- package/dist/GuideLinePlugin/utils/index.d.ts +0 -7
- package/dist/MeasurePlugin/Controller.d.ts +1 -11
- package/dist/MeasurePlugin/utils/MeasureMesh.d.ts +2 -7
- package/dist/Sculpt/index.d.ts +8 -6
- package/dist/Sculpt/typings/index.d.ts +22 -11
- package/dist/Sculpt/typings/style.d.ts +1 -1
- package/dist/index.cjs.js +63 -83
- package/dist/index.js +10542 -10680
- package/dist/index.umd.js +65 -85
- package/dist/shared-utils/three/PointSelector/index.d.ts +3 -3
- package/dist/shared-utils/three/PointSelector/utils/PointSelectorHelper.d.ts +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +25 -25
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +28 -28
- package/docs/classes/CSS3DRender.html +3 -3
- package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +27 -28
- package/docs/classes/ModelMakerPluginInstance.html +15 -15
- package/docs/classes/ModelRoomLabelController.html +6 -6
- package/docs/classes/MoveController.html +17 -17
- package/docs/classes/Object3DHelperController.html +15 -15
- package/docs/classes/PaintBrush.html +5 -5
- package/docs/classes/PanoMeasurePluginLine.html +2 -2
- package/docs/classes/PanoMeasurePluginModel.html +2 -2
- package/docs/classes/PanoMeasurePluginPoint.html +2 -2
- package/docs/classes/PanoMeasurePluginPolyline.html +4 -4
- package/docs/classes/PanoTagPluginController.html +34 -34
- package/docs/classes/Sculpt.html +23 -23
- package/docs/classes/Util.BetterTween.html +2 -2
- package/docs/classes/Util.FiveDomEvents.html +4 -4
- package/docs/classes/Util.FivePuppet.html +3 -3
- package/docs/classes/Util.Interval.html +5 -5
- package/docs/classes/Util.LightTag.html +14 -14
- package/docs/classes/Util.LineSegments.html +2 -2
- package/docs/classes/Util.Magnifier.html +6 -6
- package/docs/classes/Util.Object3D.html +4 -4
- package/docs/classes/Util.PointHelper.html +2 -2
- package/docs/classes/Util.PointSelector.html +16 -16
- package/docs/classes/Util.PointSelectorHelper.html +2 -2
- package/docs/classes/Util.Rectangle.html +5 -5
- package/docs/classes/Util.sculpt.BaseEditor.html +7 -7
- package/docs/classes/Util.sculpt.BoxMesh.html +6 -6
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.CircleMesh.html +4 -4
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +4 -4
- package/docs/classes/Util.sculpt.CylinderMesh.html +5 -5
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.LineMesh.html +5 -5
- package/docs/classes/Util.sculpt.PointMesh.html +5 -5
- package/docs/classes/Util.sculpt.PolygonMesh.html +6 -6
- package/docs/classes/Util.sculpt.PrismMesh.html +6 -6
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.RectangleMesh.html +7 -7
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +7 -7
- package/docs/classes/WalkController.html +18 -18
- package/docs/enums/CameraMovementEffect.html +3 -3
- package/docs/enums/ContentType.html +18 -18
- package/docs/enums/DIRECTION.html +2 -2
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/DimensionType.html +3 -3
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/PaintBrushTypeEnum.html +2 -2
- package/docs/enums/PointType.html +3 -3
- package/docs/enums/Rotation.html +3 -3
- package/docs/functions/AreaMakerPlugin.html +1 -1
- package/docs/functions/CSS3DRenderPlugin.html +1 -1
- package/docs/functions/CameraMovementPlugin.html +2 -2
- package/docs/functions/CruisePlugin.html +1 -1
- package/docs/functions/CurrentPanoImagePlugin.html +1 -1
- package/docs/functions/GuideLinePlugin.html +1 -1
- package/docs/functions/ItemLabelPlugin.html +1 -1
- package/docs/functions/MapviewFloorplanPlugin.html +1 -1
- package/docs/functions/MeasurePlugin.html +1 -1
- package/docs/functions/ModelChassisCompassPlugin.html +2 -2
- package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
- package/docs/functions/ModelFloorplanPlugin.html +1 -1
- package/docs/functions/ModelItemLabelPlugin.html +1 -1
- package/docs/functions/ModelMakerPlugin.html +1 -1
- package/docs/functions/ModelRoomLabelPlugin.html +1 -1
- package/docs/functions/ModelTVVideoPlugin.html +1 -1
- package/docs/functions/ModelViewPlugin.html +2 -2
- package/docs/functions/MovePlugin.html +1 -1
- package/docs/functions/Object3DHelperPlugin.html +1 -1
- package/docs/functions/PanoCompassPlugin.html +1 -1
- package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
- package/docs/functions/PanoDoorLabelPlugin.html +1 -1
- package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
- package/docs/functions/PanoMeasurePlugin.html +1 -1
- package/docs/functions/PanoRulerPlugin.html +2 -2
- package/docs/functions/PanoRulerProPlugin.html +2 -2
- package/docs/functions/PanoSpatialTagPlugin.html +2 -2
- package/docs/functions/PanoTagPlugin.html +1 -1
- package/docs/functions/PanoVideoPlugin.html +2 -2
- package/docs/functions/PipelinePlugin.html +1 -1
- package/docs/functions/SculptPlugin.html +2 -2
- package/docs/functions/TopviewFloorplanPlugin.html +1 -1
- package/docs/functions/Util.absoluteUrl.html +2 -2
- package/docs/functions/Util.awaitNextFrame.html +1 -1
- package/docs/functions/Util.blink.html +2 -2
- package/docs/functions/Util.bounding.html +1 -1
- package/docs/functions/Util.boundingBox.html +1 -1
- package/docs/functions/Util.boundingSphere.html +1 -1
- package/docs/functions/Util.boxVertex.html +2 -2
- package/docs/functions/Util.boxVertexes.html +1 -1
- package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
- package/docs/functions/Util.convexHull.html +2 -2
- package/docs/functions/Util.equal.html +2 -2
- package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
- package/docs/functions/Util.getCoordsFromClient.html +1 -1
- package/docs/functions/Util.getCoordsFromElement.html +1 -1
- package/docs/functions/Util.getFrameTime.html +2 -2
- package/docs/functions/Util.initialCSS3DRender.html +1 -1
- package/docs/functions/Util.inside.html +1 -1
- package/docs/functions/Util.isAbsoluteURL.html +1 -1
- package/docs/functions/Util.isModelLike.html +1 -1
- package/docs/functions/Util.isNil.html +2 -2
- package/docs/functions/Util.isPanoramaLike.html +1 -1
- package/docs/functions/Util.lookObject.html +2 -2
- package/docs/functions/Util.lookPoint.html +2 -2
- package/docs/functions/Util.nextFrame.html +1 -1
- package/docs/functions/Util.notNil.html +2 -2
- package/docs/functions/Util.reblink.html +2 -2
- package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
- package/docs/functions/Util.sculpt.createBox.html +1 -1
- package/docs/functions/Util.sculpt.createCircle.html +1 -1
- package/docs/functions/Util.sculpt.createCylinder.html +1 -1
- package/docs/functions/Util.sculpt.createLine.html +2 -2
- package/docs/functions/Util.sculpt.createPoint.html +1 -1
- package/docs/functions/Util.sculpt.createPolygon.html +1 -1
- package/docs/functions/Util.sculpt.createPrism.html +1 -1
- package/docs/functions/Util.sculpt.createRectangle.html +2 -2
- package/docs/functions/Util.tag.html +1 -1
- package/docs/functions/Util.tweenProgress.html +1 -1
- package/docs/functions/Util.uuid.html +2 -2
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
- package/docs/functions/Util.worldBounding.html +1 -1
- package/docs/functions/Util.worldBoundingBox.html +1 -1
- package/docs/functions/Util.worldBoundingSphere.html +1 -1
- package/docs/functions/createPolyline.html +2 -2
- package/docs/functions/pluginFlag.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +12 -12
- package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +4 -4
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.State.html +5 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
- package/docs/interfaces/ContentTypeMapInterface.html +15 -15
- package/docs/interfaces/CruisePluginTypes.Config.html +4 -4
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
- package/docs/interfaces/CruisePluginTypes.EventMap.html +17 -17
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +4 -4
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +9 -9
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +10 -10
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +11 -11
- package/docs/interfaces/CruisePluginTypes.PluginData.html +4 -4
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +7 -7
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +7 -7
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +8 -8
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +4 -4
- package/docs/interfaces/FloorplanBounding.html +5 -5
- package/docs/interfaces/FloorplanData.html +3 -3
- package/docs/interfaces/FloorplanEntrance.html +8 -8
- package/docs/interfaces/FloorplanExtraObject.html +5 -5
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
- package/docs/interfaces/FloorplanFloorData.html +3 -3
- package/docs/interfaces/FloorplanImagePosition.html +3 -3
- package/docs/interfaces/FloorplanObserver.html +3 -3
- package/docs/interfaces/FloorplanOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanPosition.html +3 -3
- package/docs/interfaces/FloorplanRoomItem.html +8 -8
- package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
- package/docs/interfaces/FloorplanServerBounding.html +5 -5
- package/docs/interfaces/FloorplanServerComputedData.html +2 -2
- package/docs/interfaces/FloorplanServerData.html +3 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
- package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +8 -8
- package/docs/interfaces/FloorplanServerFloorData.html +3 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
- package/docs/interfaces/FloorplanServerObserver.html +3 -3
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanServerPosition.html +3 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +9 -9
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -5
- package/docs/interfaces/GuideLinePluginType.EventMap.html +5 -5
- package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +5 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +16 -16
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +19 -19
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +4 -4
- package/docs/interfaces/GuideLinePluginType.Route.html +9 -2
- package/docs/interfaces/HelperOffset.html +2 -2
- package/docs/interfaces/ImagePlaneGroup.html +2 -2
- package/docs/interfaces/ItemLabelPluginData.html +2 -2
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/MinMax.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +10 -10
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +4 -4
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +4 -4
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +4 -4
- package/docs/interfaces/ModelMakerPluginType.State.html +5 -5
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
- package/docs/interfaces/ModelViewPluginExportType.html +2 -2
- package/docs/interfaces/Object3DHelperState.html +2 -2
- package/docs/interfaces/ObjectHelperControllers.html +2 -2
- package/docs/interfaces/PaintBrushAction.html +7 -7
- package/docs/interfaces/PaintBrushConfigs.html +2 -2
- package/docs/interfaces/PaintBrushState.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +6 -6
- package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +4 -4
- package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginState.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +7 -7
- package/docs/interfaces/PluginEventMap.html +4 -4
- package/docs/interfaces/Point.html +2 -2
- package/docs/interfaces/Room.html +2 -2
- package/docs/interfaces/RoomInfo.html +2 -2
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +6 -6
- package/docs/interfaces/State.html +4 -4
- package/docs/interfaces/TagCacheInterface.html +3 -3
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconUrl.html +9 -9
- package/docs/interfaces/TagObjectGroup.html +2 -2
- package/docs/interfaces/TagStyle.html +2 -2
- package/docs/interfaces/Tags.html +4 -4
- package/docs/interfaces/TemporaryState.html +2 -2
- package/docs/interfaces/Util.AnimeInstance.html +2 -2
- package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
- package/docs/interfaces/Util.EventHandlerConfig.html +4 -4
- package/docs/interfaces/Util.FiveDomEvent.html +2 -2
- package/docs/interfaces/Util.FiveDomEventMap.html +10 -10
- package/docs/interfaces/Util.MagnifierParameter.html +5 -5
- package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.PointIntersection.html +11 -11
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +3 -3
- package/docs/modules/AreaMakerPluginType.html +2 -2
- package/docs/modules/CruisePluginTypes.html +2 -2
- package/docs/modules/CurrentPanoImagePluginType.html +2 -2
- package/docs/modules/GuideLineItem.html +2 -2
- package/docs/modules/GuideLineModeItem.html +2 -2
- package/docs/modules/GuideLinePluginType.html +4 -3
- package/docs/modules/ModelMakerPluginType.html +2 -2
- package/docs/modules/PanoVideoPluginType.html +2 -2
- package/docs/modules/SculptData.html +2 -2
- package/docs/modules/SculptType.html +2 -0
- package/docs/modules/Util.html +2 -2
- package/docs/modules/Util.sculpt.html +2 -2
- package/docs/modules.html +3 -2
- package/docs/types/AddObject3DHelperConfig.html +2 -2
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
- package/docs/types/ArrayPosition.html +1 -1
- package/docs/types/AudioAppearance.html +1 -1
- package/docs/types/CSS3DRenderExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
- package/docs/types/ClassFunctionParameters.html +1 -1
- package/docs/types/Color.html +1 -1
- package/docs/types/ContentTypeConfigKey.html +1 -1
- package/docs/types/ContentTypeConfigKeySplit.html +1 -1
- package/docs/types/ContentTypeMap.html +1 -1
- package/docs/types/Create3DDomContainerReturnType.html +1 -1
- package/docs/types/Create3DElementReturnType.html +1 -1
- package/docs/types/CruisePluginExportType.html +1 -1
- package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
- package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
- package/docs/types/DeprecatedTagProperty.html +2 -2
- package/docs/types/Direction-1.html +1 -1
- package/docs/types/Direction4.html +1 -1
- package/docs/types/ElementRenderer.html +2 -2
- package/docs/types/FloorplanRuleLabels.html +2 -2
- package/docs/types/FloorplanServerRuleLabels.html +1 -1
- package/docs/types/GuideLinePluginExportType.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -10
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
- package/docs/types/GuideLinePluginType.PathItem.html +2 -2
- package/docs/types/GuideLinePluginType.PluginData.html +2 -2
- package/docs/types/GuideLinePluginType.RouteConfig.html +4 -0
- package/docs/types/HelperEventMap.html +1 -1
- package/docs/types/InternalHelperEventMap.html +1 -1
- package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/MediaData.html +2 -2
- package/docs/types/MediaStore.html +1 -1
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
- package/docs/types/ModelId.html +1 -1
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
- package/docs/types/ModelMakerPluginType.ItemType.html +1 -1
- package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
- package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
- package/docs/types/MoveArgs.html +2 -2
- package/docs/types/MoveOpts.html +2 -2
- package/docs/types/Object3DHelperEventMap.html +1 -1
- package/docs/types/ObjectFit.html +1 -1
- package/docs/types/PaintBrushEventMap.html +1 -1
- package/docs/types/PanoCompassPluginData.html +1 -1
- package/docs/types/PanoCompassPluginExportType.html +1 -1
- package/docs/types/PanoCompassPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
- package/docs/types/PanoIndex.html +1 -1
- package/docs/types/PanoMeasurePluginEvent.html +1 -1
- package/docs/types/PanoMeasureReturnType.html +1 -1
- package/docs/types/PanoSpatialTagPluginId.html +1 -1
- package/docs/types/PanoTagPluginExportInterface.html +1 -1
- package/docs/types/PanoTagPluginParamsInterface.html +1 -1
- package/docs/types/PanoVideoPluginParameterType.html +1 -1
- package/docs/types/PanoVideoPluginReturnType.html +1 -1
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
- package/docs/types/PipelinePluginParameterType.html +1 -1
- package/docs/types/PipelinePluginReturnType.html +1 -1
- package/docs/types/PlaneTag.html +2 -2
- package/docs/types/Point2DTag.html +2 -2
- package/docs/types/Point3DTag.html +2 -2
- package/docs/types/PointTagInstance.html +1 -1
- package/docs/types/Position.html +1 -1
- package/docs/types/PositionFrom.html +1 -1
- package/docs/types/RotateArgs.html +2 -2
- package/docs/types/RotateOpts.html +2 -2
- package/docs/types/RuleLabelsKey.html +1 -1
- package/docs/types/RuleLabelsValue.html +1 -1
- package/docs/types/ScaleCallback.html +1 -1
- package/docs/types/ScalePosition.html +2 -2
- package/docs/types/SculptData.BoxData.html +1 -1
- package/docs/types/SculptData.CircleData.html +1 -1
- package/docs/types/SculptData.CylinderData.html +1 -1
- package/docs/types/SculptData.PointData.html +1 -1
- package/docs/types/SculptData.PolygonData.html +1 -1
- package/docs/types/SculptData.PolylineData.html +1 -1
- package/docs/types/SculptData.PrismData.html +1 -1
- package/docs/types/SculptData.RectangleData.html +1 -1
- package/docs/types/SculptType.Theme.html +10 -0
- package/docs/types/StickType.html +1 -1
- package/docs/types/Tag.html +2 -2
- package/docs/types/Tag2D.html +2 -2
- package/docs/types/Tag3D.html +2 -2
- package/docs/types/TagClickParams.html +1 -1
- package/docs/types/TagConfigByKey.html +1 -1
- package/docs/types/TagContentType.html +1 -1
- package/docs/types/TagContentTypeMapping.html +1 -1
- package/docs/types/TagDimensionType.html +1 -1
- package/docs/types/TagElement.html +2 -2
- package/docs/types/TagEvents.html +1 -1
- package/docs/types/TagGLTFObject.html +1 -1
- package/docs/types/TagHooks.html +1 -1
- package/docs/types/TagId.html +1 -1
- package/docs/types/TagInstance.html +1 -1
- package/docs/types/TagPointType.html +2 -2
- package/docs/types/TagRendererMap.html +1 -1
- package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/Util.ActionIfNoIntersection.html +1 -1
- package/docs/types/Util.AdherePoint.html +2 -2
- package/docs/types/Util.PointSelectorConfig.html +1 -1
- package/docs/types/WorkCode.html +1 -1
- package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
- package/docs/variables/PLUGIN.html +1 -1
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
- package/docs/variables/ROOM_TYPE_MAP.html +2 -2
- package/docs/variables/Util.animeMap.html +1 -1
- package/docs/variables/defaultGlobalConfig.html +1 -1
- package/docs/variables/itemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
- package/libs/AreaMakerPlugin/Controller.js +2 -3
- package/libs/AreaMakerPlugin/index.js +2 -3
- package/libs/AreaMakerPlugin/utils/Item.js +2 -3
- package/libs/CSS3DRenderPlugin/Controller.js +2 -3
- package/libs/CSS3DRenderPlugin/index.js +5 -6
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +2 -3
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +2 -3
- package/libs/CruisePlugin/BaseController.js +4 -5
- package/libs/CruisePlugin/Move.js +1 -1
- package/libs/CruisePlugin/Work.js +1 -1
- package/libs/CruisePlugin/index.js +1 -1
- package/libs/CurrentPanoImagePlugin/Controller.js +2 -3
- package/libs/CurrentPanoImagePlugin/index.js +3 -4
- package/libs/GuideLinePlugin/Controller.d.ts +2 -13
- package/libs/GuideLinePlugin/Controller.js +53 -54
- package/libs/GuideLinePlugin/GuideLineItem/index.js +52 -50
- package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +109 -175
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +3 -15
- package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
- package/libs/GuideLinePlugin/index.js +1 -1
- package/libs/GuideLinePlugin/typing.d.ts +21 -4
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -12
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +88 -124
- package/libs/GuideLinePlugin/utils/createPath.d.ts +3 -0
- package/libs/GuideLinePlugin/utils/createPath.js +33 -0
- package/libs/GuideLinePlugin/utils/index.d.ts +0 -7
- package/libs/GuideLinePlugin/utils/index.js +3 -11
- package/libs/MeasurePlugin/Controller.d.ts +1 -11
- package/libs/MeasurePlugin/Controller.js +80 -111
- package/libs/MeasurePlugin/index.js +2 -3
- package/libs/MeasurePlugin/utils/MeasureMesh.d.ts +2 -7
- package/libs/MeasurePlugin/utils/MeasureMesh.js +16 -30
- package/libs/ModelMakerPlugin/Controller.js +2 -3
- package/libs/ModelMakerPlugin/index.js +2 -3
- package/libs/ModelMakerPlugin/item/baseItem.js +2 -3
- package/libs/ModelMakerPlugin/item/boxItem.js +2 -3
- package/libs/ModelMakerPlugin/item/polygonItem.js +2 -3
- package/libs/ModelMakerPlugin/item/prismItem.js +2 -3
- package/libs/ModelTVVideoPlugin/Plugin.js +3 -4
- package/libs/ModelTVVideoPlugin/index.js +2 -3
- package/libs/ModelViewPlugin/Plugin.js +3 -4
- package/libs/ModelViewPlugin/index.js +0 -1
- package/libs/Object3DHelperPlugin/Controller.js +15 -16
- package/libs/Object3DHelperPlugin/index.js +5 -6
- package/libs/PanoCompassPlugin/Controller.js +2 -3
- package/libs/PanoCompassPlugin/index.js +3 -4
- package/libs/PanoDoorLabelPlugin/Controller.js +2 -3
- package/libs/PanoDoorLabelPlugin/index.js +3 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +2 -3
- package/libs/PanoMeasurePlugin/Components/Controller1.js +2 -3
- package/libs/PanoMeasurePlugin/Controller/EditController.js +2 -3
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +2 -3
- package/libs/PanoMeasurePlugin/Controller/index.js +2 -3
- package/libs/PanoMeasurePlugin/Model/area.js +11 -12
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +0 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +2 -3
- package/libs/PanoMeasurePlugin/index.js +13 -14
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +2 -3
- package/libs/PanoRulerProPlugin/Controller.js +2 -3
- package/libs/PanoRulerProPlugin/RulerItems.js +2 -3
- package/libs/PanoRulerProPlugin/index.js +3 -4
- package/libs/PanoSpatialTagPlugin/Plugin.js +63 -64
- package/libs/PanoSpatialTagPlugin/index.js +0 -1
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +2 -3
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +2 -3
- package/libs/PanoTagPlugin/Components/Tag/index.js +2 -3
- package/libs/PanoTagPlugin/Components/TagContainer.js +2 -3
- package/libs/PanoTagPlugin/Components/TagItem.js +2 -3
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +2 -3
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +2 -3
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +26 -27
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +2 -3
- package/libs/PanoTagPlugin/controller/TagRender.js +2 -3
- package/libs/PanoTagPlugin/controller/TagUtil.js +2 -3
- package/libs/PanoTagPlugin/controller/index.js +5 -6
- package/libs/PanoTagPlugin/index.js +11 -12
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +16 -17
- package/libs/PanoVideoPlugin/Controller.js +2 -3
- package/libs/PanoVideoPlugin/VideoMeshController.js +2 -3
- package/libs/PanoVideoPlugin/index.js +5 -6
- package/libs/PipelinePlugin/Controller.js +19 -20
- package/libs/PipelinePlugin/index.js +3 -4
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +2 -3
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +2 -3
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +0 -1
- package/libs/Sculpt/Meshes/Line.js +75 -75
- package/libs/Sculpt/Meshes/Polygon.js +11 -7
- package/libs/Sculpt/index.d.ts +8 -6
- package/libs/Sculpt/index.js +20 -20
- package/libs/Sculpt/typings/index.d.ts +22 -11
- package/libs/Sculpt/typings/style.d.ts +1 -1
- package/libs/Sculpt/utils/three/ColoredMesh.js +21 -22
- package/libs/base/BasePlugin.js +3 -3
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +2 -3
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +3 -4
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +2 -3
- package/libs/floorplan/ModelFloorplanPlugin/index.js +3 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +2 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +3 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +2 -3
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +3 -4
- package/libs/index.js +1 -1
- package/libs/shared-utils/five/FiveDomEvents.js +1 -3
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/index.d.ts +3 -3
- package/libs/shared-utils/three/PointSelector/index.js +5 -6
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.d.ts +1 -1
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -3
- package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +91 -91
- package/package.json +1 -1
- package/dist/Sculpt/utils/unit.d.ts +0 -2
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -4
- package/libs/Sculpt/utils/unit.d.ts +0 -2
- package/libs/Sculpt/utils/unit.js +0 -14
|
@@ -2,10 +2,29 @@ import type GuideLinePlugin from '.';
|
|
|
2
2
|
import type { RequireAtLeastOne } from 'type-fest';
|
|
3
3
|
import type * as BasePluginWithData from '../base/BasePluginWithData';
|
|
4
4
|
import type { Tag } from '../PanoTagPlugin';
|
|
5
|
-
export
|
|
5
|
+
export type RouteConfig = {
|
|
6
|
+
/**
|
|
7
|
+
* @description 箭头贴图
|
|
8
|
+
*/
|
|
6
9
|
arrowTextureUrl?: string;
|
|
10
|
+
/**
|
|
11
|
+
* @description 单位箭头宽度,单位:米
|
|
12
|
+
*/
|
|
7
13
|
unitWidth?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @description 单位箭头高度,单位:米
|
|
16
|
+
*/
|
|
8
17
|
unitHeight?: number;
|
|
18
|
+
} & ExtraRouteData;
|
|
19
|
+
export interface ExtraRouteData {
|
|
20
|
+
/**
|
|
21
|
+
* @description 预处理数据,用于优化路线生成效果
|
|
22
|
+
*/
|
|
23
|
+
route_standing_positions?: number[][];
|
|
24
|
+
/**
|
|
25
|
+
* @description 预处理数据,用于优化路线生成效果
|
|
26
|
+
*/
|
|
27
|
+
node_pair_to_route_points?: Record<string, number[][]>;
|
|
9
28
|
}
|
|
10
29
|
export interface Route extends RouteConfig {
|
|
11
30
|
id?: number;
|
|
@@ -82,7 +101,7 @@ export type GuideLineItem = RequireAtLeastOne<{
|
|
|
82
101
|
panorama_style?: PanoramaGuideLineStyle;
|
|
83
102
|
/** 模型态使用的数据 */
|
|
84
103
|
model_style?: ModelGuideLineStyle;
|
|
85
|
-
}, 'id' | 'render_id'>;
|
|
104
|
+
} & ExtraRouteData, 'id' | 'render_id'>;
|
|
86
105
|
/** 全景路径样式 */
|
|
87
106
|
export interface PanoramaGuideLineStyle extends GuideLineStyle {
|
|
88
107
|
start_tag?: Tag;
|
|
@@ -177,6 +196,4 @@ export interface CatmullRomCurve3 {
|
|
|
177
196
|
closed?: boolean;
|
|
178
197
|
curve_type?: string;
|
|
179
198
|
tension?: number;
|
|
180
|
-
panoIndexList?: number[];
|
|
181
|
-
panoIndexMap?: Record<number, number>;
|
|
182
199
|
}
|
|
@@ -22,17 +22,7 @@ export declare function createLineGeometry(options: LineGeometryOption): {
|
|
|
22
22
|
maxV: number;
|
|
23
23
|
curvePath: any;
|
|
24
24
|
curvePoints: any;
|
|
25
|
-
panoMap: {};
|
|
26
25
|
animationWillError?: undefined;
|
|
27
|
-
totalLength?: undefined;
|
|
28
|
-
} | {
|
|
29
|
-
geometry: THREE.BufferGeometry;
|
|
30
|
-
maxV: number;
|
|
31
|
-
curvePath: any;
|
|
32
|
-
curvePoints: any;
|
|
33
|
-
panoMap?: undefined;
|
|
34
|
-
animationWillError?: undefined;
|
|
35
|
-
totalLength?: undefined;
|
|
36
26
|
} | {
|
|
37
27
|
geometry: THREE.BufferGeometry;
|
|
38
28
|
maxV: number;
|
|
@@ -42,7 +32,5 @@ export declare function createLineGeometry(options: LineGeometryOption): {
|
|
|
42
32
|
}[];
|
|
43
33
|
curvePath: THREE.CurvePath<THREE.Vector3>;
|
|
44
34
|
curvePoints: THREE.Vector3[];
|
|
45
|
-
panoMap: Record<number, number>;
|
|
46
|
-
totalLength: number;
|
|
47
35
|
};
|
|
48
36
|
export {};
|
|
@@ -1,151 +1,115 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { Vector3 as
|
|
3
|
-
import { polylineNormals as
|
|
4
|
-
import { lineIsIntersecting as
|
|
1
|
+
import * as i from "three";
|
|
2
|
+
import { Vector3 as J } from "three";
|
|
3
|
+
import { polylineNormals as ot } from "../../vendor/polyline-normals/index.js";
|
|
4
|
+
import { lineIsIntersecting as rt, findIntersectingOfLines as it } from "../../shared-utils/math/intersecting.js";
|
|
5
5
|
import "../../vendor/polyline-miter-util/index.js";
|
|
6
6
|
import "../../vendor/gl-vec2/add.js";
|
|
7
7
|
import "../../vendor/gl-vec2/set.js";
|
|
8
8
|
import "../../vendor/gl-vec2/normalize.js";
|
|
9
9
|
import "../../vendor/gl-vec2/subtract.js";
|
|
10
10
|
import "../../vendor/gl-vec2/dot.js";
|
|
11
|
-
const
|
|
12
|
-
function
|
|
13
|
-
const
|
|
14
|
-
if (
|
|
15
|
-
return { geometry: new
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
|
|
11
|
+
const st = 2, ct = 3, lt = 3, ut = 2;
|
|
12
|
+
function Rt(s) {
|
|
13
|
+
const T = s.width, v = s.unitLength, y = T / 2, U = s.path;
|
|
14
|
+
if (U.length === 0)
|
|
15
|
+
return { geometry: new i.BufferGeometry(), maxV: 0, curvePath: null, curvePoints: null };
|
|
16
|
+
const p = new i.CurvePath();
|
|
17
|
+
U.forEach((t) => {
|
|
18
|
+
const o = at(t);
|
|
19
|
+
o && p.add(o);
|
|
20
20
|
});
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
if (
|
|
25
|
-
return { geometry: new
|
|
26
|
-
const
|
|
27
|
-
let
|
|
28
|
-
|
|
29
|
-
const t = [];
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
const n = t[t.length - 1], d = [];
|
|
40
|
-
for (let s = 0; s < t.length; s++) {
|
|
41
|
-
const u = t[s], m = s === 0 ? 0 : t[s - 1], y = s === t.length - 1 ? n : t[s + 1], l = u - Math.min(0.3, (u - m) / 2), a = u + Math.min(0.3, (y - u) / 2);
|
|
42
|
-
d.push([J * (l / n), J * (a / n)]);
|
|
43
|
-
}
|
|
44
|
-
return d;
|
|
45
|
-
})();
|
|
46
|
-
let S = [];
|
|
47
|
-
for (let t = 0; t < x; t++) {
|
|
48
|
-
const [n, d] = st[t][0], s = P[t], { x: u, y: m, z: y } = s, l = new ot(u + n * b, m + 0.05, y + d * b);
|
|
49
|
-
e[t * 6 + 0] = l.x, e[t * 6 + 1] = l.y, e[t * 6 + 2] = l.z;
|
|
50
|
-
const a = new ot(u - n * b, m + 0.05, y - d * b);
|
|
51
|
-
e[t * 6 + 3] = a.x, e[t * 6 + 4] = a.y, e[t * 6 + 5] = a.z, I += t > 0 ? P[t - 1].clone().sub(P[t]).length() : 0;
|
|
52
|
-
const R = I / N;
|
|
53
|
-
K = R, T[t * 4 + 0] = 0, T[t * 4 + 1] = R, T[t * 4 + 2] = 1, T[t * 4 + 3] = R;
|
|
54
|
-
const _ = new r.Vector3().lerpVectors(l, a, 0.5);
|
|
55
|
-
if (i.skipPositions && i.skipPositions.some((B) => B.distanceTo(_) < 0.26))
|
|
56
|
-
continue;
|
|
57
|
-
const L = k[0];
|
|
58
|
-
if (i.useAutoDepthTest && L && W) {
|
|
59
|
-
const f = W[0], [B, C] = tt[0];
|
|
60
|
-
if (I > B && I < C && S.push({
|
|
61
|
-
distance: L.distanceTo(_),
|
|
62
|
-
index: t
|
|
63
|
-
}), I >= C || t === x - 1) {
|
|
64
|
-
const E = Math.min(...S.map((c) => c.distance)), D = S.find((c) => c.distance === E);
|
|
65
|
-
if (S = [], k.shift(), W.shift(), tt.shift(), D)
|
|
66
|
-
Q[f] = D.index;
|
|
67
|
-
else {
|
|
68
|
-
console.error(`can not find the min distance ${f}`);
|
|
69
|
-
continue;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
t !== x - 1 && (v[t * 6 + 0] = t * 2 + 0, v[t * 6 + 1] = t * 2 + 2, v[t * 6 + 2] = t * 2 + 1, v[t * 6 + 3] = t * 2 + 2, v[t * 6 + 4] = t * 2 + 3, v[t * 6 + 5] = t * 2 + 1);
|
|
21
|
+
const O = Math.ceil(p.getLength() * 100);
|
|
22
|
+
p.arcLengthDivisions = O;
|
|
23
|
+
const g = p.getPoints(O), m = g.length;
|
|
24
|
+
if (m <= 2)
|
|
25
|
+
return { geometry: new i.BufferGeometry(), maxV: 0, curvePath: null, curvePoints: null };
|
|
26
|
+
const K = ot(g.map((t) => [t.x, t.z])), Q = (m - 1) * st * ct, Y = 2 * m, $ = Y * lt, tt = Y * ut, x = new Uint32Array(Q), e = new Float32Array($), V = new Float32Array(tt);
|
|
27
|
+
let j = 0, W = 0;
|
|
28
|
+
for (let t = 0; t < m; t++) {
|
|
29
|
+
const [o, E] = K[t][0], N = g[t], { x: w, y: R, z: b } = N, c = new J(w + o * y, R + 0.05, b + E * y);
|
|
30
|
+
e[t * 6 + 0] = c.x, e[t * 6 + 1] = c.y, e[t * 6 + 2] = c.z;
|
|
31
|
+
const l = new J(w - o * y, R + 0.05, b - E * y);
|
|
32
|
+
e[t * 6 + 3] = l.x, e[t * 6 + 4] = l.y, e[t * 6 + 5] = l.z, j += t > 0 ? g[t - 1].clone().sub(g[t]).length() : 0;
|
|
33
|
+
const A = j / v;
|
|
34
|
+
W = A, V[t * 4 + 0] = 0, V[t * 4 + 1] = A, V[t * 4 + 2] = 1, V[t * 4 + 3] = A;
|
|
35
|
+
const _ = new i.Vector3().lerpVectors(c, l, 0.5);
|
|
36
|
+
s.skipPositions && s.skipPositions.some((f) => f.distanceTo(_) < 0.26) || t !== m - 1 && (x[t * 6 + 0] = t * 2 + 0, x[t * 6 + 1] = t * 2 + 2, x[t * 6 + 2] = t * 2 + 1, x[t * 6 + 3] = t * 2 + 2, x[t * 6 + 4] = t * 2 + 3, x[t * 6 + 5] = t * 2 + 1);
|
|
74
37
|
}
|
|
75
|
-
const
|
|
76
|
-
let
|
|
77
|
-
const
|
|
78
|
-
for (let t = 0; t <
|
|
79
|
-
if (
|
|
38
|
+
const u = [];
|
|
39
|
+
let S;
|
|
40
|
+
const X = [];
|
|
41
|
+
for (let t = 0; t < m - 1; t++) {
|
|
42
|
+
if (S !== void 0 && t <= S)
|
|
80
43
|
continue;
|
|
81
|
-
const
|
|
44
|
+
const o = t + 1, E = {
|
|
82
45
|
x: e[t * 6 + 0],
|
|
83
46
|
y: e[t * 6 + 2]
|
|
84
|
-
},
|
|
47
|
+
}, N = {
|
|
85
48
|
x: e[t * 6 + 3],
|
|
86
49
|
y: e[t * 6 + 5]
|
|
87
|
-
},
|
|
88
|
-
x: e[
|
|
89
|
-
y: e[
|
|
90
|
-
},
|
|
91
|
-
x: e[
|
|
92
|
-
y: e[
|
|
93
|
-
},
|
|
94
|
-
if (
|
|
95
|
-
|
|
96
|
-
const
|
|
97
|
-
for (let
|
|
98
|
-
|
|
99
|
-
const
|
|
100
|
-
for (let
|
|
101
|
-
|
|
102
|
-
const
|
|
103
|
-
if (
|
|
50
|
+
}, w = {
|
|
51
|
+
x: e[o * 6 + 0],
|
|
52
|
+
y: e[o * 6 + 2]
|
|
53
|
+
}, R = {
|
|
54
|
+
x: e[o * 6 + 3],
|
|
55
|
+
y: e[o * 6 + 5]
|
|
56
|
+
}, b = rt([E, N], [w, R]);
|
|
57
|
+
if (b && u.push(t), !b && u.length) {
|
|
58
|
+
u.push(t);
|
|
59
|
+
const c = new i.Vector2(E.x, E.y).distanceTo(new i.Vector2(w.x, w.y)), l = new i.Vector2(N.x, N.y).distanceTo(new i.Vector2(R.x, R.y)), A = 300, _ = [], k = [], f = Math.max(0, u[0] - v * A), et = u[0];
|
|
60
|
+
for (let r = f; r < et; r++)
|
|
61
|
+
c < l ? _.push({ x: e[r * 6 + 0], y: e[r * 6 + 2] }) : _.push({ x: e[r * 6 + 3], y: e[r * 6 + 5] });
|
|
62
|
+
const D = u[u.length - 1], L = Math.min(m - 1, u[u.length - 1] + v * A);
|
|
63
|
+
for (let r = D; r < L; r++)
|
|
64
|
+
c < l ? k.push({ x: e[r * 6 + 0], y: e[r * 6 + 2] }) : k.push({ x: e[r * 6 + 3], y: e[r * 6 + 5] });
|
|
65
|
+
const H = it(_, k);
|
|
66
|
+
if (H) {
|
|
104
67
|
const {
|
|
105
|
-
line1RelativeIndex:
|
|
106
|
-
line2RelativeIndex:
|
|
107
|
-
x:
|
|
108
|
-
y:
|
|
109
|
-
} =
|
|
110
|
-
for (let
|
|
111
|
-
|
|
112
|
-
let
|
|
113
|
-
|
|
114
|
-
for (let
|
|
115
|
-
const
|
|
116
|
-
|
|
68
|
+
line1RelativeIndex: r,
|
|
69
|
+
line2RelativeIndex: nt,
|
|
70
|
+
x: Z,
|
|
71
|
+
y: q
|
|
72
|
+
} = H, d = f + r, h = D + nt + 2;
|
|
73
|
+
for (let n = d; n < h; n++)
|
|
74
|
+
c < l ? (e[n * 6 + 0] = Z, e[n * 6 + 2] = q) : (e[n * 6 + 3] = Z, e[n * 6 + 5] = q), S = n;
|
|
75
|
+
let P, F, G, M, a;
|
|
76
|
+
c < l ? (P = e[f * 6 + 1], F = e[d * 6 + 1], G = e[h * 6 + 1], M = e[L * 6 + 1], a = (F + G) / 2) : (P = e[f * 6 + 4], F = e[d * 6 + 4], G = e[h * 6 + 4], M = e[L * 6 + 4], a = (F + G) / 2);
|
|
77
|
+
for (let n = f; n < d; n++) {
|
|
78
|
+
const z = d - f, B = (n - f) / z;
|
|
79
|
+
c < l ? e[n * 6 + 1] = P + (a - P) * B : e[n * 6 + 4] = P + (a - P) * B;
|
|
117
80
|
}
|
|
118
|
-
for (let
|
|
119
|
-
|
|
120
|
-
for (let
|
|
121
|
-
const
|
|
122
|
-
|
|
81
|
+
for (let n = d; n < h; n++)
|
|
82
|
+
c < l ? e[n * 6 + 1] = a : e[n * 6 + 4] = a;
|
|
83
|
+
for (let n = h; n < L; n++) {
|
|
84
|
+
const z = L - h, B = (n - h + 1) / z;
|
|
85
|
+
c < l ? e[n * 6 + 1] = a + (M - a) * B : e[n * 6 + 4] = a + (M - a) * B;
|
|
123
86
|
}
|
|
124
|
-
|
|
125
|
-
start:
|
|
126
|
-
end:
|
|
87
|
+
X.push({
|
|
88
|
+
start: d,
|
|
89
|
+
end: h
|
|
127
90
|
});
|
|
128
91
|
}
|
|
129
|
-
|
|
92
|
+
u.length = 0;
|
|
130
93
|
}
|
|
131
94
|
}
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
for (let
|
|
135
|
-
|
|
95
|
+
const I = new Float32Array(Y);
|
|
96
|
+
X.forEach((t) => {
|
|
97
|
+
for (let o = 0; o < m - 1; o++)
|
|
98
|
+
o >= t.start && o <= t.end ? (I[o * 2 + 0] = 1, I[o * 2 + 1] = 1) : I[o] !== 1 && (I[o * 2 + 0] = 0, I[o * 2 + 1] = 0);
|
|
136
99
|
});
|
|
137
|
-
const
|
|
138
|
-
return
|
|
100
|
+
const C = new i.BufferGeometry();
|
|
101
|
+
return C.setAttribute("position", new i.BufferAttribute(e, 3)), C.setAttribute("uv", new i.BufferAttribute(V, 2)), C.setIndex(new i.BufferAttribute(x, 1)), { geometry: C, maxV: W, animationWillError: X, curvePath: p, curvePoints: g };
|
|
139
102
|
}
|
|
140
|
-
function
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
103
|
+
function at(s) {
|
|
104
|
+
var T, v;
|
|
105
|
+
if (ft(s)) {
|
|
106
|
+
const y = s.points.map((p) => new i.Vector3().fromArray(p));
|
|
107
|
+
return new i.CatmullRomCurve3(y, (T = s.closed) != null ? T : !1, (v = s.curve_type) != null ? v : "centripetal", s.tension);
|
|
144
108
|
}
|
|
145
109
|
}
|
|
146
|
-
function
|
|
147
|
-
return
|
|
110
|
+
function ft(s) {
|
|
111
|
+
return s.type === "CatmullRomCurve3";
|
|
148
112
|
}
|
|
149
113
|
export {
|
|
150
|
-
|
|
114
|
+
Rt as createLineGeometry
|
|
151
115
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { Work } from '@realsee/five';
|
|
2
|
+
import type { CatmullRomCurve3, ExtraRouteData } from '../typing';
|
|
3
|
+
export declare function createPath(panoIndexList: number[], work: Work, options?: Omit<CatmullRomCurve3, 'type' | 'points'> & ExtraRouteData): CatmullRomCurve3[];
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var A = Object.defineProperty;
|
|
2
|
+
var h = Object.getOwnPropertySymbols;
|
|
3
|
+
var C = Object.prototype.hasOwnProperty, R = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var y = (e, t, r) => t in e ? A(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, E = (e, t) => {
|
|
5
|
+
for (var r in t || (t = {}))
|
|
6
|
+
C.call(t, r) && y(e, r, t[r]);
|
|
7
|
+
if (h)
|
|
8
|
+
for (var r of h(t))
|
|
9
|
+
R.call(t, r) && y(e, r, t[r]);
|
|
10
|
+
return e;
|
|
11
|
+
};
|
|
12
|
+
import * as b from "three";
|
|
13
|
+
import { transformPosition as d } from "../../shared-utils/five/transformPosition.js";
|
|
14
|
+
function V(e, t, r) {
|
|
15
|
+
if (e.length < 2)
|
|
16
|
+
return [];
|
|
17
|
+
const c = [];
|
|
18
|
+
e.forEach((a, g) => {
|
|
19
|
+
var i, u, _, o, l, n;
|
|
20
|
+
let f = (i = r == null ? void 0 : r.route_standing_positions) == null ? void 0 : i[a];
|
|
21
|
+
if (f || (f = t.observers[a].standingPosition.toArray()), !f)
|
|
22
|
+
return;
|
|
23
|
+
const m = e[g - 1], s = (n = (_ = (u = r == null ? void 0 : r.node_pair_to_route_points) == null ? void 0 : u[`${m}:${a}`]) == null ? void 0 : _.slice()) != null ? n : (l = (o = r == null ? void 0 : r.node_pair_to_route_points) == null ? void 0 : o[`${a}:${m}`]) == null ? void 0 : l.slice().reverse();
|
|
24
|
+
s == null || s.forEach((v) => {
|
|
25
|
+
c.push(v);
|
|
26
|
+
}), c.push(f);
|
|
27
|
+
});
|
|
28
|
+
const P = t.transform, $ = c.map((a) => d(new b.Vector3().fromArray(a), P).toArray());
|
|
29
|
+
return [E({ type: "CatmullRomCurve3", points: $ }, r)];
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
V as createPath
|
|
33
|
+
};
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import type { 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;
|
|
8
1
|
/**
|
|
9
2
|
* 筛选出给定数组中,相邻元素不能重复的元素组成的新数组
|
|
10
3
|
* @param array 要筛选的数组
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
if (!a)
|
|
4
|
-
return;
|
|
5
|
-
const r = t.path, n = a, i = a;
|
|
6
|
-
t.path ? o.setGeometryByPath(r, n) : t.pano_group && o.setGeometryByPanoGroup(t.pano_group, n), o.setMartial(i);
|
|
7
|
-
}
|
|
8
|
-
function l(e) {
|
|
9
|
-
return e.length === 0 ? [] : e.filter((t, o) => t !== e[o - 1]);
|
|
1
|
+
function i(t) {
|
|
2
|
+
return t.length === 0 ? [] : t.filter((e, n) => e !== t[n - 1]);
|
|
10
3
|
}
|
|
11
4
|
export {
|
|
12
|
-
|
|
13
|
-
s as updateGuideLineModeItemByData
|
|
5
|
+
i as filterAdjacentDistinct
|
|
14
6
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Five } from '@realsee/five';
|
|
2
|
-
import { PointSelector } from '../shared-utils';
|
|
3
2
|
import { type PolygonStyle } from '../Sculpt/Meshes/Polygon';
|
|
4
3
|
import { Subscribe } from '../shared-utils/Subscribe';
|
|
5
4
|
import type { LineMeshStyle } from '../Sculpt/typings';
|
|
@@ -13,13 +12,12 @@ export declare class MeasureController extends Subscribe<Event> {
|
|
|
13
12
|
private five;
|
|
14
13
|
private group;
|
|
15
14
|
private currentMeasureMesh?;
|
|
16
|
-
get pointSelector()
|
|
15
|
+
private get pointSelector();
|
|
17
16
|
private _pointSelector;
|
|
18
17
|
private get fiveDomEvents();
|
|
19
18
|
private _fiveDomEvents;
|
|
20
19
|
private get cursor();
|
|
21
20
|
private _cursor;
|
|
22
|
-
private unbindHotKey;
|
|
23
21
|
constructor(five: Five);
|
|
24
22
|
/**
|
|
25
23
|
* @description 开始测量
|
|
@@ -29,10 +27,6 @@ export declare class MeasureController extends Subscribe<Event> {
|
|
|
29
27
|
* @description 结束测量
|
|
30
28
|
*/
|
|
31
29
|
endMeasure: () => void;
|
|
32
|
-
/**
|
|
33
|
-
* @description 取消本次测量
|
|
34
|
-
*/
|
|
35
|
-
cancel: () => void;
|
|
36
30
|
/**
|
|
37
31
|
* @description 撤销上一步
|
|
38
32
|
*/
|
|
@@ -42,11 +36,7 @@ export declare class MeasureController extends Subscribe<Event> {
|
|
|
42
36
|
*/
|
|
43
37
|
clear: () => void;
|
|
44
38
|
dispose: () => void;
|
|
45
|
-
private addEventListener;
|
|
46
|
-
private removeEventListener;
|
|
47
39
|
private onClick;
|
|
48
|
-
private onHover;
|
|
49
|
-
private onUnHover;
|
|
50
40
|
private updateSelectAdsorbedHelper;
|
|
51
41
|
}
|
|
52
42
|
export {};
|