@realsee/dnalogel 3.20.6 → 3.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Object3DHelperPlugin/Controller.d.ts +25 -18
- package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Model/area.d.ts +2 -1
- package/dist/PanoMeasurePlugin/Model/line.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +2 -55
- package/dist/PanoMeasurePlugin/utils/line.d.ts +1 -1
- package/dist/Sculpt/Meshes/Area.d.ts +30 -0
- package/dist/Sculpt/Meshes/Box.d.ts +35 -0
- package/dist/Sculpt/Meshes/Circle.d.ts +26 -0
- package/dist/Sculpt/Meshes/CircleWithEdge.d.ts +11 -0
- package/dist/Sculpt/Meshes/Cylinder.d.ts +34 -0
- package/dist/Sculpt/Meshes/Line.d.ts +27 -0
- package/dist/Sculpt/Meshes/LineWithDots.d.ts +30 -0
- package/dist/Sculpt/Meshes/Point.d.ts +22 -0
- package/dist/Sculpt/Meshes/Polygon.d.ts +31 -0
- package/dist/Sculpt/Meshes/Polyline.d.ts +34 -0
- package/dist/Sculpt/Meshes/Prism.d.ts +31 -0
- package/dist/Sculpt/Meshes/Rectangle.d.ts +24 -0
- package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +20 -0
- package/dist/Sculpt/Modules/Cursor.d.ts +13 -0
- package/dist/Sculpt/Modules/Global.d.ts +20 -0
- package/dist/Sculpt/Objects/Base/Editor.d.ts +21 -0
- package/dist/Sculpt/Objects/Base/index.d.ts +60 -0
- package/dist/Sculpt/Objects/Box/Editor.d.ts +5 -0
- package/dist/Sculpt/Objects/Box/index.d.ts +28 -0
- package/dist/Sculpt/Objects/Circle/Editor.d.ts +5 -0
- package/dist/Sculpt/Objects/Circle/index.d.ts +28 -0
- package/dist/Sculpt/Objects/Cylinder/Editor.d.ts +5 -0
- package/dist/Sculpt/Objects/Cylinder/index.d.ts +30 -0
- package/dist/Sculpt/Objects/Point/Editor.d.ts +8 -0
- package/dist/Sculpt/Objects/Point/index.d.ts +35 -0
- package/dist/Sculpt/Objects/Polygon/Editor.d.ts +8 -0
- package/dist/Sculpt/Objects/Polygon/index.d.ts +28 -0
- package/dist/Sculpt/Objects/Polyline/Editor.d.ts +25 -0
- package/dist/Sculpt/Objects/Polyline/index.d.ts +31 -0
- package/dist/Sculpt/Objects/Prism/Editor.d.ts +5 -0
- package/dist/Sculpt/Objects/Prism/index.d.ts +28 -0
- package/dist/Sculpt/Objects/Rectangle/Editor.d.ts +5 -0
- package/dist/Sculpt/Objects/Rectangle/index.d.ts +29 -0
- package/dist/Sculpt/index.d.ts +184 -0
- package/dist/Sculpt/typings/index.d.ts +16 -0
- package/dist/Sculpt/typings/utils.type.d.ts +12 -0
- package/dist/Sculpt/utils/color.d.ts +40 -0
- package/dist/Sculpt/utils/data.d.ts +7 -0
- package/dist/Sculpt/utils/getBetterNormal.d.ts +2 -0
- package/dist/Sculpt/utils/radiusToSegments.d.ts +1 -0
- package/dist/Sculpt/utils/three/ColoredMesh.d.ts +17 -0
- package/dist/Sculpt/utils/three/RectangleGeometry.d.ts +6 -0
- package/dist/Sculpt/utils/three/rayOnLine.d.ts +5 -0
- package/dist/index.cjs.js +70 -70
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11554 -9325
- package/dist/index.umd.js +63 -63
- package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +13 -5
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +17 -6
- package/dist/shared-utils/Object3DHelper/Controller/RotateController.d.ts +0 -1
- package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +14 -7
- package/dist/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +4 -2
- package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +12 -3
- package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +1 -0
- package/dist/shared-utils/Object3DHelper/typings/index.d.ts +11 -0
- package/dist/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +2 -0
- package/dist/shared-utils/createLine/index.d.ts +2 -2
- package/dist/shared-utils/five/FiveDomEvents.d.ts +50 -13
- package/dist/shared-utils/five/FiveLine.d.ts +8 -0
- package/dist/shared-utils/five/getPosition.d.ts +14 -0
- package/dist/shared-utils/five/getRaycasterByNdcPosition.d.ts +6 -0
- package/dist/shared-utils/positionToVector3.d.ts +1 -0
- package/dist/shared-utils/three/IObject3D.d.ts +4 -0
- package/dist/shared-utils/three/Magnifier.d.ts +33 -19
- package/dist/shared-utils/three/PointSelector.d.ts +25 -11
- package/dist/shared-utils/three/PointSelectorHelper.d.ts +2 -0
- package/{libs/PanoMeasurePlugin/utils → dist/shared-utils/three}/geometryUtil.d.ts +1 -1
- package/dist/shared-utils/three/getIntersect.d.ts +16 -2
- package/dist/shared-utils/three/getNormal.d.ts +1 -1
- package/dist/shared-utils/three/recurveFindObject.d.ts +2 -0
- package/dist/shared-utils/three/vector3ToArray.d.ts +3 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +9 -4
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +9 -4
- package/docs/classes/CSS3DRender.html +10 -5
- package/docs/classes/GuideLineItem.GuideLineItem.html +10 -5
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +10 -5
- package/docs/classes/ModelRoomLabelController.html +10 -5
- package/docs/classes/MoveController.html +10 -5
- package/docs/classes/Object3DHelperController.html +26 -39
- package/docs/classes/PaintBrush.html +10 -5
- package/docs/classes/PanoMeasurePluginLine.html +12 -7
- package/docs/classes/PanoMeasurePluginModel.html +10 -5
- package/docs/classes/PanoMeasurePluginPoint.html +10 -5
- package/docs/classes/PanoMeasurePluginPolyline.html +10 -5
- package/docs/classes/PanoTagPluginController.html +10 -5
- package/docs/classes/Sculpt.html +847 -0
- package/docs/classes/Util.BetterTween.html +10 -5
- package/docs/classes/Util.Interval.html +10 -5
- package/docs/classes/Util.LineSegments.html +10 -5
- package/docs/classes/Util.Magnifier.html +82 -58
- package/docs/classes/Util.Object3D.html +10 -5
- package/docs/classes/Util.PointDomHelper.html +10 -5
- package/docs/classes/Util.PointHelper.html +10 -5
- package/docs/classes/Util.PointSelectorHelper.html +23 -18
- package/docs/classes/Util.Rectangle.html +10 -5
- package/docs/classes/WalkController.html +10 -5
- package/docs/enums/CameraMovementEffect.html +10 -5
- package/docs/enums/ContentType.html +10 -5
- package/docs/enums/DIRECTION.html +10 -5
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -5
- package/docs/enums/DimensionType.html +10 -5
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -5
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -5
- package/docs/enums/PaintBrushTypeEnum.html +10 -5
- package/docs/enums/PointType.html +10 -5
- package/docs/enums/Rotation.html +10 -5
- package/docs/functions/AreaMakerPlugin.html +10 -5
- package/docs/functions/CSS3DRenderPlugin.html +10 -5
- package/docs/functions/CameraMovementPlugin.html +10 -5
- package/docs/functions/CruisePlugin.html +10 -5
- package/docs/functions/CurrentPanoImagePlugin.html +10 -5
- package/docs/functions/GuideLinePlugin.html +10 -5
- package/docs/functions/ItemLabelPlugin.html +10 -5
- package/docs/functions/MapviewFloorplanPlugin.html +10 -5
- package/docs/functions/ModelChassisCompassPlugin.html +10 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +10 -5
- package/docs/functions/ModelFloorplanPlugin.html +10 -5
- package/docs/functions/ModelItemLabelPlugin.html +10 -5
- package/docs/functions/ModelRoomLabelPlugin.html +10 -5
- package/docs/functions/ModelTVVideoPlugin.html +10 -5
- package/docs/functions/ModelViewPlugin.html +10 -5
- package/docs/functions/MovePlugin.html +10 -5
- package/docs/functions/Object3DHelperPlugin.html +10 -5
- package/docs/functions/PanoCompassPlugin.html +10 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +10 -5
- package/docs/functions/PanoDoorLabelPlugin.html +10 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +10 -5
- package/docs/functions/PanoMeasurePlugin.html +10 -5
- package/docs/functions/PanoRulerPlugin.html +10 -5
- package/docs/functions/PanoRulerProPlugin.html +10 -5
- package/docs/functions/PanoSpatialTagPlugin.html +10 -5
- package/docs/functions/PanoTagPlugin.html +10 -5
- package/docs/functions/PanoVideoPlugin.html +10 -5
- package/docs/functions/PipelinePlugin.html +10 -5
- package/docs/functions/TopviewFloorplanPlugin.html +10 -5
- package/docs/functions/Util.absoluteUrl.html +10 -5
- package/docs/functions/Util.checkFiveModelLoaded.html +10 -5
- package/docs/functions/Util.equal.html +10 -5
- package/docs/functions/Util.getCoordsFromClient.html +10 -5
- package/docs/functions/Util.getCoordsFromElement.html +10 -5
- package/docs/functions/Util.getFrameTime.html +10 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +17 -7
- package/docs/functions/Util.getRaycasterFromFivePointer.html +10 -5
- package/docs/functions/Util.isAbsoluteURL.html +10 -5
- package/docs/functions/Util.isModelLike.html +10 -5
- package/docs/functions/Util.isNil.html +10 -5
- package/docs/functions/Util.isPanoramaLike.html +10 -5
- package/docs/functions/Util.nextFrame.html +10 -5
- package/docs/functions/Util.notNil.html +10 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +10 -5
- package/docs/functions/Util.tweenProgress.html +10 -5
- package/docs/functions/Util.uuid.html +10 -5
- package/docs/functions/pluginFlag.html +10 -5
- package/docs/index.html +11 -6
- package/docs/interfaces/AddTagConfig.html +10 -5
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.Config.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.Params.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +9 -4
- package/docs/interfaces/AreaMakerPluginType.State.html +9 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -5
- package/docs/interfaces/CSS3DRenderPluginState.html +10 -5
- package/docs/interfaces/CameraMovementPluginExportType.html +10 -5
- package/docs/interfaces/CruisePluginTypes.Config.html +9 -4
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +9 -4
- package/docs/interfaces/CruisePluginTypes.EventMap.html +9 -4
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +9 -4
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +9 -4
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +9 -4
- package/docs/interfaces/CruisePluginTypes.PluginData.html +9 -4
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +9 -4
- package/docs/interfaces/CruisePluginTypes.PluginState.html +9 -4
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +10 -5
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +10 -5
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +10 -5
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +10 -5
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +10 -5
- package/docs/interfaces/EventMap.html +10 -5
- package/docs/interfaces/FloorplanBounding.html +10 -5
- package/docs/interfaces/FloorplanData.html +10 -5
- package/docs/interfaces/FloorplanEntrance.html +10 -5
- package/docs/interfaces/FloorplanExtraObject.html +10 -5
- package/docs/interfaces/FloorplanExtraObject3D.html +10 -5
- package/docs/interfaces/FloorplanFloorData.html +10 -5
- package/docs/interfaces/FloorplanImagePosition.html +10 -5
- package/docs/interfaces/FloorplanObserver.html +10 -5
- package/docs/interfaces/FloorplanOutlineItem.html +10 -5
- package/docs/interfaces/FloorplanPosition.html +10 -5
- package/docs/interfaces/FloorplanRoomItem.html +10 -5
- package/docs/interfaces/FloorplanRoomLabelItem.html +10 -5
- package/docs/interfaces/FloorplanServerBounding.html +10 -5
- package/docs/interfaces/FloorplanServerComputedData.html +10 -5
- package/docs/interfaces/FloorplanServerData.html +10 -5
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -5
- package/docs/interfaces/FloorplanServerDoorPosition.html +10 -5
- package/docs/interfaces/FloorplanServerEntrance.html +10 -5
- package/docs/interfaces/FloorplanServerFloorData.html +10 -5
- package/docs/interfaces/FloorplanServerImagePosition.html +10 -5
- package/docs/interfaces/FloorplanServerObserver.html +10 -5
- package/docs/interfaces/FloorplanServerOutlineItem.html +10 -5
- package/docs/interfaces/FloorplanServerPosition.html +10 -5
- package/docs/interfaces/FloorplanServerRoomItem.html +10 -5
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +10 -5
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +10 -5
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -4
- package/docs/interfaces/GuideLinePluginType.EventMap.html +9 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +9 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +9 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +9 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +9 -4
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -4
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +9 -4
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +9 -4
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +9 -4
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +9 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +9 -4
- package/docs/interfaces/GuideLinePluginType.PluginState.html +9 -4
- package/docs/interfaces/GuideLinePluginType.Route.html +9 -4
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +9 -4
- package/docs/interfaces/HelperOffset.html +10 -5
- package/docs/interfaces/ImagePlaneGroup.html +10 -5
- package/docs/interfaces/ItemLabelPluginData.html +10 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -5
- package/docs/interfaces/ItemLabelPluginParametersType.html +10 -5
- package/docs/interfaces/MinMax.html +10 -5
- package/docs/interfaces/ModelChassisCompassPluginData.html +10 -5
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -5
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +10 -5
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -5
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -5
- package/docs/interfaces/ModelItemLabelPluginData.html +10 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -5
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +10 -5
- package/docs/interfaces/ModelRoomLabelPluginData.html +10 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +10 -5
- package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -5
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +10 -5
- package/docs/interfaces/ModelViewPluginExportType.html +10 -5
- package/docs/interfaces/Object3DHelperState.html +14 -9
- package/docs/interfaces/ObjectHelperControllers.html +16 -11
- package/docs/interfaces/PaintBrushAction.html +10 -5
- package/docs/interfaces/PaintBrushConfigs.html +10 -5
- package/docs/interfaces/PaintBrushState.html +10 -5
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -5
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +10 -5
- package/docs/interfaces/PanoMeasureParameterType.html +10 -5
- package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -5
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +10 -5
- package/docs/interfaces/PanoMeasurePluginPointJson.html +10 -5
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -5
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -5
- package/docs/interfaces/PanoRulerPluginOptions.html +10 -5
- package/docs/interfaces/PanoRulerPluginParameterType.html +10 -5
- package/docs/interfaces/PanoRulerProPluginExportType.html +10 -5
- package/docs/interfaces/PanoRulerProPluginOptions.html +10 -5
- package/docs/interfaces/PanoRulerProPluginParameterType.html +10 -5
- package/docs/interfaces/PanoRulerProPluginState.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -5
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -5
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -5
- package/docs/interfaces/Point.html +10 -5
- package/docs/interfaces/Room.html +10 -5
- package/docs/interfaces/RoomInfo.html +10 -5
- package/docs/interfaces/RoomLabel.html +10 -5
- package/docs/interfaces/RoomRules.html +10 -5
- package/docs/interfaces/Rooms.html +10 -5
- package/docs/interfaces/Scissor.html +10 -5
- package/docs/interfaces/State.html +10 -5
- package/docs/interfaces/TagCacheInterface.html +10 -5
- package/docs/interfaces/TagConfig.html +12 -7
- package/docs/interfaces/TagGLTFObjectGroup.html +10 -5
- package/docs/interfaces/TagIconUrl.html +10 -5
- package/docs/interfaces/TagObjectGroup.html +10 -5
- package/docs/interfaces/TagStyle.html +10 -5
- package/docs/interfaces/Tags.html +10 -5
- package/docs/interfaces/TemporaryState.html +10 -5
- package/docs/interfaces/Util.MagnifierParameter.html +32 -22
- package/docs/interfaces/Util.MouseGroupParameter.html +10 -5
- package/docs/interfaces/Util.PointIntersection.html +19 -7
- package/docs/modules/AreaMakerPluginType.html +9 -4
- package/docs/modules/CruisePluginTypes.html +9 -4
- package/docs/modules/CurrentPanoImagePluginType.html +10 -5
- package/docs/modules/GuideLineItem.html +10 -5
- package/docs/modules/GuideLineModeItem.html +10 -5
- package/docs/modules/GuideLinePluginType.html +9 -4
- package/docs/modules/PanoVideoPluginType.html +10 -5
- package/docs/modules/Util.html +10 -5
- package/docs/modules.html +22 -9
- package/docs/types/AddObject3DHelperConfig.html +310 -0
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +9 -4
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +9 -4
- package/docs/types/AreaMakerPluginType.PluginData.html +9 -4
- package/docs/types/AreaMakerPluginType.ServerData.html +9 -4
- package/docs/types/ArrayPosition.html +10 -5
- package/docs/types/AudioAppearance.html +10 -5
- package/docs/types/AudioTagTypeConfigKey.html +10 -5
- package/docs/types/CSS3DRenderExportType.html +10 -5
- package/docs/types/CSS3DRenderPluginExportType.html +10 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +10 -5
- package/docs/types/ClassFunctionParameters.html +10 -5
- package/docs/types/Color.html +10 -5
- package/docs/types/ContentTypeConfigKey.html +10 -5
- package/docs/types/ContentTypeConfigKeySplit.html +10 -5
- package/docs/types/ContentTypeMap.html +10 -5
- package/docs/types/Create3DDomContainerReturnType.html +10 -5
- package/docs/types/Create3DElementReturnType.html +10 -5
- package/docs/types/CruisePluginExportType.html +10 -5
- package/docs/types/CruisePluginTypes.CruiseData.html +9 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +9 -4
- package/docs/types/CurrentPanoImagePluginExportType.html +10 -5
- package/docs/types/DeprecatedMediaPlaneProperty.html +10 -5
- package/docs/types/DeprecatedTagProperty.html +10 -5
- package/docs/types/Direction-1.html +10 -5
- package/docs/types/Direction4.html +10 -5
- package/docs/types/ElementRenderer.html +10 -5
- package/docs/types/FloorplanRuleLabels.html +10 -5
- package/docs/types/FloorplanServerRuleLabels.html +10 -5
- package/docs/types/GuideLinePluginExportType.html +10 -5
- package/docs/types/GuideLinePluginType.GuideLineItem.html +9 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +9 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +9 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +9 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +9 -4
- package/docs/types/GuideLinePluginType.PathItem.html +9 -4
- package/docs/types/GuideLinePluginType.PluginData.html +9 -4
- package/docs/types/HelperEventMap.html +10 -5
- package/docs/types/InternalHelperEventMap.html +22 -9
- package/docs/types/LoadTagConfig.html +10 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +10 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +10 -5
- package/docs/types/MediaData.html +10 -5
- package/docs/types/MediaStore.html +10 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +10 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +10 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +10 -5
- package/docs/types/ModelId.html +10 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +10 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +10 -5
- package/docs/types/MoveArgs.html +10 -5
- package/docs/types/MoveOpts.html +10 -5
- package/docs/types/Object3DHelperEventMap.html +11 -6
- package/docs/types/ObjectFit.html +10 -5
- package/docs/types/PaintBrushEventMap.html +10 -5
- package/docs/types/PanoCompassPluginData.html +10 -5
- package/docs/types/PanoCompassPluginExportType.html +10 -5
- package/docs/types/PanoCompassPluginParameterType.html +10 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +10 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +10 -5
- package/docs/types/PanoIndex.html +10 -5
- package/docs/types/PanoMeasurePluginEvent.html +10 -5
- package/docs/types/PanoMeasureReturnType.html +10 -5
- package/docs/types/PanoSpatialTagPluginId.html +10 -5
- package/docs/types/PanoTagPluginExportInterface.html +10 -5
- package/docs/types/PanoTagPluginParamsInterface.html +10 -5
- package/docs/types/PanoVideoPluginParameterType.html +10 -5
- package/docs/types/PanoVideoPluginReturnType.html +10 -5
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +10 -5
- package/docs/types/PipelinePluginParameterType.html +10 -5
- package/docs/types/PipelinePluginReturnType.html +10 -5
- package/docs/types/PlaneTag.html +10 -5
- package/docs/types/Point2DTag.html +10 -5
- package/docs/types/Point3DTag.html +10 -5
- package/docs/types/PointTag.html +10 -5
- package/docs/types/PointTagInstance.html +10 -5
- package/docs/types/Position.html +10 -5
- package/docs/types/PositionFrom.html +297 -0
- package/docs/types/RotateArgs.html +10 -5
- package/docs/types/RotateOpts.html +10 -5
- package/docs/types/RuleLabelsKey.html +10 -5
- package/docs/types/RuleLabelsValue.html +10 -5
- package/docs/types/ScaleCallback.html +309 -0
- package/docs/types/ScalePosition.html +298 -0
- package/docs/types/StickType.html +10 -5
- package/docs/types/Tag.html +10 -5
- package/docs/types/Tag2D.html +10 -5
- package/docs/types/Tag3D.html +10 -5
- package/docs/types/TagConfigByKey.html +10 -5
- package/docs/types/TagContentType.html +10 -5
- package/docs/types/TagContentTypeMapping.html +10 -5
- package/docs/types/TagDimensionType.html +10 -5
- package/docs/types/TagElement.html +10 -5
- package/docs/types/TagEvents.html +10 -5
- package/docs/types/TagGLTFObject.html +10 -5
- package/docs/types/TagHooks.html +10 -5
- package/docs/types/TagId.html +10 -5
- package/docs/types/TagInstance.html +10 -5
- package/docs/types/TagPointType.html +10 -5
- package/docs/types/TagRendererMap.html +10 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +10 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +10 -5
- package/docs/types/WorkCode.html +10 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +10 -5
- package/docs/variables/PLUGIN.html +11 -6
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +10 -5
- package/docs/variables/ROOM_TYPE_MAP.html +10 -5
- package/docs/variables/defaultGlobalConfig.html +10 -5
- package/docs/variables/itemLabelPluginServerParams.html +10 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +10 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +10 -5
- package/libs/GuideLinePlugin/Controller.js +15 -15
- package/libs/Object3DHelperPlugin/Controller.d.ts +25 -18
- package/libs/Object3DHelperPlugin/Controller.js +91 -91
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +1 -0
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +22 -18
- package/libs/Object3DHelperPlugin/index.js +8 -6
- package/libs/PanoCursorRaycasterPlugin/index.js +9 -8
- package/libs/PanoMeasurePlugin/Components/Controller0.js +5 -5
- package/libs/PanoMeasurePlugin/Components/Controller1.js +5 -5
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +6 -6
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +10 -9
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +5 -4
- package/libs/PanoMeasurePlugin/Controller/index.js +8 -7
- package/libs/PanoMeasurePlugin/Model/area.d.ts +2 -1
- package/libs/PanoMeasurePlugin/Model/area.js +16 -8
- package/libs/PanoMeasurePlugin/Model/index.js +3 -2
- package/libs/PanoMeasurePlugin/Model/line.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Model/line.js +1 -0
- package/libs/PanoMeasurePlugin/Model/polygon.js +1 -1
- package/libs/PanoMeasurePlugin/Model/polyline.js +26 -25
- package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +2 -55
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +22 -156
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +5 -5
- package/libs/PanoMeasurePlugin/index.js +13 -13
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +1 -1
- package/libs/PanoMeasurePlugin/utils/line.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/line.js +5 -4
- package/libs/PanoTagPlugin/controller/TagRender.js +18 -13
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +20 -10
- package/libs/Sculpt/Meshes/Area.d.ts +30 -0
- package/libs/Sculpt/Meshes/Area.js +56 -0
- package/libs/Sculpt/Meshes/Box.d.ts +35 -0
- package/libs/Sculpt/Meshes/Box.js +88 -0
- package/libs/Sculpt/Meshes/Circle.d.ts +26 -0
- package/libs/Sculpt/Meshes/Circle.js +42 -0
- package/libs/Sculpt/Meshes/CircleWithEdge.d.ts +11 -0
- package/libs/Sculpt/Meshes/CircleWithEdge.js +41 -0
- package/libs/Sculpt/Meshes/Cylinder.d.ts +34 -0
- package/libs/Sculpt/Meshes/Cylinder.js +88 -0
- package/libs/Sculpt/Meshes/Line.d.ts +27 -0
- package/libs/Sculpt/Meshes/Line.js +108 -0
- package/libs/Sculpt/Meshes/LineWithDots.d.ts +30 -0
- package/libs/Sculpt/Meshes/LineWithDots.js +70 -0
- package/libs/Sculpt/Meshes/Point.d.ts +22 -0
- package/libs/Sculpt/Meshes/Point.js +74 -0
- package/libs/Sculpt/Meshes/Polygon.d.ts +31 -0
- package/libs/Sculpt/Meshes/Polygon.js +52 -0
- package/libs/Sculpt/Meshes/Polyline.d.ts +34 -0
- package/libs/Sculpt/Meshes/Polyline.js +105 -0
- package/libs/Sculpt/Meshes/Prism.d.ts +31 -0
- package/libs/Sculpt/Meshes/Prism.js +78 -0
- package/libs/Sculpt/Meshes/Rectangle.d.ts +24 -0
- package/libs/Sculpt/Meshes/Rectangle.js +49 -0
- package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +20 -0
- package/libs/Sculpt/Meshes/RectangleWithEdge.js +49 -0
- package/libs/Sculpt/Modules/Cursor.d.ts +13 -0
- package/libs/Sculpt/Modules/Cursor.js +37 -0
- package/libs/Sculpt/Modules/Global.d.ts +20 -0
- package/libs/Sculpt/Modules/Global.js +45 -0
- package/libs/Sculpt/Objects/Base/Editor.d.ts +21 -0
- package/libs/Sculpt/Objects/Base/Editor.js +52 -0
- package/libs/Sculpt/Objects/Base/index.d.ts +60 -0
- package/libs/Sculpt/Objects/Base/index.js +77 -0
- package/libs/Sculpt/Objects/Box/Editor.d.ts +5 -0
- package/libs/Sculpt/Objects/Box/Editor.js +44 -0
- package/libs/Sculpt/Objects/Box/index.d.ts +28 -0
- package/libs/Sculpt/Objects/Box/index.js +107 -0
- package/libs/Sculpt/Objects/Circle/Editor.d.ts +5 -0
- package/libs/Sculpt/Objects/Circle/Editor.js +9 -0
- package/libs/Sculpt/Objects/Circle/index.d.ts +28 -0
- package/libs/Sculpt/Objects/Circle/index.js +114 -0
- package/libs/Sculpt/Objects/Cylinder/Editor.d.ts +5 -0
- package/libs/Sculpt/Objects/Cylinder/Editor.js +41 -0
- package/libs/Sculpt/Objects/Cylinder/index.d.ts +30 -0
- package/libs/Sculpt/Objects/Cylinder/index.js +100 -0
- package/libs/Sculpt/Objects/Point/Editor.d.ts +8 -0
- package/libs/Sculpt/Objects/Point/Editor.js +25 -0
- package/libs/Sculpt/Objects/Point/index.d.ts +35 -0
- package/libs/Sculpt/Objects/Point/index.js +92 -0
- package/libs/Sculpt/Objects/Polygon/Editor.d.ts +8 -0
- package/libs/Sculpt/Objects/Polygon/Editor.js +23 -0
- package/libs/Sculpt/Objects/Polygon/index.d.ts +28 -0
- package/libs/Sculpt/Objects/Polygon/index.js +113 -0
- package/libs/Sculpt/Objects/Polyline/Editor.d.ts +25 -0
- package/libs/Sculpt/Objects/Polyline/Editor.js +68 -0
- package/libs/Sculpt/Objects/Polyline/index.d.ts +31 -0
- package/libs/Sculpt/Objects/Polyline/index.js +96 -0
- package/libs/Sculpt/Objects/Prism/Editor.d.ts +5 -0
- package/libs/Sculpt/Objects/Prism/Editor.js +44 -0
- package/libs/Sculpt/Objects/Prism/index.d.ts +28 -0
- package/libs/Sculpt/Objects/Prism/index.js +105 -0
- package/libs/Sculpt/Objects/Rectangle/Editor.d.ts +5 -0
- package/libs/Sculpt/Objects/Rectangle/Editor.js +9 -0
- package/libs/Sculpt/Objects/Rectangle/index.d.ts +29 -0
- package/libs/Sculpt/Objects/Rectangle/index.js +105 -0
- package/libs/Sculpt/index.d.ts +184 -0
- package/libs/Sculpt/index.js +209 -0
- package/libs/Sculpt/typings/index.d.ts +16 -0
- package/libs/Sculpt/typings/utils.type.d.ts +12 -0
- package/libs/Sculpt/utils/color.d.ts +40 -0
- package/libs/Sculpt/utils/color.js +7 -0
- package/libs/Sculpt/utils/data.d.ts +7 -0
- package/libs/Sculpt/utils/getBetterNormal.d.ts +2 -0
- package/libs/Sculpt/utils/getBetterNormal.js +8 -0
- package/libs/Sculpt/utils/radiusToSegments.d.ts +1 -0
- package/libs/Sculpt/utils/radiusToSegments.js +6 -0
- package/libs/Sculpt/utils/three/ColoredMesh.d.ts +17 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +58 -0
- package/libs/Sculpt/utils/three/RectangleGeometry.d.ts +6 -0
- package/libs/Sculpt/utils/three/RectangleGeometry.js +19 -0
- package/libs/Sculpt/utils/three/rayOnLine.d.ts +5 -0
- package/libs/Sculpt/utils/three/rayOnLine.js +8 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.d.ts +1 -0
- package/libs/index.js +173 -127
- package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +13 -5
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +95 -80
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +17 -6
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +40 -35
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +9 -9
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.d.ts +0 -1
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +54 -53
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +14 -7
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +49 -15
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +4 -2
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +16 -12
- package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +8 -5
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +21 -12
- package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +12 -3
- package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.js +38 -5
- package/libs/shared-utils/Object3DHelper/typings/Hooks.d.ts +1 -0
- package/libs/shared-utils/Object3DHelper/typings/index.d.ts +11 -0
- package/libs/shared-utils/Object3DHelper/utils/boundingBox.js +22 -21
- package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +2 -0
- package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.js +7 -0
- package/libs/shared-utils/Subscribe.js +1 -1
- package/libs/shared-utils/createLine/index.d.ts +2 -2
- package/libs/shared-utils/createLine/index.js +5 -5
- package/libs/shared-utils/five/FiveDomEvents.d.ts +50 -13
- package/libs/shared-utils/five/FiveDomEvents.js +135 -90
- package/libs/shared-utils/five/FiveLine.d.ts +8 -0
- package/libs/shared-utils/five/FiveLine.js +15 -0
- package/libs/shared-utils/five/getPosition.d.ts +14 -0
- package/libs/shared-utils/five/getPosition.js +45 -0
- package/libs/shared-utils/five/getRaycasterByNdcPosition.d.ts +6 -0
- package/libs/shared-utils/five/getRaycasterByNdcPosition.js +8 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/positionToVector3.d.ts +1 -0
- package/libs/shared-utils/positionToVector3.js +7 -4
- package/libs/shared-utils/three/IObject3D.d.ts +4 -0
- package/libs/shared-utils/three/IObject3D.js +22 -9
- package/libs/shared-utils/three/Magnifier.d.ts +33 -19
- package/libs/shared-utils/three/Magnifier.js +112 -70
- package/libs/shared-utils/three/PointSelector.d.ts +25 -11
- package/libs/shared-utils/three/PointSelector.js +70 -78
- package/libs/shared-utils/three/PointSelectorHelper.d.ts +2 -0
- package/libs/shared-utils/three/PointSelectorHelper.js +14 -14
- package/libs/shared-utils/three/generatePolygonGeometry.js +15 -0
- package/{dist/PanoMeasurePlugin/utils → libs/shared-utils/three}/geometryUtil.d.ts +1 -1
- package/libs/shared-utils/three/geometryUtil.js +37 -0
- package/libs/shared-utils/three/getIntersect.d.ts +16 -2
- package/libs/shared-utils/three/getIntersect.js +20 -5
- package/libs/shared-utils/three/getNormal.d.ts +1 -1
- package/libs/shared-utils/three/getNormal.js +8 -7
- package/libs/shared-utils/three/recurveFindObject.d.ts +2 -0
- package/libs/shared-utils/three/recurveFindObject.js +6 -0
- package/libs/shared-utils/three/vector3ToArray.d.ts +3 -0
- package/libs/shared-utils/three/vector3ToArray.js +6 -0
- package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +372 -0
- package/package.json +4 -3
- package/dist/shared-utils/getIntersectionFromEvent.d.ts +0 -4
- package/docs/classes/Magnifier.html +0 -485
- package/libs/PanoMeasurePlugin/utils/generatePolygonGeometry.js +0 -13
- package/libs/PanoMeasurePlugin/utils/geometryUtil.js +0 -39
- package/libs/shared-utils/getIntersectionFromEvent.d.ts +0 -4
- package/libs/shared-utils/getIntersectionFromEvent.js +0 -9
- /package/dist/{PanoMeasurePlugin/utils → shared-utils/three}/generatePolygonGeometry.d.ts +0 -0
- /package/libs/{PanoMeasurePlugin/utils → shared-utils/three}/generatePolygonGeometry.d.ts +0 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
var c = Object.defineProperty;
|
|
2
|
-
var f = (r, i,
|
|
3
|
-
var o = (r, i,
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
var f = (r, i, t) => i in r ? c(r, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[i] = t;
|
|
3
|
+
var o = (r, i, t) => (f(r, typeof i != "symbol" ? i + "" : i, t), t);
|
|
4
|
+
import m from "./line.js";
|
|
5
|
+
import a from "./point.js";
|
|
6
6
|
import { uuid as P } from "../../shared-utils/uuid.js";
|
|
7
7
|
import { Subscribe as g } from "@realsee/five";
|
|
8
8
|
import "../utils/line.js";
|
|
9
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
9
10
|
import "@realsee/five/line";
|
|
10
11
|
import "../utils/constants.js";
|
|
11
12
|
import "three";
|
|
@@ -13,7 +14,7 @@ import "../utils/dom/distanceItem.js";
|
|
|
13
14
|
import "../utils/dom/base.js";
|
|
14
15
|
import "../utils/isNDCPointInScreen.js";
|
|
15
16
|
import "../../shared-utils/three/centerPoint.js";
|
|
16
|
-
class
|
|
17
|
+
class B {
|
|
17
18
|
constructor(i) {
|
|
18
19
|
o(this, "id", P());
|
|
19
20
|
o(this, "lines", []);
|
|
@@ -25,8 +26,8 @@ class M {
|
|
|
25
26
|
}
|
|
26
27
|
get points() {
|
|
27
28
|
const i = /* @__PURE__ */ new Set();
|
|
28
|
-
return this.lines.forEach((
|
|
29
|
-
i.add(
|
|
29
|
+
return this.lines.forEach((t) => {
|
|
30
|
+
i.add(t.points[0]), i.add(t.points[1]);
|
|
30
31
|
}), Array.from(i);
|
|
31
32
|
}
|
|
32
33
|
addLine(i) {
|
|
@@ -34,8 +35,8 @@ class M {
|
|
|
34
35
|
console.error(new Error("不能重复添加线段"));
|
|
35
36
|
return;
|
|
36
37
|
}
|
|
37
|
-
const
|
|
38
|
-
if (
|
|
38
|
+
const t = this.getLastPoint(), l = t && i.findAnotherPoint(t);
|
|
39
|
+
if (t && !l) {
|
|
39
40
|
console.error(new Error("传入线段无法与当前折线进行连接"));
|
|
40
41
|
return;
|
|
41
42
|
}
|
|
@@ -51,8 +52,8 @@ class M {
|
|
|
51
52
|
this.lines.pop() && this.hook.emit("lineRemoved", i);
|
|
52
53
|
}
|
|
53
54
|
isLastLine(i) {
|
|
54
|
-
const
|
|
55
|
-
return
|
|
55
|
+
const t = this.getLastLine();
|
|
56
|
+
return t ? i.id === t.id : !1;
|
|
56
57
|
}
|
|
57
58
|
getLastLine() {
|
|
58
59
|
return this.lines.slice(-1)[0];
|
|
@@ -65,14 +66,14 @@ class M {
|
|
|
65
66
|
}
|
|
66
67
|
clear() {
|
|
67
68
|
const i = this.lines.slice();
|
|
68
|
-
this.lines.length = 0, i.reduceRight((
|
|
69
|
+
this.lines.length = 0, i.reduceRight((t, l) => this.hook.emit("lineRemoved", l), void 0);
|
|
69
70
|
}
|
|
70
71
|
/** 是否产生重叠 */
|
|
71
72
|
overlapWith(i) {
|
|
72
|
-
return i.type === "point" ? this.includes(i) : i.type === "line" ? i.points.some((
|
|
73
|
+
return i.type === "point" ? this.includes(i) : i.type === "line" ? i.points.some((t) => this.includes(t)) : i.type === "polyline" ? i.points.some((t) => this.includes(t)) : !0;
|
|
73
74
|
}
|
|
74
75
|
includes(i) {
|
|
75
|
-
return i.type === "point" ? this.points.find(({ id:
|
|
76
|
+
return i.type === "point" ? this.points.find(({ id: t }) => t === i.id) !== void 0 : i.type === "line" ? this.lines.find(({ id: t }) => t === i.id) !== void 0 : !1;
|
|
76
77
|
}
|
|
77
78
|
isEmpty() {
|
|
78
79
|
return this.lines.length === 0;
|
|
@@ -91,29 +92,29 @@ class M {
|
|
|
91
92
|
};
|
|
92
93
|
}
|
|
93
94
|
getPointByID(i) {
|
|
94
|
-
return this.points.find(({ id:
|
|
95
|
+
return this.points.find(({ id: t }) => t === i);
|
|
95
96
|
}
|
|
96
97
|
fromJson(i) {
|
|
97
98
|
this.clear(), this.id = i.id;
|
|
98
|
-
const { getPoint:
|
|
99
|
-
const [d, p] =
|
|
99
|
+
const { getPoint: t } = u(), l = i.lines.map((e) => {
|
|
100
|
+
const [d, p] = e.points, n = t(d), h = t(p);
|
|
100
101
|
if (!n || !h)
|
|
101
102
|
throw new Error("线上的点不存在");
|
|
102
|
-
const s = new
|
|
103
|
-
return s.id =
|
|
103
|
+
const s = new m(n, h, this.model);
|
|
104
|
+
return s.id = e.id, s.text = e.text, s;
|
|
104
105
|
});
|
|
105
106
|
this.lines.push(...l), this.visiblePanoIndexes = i.visiblePanoIndexes;
|
|
106
107
|
function u() {
|
|
107
|
-
const
|
|
108
|
+
const e = /* @__PURE__ */ new Map();
|
|
108
109
|
function d(n) {
|
|
109
|
-
const h =
|
|
110
|
+
const h = e.get(n.id);
|
|
110
111
|
if (h)
|
|
111
112
|
return h;
|
|
112
|
-
const s = new
|
|
113
|
-
return s.id = n.id,
|
|
113
|
+
const s = new a(n.position);
|
|
114
|
+
return s.id = n.id, e.set(n.id, s), s;
|
|
114
115
|
}
|
|
115
116
|
function p() {
|
|
116
|
-
return Array.from(
|
|
117
|
+
return Array.from(e.values());
|
|
117
118
|
}
|
|
118
119
|
return { getPoint: d, getAllPoints: p };
|
|
119
120
|
}
|
|
@@ -124,5 +125,5 @@ class M {
|
|
|
124
125
|
}
|
|
125
126
|
}
|
|
126
127
|
export {
|
|
127
|
-
|
|
128
|
+
B as Polyline
|
|
128
129
|
};
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import * as THREE from 'three';
|
|
4
|
-
import { Subscribe, type SubscribeEventMap } from '@realsee/five';
|
|
5
|
-
interface MagnifierEvent extends SubscribeEventMap {
|
|
6
|
-
wantsPanGesture: (event: (typeof Hammer)['Input']) => boolean;
|
|
7
|
-
}
|
|
8
|
-
/** 放大镜配置参数 */
|
|
1
|
+
import { Magnifier } from '../../shared-utils';
|
|
2
|
+
export default Magnifier;
|
|
9
3
|
export interface MagnifierParameter {
|
|
10
4
|
width?: number;
|
|
11
5
|
height?: number;
|
|
@@ -23,50 +17,3 @@ export interface MagnifierParameter {
|
|
|
23
17
|
export interface MagnifierState {
|
|
24
18
|
enabled: boolean;
|
|
25
19
|
}
|
|
26
|
-
export default class Magnifier {
|
|
27
|
-
width: number;
|
|
28
|
-
height: number;
|
|
29
|
-
containerDom?: Element;
|
|
30
|
-
hooks: Subscribe<MagnifierEvent>;
|
|
31
|
-
canvas: HTMLCanvasElement;
|
|
32
|
-
private five;
|
|
33
|
-
private scale;
|
|
34
|
-
private config;
|
|
35
|
-
private offset;
|
|
36
|
-
private context;
|
|
37
|
-
private renderCenter;
|
|
38
|
-
private hammer?;
|
|
39
|
-
private state;
|
|
40
|
-
private offsetRange?;
|
|
41
|
-
private isPanning;
|
|
42
|
-
constructor(five: Five, options: MagnifierParameter);
|
|
43
|
-
dispose(): void;
|
|
44
|
-
enable(): this;
|
|
45
|
-
disable(): this;
|
|
46
|
-
/** 把放大镜放到某一个容器中 */
|
|
47
|
-
appendTo(element: Element): this;
|
|
48
|
-
/** 清除放大镜渲染内容 */
|
|
49
|
-
clear(): this;
|
|
50
|
-
/** 放大传入点位周围的内容 */
|
|
51
|
-
renderWithPoint(point: THREE.Vector3): void;
|
|
52
|
-
/** 放大传入点位周围的内容 */
|
|
53
|
-
renderWithScreenPoint(point: {
|
|
54
|
-
x: number;
|
|
55
|
-
y: number;
|
|
56
|
-
}): void;
|
|
57
|
-
resetOffset(): void;
|
|
58
|
-
getCurrentState(): MagnifierState;
|
|
59
|
-
protected getRenderCenter(): THREE.Vector3 | {
|
|
60
|
-
x: number;
|
|
61
|
-
y: number;
|
|
62
|
-
};
|
|
63
|
-
private _appendTo;
|
|
64
|
-
private autoFixPCPosition;
|
|
65
|
-
private render;
|
|
66
|
-
private initStyle;
|
|
67
|
-
private getPanOffset;
|
|
68
|
-
private onPanstart;
|
|
69
|
-
private onPan;
|
|
70
|
-
private onPanend;
|
|
71
|
-
}
|
|
72
|
-
export {};
|
|
@@ -1,158 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
constructor(t, e) {
|
|
23
|
-
n(this, "width");
|
|
24
|
-
n(this, "height");
|
|
25
|
-
n(this, "containerDom");
|
|
26
|
-
n(this, "hooks", new w());
|
|
27
|
-
n(this, "canvas", document.createElement("canvas"));
|
|
28
|
-
n(this, "five");
|
|
29
|
-
n(this, "scale");
|
|
30
|
-
n(this, "config");
|
|
31
|
-
n(this, "offset", { x: 0, y: 0 });
|
|
32
|
-
n(this, "context");
|
|
33
|
-
n(this, "renderCenter", new l.Vector3());
|
|
34
|
-
n(this, "hammer");
|
|
35
|
-
n(this, "state", { enabled: !1 });
|
|
36
|
-
n(this, "offsetRange");
|
|
37
|
-
n(this, "isPanning", !1);
|
|
38
|
-
n(this, "onPanstart", () => {
|
|
39
|
-
this.isPanning = !0, this.canvas.style.boxShadow = "0 2px 30px 0 rgba(0,0,0,0.20)";
|
|
40
|
-
});
|
|
41
|
-
n(this, "onPan", (t) => {
|
|
42
|
-
if (!this.isPanning || !this.offsetRange || this.hooks.emit("wantsPanGesture", t))
|
|
43
|
-
return;
|
|
44
|
-
const { translateX: s, translateY: i } = this.getPanOffset(t, this.offsetRange);
|
|
45
|
-
this.canvas.style.transform = `translate3d(${s}px, ${i}px, 100px)`;
|
|
46
|
-
});
|
|
47
|
-
n(this, "onPanend", (t) => {
|
|
48
|
-
if (this.isPanning = !1, this.canvas.style.boxShadow = "none", !this.offsetRange)
|
|
49
|
-
return;
|
|
50
|
-
const { translateX: e, translateY: s } = this.getPanOffset(t, this.offsetRange);
|
|
51
|
-
this.canvas.style.transform = `translate3d(${e}px, ${s}px, 100px)`, this.offset = { x: e, y: s };
|
|
52
|
-
});
|
|
53
|
-
var i, h, a;
|
|
54
|
-
if (!t.renderer)
|
|
55
|
-
throw new Error("Five Render 未初始化");
|
|
56
|
-
this.five = t, this.scale = (i = e == null ? void 0 : e.scale) != null ? i : 2, this.width = (h = e == null ? void 0 : e.width) != null ? h : 190, this.height = (a = e == null ? void 0 : e.height) != null ? a : 190, this.config = {
|
|
57
|
-
dragEnabled: (e == null ? void 0 : e.dragEnabled) || !1,
|
|
58
|
-
autoFixPCPosition: (e == null ? void 0 : e.autoFixPCPosition) || !1,
|
|
59
|
-
initialPosition: (e == null ? void 0 : e.initialPosition) || { left: "0", top: "0" }
|
|
60
|
-
};
|
|
61
|
-
const s = this.canvas.getContext("2d");
|
|
62
|
-
if (!s)
|
|
63
|
-
throw new Error("CANNOT CREATE CONTEXT2D");
|
|
64
|
-
this.context = s, this.config.dragEnabled && (this.hammer = new C(this.canvas), this.hammer.on("pan", this.onPan), this.hammer.on("panstart", this.onPanstart), this.hammer.on("panend", this.onPanend)), this.initStyle();
|
|
65
|
-
}
|
|
66
|
-
dispose() {
|
|
67
|
-
var t;
|
|
68
|
-
this.clear(), this.disable(), (t = this.hammer) == null || t.destroy();
|
|
69
|
-
}
|
|
70
|
-
enable() {
|
|
71
|
-
if (!this.state.enabled)
|
|
72
|
-
return this.state.enabled = !0, this.containerDom && this._appendTo(this.containerDom), this;
|
|
73
|
-
}
|
|
74
|
-
disable() {
|
|
75
|
-
if (this.state.enabled)
|
|
76
|
-
return this.state.enabled = !1, this.canvas.remove(), this;
|
|
77
|
-
}
|
|
78
|
-
/** 把放大镜放到某一个容器中 */
|
|
79
|
-
appendTo(t) {
|
|
80
|
-
return this.containerDom = t, this.state.enabled && this._appendTo(t), this;
|
|
81
|
-
}
|
|
82
|
-
/** 清除放大镜渲染内容 */
|
|
83
|
-
clear() {
|
|
84
|
-
return this.context.clearRect(0, 0, this.canvas.width, this.canvas.height), this;
|
|
85
|
-
}
|
|
86
|
-
/** 放大传入点位周围的内容 */
|
|
87
|
-
renderWithPoint(t) {
|
|
88
|
-
this.containerDom && this.state.enabled && (this.renderCenter = t, this.render(), this.config.autoFixPCPosition && this.autoFixPCPosition());
|
|
89
|
-
}
|
|
90
|
-
/** 放大传入点位周围的内容 */
|
|
91
|
-
renderWithScreenPoint(t) {
|
|
92
|
-
this.containerDom && this.state.enabled && (this.renderCenter = t, this.render(), this.config.autoFixPCPosition && this.autoFixPCPosition());
|
|
93
|
-
}
|
|
94
|
-
resetOffset() {
|
|
95
|
-
this.offset = { x: 0, y: 0 }, this.canvas.style.transform = "translate3d(0px, 0px, 100px)";
|
|
96
|
-
}
|
|
97
|
-
getCurrentState() {
|
|
98
|
-
return { enabled: this.state.enabled };
|
|
99
|
-
}
|
|
100
|
-
getRenderCenter() {
|
|
101
|
-
return this.renderCenter;
|
|
102
|
-
}
|
|
103
|
-
_appendTo(t) {
|
|
104
|
-
if (this.resetOffset(), t.appendChild(this.canvas), !this.offsetRange) {
|
|
105
|
-
const e = this.canvas.getBoundingClientRect(), s = t.getBoundingClientRect(), i = s.right - e.right, h = s.bottom - e.bottom, a = s.left - e.left, o = s.top - e.top;
|
|
106
|
-
this.offsetRange = {
|
|
107
|
-
min: { x: a, y: o },
|
|
108
|
-
max: { x: i, y: h }
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
autoFixPCPosition() {
|
|
113
|
-
if (!this.containerDom)
|
|
114
|
-
return;
|
|
115
|
-
const { width: t, height: e } = this, [s, i, h] = (() => {
|
|
116
|
-
if (this.renderCenter instanceof l.Vector3) {
|
|
117
|
-
const a = this.renderCenter.clone().project(this.five.camera);
|
|
118
|
-
return [
|
|
119
|
-
(a.x + 1) / 2 * this.containerDom.clientWidth,
|
|
120
|
-
-(a.x - 1) / 2 * this.containerDom.clientWidth,
|
|
121
|
-
-(a.y - 1) / 2 * this.containerDom.clientHeight
|
|
122
|
-
];
|
|
123
|
-
} else
|
|
124
|
-
return [this.renderCenter.x, this.containerDom.clientWidth - this.renderCenter.x, this.renderCenter.y];
|
|
125
|
-
})();
|
|
126
|
-
s < 183 ? (this.canvas.style.top = -e / 2 + "px", this.canvas.style.left = "90px") : h < 183 ? (this.canvas.style.top = "90px", this.canvas.style.left = -t / 2 + "px") : i < 183 ? (this.canvas.style.top = -e / 2 + "px", this.canvas.style.left = -t - 90 + "px") : (this.canvas.style.left = -t / 2 + "px", this.canvas.style.top = -e - 90 + "px"), this.canvas.style.transform = `translate3d(${s}px, ${h}px, 10px)`, this.offset = { x: s, y: h };
|
|
127
|
-
}
|
|
128
|
-
render() {
|
|
129
|
-
if (!this.five.renderer || !this.containerDom)
|
|
130
|
-
return;
|
|
131
|
-
const { scale: t, context: e, width: s, height: i } = this, h = this.five.renderer.getSize(new l.Vector2()), [a, o] = (() => {
|
|
132
|
-
if (this.renderCenter instanceof l.Vector3) {
|
|
133
|
-
const y = this.renderCenter.clone().project(this.five.camera);
|
|
134
|
-
return [(y.x + 1) / 2 * h.x, (y.y + 1) / 2 * h.y];
|
|
135
|
-
} else
|
|
136
|
-
return [this.renderCenter.x, h.y - this.renderCenter.y];
|
|
137
|
-
})(), f = 1, c = s / t, x = i / t, P = f * t, g = this.five.getPixels(a - c / 2, o - c / 2, c, x, P), m = Math.floor(s * f), u = Math.floor(i * f);
|
|
138
|
-
R(g, m, u);
|
|
139
|
-
const v = new ImageData(m, u);
|
|
140
|
-
v.data.set(g), e.putImageData(v, 0, 0);
|
|
141
|
-
}
|
|
142
|
-
initStyle() {
|
|
143
|
-
const t = this.canvas;
|
|
144
|
-
t.classList.add("five-plugin__magnifier"), t.style.position = "absolute", t.style.pointerEvents = "all", t.style.borderRadius = "50%", t.style.zIndex = "99";
|
|
145
|
-
const e = 1;
|
|
146
|
-
t.setAttribute("width", (this.width * e).toString()), t.setAttribute("height", (this.height * e).toString()), t.style.border = "2px solid rgba(255,255,255,0.20)", t.style.width = this.width + "px", t.style.height = this.height + "px", t.style.top = this.config.initialPosition.top, t.style.left = this.config.initialPosition.left, t.style.transform = "translate(0,0,100px)", this.config.dragEnabled && (this.canvas.style.cursor = "pointer");
|
|
147
|
-
}
|
|
148
|
-
getPanOffset(t, e) {
|
|
149
|
-
const {
|
|
150
|
-
min: { x: s, y: i },
|
|
151
|
-
max: { x: h, y: a }
|
|
152
|
-
} = e, o = this.offset.x + t.deltaX, f = this.offset.y + t.deltaY, c = Math.min(Math.max(o, s), h), x = Math.min(Math.max(f, i), a);
|
|
153
|
-
return { translateX: c, translateY: x };
|
|
154
|
-
}
|
|
155
|
-
}
|
|
1
|
+
import { Magnifier as i } from "../../shared-utils/three/Magnifier.js";
|
|
2
|
+
import "three";
|
|
3
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
4
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
5
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
6
|
+
import "@realsee/five";
|
|
7
|
+
import "hammerjs";
|
|
8
|
+
import "../../shared-utils/positionToVector3.js";
|
|
9
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
10
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
11
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
12
|
+
import "../../shared-utils/util.js";
|
|
13
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
14
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
15
|
+
import "../../shared-utils/Subscribe.js";
|
|
16
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
17
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
18
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
19
|
+
import "../../shared-utils/three/getObjectVisible.js";
|
|
20
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
21
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
156
22
|
export {
|
|
157
|
-
|
|
23
|
+
i as default
|
|
158
24
|
};
|
|
@@ -16,6 +16,7 @@ import "../../Controller/EditController.js";
|
|
|
16
16
|
import "../../Model/line.js";
|
|
17
17
|
import "../../../shared-utils/uuid.js";
|
|
18
18
|
import "../../utils/line.js";
|
|
19
|
+
import "../../../shared-utils/five/FiveLine.js";
|
|
19
20
|
import "@realsee/five/line";
|
|
20
21
|
import "../../utils/constants.js";
|
|
21
22
|
import "three";
|
|
@@ -32,10 +33,10 @@ import "../../Model/polyline.js";
|
|
|
32
33
|
import "../../Model/area.js";
|
|
33
34
|
import "../../Model/polygon.js";
|
|
34
35
|
import "../../../shared-utils/three/IObject3D.js";
|
|
35
|
-
import "
|
|
36
|
+
import "../../../shared-utils/three/generatePolygonGeometry.js";
|
|
36
37
|
import "earcut";
|
|
37
38
|
import "../../utils/dom/areaDom.js";
|
|
38
|
-
import "
|
|
39
|
+
import "../../../shared-utils/three/geometryUtil.js";
|
|
39
40
|
import "hammerjs";
|
|
40
41
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
41
42
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
@@ -69,9 +70,8 @@ import "../../../shared-utils/url/absoluteUrl.js";
|
|
|
69
70
|
import "../../../shared-utils/animationFrame/BetterTween.js";
|
|
70
71
|
import "../../../shared-utils/animationFrame/index.js";
|
|
71
72
|
import "../../../shared-utils/isTouchDevice.js";
|
|
72
|
-
import "../../../shared-utils/
|
|
73
|
-
import "../../../shared-utils/
|
|
74
|
-
import "../../../shared-utils/three/getIntersect.js";
|
|
73
|
+
import "../../../shared-utils/five/getPosition.js";
|
|
74
|
+
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
75
75
|
import "../DeleteDom/index.js";
|
|
76
76
|
import "../DeleteDom/_Assets/delete.svg.js";
|
|
77
77
|
import "../DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import t from "./Controller/index.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Magnifier as Yo } from "../shared-utils/three/Magnifier.js";
|
|
3
|
+
import "three";
|
|
4
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
5
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
6
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
7
|
+
import "@realsee/five";
|
|
3
8
|
import { Model as _o } from "./Model/index.js";
|
|
4
9
|
import { default as or } from "./Model/point.js";
|
|
5
10
|
import { default as tr } from "./Model/line.js";
|
|
@@ -7,13 +12,12 @@ import { Polyline as mr } from "./Model/polyline.js";
|
|
|
7
12
|
import "./Controller/EditController.js";
|
|
8
13
|
import "../shared-utils/throttle.js";
|
|
9
14
|
import "./Controller/BaseController.js";
|
|
10
|
-
import "three";
|
|
11
15
|
import "./utils/ironbox.js";
|
|
12
16
|
import "../shared-utils/uuid.js";
|
|
13
17
|
import "./utils/line.js";
|
|
18
|
+
import "../shared-utils/five/FiveLine.js";
|
|
14
19
|
import "@realsee/five/line";
|
|
15
20
|
import "./utils/constants.js";
|
|
16
|
-
import "@realsee/five";
|
|
17
21
|
import "./utils/dom/distanceItem.js";
|
|
18
22
|
import "./utils/dom/base.js";
|
|
19
23
|
import "./utils/isNDCPointInScreen.js";
|
|
@@ -21,13 +25,12 @@ import "../shared-utils/three/centerPoint.js";
|
|
|
21
25
|
import "./Model/area.js";
|
|
22
26
|
import "./Model/polygon.js";
|
|
23
27
|
import "../shared-utils/three/IObject3D.js";
|
|
24
|
-
import "
|
|
28
|
+
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
25
29
|
import "earcut";
|
|
26
30
|
import "./utils/dom/areaDom.js";
|
|
27
|
-
import "
|
|
31
|
+
import "../shared-utils/three/geometryUtil.js";
|
|
28
32
|
import "hammerjs";
|
|
29
|
-
import "../
|
|
30
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
33
|
+
import "../shared-utils/isNil.js";
|
|
31
34
|
import "../shared-utils/positionToVector3.js";
|
|
32
35
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
33
36
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -41,12 +44,9 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
41
44
|
import "../shared-utils/three/getObjectVisible.js";
|
|
42
45
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
43
46
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
44
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
45
|
-
import "../shared-utils/isNil.js";
|
|
46
47
|
import "./utils/isIntersecting.js";
|
|
47
48
|
import "../shared-utils/three/PointSelector.js";
|
|
48
49
|
import "../shared-utils/three/PointSelectorHelper.js";
|
|
49
|
-
import "../shared-utils/three/Magnifier.js";
|
|
50
50
|
import "../shared-utils/three/PointHelper.js";
|
|
51
51
|
import "../shared-utils/three/Assets/index.js";
|
|
52
52
|
import "../shared-utils/three/PointDomHelper.js";
|
|
@@ -58,9 +58,8 @@ import "../shared-utils/url/absoluteUrl.js";
|
|
|
58
58
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
59
59
|
import "../shared-utils/animationFrame/index.js";
|
|
60
60
|
import "../shared-utils/isTouchDevice.js";
|
|
61
|
-
import "../shared-utils/
|
|
62
|
-
import "../shared-utils/
|
|
63
|
-
import "../shared-utils/three/getIntersect.js";
|
|
61
|
+
import "../shared-utils/five/getPosition.js";
|
|
62
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
64
63
|
import "./Modules/DeleteDom/index.js";
|
|
65
64
|
import "./Modules/DeleteDom/_Assets/delete.svg.js";
|
|
66
65
|
import "./Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -70,6 +69,7 @@ import "./Controller/ViewController.js";
|
|
|
70
69
|
import "./Controller/WatchController.js";
|
|
71
70
|
import "./utils/findClosestPoint.js";
|
|
72
71
|
import "./utils/ndc2Screen.js";
|
|
72
|
+
import "../shared-utils/getPointFromHammerEvent.js";
|
|
73
73
|
import "./Controller/MixedController.js";
|
|
74
74
|
import "./Modules/rangePiece/index.js";
|
|
75
75
|
import "../shared-utils/noop.js";
|
|
@@ -12,7 +12,7 @@ var m = (i, o, t) => o in i ? u(i, o, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
}, s = (i, o) => D(i, f(o));
|
|
13
13
|
var l = (i, o, t) => (m(i, typeof o != "symbol" ? o + "" : o, t), t);
|
|
14
14
|
import { ItemDom as y } from "./base.js";
|
|
15
|
-
import { getGeometryInfo as I } from "
|
|
15
|
+
import { getGeometryInfo as I } from "../../../shared-utils/three/geometryUtil.js";
|
|
16
16
|
import "hammerjs";
|
|
17
17
|
import "three";
|
|
18
18
|
import "@realsee/five";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { FiveLine } from '../../shared-utils/five/FiveLine';
|
|
1
2
|
import type Line from '../Model/line';
|
|
2
|
-
import { Line as FiveLine } from '@realsee/five/line';
|
|
3
3
|
import type { Texture, Vector3 } from 'three';
|
|
4
4
|
import { Color } from 'three';
|
|
5
5
|
type ISetMaterialOpts = Parameters<FiveLine['setMaterial']>[0];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FiveLine as u } from "../../shared-utils/five/FiveLine.js";
|
|
2
2
|
import { lightLineOpts as C, normalLineOpts as R } from "./constants.js";
|
|
3
3
|
import { Color as T } from "three";
|
|
4
|
-
|
|
4
|
+
import "@realsee/five/line";
|
|
5
|
+
function v(i, t, e) {
|
|
5
6
|
var d, c, m, f, h;
|
|
6
7
|
const a = (d = e == null ? void 0 : e.lineWidth) != null ? d : 2, o = (c = e == null ? void 0 : e.lineColor) != null ? c : new T(16777215), r = (m = e == null ? void 0 : e.pointSize) != null ? m : 5, L = (f = e == null ? void 0 : e.lineRenderOrder) != null ? f : 10, O = (h = e == null ? void 0 : e.lineRenderOrder) != null ? h : 20, n = new u(i, t);
|
|
7
8
|
n.setMaterial({ linewidth: a, color: o }), n.line.material.depthTest = !1, n.line.material.transparent = !0, n.line.renderOrder = L, n.points.renderOrder = O;
|
|
@@ -9,10 +10,10 @@ function w(i, t, e) {
|
|
|
9
10
|
return l.depthTest = !1, l.size = r, e != null && e.pointColor && l.color.set(e.pointColor).convertSRGBToLinear(), e != null && e.pointTexture && (l.map = e.pointTexture), n;
|
|
10
11
|
}
|
|
11
12
|
function S(i, t) {
|
|
12
|
-
const [e, a] = i.points, o = t === "light" ? C : R, r =
|
|
13
|
+
const [e, a] = i.points, o = t === "light" ? C : R, r = v(e.position, a.position, o);
|
|
13
14
|
return r.name = "normalLine_" + i.id, r;
|
|
14
15
|
}
|
|
15
16
|
export {
|
|
16
|
-
|
|
17
|
+
v as createLine,
|
|
17
18
|
S as createLineMesh
|
|
18
19
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var A = Object.defineProperty;
|
|
2
2
|
var R = Object.getOwnPropertySymbols;
|
|
3
|
-
var k = Object.prototype.hasOwnProperty,
|
|
3
|
+
var k = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
|
|
4
4
|
var C = (d, m, t) => m in d ? A(d, m, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[m] = t, j = (d, m) => {
|
|
5
5
|
for (var t in m || (m = {}))
|
|
6
6
|
k.call(m, t) && C(d, t, m[t]);
|
|
7
7
|
if (R)
|
|
8
8
|
for (var t of R(m))
|
|
9
|
-
|
|
9
|
+
E.call(m, t) && C(d, t, m[t]);
|
|
10
10
|
return d;
|
|
11
11
|
};
|
|
12
12
|
var u = (d, m, t) => (C(d, typeof m != "symbol" ? m + "" : m, t), t);
|
|
@@ -26,15 +26,15 @@ var S = (d, m, t) => new Promise((e, o) => {
|
|
|
26
26
|
}, a = (s) => s.done ? e(s.value) : Promise.resolve(s.value).then(i, r);
|
|
27
27
|
a((t = t.apply(d, m)).next());
|
|
28
28
|
});
|
|
29
|
-
import { TagComputer as
|
|
30
|
-
import { Group as y, Quaternion as
|
|
29
|
+
import { TagComputer as I } from "./TagComputer.js";
|
|
30
|
+
import { Group as y, Quaternion as V, Vector3 as b, Matrix4 as v } from "three";
|
|
31
31
|
import O from "../Components/TagContainer.js";
|
|
32
32
|
import x from "../Components/Tag/index.js";
|
|
33
33
|
import { CSS3DRenderPlugin as G } from "../../CSS3DRenderPlugin/index.js";
|
|
34
34
|
import { loadGLTF as F } from "../../shared-utils/three/GLTFLoader.js";
|
|
35
35
|
import { isMediaModelTag as D, isStickModelTag as _ } from "../utils/tag/tagCheck.js";
|
|
36
36
|
import { VideoPlane as L, ImagePlane as w } from "../utils/model/mediaPlane.js";
|
|
37
|
-
import { centerPoint as
|
|
37
|
+
import { centerPoint as W } from "../../shared-utils/three/centerPoint.js";
|
|
38
38
|
import { arrayPositionToVector3 as g } from "../../shared-utils/positionToVector3.js";
|
|
39
39
|
import "../utils/tagPosition.js";
|
|
40
40
|
import "../utils/checkRange.js";
|
|
@@ -161,8 +161,8 @@ import "../Components/Tag/CustomTag.js";
|
|
|
161
161
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
162
162
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
163
163
|
import "@realsee/five/gltf-loader";
|
|
164
|
-
const
|
|
165
|
-
class Ti extends
|
|
164
|
+
const q = /* @__PURE__ */ new Map(), $ = /* @__PURE__ */ new Map();
|
|
165
|
+
class Ti extends I {
|
|
166
166
|
constructor(t) {
|
|
167
167
|
super(t);
|
|
168
168
|
u(this, "rendererMap", /* @__PURE__ */ new Map());
|
|
@@ -263,7 +263,7 @@ class Ti extends V {
|
|
|
263
263
|
playButton: e.data.playIcon,
|
|
264
264
|
paused: !((l = e.data.autoplayConfig) != null && l.autoplayVideo),
|
|
265
265
|
objectFit: e.data.objectFit,
|
|
266
|
-
videoTextureMap:
|
|
266
|
+
videoTextureMap: q,
|
|
267
267
|
ImageTextureMap: $,
|
|
268
268
|
domEvents: this.domEvents
|
|
269
269
|
});
|
|
@@ -287,9 +287,14 @@ class Ti extends V {
|
|
|
287
287
|
if (!o)
|
|
288
288
|
return;
|
|
289
289
|
const i = e.position.map(g), r = this.getCurrentVisibleState(e), a = (() => !!(e.mediaPlane && !r))(), s = (() => !!(!e.mediaPlane && r))(), n = (() => !!(e.mediaPlane && e.mediaPlane.src !== o))();
|
|
290
|
-
(a || n) && e.mediaPlane && (this.imagePlaneGroup.remove(e.mediaPlane), e.mediaPlane.dispose(), e.mediaPlane.removeFromParent(), e.mediaPlane = void 0), (s || n) && (e.mediaPlane = new w(o, i, { objectFit: e.data.objectFit }), this.getTagConfig(e).clickable !== !1 && this.domEvents.addAutoBindEventListener(
|
|
291
|
-
|
|
292
|
-
|
|
290
|
+
(a || n) && e.mediaPlane && (this.imagePlaneGroup.remove(e.mediaPlane), e.mediaPlane.dispose(), e.mediaPlane.removeFromParent(), e.mediaPlane = void 0), (s || n) && (e.mediaPlane = new w(o, i, { objectFit: e.data.objectFit }), this.getTagConfig(e).clickable !== !1 && this.domEvents.addAutoBindEventListener(
|
|
291
|
+
e.mediaPlane,
|
|
292
|
+
"click",
|
|
293
|
+
(l) => {
|
|
294
|
+
this.hooks.emit("click", { tag: e, target: "TagContent", event: l.origDomEvent });
|
|
295
|
+
},
|
|
296
|
+
{ noEmitWhenHide: !0 }
|
|
297
|
+
), this.imagePlaneGroup.add(e.mediaPlane));
|
|
293
298
|
});
|
|
294
299
|
}
|
|
295
300
|
/**
|
|
@@ -301,7 +306,7 @@ class Ti extends V {
|
|
|
301
306
|
if (e.tag3DContentSvelte) {
|
|
302
307
|
const { svelteApp: a, css3DInstance: s, initialNormal: n, currentNormal: l } = e.tag3DContentSvelte;
|
|
303
308
|
if (a.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !n.equals(l)) {
|
|
304
|
-
const p = new
|
|
309
|
+
const p = new V().setFromUnitVectors(n, l);
|
|
305
310
|
s.css3DObject.setRotationFromQuaternion(p);
|
|
306
311
|
}
|
|
307
312
|
return;
|
|
@@ -394,7 +399,7 @@ class Ti extends V {
|
|
|
394
399
|
if (!r || r.length !== 4 || !Array.isArray(r[0]) || !Array.isArray(r[2]))
|
|
395
400
|
return;
|
|
396
401
|
e.updateWorldMatrix(!1, !1);
|
|
397
|
-
const a = e.matrixWorld, s = new b().fromArray(r[0]), n = new b().fromArray(r[2]), l =
|
|
402
|
+
const a = e.matrixWorld, s = new b().fromArray(r[0]), n = new b().fromArray(r[2]), l = W(s, n).add(new b(0, 0, 5e-4)), p = new v().setPosition(l), h = new v().makeScale(o, o, o), f = new v().multiply(a).multiply(p).multiply(h);
|
|
398
403
|
f.decompose(i.position, i.quaternion, i.scale);
|
|
399
404
|
const c = i.opacityMesh;
|
|
400
405
|
c && f.decompose(c.position, c.quaternion, c.scale);
|