@realsee/dnalogel 3.64.5-alpha.1 → 3.64.5-alpha.3
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/index.cjs.js +32 -32
- package/dist/index.js +4983 -4979
- package/dist/index.umd.js +45 -45
- package/dist/shared-utils/five/FiveDomEvents.d.ts +3 -4
- package/docs/assets/highlight.css +11 -4
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +3 -3
- package/docs/classes/CSS3DRender.html +3 -3
- package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +2 -2
- package/docs/classes/ModelMakerPluginInstance.html +2 -2
- package/docs/classes/ModelRoomLabelController.html +2 -2
- package/docs/classes/MoveController.html +2 -2
- package/docs/classes/Object3DHelperController.html +2 -2
- package/docs/classes/PaintBrush.html +2 -2
- 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 +2 -2
- package/docs/classes/PanoTagPluginController.html +2 -2
- package/docs/classes/Sculpt.html +2 -2
- package/docs/classes/Util.BetterTween.html +2 -2
- package/docs/classes/Util.FiveDomEvents.html +5 -4
- package/docs/classes/Util.FivePuppet.html +5 -5
- package/docs/classes/Util.Interval.html +2 -2
- package/docs/classes/Util.LightTag.html +3 -3
- package/docs/classes/Util.LineSegments.html +2 -2
- package/docs/classes/Util.Magnifier.html +2 -2
- package/docs/classes/Util.Object3D.html +2 -2
- package/docs/classes/Util.PointHelper.html +2 -2
- package/docs/classes/Util.PointSelector.html +2 -2
- package/docs/classes/Util.PointSelectorHelper.html +2 -2
- package/docs/classes/Util.Rectangle.html +2 -2
- package/docs/classes/Util.sculpt.BaseEditor.html +2 -2
- package/docs/classes/Util.sculpt.BoxMesh.html +2 -2
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleMesh.html +2 -2
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.LineMesh.html +5 -5
- package/docs/classes/Util.sculpt.PointMesh.html +2 -2
- package/docs/classes/Util.sculpt.PolygonMesh.html +5 -5
- package/docs/classes/Util.sculpt.PrismMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMesh.html +4 -4
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +4 -4
- package/docs/classes/WalkController.html +2 -2
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +2 -2
- package/docs/enums/DIRECTION.html +2 -2
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/DimensionType.html +2 -2
- 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 +2 -2
- package/docs/enums/Rotation.html +2 -2
- 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 +3 -3
- 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 +2 -2
- package/docs/interfaces/AreaMakerPluginType.Config.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Params.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.State.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/ContentTypeMapInterface.html +2 -2
- package/docs/interfaces/CruisePluginTypes.Config.html +2 -2
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
- package/docs/interfaces/CruisePluginTypes.EventMap.html +2 -2
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +2 -2
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +2 -2
- package/docs/interfaces/FloorplanExtraObject.html +2 -2
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +2 -2
- package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
- package/docs/interfaces/FloorplanServerBounding.html +2 -2
- package/docs/interfaces/FloorplanServerComputedData.html +2 -2
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
- package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +2 -2
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +2 -2
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +2 -2
- package/docs/interfaces/GuideLinePluginType.EventMap.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +4 -4
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +2 -2
- package/docs/interfaces/GuideLinePluginType.Route.html +2 -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 +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.State.html +2 -2
- 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 +2 -2
- package/docs/interfaces/PaintBrushConfigs.html +2 -2
- package/docs/interfaces/PaintBrushState.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +2 -2
- package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +2 -2
- 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 +2 -2
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +2 -2
- package/docs/interfaces/PluginEventMap.html +2 -2
- 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 +2 -2
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +2 -2
- package/docs/interfaces/State.html +2 -2
- package/docs/interfaces/TagCacheInterface.html +2 -2
- package/docs/interfaces/TagConfig.html +2 -2
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconUrl.html +2 -2
- package/docs/interfaces/TagObjectGroup.html +2 -2
- package/docs/interfaces/TagStyle.html +2 -2
- package/docs/interfaces/Tags.html +2 -2
- 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 +2 -2
- package/docs/interfaces/Util.FiveDomEvent.html +2 -2
- package/docs/interfaces/Util.FiveDomEventMap.html +2 -2
- package/docs/interfaces/Util.MagnifierParameter.html +2 -2
- package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.PointIntersection.html +2 -2
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +2 -2
- 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 +2 -2
- 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 -2
- package/docs/modules/Util.html +2 -2
- package/docs/modules/Util.sculpt.html +2 -2
- package/docs/modules.html +2 -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 -2
- 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 +2 -2
- 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 +2 -2
- 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/Sculpt/Meshes/Line.js +85 -84
- package/libs/Sculpt/Meshes/Polygon.js +60 -56
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/five/FiveDomEvents.d.ts +3 -4
- package/libs/shared-utils/five/FiveDomEvents.js +116 -117
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var p = (r, l, e) => l in r ?
|
|
1
|
+
var M = Object.defineProperty, w = Object.defineProperties;
|
|
2
|
+
var D = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var E = Object.getOwnPropertySymbols;
|
|
4
|
+
var b = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var p = (r, l, e) => l in r ? M(r, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[l] = e, f = (r, l) => {
|
|
6
6
|
for (var e in l || (l = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
7
|
+
b.call(l, e) && p(r, e, l[e]);
|
|
8
|
+
if (E)
|
|
9
|
+
for (var e of E(l))
|
|
10
10
|
v.call(l, e) && p(r, e, l[e]);
|
|
11
11
|
return r;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, S = (r, l) => w(r, D(l));
|
|
13
|
+
var o = (r, l, e) => (p(r, typeof l != "symbol" ? l + "" : l, e), e);
|
|
14
14
|
import * as y from "three";
|
|
15
|
-
import { DEFAULT_LINE_COLOR as I, DEFAULT_LINE_WIDTH as
|
|
15
|
+
import { DEFAULT_LINE_COLOR as I, DEFAULT_LINE_WIDTH as C, DEFAULT_HIGHLIGHT_OPACITY as O } from "../typings/style.js";
|
|
16
16
|
import { anyPositionToVector3 as R } from "../../shared-utils/positionToVector3.js";
|
|
17
|
-
import { IObject3D as
|
|
18
|
-
import { LightTag as
|
|
17
|
+
import { IObject3D as B } from "../../shared-utils/three/IObject3D.js";
|
|
18
|
+
import { LightTag as W } from "../../shared-utils/tag.js";
|
|
19
19
|
import "../../vendor/hammerjs/hammer.js";
|
|
20
20
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
21
|
-
import { centerPoint as
|
|
21
|
+
import { centerPoint as x } from "../../shared-utils/three/centerPoint.js";
|
|
22
22
|
import "../../shared-utils/three/CSS3DRenderer/index.js";
|
|
23
23
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
24
|
-
import { getLengthHTML as
|
|
24
|
+
import { getLengthHTML as V } from "../utils/Meshes/getLengthHTML.js";
|
|
25
25
|
import { localToWorld as L } from "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
26
|
-
import { LineGeometry as
|
|
26
|
+
import { LineGeometry as H } from "../../shared-utils/three/core/LineGeometry.js";
|
|
27
27
|
import { LineMaterial as P } from "../../shared-utils/three/core/LineMaterial.js";
|
|
28
28
|
import { THREE_Line2 as T } from "../../shared-utils/three/core/Line2.js";
|
|
29
|
-
import { LineMaterial2 as
|
|
30
|
-
import { transformUnit as
|
|
31
|
-
import { RenderDom as
|
|
29
|
+
import { LineMaterial2 as j } from "../../shared-utils/three/core/LineMaterial2.js";
|
|
30
|
+
import { transformUnit as A } from "../utils/unit.js";
|
|
31
|
+
import { RenderDom as u } from "../utils/renderDom.js";
|
|
32
32
|
import "../../shared-utils/three/core/Sphere.js";
|
|
33
33
|
import "../../vendor/animejs/lib/anime.es.js";
|
|
34
34
|
import { notNil as d } from "../../shared-utils/isNil.js";
|
|
35
35
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
36
36
|
import "../../shared-utils/five/FivePuppet.js";
|
|
37
|
-
class
|
|
37
|
+
class ae extends B {
|
|
38
38
|
constructor(e) {
|
|
39
|
-
var h, m,
|
|
39
|
+
var h, m, c, a;
|
|
40
40
|
super();
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
41
|
+
o(this, "name", "LineMesh");
|
|
42
|
+
o(this, "type", "Line2");
|
|
43
|
+
o(this, "object");
|
|
44
|
+
o(this, "points", []);
|
|
45
|
+
o(this, "doms", []);
|
|
46
|
+
o(this, "highlighted", !1);
|
|
47
|
+
o(this, "_geometry");
|
|
48
|
+
o(this, "line1");
|
|
49
|
+
o(this, "line2");
|
|
50
|
+
o(this, "opacityBeforeHighlight");
|
|
51
|
+
o(this, "colorBeforeHighlight");
|
|
52
|
+
o(this, "paramsStyle", {});
|
|
53
|
+
o(this, "lastRenderDomItem");
|
|
54
|
+
o(this, "_onAdded", () => {
|
|
55
55
|
this.doms.length === 0 && this.paramsStyle.lengthEnable && this.updateDomItems();
|
|
56
56
|
});
|
|
57
|
-
|
|
57
|
+
o(this, "_onRemoved", () => {
|
|
58
58
|
this.doms.forEach((e) => e.destroy()), this.doms = [];
|
|
59
59
|
});
|
|
60
|
-
|
|
60
|
+
o(this, "_onShowed", () => {
|
|
61
61
|
this.doms.forEach((e) => e.container.style.display = "block");
|
|
62
62
|
});
|
|
63
|
-
|
|
63
|
+
o(this, "_onHidden", () => {
|
|
64
64
|
this.doms.forEach((e) => e.container.style.display = "none");
|
|
65
65
|
});
|
|
66
|
-
this.paramsStyle = f({ dashed: !1 }, e), this.geometry = new
|
|
67
|
-
const
|
|
66
|
+
this.paramsStyle = f({ dashed: !1 }, e), this.geometry = new H();
|
|
67
|
+
const s = {
|
|
68
68
|
color: new y.Color((h = e == null ? void 0 : e.lineColor) != null ? h : I),
|
|
69
|
-
linewidth: (m = e == null ? void 0 : e.lineWidth) != null ? m :
|
|
69
|
+
linewidth: (m = e == null ? void 0 : e.lineWidth) != null ? m : C,
|
|
70
70
|
dashScale: 40,
|
|
71
|
-
opacity: (
|
|
71
|
+
opacity: (c = e == null ? void 0 : e.lineOpacity) != null ? c : 1,
|
|
72
72
|
depthWrite: !1,
|
|
73
73
|
transparent: !0
|
|
74
|
-
}, i = new P(
|
|
74
|
+
}, i = new P(S(f({}, s), { dashed: !1, depthTest: !0 })), t = new j(S(f({}, s), { dashed: !0, depthTest: !1 }));
|
|
75
75
|
if (this.line1 = new T(this.geometry, i), this.line2 = new T(this.geometry, t), this.line1.renderOrder = 2, this.line2.renderOrder = 2, this.line1.name = "line1", this.line2.name = "line2", this.add(this.line1), this.five) {
|
|
76
|
-
const n = (
|
|
76
|
+
const n = (a = this.five.renderer) == null ? void 0 : a.getSize(new y.Vector2());
|
|
77
77
|
n && this.setResolution(n.width, n.height);
|
|
78
78
|
}
|
|
79
79
|
e && this.setStyle(e), e != null && e.points && this.setPoints(e.points), this.addEventListener("removed", () => {
|
|
80
|
-
|
|
80
|
+
u.cacheObject.delete(this), u.checkDom(this);
|
|
81
81
|
}), this.addEventListener("added", () => {
|
|
82
|
-
|
|
83
|
-
}),
|
|
82
|
+
u.cacheObject.add(this);
|
|
83
|
+
}), u.checkDomEveryFrame();
|
|
84
84
|
}
|
|
85
85
|
get style() {
|
|
86
86
|
return {
|
|
@@ -116,62 +116,62 @@ class re extends C {
|
|
|
116
116
|
return this.paramsStyle.occlusionMode;
|
|
117
117
|
}
|
|
118
118
|
get five() {
|
|
119
|
-
var
|
|
120
|
-
const e = (i = (
|
|
119
|
+
var s, i;
|
|
120
|
+
const e = (i = (s = window.globalModules) == null ? void 0 : s.five) != null ? i : window.$five;
|
|
121
121
|
return e || console.error("请先调用 Sculpt.modules.init(five) "), e;
|
|
122
122
|
}
|
|
123
123
|
set geometry(e) {
|
|
124
|
-
var
|
|
125
|
-
this._geometry = e, this.line1 && (this.line1.geometry = e), this.line2 && (this.line2.geometry = e), (
|
|
124
|
+
var s;
|
|
125
|
+
this._geometry = e, this.line1 && (this.line1.geometry = e), this.line2 && (this.line2.geometry = e), (s = this.line1) == null || s.computeLineDistances();
|
|
126
126
|
}
|
|
127
127
|
get geometry() {
|
|
128
128
|
return this._geometry;
|
|
129
129
|
}
|
|
130
130
|
updateMatrixWorld(e) {
|
|
131
|
-
var
|
|
131
|
+
var s;
|
|
132
132
|
if (super.updateMatrixWorld(e), this.points) {
|
|
133
|
-
const i = (
|
|
133
|
+
const i = (s = L(this, this.points)) == null ? void 0 : s.map((t) => t.toArray().join(",")).join(",");
|
|
134
134
|
i !== this.lastRenderDomItem && (this.updateDomItems(), this.lastRenderDomItem = i);
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
setPoints(e) {
|
|
138
138
|
if (this.points.length === 0 && e.length === 0)
|
|
139
139
|
return;
|
|
140
|
-
const
|
|
141
|
-
if (this.points =
|
|
142
|
-
const t = new
|
|
140
|
+
const s = e.map(R).filter(d);
|
|
141
|
+
if (this.points = s, s.length < 2) {
|
|
142
|
+
const t = new H();
|
|
143
143
|
this.line1.geometry = t, this.line2.geometry = t, this.updateDomItems();
|
|
144
144
|
return;
|
|
145
145
|
}
|
|
146
|
-
const i =
|
|
146
|
+
const i = s.flatMap((t) => [t.x, t.y, t.z]);
|
|
147
147
|
if (i.length > 2) {
|
|
148
148
|
this.line1.geometry.dispose();
|
|
149
|
-
const t = new
|
|
149
|
+
const t = new H();
|
|
150
150
|
this.line1.geometry = t, this.line2.geometry = t;
|
|
151
151
|
}
|
|
152
152
|
this.line1.geometry.setPositions(i), this.line1.computeLineDistances(), this.updateDomItems(), this.needsRender = !0;
|
|
153
153
|
}
|
|
154
|
-
setResolution(e,
|
|
154
|
+
setResolution(e, s) {
|
|
155
155
|
const i = this.line1.material.resolution;
|
|
156
|
-
(i.x !== e || i.y !==
|
|
156
|
+
(i.x !== e || i.y !== s) && (i.set(e, s), this.needsRender = !0);
|
|
157
157
|
const t = this.line2.material.resolution;
|
|
158
|
-
(t.x !== e || t.y !==
|
|
158
|
+
(t.x !== e || t.y !== s) && (t.set(e, s), this.needsRender = !0);
|
|
159
159
|
}
|
|
160
160
|
setStyle(e) {
|
|
161
|
-
var t, h, m,
|
|
161
|
+
var t, h, m, c;
|
|
162
162
|
if (this.paramsStyle = f(f({}, this.paramsStyle), e), d(e.lineColor)) {
|
|
163
|
-
const
|
|
164
|
-
this.line1.material.three_color =
|
|
163
|
+
const a = new y.Color(e.lineColor);
|
|
164
|
+
this.line1.material.three_color = a, this.line2.material.three_color = a;
|
|
165
165
|
}
|
|
166
166
|
d(e.lineWidth) && (this.line1.material.linewidth = e.lineWidth, this.line2.material.linewidth = e.lineWidth), d(e.dashed) && (this.line1.material.dashed = e.dashed), d(e.lineOpacity) && (this.line1.material.opacity = e.lineOpacity, this.line2.material.opacity = e.lineOpacity), this.updateDomItems();
|
|
167
|
-
const
|
|
168
|
-
|
|
167
|
+
const s = (h = (t = e.occlusionVisibility) != null ? t : this.paramsStyle.occlusionVisibility) != null ? h : !0, i = (c = (m = e.occlusionMode) != null ? m : this.paramsStyle.occlusionMode) != null ? c : "translucence";
|
|
168
|
+
s ? this.dashed ? (this.remove(this.line2), this.line1.material.dashed = !0, this.line1.material.depthTest = !1) : i === "depthTest" ? (this.remove(this.line2), this.line1.material.dashed = !1, this.line1.material.depthTest = !1) : i === "translucence" && (this.line1.material.depthTest = !0, this.line2.material.depthTest = !1, this.line1.material.dashed = !0, this.line2.material.dashed = !0, this.addIfNotExists(this.line2)) : (this.remove(this.line2), this.line1.material.depthTest = !0, this.line1.material.dashed = this.paramsStyle.dashed), this.doms.forEach((a) => a.intersectCheck = !s), this.needsRender = !0;
|
|
169
169
|
}
|
|
170
170
|
highlight(e) {
|
|
171
|
-
var
|
|
171
|
+
var s, i;
|
|
172
172
|
if (this.highlighted = !0, e != null && e.color) {
|
|
173
173
|
const t = new y.Color(e.color);
|
|
174
|
-
this.colorBeforeHighlight = (
|
|
174
|
+
this.colorBeforeHighlight = (s = this.colorBeforeHighlight) != null ? s : this.line1.material.three_color, this.line1.material.three_color = t, this.line2.material.three_color = t;
|
|
175
175
|
} else {
|
|
176
176
|
this.opacityBeforeHighlight = (i = this.opacityBeforeHighlight) != null ? i : this.line1.material.opacity;
|
|
177
177
|
const t = this.opacityBeforeHighlight * O;
|
|
@@ -190,32 +190,33 @@ class re extends C {
|
|
|
190
190
|
return e();
|
|
191
191
|
if (!this.five)
|
|
192
192
|
return console.error("Five not found");
|
|
193
|
-
const
|
|
193
|
+
const s = this.points.map((i, t) => {
|
|
194
194
|
if (t !== 0)
|
|
195
195
|
return [this.points[t - 1], i];
|
|
196
196
|
}).filter(d).map((i) => L(this, i));
|
|
197
|
-
|
|
198
|
-
var
|
|
199
|
-
const m =
|
|
200
|
-
this.doms[h] = (
|
|
201
|
-
|
|
202
|
-
|
|
197
|
+
s.forEach(([i, t], h) => {
|
|
198
|
+
var a;
|
|
199
|
+
const m = x(i, t);
|
|
200
|
+
this.doms[h] = (a = this.doms[h]) != null ? a : (() => {
|
|
201
|
+
var _;
|
|
202
|
+
const n = new W(this.five), g = (_ = this.paramsStyle.occlusionVisibility) != null ? _ : !0;
|
|
203
|
+
return n.intersectCheck = !g, n.simulate3D = !0, n;
|
|
203
204
|
})(), this.doms[h].setPosition(m, [i, t]);
|
|
204
|
-
const
|
|
205
|
-
var
|
|
206
|
-
this.doms[h].__text !== n && (this.doms[h].__text = n, n instanceof HTMLElement ? (this.doms[h].container.innerHTML = "", this.doms[h].container.appendChild(n)) : n ? this.doms[h].container.innerHTML =
|
|
207
|
-
style: `color: #${d((
|
|
205
|
+
const c = (n) => {
|
|
206
|
+
var g;
|
|
207
|
+
this.doms[h].__text !== n && (this.doms[h].__text = n, n instanceof HTMLElement ? (this.doms[h].container.innerHTML = "", this.doms[h].container.appendChild(n)) : n ? this.doms[h].container.innerHTML = V(n, {
|
|
208
|
+
style: `color: #${d((g = this.style) == null ? void 0 : g.lineColor) ? new y.Color(this.style.lineColor).getHexString() : "ffffff"}`
|
|
208
209
|
}) : this.doms[h].container.innerHTML = "");
|
|
209
210
|
};
|
|
210
211
|
if (this.paramsStyle.tip)
|
|
211
|
-
|
|
212
|
+
c(this.paramsStyle.tip);
|
|
212
213
|
else {
|
|
213
|
-
const n =
|
|
214
|
-
|
|
214
|
+
const n = A(i.distanceTo(t), this.paramsStyle.lengthUnit);
|
|
215
|
+
c(n || null);
|
|
215
216
|
}
|
|
216
|
-
}), this.doms.length >
|
|
217
|
+
}), this.doms.length > s.length && (this.doms.slice(s.length).forEach((i) => i.destroy()), this.doms.length = s.length);
|
|
217
218
|
}
|
|
218
219
|
}
|
|
219
220
|
export {
|
|
220
|
-
|
|
221
|
+
ae as LineMesh
|
|
221
222
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var m = (
|
|
1
|
+
var g = Object.defineProperty, I = Object.defineProperties;
|
|
2
|
+
var D = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var y = Object.getOwnPropertySymbols;
|
|
4
|
+
var _ = Object.prototype.hasOwnProperty, H = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var m = (r, t, e) => t in r ? g(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, l = (r, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
}, f = (
|
|
13
|
-
var
|
|
14
|
-
import * as
|
|
15
|
-
import { generatePolygonGeometry as
|
|
16
|
-
import { anyPositionToVector3 as
|
|
7
|
+
_.call(t, e) && m(r, e, t[e]);
|
|
8
|
+
if (y)
|
|
9
|
+
for (var e of y(t))
|
|
10
|
+
H.call(t, e) && m(r, e, t[e]);
|
|
11
|
+
return r;
|
|
12
|
+
}, f = (r, t) => I(r, D(t));
|
|
13
|
+
var i = (r, t, e) => (m(r, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
|
+
import * as a from "three";
|
|
15
|
+
import { generatePolygonGeometry as S } from "../../shared-utils/three/generatePolygonGeometry.js";
|
|
16
|
+
import { anyPositionToVector3 as b } from "../../shared-utils/positionToVector3.js";
|
|
17
17
|
import { ColoredMesh as v } from "../utils/three/ColoredMesh.js";
|
|
18
|
-
import { getGeometryInfo as
|
|
19
|
-
import { LightTag as
|
|
18
|
+
import { getGeometryInfo as P } from "../../shared-utils/three/geometryUtil.js";
|
|
19
|
+
import { LightTag as k } from "../../shared-utils/tag.js";
|
|
20
20
|
import { getLengthHTML as w } from "../utils/Meshes/getLengthHTML.js";
|
|
21
21
|
import { localToWorld as A } from "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
22
22
|
import "../../vendor/hammerjs/hammer.js";
|
|
@@ -24,40 +24,40 @@ import "../../shared-utils/three/PointSelector/index.js";
|
|
|
24
24
|
import "../../shared-utils/three/CSS3DRenderer/index.js";
|
|
25
25
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
26
26
|
import "@realsee/five/line";
|
|
27
|
-
import { notNil as
|
|
27
|
+
import { notNil as U } from "../../shared-utils/isNil.js";
|
|
28
28
|
import "../../shared-utils/three/core/Five_LineMaterial2.js";
|
|
29
|
-
import { transformUnitSquare as
|
|
29
|
+
import { transformUnitSquare as M } from "../utils/unit.js";
|
|
30
30
|
import { RenderDom as h } from "../utils/renderDom.js";
|
|
31
31
|
import "../../shared-utils/three/core/Sphere.js";
|
|
32
32
|
import "../../vendor/animejs/lib/anime.es.js";
|
|
33
33
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
34
34
|
import "../../shared-utils/five/FivePuppet.js";
|
|
35
|
-
const p = new
|
|
35
|
+
const p = new a.BufferGeometry();
|
|
36
36
|
p.name = "blankGeometry";
|
|
37
37
|
p.isBlank = !0;
|
|
38
|
-
class
|
|
38
|
+
class Y extends v {
|
|
39
39
|
constructor(e) {
|
|
40
40
|
super(e);
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
41
|
+
i(this, "name", "PolygonMesh");
|
|
42
|
+
i(this, "points", []);
|
|
43
|
+
i(this, "planeHelperNeedUpdate", !0);
|
|
44
|
+
i(this, "geometryInfoNeedUpdate", !0);
|
|
45
|
+
i(this, "_paramsStyle");
|
|
46
|
+
i(this, "planeHelper", null);
|
|
47
|
+
i(this, "_geometryInfo", null);
|
|
48
|
+
i(this, "lastRenderAreaItem");
|
|
49
|
+
i(this, "areaDom");
|
|
50
|
+
i(this, "_onAdded", () => {
|
|
51
51
|
this.areaDom || this.updateAreaItems();
|
|
52
52
|
});
|
|
53
|
-
|
|
53
|
+
i(this, "_onRemoved", () => {
|
|
54
54
|
var e;
|
|
55
55
|
(e = this.areaDom) == null || e.destroy(), this.areaDom = void 0;
|
|
56
56
|
});
|
|
57
|
-
|
|
57
|
+
i(this, "_onShowed", () => {
|
|
58
58
|
this.areaDom && (this.areaDom.container.style.display = "block");
|
|
59
59
|
});
|
|
60
|
-
|
|
60
|
+
i(this, "_onHidden", () => {
|
|
61
61
|
this.areaDom && (this.areaDom.container.style.display = "none");
|
|
62
62
|
});
|
|
63
63
|
e != null && e.points && this.setPoints(e.points), this._paramsStyle = e != null ? e : {}, this.updateAreaItems(), this.addEventListener("removed", () => {
|
|
@@ -67,7 +67,7 @@ class Q extends v {
|
|
|
67
67
|
}), h.checkDomEveryFrame();
|
|
68
68
|
}
|
|
69
69
|
get normal() {
|
|
70
|
-
return this.points.length >= 3 ? new
|
|
70
|
+
return this.points.length >= 3 ? new a.Vector3().crossVectors(this.points[1].clone().sub(this.points[0]), this.points[2].clone().sub(this.points[0])).normalize() : new a.Vector3(0, 0, 1);
|
|
71
71
|
}
|
|
72
72
|
get style() {
|
|
73
73
|
return f(l({}, super.style), { lengthEnable: this._paramsStyle.lengthEnable });
|
|
@@ -80,55 +80,59 @@ class Q extends v {
|
|
|
80
80
|
return (e = this.geometryInfo) == null ? void 0 : e.center.clone();
|
|
81
81
|
}
|
|
82
82
|
get geometryInfo() {
|
|
83
|
-
return this.geometryInfoNeedUpdate && (this.isBlank ? this._geometryInfo = null : this._geometryInfo =
|
|
83
|
+
return this.geometryInfoNeedUpdate && (this.isBlank ? this._geometryInfo = null : this._geometryInfo = P(this.geometry), this.geometryInfoNeedUpdate = !1), this._geometryInfo;
|
|
84
84
|
}
|
|
85
85
|
get five() {
|
|
86
|
-
var e,
|
|
87
|
-
return (
|
|
86
|
+
var e, o;
|
|
87
|
+
return (o = (e = window.globalModules) == null ? void 0 : e.five) != null ? o : window.$five;
|
|
88
88
|
}
|
|
89
89
|
updateMatrixWorld(e) {
|
|
90
90
|
if (super.updateMatrixWorld(e), this.center) {
|
|
91
|
-
const
|
|
92
|
-
|
|
91
|
+
const o = A(this, this.center).toArray().join(",");
|
|
92
|
+
o !== this.lastRenderAreaItem && (this.updateAreaItems(), this.lastRenderAreaItem = o);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
setStyle(e) {
|
|
96
|
-
|
|
96
|
+
var s;
|
|
97
|
+
this._paramsStyle = l(l({}, this._paramsStyle), e), super.setStyle(this._paramsStyle);
|
|
98
|
+
const o = (s = this._paramsStyle.occlusionVisibility) != null ? s : !0;
|
|
99
|
+
this.areaDom && (this.areaDom.intersectCheck = !o), this.updateAreaItems();
|
|
97
100
|
}
|
|
98
101
|
setPoints(e) {
|
|
99
|
-
var
|
|
100
|
-
const
|
|
101
|
-
this.points =
|
|
102
|
+
var s;
|
|
103
|
+
const o = e.map(b);
|
|
104
|
+
this.points = o, this.geometry = (s = S(this.points, { checkLinesIntersect: !0 })) != null ? s : p, this.planeHelperNeedUpdate = !0, this.geometryInfoNeedUpdate = !0, this.updateAreaItems();
|
|
102
105
|
}
|
|
103
106
|
/**
|
|
104
107
|
* @description: 获取一个点投影在当前平面上的点
|
|
105
108
|
*/
|
|
106
109
|
projectPoint(e) {
|
|
107
|
-
return e && (this.planeHelperNeedUpdate && this.updatePlaneHelper(), this.planeHelper ? this.planeHelper.projectPoint(e, new
|
|
110
|
+
return e && (this.planeHelperNeedUpdate && this.updatePlaneHelper(), this.planeHelper ? this.planeHelper.projectPoint(e, new a.Vector3()) : e);
|
|
108
111
|
}
|
|
109
112
|
updatePlaneHelper() {
|
|
110
|
-
this.points.length >= 3 ? this.planeHelper = new
|
|
113
|
+
this.points.length >= 3 ? this.planeHelper = new a.Plane().setFromCoplanarPoints(this.points[0], this.points[1], this.points[2]) : this.planeHelper = null, this.planeHelperNeedUpdate = !1;
|
|
111
114
|
}
|
|
112
115
|
updateAreaItems() {
|
|
113
|
-
var
|
|
116
|
+
var s, c;
|
|
114
117
|
const e = () => {
|
|
115
|
-
var
|
|
116
|
-
(
|
|
118
|
+
var n;
|
|
119
|
+
(n = this.areaDom) == null || n.destroy(), this.areaDom = void 0;
|
|
117
120
|
};
|
|
118
121
|
if (!this._paramsStyle.lengthEnable || !this.geometryInfo)
|
|
119
122
|
return e();
|
|
120
123
|
if (!this.five)
|
|
121
124
|
return console.error("Five not found");
|
|
122
|
-
this.areaDom = (
|
|
123
|
-
|
|
124
|
-
|
|
125
|
+
this.areaDom = (s = this.areaDom) != null ? s : (() => {
|
|
126
|
+
var d;
|
|
127
|
+
const n = new k(this.five), u = (d = this._paramsStyle.occlusionVisibility) != null ? d : !0;
|
|
128
|
+
return n.intersectCheck = !u, n.simulate3D = !0, n;
|
|
125
129
|
})(), this.areaDom.setPosition(this.center);
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
style: `color: #${
|
|
130
|
+
const o = M(this.geometryInfo.area, this._paramsStyle.lengthUnit);
|
|
131
|
+
o ? this.areaDom.container.innerHTML = w(o, {
|
|
132
|
+
style: `color: #${U((c = this.style) == null ? void 0 : c.color) ? new a.Color(this.style.color).getHexString() : "000000"}`
|
|
129
133
|
}) : this.areaDom.container.innerHTML = "";
|
|
130
134
|
}
|
|
131
135
|
}
|
|
132
136
|
export {
|
|
133
|
-
|
|
137
|
+
Y as PolygonMesh
|
|
134
138
|
};
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -83,7 +83,9 @@ type Object3DWithEvent = THREE.Object3D & {
|
|
|
83
83
|
draggable?: boolean;
|
|
84
84
|
};
|
|
85
85
|
export declare class FiveDomEvents {
|
|
86
|
-
private
|
|
86
|
+
private _five;
|
|
87
|
+
get five(): Five;
|
|
88
|
+
set five(five: Five);
|
|
87
89
|
/**
|
|
88
90
|
* @description: 拖动中
|
|
89
91
|
*/
|
|
@@ -92,8 +94,6 @@ export declare class FiveDomEvents {
|
|
|
92
94
|
private boundObject;
|
|
93
95
|
private config;
|
|
94
96
|
private get model();
|
|
95
|
-
private lastMouseDownEvent;
|
|
96
|
-
private lastTouchEvent;
|
|
97
97
|
constructor(five: Five, config?: EventHandlerConfig);
|
|
98
98
|
/**
|
|
99
99
|
* @description: added 时自动绑定事件,removed时自动解绑事件,也就是说只有物体在场景中的时候才会触发事件
|
|
@@ -120,7 +120,6 @@ export declare class FiveDomEvents {
|
|
|
120
120
|
private handleDomEvent;
|
|
121
121
|
private handleMouseEvent;
|
|
122
122
|
private handleMousedown;
|
|
123
|
-
private setLastTouchEvent;
|
|
124
123
|
private handleMouseup;
|
|
125
124
|
private handleMousemove;
|
|
126
125
|
private onDomEvent;
|