@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,4 +1,5 @@
|
|
|
1
1
|
import { Controller as r } from "./Controller.js";
|
|
2
|
+
import "@realsee/five";
|
|
2
3
|
import "../base/BasePluginWithData.js";
|
|
3
4
|
import "../base/BasePlugin.js";
|
|
4
5
|
import "../shared-utils/Subscribe.js";
|
|
@@ -36,7 +37,6 @@ import "../shared-utils/three/core/Sphere.js";
|
|
|
36
37
|
import "../vendor/animejs/lib/anime.es.js";
|
|
37
38
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
38
39
|
import "../shared-utils/five/FivePuppet.js";
|
|
39
|
-
import "@realsee/five";
|
|
40
40
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
41
41
|
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
42
42
|
import "../shared-utils/CSS3DRender/index.js";
|
|
@@ -90,11 +90,12 @@ import "../vendor/svelte/internal/index.js";
|
|
|
90
90
|
import "../components/AreaLabel/LabelItem.js";
|
|
91
91
|
import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
92
92
|
import "../shared-utils/math/rad2Deg.js";
|
|
93
|
+
import "./utils/BoxLabelItem.js";
|
|
93
94
|
import "./item/prismItem.js";
|
|
94
95
|
import "./item/polygonItem.js";
|
|
95
96
|
import "../CruisePlugin/utils/sleep.js";
|
|
96
97
|
import "../shared-utils/constants.js";
|
|
97
|
-
const
|
|
98
|
+
const Uo = (...o) => new r(...o);
|
|
98
99
|
export {
|
|
99
|
-
|
|
100
|
+
Uo as ModelMakerPlugin
|
|
100
101
|
};
|
|
@@ -43,5 +43,10 @@ export declare class ModelMakerBaseItem extends Subscribe<Event> {
|
|
|
43
43
|
disable(): void;
|
|
44
44
|
updateVisible(): void;
|
|
45
45
|
protected onClick(): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Helper method to find the controller instance
|
|
48
|
+
* Walks up the scene graph to find the ModelMakerPluginGroup
|
|
49
|
+
*/
|
|
50
|
+
protected findController(): any;
|
|
46
51
|
}
|
|
47
52
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var p = Object.defineProperty;
|
|
2
|
-
var h = (
|
|
3
|
-
var
|
|
2
|
+
var h = (r, o, i) => o in r ? p(r, o, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[o] = i;
|
|
3
|
+
var e = (r, o, i) => (h(r, typeof o != "symbol" ? o + "" : o, i), i);
|
|
4
4
|
import * as l from "three";
|
|
5
|
-
import { addIfNotExists as
|
|
6
|
-
import { Subscribe as
|
|
5
|
+
import { addIfNotExists as n } from "../../shared-utils/three/addIfNotExists.js";
|
|
6
|
+
import { Subscribe as d } from "../../shared-utils/Subscribe.js";
|
|
7
7
|
import { tag as a } from "../../shared-utils/tag.js";
|
|
8
|
-
import { boundingBox as
|
|
8
|
+
import { boundingBox as u } from "../../shared-utils/three/boundingBox.js";
|
|
9
9
|
import "../../shared-utils/positionToVector3.js";
|
|
10
10
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
11
11
|
import "../../shared-utils/five/getFiveModel.js";
|
|
@@ -63,22 +63,22 @@ import "../../shared-utils/five/getPosition.js";
|
|
|
63
63
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
64
64
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
65
65
|
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
66
|
-
class
|
|
66
|
+
class Di extends d {
|
|
67
67
|
constructor(i) {
|
|
68
|
-
var
|
|
68
|
+
var s, m;
|
|
69
69
|
super();
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
70
|
+
e(this, "type");
|
|
71
|
+
e(this, "tag");
|
|
72
|
+
e(this, "rawData");
|
|
73
|
+
e(this, "model");
|
|
74
|
+
e(this, "visibles", []);
|
|
75
|
+
e(this, "five");
|
|
76
|
+
e(this, "group");
|
|
77
|
+
e(this, "fiveDomEvents");
|
|
78
|
+
e(this, "disposers", []);
|
|
79
79
|
this.five = i.five, this.model = i.model, this.group = i.group, this.type = i.type, this.rawData = i.rawData, this.fiveDomEvents = i.fiveDomEvents;
|
|
80
|
-
const
|
|
81
|
-
this.tag = a(this.five,
|
|
80
|
+
const t = (m = (s = i.position) != null ? s : this.model.center) != null ? m : u(this.model).getCenter(new l.Vector3());
|
|
81
|
+
this.tag = a(this.five, t, { wrapper: i.tagWrapper }), this.tag.extraObjectsForIntersectCheck.push(this.group);
|
|
82
82
|
}
|
|
83
83
|
get container() {
|
|
84
84
|
return this.tag.container;
|
|
@@ -96,7 +96,7 @@ class wi extends n {
|
|
|
96
96
|
this.visibles[0] = !1, this.updateVisible(), this.emit("hide");
|
|
97
97
|
}
|
|
98
98
|
enable() {
|
|
99
|
-
|
|
99
|
+
n(this.group, this.model), this.five.needsRender = !0, this.model.updateMatrixWorld(!0), this.tag.setTransformMatrix(this.model.matrixWorld), this.tag.enable();
|
|
100
100
|
const i = this.onClick.bind(this);
|
|
101
101
|
this.fiveDomEvents.removeEventListener(this.model, "click"), this.fiveDomEvents.addEventListener(this.model, "click", i, { skipPano: !0 }), this.disposers.push(() => {
|
|
102
102
|
this.fiveDomEvents.removeEventListener(this.model, "click");
|
|
@@ -106,12 +106,32 @@ class wi extends n {
|
|
|
106
106
|
this.group.remove(this.model), this.five.needsRender = !0, this.tag.disable(), this.disposers.forEach((i) => i()), this.disposers = [], this.emit("disable");
|
|
107
107
|
}
|
|
108
108
|
updateVisible() {
|
|
109
|
-
!this.visibles.some((
|
|
109
|
+
!this.visibles.some((t) => t === !1) ? (this.tag.show(), this.model.visible = !0) : (this.tag.hide(), this.model.visible = !1), this.five.needsRender = !0;
|
|
110
110
|
}
|
|
111
111
|
onClick() {
|
|
112
|
-
|
|
112
|
+
const i = this.findController();
|
|
113
|
+
return i && i.items.forEach((t) => {
|
|
114
|
+
t !== this && t.tag && t.tag.visible && t.tag.hide();
|
|
115
|
+
}), this.emit("click", this);
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Helper method to find the controller instance
|
|
119
|
+
* Walks up the scene graph to find the ModelMakerPluginGroup
|
|
120
|
+
*/
|
|
121
|
+
findController() {
|
|
122
|
+
let i = this.model.parent;
|
|
123
|
+
for (; i; ) {
|
|
124
|
+
if (i.name === "ModelMakerPluginGroup") {
|
|
125
|
+
const t = window == null ? void 0 : window.__MODELMAKER_DEBUG__;
|
|
126
|
+
if (t && Array.isArray(t.items))
|
|
127
|
+
return t;
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
i = i.parent;
|
|
131
|
+
}
|
|
132
|
+
return null;
|
|
113
133
|
}
|
|
114
134
|
}
|
|
115
135
|
export {
|
|
116
|
-
|
|
136
|
+
Di as ModelMakerBaseItem
|
|
117
137
|
};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { ModelMakerBaseItem } from './baseItem';
|
|
2
|
+
import type { LightTag } from '../../shared-utils/tag';
|
|
2
3
|
export declare class ModelMakerBoxItem extends ModelMakerBaseItem {
|
|
3
|
-
|
|
4
|
+
edgeTags: LightTag[];
|
|
5
|
+
constructor(params: ConstructorParameters<typeof ModelMakerBaseItem>[0] & {
|
|
6
|
+
edgeTags?: LightTag[];
|
|
7
|
+
});
|
|
4
8
|
enable(): void;
|
|
5
9
|
disable(): void;
|
|
6
10
|
show(): void;
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
var p = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
2
|
+
var a = Object.getOwnPropertySymbols;
|
|
3
|
+
var d = Object.prototype.hasOwnProperty, g = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var n = (e, o, t) => o in e ? p(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t;
|
|
5
|
+
var h = (e, o) => {
|
|
6
|
+
var t = {};
|
|
7
|
+
for (var i in e)
|
|
8
|
+
d.call(e, i) && o.indexOf(i) < 0 && (t[i] = e[i]);
|
|
9
|
+
if (e != null && a)
|
|
10
|
+
for (var i of a(e))
|
|
11
|
+
o.indexOf(i) < 0 && g.call(e, i) && (t[i] = e[i]);
|
|
12
|
+
return t;
|
|
13
|
+
};
|
|
14
|
+
var r = (e, o, t) => (n(e, typeof o != "symbol" ? o + "" : o, t), t);
|
|
15
|
+
import { ModelMakerBaseItem as l } from "./baseItem.js";
|
|
5
16
|
import "three";
|
|
6
17
|
import "../../shared-utils/three/addIfNotExists.js";
|
|
7
18
|
import "../../shared-utils/Subscribe.js";
|
|
@@ -64,30 +75,42 @@ import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
|
64
75
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
65
76
|
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
66
77
|
import "../../shared-utils/three/boundingBox.js";
|
|
67
|
-
class
|
|
68
|
-
constructor(
|
|
69
|
-
|
|
78
|
+
class Ii extends l {
|
|
79
|
+
constructor(t) {
|
|
80
|
+
const s = t, { edgeTags: i } = s, m = h(s, ["edgeTags"]);
|
|
81
|
+
super(m);
|
|
82
|
+
r(this, "edgeTags", []);
|
|
70
83
|
r(this, "hideTag", () => {
|
|
71
|
-
this.tag.hide();
|
|
84
|
+
this.tag.hide(), this.edgeTags.forEach((t) => t.hide());
|
|
72
85
|
});
|
|
73
|
-
this.enable(), this.tag.hide(), this.updateVisible();
|
|
86
|
+
i && (this.edgeTags = i), this.enable(), this.tag.hide(), this.updateVisible();
|
|
74
87
|
}
|
|
75
88
|
enable() {
|
|
76
89
|
super.enable(), this.five.on("mode.change.request", this.hideTag), this.five.on("pano.request", this.hideTag);
|
|
77
90
|
}
|
|
78
91
|
disable() {
|
|
79
|
-
super.disable(), this.five.off("mode.change.request", this.hideTag), this.five.off("pano.request", this.hideTag);
|
|
92
|
+
super.disable(), this.five.off("mode.change.request", this.hideTag), this.five.off("pano.request", this.hideTag), this.edgeTags.forEach((t) => t.destroy()), this.edgeTags = [];
|
|
80
93
|
}
|
|
81
94
|
show() {
|
|
82
|
-
super.show(), this.tag.hide();
|
|
95
|
+
super.show(), this.tag.hide(), this.edgeTags.forEach((t) => t.hide());
|
|
83
96
|
}
|
|
84
97
|
onClick() {
|
|
85
|
-
|
|
98
|
+
const t = this.findController();
|
|
99
|
+
return t ? (t.forceFinishBoxAnimation(), this.five.currentMode !== "Panorama" ? (this.five.once("pano.arrived", () => {
|
|
100
|
+
t.playBoxAnimation(this.rawData.id).then(() => {
|
|
101
|
+
t.showItemTag(this.rawData.id), this.edgeTags.forEach((i) => i.show({ force: !0 }));
|
|
102
|
+
});
|
|
103
|
+
}), this.five.setState({
|
|
104
|
+
mode: "Panorama",
|
|
105
|
+
longitude: this.rawData.extend.longitude,
|
|
106
|
+
latitude: this.rawData.extend.latitude,
|
|
107
|
+
panoIndex: this.rawData.extend.index
|
|
108
|
+
})) : this.tag.visible ? (this.tag.hide(), this.edgeTags.forEach((i) => i.hide())) : (t.showItemTag(this.rawData.id), this.edgeTags.forEach((i) => i.show({ force: !0 })))) : (super.onClick(), this.tag.visible ? (this.tag.hide(), this.edgeTags.forEach((i) => i.hide())) : (this.tag.show({ force: !0 }), this.edgeTags.forEach((i) => i.show({ force: !0 })))), !0;
|
|
86
109
|
}
|
|
87
110
|
updateVisible() {
|
|
88
|
-
!this.visibles.some((
|
|
111
|
+
!this.visibles.some((i) => i === !1) ? this.model.visible = !0 : (this.tag.hide(), this.edgeTags.forEach((i) => i.hide()), this.model.visible = !1), this.five.needsRender = !0;
|
|
89
112
|
}
|
|
90
113
|
}
|
|
91
114
|
export {
|
|
92
|
-
|
|
115
|
+
Ii as ModelMakerBoxItem
|
|
93
116
|
};
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { SvelteComponent as L, init as S, safe_not_equal as q, append_styles as B, element as w, attr as _, set_style as o, insert as M, noop as C, detach as N, onMount as H, onDestroy as X, space as Y, text as j, toggle_class as m, append as c, listen as A, is_function as E, set_data as G, binding_callbacks as y } from "../../vendor/svelte/internal/index.js";
|
|
2
|
+
function J(i) {
|
|
3
|
+
B(i, "svelte-11sw1v", ".box-label-item.svelte-11sw1v{position:absolute;transform:translateY(-3.9375rem);cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:#fff}.box-label-item__container.svelte-11sw1v{position:relative;display:flex;align-items:flex-start}.text-wrapper.svelte-11sw1v{position:relative}.text-wrapper.panorama.svelte-11sw1v{margin-left:0.375rem;margin-top:-0.3125rem}.text-wrapper.mapview.svelte-11sw1v{margin-left:0.375rem;margin-top:-0.4375rem}.box-label-item__text.svelte-11sw1v{font-family:PingFangSC-Medium;font-weight:500;color:#ffffff;letter-spacing:0;text-shadow:0 0.125rem 0.75rem #0000004d;pointer-events:all;white-space:nowrap}.box-label-item__text.panorama.svelte-11sw1v{height:1rem;font-size:1rem;line-height:1rem}.box-label-item__text.mapview.svelte-11sw1v{height:0.7rem;font-size:0.7rem;line-height:0.7rem}.box-label-item__bar.svelte-11sw1v{position:relative;width:0.0625rem;height:3.4375rem;transform-origin:top;background-image:linear-gradient(0deg, #ffffff1a 0%, #ffffff 100%);box-shadow:0 0.125rem 0.625rem 0 #0000004d;border-radius:0.03125rem}.box-label-item__dot.svelte-11sw1v{position:absolute;bottom:-0.625rem;left:50%;transform:translateX(-50%);width:0.25rem;height:0.25rem;background:#ffffff;box-shadow:0 0 0.3125rem 0 #ffffff;border-radius:50%}");
|
|
4
|
+
}
|
|
5
|
+
function D(i) {
|
|
6
|
+
let t, e, f, l, a, d, b, v;
|
|
7
|
+
return {
|
|
8
|
+
c() {
|
|
9
|
+
t = w("div"), e = w("div"), e.innerHTML = '<div class="box-label-item__dot svelte-11sw1v"></div>', f = Y(), l = w("div"), a = w("span"), d = j(
|
|
10
|
+
/*content*/
|
|
11
|
+
i[0]
|
|
12
|
+
), _(e, "class", "box-label-item__bar svelte-11sw1v"), _(a, "class", "box-label-item__text svelte-11sw1v"), m(
|
|
13
|
+
a,
|
|
14
|
+
"panorama",
|
|
15
|
+
/*isPanoramaMode*/
|
|
16
|
+
i[9]
|
|
17
|
+
), m(a, "mapview", !/*isPanoramaMode*/
|
|
18
|
+
i[9]), _(l, "class", "text-wrapper svelte-11sw1v"), m(
|
|
19
|
+
l,
|
|
20
|
+
"panorama",
|
|
21
|
+
/*isPanoramaMode*/
|
|
22
|
+
i[9]
|
|
23
|
+
), m(l, "mapview", !/*isPanoramaMode*/
|
|
24
|
+
i[9]), _(t, "class", "box-label-item__container svelte-11sw1v");
|
|
25
|
+
},
|
|
26
|
+
m(s, r) {
|
|
27
|
+
M(s, t, r), c(t, e), i[14](e), c(t, f), c(t, l), c(l, a), c(a, d), i[15](a), b || (v = A(a, "click", function() {
|
|
28
|
+
E(
|
|
29
|
+
/*onClick*/
|
|
30
|
+
i[4]
|
|
31
|
+
) && i[4].apply(this, arguments);
|
|
32
|
+
}), b = !0);
|
|
33
|
+
},
|
|
34
|
+
p(s, r) {
|
|
35
|
+
i = s, r & /*content*/
|
|
36
|
+
1 && G(
|
|
37
|
+
d,
|
|
38
|
+
/*content*/
|
|
39
|
+
i[0]
|
|
40
|
+
), r & /*isPanoramaMode*/
|
|
41
|
+
512 && m(
|
|
42
|
+
a,
|
|
43
|
+
"panorama",
|
|
44
|
+
/*isPanoramaMode*/
|
|
45
|
+
i[9]
|
|
46
|
+
), r & /*isPanoramaMode*/
|
|
47
|
+
512 && m(a, "mapview", !/*isPanoramaMode*/
|
|
48
|
+
i[9]), r & /*isPanoramaMode*/
|
|
49
|
+
512 && m(
|
|
50
|
+
l,
|
|
51
|
+
"panorama",
|
|
52
|
+
/*isPanoramaMode*/
|
|
53
|
+
i[9]
|
|
54
|
+
), r & /*isPanoramaMode*/
|
|
55
|
+
512 && m(l, "mapview", !/*isPanoramaMode*/
|
|
56
|
+
i[9]);
|
|
57
|
+
},
|
|
58
|
+
d(s) {
|
|
59
|
+
s && N(t), i[14](null), i[15](null), b = !1, v();
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function K(i) {
|
|
64
|
+
let t, e = !/*rendererIfNeed*/
|
|
65
|
+
i[5] && D(i);
|
|
66
|
+
return {
|
|
67
|
+
c() {
|
|
68
|
+
t = w("div"), e && e.c(), _(t, "class", "box-label-item svelte-11sw1v"), o(
|
|
69
|
+
t,
|
|
70
|
+
"z-index",
|
|
71
|
+
/*zIndex*/
|
|
72
|
+
i[2]
|
|
73
|
+
), o(
|
|
74
|
+
t,
|
|
75
|
+
"transform",
|
|
76
|
+
/*transform*/
|
|
77
|
+
i[3]
|
|
78
|
+
), o(
|
|
79
|
+
t,
|
|
80
|
+
"opacity",
|
|
81
|
+
/*opacity*/
|
|
82
|
+
i[1]
|
|
83
|
+
), o(
|
|
84
|
+
t,
|
|
85
|
+
"visibility",
|
|
86
|
+
/*visibility*/
|
|
87
|
+
i[10]
|
|
88
|
+
);
|
|
89
|
+
},
|
|
90
|
+
m(f, l) {
|
|
91
|
+
M(f, t, l), e && e.m(t, null), i[16](t);
|
|
92
|
+
},
|
|
93
|
+
p(f, [l]) {
|
|
94
|
+
/*rendererIfNeed*/
|
|
95
|
+
f[5] ? e && (e.d(1), e = null) : e ? e.p(f, l) : (e = D(f), e.c(), e.m(t, null)), l & /*zIndex*/
|
|
96
|
+
4 && o(
|
|
97
|
+
t,
|
|
98
|
+
"z-index",
|
|
99
|
+
/*zIndex*/
|
|
100
|
+
f[2]
|
|
101
|
+
), l & /*transform*/
|
|
102
|
+
8 && o(
|
|
103
|
+
t,
|
|
104
|
+
"transform",
|
|
105
|
+
/*transform*/
|
|
106
|
+
f[3]
|
|
107
|
+
), l & /*opacity*/
|
|
108
|
+
2 && o(
|
|
109
|
+
t,
|
|
110
|
+
"opacity",
|
|
111
|
+
/*opacity*/
|
|
112
|
+
f[1]
|
|
113
|
+
), l & /*visibility*/
|
|
114
|
+
1024 && o(
|
|
115
|
+
t,
|
|
116
|
+
"visibility",
|
|
117
|
+
/*visibility*/
|
|
118
|
+
f[10]
|
|
119
|
+
);
|
|
120
|
+
},
|
|
121
|
+
i: C,
|
|
122
|
+
o: C,
|
|
123
|
+
d(f) {
|
|
124
|
+
f && N(t), e && e.d(), i[16](null);
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
function O(i, t, e) {
|
|
129
|
+
let f, { content: l } = t, { five: a = void 0 } = t, { visible: d = !0 } = t, { opacity: b = 1 } = t, { zIndex: v = 0 } = t, { transform: s = void 0 } = t, { onClick: r = () => {
|
|
130
|
+
} } = t, { rendererIfNeed: g = void 0 } = t, { rendererData: p = void 0 } = t, u, k, z, I = !0, h;
|
|
131
|
+
const x = (n) => {
|
|
132
|
+
e(9, I = a.state.mode === "Panorama");
|
|
133
|
+
};
|
|
134
|
+
H(() => {
|
|
135
|
+
u && typeof g == "function" && (h = g(u, p)), a && (e(9, I = a.state.mode === "Panorama"), a.on("cameraUpdate", x));
|
|
136
|
+
}), X(() => {
|
|
137
|
+
h == null || h(), a == null || a.off("cameraUpdate", x);
|
|
138
|
+
});
|
|
139
|
+
function P(n) {
|
|
140
|
+
y[n ? "unshift" : "push"](() => {
|
|
141
|
+
k = n, e(7, k);
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
function U(n) {
|
|
145
|
+
y[n ? "unshift" : "push"](() => {
|
|
146
|
+
z = n, e(8, z);
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
function F(n) {
|
|
150
|
+
y[n ? "unshift" : "push"](() => {
|
|
151
|
+
u = n, e(6, u);
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
return i.$$set = (n) => {
|
|
155
|
+
"content" in n && e(0, l = n.content), "five" in n && e(11, a = n.five), "visible" in n && e(12, d = n.visible), "opacity" in n && e(1, b = n.opacity), "zIndex" in n && e(2, v = n.zIndex), "transform" in n && e(3, s = n.transform), "onClick" in n && e(4, r = n.onClick), "rendererIfNeed" in n && e(5, g = n.rendererIfNeed), "rendererData" in n && e(13, p = n.rendererData);
|
|
156
|
+
}, i.$$.update = () => {
|
|
157
|
+
i.$$.dirty & /*visible*/
|
|
158
|
+
4096 && e(10, f = d ? "visible" : "hidden");
|
|
159
|
+
}, [
|
|
160
|
+
l,
|
|
161
|
+
b,
|
|
162
|
+
v,
|
|
163
|
+
s,
|
|
164
|
+
r,
|
|
165
|
+
g,
|
|
166
|
+
u,
|
|
167
|
+
k,
|
|
168
|
+
z,
|
|
169
|
+
I,
|
|
170
|
+
f,
|
|
171
|
+
a,
|
|
172
|
+
d,
|
|
173
|
+
p,
|
|
174
|
+
P,
|
|
175
|
+
U,
|
|
176
|
+
F
|
|
177
|
+
];
|
|
178
|
+
}
|
|
179
|
+
class R extends L {
|
|
180
|
+
constructor(t) {
|
|
181
|
+
super(), S(
|
|
182
|
+
this,
|
|
183
|
+
t,
|
|
184
|
+
O,
|
|
185
|
+
K,
|
|
186
|
+
q,
|
|
187
|
+
{
|
|
188
|
+
content: 0,
|
|
189
|
+
five: 11,
|
|
190
|
+
visible: 12,
|
|
191
|
+
opacity: 1,
|
|
192
|
+
zIndex: 2,
|
|
193
|
+
transform: 3,
|
|
194
|
+
onClick: 4,
|
|
195
|
+
rendererIfNeed: 5,
|
|
196
|
+
rendererData: 13
|
|
197
|
+
},
|
|
198
|
+
J
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
export {
|
|
203
|
+
R as default
|
|
204
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponentTyped as default } from 'svelte/internal';
|
|
@@ -1,27 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { LabelItem as
|
|
1
|
+
import n from "./Text.js";
|
|
2
|
+
import { LabelItem as p } from "../../components/AreaLabel/LabelItem.js";
|
|
3
|
+
import m from "./BoxLabelItem.js";
|
|
3
4
|
import "../../vendor/svelte/internal/index.js";
|
|
4
5
|
import "../../components/AreaLabel/Assets/roomLabelBg.js";
|
|
5
6
|
import "../../shared-utils/math/rad2Deg.js";
|
|
6
|
-
const
|
|
7
|
+
const s = (e, r) => {
|
|
7
8
|
var t;
|
|
8
|
-
const o = new
|
|
9
|
+
const o = new n({
|
|
9
10
|
target: e,
|
|
10
11
|
props: { text: (t = r.rawData) == null ? void 0 : t.name }
|
|
11
12
|
});
|
|
12
13
|
return () => o.$destroy();
|
|
13
|
-
},
|
|
14
|
+
}, c = (e, r, o) => {
|
|
15
|
+
var a;
|
|
16
|
+
const t = new p({
|
|
17
|
+
target: e,
|
|
18
|
+
props: { content: (a = r.rawData) == null ? void 0 : a.name, five: o }
|
|
19
|
+
});
|
|
20
|
+
return () => t.$destroy();
|
|
21
|
+
}, i = (e, r, o) => {
|
|
14
22
|
var a;
|
|
15
23
|
const t = new m({
|
|
16
24
|
target: e,
|
|
17
25
|
props: { content: (a = r.rawData) == null ? void 0 : a.name, five: o }
|
|
18
26
|
});
|
|
19
27
|
return () => t.$destroy();
|
|
20
|
-
},
|
|
21
|
-
box:
|
|
22
|
-
triangles:
|
|
23
|
-
prism:
|
|
28
|
+
}, R = {
|
|
29
|
+
box: i,
|
|
30
|
+
triangles: s,
|
|
31
|
+
prism: c
|
|
24
32
|
};
|
|
25
33
|
export {
|
|
26
|
-
|
|
34
|
+
R as tagRendererMap
|
|
27
35
|
};
|
|
@@ -6,6 +6,7 @@ import type { LineStyle } from '../typings/style';
|
|
|
6
6
|
import type { ColoredMeshStyle } from '../utils/three/ColoredMesh';
|
|
7
7
|
import ColoredMesh from '../utils/three/ColoredMesh';
|
|
8
8
|
import { PrismGeometry } from '../../shared-utils/three/core/PrismGeometry';
|
|
9
|
+
import { LineMesh } from './Line';
|
|
9
10
|
export type PrismStyle = ColoredMeshStyle & LineStyle;
|
|
10
11
|
export interface PrismData extends AreaData {
|
|
11
12
|
heightPoint: AnyPosition;
|
|
@@ -48,10 +49,14 @@ export declare class PrismMesh extends IObject3D {
|
|
|
48
49
|
prismMesh: ColoredMesh & {
|
|
49
50
|
geometry: PrismGeometry;
|
|
50
51
|
};
|
|
51
|
-
|
|
52
|
+
edgeMesh: LineMesh;
|
|
52
53
|
paramStyle: Partial<PrismStyle>;
|
|
53
54
|
constructor(params?: Partial<PrismData & PrismStyle>);
|
|
54
55
|
setStyle(params?: Partial<PrismStyle>): void;
|
|
56
|
+
/**
|
|
57
|
+
* Check if the prism is a box (has 4 bottom positions)
|
|
58
|
+
*/
|
|
59
|
+
isBox(): boolean;
|
|
55
60
|
setPoints(params: Partial<PrismData>): void;
|
|
56
61
|
highlight(): void;
|
|
57
62
|
unhighlight(): void;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var b = Object.defineProperty;
|
|
2
2
|
var d = Object.getOwnPropertySymbols;
|
|
3
3
|
var C = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var c = (o,
|
|
5
|
-
for (var
|
|
6
|
-
C.call(
|
|
4
|
+
var c = (o, e, t) => e in o ? b(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, a = (o, e) => {
|
|
5
|
+
for (var t in e || (e = {}))
|
|
6
|
+
C.call(e, t) && c(o, t, e[t]);
|
|
7
7
|
if (d)
|
|
8
|
-
for (var
|
|
9
|
-
w.call(
|
|
8
|
+
for (var t of d(e))
|
|
9
|
+
w.call(e, t) && c(o, t, e[t]);
|
|
10
10
|
return o;
|
|
11
11
|
};
|
|
12
|
-
var s = (o,
|
|
12
|
+
var s = (o, e, t) => (c(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
13
|
import { IObject3D as V } from "../../shared-utils/three/IObject3D.js";
|
|
14
14
|
import { anyPositionToVector3 as f } from "../../shared-utils/positionToVector3.js";
|
|
15
15
|
import * as i from "three";
|
|
@@ -18,9 +18,9 @@ import { ColoredMesh as A } from "../utils/three/ColoredMesh.js";
|
|
|
18
18
|
import { PrismGeometry as S } from "../../shared-utils/three/core/PrismGeometry.js";
|
|
19
19
|
import { triangleArea as E, triangleCenter as W } from "../../shared-utils/three/geometryUtil.js";
|
|
20
20
|
import { LineMesh as v } from "./Line.js";
|
|
21
|
-
import { LineGeometry as
|
|
21
|
+
import { LineGeometry as x } from "../../shared-utils/three/core/LineGeometry.js";
|
|
22
22
|
class H extends V {
|
|
23
|
-
constructor(
|
|
23
|
+
constructor(t) {
|
|
24
24
|
super();
|
|
25
25
|
s(this, "name", "PrismMesh");
|
|
26
26
|
s(this, "_geometryInfoCache");
|
|
@@ -28,17 +28,17 @@ class H extends V {
|
|
|
28
28
|
s(this, "prismMesh", new A());
|
|
29
29
|
s(this, "edgeMesh", new v());
|
|
30
30
|
s(this, "paramStyle");
|
|
31
|
-
this.prismMesh.name = "PrismMesh", this.prismMesh.geometry = new S(), this.edgeMesh.name = "EdgeMesh", this.addIfNotExists(this.prismMesh, this.edgeMesh),
|
|
31
|
+
this.prismMesh.name = "PrismMesh", this.prismMesh.geometry = new S(), this.edgeMesh.name = "EdgeMesh", this.addIfNotExists(this.prismMesh, this.edgeMesh), t && this.setPoints(t), this.setStyle(t);
|
|
32
32
|
}
|
|
33
33
|
get topPosition() {
|
|
34
34
|
return new i.Vector3().fromArray(this.prismMesh.geometry.topPosition);
|
|
35
35
|
}
|
|
36
36
|
get bottomPositions() {
|
|
37
|
-
return this.prismMesh.geometry.bottomPositions.map((
|
|
37
|
+
return this.prismMesh.geometry.bottomPositions.map((t) => new i.Vector3().fromArray(t));
|
|
38
38
|
}
|
|
39
39
|
get topPositions() {
|
|
40
|
-
const
|
|
41
|
-
return this.bottomPositions.map((r) => r.clone().sub(
|
|
40
|
+
const t = this.bottomPositions[0].clone().sub(this.topPosition);
|
|
41
|
+
return this.bottomPositions.map((r) => r.clone().sub(t));
|
|
42
42
|
}
|
|
43
43
|
get style() {
|
|
44
44
|
return {
|
|
@@ -66,23 +66,23 @@ class H extends V {
|
|
|
66
66
|
return this.localCenter.clone();
|
|
67
67
|
}
|
|
68
68
|
get localCenter() {
|
|
69
|
-
var
|
|
70
|
-
return (
|
|
69
|
+
var t;
|
|
70
|
+
return (t = this.geometryInfo.center.clone()) != null ? t : new i.Vector3(9999, 9999, 9999);
|
|
71
71
|
}
|
|
72
72
|
get geometryInfo() {
|
|
73
73
|
if (this.geometryInfoNeedUpdate) {
|
|
74
74
|
this.geometryInfoNeedUpdate = !1;
|
|
75
|
-
const
|
|
76
|
-
if (!
|
|
75
|
+
const t = this.prismMesh.geometry.bottomPositions, r = this.prismMesh.geometry.topPosition;
|
|
76
|
+
if (!t || t.length < 3 || !r) {
|
|
77
77
|
this._geometryInfoCache = void 0;
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
|
-
const n =
|
|
81
|
-
if (!(h >=
|
|
80
|
+
const n = t.map((l, h) => {
|
|
81
|
+
if (!(h >= t.length - 2))
|
|
82
82
|
return [
|
|
83
|
-
new i.Vector3().fromArray(
|
|
84
|
-
new i.Vector3().fromArray(
|
|
85
|
-
new i.Vector3().fromArray(
|
|
83
|
+
new i.Vector3().fromArray(t[0]),
|
|
84
|
+
new i.Vector3().fromArray(t[h + 1]),
|
|
85
|
+
new i.Vector3().fromArray(t[h + 2])
|
|
86
86
|
];
|
|
87
87
|
}).filter(Boolean);
|
|
88
88
|
if (n.length === 0) {
|
|
@@ -95,7 +95,7 @@ class H extends V {
|
|
|
95
95
|
g += y, m.add(P);
|
|
96
96
|
}
|
|
97
97
|
m = m.divideScalar(g);
|
|
98
|
-
const u = new i.Vector3().fromArray(r).sub(new i.Vector3().fromArray(
|
|
98
|
+
const u = new i.Vector3().fromArray(r).sub(new i.Vector3().fromArray(t[0])), M = m.clone().add(u.divideScalar(2));
|
|
99
99
|
this._geometryInfoCache = { center: M };
|
|
100
100
|
}
|
|
101
101
|
return this._geometryInfoCache;
|
|
@@ -112,15 +112,22 @@ class H extends V {
|
|
|
112
112
|
get lineColor() {
|
|
113
113
|
return this.edgeMesh.color;
|
|
114
114
|
}
|
|
115
|
-
setStyle(
|
|
116
|
-
this.paramStyle = a(a({}, this.paramStyle),
|
|
115
|
+
setStyle(t = {}) {
|
|
116
|
+
this.paramStyle = a(a({}, this.paramStyle), t), this.prismMesh.setStyle(this.paramStyle), this.edgeMesh.setStyle(this.paramStyle);
|
|
117
117
|
}
|
|
118
|
-
|
|
118
|
+
/**
|
|
119
|
+
* Check if the prism is a box (has 4 bottom positions)
|
|
120
|
+
*/
|
|
121
|
+
isBox() {
|
|
122
|
+
const t = this.prismMesh.geometry.bottomPositions;
|
|
123
|
+
return t && t.length === 4;
|
|
124
|
+
}
|
|
125
|
+
setPoints(t) {
|
|
119
126
|
var r;
|
|
120
127
|
this.prismMesh.geometry.setPosition({
|
|
121
|
-
bottomPositions: (r =
|
|
122
|
-
topPosition:
|
|
123
|
-
}), this.edgeMesh.geometry = new
|
|
128
|
+
bottomPositions: (r = t.points) == null ? void 0 : r.map(f).map((n) => n.toArray()),
|
|
129
|
+
topPosition: t.heightPoint ? f(t.heightPoint).toArray() : void 0
|
|
130
|
+
}), this.edgeMesh.geometry = new x().fromEdgesGeometry(new i.EdgesGeometry(this.prismMesh.geometry)), this.geometryInfoNeedUpdate = !0;
|
|
124
131
|
}
|
|
125
132
|
highlight() {
|
|
126
133
|
this.prismMesh.highlight();
|
|
@@ -128,8 +135,8 @@ class H extends V {
|
|
|
128
135
|
unhighlight() {
|
|
129
136
|
this.prismMesh.unhighlight();
|
|
130
137
|
}
|
|
131
|
-
raycast(
|
|
132
|
-
return this.children.forEach((n) => I(n,
|
|
138
|
+
raycast(t, r) {
|
|
139
|
+
return this.children.forEach((n) => I(n, t, r, !0)), !1;
|
|
133
140
|
}
|
|
134
141
|
}
|
|
135
142
|
export {
|