@realsee/dnalogel 3.77.3-alpha.1 → 3.77.4-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +846 -837
- package/dist/GuideLinePlugin/Controller.d.ts +34 -2
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +7 -2
- package/dist/Sculpt/Meshes/Line.d.ts +0 -4
- package/dist/index.cjs.js +68 -68
- package/dist/index.js +4934 -4924
- package/dist/index.umd.js +61 -61
- package/docs/.nojekyll +1 -0
- package/docs/assets/custom.css +0 -0
- package/docs/assets/highlight.css +127 -0
- package/docs/assets/icons.js +18 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +60 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1493 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +59 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +71 -0
- package/docs/classes/CSS3DRender.html +100 -0
- package/docs/classes/GuideLineItem.GuideLineItem.html +21 -0
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +72 -0
- package/docs/classes/ModelMakerPluginInstance.html +116 -0
- package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +52 -0
- package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +52 -0
- package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +53 -0
- package/docs/classes/ModelRoomLabelController.html +19 -0
- package/docs/classes/MoveController.html +45 -0
- package/docs/classes/Object3DHelperController.html +45 -0
- package/docs/classes/PaintBrush.html +15 -0
- package/docs/classes/PanoMeasurePluginLine.html +24 -0
- package/docs/classes/PanoMeasurePluginModel.html +23 -0
- package/docs/classes/PanoMeasurePluginPoint.html +7 -0
- package/docs/classes/PanoMeasurePluginPolyline.html +27 -0
- package/docs/classes/PanoTagPluginController.html +111 -0
- package/docs/classes/Sculpt.html +77 -0
- package/docs/classes/Util.BetterTween.html +6 -0
- package/docs/classes/Util.FiveDomEvents.html +13 -0
- package/docs/classes/Util.FivePuppet.html +20 -0
- package/docs/classes/Util.Interval.html +11 -0
- package/docs/classes/Util.LegacyPointHelper.html +7 -0
- package/docs/classes/Util.LightTag.html +47 -0
- package/docs/classes/Util.LineSegments.html +4 -0
- package/docs/classes/Util.Magnifier.html +26 -0
- package/docs/classes/Util.Object3D.html +8 -0
- package/docs/classes/Util.PointDomHelper.html +8 -0
- package/docs/classes/Util.PointHelper.html +10 -0
- package/docs/classes/Util.PointSelector.html +66 -0
- package/docs/classes/Util.PointSelectorHelper.html +14 -0
- package/docs/classes/Util.Rectangle.html +12 -0
- package/docs/classes/Util.sculpt.BaseEditor.html +17 -0
- package/docs/classes/Util.sculpt.BoxMesh.html +48 -0
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +18 -0
- package/docs/classes/Util.sculpt.CircleMesh.html +26 -0
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +18 -0
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +26 -0
- package/docs/classes/Util.sculpt.CylinderMesh.html +25 -0
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +18 -0
- package/docs/classes/Util.sculpt.LineMesh.html +34 -0
- package/docs/classes/Util.sculpt.PointMesh.html +24 -0
- package/docs/classes/Util.sculpt.PolygonMesh.html +40 -0
- package/docs/classes/Util.sculpt.PrismMesh.html +48 -0
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +18 -0
- package/docs/classes/Util.sculpt.RectangleMesh.html +41 -0
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +18 -0
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +44 -0
- package/docs/classes/WalkController.html +42 -0
- package/docs/enums/CameraMovementEffect.html +4 -0
- package/docs/enums/ContentType.html +34 -0
- package/docs/enums/DIRECTION.html +5 -0
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +5 -0
- package/docs/enums/DimensionType.html +4 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -0
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +5 -0
- package/docs/enums/PaintBrushTypeEnum.html +4 -0
- package/docs/enums/PointType.html +4 -0
- package/docs/enums/Rotation.html +5 -0
- package/docs/functions/AreaMakerPlugin.html +1 -0
- package/docs/functions/CSS3DRenderPlugin.html +1 -0
- package/docs/functions/CameraMovementPlugin.html +2 -0
- package/docs/functions/CruisePlugin.html +1 -0
- package/docs/functions/CurrentPanoImagePlugin.html +1 -0
- package/docs/functions/FloorplanGuidePlugin.html +1 -0
- package/docs/functions/GuideLinePlugin.html +1 -0
- package/docs/functions/ItemLabelPlugin.html +1 -0
- package/docs/functions/MapviewFloorplanPlugin.html +1 -0
- package/docs/functions/MeasurePlugin.html +1 -0
- package/docs/functions/ModelChassisCompassPlugin.html +2 -0
- package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -0
- package/docs/functions/ModelFloorplanPlugin.html +1 -0
- package/docs/functions/ModelItemLabelPlugin.html +1 -0
- package/docs/functions/ModelMakerPlugin.html +1 -0
- package/docs/functions/ModelRoomLabelPlugin.html +1 -0
- package/docs/functions/ModelTVVideoPlugin.html +1 -0
- package/docs/functions/ModelViewPlugin.html +2 -0
- package/docs/functions/MovePlugin.html +1 -0
- package/docs/functions/Object3DHelperPlugin.html +1 -0
- package/docs/functions/PanoCompassPlugin.html +1 -0
- package/docs/functions/PanoCursorRaycasterPlugin.html +2 -0
- package/docs/functions/PanoDoorLabelPlugin.html +1 -0
- package/docs/functions/PanoFloorplanRadarPlugin.html +1 -0
- package/docs/functions/PanoMeasurePlugin.html +1 -0
- package/docs/functions/PanoRulerPlugin.html +2 -0
- package/docs/functions/PanoRulerProPlugin.html +2 -0
- package/docs/functions/PanoSpatialTagPlugin.html +2 -0
- package/docs/functions/PanoTagPlugin.html +1 -0
- package/docs/functions/PanoVideoPlugin.html +10 -0
- package/docs/functions/PipelinePlugin.html +1 -0
- package/docs/functions/SculptPlugin.html +2 -0
- package/docs/functions/SculptPluginForFive.html +2 -0
- package/docs/functions/TopviewFloorplanPlugin.html +1 -0
- package/docs/functions/Util.awaitNextFrame.html +1 -0
- package/docs/functions/Util.blink.html +13 -0
- package/docs/functions/Util.blinkWithPreset.html +6 -0
- package/docs/functions/Util.bounding.html +1 -0
- package/docs/functions/Util.boundingBox.html +1 -0
- package/docs/functions/Util.boundingSphere.html +1 -0
- package/docs/functions/Util.boxVertex.html +7 -0
- package/docs/functions/Util.boxVertexes.html +1 -0
- package/docs/functions/Util.checkFiveModelLoaded.html +2 -0
- package/docs/functions/Util.cleanup.html +3 -0
- package/docs/functions/Util.convexHull.html +2 -0
- package/docs/functions/Util.equal.html +5 -0
- package/docs/functions/Util.fiveModelIsLoaded.html +2 -0
- package/docs/functions/Util.generatePolygonGeometry.html +2 -0
- package/docs/functions/Util.getCoordsFromClient.html +1 -0
- package/docs/functions/Util.getCoordsFromElement.html +1 -0
- package/docs/functions/Util.getFrameTime.html +3 -0
- package/docs/functions/Util.getGeometryArea.html +1 -0
- package/docs/functions/Util.getGeometryInfo.html +1 -0
- package/docs/functions/Util.getIntersectFromRelativePosition.html +1 -0
- package/docs/functions/Util.getRaycasterFromFivePointer.html +1 -0
- package/docs/functions/Util.initialCSS3DRender.html +1 -0
- package/docs/functions/Util.inside.html +1 -0
- package/docs/functions/Util.isModelLike.html +1 -0
- package/docs/functions/Util.isNil.html +2 -0
- package/docs/functions/Util.isPanoramaLike.html +1 -0
- package/docs/functions/Util.lookObject.html +7 -0
- package/docs/functions/Util.lookPoint.html +5 -0
- package/docs/functions/Util.nextFrame.html +1 -0
- package/docs/functions/Util.notNil.html +2 -0
- package/docs/functions/Util.reblink.html +13 -0
- package/docs/functions/Util.replaceStaticPrefix.html +8 -0
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -0
- package/docs/functions/Util.sculpt.createBox.html +1 -0
- package/docs/functions/Util.sculpt.createCircle.html +1 -0
- package/docs/functions/Util.sculpt.createCylinder.html +1 -0
- package/docs/functions/Util.sculpt.createLine.html +2 -0
- package/docs/functions/Util.sculpt.createPoint.html +1 -0
- package/docs/functions/Util.sculpt.createPolygon.html +1 -0
- package/docs/functions/Util.sculpt.createPrism.html +1 -0
- package/docs/functions/Util.sculpt.createRectangle.html +2 -0
- package/docs/functions/Util.sculpt.transformUnit.html +1 -0
- package/docs/functions/Util.sculpt.transformUnitSquare.html +1 -0
- package/docs/functions/Util.tag.html +1 -0
- package/docs/functions/Util.triangleArea.html +2 -0
- package/docs/functions/Util.triangleCenter.html +2 -0
- package/docs/functions/Util.tweenProgress.html +1 -0
- package/docs/functions/Util.uuid.html +2 -0
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -0
- package/docs/functions/Util.worldBounding.html +1 -0
- package/docs/functions/Util.worldBoundingBox.html +1 -0
- package/docs/functions/Util.worldBoundingSphere.html +1 -0
- package/docs/functions/createPolyline.html +2 -0
- package/docs/functions/pluginFlag.html +1 -0
- package/docs/functions/validatePolygon.html +1 -0
- package/docs/hierarchy.html +1 -0
- package/docs/index.html +70 -0
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +4 -0
- package/docs/interfaces/AreaMakerPluginType.Config.html +8 -0
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +25 -0
- package/docs/interfaces/AreaMakerPluginType.Params.html +4 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +20 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +13 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +9 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -0
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -0
- package/docs/interfaces/AreaMakerPluginType.State.html +8 -0
- package/docs/interfaces/BoxAnimationConfig.html +6 -0
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +9 -0
- package/docs/interfaces/CSS3DRenderPluginState.html +7 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +11 -0
- package/docs/interfaces/ContentTypeMapInterface.html +73 -0
- package/docs/interfaces/CruisePluginTypes.Config.html +7 -0
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +8 -0
- package/docs/interfaces/CruisePluginTypes.EventMap.html +33 -0
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +6 -0
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +16 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +19 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +20 -0
- package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -0
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -0
- package/docs/interfaces/CruisePluginTypes.PluginState.html +15 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +13 -0
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +15 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +4 -0
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -0
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +7 -0
- package/docs/interfaces/FloorplanBounding.html +9 -0
- package/docs/interfaces/FloorplanData.html +7 -0
- package/docs/interfaces/FloorplanEntrance.html +14 -0
- package/docs/interfaces/FloorplanExtraObject.html +9 -0
- package/docs/interfaces/FloorplanExtraObject3D.html +5 -0
- package/docs/interfaces/FloorplanFloorData.html +9 -0
- package/docs/interfaces/FloorplanImagePosition.html +4 -0
- package/docs/interfaces/FloorplanObserver.html +8 -0
- package/docs/interfaces/FloorplanOutlineItem.html +6 -0
- package/docs/interfaces/FloorplanPosition.html +4 -0
- package/docs/interfaces/FloorplanRoomItem.html +24 -0
- package/docs/interfaces/FloorplanRoomLabelItem.html +6 -0
- package/docs/interfaces/FloorplanServerBounding.html +9 -0
- package/docs/interfaces/FloorplanServerComputedData.html +6 -0
- package/docs/interfaces/FloorplanServerData.html +4 -0
- package/docs/interfaces/FloorplanServerDoorItem.html +6 -0
- package/docs/interfaces/FloorplanServerDoorPosition.html +4 -0
- package/docs/interfaces/FloorplanServerEntrance.html +14 -0
- package/docs/interfaces/FloorplanServerFloorData.html +8 -0
- package/docs/interfaces/FloorplanServerImagePosition.html +4 -0
- package/docs/interfaces/FloorplanServerObserver.html +8 -0
- package/docs/interfaces/FloorplanServerOutlineItem.html +6 -0
- package/docs/interfaces/FloorplanServerPosition.html +4 -0
- package/docs/interfaces/FloorplanServerRoomItem.html +27 -0
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -0
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +4 -0
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +7 -0
- package/docs/interfaces/GuideLinePluginType.EventMap.html +13 -0
- package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +5 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +8 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +32 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +4 -0
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +5 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +42 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -0
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +57 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -0
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -0
- package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -0
- package/docs/interfaces/GuideLinePluginType.Route.html +13 -0
- package/docs/interfaces/HelperOffset.html +4 -0
- package/docs/interfaces/ImagePlaneGroup.html +3 -0
- package/docs/interfaces/ItemLabelPluginData.html +2 -0
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +7 -0
- package/docs/interfaces/ItemLabelPluginParametersType.html +5 -0
- package/docs/interfaces/MinMax.html +3 -0
- package/docs/interfaces/ModelChassisCompassPluginData.html +3 -0
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -0
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -0
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -0
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +7 -0
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -0
- package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +17 -0
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +18 -0
- package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +23 -0
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +11 -0
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +10 -0
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +3 -0
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +10 -0
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +10 -0
- package/docs/interfaces/ModelMakerPluginType.State.html +8 -0
- package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +11 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -0
- package/docs/interfaces/ModelTVVideoPluginData.html +5 -0
- package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -0
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -0
- package/docs/interfaces/ModelViewPluginExportType.html +8 -0
- package/docs/interfaces/Object3DHelperState.html +4 -0
- package/docs/interfaces/ObjectHelperControllers.html +5 -0
- package/docs/interfaces/PaintBrushAction.html +14 -0
- package/docs/interfaces/PaintBrushConfigs.html +8 -0
- package/docs/interfaces/PaintBrushState.html +6 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +16 -0
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -0
- package/docs/interfaces/PanoMeasureParameterType.html +20 -0
- package/docs/interfaces/PanoMeasurePluginLineJson.html +4 -0
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +4 -0
- package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -0
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +6 -0
- package/docs/interfaces/PanoRulerPluginOptions.html +3 -0
- package/docs/interfaces/PanoRulerPluginParameterType.html +4 -0
- package/docs/interfaces/PanoRulerProPluginExportType.html +5 -0
- package/docs/interfaces/PanoRulerProPluginOptions.html +3 -0
- package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -0
- package/docs/interfaces/PanoRulerProPluginState.html +4 -0
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +7 -0
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +6 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +9 -0
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +6 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +9 -0
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +7 -0
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +6 -0
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -0
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -0
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -0
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +15 -0
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -0
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +14 -0
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +13 -0
- package/docs/interfaces/PluginEventMap.html +16 -0
- package/docs/interfaces/Point.html +4 -0
- package/docs/interfaces/Room.html +5 -0
- package/docs/interfaces/RoomInfo.html +3 -0
- package/docs/interfaces/RoomLabel.html +16 -0
- package/docs/interfaces/RoomRules.html +1 -0
- package/docs/interfaces/Rooms.html +1 -0
- package/docs/interfaces/Scissor.html +13 -0
- package/docs/interfaces/SculptConfig.html +19 -0
- package/docs/interfaces/State.html +7 -0
- package/docs/interfaces/TagCacheInterface.html +9 -0
- package/docs/interfaces/TagConfig.html +174 -0
- package/docs/interfaces/TagGLTFObjectGroup.html +3 -0
- package/docs/interfaces/TagIconAnimationConfig.html +7 -0
- package/docs/interfaces/TagIconUrl.html +22 -0
- package/docs/interfaces/TagObjectGroup.html +3 -0
- package/docs/interfaces/TagState.html +3 -0
- package/docs/interfaces/TagStyle.html +5 -0
- package/docs/interfaces/Tags.html +8 -0
- package/docs/interfaces/TemporaryState.html +2 -0
- package/docs/interfaces/Util.AnimeInstance.html +14 -0
- package/docs/interfaces/Util.BlinkAnimeOptions.html +21 -0
- package/docs/interfaces/Util.EventHandlerConfig.html +21 -0
- package/docs/interfaces/Util.FiveDomEvent.html +7 -0
- package/docs/interfaces/Util.FiveDomEventMap.html +20 -0
- package/docs/interfaces/Util.LegacyMouseGroupParameter.html +4 -0
- package/docs/interfaces/Util.MagnifierParameter.html +13 -0
- package/docs/interfaces/Util.MouseGroupParameter.html +4 -0
- package/docs/interfaces/Util.ObjectInitialState.html +9 -0
- package/docs/interfaces/Util.PointIntersection.html +21 -0
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +6 -0
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +27 -0
- package/docs/modules/AreaMakerPluginType.html +17 -0
- package/docs/modules/CruisePluginTypes.html +14 -0
- package/docs/modules/CurrentPanoImagePluginType.html +6 -0
- package/docs/modules/GuideLineItem.html +2 -0
- package/docs/modules/GuideLineModeItem.html +3 -0
- package/docs/modules/GuideLinePluginType.html +25 -0
- package/docs/modules/ModelMakerPluginType.html +19 -0
- package/docs/modules/PanoVideoPluginType.html +8 -0
- package/docs/modules/SculptData.html +9 -0
- package/docs/modules/SculptType.html +2 -0
- package/docs/modules/Util.html +91 -0
- package/docs/modules/Util.sculpt.html +27 -0
- package/docs/modules.html +281 -0
- package/docs/types/AddObject3DHelperConfig.html +19 -0
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +7 -0
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -0
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -0
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -0
- package/docs/types/ArrayPosition.html +1 -0
- package/docs/types/AudioAppearance.html +1 -0
- package/docs/types/CSS3DRenderExportType.html +1 -0
- package/docs/types/CSS3DRenderPluginExportType.html +1 -0
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -0
- package/docs/types/ClassFunctionParameters.html +1 -0
- package/docs/types/Color.html +1 -0
- package/docs/types/ContentTypeConfigKey.html +1 -0
- package/docs/types/ContentTypeConfigKeySplit.html +1 -0
- package/docs/types/ContentTypeMap.html +1 -0
- package/docs/types/Create3DDomContainerReturnType.html +1 -0
- package/docs/types/Create3DElementReturnType.html +1 -0
- package/docs/types/CruisePluginExportType.html +1 -0
- package/docs/types/CruisePluginTypes.CruiseData.html +6 -0
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -0
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -0
- package/docs/types/DeprecatedMediaPlaneProperty.html +3 -0
- package/docs/types/DeprecatedTagProperty.html +3 -0
- package/docs/types/Direction-1.html +1 -0
- package/docs/types/Direction4.html +1 -0
- package/docs/types/ElementRenderer.html +2 -0
- package/docs/types/FloorplanGuidePluginParameterType.html +1 -0
- package/docs/types/FloorplanGuidePluginReturnType.html +1 -0
- package/docs/types/FloorplanRuleLabels.html +2 -0
- package/docs/types/FloorplanServerRuleLabels.html +1 -0
- package/docs/types/GuideLinePluginExportType.html +1 -0
- package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -0
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -0
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -0
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -0
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -0
- package/docs/types/GuideLinePluginType.PathItem.html +2 -0
- package/docs/types/GuideLinePluginType.PluginData.html +2 -0
- package/docs/types/GuideLinePluginType.RouteConfig.html +4 -0
- package/docs/types/HelperEventMap.html +1 -0
- package/docs/types/InternalHelperEventMap.html +1 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +1 -0
- package/docs/types/MapviewFloorplanPluginReturnType.html +1 -0
- package/docs/types/MeasureEndReason.html +1 -0
- package/docs/types/MeasurePluginConfig.html +5 -0
- package/docs/types/MeasurePluginEventMap.html +1 -0
- package/docs/types/MediaData.html +2 -0
- package/docs/types/MediaStore.html +1 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -0
- package/docs/types/ModelFloorplanPluginParameterType.html +1 -0
- package/docs/types/ModelFloorplanPluginReturnType.html +1 -0
- package/docs/types/ModelId.html +1 -0
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -0
- package/docs/types/ModelMakerPluginType.ItemType.html +2 -0
- package/docs/types/ModelMakerPluginType.MarkerItem.html +1 -0
- package/docs/types/ModelMakerPluginType.ServerItem.html +2 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +1 -0
- package/docs/types/ModelRoomLabelPluginReturnType.html +1 -0
- package/docs/types/MoveArgs.html +2 -0
- package/docs/types/MoveOpts.html +2 -0
- package/docs/types/Object3DHelperEventMap.html +1 -0
- package/docs/types/ObjectFit.html +1 -0
- package/docs/types/PaintBrushEventMap.html +1 -0
- package/docs/types/PanoCompassPluginData.html +1 -0
- package/docs/types/PanoCompassPluginExportType.html +1 -0
- package/docs/types/PanoCompassPluginParameterType.html +1 -0
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -0
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -0
- package/docs/types/PanoIndex.html +1 -0
- package/docs/types/PanoMeasurePluginEvent.html +1 -0
- package/docs/types/PanoMeasureReturnType.html +1 -0
- package/docs/types/PanoSpatialTagPluginId.html +1 -0
- package/docs/types/PanoTagPluginExportInterface.html +1 -0
- package/docs/types/PanoTagPluginParamsInterface.html +1 -0
- package/docs/types/PanoVideoPluginParameterType.html +1 -0
- package/docs/types/PanoVideoPluginReturnType.html +1 -0
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -0
- package/docs/types/PipelinePluginParameterType.html +1 -0
- package/docs/types/PipelinePluginReturnType.html +1 -0
- package/docs/types/PlaneTag.html +2 -0
- package/docs/types/Point2DTag.html +2 -0
- package/docs/types/Point3DTag.html +2 -0
- package/docs/types/PointTagInstance.html +1 -0
- package/docs/types/Position.html +1 -0
- package/docs/types/PositionFrom.html +1 -0
- package/docs/types/RotateArgs.html +2 -0
- package/docs/types/RotateOpts.html +2 -0
- package/docs/types/RuleLabelsKey.html +1 -0
- package/docs/types/RuleLabelsValue.html +1 -0
- package/docs/types/ScaleCallback.html +1 -0
- package/docs/types/ScalePosition.html +3 -0
- package/docs/types/SculptData.BoxData.html +1 -0
- package/docs/types/SculptData.CircleData.html +1 -0
- package/docs/types/SculptData.CylinderData.html +1 -0
- package/docs/types/SculptData.PointData.html +1 -0
- package/docs/types/SculptData.PolygonData.html +1 -0
- package/docs/types/SculptData.PolylineData.html +1 -0
- package/docs/types/SculptData.PrismData.html +1 -0
- package/docs/types/SculptData.RectangleData.html +1 -0
- package/docs/types/SculptType.Theme.html +10 -0
- package/docs/types/StickType.html +1 -0
- package/docs/types/Tag.html +17 -0
- package/docs/types/Tag2D.html +2 -0
- package/docs/types/Tag3D.html +2 -0
- package/docs/types/TagClickParams.html +1 -0
- package/docs/types/TagConfigByKey.html +1 -0
- package/docs/types/TagContentType.html +1 -0
- package/docs/types/TagContentTypeMapping.html +1 -0
- package/docs/types/TagDimensionType.html +1 -0
- package/docs/types/TagElement.html +2 -0
- package/docs/types/TagEvents.html +1 -0
- package/docs/types/TagGLTFObject.html +1 -0
- package/docs/types/TagHooks.html +1 -0
- package/docs/types/TagId.html +1 -0
- package/docs/types/TagInstance.html +1 -0
- package/docs/types/TagPlacement.html +5 -0
- package/docs/types/TagPointType.html +2 -0
- package/docs/types/TagRendererMap.html +1 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +1 -0
- package/docs/types/TopviewFloorplanPluginReturnType.html +1 -0
- package/docs/types/Util.ActionIfNoIntersection.html +1 -0
- package/docs/types/Util.AdherePoint.html +2 -0
- package/docs/types/Util.PointSelectorConfig.html +1 -0
- package/docs/types/Util.SupportedTarget.html +2 -0
- package/docs/types/Util.Target.html +2 -0
- package/docs/types/Util.ThreeObject.html +2 -0
- package/docs/types/WorkCode.html +1 -0
- package/docs/variables/FLOOR_TYPE_MAP.html +2 -0
- package/docs/variables/PLUGIN.html +1 -0
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -0
- package/docs/variables/ROOM_TYPE_MAP.html +2 -0
- package/docs/variables/Util.ANIME_PRESETS.html +2 -0
- package/docs/variables/Util.CURRENT_PANO_IMAGE_DEFAULT_IMAGE.html +2 -0
- package/docs/variables/Util.DEFAULT_ANIME_CONFIG.html +2 -0
- package/docs/variables/Util.DEFAULT_STATIC_PREFIX.html +2 -0
- package/docs/variables/Util.DNALOGEL_DEFAULT_ASSETS.html +2 -0
- package/docs/variables/Util.ENTRY_DOOR_DEFAULT_IMAGE.html +2 -0
- package/docs/variables/Util.FLOORPLAN_DEFAULT_IMAGE.html +2 -0
- package/docs/variables/Util.GUIDELINE_DEFAULT_ARROW_TEXTURE.html +2 -0
- package/docs/variables/Util.GUIDELINE_WHITE_ARROW_TEXTURE.html +2 -0
- package/docs/variables/Util.MODEL_CHASSIS_COMPASS_DEFAULT_MODEL.html +2 -0
- package/docs/variables/Util.MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL.html +2 -0
- package/docs/variables/Util.PANO_COMPASS_DEFAULT_IMAGE.html +2 -0
- package/docs/variables/Util.PANO_SPATIAL_TAG_BLUR_IMAGE.html +2 -0
- package/docs/variables/Util.PANO_TAG_DEFAULT_LINK_ICON.html +2 -0
- package/docs/variables/defaultGlobalConfig.html +1 -0
- package/docs/variables/itemLabelPluginServerParams.html +1 -0
- package/docs/variables/modelItemLabelPluginServerParams.html +1 -0
- package/docs/variables/modelRoomLabelPluginServerParams.html +1 -0
- package/libs/AreaMakerPlugin/Controller.js +2 -3
- package/libs/AreaMakerPlugin/index.js +2 -3
- package/libs/AreaMakerPlugin/utils/Item.js +2 -3
- package/libs/CSS3DRenderPlugin/Controller.js +2 -3
- package/libs/CSS3DRenderPlugin/index.js +5 -6
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +38 -39
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +9 -10
- package/libs/CruisePlugin/BaseController.js +4 -5
- package/libs/CruisePlugin/Move.js +2 -3
- package/libs/CruisePlugin/Work.js +2 -3
- package/libs/CruisePlugin/index.js +6 -7
- package/libs/CurrentPanoImagePlugin/Controller.js +14 -15
- package/libs/CurrentPanoImagePlugin/index.js +3 -4
- package/libs/GuideLinePlugin/Components/Tag.js +151 -163
- package/libs/GuideLinePlugin/Controller.d.ts +34 -2
- package/libs/GuideLinePlugin/Controller.js +60 -27
- package/libs/GuideLinePlugin/GuideLineItem.js +2 -3
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +76 -69
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +7 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +2 -3
- package/libs/GuideLinePlugin/index.js +6 -7
- package/libs/MeasurePlugin/Controller.js +10 -11
- package/libs/MeasurePlugin/index.js +4 -5
- package/libs/MeasurePlugin/utils/MeasureMesh.js +2 -3
- package/libs/ModelChassisCompassPlugin/Plugin.js +3 -4
- package/libs/ModelChassisCompassPlugin/index.js +0 -1
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +5 -6
- package/libs/ModelEntryDoorGuidePlugin/index.js +0 -1
- package/libs/ModelMakerPlugin/Controller.js +2 -3
- package/libs/ModelMakerPlugin/index.js +2 -3
- package/libs/ModelMakerPlugin/item/baseItem.js +2 -3
- package/libs/ModelMakerPlugin/item/boxItem.js +2 -3
- package/libs/ModelMakerPlugin/item/polygonItem.js +2 -3
- package/libs/ModelMakerPlugin/item/prismItem.js +2 -3
- package/libs/ModelTVVideoPlugin/Plugin.js +3 -4
- package/libs/ModelTVVideoPlugin/index.js +2 -3
- package/libs/ModelViewPlugin/Plugin.js +19 -20
- package/libs/ModelViewPlugin/index.js +0 -1
- package/libs/Object3DHelperPlugin/Controller.js +2 -3
- package/libs/Object3DHelperPlugin/index.js +5 -6
- package/libs/PanoCompassPlugin/Controller.js +2 -3
- package/libs/PanoCompassPlugin/index.js +3 -4
- package/libs/PanoDoorLabelPlugin/Controller.js +23 -24
- package/libs/PanoDoorLabelPlugin/index.js +3 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +2 -3
- package/libs/PanoMeasurePlugin/Components/Controller1.js +2 -3
- package/libs/PanoMeasurePlugin/Controller/EditController.js +2 -3
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +2 -3
- package/libs/PanoMeasurePlugin/Controller/index.js +2 -3
- package/libs/PanoMeasurePlugin/Model/area.js +2 -3
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +0 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +15 -16
- package/libs/PanoMeasurePlugin/index.js +13 -14
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +2 -3
- package/libs/PanoRulerProPlugin/Controller.js +2 -3
- package/libs/PanoRulerProPlugin/RulerItems.js +41 -42
- package/libs/PanoRulerProPlugin/index.js +3 -4
- package/libs/PanoSpatialTagPlugin/Plugin.js +33 -34
- package/libs/PanoSpatialTagPlugin/index.js +0 -1
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +2 -3
- package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +2 -3
- package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +2 -3
- package/libs/PanoTagPlugin/Components/Common/TagPopover/index.js +2 -3
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +2 -3
- package/libs/PanoTagPlugin/Components/Tag/index.js +2 -3
- package/libs/PanoTagPlugin/Components/TagContainer.js +2 -3
- package/libs/PanoTagPlugin/Components/TagItem.js +2 -3
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +2 -3
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +2 -3
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +2 -3
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +2 -3
- package/libs/PanoTagPlugin/controller/TagRender.js +2 -3
- package/libs/PanoTagPlugin/controller/TagUtil.js +2 -3
- package/libs/PanoTagPlugin/controller/index.js +5 -6
- package/libs/PanoTagPlugin/index.js +11 -12
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +2 -3
- package/libs/PanoTagPlugin/utils/tag/format.js +2 -3
- package/libs/PanoVideoPlugin/Controller.js +8 -9
- package/libs/PanoVideoPlugin/VideoMeshController.js +2 -3
- package/libs/PanoVideoPlugin/index.js +5 -6
- package/libs/PipelinePlugin/Controller.js +2 -3
- package/libs/PipelinePlugin/index.js +3 -4
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +2 -3
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +2 -3
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +0 -1
- package/libs/Sculpt/Meshes/Line.d.ts +0 -4
- package/libs/Sculpt/Meshes/Line.js +76 -85
- package/libs/Sculpt/Meshes/Point.js +28 -28
- package/libs/Sculpt/Meshes/Polygon.js +43 -43
- package/libs/Sculpt/index.js +1 -1
- package/libs/Sculpt/utils/Modules/Cursor.js +7 -7
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/FloorplanGuidePlugin/Controller.js +2 -3
- package/libs/floorplan/FloorplanGuidePlugin/index.js +3 -4
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +2 -3
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +3 -4
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +2 -3
- package/libs/floorplan/ModelFloorplanPlugin/index.js +3 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +2 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +3 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +2 -3
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +3 -4
- package/libs/index.js +150 -151
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/utils/PointHelper2.js +0 -1
- package/package.json +1 -1
- package/dist/shared-utils/five/getFiveFromParentChain.d.ts +0 -7
- package/libs/shared-utils/five/getFiveFromParentChain.d.ts +0 -7
- package/libs/shared-utils/five/getFiveFromParentChain.js +0 -15
|
@@ -1,35 +1,34 @@
|
|
|
1
1
|
var $ = Object.defineProperty, Y = Object.defineProperties;
|
|
2
2
|
var q = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var B = Object.getOwnPropertySymbols;
|
|
4
4
|
var J = Object.prototype.hasOwnProperty, K = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var L = (a, n, e) => n in a ? $(a, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[n] = e, g = (a, n) => {
|
|
6
6
|
for (var e in n || (n = {}))
|
|
7
|
-
J.call(n, e) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
K.call(n, e) &&
|
|
7
|
+
J.call(n, e) && L(a, e, n[e]);
|
|
8
|
+
if (B)
|
|
9
|
+
for (var e of B(n))
|
|
10
|
+
K.call(n, e) && L(a, e, n[e]);
|
|
11
11
|
return a;
|
|
12
|
-
},
|
|
13
|
-
var o = (a, n, e) => (
|
|
14
|
-
import * as
|
|
12
|
+
}, E = (a, n) => Y(a, q(n));
|
|
13
|
+
var o = (a, n, e) => (L(a, typeof n != "symbol" ? n + "" : n, e), e);
|
|
14
|
+
import * as v from "three";
|
|
15
15
|
import { DEFAULT_LINE_COLOR as Q, DEFAULT_LINE_WIDTH as X, DEFAULT_HIGHLIGHT_OPACITY as Z } from "../typings/style.js";
|
|
16
16
|
import { anyPositionToVector3 as ee } from "../../shared-utils/positionToVector3.js";
|
|
17
17
|
import { IObject3D as te } from "../../shared-utils/three/IObject3D.js";
|
|
18
18
|
import { LightTag as ie } 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 U } from "../../shared-utils/three/centerPoint.js";
|
|
22
22
|
import "../../shared-utils/three/CSS3DRenderer/index.js";
|
|
23
23
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
24
24
|
import { getLengthHTML as se } from "../utils/Meshes/getLengthHTML.js";
|
|
25
|
-
import { localToWorld as
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import { RenderDom as L } from "../utils/renderDom.js";
|
|
25
|
+
import { localToWorld as V } from "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
26
|
+
import { LineGeometry as H } from "../../shared-utils/three/core/LineGeometry.js";
|
|
27
|
+
import { LineMaterial as oe } from "../../shared-utils/three/core/LineMaterial.js";
|
|
28
|
+
import { THREE_Line2 as F } from "../../shared-utils/three/core/Line2.js";
|
|
29
|
+
import { LineMaterial2 as ne } from "../../shared-utils/three/core/LineMaterial2.js";
|
|
30
|
+
import { transformUnit as le } from "../utils/unit.js";
|
|
31
|
+
import { RenderDom as T } from "../utils/renderDom.js";
|
|
33
32
|
import "../../shared-utils/three/core/Sphere.js";
|
|
34
33
|
import "../../shared-utils/three/blink.js";
|
|
35
34
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -39,7 +38,7 @@ import { notNil as m } from "../../shared-utils/isNil.js";
|
|
|
39
38
|
import "../../shared-utils/five/FivePuppet.js";
|
|
40
39
|
class We extends te {
|
|
41
40
|
constructor(e) {
|
|
42
|
-
var
|
|
41
|
+
var h, l, f, d;
|
|
43
42
|
super();
|
|
44
43
|
o(this, "name", "LineMesh");
|
|
45
44
|
o(this, "type", "Line2");
|
|
@@ -55,8 +54,6 @@ class We extends te {
|
|
|
55
54
|
o(this, "paramsStyle", {});
|
|
56
55
|
o(this, "lastRenderDomItem");
|
|
57
56
|
o(this, "lastFOV");
|
|
58
|
-
o(this, "fiveListenersInited", !1);
|
|
59
|
-
o(this, "fiveRef");
|
|
60
57
|
o(this, "_onAdded", () => {
|
|
61
58
|
this.doms.length === 0 && this.paramsStyle.lengthEnable && this.updateDomItems();
|
|
62
59
|
});
|
|
@@ -78,22 +75,26 @@ class We extends te {
|
|
|
78
75
|
o(this, "onPanoArrived", () => {
|
|
79
76
|
setTimeout(() => this.updateDomItems({ force: !0 }), 100);
|
|
80
77
|
});
|
|
81
|
-
this.paramsStyle =
|
|
78
|
+
this.paramsStyle = g({ dashed: !1, lineOpacity: 1 }, e), this.geometry = new H();
|
|
82
79
|
const i = {
|
|
83
|
-
color: new
|
|
84
|
-
linewidth: (
|
|
80
|
+
color: new v.Color((h = e == null ? void 0 : e.lineColor) != null ? h : Q),
|
|
81
|
+
linewidth: (l = e == null ? void 0 : e.lineWidth) != null ? l : X,
|
|
85
82
|
dashScale: 1,
|
|
86
83
|
dashSize: 0.02,
|
|
87
84
|
gapSize: 0.02,
|
|
88
85
|
opacity: (f = e == null ? void 0 : e.lineOpacity) != null ? f : 1,
|
|
89
86
|
depthWrite: !1,
|
|
90
87
|
transparent: !0
|
|
91
|
-
}, s = new
|
|
92
|
-
this.line1 = new
|
|
93
|
-
this.
|
|
88
|
+
}, s = new oe(E(g({}, i), { dashed: !1, depthTest: !0 })), t = new ne(E(g({}, i), { dashed: !0, depthTest: !1 }));
|
|
89
|
+
if (this.line1 = new F(this.geometry, s), this.line2 = new F(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) {
|
|
90
|
+
const y = (d = this.five.renderer) == null ? void 0 : d.getSize(new v.Vector2());
|
|
91
|
+
y && this.setResolution(y.width, y.height), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("cameraFovUpdate", this.onCameraUpdate), this.five.on("panoArrived", this.onPanoArrived);
|
|
92
|
+
}
|
|
93
|
+
e && this.setStyle(e), e != null && e.points && this.setPoints(e.points), this.addEventListener("removed", () => {
|
|
94
|
+
this.five && (this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("cameraFovUpdate", this.onCameraUpdate), this.five.off("panoArrived", this.onPanoArrived)), T.cacheObject.delete(this), T.checkDom(this);
|
|
94
95
|
}), this.addEventListener("added", () => {
|
|
95
|
-
|
|
96
|
-
}),
|
|
96
|
+
T.cacheObject.add(this);
|
|
97
|
+
}), T.checkDomEveryFrame();
|
|
97
98
|
}
|
|
98
99
|
get style() {
|
|
99
100
|
return {
|
|
@@ -117,7 +118,7 @@ class We extends te {
|
|
|
117
118
|
}
|
|
118
119
|
get color() {
|
|
119
120
|
var e;
|
|
120
|
-
return new
|
|
121
|
+
return new v.Color((e = this.line1.material.three_color) != null ? e : this.paramsStyle.lineColor);
|
|
121
122
|
}
|
|
122
123
|
get dashed() {
|
|
123
124
|
return this.paramsStyle.dashed;
|
|
@@ -129,7 +130,9 @@ class We extends te {
|
|
|
129
130
|
return this.paramsStyle.occlusionMode;
|
|
130
131
|
}
|
|
131
132
|
get five() {
|
|
132
|
-
|
|
133
|
+
var i, s;
|
|
134
|
+
const e = (s = (i = window.globalModules) == null ? void 0 : i.five) != null ? s : window.$five;
|
|
135
|
+
return e || console.error("请先调用 Sculpt.modules.init(five) "), e;
|
|
133
136
|
}
|
|
134
137
|
set geometry(e) {
|
|
135
138
|
var i;
|
|
@@ -138,22 +141,10 @@ class We extends te {
|
|
|
138
141
|
get geometry() {
|
|
139
142
|
return this._geometry;
|
|
140
143
|
}
|
|
141
|
-
initFiveListeners() {
|
|
142
|
-
var s;
|
|
143
|
-
const e = this.five;
|
|
144
|
-
if (!e || this.fiveListenersInited)
|
|
145
|
-
return;
|
|
146
|
-
this.fiveListenersInited = !0, this.fiveRef = e;
|
|
147
|
-
const i = (s = e.renderer) == null ? void 0 : s.getSize(new u.Vector2());
|
|
148
|
-
i && this.setResolution(i.width, i.height), e.on("cameraUpdate", this.onCameraUpdate), e.on("cameraFovUpdate", this.onCameraUpdate), e.on("panoArrived", this.onPanoArrived);
|
|
149
|
-
}
|
|
150
|
-
removeFiveListeners() {
|
|
151
|
-
this.fiveRef && (this.fiveRef.off("cameraUpdate", this.onCameraUpdate), this.fiveRef.off("cameraFovUpdate", this.onCameraUpdate), this.fiveRef.off("panoArrived", this.onPanoArrived), this.fiveRef = void 0), this.fiveListenersInited = !1;
|
|
152
|
-
}
|
|
153
144
|
updateMatrixWorld(e) {
|
|
154
145
|
var i;
|
|
155
146
|
if (super.updateMatrixWorld(e), this.points) {
|
|
156
|
-
const s = (i =
|
|
147
|
+
const s = (i = V(this, this.points)) == null ? void 0 : i.map((t) => t.toArray().join(",")).join(",");
|
|
157
148
|
s !== this.lastRenderDomItem && (this.updateDomItems(), this.lastRenderDomItem = s);
|
|
158
149
|
}
|
|
159
150
|
}
|
|
@@ -162,14 +153,14 @@ class We extends te {
|
|
|
162
153
|
return;
|
|
163
154
|
const i = e.map(ee).filter(m);
|
|
164
155
|
if (this.points = i, i.length < 2) {
|
|
165
|
-
const t = new
|
|
156
|
+
const t = new H();
|
|
166
157
|
this.line1.geometry = t, this.line2.geometry = t, this.updateDomItems();
|
|
167
158
|
return;
|
|
168
159
|
}
|
|
169
160
|
const s = i.flatMap((t) => [t.x, t.y, t.z]);
|
|
170
161
|
if (s.length > 2) {
|
|
171
162
|
this.line1.geometry.dispose();
|
|
172
|
-
const t = new
|
|
163
|
+
const t = new H();
|
|
173
164
|
this.line1.geometry = t, this.line2.geometry = t;
|
|
174
165
|
}
|
|
175
166
|
this.line1.geometry.setPositions(s), this.line1.computeLineDistances(), this.updateDomItems(), this.needsRender = !0;
|
|
@@ -181,19 +172,19 @@ class We extends te {
|
|
|
181
172
|
(t.x !== e || t.y !== i) && (t.set(e, i), this.needsRender = !0);
|
|
182
173
|
}
|
|
183
174
|
setStyle(e) {
|
|
184
|
-
var t,
|
|
185
|
-
if (this.paramsStyle =
|
|
186
|
-
const d = new
|
|
175
|
+
var t, h, l, f;
|
|
176
|
+
if (this.paramsStyle = g(g({}, this.paramsStyle), e), m(e.lineColor)) {
|
|
177
|
+
const d = new v.Color(e.lineColor);
|
|
187
178
|
this.line1.material.three_color = d, this.line2.material.three_color = d;
|
|
188
179
|
}
|
|
189
180
|
m(e.lineWidth) && (this.line1.material.linewidth = e.lineWidth, this.line2.material.linewidth = e.lineWidth), m(e.dashed) && (this.line1.material.dashed = e.dashed), m(e.lineOpacity) && (this.line1.material.opacity = e.lineOpacity, this.line2.material.opacity = e.lineOpacity), this.updateDomItems({ force: !0 });
|
|
190
|
-
const i = (
|
|
181
|
+
const i = (h = (t = e.occlusionVisibility) != null ? t : this.paramsStyle.occlusionVisibility) != null ? h : !0, s = (f = (l = e.occlusionMode) != null ? l : this.paramsStyle.occlusionMode) != null ? f : "translucence";
|
|
191
182
|
i ? this.dashed ? (this.remove(this.line2), this.line1.material.dashed = !0, this.line1.material.depthTest = !1) : s === "depthTest" ? (this.remove(this.line2), this.line1.material.dashed = !1, this.line1.material.depthTest = !1) : s === "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((d) => d.intersectCheck = !i), this.needsRender = !0;
|
|
192
183
|
}
|
|
193
184
|
highlight(e) {
|
|
194
185
|
var i, s;
|
|
195
186
|
if (this.highlighted = !0, e != null && e.color) {
|
|
196
|
-
const t = new
|
|
187
|
+
const t = new v.Color(e.color);
|
|
197
188
|
this.colorBeforeHighlight = (i = this.colorBeforeHighlight) != null ? i : this.line1.material.three_color, this.line1.material.three_color = t, this.line2.material.three_color = t;
|
|
198
189
|
} else {
|
|
199
190
|
this.opacityBeforeHighlight = (s = this.opacityBeforeHighlight) != null ? s : this.line1.material.opacity;
|
|
@@ -213,56 +204,56 @@ class We extends te {
|
|
|
213
204
|
return i();
|
|
214
205
|
if (!this.five)
|
|
215
206
|
return console.error("Five not found");
|
|
216
|
-
const s = this.points.map((t,
|
|
217
|
-
s.forEach(([t,
|
|
218
|
-
var
|
|
219
|
-
const f =
|
|
220
|
-
this.doms[
|
|
221
|
-
var
|
|
222
|
-
const
|
|
223
|
-
return
|
|
224
|
-
})(), this.doms[
|
|
225
|
-
const d = (
|
|
226
|
-
var _,
|
|
227
|
-
const
|
|
228
|
-
if (!(this.doms[
|
|
229
|
-
if (this.doms[
|
|
230
|
-
this.doms[
|
|
231
|
-
else if (
|
|
232
|
-
const
|
|
207
|
+
const s = this.points.map((t, h) => h !== 0 ? [this.points[h - 1], t] : null).filter(m).map((t) => V(this, t));
|
|
208
|
+
s.forEach(([t, h], l) => {
|
|
209
|
+
var y;
|
|
210
|
+
const f = U(t, h);
|
|
211
|
+
this.doms[l] = (y = this.doms[l]) != null ? y : (() => {
|
|
212
|
+
var S;
|
|
213
|
+
const r = new ie(this.five), u = (S = this.paramsStyle.occlusionVisibility) != null ? S : !0;
|
|
214
|
+
return r.intersectCheck = !u, r.simulate3D = !0, r;
|
|
215
|
+
})(), this.doms[l].setPosition(f, [t, h]);
|
|
216
|
+
const d = (r, u) => {
|
|
217
|
+
var _, D, b;
|
|
218
|
+
const S = (_ = u == null ? void 0 : u.force) != null ? _ : !1;
|
|
219
|
+
if (!(this.doms[l].__text === r && !S))
|
|
220
|
+
if (this.doms[l].__text = r, r instanceof HTMLElement)
|
|
221
|
+
this.doms[l].container.innerHTML = "", this.doms[l].container.appendChild(r);
|
|
222
|
+
else if (r) {
|
|
223
|
+
const w = (() => {
|
|
233
224
|
if (!this.five || !this.five.camera)
|
|
234
225
|
return 0;
|
|
235
|
-
const
|
|
236
|
-
if (!
|
|
226
|
+
const p = this.five.getElement();
|
|
227
|
+
if (!p)
|
|
237
228
|
return 0;
|
|
238
|
-
const c =
|
|
229
|
+
const c = p.clientWidth, M = p.clientHeight, C = c / 2, I = M / 2, O = t.clone().project(this.five.camera), W = h.clone().project(this.five.camera), P = {
|
|
239
230
|
x: O.x * C,
|
|
240
|
-
y: O.y *
|
|
241
|
-
},
|
|
242
|
-
x:
|
|
243
|
-
y:
|
|
231
|
+
y: O.y * I
|
|
232
|
+
}, R = {
|
|
233
|
+
x: W.x * C,
|
|
234
|
+
y: W.y * I
|
|
244
235
|
};
|
|
245
|
-
return Math.sqrt(Math.pow(
|
|
246
|
-
})(), A = (() => !this.five || !this.five.camera ? 20 :
|
|
236
|
+
return Math.sqrt(Math.pow(R.x - P.x, 2) + Math.pow(R.y - P.y, 2));
|
|
237
|
+
})(), A = (() => !this.five || !this.five.camera ? 20 : U(t, h).distanceTo(this.five.camera.position))(), j = ((b = (D = this.five) == null ? void 0 : D.camera) == null ? void 0 : b.fov) || 60, z = 2 * Math.tan(0.5 * j / 180 * Math.PI), k = `--distance-scale: ${Math.max(Math.min(1 - z * A / 40, 1), 0)};`, G = (p) => {
|
|
247
238
|
const c = document.createElement("div");
|
|
248
|
-
c.classList.add("LineLengthTag"), c.style.visibility = "hidden", c.style.position = "absolute", c.style.padding = "2px 8px", c.style.fontFamily = "Arial-BoldMT", c.style.fontSize = "14px", c.innerText =
|
|
249
|
-
const
|
|
250
|
-
return document.body.removeChild(c),
|
|
239
|
+
c.classList.add("LineLengthTag"), c.style.visibility = "hidden", c.style.position = "absolute", c.style.padding = "2px 8px", c.style.fontFamily = "Arial-BoldMT", c.style.fontSize = "14px", c.innerText = p, document.body.appendChild(c);
|
|
240
|
+
const M = c.offsetWidth;
|
|
241
|
+
return document.body.removeChild(c), M;
|
|
251
242
|
};
|
|
252
243
|
let x = 0;
|
|
253
|
-
const N = G(
|
|
254
|
-
|
|
244
|
+
const N = G(r);
|
|
245
|
+
w > 0 && N > w && (x = -20), this.doms[l].container.innerHTML = se(r, {
|
|
255
246
|
style: `${k} ${this.paramsStyle.cssStyle || ""}`,
|
|
256
247
|
offsetY: x
|
|
257
248
|
});
|
|
258
249
|
} else
|
|
259
|
-
this.doms[
|
|
250
|
+
this.doms[l].container.innerHTML = "";
|
|
260
251
|
};
|
|
261
252
|
if (this.paramsStyle.tip)
|
|
262
253
|
d(this.paramsStyle.tip, e);
|
|
263
254
|
else {
|
|
264
|
-
const
|
|
265
|
-
d(
|
|
255
|
+
const r = le(t.distanceTo(h), this.paramsStyle.lengthUnit, this.paramsStyle.precision);
|
|
256
|
+
d(r || null, e);
|
|
266
257
|
}
|
|
267
258
|
}), this.doms.length > s.length && (this.doms.slice(s.length).forEach((t) => t.destroy()), this.doms.length = s.length);
|
|
268
259
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var E = Object.defineProperty, N = Object.defineProperties;
|
|
2
|
+
var P = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var A = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var f = (e, i, t) => i in e ?
|
|
4
|
+
var b = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var f = (e, i, t) => i in e ? E(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, a = (e, i) => {
|
|
6
6
|
for (var t in i || (i = {}))
|
|
7
|
-
|
|
7
|
+
b.call(i, t) && f(e, t, i[t]);
|
|
8
8
|
if (A)
|
|
9
9
|
for (var t of A(i))
|
|
10
|
-
|
|
10
|
+
v.call(i, t) && f(e, t, i[t]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, m = (e, i) => N(e, P(i));
|
|
13
13
|
var k = (e, i) => {
|
|
14
14
|
var t = {};
|
|
15
15
|
for (var o in e)
|
|
16
|
-
|
|
16
|
+
b.call(e, o) && i.indexOf(o) < 0 && (t[o] = e[o]);
|
|
17
17
|
if (e != null && A)
|
|
18
18
|
for (var o of A(e))
|
|
19
|
-
i.indexOf(o) < 0 &&
|
|
19
|
+
i.indexOf(o) < 0 && v.call(e, o) && (t[o] = e[o]);
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
22
22
|
var s = (e, i, t) => (f(e, typeof i != "symbol" ? i + "" : i, t), t);
|
|
@@ -29,9 +29,8 @@ import "../../vendor/hammerjs/hammer.js";
|
|
|
29
29
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
30
30
|
import "../../shared-utils/three/CSS3DRenderer/index.js";
|
|
31
31
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
32
|
-
import { getLengthHTML as
|
|
33
|
-
import { localToWorld as
|
|
34
|
-
import { getFiveFromParentChain as S } from "../../shared-utils/five/getFiveFromParentChain.js";
|
|
32
|
+
import { getLengthHTML as H } from "../utils/Meshes/getLengthHTML.js";
|
|
33
|
+
import { localToWorld as S } from "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
35
34
|
import "@realsee/five/line";
|
|
36
35
|
import { notNil as g } from "../../shared-utils/isNil.js";
|
|
37
36
|
import "../../shared-utils/three/core/Five_LineMaterial2.js";
|
|
@@ -44,9 +43,9 @@ import "../../vendor/earcut/src/earcut.js";
|
|
|
44
43
|
import "../../shared-utils/five/FivePuppet.js";
|
|
45
44
|
const x = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sHDgwCEMBJZu0AAAAdaVRYdENvbW1lbnQAAAAAAENyZWF0ZWQgd2l0aCBHSU1QZC5lBwAABM5JREFUWMO1V0tPG2cUPZ4Hxh6DazIOrjFNqJs0FIMqWFgWQkatsmvVbtggKlSVRVf5AWz4AWz4AUSKEChll19QJYSXkECuhFxsHjEhxCYm+DWGMZ5HF72DJq4bAzFXurI0M/I5997v3u9cC65vTJVn2lX/xHINQOYSBLTLEuIuCWw4Z3IGAEvf6ASmVHjNzHCXBG4A0AjACsAOwEbO0nsFQBnAGYASAIl+ZRMR7SolMEdsByD09fV5R0ZGgg8ePPjW5/N1iqLYpuu6RZblciKR2I9Go69evnwZnZ+fjwI4IS8AKBIRzeQfJWCANwKwh0KhtrGxsYehUOin1tbW+zzP23ietzY2NnIAoGmaLsuyUiqVyvl8XtrY2NiamZn589mzZxsAUgCOAeQAnFI2tI+VxIjaAeDzoaGh7xYWFuZOTk6OZVk+12uYqqq6JEnn0Wg0OT4+/geAXwGEAdwDIFJQXC1wO4DWR48e/RCPxxclSSroVzRFUbSDg4P848ePFwH8DuAhkWih83TRQWxFOXgAwvDwcOfo6OhvXV1d39tsNtuVBwTDWBwOh1UUxVsMw1hXVlbSdCgNV43uYSvrHg6H24aHh38eHBz85TrgF9FYLHA4HLzH43FvbW2d7u/vG+dANp8FpqIlbd3d3V8Fg8EfBUFw4BONZVmL3+9vHhkZCQL4AoAHgJPK8G+yzC0XDofdoVAo5PP5vkadTBAEtr+/39ff3x8gAp/RPOEqx2qjx+NpvXv3bk9DQ0NDvQgwDIOWlhZrMBj8kgi0UJdxRgYMArzL5XJ7vd57qLPZ7Xamp6fnNgBXtQxcjFuHw+Hyer3t9SYgCAITCAScAJoBNNEY/08GOFVVrfVMv7kMNDntFD1vjIAPrlRN0xjckOm6biFQ3jwNPwDMZrOnqVTqfb3Bi8Wivru7W/VCYkwPlKOjo0IikXh7EwQikYgE4Nw0CfXKDCipVCoTj8df3QABbW1tLUc6oUgkFPMkVACUNjc337148eKvw8PDbJ2jP1taWkoCyNDVXDSECmNSK4qiKNLq6urW8+fPI/UicHx8rD59+jSVy+WOAKSJhKENwFItLtoxk8mwsixzHR0dHe3t7c5PAU+n09rs7OzJkydPYqVSaQfANoDXALIk31S2smU1TWMPDg7K5XKZ7+3t9TudTut1U7+wsFCcmJiIpdPpbQBxADsAknQWymYCOukBHYCuKApisdhpMpnURFEU79y503TVyKenpzOTk5M7e3t7MQKPV0Zv1gNm+awB0MvlshqLxfLb29uyJElWURSbXC4XXyvqxcXFs6mpqeTc3Nzu3t7e3wQcA7BPZ8Cov1pNlJplmQtAG8MwHV6v95tAINA5MDBwPxAIuLu6upr8fr/VAN3c3JQjkcjZ+vp6fnl5+d2bN29SuVzuNYAEpf01CdRChUL+X1VskHACuA3Ay3Fcu9vt7nA6nZ7m5uYWQRCaNE3jVVW15PP580KhIGUymWw2m00DOAJwSP4WwPtq4LX2Ao6USxNlQyS/RcQcdLGwlNIz6vEMAaZpNzCk2Pll94LK/cDYimxERiBwG10sxjgvEZBE0UpE6vxj+0Ct5bTaXthgEhRmja8QWNkkPGsuIpfdjpkK+cZUWTC0KredVmtD/gdlSl6EG4AMvQAAAABJRU5ErkJggg==";
|
|
46
45
|
let C = null;
|
|
47
|
-
class
|
|
46
|
+
class st extends T {
|
|
48
47
|
constructor(t) {
|
|
49
|
-
var
|
|
48
|
+
var w, y, V;
|
|
50
49
|
super();
|
|
51
50
|
s(this, "name", "PointMesh");
|
|
52
51
|
s(this, "dom");
|
|
@@ -77,21 +76,21 @@ class nt extends T {
|
|
|
77
76
|
const M = {
|
|
78
77
|
transparent: !0,
|
|
79
78
|
side: n.DoubleSide,
|
|
80
|
-
size: (
|
|
79
|
+
size: (w = t == null ? void 0 : t.size) != null ? w : 8,
|
|
81
80
|
map: C || (C = new n.TextureLoader().load(x)),
|
|
82
81
|
sizeAttenuation: !1
|
|
83
|
-
},
|
|
84
|
-
color: (
|
|
82
|
+
}, l = new n.PointsMaterial(m(a({}, M), {
|
|
83
|
+
color: (y = t == null ? void 0 : t.color) != null ? y : 16777215,
|
|
85
84
|
depthTest: !0,
|
|
86
85
|
opacity: (V = t == null ? void 0 : t.opacity) != null ? V : 1
|
|
87
|
-
})), D = new n.PointsMaterial(a(
|
|
88
|
-
size:
|
|
89
|
-
color:
|
|
86
|
+
})), D = new n.PointsMaterial(m(a({}, M), {
|
|
87
|
+
size: l.size,
|
|
88
|
+
color: l.color,
|
|
90
89
|
depthWrite: !1,
|
|
91
90
|
depthTest: !1,
|
|
92
|
-
opacity:
|
|
93
|
-
})),
|
|
94
|
-
this.fontMesh =
|
|
91
|
+
opacity: l.opacity * 0.5
|
|
92
|
+
})), r = new n.Points(u, l), d = new n.Points(u, D);
|
|
93
|
+
this.fontMesh = r, this.backgroundMesh = d, r.name = "FontMesh", d.name = "BackgroundMesh", r.renderOrder = 10, d.renderOrder = 0, this.add(r, d), t != null && t.point && this.position.copy(W(t.point)), t && this.setStyle(t), this.addEventListener("removed", () => {
|
|
95
94
|
c.cacheObject.delete(this), c.checkDom(this);
|
|
96
95
|
}), this.addEventListener("added", () => {
|
|
97
96
|
c.cacheObject.add(this);
|
|
@@ -113,7 +112,8 @@ class nt extends T {
|
|
|
113
112
|
};
|
|
114
113
|
}
|
|
115
114
|
get five() {
|
|
116
|
-
|
|
115
|
+
var t, o;
|
|
116
|
+
return (o = (t = window.globalModules) == null ? void 0 : t.five) != null ? o : window.$five;
|
|
117
117
|
}
|
|
118
118
|
setStyle(t) {
|
|
119
119
|
g(t.color) && (this.fontMesh.material.setValues({ color: t.color }), this.backgroundMesh.material.setValues({ color: t.color })), g(t.size) && (this.fontMesh.material.setValues({ side: t.size }), this.backgroundMesh.material.setValues({ side: t.size })), g(t.occlusionVisibility) && (t.occlusionVisibility ? t.occlusionMode === "depthTest" ? (this.fontMesh.material.depthTest = !1, this.backgroundMesh.visible = !1) : (this.fontMesh.material.depthTest = !0, this.backgroundMesh.visible = !0) : (this.fontMesh.material.depthTest = !0, this.backgroundMesh.visible = !1));
|
|
@@ -126,14 +126,14 @@ class nt extends T {
|
|
|
126
126
|
}
|
|
127
127
|
updateMatrixWorld(t) {
|
|
128
128
|
super.updateMatrixWorld(t);
|
|
129
|
-
const o =
|
|
129
|
+
const o = S(this, this.position).toArray().join(",");
|
|
130
130
|
o !== this.lastRenderDomItem && (this.updateDom(), this.lastRenderDomItem = o);
|
|
131
131
|
}
|
|
132
132
|
updateDom() {
|
|
133
133
|
const t = this.paramsStyle.tip;
|
|
134
|
-
t && !this.dom &&
|
|
134
|
+
t && !this.dom && (this.dom = new B(this.five), this.dom.intersectCheck = !1, this.dom.simulate3D = !0, this.dom.container.style.display = this.visible ? "block" : "none");
|
|
135
135
|
const o = (h) => {
|
|
136
|
-
this.dom && this.dom.__text !== h && (this.dom.__text = h, h instanceof HTMLElement ? (this.dom.container.innerHTML = "", this.dom.container.appendChild(h)) : h ? this.dom.container.innerHTML =
|
|
136
|
+
this.dom && this.dom.__text !== h && (this.dom.__text = h, h instanceof HTMLElement ? (this.dom.container.innerHTML = "", this.dom.container.appendChild(h)) : h ? this.dom.container.innerHTML = H(h, {
|
|
137
137
|
style: "",
|
|
138
138
|
offsetY: -20
|
|
139
139
|
// 移动label到点的上方,否则会遮挡鼠标选点
|
|
@@ -143,5 +143,5 @@ class nt extends T {
|
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
export {
|
|
146
|
-
|
|
146
|
+
st as PointMesh
|
|
147
147
|
};
|
|
@@ -2,52 +2,51 @@ var f = Object.defineProperty, g = Object.defineProperties;
|
|
|
2
2
|
var I = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var u = Object.getOwnPropertySymbols;
|
|
4
4
|
var D = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var p = (
|
|
5
|
+
var p = (s, t, e) => t in s ? f(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, h = (s, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
|
-
D.call(t, e) && p(
|
|
7
|
+
D.call(t, e) && p(s, e, t[e]);
|
|
8
8
|
if (u)
|
|
9
9
|
for (var e of u(t))
|
|
10
|
-
_.call(t, e) && p(
|
|
11
|
-
return
|
|
12
|
-
}, y = (
|
|
13
|
-
var
|
|
10
|
+
_.call(t, e) && p(s, e, t[e]);
|
|
11
|
+
return s;
|
|
12
|
+
}, y = (s, t) => g(s, I(t));
|
|
13
|
+
var i = (s, t, e) => (p(s, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
14
|
import * as a from "three";
|
|
15
|
-
import { generatePolygonGeometry as
|
|
16
|
-
import { anyPositionToVector3 as
|
|
15
|
+
import { generatePolygonGeometry as b } from "../../shared-utils/three/generatePolygonGeometry.js";
|
|
16
|
+
import { anyPositionToVector3 as H } from "../../shared-utils/positionToVector3.js";
|
|
17
17
|
import { ColoredMesh as S } from "../utils/three/ColoredMesh.js";
|
|
18
18
|
import { getGeometryInfo as k } from "../../shared-utils/three/geometryUtil.js";
|
|
19
|
-
import { LightTag as
|
|
20
|
-
import { getLengthHTML as
|
|
21
|
-
import { localToWorld as
|
|
22
|
-
import {
|
|
23
|
-
import { transformUnitSquare as U } from "../utils/unit.js";
|
|
19
|
+
import { LightTag as v } from "../../shared-utils/tag.js";
|
|
20
|
+
import { getLengthHTML as P } from "../utils/Meshes/getLengthHTML.js";
|
|
21
|
+
import { localToWorld as A } from "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
22
|
+
import { transformUnitSquare as w } from "../utils/unit.js";
|
|
24
23
|
import { RenderDom as m } from "../utils/renderDom.js";
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
class
|
|
24
|
+
const d = new a.BufferGeometry();
|
|
25
|
+
d.name = "blankGeometry";
|
|
26
|
+
d.isBlank = !0;
|
|
27
|
+
class j extends S {
|
|
29
28
|
constructor(e) {
|
|
30
29
|
super(e);
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
30
|
+
i(this, "name", "PolygonMesh");
|
|
31
|
+
i(this, "points", []);
|
|
32
|
+
i(this, "planeHelperNeedUpdate", !0);
|
|
33
|
+
i(this, "geometryInfoNeedUpdate", !0);
|
|
34
|
+
i(this, "_paramsStyle");
|
|
35
|
+
i(this, "areaDom");
|
|
36
|
+
i(this, "planeHelper", null);
|
|
37
|
+
i(this, "_geometryInfo", null);
|
|
38
|
+
i(this, "lastRenderAreaItem");
|
|
39
|
+
i(this, "_onAdded", () => {
|
|
41
40
|
this.areaDom || this.updateAreaItems();
|
|
42
41
|
});
|
|
43
|
-
|
|
42
|
+
i(this, "_onRemoved", () => {
|
|
44
43
|
var e;
|
|
45
44
|
(e = this.areaDom) == null || e.destroy(), this.areaDom = void 0;
|
|
46
45
|
});
|
|
47
|
-
|
|
46
|
+
i(this, "_onShowed", () => {
|
|
48
47
|
this.areaDom && (this.areaDom.container.style.display = "block");
|
|
49
48
|
});
|
|
50
|
-
|
|
49
|
+
i(this, "_onHidden", () => {
|
|
51
50
|
this.areaDom && (this.areaDom.container.style.display = "none");
|
|
52
51
|
});
|
|
53
52
|
e != null && e.points && this.setPoints(e.points), this._paramsStyle = e != null ? e : {}, this.updateAreaItems(), this.addEventListener("removed", () => {
|
|
@@ -73,24 +72,25 @@ class G extends S {
|
|
|
73
72
|
return this.geometryInfoNeedUpdate && (this.isBlank ? this._geometryInfo = null : this._geometryInfo = k(this.geometry), this.geometryInfoNeedUpdate = !1), this._geometryInfo;
|
|
74
73
|
}
|
|
75
74
|
get five() {
|
|
76
|
-
|
|
75
|
+
var e, r;
|
|
76
|
+
return (r = (e = window.globalModules) == null ? void 0 : e.five) != null ? r : window.$five;
|
|
77
77
|
}
|
|
78
78
|
updateMatrixWorld(e) {
|
|
79
79
|
if (super.updateMatrixWorld(e), this.center) {
|
|
80
|
-
const
|
|
81
|
-
|
|
80
|
+
const r = A(this, this.center).toArray().join(",");
|
|
81
|
+
r !== this.lastRenderAreaItem && (this.updateAreaItems(), this.lastRenderAreaItem = r);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
setStyle(e) {
|
|
85
85
|
var n;
|
|
86
86
|
this._paramsStyle = h(h({}, this._paramsStyle), e), super.setStyle(this._paramsStyle);
|
|
87
|
-
const
|
|
88
|
-
this.areaDom && (this.areaDom.intersectCheck = !
|
|
87
|
+
const r = (n = this._paramsStyle.occlusionVisibility) != null ? n : !0;
|
|
88
|
+
this.areaDom && (this.areaDom.intersectCheck = !r), this.updateAreaItems();
|
|
89
89
|
}
|
|
90
|
-
setPoints(e,
|
|
90
|
+
setPoints(e, r) {
|
|
91
91
|
var o, l;
|
|
92
|
-
const n = e.map(
|
|
93
|
-
this.points = n, this.geometry = (l =
|
|
92
|
+
const n = e.map(H);
|
|
93
|
+
this.points = n, this.geometry = (l = b(this.points, { checkLinesIntersect: (o = r == null ? void 0 : r.checkLinesIntersect) != null ? o : !0 })) != null ? l : d, this.planeHelperNeedUpdate = !0, this.geometryInfoNeedUpdate = !0, this.updateAreaItems();
|
|
94
94
|
}
|
|
95
95
|
/**
|
|
96
96
|
* @description: 获取一个点投影在当前平面上的点
|
|
@@ -112,16 +112,16 @@ class G extends S {
|
|
|
112
112
|
if (!this.five)
|
|
113
113
|
return console.error("Five not found");
|
|
114
114
|
this.areaDom = (n = this.areaDom) != null ? n : (() => {
|
|
115
|
-
var
|
|
116
|
-
const o = new
|
|
115
|
+
var c;
|
|
116
|
+
const o = new v(this.five), l = (c = this._paramsStyle.occlusionVisibility) != null ? c : !0;
|
|
117
117
|
return o.intersectCheck = !l, o.simulate3D = !0, o;
|
|
118
118
|
})(), this.areaDom.setPosition(this.center);
|
|
119
|
-
const
|
|
120
|
-
|
|
119
|
+
const r = w(this.geometryInfo.area, this._paramsStyle.lengthUnit);
|
|
120
|
+
r ? this.areaDom.container.innerHTML = P(r, {
|
|
121
121
|
style: "color: #FFFFFF; background: #3366FF"
|
|
122
122
|
}) : this.areaDom.container.innerHTML = "";
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
export {
|
|
126
|
-
|
|
126
|
+
j as PolygonMesh
|
|
127
127
|
};
|
package/libs/Sculpt/index.js
CHANGED
|
@@ -90,7 +90,7 @@ const d = class extends E {
|
|
|
90
90
|
});
|
|
91
91
|
this.five = e, this.theme = t, this.config = g({
|
|
92
92
|
magnifier: { width: 190, height: 190, scale: 2, dragEnabled: !0 }
|
|
93
|
-
}, i), this.group = new z(), this.group.name = "Sculpt", this.group.__sculpt__ = this,
|
|
93
|
+
}, i), this.group = new z(), this.group.name = "Sculpt", this.group.__sculpt__ = this, e.scene.add(this.group), d.modules.init(e, this.config), x("ctrl+z, command+z", this.undo), x("ctrl+shift+z, command+shift+z", this.redo), d.modules.fiveDomEvents.addEventListener(this.group, "click", ({ intersects: c, origDomEvent: s }) => {
|
|
94
94
|
var o;
|
|
95
95
|
const r = F((o = c == null ? void 0 : c[0]) == null ? void 0 : o.object, (h) => h.isSculptObject);
|
|
96
96
|
return r && !r.editing ? this.emit("click", s, r) : !1;
|
|
@@ -2,8 +2,8 @@ var l = Object.defineProperty;
|
|
|
2
2
|
var u = (n, e, o) => e in n ? l(n, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : n[e] = o;
|
|
3
3
|
var r = (n, e, o) => (u(n, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import { DeleteButtonBgBorder as a } from "./DeleteButtonBgBorder.js";
|
|
5
|
-
import { DeleteIconSVG as
|
|
6
|
-
const
|
|
5
|
+
import { DeleteIconSVG as p } from "./DeleteIconSVG.js";
|
|
6
|
+
const d = {
|
|
7
7
|
auto: "",
|
|
8
8
|
pen: "",
|
|
9
9
|
"pen-forbidden": "",
|
|
@@ -13,7 +13,7 @@ const p = {
|
|
|
13
13
|
"crosshair-rectangle": "",
|
|
14
14
|
"crosshair-circle": ""
|
|
15
15
|
}, h = {
|
|
16
|
-
position: "
|
|
16
|
+
position: "absolute",
|
|
17
17
|
width: "34px",
|
|
18
18
|
height: "34px",
|
|
19
19
|
transform: "translate(-50%, -40px)",
|
|
@@ -30,10 +30,10 @@ const p = {
|
|
|
30
30
|
backgroundRepeat: "no-repeat"
|
|
31
31
|
}, m = `
|
|
32
32
|
<div style="width: 32px; height: 32px; background-color: rgba(0, 0, 0, 0.5); border-radius: 50%; display: flex; align-items: center; justify-content: center;">
|
|
33
|
-
${
|
|
33
|
+
${p}
|
|
34
34
|
</div>
|
|
35
35
|
`;
|
|
36
|
-
class
|
|
36
|
+
class B {
|
|
37
37
|
constructor(e) {
|
|
38
38
|
r(this, "container");
|
|
39
39
|
r(this, "deleteButton");
|
|
@@ -43,7 +43,7 @@ class f {
|
|
|
43
43
|
* @param type - The type of the cursor.
|
|
44
44
|
*/
|
|
45
45
|
setType(e) {
|
|
46
|
-
const o =
|
|
46
|
+
const o = d[e];
|
|
47
47
|
o ? this.container.style.cursor = `url(${o}), auto` : this.container.style.cursor = e;
|
|
48
48
|
}
|
|
49
49
|
showDeleteButton(e) {
|
|
@@ -66,5 +66,5 @@ class f {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
export {
|
|
69
|
-
|
|
69
|
+
B as Cursor
|
|
70
70
|
};
|