@realsee/dnalogel 3.64.22 → 3.64.23-alpha.16
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 +7 -0
- package/dist/ModelMakerPlugin/Controller.d.ts +38 -1
- package/dist/ModelMakerPlugin/item/baseItem.d.ts +5 -0
- package/dist/ModelMakerPlugin/item/boxItem.d.ts +5 -1
- package/dist/ModelMakerPlugin/typings/data.d.ts +2 -0
- package/dist/ModelMakerPlugin/utils/BoxLabelItem.svelte.d.ts +1 -0
- package/dist/Sculpt/Meshes/Prism.d.ts +6 -1
- package/dist/floorplan/typings/floorplanData.d.ts +49 -0
- package/dist/floorplan/typings/floorplanServerData.d.ts +2 -0
- package/dist/index.cjs.js +115 -53
- package/dist/index.js +7674 -7147
- package/dist/index.umd.js +111 -49
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +25 -25
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +28 -28
- package/docs/classes/CSS3DRender.html +3 -3
- package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +26 -26
- package/docs/classes/ModelMakerPluginInstance.html +30 -15
- package/docs/classes/ModelRoomLabelController.html +6 -6
- package/docs/classes/MoveController.html +17 -17
- package/docs/classes/Object3DHelperController.html +15 -15
- package/docs/classes/PaintBrush.html +5 -5
- package/docs/classes/PanoMeasurePluginLine.html +2 -2
- package/docs/classes/PanoMeasurePluginModel.html +2 -2
- package/docs/classes/PanoMeasurePluginPoint.html +2 -2
- package/docs/classes/PanoMeasurePluginPolyline.html +4 -4
- package/docs/classes/PanoTagPluginController.html +34 -34
- package/docs/classes/Sculpt.html +23 -23
- package/docs/classes/Util.BetterTween.html +2 -2
- package/docs/classes/Util.FiveDomEvents.html +4 -4
- package/docs/classes/Util.FivePuppet.html +3 -3
- package/docs/classes/Util.Interval.html +5 -5
- package/docs/classes/Util.LightTag.html +15 -15
- package/docs/classes/Util.LineSegments.html +2 -2
- package/docs/classes/Util.Magnifier.html +6 -6
- package/docs/classes/Util.Object3D.html +4 -4
- package/docs/classes/Util.PointHelper.html +2 -2
- package/docs/classes/Util.PointSelector.html +16 -16
- package/docs/classes/Util.PointSelectorHelper.html +2 -2
- package/docs/classes/Util.Rectangle.html +5 -5
- package/docs/classes/Util.sculpt.BaseEditor.html +7 -7
- package/docs/classes/Util.sculpt.BoxMesh.html +10 -7
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.CircleMesh.html +4 -4
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +4 -4
- package/docs/classes/Util.sculpt.CylinderMesh.html +5 -5
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.LineMesh.html +5 -5
- package/docs/classes/Util.sculpt.PointMesh.html +5 -5
- package/docs/classes/Util.sculpt.PolygonMesh.html +6 -6
- package/docs/classes/Util.sculpt.PrismMesh.html +10 -7
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.RectangleMesh.html +7 -7
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +7 -7
- package/docs/classes/WalkController.html +18 -18
- package/docs/enums/CameraMovementEffect.html +3 -3
- package/docs/enums/ContentType.html +18 -18
- package/docs/enums/DIRECTION.html +2 -2
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/DimensionType.html +3 -3
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/PaintBrushTypeEnum.html +2 -2
- package/docs/enums/PointType.html +3 -3
- package/docs/enums/Rotation.html +3 -3
- package/docs/functions/AreaMakerPlugin.html +1 -1
- package/docs/functions/CSS3DRenderPlugin.html +1 -1
- package/docs/functions/CameraMovementPlugin.html +2 -2
- package/docs/functions/CruisePlugin.html +1 -1
- package/docs/functions/CurrentPanoImagePlugin.html +1 -1
- package/docs/functions/GuideLinePlugin.html +1 -1
- package/docs/functions/ItemLabelPlugin.html +1 -1
- package/docs/functions/MapviewFloorplanPlugin.html +1 -1
- package/docs/functions/MeasurePlugin.html +1 -1
- package/docs/functions/ModelChassisCompassPlugin.html +2 -2
- package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
- package/docs/functions/ModelFloorplanPlugin.html +1 -1
- package/docs/functions/ModelItemLabelPlugin.html +1 -1
- package/docs/functions/ModelMakerPlugin.html +1 -1
- package/docs/functions/ModelRoomLabelPlugin.html +1 -1
- package/docs/functions/ModelTVVideoPlugin.html +1 -1
- package/docs/functions/ModelViewPlugin.html +2 -2
- package/docs/functions/MovePlugin.html +1 -1
- package/docs/functions/Object3DHelperPlugin.html +1 -1
- package/docs/functions/PanoCompassPlugin.html +1 -1
- package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
- package/docs/functions/PanoDoorLabelPlugin.html +1 -1
- package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
- package/docs/functions/PanoMeasurePlugin.html +1 -1
- package/docs/functions/PanoRulerPlugin.html +2 -2
- package/docs/functions/PanoRulerProPlugin.html +2 -2
- package/docs/functions/PanoSpatialTagPlugin.html +2 -2
- package/docs/functions/PanoTagPlugin.html +1 -1
- package/docs/functions/PanoVideoPlugin.html +2 -2
- package/docs/functions/PipelinePlugin.html +1 -1
- package/docs/functions/SculptPlugin.html +2 -2
- package/docs/functions/TopviewFloorplanPlugin.html +1 -1
- package/docs/functions/Util.absoluteUrl.html +2 -2
- package/docs/functions/Util.awaitNextFrame.html +1 -1
- package/docs/functions/Util.blink.html +2 -2
- package/docs/functions/Util.bounding.html +1 -1
- package/docs/functions/Util.boundingBox.html +1 -1
- package/docs/functions/Util.boundingSphere.html +1 -1
- package/docs/functions/Util.boxVertex.html +2 -2
- package/docs/functions/Util.boxVertexes.html +1 -1
- package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
- package/docs/functions/Util.convexHull.html +2 -2
- package/docs/functions/Util.equal.html +2 -2
- package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
- package/docs/functions/Util.getCoordsFromClient.html +1 -1
- package/docs/functions/Util.getCoordsFromElement.html +1 -1
- package/docs/functions/Util.getFrameTime.html +2 -2
- package/docs/functions/Util.initialCSS3DRender.html +1 -1
- package/docs/functions/Util.inside.html +1 -1
- package/docs/functions/Util.isAbsoluteURL.html +1 -1
- package/docs/functions/Util.isModelLike.html +1 -1
- package/docs/functions/Util.isNil.html +2 -2
- package/docs/functions/Util.isPanoramaLike.html +1 -1
- package/docs/functions/Util.lookObject.html +2 -2
- package/docs/functions/Util.lookPoint.html +2 -2
- package/docs/functions/Util.nextFrame.html +1 -1
- package/docs/functions/Util.notNil.html +2 -2
- package/docs/functions/Util.reblink.html +2 -2
- package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
- package/docs/functions/Util.sculpt.createBox.html +1 -1
- package/docs/functions/Util.sculpt.createCircle.html +1 -1
- package/docs/functions/Util.sculpt.createCylinder.html +1 -1
- package/docs/functions/Util.sculpt.createLine.html +2 -2
- package/docs/functions/Util.sculpt.createPoint.html +1 -1
- package/docs/functions/Util.sculpt.createPolygon.html +1 -1
- package/docs/functions/Util.sculpt.createPrism.html +1 -1
- package/docs/functions/Util.sculpt.createRectangle.html +2 -2
- package/docs/functions/Util.tag.html +1 -1
- package/docs/functions/Util.tweenProgress.html +1 -1
- package/docs/functions/Util.uuid.html +2 -2
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
- package/docs/functions/Util.worldBounding.html +1 -1
- package/docs/functions/Util.worldBoundingBox.html +1 -1
- package/docs/functions/Util.worldBoundingSphere.html +1 -1
- package/docs/functions/createPolyline.html +2 -2
- package/docs/functions/pluginFlag.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +12 -12
- package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +4 -4
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.State.html +5 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
- package/docs/interfaces/ContentTypeMapInterface.html +15 -15
- package/docs/interfaces/CruisePluginTypes.Config.html +4 -4
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
- package/docs/interfaces/CruisePluginTypes.EventMap.html +17 -17
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +8 -8
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +9 -9
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +10 -10
- package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +7 -7
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +7 -7
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +8 -8
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +4 -4
- package/docs/interfaces/FloorplanBounding.html +5 -5
- package/docs/interfaces/FloorplanData.html +4 -3
- package/docs/interfaces/FloorplanEntrance.html +8 -8
- package/docs/interfaces/FloorplanExtraObject.html +5 -5
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
- package/docs/interfaces/FloorplanFloorData.html +3 -3
- package/docs/interfaces/FloorplanImagePosition.html +3 -3
- package/docs/interfaces/FloorplanObserver.html +3 -3
- package/docs/interfaces/FloorplanOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanPosition.html +3 -3
- package/docs/interfaces/FloorplanRoomItem.html +9 -9
- package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
- package/docs/interfaces/FloorplanServerBounding.html +5 -5
- package/docs/interfaces/FloorplanServerComputedData.html +3 -2
- package/docs/interfaces/FloorplanServerData.html +3 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
- package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +8 -8
- package/docs/interfaces/FloorplanServerFloorData.html +3 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
- package/docs/interfaces/FloorplanServerObserver.html +3 -3
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanServerPosition.html +3 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +10 -10
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
- package/docs/interfaces/GuideLinePluginType.EventMap.html +5 -5
- package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +16 -16
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +20 -20
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +4 -4
- package/docs/interfaces/GuideLinePluginType.Route.html +6 -6
- package/docs/interfaces/HelperOffset.html +2 -2
- package/docs/interfaces/IFloorplanArea.html +25 -0
- package/docs/interfaces/ImagePlaneGroup.html +2 -2
- package/docs/interfaces/ItemLabelPluginData.html +2 -2
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/MinMax.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +10 -10
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +5 -4
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +4 -4
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +4 -4
- package/docs/interfaces/ModelMakerPluginType.State.html +5 -5
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
- package/docs/interfaces/ModelViewPluginExportType.html +2 -2
- package/docs/interfaces/Object3DHelperState.html +2 -2
- package/docs/interfaces/ObjectHelperControllers.html +2 -2
- package/docs/interfaces/PaintBrushAction.html +7 -7
- package/docs/interfaces/PaintBrushConfigs.html +2 -2
- package/docs/interfaces/PaintBrushState.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +6 -6
- package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +4 -4
- package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginState.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +7 -7
- package/docs/interfaces/PluginEventMap.html +4 -4
- package/docs/interfaces/Point.html +2 -2
- package/docs/interfaces/Room.html +2 -2
- package/docs/interfaces/RoomInfo.html +2 -2
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +6 -6
- package/docs/interfaces/State.html +4 -4
- package/docs/interfaces/TagCacheInterface.html +3 -3
- package/docs/interfaces/TagConfig.html +11 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconUrl.html +9 -9
- package/docs/interfaces/TagObjectGroup.html +2 -2
- package/docs/interfaces/TagStyle.html +2 -2
- package/docs/interfaces/Tags.html +4 -4
- package/docs/interfaces/TemporaryState.html +2 -2
- package/docs/interfaces/Util.AnimeInstance.html +2 -2
- package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
- package/docs/interfaces/Util.EventHandlerConfig.html +6 -6
- package/docs/interfaces/Util.FiveDomEvent.html +2 -2
- package/docs/interfaces/Util.FiveDomEventMap.html +10 -10
- package/docs/interfaces/Util.MagnifierParameter.html +5 -5
- package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.PointIntersection.html +11 -11
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +3 -3
- package/docs/modules/AreaMakerPluginType.html +2 -2
- package/docs/modules/CruisePluginTypes.html +2 -2
- package/docs/modules/CurrentPanoImagePluginType.html +2 -2
- package/docs/modules/GuideLineItem.html +2 -2
- package/docs/modules/GuideLineModeItem.html +2 -2
- package/docs/modules/GuideLinePluginType.html +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 +3 -2
- package/docs/types/AddObject3DHelperConfig.html +2 -2
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
- package/docs/types/ArrayPosition.html +1 -1
- package/docs/types/AudioAppearance.html +1 -1
- package/docs/types/CSS3DRenderExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
- package/docs/types/ClassFunctionParameters.html +1 -1
- package/docs/types/Color.html +1 -1
- package/docs/types/ContentTypeConfigKey.html +1 -1
- package/docs/types/ContentTypeConfigKeySplit.html +1 -1
- package/docs/types/ContentTypeMap.html +1 -1
- package/docs/types/Create3DDomContainerReturnType.html +1 -1
- package/docs/types/Create3DElementReturnType.html +1 -1
- package/docs/types/CruisePluginExportType.html +1 -1
- package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
- package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
- package/docs/types/DeprecatedTagProperty.html +2 -2
- package/docs/types/Direction-1.html +1 -1
- package/docs/types/Direction4.html +1 -1
- package/docs/types/ElementRenderer.html +2 -2
- package/docs/types/FloorplanRuleLabels.html +2 -2
- package/docs/types/FloorplanServerRuleLabels.html +1 -1
- package/docs/types/GuideLinePluginExportType.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -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/MeasurePluginConfig.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/ModelMakerPlugin/Controller.d.ts +38 -1
- package/libs/ModelMakerPlugin/Controller.js +401 -136
- package/libs/ModelMakerPlugin/index.js +4 -3
- package/libs/ModelMakerPlugin/item/baseItem.d.ts +5 -0
- package/libs/ModelMakerPlugin/item/baseItem.js +42 -22
- package/libs/ModelMakerPlugin/item/boxItem.d.ts +5 -1
- package/libs/ModelMakerPlugin/item/boxItem.js +36 -13
- package/libs/ModelMakerPlugin/typings/data.d.ts +2 -0
- package/libs/ModelMakerPlugin/utils/BoxLabelItem.js +204 -0
- package/libs/ModelMakerPlugin/utils/BoxLabelItem.svelte.d.ts +1 -0
- package/libs/ModelMakerPlugin/utils/tagRenderer.js +18 -10
- package/libs/Sculpt/Meshes/Prism.d.ts +6 -1
- package/libs/Sculpt/Meshes/Prism.js +37 -30
- package/libs/base/BasePlugin.js +3 -3
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +146 -136
- package/libs/floorplan/Components/SvgImage.js +23 -17
- package/libs/floorplan/typings/floorplanData.d.ts +49 -0
- package/libs/floorplan/typings/floorplanServerData.d.ts +2 -0
- package/libs/floorplan/utils/formatData.js +14 -13
- package/libs/index.js +146 -145
- package/libs/shared-utils/logger.js +1 -1
- package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +91 -91
- package/package.json +1 -1
|
@@ -1,57 +1,58 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
for (var e in
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var e of
|
|
9
|
-
|
|
10
|
-
return
|
|
1
|
+
var Y = Object.defineProperty;
|
|
2
|
+
var H = Object.getOwnPropertySymbols;
|
|
3
|
+
var Z = Object.prototype.hasOwnProperty, K = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var P = (h, l, e) => l in h ? Y(h, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[l] = e, B = (h, l) => {
|
|
5
|
+
for (var e in l || (l = {}))
|
|
6
|
+
Z.call(l, e) && P(h, e, l[e]);
|
|
7
|
+
if (H)
|
|
8
|
+
for (var e of H(l))
|
|
9
|
+
K.call(l, e) && P(h, e, l[e]);
|
|
10
|
+
return h;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
var d = (h, l, e) => (P(h, typeof l != "symbol" ? l + "" : l, e), e);
|
|
13
|
+
var D = (h, l, e) => new Promise((i, r) => {
|
|
14
|
+
var t = (s) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
16
|
+
a(e.next(s));
|
|
17
|
+
} catch (o) {
|
|
18
|
+
r(o);
|
|
19
19
|
}
|
|
20
|
-
}, n = (
|
|
20
|
+
}, n = (s) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
22
|
+
a(e.throw(s));
|
|
23
|
+
} catch (o) {
|
|
24
|
+
r(o);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, a = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(t, n);
|
|
27
|
+
a((e = e.apply(h, l)).next());
|
|
28
28
|
});
|
|
29
|
-
import {
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import "../
|
|
29
|
+
import { AnimationFrameLoop as X } from "@realsee/five";
|
|
30
|
+
import { Controller as J } from "../base/BasePluginWithData.js";
|
|
31
|
+
import * as c from "three";
|
|
32
|
+
import { ModelMakerBoxItem as ee } from "./item/boxItem.js";
|
|
33
|
+
import { PrismMesh as G } from "../Sculpt/Meshes/Prism.js";
|
|
34
|
+
import { anyPositionToVector3 as te } from "../shared-utils/positionToVector3.js";
|
|
35
|
+
import { PolygonWithEdgeMesh as ie } from "../Sculpt/Meshes/PolygonWithEdge.js";
|
|
36
|
+
import { LightTag as oe } from "../shared-utils/tag.js";
|
|
36
37
|
import "../vendor/hammerjs/hammer.js";
|
|
37
38
|
import "../shared-utils/three/PointSelector/index.js";
|
|
38
39
|
import "../shared-utils/three/CSS3DRenderer/index.js";
|
|
39
|
-
import { waitFiveModelLoaded as
|
|
40
|
+
import { waitFiveModelLoaded as se } from "../shared-utils/five/fiveModelLoad.js";
|
|
40
41
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
41
42
|
import "@realsee/five/line";
|
|
42
|
-
import { notNil as
|
|
43
|
+
import { notNil as C } from "../shared-utils/isNil.js";
|
|
43
44
|
import "../shared-utils/three/core/Five_LineMaterial2.js";
|
|
44
|
-
import { boxVertex as
|
|
45
|
+
import { boxVertex as b, boundingBox as F } from "../shared-utils/three/boundingBox.js";
|
|
45
46
|
import "../vendor/animejs/lib/anime.es.js";
|
|
46
|
-
import { FiveDomEvents as
|
|
47
|
+
import { FiveDomEvents as ne } from "../shared-utils/five/FiveDomEvents.js";
|
|
47
48
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
48
49
|
import "../shared-utils/five/FivePuppet.js";
|
|
49
|
-
import { tagRendererMap as
|
|
50
|
-
import { ModelMakerPrismItem as
|
|
51
|
-
import { ModelMakerPolygonItem as
|
|
52
|
-
import { fiveEveryReadyListener as
|
|
53
|
-
import { sleep as
|
|
54
|
-
import { CONST as
|
|
50
|
+
import { tagRendererMap as re } from "./utils/tagRenderer.js";
|
|
51
|
+
import { ModelMakerPrismItem as N } from "./item/prismItem.js";
|
|
52
|
+
import { ModelMakerPolygonItem as ae } from "./item/polygonItem.js";
|
|
53
|
+
import { fiveEveryReadyListener as le } from "../shared-utils/five/fiveEveryReadyListener.js";
|
|
54
|
+
import { sleep as ce } from "../CruisePlugin/utils/sleep.js";
|
|
55
|
+
import { CONST as de } from "../shared-utils/constants.js";
|
|
55
56
|
import "../base/BasePlugin.js";
|
|
56
57
|
import "../shared-utils/Subscribe.js";
|
|
57
58
|
import "../shared-utils/three/core/Sphere.js";
|
|
@@ -114,161 +115,376 @@ import "../shared-utils/five/getPosition.js";
|
|
|
114
115
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
115
116
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
116
117
|
import "../Sculpt/utils/three/rayOnLine.js";
|
|
117
|
-
import "@realsee/five";
|
|
118
118
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
119
119
|
import "./utils/Text.js";
|
|
120
120
|
import "../vendor/svelte/internal/index.js";
|
|
121
121
|
import "../components/AreaLabel/LabelItem.js";
|
|
122
122
|
import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
123
123
|
import "../shared-utils/math/rad2Deg.js";
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
import "./utils/BoxLabelItem.js";
|
|
125
|
+
const he = (h, l, e, i = [0, 1, 4, 5]) => {
|
|
126
|
+
let r = null, t = 1 / 0;
|
|
127
|
+
return i.forEach((n) => {
|
|
128
|
+
const a = b(h, n), o = a.clone().applyMatrix4(l.matrixWorld).distanceTo(e);
|
|
129
|
+
o < t && (t = o, r = a);
|
|
130
|
+
}), r || b(h, 5);
|
|
131
|
+
}, pe = (h) => {
|
|
132
|
+
const l = h * 100;
|
|
133
|
+
return l < 10 ? null : `${Math.round(l / 10) * 10}cm`;
|
|
134
|
+
};
|
|
135
|
+
class ii extends J {
|
|
136
|
+
constructor(e, i) {
|
|
137
|
+
var r, t;
|
|
127
138
|
super(e);
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
139
|
+
d(this, "state");
|
|
140
|
+
d(this, "items", []);
|
|
141
|
+
d(this, "group", new c.Group());
|
|
142
|
+
d(this, "data");
|
|
143
|
+
d(this, "tagRendererMap", {});
|
|
144
|
+
d(this, "fiveDomEvents");
|
|
145
|
+
d(this, "zFightingOffset", 0);
|
|
146
|
+
d(this, "tagWrapper");
|
|
147
|
+
d(this, "occlusionVisibility");
|
|
148
|
+
d(this, "occlusionMode");
|
|
149
|
+
d(this, "fiveEveryReadyListenerDisposer");
|
|
150
|
+
d(this, "activeAnimations", /* @__PURE__ */ new Map());
|
|
151
|
+
d(this, "activeEaseInAnimations", /* @__PURE__ */ new Map());
|
|
152
|
+
d(this, "onFiveModeChange", (e) => {
|
|
153
|
+
const i = this.occlusionVisibility;
|
|
154
|
+
Array.isArray(i) && this.items.forEach((r) => {
|
|
155
|
+
r.type !== "triangles" && r.model.setStyle instanceof Function && r.model.setStyle({ occlusionVisibility: i.includes(e) });
|
|
143
156
|
});
|
|
144
157
|
});
|
|
145
|
-
|
|
146
|
-
var e,
|
|
147
|
-
this.five.scene.add(this.group), (
|
|
158
|
+
d(this, "handleEnable", () => {
|
|
159
|
+
var e, i;
|
|
160
|
+
this.five.scene.add(this.group), (i = (e = this.five.getElement()) == null ? void 0 : e.parentElement) == null || i.appendChild(this.tagWrapper), this.five.needsRender = !0, this.items.forEach((r) => {
|
|
161
|
+
r.state.enabled || r.enable();
|
|
162
|
+
}), this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveEveryReady(), this.five.on("modeChange", this.onFiveModeChange), this.fiveEveryReadyListenerDisposer = le(this.five, this.onFiveEveryReady);
|
|
148
163
|
});
|
|
149
|
-
|
|
150
|
-
this.
|
|
164
|
+
d(this, "handleDisable", () => {
|
|
165
|
+
this.items.forEach((e) => {
|
|
166
|
+
e.state.enabled && e.disable();
|
|
167
|
+
}), this.five.scene.remove(this.group), this.tagWrapper.remove(), this.five.needsRender = !0, this.five.off("modeChange", this.onFiveModeChange), this.fiveEveryReadyListenerDisposer();
|
|
151
168
|
});
|
|
152
|
-
|
|
169
|
+
d(this, "onFiveEveryReady", () => D(this, null, function* () {
|
|
153
170
|
if (this.five.state.mode === "Panorama")
|
|
154
171
|
return;
|
|
155
|
-
const e = this.items.filter((
|
|
156
|
-
yield
|
|
157
|
-
const
|
|
158
|
-
e.forEach((
|
|
159
|
-
|
|
160
|
-
}),
|
|
161
|
-
if (
|
|
172
|
+
const e = this.items.filter((s) => s instanceof N).map((s) => s.tag), i = e.filter((s) => s.position && s.visible && s.enabled);
|
|
173
|
+
yield ce(0);
|
|
174
|
+
const r = this.five.camera.position.clone(), t = i.sort((s, o) => r.distanceTo(s.position) - r.distanceTo(o.position)), n = [], a = (s, o) => !(s.right < o.left || s.left > o.right || s.bottom < o.top || s.top > o.bottom);
|
|
175
|
+
e.forEach((s) => {
|
|
176
|
+
s.visibles[2] = void 0;
|
|
177
|
+
}), t.forEach((s) => {
|
|
178
|
+
if (s.visibles[1] === !1)
|
|
162
179
|
return;
|
|
163
|
-
const
|
|
164
|
-
if (!
|
|
180
|
+
const o = s.container.getElementsByClassName("room-label-item__text")[0];
|
|
181
|
+
if (!o)
|
|
165
182
|
return;
|
|
166
|
-
const
|
|
167
|
-
n.every((
|
|
183
|
+
const p = o.getBoundingClientRect();
|
|
184
|
+
n.every((y) => !a(y.boundingClientRect, p)) ? (n.push({ tag: s, boundingClientRect: p }), s.visibles[2] = !0) : s.visibles[2] = !1, s.needsRender = !0;
|
|
168
185
|
});
|
|
169
186
|
}));
|
|
170
|
-
|
|
187
|
+
d(this, "updateTagRenderer", () => {
|
|
171
188
|
this.items.forEach((e) => {
|
|
172
|
-
var
|
|
173
|
-
const
|
|
174
|
-
|
|
189
|
+
var r;
|
|
190
|
+
const i = (r = this.tagRendererMap[e.type]) != null ? r : re[e.type];
|
|
191
|
+
i && e.__renderer !== i && (e.__renderer = i, typeof e.__disposeRenderer == "function" && e.__disposeRenderer(), e.tag.container.innerHTML = "", e.__disposeRenderer = i(e.tag.container, e, this.five));
|
|
175
192
|
});
|
|
176
193
|
});
|
|
177
|
-
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.occlusionVisibility = (
|
|
178
|
-
var
|
|
194
|
+
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.occlusionVisibility = (r = i == null ? void 0 : i.occlusionVisibility) != null ? r : !1, this.occlusionMode = (t = i == null ? void 0 : i.occlusionMode) != null ? t : "translucence", this.fiveDomEvents = new ne(e, { noEmitWhenHide: !0, noEmitWhenNotInScene: !0 }), this.tagWrapper = (() => {
|
|
195
|
+
var a;
|
|
179
196
|
const n = document.createElement("div");
|
|
180
|
-
return n.style.position = "absolute", n.style.top = "0", n.style.left = "0", n.style.width = "100%", n.style.height = "100%", n.style.pointerEvents = "none", n.style.zIndex = `${(
|
|
181
|
-
})(), e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
|
|
197
|
+
return n.style.position = "absolute", n.style.top = "0", n.style.left = "0", n.style.width = "100%", n.style.height = "100%", n.style.pointerEvents = "none", n.style.zIndex = `${(a = i == null ? void 0 : i.tagContainerZIndex) != null ? a : ""}`, n;
|
|
198
|
+
})(), this.injectEdgeTagCSS(), e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
|
|
182
199
|
}
|
|
183
200
|
load(e) {
|
|
184
|
-
return
|
|
185
|
-
var
|
|
186
|
-
if (this.clear(), this.data = e, yield
|
|
201
|
+
return D(this, null, function* () {
|
|
202
|
+
var r;
|
|
203
|
+
if (this.clear(), this.data = e, yield se(this.five), this.data !== e)
|
|
187
204
|
return;
|
|
188
205
|
this.clear();
|
|
189
|
-
const
|
|
190
|
-
var
|
|
191
|
-
const n =
|
|
192
|
-
let
|
|
193
|
-
|
|
206
|
+
const i = (t) => {
|
|
207
|
+
var x;
|
|
208
|
+
const n = t.object_data.color ? new c.Color().setHex(parseInt(t.object_data.color.slice(1), 16)) : new c.Color(1, 1, 1);
|
|
209
|
+
let a = typeof this.occlusionVisibility == "boolean" ? this.occlusionVisibility : !1, s = this.occlusionMode;
|
|
210
|
+
t.type === "triangles" && (a = !0, s = "depthTest");
|
|
211
|
+
let o = 1, p = ((x = t.object_data.opacity) != null ? x : 0.8) / 2;
|
|
212
|
+
return t.type === "box" && (o = 0.5, p = 0.2), {
|
|
194
213
|
color: n,
|
|
195
214
|
lineColor: n,
|
|
196
|
-
opacity:
|
|
197
|
-
lineOpacity:
|
|
215
|
+
opacity: p,
|
|
216
|
+
lineOpacity: o,
|
|
198
217
|
lineWidth: 1,
|
|
199
|
-
occlusionVisibility:
|
|
200
|
-
occlusionMode:
|
|
218
|
+
occlusionVisibility: a,
|
|
219
|
+
occlusionMode: s
|
|
201
220
|
};
|
|
202
221
|
};
|
|
203
|
-
(
|
|
204
|
-
var n;
|
|
205
|
-
if (
|
|
206
|
-
const o = new
|
|
207
|
-
|
|
208
|
-
const
|
|
222
|
+
(r = e == null ? void 0 : e.list) == null || r.forEach((t) => {
|
|
223
|
+
var n, a, s;
|
|
224
|
+
if (t.type === "triangles") {
|
|
225
|
+
const o = new ie();
|
|
226
|
+
C(t.id) && (o.uuid = t.id.toString()), o.setPoints(t.object_data.points, { checkLinesIntersect: !1 }), o.setStyle(i(t)), this.fiveDomEvents.addEventListener(o, "hover", () => o.highlight()), this.fiveDomEvents.addEventListener(o, "unHover", () => o.unhighlight());
|
|
227
|
+
const p = new ae({
|
|
209
228
|
five: this.five,
|
|
210
229
|
tagWrapper: this.tagWrapper,
|
|
211
230
|
model: o,
|
|
212
231
|
group: this.group,
|
|
213
|
-
type:
|
|
214
|
-
rawData:
|
|
232
|
+
type: t.type,
|
|
233
|
+
rawData: t,
|
|
215
234
|
fiveDomEvents: this.fiveDomEvents
|
|
216
235
|
});
|
|
217
|
-
this.items.push(
|
|
218
|
-
} else if (
|
|
219
|
-
const o = new
|
|
220
|
-
|
|
221
|
-
const
|
|
222
|
-
var
|
|
223
|
-
return [
|
|
236
|
+
this.items.push(p);
|
|
237
|
+
} else if (t.type === "prism") {
|
|
238
|
+
const o = new G();
|
|
239
|
+
C(t.id) && (o.uuid = t.id.toString()), this.zFightingOffset += de.Z_FIGHTING_OFFSET;
|
|
240
|
+
const p = t.object_data.points.map((E) => {
|
|
241
|
+
var R;
|
|
242
|
+
return [E[0], E[1] + ((R = t.object_data.fixedY) != null ? R : 0), E[2]];
|
|
224
243
|
});
|
|
225
|
-
|
|
226
|
-
const
|
|
227
|
-
o.setPoints({ points:
|
|
228
|
-
const
|
|
244
|
+
p.push(p[0]);
|
|
245
|
+
const x = t.object_data.height + ((n = t.object_data.fixedHeight) != null ? n : 0) + this.zFightingOffset, y = te(p[0]).add(new c.Vector3().setY(x));
|
|
246
|
+
o.setPoints({ points: p, heightPoint: y }), o.setStyle(i(t));
|
|
247
|
+
const w = new N({
|
|
229
248
|
five: this.five,
|
|
230
249
|
tagWrapper: this.tagWrapper,
|
|
231
250
|
model: o,
|
|
232
251
|
group: this.group,
|
|
233
|
-
type:
|
|
234
|
-
rawData:
|
|
252
|
+
type: t.type,
|
|
253
|
+
rawData: t,
|
|
235
254
|
fiveDomEvents: this.fiveDomEvents
|
|
236
255
|
});
|
|
237
|
-
this.items.push(
|
|
238
|
-
} else if (
|
|
239
|
-
const o = new
|
|
240
|
-
|
|
241
|
-
const { start:
|
|
256
|
+
this.items.push(w);
|
|
257
|
+
} else if (t.type === "box") {
|
|
258
|
+
const o = new G();
|
|
259
|
+
C(t.id) && (o.uuid = t.id.toString());
|
|
260
|
+
const { start: p, end: x, rotation: y = [0, 0, 0, 0] } = t.object_data, w = new c.Vector3().fromArray(p), E = new c.Vector3().fromArray(x), R = new c.Euler().fromArray(y), v = new c.Quaternion().setFromEuler(R), u = v.clone().inverse(), A = new c.Vector3().lerpVectors(w, E, 0.5), S = A.clone().negate(), V = w.clone().add(S).applyQuaternion(u), m = E.clone().add(S).applyQuaternion(u), f = new c.Box3(V.clone().max(m), V.clone().min(m));
|
|
242
261
|
o.setPoints({
|
|
243
|
-
points: [
|
|
244
|
-
heightPoint:
|
|
245
|
-
}), o.position.copy(
|
|
246
|
-
const
|
|
262
|
+
points: [b(f, 2), b(f, 3), b(f, 7), b(f, 6)],
|
|
263
|
+
heightPoint: b(f, 1)
|
|
264
|
+
}), o.position.copy(A), o.quaternion.copy(v), o.setStyle(i(t));
|
|
265
|
+
const g = ((a = t.extend) == null ? void 0 : a.index) !== void 0 ? this.five.work.observers[t.extend.index].position : null, M = g ? he(F(o), o, g, [0, 1, 4, 5]) : b(F(o), (s = t.object_data.positionIndex) != null ? s : 5), _ = (I) => ({
|
|
266
|
+
0: [1, 3, 4],
|
|
267
|
+
1: [0, 2, 5],
|
|
268
|
+
2: [1, 3, 6],
|
|
269
|
+
3: [0, 2, 7],
|
|
270
|
+
4: [0, 5, 7],
|
|
271
|
+
5: [1, 4, 6],
|
|
272
|
+
6: [2, 5, 7],
|
|
273
|
+
7: [3, 4, 6]
|
|
274
|
+
})[I] || [], z = F(o);
|
|
275
|
+
let k = 5;
|
|
276
|
+
for (let I = 0; I < 8; I++)
|
|
277
|
+
if (b(z, I).distanceTo(M) < 1e-3) {
|
|
278
|
+
k = I;
|
|
279
|
+
break;
|
|
280
|
+
}
|
|
281
|
+
const U = _(k), W = [];
|
|
282
|
+
U.forEach((I, j) => {
|
|
283
|
+
const L = b(z, I), $ = M.distanceTo(L), O = pe($);
|
|
284
|
+
if (!O)
|
|
285
|
+
return;
|
|
286
|
+
const Q = new c.Vector3().lerpVectors(M, L, 0.5).clone().applyMatrix4(o.matrixWorld), T = new oe(this.five);
|
|
287
|
+
T.setPosition(Q), T.container.innerHTML = `
|
|
288
|
+
<div class="model-maker-edge-tag">
|
|
289
|
+
${O}
|
|
290
|
+
</div>
|
|
291
|
+
`, T.container.style.transform = "translate(-50%, -100%)", T.hide(), W.push(T);
|
|
292
|
+
});
|
|
293
|
+
const q = new ee({
|
|
247
294
|
five: this.five,
|
|
248
295
|
tagWrapper: this.tagWrapper,
|
|
249
296
|
model: o,
|
|
250
297
|
group: this.group,
|
|
251
|
-
type:
|
|
252
|
-
rawData:
|
|
253
|
-
fiveDomEvents: this.fiveDomEvents
|
|
298
|
+
type: t.type,
|
|
299
|
+
rawData: t,
|
|
300
|
+
fiveDomEvents: this.fiveDomEvents,
|
|
301
|
+
position: M,
|
|
302
|
+
edgeTags: W
|
|
254
303
|
});
|
|
255
|
-
this.items.push(
|
|
304
|
+
this.items.push(q);
|
|
256
305
|
}
|
|
257
306
|
}), this.state.enabled ? this.handleEnable() : this.handleDisable(), this.state.visible ? this.handleShow() : this.handleHide(), this.updateTagRenderer(), this.hooks.emit("dataLoaded", e), this.five.needsRender = !0;
|
|
258
307
|
});
|
|
259
308
|
}
|
|
260
309
|
setState(e) {
|
|
261
|
-
|
|
310
|
+
C(e.enabled) && this.state.enabled !== e.enabled && (this.state.enabled = e.enabled, e.enabled ? this.handleEnable() : this.handleDisable(), this.hooks.emit(e.enabled ? "enable" : "disable", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" })), C(e.visible) && this.state.visible !== e.visible && (this.state.visible = e.visible, e.visible ? this.handleShow() : this.handleHide(), this.hooks.emit(e.visible ? "show" : "hide", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" }));
|
|
262
311
|
}
|
|
263
312
|
getItemById(e) {
|
|
264
|
-
return this.items.find((
|
|
313
|
+
return this.items.find((i) => i.rawData.id === e);
|
|
265
314
|
}
|
|
266
315
|
registerTagRenderer(e) {
|
|
267
|
-
this.tagRendererMap =
|
|
316
|
+
this.tagRendererMap = B(B({}, this.tagRendererMap), e), this.updateTagRenderer();
|
|
268
317
|
}
|
|
269
318
|
hasCustomTagRenderer(e) {
|
|
270
319
|
return !!this.tagRendererMap[e];
|
|
271
320
|
}
|
|
321
|
+
/**
|
|
322
|
+
* Shows a specific item's tag and ensures all other tags are hidden
|
|
323
|
+
* @param id The ID of the item whose tag should be shown
|
|
324
|
+
* @returns The item if found and showed, otherwise null
|
|
325
|
+
*/
|
|
326
|
+
showItemTag(e) {
|
|
327
|
+
const i = this.getItemById(e);
|
|
328
|
+
return i ? (this.five.currentMode === "Panorama" && this.hideAllItemTags(), i.tag.visible || (i.tag.show({ force: !0 }), i.type === "box" && "edgeTags" in i && i.edgeTags.forEach((r) => r.show({ force: !0 }))), this.five.needsRender = !0, i) : (console.warn(`Item with ID ${e} not found`), null);
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Hides all item tags
|
|
332
|
+
* @param options Optional configuration for hiding tags
|
|
333
|
+
* @param options.excludeId Optional ID of an item whose tag should remain visible
|
|
334
|
+
*/
|
|
335
|
+
hideAllItemTags(e) {
|
|
336
|
+
this.items.forEach((i) => {
|
|
337
|
+
i.tag && i.tag.visible && i.rawData.id !== (e == null ? void 0 : e.excludeId) && (i.tag.hide(), i.type === "box" && "edgeTags" in i && i.edgeTags.forEach((r) => r.hide()));
|
|
338
|
+
}), this.five.needsRender = !0;
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Force finish all active box animations immediately
|
|
342
|
+
* @param id Optional box item ID. If not provided, finishes all active box animations.
|
|
343
|
+
*/
|
|
344
|
+
forceFinishBoxAnimation(e) {
|
|
345
|
+
(e ? [e] : Array.from(this.activeAnimations.keys())).forEach((r) => {
|
|
346
|
+
const t = this.activeAnimations.get(r);
|
|
347
|
+
if (t) {
|
|
348
|
+
t.remove(), t.animatedBoxMesh.visible = !1;
|
|
349
|
+
const a = this.getItemById(r);
|
|
350
|
+
a && a.type === "box" && this.showBoxFinalState(a.model), this.activeAnimations.delete(r);
|
|
351
|
+
}
|
|
352
|
+
const n = this.activeEaseInAnimations.get(r);
|
|
353
|
+
n && (clearInterval(n.interval), this.showBoxFinalState(n.model), this.activeEaseInAnimations.delete(r));
|
|
354
|
+
}), this.five.needsRender = !0;
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Play the up-and-down animation for a box mesh
|
|
358
|
+
* @param id Optional box item ID. If not provided, plays animation for all box items.
|
|
359
|
+
* @returns Promise that resolves when all animations are complete
|
|
360
|
+
*/
|
|
361
|
+
playBoxAnimation(e) {
|
|
362
|
+
this.activeAnimations.size > 0 && this.forceFinishBoxAnimation();
|
|
363
|
+
const i = e ? [this.getItemById(e)].filter(Boolean) : this.items.filter((t) => t.type === "box");
|
|
364
|
+
if (i.length === 0)
|
|
365
|
+
return console.warn("No box items found to animate"), Promise.resolve();
|
|
366
|
+
const r = i.map((t) => {
|
|
367
|
+
if (!t || t.type !== "box")
|
|
368
|
+
return Promise.resolve();
|
|
369
|
+
const n = t.model;
|
|
370
|
+
return new Promise((a) => {
|
|
371
|
+
if (n && n.isBox && typeof n.isBox == "function" && n.isBox()) {
|
|
372
|
+
n.prismMesh.visible = !1, n.edgeMesh.visible = !1;
|
|
373
|
+
const s = new c.Vector3(1 / 0, 1 / 0, 1 / 0), o = new c.Vector3(-1 / 0, -1 / 0, -1 / 0), p = n.bottomPositions;
|
|
374
|
+
for (const m of p)
|
|
375
|
+
s.min(m), o.max(m);
|
|
376
|
+
const x = n.topPositions;
|
|
377
|
+
for (const m of x)
|
|
378
|
+
s.min(m), o.max(m);
|
|
379
|
+
const y = o.clone().sub(s), w = new c.BoxGeometry(y.x, y.y, y.z), E = `
|
|
380
|
+
varying vec2 vUV;
|
|
381
|
+
varying vec3 vPosition;
|
|
382
|
+
#include <common>
|
|
383
|
+
void main() {
|
|
384
|
+
vUV = uv;
|
|
385
|
+
vPosition = position;
|
|
386
|
+
vec4 transformed = vec4(position, 1.0);
|
|
387
|
+
gl_Position = projectionMatrix * modelViewMatrix * transformed;
|
|
388
|
+
}
|
|
389
|
+
`, R = `
|
|
390
|
+
#include <common>
|
|
391
|
+
uniform vec3 color;
|
|
392
|
+
uniform vec3 size;
|
|
393
|
+
uniform vec2 faceSize;
|
|
394
|
+
uniform float opacity;
|
|
395
|
+
uniform float progress;
|
|
396
|
+
uniform float spread;
|
|
397
|
+
varying vec2 vUV;
|
|
398
|
+
varying vec3 vPosition;
|
|
399
|
+
void main() {
|
|
400
|
+
|
|
401
|
+
float u = vUV.x;
|
|
402
|
+
float v = vUV.y;
|
|
403
|
+
float r = 0.1 + sqrt(u * u + v * v) * 0.3;
|
|
404
|
+
|
|
405
|
+
// 边缘线
|
|
406
|
+
if (size.y * v < 0.003 || size.y * (1.0 - v) < 0.003) {
|
|
407
|
+
r += 0.8 * (1.0 - abs(u - 0.5) * 2.0);
|
|
408
|
+
}
|
|
409
|
+
if (size.x * u < 0.003 || size.x * (1.0 - u) < 0.003) {
|
|
410
|
+
r += 0.8 * (1.0 - abs(v - 0.5) * 2.0);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
// 扫光动画
|
|
414
|
+
vec3 p = (vPosition + size / 2.0) / size;
|
|
415
|
+
r = r * pow(clamp(1.0 - abs(p.y - progress) / spread, 0.0, 1.0), 2.0);
|
|
416
|
+
|
|
417
|
+
gl_FragColor = vec4(color, clamp(r * opacity, 0.0, 1.0));
|
|
418
|
+
}
|
|
419
|
+
`, v = new c.ShaderMaterial({
|
|
420
|
+
vertexShader: E,
|
|
421
|
+
fragmentShader: R,
|
|
422
|
+
uniforms: {
|
|
423
|
+
color: { value: new c.Color(77 / 255, 240 / 255, 1) },
|
|
424
|
+
// Color
|
|
425
|
+
size: { value: y },
|
|
426
|
+
// Box size
|
|
427
|
+
faceSize: { value: new c.Vector2(1, 1) },
|
|
428
|
+
// Face size
|
|
429
|
+
opacity: { value: 0.8 },
|
|
430
|
+
// Opacity
|
|
431
|
+
progress: { value: 0.5 },
|
|
432
|
+
// Animation progress
|
|
433
|
+
spread: { value: 0.5 }
|
|
434
|
+
// Animation spread
|
|
435
|
+
},
|
|
436
|
+
depthTest: !1,
|
|
437
|
+
side: c.DoubleSide,
|
|
438
|
+
transparent: !0
|
|
439
|
+
});
|
|
440
|
+
v.polygonOffset = !0, v.polygonOffsetFactor = 1, v.polygonOffsetUnits = 1;
|
|
441
|
+
const u = new c.Mesh(w, [
|
|
442
|
+
v.clone(),
|
|
443
|
+
// right
|
|
444
|
+
v.clone(),
|
|
445
|
+
// left
|
|
446
|
+
v.clone(),
|
|
447
|
+
// top
|
|
448
|
+
v.clone(),
|
|
449
|
+
// bottom
|
|
450
|
+
v.clone(),
|
|
451
|
+
// back
|
|
452
|
+
v.clone()
|
|
453
|
+
// front
|
|
454
|
+
]);
|
|
455
|
+
u.position.copy(n.localCenter), u.position.applyMatrix4(n.matrixWorld), u.quaternion.copy(n.quaternion), u.onBeforeRender = () => {
|
|
456
|
+
w.boundingBox || w.computeBoundingBox();
|
|
457
|
+
const m = w.boundingBox.getSize(new c.Vector3());
|
|
458
|
+
for (let f = 0; f < 6; f++) {
|
|
459
|
+
const g = u.material[f];
|
|
460
|
+
f === 0 || f === 1 ? g.uniforms.faceSize.value.set(m.z, m.y) : f === 2 || f === 3 ? g.uniforms.faceSize.value.set(m.x, m.z) : g.uniforms.faceSize.value.set(m.x, m.y);
|
|
461
|
+
}
|
|
462
|
+
for (const f of u.material)
|
|
463
|
+
f.uniforms.size.value.copy(m);
|
|
464
|
+
this.five.needsRender = !0;
|
|
465
|
+
};
|
|
466
|
+
const A = 3e3;
|
|
467
|
+
let S = 0;
|
|
468
|
+
const V = X.shared.add((m, f) => {
|
|
469
|
+
S += f;
|
|
470
|
+
let g = S / A;
|
|
471
|
+
g > 1 && (g = 1);
|
|
472
|
+
let M = Math.abs((g - 0.5) * 2);
|
|
473
|
+
M = M * 2 - 0.5;
|
|
474
|
+
for (const _ of u.material)
|
|
475
|
+
_.uniforms.progress.value = M;
|
|
476
|
+
g === 1 && (V(), u.visible = !1, this.playEaseInAnimation(n, () => {
|
|
477
|
+
this.activeAnimations.delete(t.rawData.id), a();
|
|
478
|
+
})), this.five.needsRender = !0;
|
|
479
|
+
});
|
|
480
|
+
this.activeAnimations.set(t.rawData.id, { animatedBoxMesh: u, remove: V }), this.five.scene.add(u);
|
|
481
|
+
} else
|
|
482
|
+
a();
|
|
483
|
+
});
|
|
484
|
+
});
|
|
485
|
+
return Promise.all(r).then(() => {
|
|
486
|
+
});
|
|
487
|
+
}
|
|
272
488
|
enable() {
|
|
273
489
|
this.setState({ enabled: !0 });
|
|
274
490
|
}
|
|
@@ -282,7 +498,9 @@ class kt extends P {
|
|
|
282
498
|
this.setState({ visible: !1 });
|
|
283
499
|
}
|
|
284
500
|
clear() {
|
|
285
|
-
this.zFightingOffset = 0, this.
|
|
501
|
+
this.zFightingOffset = 0, this.items.forEach((e) => {
|
|
502
|
+
e.state.enabled && e.disable();
|
|
503
|
+
}), this.handleDisable(), this.group.children.length = 0, this.five.needsRender = !0, this.items = [], this.tagWrapper.innerHTML = "", this.fiveDomEvents.clear();
|
|
286
504
|
}
|
|
287
505
|
dispose() {
|
|
288
506
|
this.hooks.emit("dispose"), this.clear();
|
|
@@ -290,13 +508,60 @@ class kt extends P {
|
|
|
290
508
|
onWorkCodeChange() {
|
|
291
509
|
this.group.matrix.copy(this.workUtil.transform.clone()), this.group.matrix.decompose(this.group.position, this.group.quaternion, this.group.scale), this.group.updateMatrixWorld();
|
|
292
510
|
}
|
|
511
|
+
playEaseInAnimation(e, i) {
|
|
512
|
+
e.prismMesh.visible = !0, e.edgeMesh.visible = !0;
|
|
513
|
+
let r = 0;
|
|
514
|
+
const t = e.prismMesh.style.opacity;
|
|
515
|
+
e.prismMesh.setStyle({ opacity: 0 }), e.edgeMesh.setStyle({ lineOpacity: 0 });
|
|
516
|
+
const n = this.items.find((s) => s.model === e);
|
|
517
|
+
if (!n) {
|
|
518
|
+
console.warn("Could not find item for model in playEaseInAnimation");
|
|
519
|
+
return;
|
|
520
|
+
}
|
|
521
|
+
const a = setInterval(() => {
|
|
522
|
+
r === 61 && (clearInterval(a), this.activeEaseInAnimations.delete(n.rawData.id), this.showBoxFinalState(e), i()), e.edgeMesh.setStyle({ lineOpacity: r / 60 }), e.prismMesh.setStyle({ opacity: r / 60 * t }), this.five.needsRender = !0, r++;
|
|
523
|
+
}, 16);
|
|
524
|
+
this.activeEaseInAnimations.set(n.rawData.id, { interval: a, model: e });
|
|
525
|
+
}
|
|
293
526
|
handleShow() {
|
|
294
|
-
this.group.visible = !0, this.tagWrapper.style.display = "block", this.
|
|
527
|
+
this.group.visible = !0, this.tagWrapper.style.display = "block", this.items.forEach((e) => {
|
|
528
|
+
e.show();
|
|
529
|
+
}), this.five.needsRender = !0;
|
|
295
530
|
}
|
|
296
531
|
handleHide() {
|
|
297
|
-
this.group.visible = !1, this.tagWrapper.style.display = "none", this.
|
|
532
|
+
this.group.visible = !1, this.tagWrapper.style.display = "none", this.items.forEach((e) => {
|
|
533
|
+
e.hide();
|
|
534
|
+
}), this.five.needsRender = !0;
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* Shows a box model in its final state (fully visible with full opacity)
|
|
538
|
+
* @param model The PrismMesh model to show
|
|
539
|
+
*/
|
|
540
|
+
showBoxFinalState(e) {
|
|
541
|
+
e.prismMesh.visible = !0, e.edgeMesh.visible = !0, e.prismMesh.setStyle({ opacity: e.prismMesh.style.opacity }), e.edgeMesh.setStyle({ lineOpacity: 1 });
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* Inject CSS styles for edge tags
|
|
545
|
+
*/
|
|
546
|
+
injectEdgeTagCSS() {
|
|
547
|
+
if (!document.getElementById("model-maker-edge-tag-style")) {
|
|
548
|
+
const e = document.createElement("style");
|
|
549
|
+
e.id = "model-maker-edge-tag-style", e.textContent = `
|
|
550
|
+
.model-maker-edge-tag {
|
|
551
|
+
color: white;
|
|
552
|
+
font-size: 14px;
|
|
553
|
+
font-weight: 500;
|
|
554
|
+
white-space: nowrap;
|
|
555
|
+
pointer-events: none;
|
|
556
|
+
text-align: center;
|
|
557
|
+
line-height: 1;
|
|
558
|
+
display: inline-block;
|
|
559
|
+
min-width: 30px;
|
|
560
|
+
}
|
|
561
|
+
`, document.head.appendChild(e);
|
|
562
|
+
}
|
|
298
563
|
}
|
|
299
564
|
}
|
|
300
565
|
export {
|
|
301
|
-
|
|
566
|
+
ii as Controller
|
|
302
567
|
};
|