@realsee/dnalogel 3.54.1 → 3.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/ModelMakerPlugin/item/baseItem.d.ts +1 -0
- package/dist/ModelMakerPlugin/item/prismItem.d.ts +7 -0
- package/dist/Sculpt/Meshes/Line.d.ts +4 -4
- package/dist/Sculpt/Objects/Base/Editor.d.ts +2 -0
- package/dist/Sculpt/typings/style.d.ts +15 -5
- package/dist/index.cjs.js +253 -54
- package/dist/index.js +4661 -4291
- package/dist/index.umd.js +242 -43
- package/dist/shared-utils/Object3DHelper/index.d.ts +4 -0
- package/dist/shared-utils/five/FiveLine.d.ts +1 -28
- package/dist/shared-utils/three/core/Five_LineMaterial2.d.ts +20 -0
- package/dist/shared-utils/three/core/Line2.d.ts +13 -0
- package/dist/shared-utils/three/core/LineMaterial.d.ts +15 -0
- package/dist/shared-utils/three/core/LineMaterial2.d.ts +15 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
- package/docs/classes/CSS3DRender.html +2 -2
- package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +2 -2
- package/docs/classes/ModelMakerPluginInstance.html +10 -10
- package/docs/classes/ModelRoomLabelController.html +2 -2
- package/docs/classes/MoveController.html +2 -2
- package/docs/classes/Object3DHelperController.html +2 -2
- package/docs/classes/PaintBrush.html +2 -2
- package/docs/classes/PanoMeasurePluginLine.html +2 -2
- package/docs/classes/PanoMeasurePluginModel.html +2 -2
- package/docs/classes/PanoMeasurePluginPoint.html +2 -2
- package/docs/classes/PanoMeasurePluginPolyline.html +2 -2
- package/docs/classes/PanoTagPluginController.html +2 -2
- package/docs/classes/Sculpt.html +7 -7
- package/docs/classes/Util.BetterTween.html +2 -2
- package/docs/classes/Util.FiveDomEvents.html +2 -2
- package/docs/classes/Util.FivePuppet.html +2 -2
- package/docs/classes/Util.Interval.html +2 -2
- package/docs/classes/Util.LightTag.html +2 -2
- package/docs/classes/Util.LineSegments.html +2 -2
- package/docs/classes/Util.Magnifier.html +2 -2
- package/docs/classes/Util.Object3D.html +2 -2
- package/docs/classes/Util.PointHelper.html +2 -2
- package/docs/classes/Util.PointSelector.html +2 -2
- package/docs/classes/Util.PointSelectorHelper.html +2 -2
- package/docs/classes/Util.Rectangle.html +2 -2
- package/docs/classes/Util.sculpt.BaseEditor.html +2 -2
- package/docs/classes/Util.sculpt.BoxMesh.html +3 -3
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +5 -4
- package/docs/classes/Util.sculpt.CircleMesh.html +4 -4
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +5 -4
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +3 -3
- package/docs/classes/Util.sculpt.CylinderMesh.html +3 -3
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +5 -4
- package/docs/classes/Util.sculpt.LineMesh.html +6 -6
- package/docs/classes/Util.sculpt.PointMesh.html +2 -2
- package/docs/classes/Util.sculpt.PolygonMesh.html +5 -5
- package/docs/classes/Util.sculpt.PrismMesh.html +3 -3
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +5 -4
- package/docs/classes/Util.sculpt.RectangleMesh.html +5 -5
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +5 -4
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +3 -3
- package/docs/classes/WalkController.html +2 -2
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +2 -2
- package/docs/enums/DIRECTION.html +2 -2
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/DimensionType.html +2 -2
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/PaintBrushTypeEnum.html +2 -2
- package/docs/enums/PointType.html +2 -2
- package/docs/enums/Rotation.html +2 -2
- package/docs/functions/AreaMakerPlugin.html +1 -1
- package/docs/functions/CSS3DRenderPlugin.html +1 -1
- package/docs/functions/CameraMovementPlugin.html +2 -2
- package/docs/functions/CruisePlugin.html +1 -1
- package/docs/functions/CurrentPanoImagePlugin.html +1 -1
- package/docs/functions/GuideLinePlugin.html +1 -1
- package/docs/functions/ItemLabelPlugin.html +1 -1
- package/docs/functions/MapviewFloorplanPlugin.html +1 -1
- package/docs/functions/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.inside.html +1 -1
- package/docs/functions/Util.isAbsoluteURL.html +1 -1
- package/docs/functions/Util.isModelLike.html +1 -1
- package/docs/functions/Util.isNil.html +2 -2
- package/docs/functions/Util.isPanoramaLike.html +1 -1
- package/docs/functions/Util.lookObject.html +2 -2
- package/docs/functions/Util.lookPoint.html +2 -2
- package/docs/functions/Util.nextFrame.html +1 -1
- package/docs/functions/Util.notNil.html +2 -2
- package/docs/functions/Util.reblink.html +2 -2
- package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
- package/docs/functions/Util.sculpt.createBox.html +1 -1
- package/docs/functions/Util.sculpt.createCircle.html +1 -1
- package/docs/functions/Util.sculpt.createCylinder.html +1 -1
- package/docs/functions/Util.sculpt.createLine.html +2 -2
- package/docs/functions/Util.sculpt.createPoint.html +1 -1
- package/docs/functions/Util.sculpt.createPolygon.html +1 -1
- package/docs/functions/Util.sculpt.createPrism.html +1 -1
- package/docs/functions/Util.sculpt.createRectangle.html +2 -2
- package/docs/functions/Util.tag.html +1 -1
- package/docs/functions/Util.tweenProgress.html +1 -1
- package/docs/functions/Util.uuid.html +2 -2
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
- package/docs/functions/Util.worldBounding.html +1 -1
- package/docs/functions/Util.worldBoundingBox.html +1 -1
- package/docs/functions/Util.worldBoundingSphere.html +1 -1
- package/docs/functions/createPolyline.html +2 -2
- package/docs/functions/pluginFlag.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Config.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Params.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.State.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/ContentTypeMapInterface.html +2 -2
- package/docs/interfaces/CruisePluginTypes.Config.html +2 -2
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
- package/docs/interfaces/CruisePluginTypes.EventMap.html +2 -2
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +2 -2
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +2 -2
- package/docs/interfaces/FloorplanExtraObject.html +2 -2
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +2 -2
- package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
- package/docs/interfaces/FloorplanServerBounding.html +2 -2
- package/docs/interfaces/FloorplanServerComputedData.html +2 -2
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
- package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +2 -2
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +2 -2
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +2 -2
- package/docs/interfaces/GuideLinePluginType.EventMap.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +2 -2
- package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +2 -2
- package/docs/interfaces/HelperOffset.html +2 -2
- package/docs/interfaces/ImagePlaneGroup.html +2 -2
- package/docs/interfaces/ItemLabelPluginData.html +2 -2
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/MinMax.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.State.html +2 -2
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
- package/docs/interfaces/ModelViewPluginExportType.html +2 -2
- package/docs/interfaces/Object3DHelperState.html +2 -2
- package/docs/interfaces/ObjectHelperControllers.html +2 -2
- package/docs/interfaces/PaintBrushAction.html +2 -2
- package/docs/interfaces/PaintBrushConfigs.html +2 -2
- package/docs/interfaces/PaintBrushState.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +2 -2
- package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +2 -2
- package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginState.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +2 -2
- package/docs/interfaces/PluginEventMap.html +2 -2
- package/docs/interfaces/Point.html +2 -2
- package/docs/interfaces/Room.html +2 -2
- package/docs/interfaces/RoomInfo.html +2 -2
- package/docs/interfaces/RoomLabel.html +2 -2
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +2 -2
- package/docs/interfaces/State.html +2 -2
- package/docs/interfaces/TagCacheInterface.html +2 -2
- package/docs/interfaces/TagConfig.html +2 -2
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconUrl.html +2 -2
- package/docs/interfaces/TagObjectGroup.html +2 -2
- package/docs/interfaces/TagStyle.html +2 -2
- package/docs/interfaces/Tags.html +2 -2
- package/docs/interfaces/TemporaryState.html +2 -2
- package/docs/interfaces/Util.AnimeInstance.html +2 -2
- package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
- package/docs/interfaces/Util.EventHandlerConfig.html +2 -2
- package/docs/interfaces/Util.FiveDomEvent.html +2 -2
- package/docs/interfaces/Util.FiveDomEventMap.html +2 -2
- package/docs/interfaces/Util.MagnifierParameter.html +2 -2
- package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.PointIntersection.html +2 -2
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +2 -2
- package/docs/modules/AreaMakerPluginType.html +2 -2
- package/docs/modules/CruisePluginTypes.html +2 -2
- package/docs/modules/CurrentPanoImagePluginType.html +2 -2
- package/docs/modules/GuideLineItem.html +2 -2
- package/docs/modules/GuideLineModeItem.html +2 -2
- package/docs/modules/GuideLinePluginType.html +2 -2
- package/docs/modules/ModelMakerPluginType.html +2 -2
- package/docs/modules/PanoVideoPluginType.html +2 -2
- package/docs/modules/SculptData.html +2 -2
- package/docs/modules/Util.html +2 -2
- package/docs/modules/Util.sculpt.html +2 -2
- package/docs/modules.html +2 -2
- package/docs/types/AddObject3DHelperConfig.html +2 -2
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
- package/docs/types/ArrayPosition.html +1 -1
- package/docs/types/AudioAppearance.html +1 -1
- package/docs/types/CSS3DRenderExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
- package/docs/types/ClassFunctionParameters.html +1 -1
- package/docs/types/Color.html +1 -1
- package/docs/types/ContentTypeConfigKey.html +1 -1
- package/docs/types/ContentTypeConfigKeySplit.html +1 -1
- package/docs/types/ContentTypeMap.html +1 -1
- package/docs/types/Create3DDomContainerReturnType.html +1 -1
- package/docs/types/Create3DElementReturnType.html +1 -1
- package/docs/types/CruisePluginExportType.html +1 -1
- package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
- package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
- package/docs/types/DeprecatedTagProperty.html +2 -2
- package/docs/types/Direction-1.html +1 -1
- package/docs/types/Direction4.html +1 -1
- package/docs/types/ElementRenderer.html +2 -2
- package/docs/types/FloorplanRuleLabels.html +2 -2
- package/docs/types/FloorplanServerRuleLabels.html +1 -1
- package/docs/types/GuideLinePluginExportType.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
- package/docs/types/GuideLinePluginType.PathItem.html +2 -2
- package/docs/types/GuideLinePluginType.PluginData.html +2 -2
- package/docs/types/HelperEventMap.html +1 -1
- package/docs/types/InternalHelperEventMap.html +1 -1
- package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/MediaData.html +2 -2
- package/docs/types/MediaStore.html +1 -1
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
- package/docs/types/ModelId.html +1 -1
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
- package/docs/types/ModelMakerPluginType.ItemType.html +1 -1
- package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
- package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
- package/docs/types/MoveArgs.html +2 -2
- package/docs/types/MoveOpts.html +2 -2
- package/docs/types/Object3DHelperEventMap.html +1 -1
- package/docs/types/ObjectFit.html +1 -1
- package/docs/types/PaintBrushEventMap.html +1 -1
- package/docs/types/PanoCompassPluginData.html +1 -1
- package/docs/types/PanoCompassPluginExportType.html +1 -1
- package/docs/types/PanoCompassPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
- package/docs/types/PanoIndex.html +1 -1
- package/docs/types/PanoMeasurePluginEvent.html +1 -1
- package/docs/types/PanoMeasureReturnType.html +1 -1
- package/docs/types/PanoSpatialTagPluginId.html +1 -1
- package/docs/types/PanoTagPluginExportInterface.html +1 -1
- package/docs/types/PanoTagPluginParamsInterface.html +1 -1
- package/docs/types/PanoVideoPluginParameterType.html +1 -1
- package/docs/types/PanoVideoPluginReturnType.html +1 -1
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
- package/docs/types/PipelinePluginParameterType.html +1 -1
- package/docs/types/PipelinePluginReturnType.html +1 -1
- package/docs/types/PlaneTag.html +2 -2
- package/docs/types/Point2DTag.html +2 -2
- package/docs/types/Point3DTag.html +2 -2
- package/docs/types/PointTagInstance.html +1 -1
- package/docs/types/Position.html +1 -1
- package/docs/types/PositionFrom.html +1 -1
- package/docs/types/RotateArgs.html +2 -2
- package/docs/types/RotateOpts.html +2 -2
- package/docs/types/RuleLabelsKey.html +1 -1
- package/docs/types/RuleLabelsValue.html +1 -1
- package/docs/types/ScaleCallback.html +1 -1
- package/docs/types/ScalePosition.html +2 -2
- package/docs/types/SculptData.BoxData.html +1 -1
- package/docs/types/SculptData.CircleData.html +1 -1
- package/docs/types/SculptData.CylinderData.html +1 -1
- package/docs/types/SculptData.PointData.html +1 -1
- package/docs/types/SculptData.PolygonData.html +1 -1
- package/docs/types/SculptData.PolylineData.html +1 -1
- package/docs/types/SculptData.PrismData.html +1 -1
- package/docs/types/SculptData.RectangleData.html +1 -1
- package/docs/types/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.ActionIfNoModelUnderMouse.html +1 -1
- 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/AreaMakerPlugin/Controller.js +19 -16
- package/libs/AreaMakerPlugin/index.js +6 -3
- package/libs/AreaMakerPlugin/utils/Item.js +6 -3
- package/libs/CSS3DRenderPlugin/Controller.js +6 -3
- package/libs/CSS3DRenderPlugin/index.js +9 -6
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +6 -3
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +38 -35
- package/libs/CruisePlugin/BaseController.js +23 -20
- package/libs/CruisePlugin/Move.js +7 -4
- package/libs/CruisePlugin/Work.js +7 -4
- package/libs/CruisePlugin/index.js +10 -7
- package/libs/CurrentPanoImagePlugin/Controller.js +6 -3
- package/libs/CurrentPanoImagePlugin/index.js +7 -4
- package/libs/GuideLinePlugin/Controller.js +8 -5
- package/libs/GuideLinePlugin/GuideLineItem.js +6 -3
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +6 -3
- package/libs/GuideLinePlugin/index.js +10 -7
- package/libs/ModelMakerPlugin/Controller.js +120 -126
- package/libs/ModelMakerPlugin/index.js +6 -3
- package/libs/ModelMakerPlugin/item/baseItem.d.ts +1 -0
- package/libs/ModelMakerPlugin/item/baseItem.js +21 -18
- package/libs/ModelMakerPlugin/item/prismItem.d.ts +7 -0
- package/libs/ModelMakerPlugin/item/prismItem.js +86 -22
- package/libs/ModelTVVideoPlugin/Plugin.js +9 -6
- package/libs/ModelTVVideoPlugin/index.js +8 -5
- package/libs/Object3DHelperPlugin/Controller.js +6 -3
- package/libs/Object3DHelperPlugin/index.js +9 -6
- package/libs/PanoCompassPlugin/Controller.js +6 -3
- package/libs/PanoCompassPlugin/index.js +7 -4
- package/libs/PanoCursorRaycasterPlugin/index.js +3 -4
- package/libs/PanoDoorLabelPlugin/BaseController.js +6 -3
- package/libs/PanoDoorLabelPlugin/Controller.js +36 -33
- package/libs/PanoDoorLabelPlugin/index.js +7 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +7 -3
- package/libs/PanoMeasurePlugin/Components/Controller1.js +7 -3
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +2 -3
- package/libs/PanoMeasurePlugin/Controller/EditController.js +48 -44
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +2 -3
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +2 -3
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +18 -14
- package/libs/PanoMeasurePlugin/Controller/index.js +17 -13
- package/libs/PanoMeasurePlugin/Model/area.js +7 -3
- package/libs/PanoMeasurePlugin/Model/index.js +2 -3
- package/libs/PanoMeasurePlugin/Model/line.js +0 -1
- package/libs/PanoMeasurePlugin/Model/polyline.js +2 -3
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +4 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +14 -10
- package/libs/PanoMeasurePlugin/index.js +18 -14
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +6 -3
- package/libs/PanoMeasurePlugin/utils/line.js +2 -3
- package/libs/PanoRulerProPlugin/Controller.js +25 -22
- package/libs/PanoRulerProPlugin/RulerItems.js +6 -3
- package/libs/PanoRulerProPlugin/index.js +7 -4
- package/libs/PanoSpatialTagPlugin/Plugin.js +69 -66
- package/libs/PanoSpatialTagPlugin/index.js +6 -3
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +6 -3
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +6 -3
- package/libs/PanoTagPlugin/Components/Tag/index.js +6 -3
- package/libs/PanoTagPlugin/Components/TagContainer.js +6 -3
- package/libs/PanoTagPlugin/Components/TagItem.js +6 -3
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +14 -11
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +6 -3
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +6 -3
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +6 -3
- package/libs/PanoTagPlugin/controller/TagRender.js +6 -3
- package/libs/PanoTagPlugin/controller/TagUtil.js +8 -5
- package/libs/PanoTagPlugin/controller/index.js +9 -6
- package/libs/PanoTagPlugin/index.js +15 -12
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +6 -3
- package/libs/PanoVideoPlugin/Controller.js +25 -22
- package/libs/PanoVideoPlugin/VideoMeshController.js +10 -7
- package/libs/PanoVideoPlugin/index.js +9 -6
- package/libs/PipelinePlugin/Controller.js +20 -17
- package/libs/PipelinePlugin/index.js +7 -4
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +6 -3
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +6 -3
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +4 -1
- package/libs/Sculpt/Meshes/CircleWithEdge.js +22 -30
- package/libs/Sculpt/Meshes/Cylinder.js +4 -3
- package/libs/Sculpt/Meshes/Line.d.ts +4 -4
- package/libs/Sculpt/Meshes/Line.js +110 -107
- package/libs/Sculpt/Meshes/Point.js +5 -4
- package/libs/Sculpt/Meshes/Polygon.js +3 -2
- package/libs/Sculpt/Meshes/PolygonWithEdge.js +14 -14
- package/libs/Sculpt/Meshes/Polyline.js +20 -20
- package/libs/Sculpt/Meshes/Prism.js +48 -49
- package/libs/Sculpt/Meshes/Rectangle.js +4 -3
- package/libs/Sculpt/Meshes/RectangleWithEdge.js +18 -19
- package/libs/Sculpt/Objects/Base/Editor.d.ts +2 -0
- package/libs/Sculpt/Objects/Base/Editor.js +34 -28
- package/libs/Sculpt/Objects/Box/index.js +24 -24
- package/libs/Sculpt/Objects/Circle/index.js +25 -25
- package/libs/Sculpt/Objects/Cylinder/index.js +35 -35
- package/libs/Sculpt/Objects/Line/Editor.js +6 -5
- package/libs/Sculpt/Objects/Polygon/index.js +18 -18
- package/libs/Sculpt/Objects/Prism/index.js +25 -25
- package/libs/Sculpt/Objects/Rectangle/index.js +14 -14
- package/libs/Sculpt/index.js +3 -2
- package/libs/Sculpt/typings/style.d.ts +15 -5
- package/libs/Sculpt/typings/style.js +3 -2
- package/libs/Sculpt/utils/three/ColoredMesh.js +7 -6
- package/libs/base/BasePlugin.js +8 -7
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +6 -3
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +7 -4
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +25 -22
- package/libs/floorplan/ModelFloorplanPlugin/index.js +7 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +15 -12
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +7 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +6 -3
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +7 -4
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +148 -144
- package/libs/shared-utils/Object3DHelper/index.d.ts +4 -0
- package/libs/shared-utils/Object3DHelper/index.js +21 -13
- package/libs/shared-utils/five/FiveLine.d.ts +1 -28
- package/libs/shared-utils/five/FiveLine.js +3 -45
- package/libs/shared-utils/five/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/index.js +1 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/utils/PointHelper2.js +1 -1
- package/libs/shared-utils/three/core/Five_LineMaterial2.d.ts +20 -0
- package/libs/shared-utils/three/core/Five_LineMaterial2.js +307 -0
- package/libs/shared-utils/three/core/Line2.d.ts +13 -0
- package/libs/shared-utils/three/core/Line2.js +15 -0
- package/libs/shared-utils/three/core/LineMaterial.d.ts +15 -0
- package/libs/shared-utils/three/core/LineMaterial.js +40 -0
- package/libs/shared-utils/three/core/LineMaterial2.d.ts +15 -0
- package/libs/shared-utils/three/core/LineMaterial2.js +40 -0
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +1 -1
|
@@ -21,6 +21,7 @@ import "../../shared-utils/three/PointSelector/index.js";
|
|
|
21
21
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
22
22
|
import "@realsee/five/line";
|
|
23
23
|
import { notNil as C } from "../../shared-utils/isNil.js";
|
|
24
|
+
import "../../shared-utils/three/core/Five_LineMaterial2.js";
|
|
24
25
|
import "../../shared-utils/three/core/Sphere.js";
|
|
25
26
|
import { blink as O } from "../../shared-utils/three/blink.js";
|
|
26
27
|
import { BetterTween as _ } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
@@ -567,11 +568,11 @@ class R {
|
|
|
567
568
|
function H(m) {
|
|
568
569
|
return m.contentType === "Custom";
|
|
569
570
|
}
|
|
570
|
-
const
|
|
571
|
+
const ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
571
572
|
__proto__: null,
|
|
572
573
|
GuideLineModeItem: R
|
|
573
574
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
574
575
|
export {
|
|
575
576
|
R as GuideLineModeItem,
|
|
576
|
-
|
|
577
|
+
ue as GuideLineModeItem$1
|
|
577
578
|
};
|
|
@@ -8,6 +8,7 @@ import "../shared-utils/three/PointSelector/index.js";
|
|
|
8
8
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
9
9
|
import "@realsee/five/line";
|
|
10
10
|
import "../shared-utils/isNil.js";
|
|
11
|
+
import "../shared-utils/three/core/Five_LineMaterial2.js";
|
|
11
12
|
import "../shared-utils/three/core/Sphere.js";
|
|
12
13
|
import "../shared-utils/three/blink.js";
|
|
13
14
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
@@ -17,7 +18,7 @@ import "../PanoTagPlugin/controller/index.js";
|
|
|
17
18
|
import "./Components/Tag.js";
|
|
18
19
|
import "./utils/index.js";
|
|
19
20
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
20
|
-
import { GuideLineModeItem as
|
|
21
|
+
import { GuideLineModeItem as Qm } from "./GuideLineModeItem/index.js";
|
|
21
22
|
import "../vendor/polyline-normals/index.js";
|
|
22
23
|
import "../vendor/polyline-miter-util/index.js";
|
|
23
24
|
import "../vendor/gl-vec2/add.js";
|
|
@@ -58,13 +59,15 @@ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
|
58
59
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
59
60
|
import "../Sculpt/Meshes/Line.js";
|
|
60
61
|
import "../Sculpt/typings/style.js";
|
|
61
|
-
import "../shared-utils/five/FiveLine.js";
|
|
62
62
|
import "../shared-utils/three/IObject3D.js";
|
|
63
63
|
import "../Sculpt/utils/removeAllTag.js";
|
|
64
64
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
65
65
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
66
66
|
import "../shared-utils/util.js";
|
|
67
67
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
68
|
+
import "../shared-utils/three/core/LineMaterial.js";
|
|
69
|
+
import "../shared-utils/three/core/Line2.js";
|
|
70
|
+
import "../shared-utils/three/core/LineMaterial2.js";
|
|
68
71
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
69
72
|
import "../shared-utils/isTouchDevice.js";
|
|
70
73
|
import "../shared-utils/five/getPosition.js";
|
|
@@ -198,5 +201,5 @@ import "../PanoTagPlugin/Components/TagContainer.js";
|
|
|
198
201
|
import "../PanoTagPlugin/Components/TagItem.js";
|
|
199
202
|
import "../PanoTagPlugin/Components/Common/TagPoint.js";
|
|
200
203
|
export {
|
|
201
|
-
|
|
204
|
+
Qm as GuideLineModeItem
|
|
202
205
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import t from "./Controller.js";
|
|
2
|
-
import { GuideLineItem$1 as
|
|
3
|
-
import { GuideLineModeItem$1 as
|
|
2
|
+
import { GuideLineItem$1 as Gr } from "./GuideLineItem/index.js";
|
|
3
|
+
import { GuideLineModeItem$1 as lr } from "./GuideLineModeItem/index.js";
|
|
4
4
|
import "../base/BasePluginWithData.js";
|
|
5
5
|
import "../base/BasePlugin.js";
|
|
6
6
|
import "../shared-utils/Subscribe.js";
|
|
@@ -32,6 +32,7 @@ import "../shared-utils/three/centerPoint.js";
|
|
|
32
32
|
import "../shared-utils/three/getObjectVisible.js";
|
|
33
33
|
import "@realsee/five/line";
|
|
34
34
|
import "../shared-utils/isNil.js";
|
|
35
|
+
import "../shared-utils/three/core/Five_LineMaterial2.js";
|
|
35
36
|
import "../shared-utils/three/core/Sphere.js";
|
|
36
37
|
import "animejs";
|
|
37
38
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -45,13 +46,15 @@ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
|
45
46
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
46
47
|
import "../Sculpt/Meshes/Line.js";
|
|
47
48
|
import "../Sculpt/typings/style.js";
|
|
48
|
-
import "../shared-utils/five/FiveLine.js";
|
|
49
49
|
import "../shared-utils/three/IObject3D.js";
|
|
50
50
|
import "../Sculpt/utils/removeAllTag.js";
|
|
51
51
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
52
52
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
53
53
|
import "../shared-utils/util.js";
|
|
54
54
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
55
|
+
import "../shared-utils/three/core/LineMaterial.js";
|
|
56
|
+
import "../shared-utils/three/core/Line2.js";
|
|
57
|
+
import "../shared-utils/three/core/LineMaterial2.js";
|
|
55
58
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
56
59
|
import "../shared-utils/isTouchDevice.js";
|
|
57
60
|
import "../shared-utils/five/getPosition.js";
|
|
@@ -215,10 +218,10 @@ import "../shared-utils/five/changeMode.js";
|
|
|
215
218
|
import "../shared-utils/nearlyEqual.js";
|
|
216
219
|
import "../CruisePlugin/Move.js";
|
|
217
220
|
import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
218
|
-
const r = (i, o) => new t(i, o),
|
|
221
|
+
const r = (i, o) => new t(i, o), nr = r;
|
|
219
222
|
export {
|
|
220
|
-
|
|
221
|
-
|
|
223
|
+
Gr as GuideLineItem,
|
|
224
|
+
lr as GuideLineModeItem,
|
|
222
225
|
r as GuideLinePlugin,
|
|
223
|
-
|
|
226
|
+
nr as default
|
|
224
227
|
};
|
|
@@ -1,54 +1,55 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var D = Object.defineProperty;
|
|
2
|
+
var W = Object.getOwnPropertySymbols;
|
|
3
|
+
var j = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var b = (l, n, e) => n in l ? D(l, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[n] = e, g = (l, n) => {
|
|
5
5
|
for (var e in n || (n = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var e of
|
|
9
|
-
|
|
10
|
-
return
|
|
6
|
+
j.call(n, e) && b(l, e, n[e]);
|
|
7
|
+
if (W)
|
|
8
|
+
for (var e of W(n))
|
|
9
|
+
L.call(n, e) && b(l, e, n[e]);
|
|
10
|
+
return l;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
var h = (l, n, e) => (b(l, typeof n != "symbol" ? n + "" : n, e), e);
|
|
13
|
+
var E = (l, n, e) => new Promise((i, a) => {
|
|
14
|
+
var o = (t) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
16
|
+
s(e.next(t));
|
|
17
|
+
} catch (p) {
|
|
18
|
+
a(p);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, r = (t) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
22
|
+
s(e.throw(t));
|
|
23
|
+
} catch (p) {
|
|
24
|
+
a(p);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, s = (t) => t.done ? i(t.value) : Promise.resolve(t.value).then(o, r);
|
|
27
|
+
s((e = e.apply(l, n)).next());
|
|
28
28
|
});
|
|
29
|
-
import { Controller as
|
|
30
|
-
import * as
|
|
31
|
-
import { ModelMakerBoxItem as
|
|
32
|
-
import { PrismMesh as
|
|
33
|
-
import { anyPositionToVector3 as
|
|
34
|
-
import { PolygonWithEdgeMesh as
|
|
29
|
+
import { Controller as S } from "../base/BasePluginWithData.js";
|
|
30
|
+
import * as d from "three";
|
|
31
|
+
import { ModelMakerBoxItem as A } from "./item/boxItem.js";
|
|
32
|
+
import { PrismMesh as k } from "../Sculpt/Meshes/Prism.js";
|
|
33
|
+
import { anyPositionToVector3 as H } from "../shared-utils/positionToVector3.js";
|
|
34
|
+
import { PolygonWithEdgeMesh as B } from "../Sculpt/Meshes/PolygonWithEdge.js";
|
|
35
35
|
import "../shared-utils/tag.js";
|
|
36
36
|
import "hammerjs";
|
|
37
37
|
import "../shared-utils/three/PointSelector/index.js";
|
|
38
38
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
39
39
|
import "@realsee/five/line";
|
|
40
|
-
import { notNil as
|
|
41
|
-
import
|
|
40
|
+
import { notNil as T } from "../shared-utils/isNil.js";
|
|
41
|
+
import "../shared-utils/three/core/Five_LineMaterial2.js";
|
|
42
|
+
import { boxVertex as v } from "../shared-utils/three/boundingBox.js";
|
|
42
43
|
import "animejs";
|
|
43
|
-
import { waitFiveModelLoaded as
|
|
44
|
+
import { waitFiveModelLoaded as O } from "../shared-utils/five/fiveModelLoad.js";
|
|
44
45
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
45
46
|
import "../shared-utils/five/FivePuppet.js";
|
|
46
|
-
import { tagRendererMap as
|
|
47
|
-
import { ModelMakerPrismItem as
|
|
48
|
-
import { ModelMakerPolygonItem as
|
|
49
|
-
import { getFiveDomEvent as
|
|
50
|
-
import { fiveEveryReadyListener as
|
|
51
|
-
import { sleep as
|
|
47
|
+
import { tagRendererMap as z } from "./utils/tagRenderer.js";
|
|
48
|
+
import { ModelMakerPrismItem as F } from "./item/prismItem.js";
|
|
49
|
+
import { ModelMakerPolygonItem as G } from "./item/polygonItem.js";
|
|
50
|
+
import { getFiveDomEvent as Q } from "./utils/getFiveDomEvent.js";
|
|
51
|
+
import { fiveEveryReadyListener as q } from "../shared-utils/five/fiveEveryReadyListener.js";
|
|
52
|
+
import { sleep as N } from "../CruisePlugin/utils/sleep.js";
|
|
52
53
|
import "../base/BasePlugin.js";
|
|
53
54
|
import "../shared-utils/Subscribe.js";
|
|
54
55
|
import "../shared-utils/three/core/Sphere.js";
|
|
@@ -70,12 +71,14 @@ import "../shared-utils/three/getNormal.js";
|
|
|
70
71
|
import "../shared-utils/three/geometryUtil.js";
|
|
71
72
|
import "../shared-utils/three/centerPoint.js";
|
|
72
73
|
import "../Sculpt/Meshes/Line.js";
|
|
73
|
-
import "../shared-utils/five/FiveLine.js";
|
|
74
74
|
import "../Sculpt/utils/removeAllTag.js";
|
|
75
75
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
76
76
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
77
77
|
import "../shared-utils/util.js";
|
|
78
78
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
79
|
+
import "../shared-utils/three/core/LineMaterial.js";
|
|
80
|
+
import "../shared-utils/three/core/Line2.js";
|
|
81
|
+
import "../shared-utils/three/core/LineMaterial2.js";
|
|
79
82
|
import "../Sculpt/Meshes/Polyline.js";
|
|
80
83
|
import "../Sculpt/Meshes/LineWithDots.js";
|
|
81
84
|
import "../Sculpt/Meshes/Point.js";
|
|
@@ -115,153 +118,144 @@ import "./item/baseItem.js";
|
|
|
115
118
|
import "../shared-utils/three/addIfNotExists.js";
|
|
116
119
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
117
120
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
118
|
-
class
|
|
121
|
+
class Ft extends S {
|
|
119
122
|
constructor(e, i) {
|
|
120
|
-
var
|
|
123
|
+
var a, o;
|
|
121
124
|
super(e);
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
125
|
+
h(this, "state");
|
|
126
|
+
h(this, "items", []);
|
|
127
|
+
h(this, "group", new d.Group());
|
|
128
|
+
h(this, "data");
|
|
129
|
+
h(this, "tagRendererMap", {});
|
|
130
|
+
h(this, "fiveDomEvents");
|
|
131
|
+
h(this, "zFightingOffset", 0);
|
|
132
|
+
h(this, "tagWrapper");
|
|
133
|
+
h(this, "occlusionVisibility");
|
|
134
|
+
h(this, "occlusionMode");
|
|
135
|
+
h(this, "fiveEveryReadyListenerDisposer");
|
|
136
|
+
h(this, "onFiveModeChange", (e) => {
|
|
134
137
|
const i = this.occlusionVisibility;
|
|
135
|
-
Array.isArray(i) && this.items.forEach((
|
|
136
|
-
|
|
138
|
+
Array.isArray(i) && this.items.forEach((a) => {
|
|
139
|
+
a.model.setStyle instanceof Function && a.model.setStyle({ occlusionVisibility: i.includes(e) });
|
|
137
140
|
});
|
|
138
141
|
});
|
|
139
|
-
|
|
142
|
+
h(this, "handleEnable", () => {
|
|
140
143
|
var e, i;
|
|
141
|
-
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.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveEveryReady(), this.five.on("modeChange", this.onFiveModeChange), this.fiveEveryReadyListenerDisposer =
|
|
144
|
+
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.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveEveryReady(), this.five.on("modeChange", this.onFiveModeChange), this.fiveEveryReadyListenerDisposer = q(this.five, this.onFiveEveryReady);
|
|
142
145
|
});
|
|
143
|
-
|
|
146
|
+
h(this, "handleDisable", () => {
|
|
144
147
|
this.five.scene.remove(this.group), this.tagWrapper.remove(), this.five.needsRender = !0, this.five.off("modeChange", this.onFiveModeChange), this.fiveEveryReadyListenerDisposer();
|
|
145
148
|
});
|
|
146
|
-
|
|
149
|
+
h(this, "onFiveEveryReady", () => E(this, null, function* () {
|
|
147
150
|
if (this.five.state.mode === "Panorama")
|
|
148
151
|
return;
|
|
149
|
-
const e = this.items.filter((t) => t instanceof
|
|
150
|
-
yield
|
|
151
|
-
const
|
|
152
|
+
const e = this.items.filter((t) => t instanceof F).map((t) => t.tag), i = e.filter((t) => t.position && t.visible && t.enabled);
|
|
153
|
+
yield N(0);
|
|
154
|
+
const a = this.five.camera.position.clone(), o = i.sort((t, p) => a.distanceTo(t.position) - a.distanceTo(p.position)), r = [], s = (t, p) => !(t.right < p.left || t.left > p.right || t.bottom < p.top || t.top > p.bottom);
|
|
152
155
|
e.forEach((t) => {
|
|
153
156
|
t.visibles[2] = void 0;
|
|
154
|
-
}),
|
|
157
|
+
}), o.forEach((t) => {
|
|
155
158
|
if (t.visibles[1] === !1)
|
|
156
159
|
return;
|
|
157
|
-
const
|
|
158
|
-
if (!
|
|
160
|
+
const p = t.container.getElementsByClassName("room-label-item__text")[0];
|
|
161
|
+
if (!p)
|
|
159
162
|
return;
|
|
160
|
-
const
|
|
161
|
-
|
|
163
|
+
const m = p.getBoundingClientRect();
|
|
164
|
+
r.every((c) => !s(c.boundingClientRect, m)) ? (r.push({ tag: t, boundingClientRect: m }), t.visibles[2] = !0) : t.visibles[2] = !1, t.needsRender = !0;
|
|
162
165
|
});
|
|
163
166
|
}));
|
|
164
|
-
|
|
167
|
+
h(this, "updateTagRenderer", () => {
|
|
165
168
|
this.items.forEach((e) => {
|
|
166
|
-
var
|
|
167
|
-
const i = (
|
|
169
|
+
var a;
|
|
170
|
+
const i = (a = this.tagRendererMap[e.type]) != null ? a : z[e.type];
|
|
168
171
|
i && e.__renderer !== i && (e.__renderer = i, typeof e.__disposeRenderer == "function" && e.__disposeRenderer(), e.tag.container.innerHTML = "", e.__disposeRenderer = i(e.tag.container, e));
|
|
169
172
|
});
|
|
170
173
|
});
|
|
171
|
-
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.occlusionVisibility = (
|
|
172
|
-
var
|
|
173
|
-
const
|
|
174
|
-
return
|
|
174
|
+
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.occlusionVisibility = (a = i == null ? void 0 : i.occlusionVisibility) != null ? a : !1, this.occlusionMode = (o = i == null ? void 0 : i.occlusionMode) != null ? o : "translucence", this.fiveDomEvents = Q(e), this.tagWrapper = (() => {
|
|
175
|
+
var s;
|
|
176
|
+
const r = document.createElement("div");
|
|
177
|
+
return r.style.position = "absolute", r.style.top = "0", r.style.left = "0", r.style.width = "100%", r.style.height = "100%", r.style.pointerEvents = "none", r.style.zIndex = `${(s = i == null ? void 0 : i.tagContainerZIndex) != null ? s : ""}`, r;
|
|
175
178
|
})(), e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
|
|
176
179
|
}
|
|
177
180
|
load(e) {
|
|
178
|
-
return
|
|
179
|
-
var
|
|
180
|
-
if (this.clear(), this.data = e, yield
|
|
181
|
+
return E(this, null, function* () {
|
|
182
|
+
var a;
|
|
183
|
+
if (this.clear(), this.data = e, yield O(this.five), this.data !== e)
|
|
181
184
|
return;
|
|
182
185
|
this.clear();
|
|
183
|
-
const i =
|
|
184
|
-
|
|
185
|
-
|
|
186
|
+
const i = (o) => {
|
|
187
|
+
var s;
|
|
188
|
+
const r = o.object_data.color ? new d.Color().setHex(parseInt(o.object_data.color.slice(1), 16)).convertSRGBToLinear() : new d.Color(1, 1, 1);
|
|
189
|
+
return {
|
|
190
|
+
color: r,
|
|
191
|
+
lineColor: r,
|
|
192
|
+
opacity: ((s = o.object_data.opacity) != null ? s : 0.4) / 2,
|
|
193
|
+
lineOpacity: 1,
|
|
194
|
+
lineWidth: 1,
|
|
195
|
+
occlusionVisibility: typeof this.occlusionVisibility == "boolean" ? this.occlusionVisibility : !1,
|
|
196
|
+
occlusionMode: this.occlusionMode
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
(a = e == null ? void 0 : e.list) == null || a.forEach((o) => {
|
|
200
|
+
var r;
|
|
186
201
|
if (o.type === "triangles") {
|
|
187
|
-
const
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
opacity: ((t = o.object_data.opacity) != null ? t : 0.4) / 2,
|
|
191
|
-
lineColor: o.object_data.color,
|
|
192
|
-
lineWidth: d,
|
|
193
|
-
occlusionVisibility: i,
|
|
194
|
-
occlusionMode: s
|
|
195
|
-
}), this.fiveDomEvents.addEventListener(r, "hover", () => r.highlight()), this.fiveDomEvents.addEventListener(r, "unHover", () => r.unhighlight());
|
|
196
|
-
const m = new U({
|
|
202
|
+
const s = new B();
|
|
203
|
+
s.setPoints(o.object_data.points), s.setStyle(i(o)), this.fiveDomEvents.addEventListener(s, "hover", () => s.highlight()), this.fiveDomEvents.addEventListener(s, "unHover", () => s.unhighlight());
|
|
204
|
+
const t = new G({
|
|
197
205
|
five: this.five,
|
|
198
206
|
tagWrapper: this.tagWrapper,
|
|
199
|
-
model:
|
|
207
|
+
model: s,
|
|
200
208
|
group: this.group,
|
|
201
209
|
type: o.type,
|
|
202
210
|
rawData: o
|
|
203
211
|
});
|
|
204
|
-
this.items.push(
|
|
212
|
+
this.items.push(t);
|
|
205
213
|
} else if (o.type === "prism") {
|
|
206
|
-
const
|
|
207
|
-
this.zFightingOffset +=
|
|
208
|
-
const
|
|
209
|
-
var
|
|
210
|
-
return [
|
|
214
|
+
const s = new k();
|
|
215
|
+
this.zFightingOffset += 5e-4;
|
|
216
|
+
const t = o.object_data.points.map((c) => {
|
|
217
|
+
var u;
|
|
218
|
+
return [c[0], c[1] + ((u = o.object_data.fixedY) != null ? u : 0), c[2]];
|
|
211
219
|
});
|
|
212
|
-
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
opacity: ((u = o.object_data.opacity) != null ? u : 0.4) / 2,
|
|
217
|
-
lineColor: o.object_data.color,
|
|
218
|
-
lineWidth: d,
|
|
219
|
-
occlusionVisibility: i,
|
|
220
|
-
occlusionMode: s
|
|
221
|
-
});
|
|
222
|
-
const b = new D({
|
|
220
|
+
t.push(t[0]);
|
|
221
|
+
const p = o.object_data.height + ((r = o.object_data.fixedHeight) != null ? r : 0) + this.zFightingOffset, m = H(t[0]).add(new d.Vector3().setY(p));
|
|
222
|
+
s.setPoints({ points: t, heightPoint: m }), s.setStyle(i(o));
|
|
223
|
+
const y = new F({
|
|
223
224
|
five: this.five,
|
|
224
225
|
tagWrapper: this.tagWrapper,
|
|
225
|
-
model:
|
|
226
|
+
model: s,
|
|
226
227
|
group: this.group,
|
|
227
228
|
type: o.type,
|
|
228
229
|
rawData: o
|
|
229
230
|
});
|
|
230
|
-
this.items.push(
|
|
231
|
+
this.items.push(y);
|
|
231
232
|
} else if (o.type === "box") {
|
|
232
|
-
const
|
|
233
|
-
|
|
234
|
-
points: [
|
|
235
|
-
heightPoint:
|
|
236
|
-
}),
|
|
237
|
-
|
|
238
|
-
opacity: (b != null ? b : 0.4) / 2,
|
|
239
|
-
lineColor: f,
|
|
240
|
-
lineWidth: d,
|
|
241
|
-
occlusionVisibility: i,
|
|
242
|
-
occlusionMode: s
|
|
243
|
-
});
|
|
244
|
-
const A = new O({
|
|
233
|
+
const s = new k(), { start: t, end: p, rotation: m = [0, 0, 0, 0], opacity: y, color: c } = o.object_data, u = new d.Vector3().fromArray(t), R = new d.Vector3().fromArray(p), I = new d.Euler().fromArray(m), w = new d.Quaternion().setFromEuler(I), M = w.clone().inverse(), _ = new d.Vector3().lerpVectors(u, R, 0.5), C = _.clone().negate(), x = u.clone().add(C).applyQuaternion(M), V = R.clone().add(C).applyQuaternion(M), f = new d.Box3(x.clone().max(V), x.clone().min(V));
|
|
234
|
+
s.setPoints({
|
|
235
|
+
points: [v(f, 2), v(f, 3), v(f, 7), v(f, 6)],
|
|
236
|
+
heightPoint: v(f, 1)
|
|
237
|
+
}), s.position.copy(_), s.quaternion.copy(w), s.setStyle(i(o));
|
|
238
|
+
const P = new A({
|
|
245
239
|
five: this.five,
|
|
246
240
|
tagWrapper: this.tagWrapper,
|
|
247
|
-
model:
|
|
241
|
+
model: s,
|
|
248
242
|
group: this.group,
|
|
249
243
|
type: o.type,
|
|
250
244
|
rawData: o
|
|
251
245
|
});
|
|
252
|
-
this.items.push(
|
|
246
|
+
this.items.push(P);
|
|
253
247
|
}
|
|
254
248
|
}), this.five.needsRender = !0, this.state.enabled ? this.handleEnable() : this.handleDisable(), this.state.visible ? this.handleShow() : this.handleHide(), this.updateTagRenderer(), this.hooks.emit("dataLoaded", e);
|
|
255
249
|
});
|
|
256
250
|
}
|
|
257
251
|
setState(e) {
|
|
258
|
-
|
|
252
|
+
T(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: "我不知道捏" })), T(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: "我不知道捏" }));
|
|
259
253
|
}
|
|
260
254
|
getItemById(e) {
|
|
261
255
|
return this.items.find((i) => i.rawData.id === e);
|
|
262
256
|
}
|
|
263
257
|
registerTagRenderer(e) {
|
|
264
|
-
this.tagRendererMap =
|
|
258
|
+
this.tagRendererMap = g(g({}, this.tagRendererMap), e), this.updateTagRenderer();
|
|
265
259
|
}
|
|
266
260
|
hasCustomTagRenderer(e) {
|
|
267
261
|
return !!this.tagRendererMap[e];
|
|
@@ -295,5 +289,5 @@ class Pt extends z {
|
|
|
295
289
|
}
|
|
296
290
|
}
|
|
297
291
|
export {
|
|
298
|
-
|
|
292
|
+
Ft as Controller
|
|
299
293
|
};
|
|
@@ -30,6 +30,7 @@ import "../shared-utils/three/centerPoint.js";
|
|
|
30
30
|
import "../shared-utils/three/getObjectVisible.js";
|
|
31
31
|
import "@realsee/five/line";
|
|
32
32
|
import "../shared-utils/isNil.js";
|
|
33
|
+
import "../shared-utils/three/core/Five_LineMaterial2.js";
|
|
33
34
|
import "../shared-utils/three/core/Sphere.js";
|
|
34
35
|
import "animejs";
|
|
35
36
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -43,13 +44,15 @@ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
|
43
44
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
44
45
|
import "../Sculpt/Meshes/Line.js";
|
|
45
46
|
import "../Sculpt/typings/style.js";
|
|
46
|
-
import "../shared-utils/five/FiveLine.js";
|
|
47
47
|
import "../shared-utils/three/IObject3D.js";
|
|
48
48
|
import "../Sculpt/utils/removeAllTag.js";
|
|
49
49
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
50
50
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
51
51
|
import "../shared-utils/util.js";
|
|
52
52
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
53
|
+
import "../shared-utils/three/core/LineMaterial.js";
|
|
54
|
+
import "../shared-utils/three/core/Line2.js";
|
|
55
|
+
import "../shared-utils/three/core/LineMaterial2.js";
|
|
53
56
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
54
57
|
import "../shared-utils/isTouchDevice.js";
|
|
55
58
|
import "../shared-utils/five/getPosition.js";
|
|
@@ -88,7 +91,7 @@ import "../components/AreaLabel/LabelItem.js";
|
|
|
88
91
|
import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
89
92
|
import "./item/prismItem.js";
|
|
90
93
|
import "../CruisePlugin/utils/sleep.js";
|
|
91
|
-
const
|
|
94
|
+
const Qo = (...o) => new r(...o);
|
|
92
95
|
export {
|
|
93
|
-
|
|
96
|
+
Qo as ModelMakerPlugin
|
|
94
97
|
};
|
|
@@ -23,6 +23,7 @@ export declare class ModelMakerBaseItem extends Subscribe<Event> {
|
|
|
23
23
|
protected five: Five;
|
|
24
24
|
protected group: THREE.Object3D;
|
|
25
25
|
protected fiveDomEvents: FiveDomEvents;
|
|
26
|
+
protected disposers: (() => any)[];
|
|
26
27
|
constructor(params: {
|
|
27
28
|
five: Five;
|
|
28
29
|
model: THREE.Object3D;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var m = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import * as
|
|
5
|
-
import { addIfNotExists as
|
|
6
|
-
import { Subscribe as
|
|
2
|
+
var d = (s, i, t) => i in s ? m(s, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[i] = t;
|
|
3
|
+
var e = (s, i, t) => (d(s, typeof i != "symbol" ? i + "" : i, t), t);
|
|
4
|
+
import * as n from "three";
|
|
5
|
+
import { addIfNotExists as p } from "../../shared-utils/three/addIfNotExists.js";
|
|
6
|
+
import { Subscribe as l } from "../../shared-utils/Subscribe.js";
|
|
7
7
|
import { tag as a } from "../../shared-utils/tag.js";
|
|
8
8
|
import { boundingBox as v } from "../../shared-utils/three/boundingBox.js";
|
|
9
9
|
import { getFiveDomEvent as c } from "../utils/getFiveDomEvent.js";
|
|
@@ -23,19 +23,20 @@ import "../../shared-utils/three/core/Sphere.js";
|
|
|
23
23
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
24
24
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
25
25
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
26
|
-
class O extends
|
|
26
|
+
class O extends l {
|
|
27
27
|
constructor(t) {
|
|
28
|
-
var
|
|
28
|
+
var o, r;
|
|
29
29
|
super();
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
e(this, "type");
|
|
31
|
+
e(this, "tag");
|
|
32
|
+
e(this, "rawData");
|
|
33
|
+
e(this, "model");
|
|
34
|
+
e(this, "five");
|
|
35
|
+
e(this, "group");
|
|
36
|
+
e(this, "fiveDomEvents");
|
|
37
|
+
e(this, "disposers", []);
|
|
37
38
|
this.five = t.five, this.model = t.model, this.group = t.group, this.type = t.type, this.rawData = t.rawData, this.fiveDomEvents = c(this.five);
|
|
38
|
-
const h = (r = (
|
|
39
|
+
const h = (r = (o = t.position) != null ? o : this.model.center) != null ? r : v(this.model).getCenter(new n.Vector3());
|
|
39
40
|
this.tag = a(this.five, h, { wrapper: t.tagWrapper }), this.tag.extraObjectsForIntersectCheck.push(this.group);
|
|
40
41
|
}
|
|
41
42
|
get container() {
|
|
@@ -54,12 +55,14 @@ class O extends p {
|
|
|
54
55
|
this.tag.hide(), this.model.visible = !1, this.five.needsRender = !0, this.emit("hide");
|
|
55
56
|
}
|
|
56
57
|
enable() {
|
|
57
|
-
|
|
58
|
+
p(this.group, this.model), this.five.needsRender = !0, this.model.updateMatrixWorld(!0), this.tag.setTransformMatrix(this.model.matrixWorld), this.tag.enable();
|
|
58
59
|
const t = this.onClick.bind(this);
|
|
59
|
-
this.fiveDomEvents.addEventListener(this.model, "click", t), this.
|
|
60
|
+
this.fiveDomEvents.addEventListener(this.model, "click", t), this.disposers.push(() => {
|
|
61
|
+
this.fiveDomEvents.removeEventListener(this.model, "click");
|
|
62
|
+
}), this.emit("enable");
|
|
60
63
|
}
|
|
61
64
|
disable() {
|
|
62
|
-
this.group.remove(this.model), this.five.needsRender = !0, this.tag.disable(), this.
|
|
65
|
+
this.group.remove(this.model), this.five.needsRender = !0, this.tag.disable(), this.disposers.forEach((t) => t()), this.disposers = [], this.emit("disable");
|
|
63
66
|
}
|
|
64
67
|
onClick() {
|
|
65
68
|
return this.emit("click", this);
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { ModelMakerBaseItem } from './baseItem';
|
|
2
2
|
export declare class ModelMakerPrismItem extends ModelMakerBaseItem {
|
|
3
|
+
private _visible;
|
|
4
|
+
private _visibleByFloor;
|
|
3
5
|
constructor(...args: ConstructorParameters<typeof ModelMakerBaseItem>);
|
|
6
|
+
onModelShownFloorChange: (fiveCurrentfloor: number | null) => void;
|
|
7
|
+
show(): void;
|
|
8
|
+
hide(): void;
|
|
9
|
+
private updateFiveCurrentFloorState;
|
|
10
|
+
private updateVisible;
|
|
4
11
|
}
|