@realsee/dnalogel 3.35.0-dev.0 → 3.35.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 +13 -0
- package/dist/ModelMakerPlugin/Controller.d.ts +1 -1
- package/dist/ModelMakerPlugin/item/baseItem.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/ViewController.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +2 -1
- package/dist/PanoMeasurePlugin/typings/data.d.ts +3 -0
- package/dist/PanoVideoPlugin/Controller.d.ts +3 -1
- package/dist/PanoVideoPlugin/typings.d.ts +2 -2
- package/dist/index.cjs.js +21 -21
- package/dist/index.js +111 -100
- package/dist/index.umd.js +23 -23
- package/dist/shared-utils/tag.d.ts +4 -4
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +44 -34
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +44 -34
- package/docs/classes/CSS3DRender.html +43 -33
- package/docs/classes/GuideLineItem.GuideLineItem.html +31 -21
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +55 -45
- package/docs/classes/{Magnifier.html → ModelMakerPluginInstance.html} +203 -111
- package/docs/classes/ModelRoomLabelController.html +23 -13
- package/docs/classes/MoveController.html +43 -33
- package/docs/classes/Object3DHelperController.html +39 -47
- package/docs/classes/PaintBrush.html +27 -17
- package/docs/classes/PanoMeasurePluginLine.html +56 -36
- package/docs/classes/PanoMeasurePluginModel.html +42 -32
- package/docs/classes/PanoMeasurePluginPoint.html +23 -13
- package/docs/classes/PanoMeasurePluginPolyline.html +61 -34
- package/docs/classes/PanoTagPluginController.html +234 -126
- package/docs/classes/Sculpt.html +852 -0
- package/docs/classes/Util.BetterTween.html +27 -13
- package/docs/classes/Util.Interval.html +29 -15
- package/docs/classes/Util.LineSegments.html +25 -11
- package/docs/classes/Util.Magnifier.html +93 -60
- package/docs/classes/Util.Object3D.html +26 -12
- package/docs/classes/Util.PointDomHelper.html +28 -14
- package/docs/classes/Util.PointHelper.html +28 -14
- package/docs/classes/Util.PointSelectorHelper.html +34 -20
- package/docs/classes/Util.Rectangle.html +30 -16
- package/docs/classes/WalkController.html +39 -29
- package/docs/enums/CameraMovementEffect.html +19 -9
- package/docs/enums/ContentType.html +33 -23
- package/docs/enums/DIRECTION.html +21 -11
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +21 -11
- package/docs/enums/DimensionType.html +19 -9
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +20 -10
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +21 -11
- package/docs/enums/PaintBrushTypeEnum.html +20 -10
- package/docs/enums/PointType.html +19 -9
- package/docs/enums/Rotation.html +20 -10
- package/docs/functions/AreaMakerPlugin.html +17 -7
- package/docs/functions/CSS3DRenderPlugin.html +17 -7
- package/docs/functions/CameraMovementPlugin.html +17 -7
- package/docs/functions/CruisePlugin.html +17 -7
- package/docs/functions/CurrentPanoImagePlugin.html +17 -7
- package/docs/functions/GuideLinePlugin.html +17 -7
- package/docs/functions/ItemLabelPlugin.html +17 -7
- package/docs/functions/MapviewFloorplanPlugin.html +17 -7
- package/docs/functions/ModelChassisCompassPlugin.html +17 -7
- package/docs/functions/ModelEntryDoorGuidePlugin.html +17 -7
- package/docs/functions/ModelFloorplanPlugin.html +17 -7
- package/docs/functions/ModelItemLabelPlugin.html +17 -7
- package/docs/functions/ModelMakerPlugin.html +303 -0
- package/docs/functions/ModelRoomLabelPlugin.html +17 -7
- package/docs/functions/ModelTVVideoPlugin.html +17 -7
- package/docs/functions/ModelViewPlugin.html +17 -7
- package/docs/functions/MovePlugin.html +18 -8
- package/docs/functions/Object3DHelperPlugin.html +17 -7
- package/docs/functions/PanoCompassPlugin.html +17 -7
- package/docs/functions/PanoCursorRaycasterPlugin.html +17 -7
- package/docs/functions/PanoDoorLabelPlugin.html +17 -7
- package/docs/functions/PanoFloorplanRadarPlugin.html +17 -7
- package/docs/functions/PanoMeasurePlugin.html +17 -7
- package/docs/functions/PanoRulerPlugin.html +17 -7
- package/docs/functions/PanoRulerProPlugin.html +17 -7
- package/docs/functions/PanoSpatialTagPlugin.html +17 -7
- package/docs/functions/PanoTagPlugin.html +20 -8
- package/docs/functions/PanoVideoPlugin.html +17 -7
- package/docs/functions/PipelinePlugin.html +17 -7
- package/docs/functions/SculptPlugin.html +306 -0
- package/docs/functions/TopviewFloorplanPlugin.html +17 -7
- package/docs/functions/Util.absoluteUrl.html +22 -8
- package/docs/functions/Util.blink.html +351 -0
- package/docs/functions/Util.checkFiveModelLoaded.html +22 -8
- package/docs/functions/Util.equal.html +22 -8
- package/docs/functions/Util.getCoordsFromClient.html +22 -8
- package/docs/functions/Util.getCoordsFromElement.html +22 -8
- package/docs/functions/Util.getFrameTime.html +22 -8
- package/docs/functions/Util.getIntersectFromRelativePosition.html +29 -10
- package/docs/functions/Util.getRaycasterFromFivePointer.html +22 -8
- package/docs/functions/Util.isAbsoluteURL.html +22 -8
- package/docs/functions/Util.isModelLike.html +22 -8
- package/docs/functions/Util.isNil.html +22 -8
- package/docs/functions/Util.isPanoramaLike.html +22 -8
- package/docs/functions/Util.nextFrame.html +22 -8
- package/docs/functions/Util.notNil.html +22 -8
- package/docs/functions/Util.reblink.html +349 -0
- package/docs/functions/Util.requestAnimationFrameInterval.html +22 -8
- package/docs/functions/Util.tweenProgress.html +22 -8
- package/docs/functions/Util.uuid.html +22 -8
- package/docs/functions/pluginFlag.html +17 -7
- package/docs/index.html +18 -7
- package/docs/interfaces/AddTagConfig.html +18 -8
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +17 -7
- package/docs/interfaces/AreaMakerPluginType.Config.html +17 -7
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +30 -20
- package/docs/interfaces/AreaMakerPluginType.Params.html +18 -8
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +20 -10
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +19 -9
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +17 -7
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +17 -7
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +17 -7
- package/docs/interfaces/AreaMakerPluginType.State.html +19 -9
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +23 -13
- package/docs/interfaces/CSS3DRenderPluginState.html +20 -10
- package/docs/interfaces/CameraMovementPluginExportType.html +19 -9
- package/docs/interfaces/ContentTypeMapInterface.html +773 -0
- package/docs/interfaces/CruisePluginTypes.Config.html +21 -10
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +24 -13
- package/docs/interfaces/CruisePluginTypes.EventMap.html +33 -22
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +352 -0
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +39 -23
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +30 -18
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +30 -18
- package/docs/interfaces/CruisePluginTypes.PluginData.html +41 -30
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +18 -7
- package/docs/interfaces/CruisePluginTypes.PluginState.html +25 -14
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +23 -13
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +24 -14
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +19 -9
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +18 -8
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +20 -10
- package/docs/interfaces/EventMap.html +27 -17
- package/docs/interfaces/FloorplanBounding.html +20 -10
- package/docs/interfaces/FloorplanData.html +22 -12
- package/docs/interfaces/FloorplanEntrance.html +23 -13
- package/docs/interfaces/FloorplanExtraObject.html +22 -12
- package/docs/interfaces/FloorplanExtraObject3D.html +20 -10
- package/docs/interfaces/FloorplanFloorData.html +21 -11
- package/docs/interfaces/FloorplanImagePosition.html +19 -9
- package/docs/interfaces/FloorplanObserver.html +21 -11
- package/docs/interfaces/FloorplanOutlineItem.html +21 -11
- package/docs/interfaces/FloorplanPosition.html +19 -9
- package/docs/interfaces/FloorplanRoomItem.html +26 -16
- package/docs/interfaces/FloorplanRoomLabelItem.html +19 -9
- package/docs/interfaces/FloorplanServerBounding.html +20 -10
- package/docs/interfaces/FloorplanServerComputedData.html +22 -12
- package/docs/interfaces/FloorplanServerData.html +19 -9
- package/docs/interfaces/FloorplanServerDoorItem.html +22 -12
- package/docs/interfaces/FloorplanServerDoorPosition.html +20 -10
- package/docs/interfaces/FloorplanServerEntrance.html +23 -13
- package/docs/interfaces/FloorplanServerFloorData.html +21 -11
- package/docs/interfaces/FloorplanServerImagePosition.html +19 -9
- package/docs/interfaces/FloorplanServerObserver.html +21 -11
- package/docs/interfaces/FloorplanServerOutlineItem.html +21 -11
- package/docs/interfaces/FloorplanServerPosition.html +19 -9
- package/docs/interfaces/FloorplanServerRoomItem.html +27 -17
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +19 -9
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +20 -10
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +21 -11
- package/docs/interfaces/GuideLinePluginType.EventMap.html +24 -14
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +19 -9
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +17 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +26 -16
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +17 -7
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +19 -9
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +32 -22
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +18 -8
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +33 -23
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +16 -6
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +17 -7
- package/docs/interfaces/GuideLinePluginType.PluginState.html +19 -9
- package/docs/interfaces/GuideLinePluginType.Route.html +22 -12
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +20 -10
- package/docs/interfaces/HelperOffset.html +20 -10
- package/docs/interfaces/ImagePlaneGroup.html +18 -8
- package/docs/interfaces/ItemLabelPluginData.html +18 -8
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +23 -13
- package/docs/interfaces/ItemLabelPluginParametersType.html +21 -11
- package/docs/interfaces/MinMax.html +19 -9
- package/docs/interfaces/ModelChassisCompassPluginData.html +19 -9
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +20 -10
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +19 -9
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +20 -10
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +20 -10
- package/docs/interfaces/ModelItemLabelPluginData.html +18 -8
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +23 -13
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +19 -9
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +556 -0
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +349 -0
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +391 -0
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +332 -0
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +401 -0
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +381 -0
- package/docs/interfaces/ModelMakerPluginType.State.html +364 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +18 -8
- package/docs/interfaces/ModelTVVideoPluginData.html +21 -11
- package/docs/interfaces/ModelTVVideoPluginExportType.html +20 -10
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +18 -8
- package/docs/interfaces/ModelViewPluginExportType.html +23 -13
- package/docs/interfaces/Object3DHelperState.html +20 -10
- package/docs/interfaces/ObjectHelperControllers.html +22 -12
- package/docs/interfaces/PaintBrushAction.html +24 -14
- package/docs/interfaces/PaintBrushConfigs.html +24 -14
- package/docs/interfaces/PaintBrushState.html +22 -12
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +22 -12
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +17 -7
- package/docs/interfaces/PanoMeasureParameterType.html +28 -18
- package/docs/interfaces/PanoMeasurePluginLineJson.html +20 -10
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +19 -9
- package/docs/interfaces/PanoMeasurePluginPointJson.html +19 -9
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +30 -10
- package/docs/interfaces/PanoRulerPluginExportType.html +22 -12
- package/docs/interfaces/PanoRulerPluginOptions.html +19 -9
- package/docs/interfaces/PanoRulerPluginParameterType.html +20 -10
- package/docs/interfaces/PanoRulerProPluginExportType.html +21 -11
- package/docs/interfaces/PanoRulerProPluginOptions.html +19 -9
- package/docs/interfaces/PanoRulerProPluginParameterType.html +19 -9
- package/docs/interfaces/PanoRulerProPluginState.html +20 -10
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +17 -7
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +17 -7
- package/docs/interfaces/PanoSpatialTagPluginData.html +23 -13
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +22 -12
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +25 -15
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +22 -12
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +25 -15
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +23 -13
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +22 -12
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +18 -8
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +20 -10
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +18 -8
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +78 -18
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +18 -8
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +20 -10
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +22 -12
- package/docs/interfaces/Point.html +20 -10
- package/docs/interfaces/Room.html +21 -11
- package/docs/interfaces/RoomInfo.html +19 -9
- package/docs/interfaces/RoomLabel.html +26 -16
- package/docs/interfaces/RoomRules.html +17 -7
- package/docs/interfaces/Rooms.html +17 -7
- package/docs/interfaces/Scissor.html +21 -11
- package/docs/interfaces/State.html +20 -10
- package/docs/interfaces/TagCacheInterface.html +24 -14
- package/docs/interfaces/TagConfig.html +65 -49
- package/docs/interfaces/TagGLTFObjectGroup.html +18 -8
- package/docs/interfaces/TagIconUrl.html +24 -14
- package/docs/interfaces/TagObjectGroup.html +18 -8
- package/docs/interfaces/TagStyle.html +18 -8
- package/docs/interfaces/Tags.html +61 -437
- package/docs/interfaces/TemporaryState.html +18 -8
- package/docs/interfaces/Util.BlinkAnimeOptions.html +380 -0
- package/docs/interfaces/Util.MagnifierParameter.html +43 -24
- package/docs/interfaces/Util.MouseGroupParameter.html +25 -11
- package/docs/interfaces/Util.PointIntersection.html +33 -12
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +387 -0
- package/docs/modules/AreaMakerPluginType.html +16 -6
- package/docs/modules/CruisePluginTypes.html +18 -6
- package/docs/modules/CurrentPanoImagePluginType.html +17 -7
- package/docs/modules/GuideLineItem.html +17 -7
- package/docs/modules/GuideLineModeItem.html +17 -7
- package/docs/modules/GuideLinePluginType.html +16 -6
- package/docs/modules/ModelMakerPluginType.html +339 -0
- package/docs/modules/PanoVideoPluginType.html +17 -7
- package/docs/modules/SculptData.html +318 -0
- package/docs/modules/Util.html +26 -8
- package/docs/modules.html +34 -11
- package/docs/types/AddObject3DHelperConfig.html +315 -0
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +16 -6
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +16 -6
- package/docs/types/AreaMakerPluginType.PluginData.html +16 -6
- package/docs/types/AreaMakerPluginType.ServerData.html +16 -6
- package/docs/types/ArrayPosition.html +17 -7
- package/docs/types/AudioAppearance.html +17 -7
- package/docs/types/CSS3DRenderExportType.html +17 -7
- package/docs/types/CSS3DRenderPluginExportType.html +17 -7
- package/docs/types/CSS3DRenderPluginParameterType.html +17 -7
- package/docs/types/ClassFunctionParameters.html +17 -7
- package/docs/types/Color.html +17 -7
- package/docs/types/ContentTypeConfigKey.html +17 -7
- package/docs/types/ContentTypeConfigKeySplit.html +18 -8
- package/docs/types/ContentTypeMap.html +17 -7
- package/docs/types/Create3DDomContainerReturnType.html +17 -7
- package/docs/types/Create3DElementReturnType.html +17 -7
- package/docs/types/CruisePluginExportType.html +17 -7
- package/docs/types/CruisePluginTypes.CruiseData.html +17 -6
- package/docs/types/CruisePluginTypes.MoveEffect.html +17 -6
- package/docs/types/CurrentPanoImagePluginExportType.html +17 -7
- package/docs/types/DeprecatedMediaPlaneProperty.html +17 -7
- package/docs/types/DeprecatedTagProperty.html +17 -7
- package/docs/types/Direction-1.html +17 -7
- package/docs/types/Direction4.html +17 -7
- package/docs/types/ElementRenderer.html +17 -7
- package/docs/types/FloorplanRuleLabels.html +17 -7
- package/docs/types/FloorplanServerRuleLabels.html +17 -7
- package/docs/types/GuideLinePluginExportType.html +17 -7
- package/docs/types/GuideLinePluginType.GuideLineItem.html +18 -8
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +16 -6
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +16 -6
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +16 -6
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +16 -6
- package/docs/types/GuideLinePluginType.PathItem.html +16 -6
- package/docs/types/GuideLinePluginType.PluginData.html +16 -6
- package/docs/types/HelperEventMap.html +17 -7
- package/docs/types/InternalHelperEventMap.html +29 -11
- package/docs/types/LoadTagConfig.html +17 -7
- package/docs/types/MapviewFloorplanPluginParameterType.html +17 -7
- package/docs/types/MapviewFloorplanPluginReturnType.html +17 -7
- package/docs/types/MediaData.html +20 -10
- package/docs/types/MediaStore.html +17 -7
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +17 -7
- package/docs/types/ModelFloorplanPluginParameterType.html +17 -7
- package/docs/types/ModelFloorplanPluginReturnType.html +17 -7
- package/docs/types/ModelId.html +17 -7
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +329 -0
- package/docs/types/ModelMakerPluginType.ItemType.html +308 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +17 -7
- package/docs/types/ModelRoomLabelPluginReturnType.html +17 -7
- package/docs/types/MoveArgs.html +17 -7
- package/docs/types/MoveOpts.html +17 -7
- package/docs/types/Object3DHelperEventMap.html +17 -7
- package/docs/types/ObjectFit.html +17 -7
- package/docs/types/PaintBrushEventMap.html +17 -7
- package/docs/types/PanoCompassPluginData.html +17 -7
- package/docs/types/PanoCompassPluginExportType.html +17 -7
- package/docs/types/PanoCompassPluginParameterType.html +17 -7
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +17 -7
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +17 -7
- package/docs/types/PanoIndex.html +17 -7
- package/docs/types/PanoMeasurePluginEvent.html +17 -7
- package/docs/types/PanoMeasureReturnType.html +17 -7
- package/docs/types/PanoSpatialTagPluginId.html +17 -7
- package/docs/types/PanoTagPluginExportInterface.html +17 -7
- package/docs/types/PanoTagPluginParamsInterface.html +17 -7
- package/docs/types/PanoVideoPluginParameterType.html +17 -7
- package/docs/types/PanoVideoPluginReturnType.html +17 -7
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +22 -12
- package/docs/types/PipelinePluginParameterType.html +17 -7
- package/docs/types/PipelinePluginReturnType.html +17 -7
- package/docs/types/PlaneTag.html +17 -7
- package/docs/types/Point2DTag.html +17 -7
- package/docs/types/Point3DTag.html +17 -7
- package/docs/types/PointTag.html +17 -7
- package/docs/types/PointTagInstance.html +17 -7
- package/docs/types/Position.html +17 -7
- package/docs/types/{AudioTagTypeConfigKey.html → PositionFrom.html} +28 -10
- package/docs/types/RotateArgs.html +17 -7
- package/docs/types/RotateOpts.html +17 -7
- package/docs/types/RuleLabelsKey.html +17 -7
- package/docs/types/RuleLabelsValue.html +17 -7
- package/docs/types/ScaleCallback.html +314 -0
- package/docs/types/ScalePosition.html +303 -0
- package/docs/types/SculptData.BoxData.html +306 -0
- package/docs/types/SculptData.CircleData.html +306 -0
- package/docs/types/SculptData.CylinderData.html +306 -0
- package/docs/types/SculptData.PointData.html +306 -0
- package/docs/types/SculptData.PolygonData.html +306 -0
- package/docs/types/SculptData.PolylineData.html +306 -0
- package/docs/types/SculptData.PrismData.html +306 -0
- package/docs/types/SculptData.RectangleData.html +306 -0
- package/docs/types/StickType.html +17 -7
- package/docs/types/Tag.html +35 -13
- package/docs/types/Tag2D.html +17 -7
- package/docs/types/Tag3D.html +17 -7
- package/docs/types/TagConfigByKey.html +18 -8
- package/docs/types/TagContentType.html +17 -7
- package/docs/types/TagContentTypeMapping.html +17 -7
- package/docs/types/TagDimensionType.html +17 -7
- package/docs/types/TagElement.html +17 -7
- package/docs/types/TagEvents.html +38 -12
- package/docs/types/TagGLTFObject.html +17 -7
- package/docs/types/TagHooks.html +17 -7
- package/docs/types/TagId.html +17 -7
- package/docs/types/TagInstance.html +44 -8
- package/docs/types/TagPointType.html +17 -7
- package/docs/types/TagRendererMap.html +17 -7
- package/docs/types/TopviewFloorplanPluginParameterType.html +17 -7
- package/docs/types/TopviewFloorplanPluginReturnType.html +17 -7
- package/docs/types/WorkCode.html +17 -7
- package/docs/variables/FLOOR_TYPE_MAP.html +17 -7
- package/docs/variables/PLUGIN.html +17 -7
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +17 -7
- package/docs/variables/ROOM_TYPE_MAP.html +17 -7
- package/docs/variables/defaultGlobalConfig.html +17 -7
- package/docs/variables/itemLabelPluginServerParams.html +17 -7
- package/docs/variables/modelItemLabelPluginServerParams.html +17 -7
- package/docs/variables/modelRoomLabelPluginServerParams.html +17 -7
- package/libs/ModelMakerPlugin/Controller.d.ts +1 -1
- package/libs/ModelMakerPlugin/Controller.js +88 -86
- package/libs/ModelMakerPlugin/item/baseItem.d.ts +1 -1
- package/libs/ModelMakerPlugin/item/baseItem.js +23 -26
- package/libs/PanoMeasurePlugin/Controller/ViewController.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +49 -35
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +2 -1
- package/libs/PanoMeasurePlugin/Model/polyline.js +37 -35
- package/libs/PanoMeasurePlugin/typings/data.d.ts +3 -0
- package/libs/PanoRulerPlugin/Plugin.js +15 -15
- package/libs/PanoVideoPlugin/Controller.d.ts +3 -1
- package/libs/PanoVideoPlugin/Controller.js +41 -41
- package/libs/PanoVideoPlugin/typings.d.ts +2 -2
- package/libs/base/BasePlugin.js +3 -3
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +4 -4
- package/libs/shared-utils/tag.js +26 -30
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -48,7 +48,7 @@ import Um from "earcut";
|
|
|
48
48
|
import { GLTFLoader as Ym } from "@realsee/five/gltf-loader";
|
|
49
49
|
function Xm() {
|
|
50
50
|
console.debug(
|
|
51
|
-
"%c %c@realsee/dnalogel %cv3.35.0
|
|
51
|
+
"%c %c@realsee/dnalogel %cv3.35.0",
|
|
52
52
|
[
|
|
53
53
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
54
54
|
"background-repeat: no-repeat",
|
|
@@ -7434,7 +7434,7 @@ let rn = class {
|
|
|
7434
7434
|
/**
|
|
7435
7435
|
* @realsee/dnalogel 版本号
|
|
7436
7436
|
*/
|
|
7437
|
-
d(this, "VERSION", "3.35.0
|
|
7437
|
+
d(this, "VERSION", "3.35.0");
|
|
7438
7438
|
d(this, "five");
|
|
7439
7439
|
/**
|
|
7440
7440
|
* @description: 插件事件钩子
|
|
@@ -9908,10 +9908,7 @@ const lb = `<style type="text/css">
|
|
|
9908
9908
|
`, y = document.createElement("div");
|
|
9909
9909
|
return y.setAttribute("class", "PanoRulerPlugin-rule"), y.setAttribute("data-name", p), y.setAttribute("style", "display: none"), y.innerHTML = b, y;
|
|
9910
9910
|
}, s = document.createElement("div");
|
|
9911
|
-
s.setAttribute(
|
|
9912
|
-
"style",
|
|
9913
|
-
"position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
|
|
9914
|
-
);
|
|
9911
|
+
s.setAttribute("style", "position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;");
|
|
9915
9912
|
const o = document.createElement("div");
|
|
9916
9913
|
o.innerHTML = lb, s.appendChild(o);
|
|
9917
9914
|
const r = {}, a = (p, m) => {
|
|
@@ -9967,9 +9964,7 @@ const lb = `<style type="text/css">
|
|
|
9967
9964
|
const y = p || t.roomInfo, P = m || t.roomRules;
|
|
9968
9965
|
if (!y || !P)
|
|
9969
9966
|
throw new Error("标尺数据依赖不齐全!");
|
|
9970
|
-
return e.loaded = !1, e.options = D(D({}, e.options), b || {}), n.model.loaded ? a(y, P) : yield new Promise(
|
|
9971
|
-
(I) => n.once("modelLoaded", () => I(a(y, P)))
|
|
9972
|
-
);
|
|
9967
|
+
return e.loaded = !1, e.options = D(D({}, e.options), b || {}), n.model.loaded ? a(y, P) : yield new Promise((I) => n.once("modelLoaded", () => I(a(y, P))));
|
|
9973
9968
|
});
|
|
9974
9969
|
t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
|
|
9975
9970
|
const c = (p, m, b, y) => {
|
|
@@ -10056,24 +10051,29 @@ const lb = `<style type="text/css">
|
|
|
10056
10051
|
continue;
|
|
10057
10052
|
}
|
|
10058
10053
|
const $ = H.distanceTo(F);
|
|
10059
|
-
if (F.clone().sub(
|
|
10054
|
+
if (F.clone().sub(
|
|
10055
|
+
F.clone().sub(H).divide(new oe(2, 2, 2))
|
|
10056
|
+
).distanceTo(I) / $ > 8) {
|
|
10060
10057
|
Q.style.display = "none";
|
|
10061
10058
|
continue;
|
|
10062
10059
|
}
|
|
10063
10060
|
const Pe = H.clone().project(b), Ce = (Pe.x + 1) / 2 * E, be = (-Pe.y + 1) / 2 * j, Qe = F.clone().project(b), ye = (Qe.x + 1) / 2 * E, Ze = (-Qe.y + 1) / 2 * j, ee = Math.sqrt(Math.pow(ye - Ce, 2) + Math.pow(Ze - be, 2));
|
|
10064
10061
|
let ve = ee, je = 50;
|
|
10065
|
-
const me = c(
|
|
10066
|
-
x: ~~
|
|
10067
|
-
|
|
10068
|
-
|
|
10062
|
+
const me = c(
|
|
10063
|
+
{ x: ~~Ce, y: ~~be },
|
|
10064
|
+
{
|
|
10065
|
+
x: ~~ye,
|
|
10066
|
+
y: ~~Ze
|
|
10067
|
+
},
|
|
10068
|
+
E,
|
|
10069
|
+
j
|
|
10070
|
+
);
|
|
10069
10071
|
if (me && me.length === 1 && (V === H ? (ve = Math.sqrt(Math.pow(me[0].x - Ce, 2) + Math.pow(me[0].y - be, 2)), je = ve / ee * 50) : V === F && (ve = Math.sqrt(Math.pow(me[0].x - ye, 2) + Math.pow(me[0].y - Ze, 2)), je = 100 - ve / ee * 50)), me && me.length === 2) {
|
|
10070
10072
|
const re = {
|
|
10071
10073
|
x: (me[0].x + me[1].x) / 2,
|
|
10072
10074
|
y: (me[0].y + me[1].y) / 2
|
|
10073
10075
|
};
|
|
10074
|
-
je = Math.sqrt(
|
|
10075
|
-
Math.pow(re.x - Ce, 2) + Math.pow(re.y - be, 2)
|
|
10076
|
-
) / ee * 100;
|
|
10076
|
+
je = Math.sqrt(Math.pow(re.x - Ce, 2) + Math.pow(re.y - be, 2)) / ee * 100;
|
|
10077
10077
|
}
|
|
10078
10078
|
const at = (Math.PI / 2 - Math.atan2(ye - Ce, be - Ze)) / Math.PI * 180, xe = U.querySelector(".PanoRulerPlugin-rule-label"), st = xe.children[0].clientWidth;
|
|
10079
10079
|
st >= ee || st / 2 >= je / 100 * ee || st / 2 >= (1 - je / 100) * ee ? U.style.display = "none" : (U.style.display = "block", U.style.width = ee + "px", U.style.left = Ce + "px", U.style.top = be + "px", U.style.transform = `rotate(${-at}deg)`, xe.style.left = `${je}%`);
|
|
@@ -11131,6 +11131,7 @@ let yr = class {
|
|
|
11131
11131
|
d(this, "id", nt());
|
|
11132
11132
|
d(this, "lines", []);
|
|
11133
11133
|
d(this, "visiblePanoIndexes");
|
|
11134
|
+
d(this, "visibleFiveMode");
|
|
11134
11135
|
d(this, "model");
|
|
11135
11136
|
d(this, "type", "polyline");
|
|
11136
11137
|
d(this, "hook", new Tt());
|
|
@@ -11200,7 +11201,8 @@ let yr = class {
|
|
|
11200
11201
|
return {
|
|
11201
11202
|
id: this.id,
|
|
11202
11203
|
lines: this.lines.map((t) => t.toJson()),
|
|
11203
|
-
visiblePanoIndexes: this.visiblePanoIndexes
|
|
11204
|
+
visiblePanoIndexes: this.visiblePanoIndexes,
|
|
11205
|
+
visibleFiveMode: this.visibleFiveMode
|
|
11204
11206
|
};
|
|
11205
11207
|
}
|
|
11206
11208
|
getPointByID(t) {
|
|
@@ -11215,7 +11217,7 @@ let yr = class {
|
|
|
11215
11217
|
const h = new Di(l, c, this.model);
|
|
11216
11218
|
return h.id = o.id, h.text = o.text, h;
|
|
11217
11219
|
});
|
|
11218
|
-
this.lines.push(...i), this.visiblePanoIndexes = t.visiblePanoIndexes;
|
|
11220
|
+
this.lines.push(...i), this.visiblePanoIndexes = t.visiblePanoIndexes, this.visibleFiveMode = t.visibleFiveMode;
|
|
11219
11221
|
function s() {
|
|
11220
11222
|
const o = /* @__PURE__ */ new Map();
|
|
11221
11223
|
function r(l) {
|
|
@@ -12079,6 +12081,20 @@ class ph extends yr {
|
|
|
12079
12081
|
d(this, "onCameraUpdate", () => {
|
|
12080
12082
|
this.updateDistanceUI();
|
|
12081
12083
|
});
|
|
12084
|
+
d(this, "onFiveModeChange", (e) => {
|
|
12085
|
+
this.model.polylines.forEach((i) => {
|
|
12086
|
+
i.visibleFiveMode && (i.visibleFiveMode.includes(e) || i.lines.forEach((s) => {
|
|
12087
|
+
s.mesh.visible = !1, s.distanceItem.update(this.five);
|
|
12088
|
+
}));
|
|
12089
|
+
}), this.five.ready().then(() => {
|
|
12090
|
+
const i = this.five.getCurrentState().mode;
|
|
12091
|
+
this.model.polylines.forEach((s) => {
|
|
12092
|
+
s.visibleFiveMode && s.visibleFiveMode.includes(i) && s.lines.forEach((o) => {
|
|
12093
|
+
o.mesh.visible = !0, o.distanceItem.update(this.five);
|
|
12094
|
+
});
|
|
12095
|
+
});
|
|
12096
|
+
});
|
|
12097
|
+
});
|
|
12082
12098
|
d(this, "onFivePanoWillArrive", (e) => {
|
|
12083
12099
|
this.model.polylines.forEach((i) => {
|
|
12084
12100
|
i.visiblePanoIndexes && (i.visiblePanoIndexes.includes(e) || i.lines.forEach((s) => {
|
|
@@ -12101,11 +12117,11 @@ class ph extends yr {
|
|
|
12101
12117
|
const s = new ur(i);
|
|
12102
12118
|
this.hammer = s;
|
|
12103
12119
|
}
|
|
12104
|
-
this.onFivePanoWillArrive(this.five.getCurrentState().panoIndex), this.onFivePanoArrived(this.five.getCurrentState().panoIndex), this.updateDistanceUI(), this.five.needsRender = !0, this.model.hook.on("polylineAdded", this.polylineAdded), this.model.hook.on("polylineRemoved", this.polylineRemoved), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("panoArrived", this.onFivePanoArrived), this.five.on("panoWillArrive", this.onFivePanoWillArrive);
|
|
12120
|
+
this.onFivePanoWillArrive(this.five.getCurrentState().panoIndex), this.onFivePanoArrived(this.five.getCurrentState().panoIndex), this.onFiveModeChange(this.five.getCurrentState().mode), this.updateDistanceUI(), this.five.needsRender = !0, this.model.hook.on("polylineAdded", this.polylineAdded), this.model.hook.on("polylineRemoved", this.polylineRemoved), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("panoArrived", this.onFivePanoArrived), this.five.on("modeChange", this.onFiveModeChange), this.five.on("panoWillArrive", this.onFivePanoWillArrive);
|
|
12105
12121
|
}
|
|
12106
12122
|
dispose() {
|
|
12107
12123
|
var e;
|
|
12108
|
-
super.dispose(), this.model.hook.off("polylineAdded", this.polylineAdded), this.model.hook.off("polylineRemoved", this.polylineRemoved), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.needsRender = !0, this.hook.emit("selectedChange", []), (e = this.hammer) == null || e.destroy();
|
|
12124
|
+
super.dispose(), this.model.hook.off("polylineAdded", this.polylineAdded), this.model.hook.off("polylineRemoved", this.polylineRemoved), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("modeChange", this.onFiveModeChange), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.needsRender = !0, this.hook.emit("selectedChange", []), (e = this.hammer) == null || e.destroy();
|
|
12109
12125
|
}
|
|
12110
12126
|
}
|
|
12111
12127
|
function qb(n, t) {
|
|
@@ -33110,10 +33126,10 @@ class xu {
|
|
|
33110
33126
|
class ik extends rn {
|
|
33111
33127
|
constructor(e) {
|
|
33112
33128
|
super(e);
|
|
33113
|
-
d(this, "enabled", !0);
|
|
33114
33129
|
d(this, "controllerMap", /* @__PURE__ */ new Map());
|
|
33130
|
+
d(this, "data");
|
|
33131
|
+
d(this, "enabled", !0);
|
|
33115
33132
|
d(this, "_disposed", !1);
|
|
33116
|
-
this.five = e;
|
|
33117
33133
|
}
|
|
33118
33134
|
/** 插件 State */
|
|
33119
33135
|
get state() {
|
|
@@ -33142,7 +33158,7 @@ class ik extends rn {
|
|
|
33142
33158
|
}))
|
|
33143
33159
|
);
|
|
33144
33160
|
});
|
|
33145
|
-
});
|
|
33161
|
+
}), this.data = e, this.hooks.emit("dataLoaded", e);
|
|
33146
33162
|
}
|
|
33147
33163
|
/** 开启插件功能。 */
|
|
33148
33164
|
enable(e) {
|
|
@@ -36929,11 +36945,11 @@ class u3 {
|
|
|
36929
36945
|
d(this, "container");
|
|
36930
36946
|
d(this, "visible", !1);
|
|
36931
36947
|
d(this, "enabled", !1);
|
|
36948
|
+
d(this, "wrapper");
|
|
36932
36949
|
d(this, "five");
|
|
36933
36950
|
d(this, "position");
|
|
36934
|
-
d(this, "wrapper");
|
|
36935
36951
|
d(this, "disposer");
|
|
36936
|
-
d(this, "
|
|
36952
|
+
d(this, "config");
|
|
36937
36953
|
d(this, "onCameraUpdate", () => {
|
|
36938
36954
|
if (this.visible === !1)
|
|
36939
36955
|
return;
|
|
@@ -36949,11 +36965,10 @@ class u3 {
|
|
|
36949
36965
|
(i == null ? void 0 : i.distance) > this.position.distanceTo(this.five.camera.position) ? (this.container.style.opacity = "1", this.container.style.pointerEvents = "auto") : (this.container.style.opacity = "0", this.container.style.pointerEvents = "none");
|
|
36950
36966
|
}
|
|
36951
36967
|
});
|
|
36952
|
-
var s;
|
|
36953
36968
|
this.five = t, this.position = Be(e).clone(), this.container = (() => {
|
|
36954
|
-
const
|
|
36955
|
-
return
|
|
36956
|
-
})(), this.
|
|
36969
|
+
const s = document.createElement("div");
|
|
36970
|
+
return s.style.width = "0", s.style.height = "0", s.style.position = "absolute", s;
|
|
36971
|
+
})(), this.config = i, this.enable(), this.show();
|
|
36957
36972
|
}
|
|
36958
36973
|
show() {
|
|
36959
36974
|
this.visible = !0, this.container.style.opacity = "1", this.container.style.pointerEvents = "auto", this.container.style.transition = "opacity 0.2s linear", this.onCameraUpdate();
|
|
@@ -36962,16 +36977,13 @@ class u3 {
|
|
|
36962
36977
|
this.visible = !1, t != null && t.withAnimation ? this.container.style.transition = "opacity 0.2s linear" : this.container.style.transition = "", this.container.style.opacity = "0", this.container.style.pointerEvents = "none";
|
|
36963
36978
|
}
|
|
36964
36979
|
enable() {
|
|
36965
|
-
var i;
|
|
36980
|
+
var i, s, o, r;
|
|
36966
36981
|
if (this.enabled)
|
|
36967
36982
|
return;
|
|
36968
|
-
this.enabled = !0, this.wrapper = (i = document.getElementById(Ju)) != null ?
|
|
36969
|
-
|
|
36970
|
-
|
|
36971
|
-
|
|
36972
|
-
s.style[r] = this.wrapperStyle[r];
|
|
36973
|
-
}), (o = this.five.getElement()) == null || o.parentElement.appendChild(s), s;
|
|
36974
|
-
})(), this.wrapper.appendChild(this.container);
|
|
36983
|
+
this.enabled = !0, this.wrapper || (this.wrapper = (s = (i = this.config.wrapper) != null ? i : document.getElementById(Ju)) != null ? s : (() => {
|
|
36984
|
+
const a = document.createElement("div");
|
|
36985
|
+
return a.id = Ju, a.style.position = "absolute", a.style.top = "0", a.style.left = "0", a.style.width = "100%", a.style.height = "100%", a.style.pointerEvents = "none", a;
|
|
36986
|
+
})(), (o = this.five.getElement()) != null && o.parentElement.contains(this.wrapper) || (r = this.five.getElement()) == null || r.parentElement.appendChild(this.wrapper)), this.wrapper.appendChild(this.container);
|
|
36975
36987
|
let t = !1;
|
|
36976
36988
|
const e = () => {
|
|
36977
36989
|
t || (t = !0, this.five.ready().then(() => {
|
|
@@ -36997,7 +37009,7 @@ const wm = (n) => ((!Ro || n !== Ro.five) && (Ro = {
|
|
|
36997
37009
|
}), Ro.instance);
|
|
36998
37010
|
class Cm extends ii {
|
|
36999
37011
|
constructor(e) {
|
|
37000
|
-
var s, o, r
|
|
37012
|
+
var s, o, r;
|
|
37001
37013
|
super();
|
|
37002
37014
|
d(this, "type");
|
|
37003
37015
|
d(this, "tag");
|
|
@@ -37005,11 +37017,10 @@ class Cm extends ii {
|
|
|
37005
37017
|
d(this, "model");
|
|
37006
37018
|
d(this, "five");
|
|
37007
37019
|
d(this, "group");
|
|
37008
|
-
d(this, "enabled", !1);
|
|
37009
37020
|
d(this, "fiveDomEvents");
|
|
37010
37021
|
this.five = e.five, this.model = e.model, this.group = e.group, this.type = e.type, this.rawData = e.rawData, this.fiveDomEvents = wm(this.five);
|
|
37011
37022
|
const i = (r = (o = (s = e.position) != null ? s : this.model.worldCenter) != null ? o : this.model.center) != null ? r : Js(this.model).getCenter(new w.Vector3());
|
|
37012
|
-
this.tag = f3(this.five, i, {
|
|
37023
|
+
this.tag = f3(this.five, i, { wrapper: e.tagWrapper });
|
|
37013
37024
|
}
|
|
37014
37025
|
get container() {
|
|
37015
37026
|
return this.tag.container;
|
|
@@ -37017,7 +37028,7 @@ class Cm extends ii {
|
|
|
37017
37028
|
get state() {
|
|
37018
37029
|
return {
|
|
37019
37030
|
visible: this.model.visible,
|
|
37020
|
-
enabled: this.
|
|
37031
|
+
enabled: this.group.children.includes(this.model)
|
|
37021
37032
|
};
|
|
37022
37033
|
}
|
|
37023
37034
|
show() {
|
|
@@ -37027,14 +37038,12 @@ class Cm extends ii {
|
|
|
37027
37038
|
this.tag.hide(), this.model.visible = !1, this.five.needsRender = !0, this.emit("hide");
|
|
37028
37039
|
}
|
|
37029
37040
|
enable() {
|
|
37030
|
-
|
|
37031
|
-
return;
|
|
37032
|
-
this.enabled = !0, h3(this.group, this.model), this.five.needsRender = !0, this.tag.enable();
|
|
37041
|
+
h3(this.group, this.model), this.five.needsRender = !0, this.tag.enable();
|
|
37033
37042
|
const e = this.onClick.bind(this);
|
|
37034
37043
|
this.fiveDomEvents.addEventListener(this.model, "click", e), this.emit("enable");
|
|
37035
37044
|
}
|
|
37036
37045
|
disable() {
|
|
37037
|
-
this.
|
|
37046
|
+
this.group.remove(this.model), this.five.needsRender = !0, this.tag.disable(), this.fiveDomEvents.removeEventListener(this.model, "click"), this.emit("disable");
|
|
37038
37047
|
}
|
|
37039
37048
|
onClick() {
|
|
37040
37049
|
return this.emit("click", this);
|
|
@@ -37163,12 +37172,13 @@ class C3 extends vi {
|
|
|
37163
37172
|
d(this, "tagRendererMap", {});
|
|
37164
37173
|
d(this, "fiveDomEvents");
|
|
37165
37174
|
d(this, "zFightingOffset", 0);
|
|
37166
|
-
d(this, "
|
|
37175
|
+
d(this, "tagWrapper");
|
|
37167
37176
|
d(this, "handleEnable", () => {
|
|
37168
|
-
|
|
37177
|
+
var e, i;
|
|
37178
|
+
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;
|
|
37169
37179
|
});
|
|
37170
37180
|
d(this, "handleDisable", () => {
|
|
37171
|
-
this.
|
|
37181
|
+
this.five.scene.remove(this.group), this.tagWrapper.remove(), this.five.needsRender = !0;
|
|
37172
37182
|
});
|
|
37173
37183
|
d(this, "updateTagRenderer", () => {
|
|
37174
37184
|
this.items.forEach((e) => {
|
|
@@ -37177,70 +37187,71 @@ class C3 extends vi {
|
|
|
37177
37187
|
i && e.__renderer !== i && (e.__renderer = i, typeof e.__disposeRenderer == "function" && e.__disposeRenderer(), e.tag.container.innerHTML = "", e.__disposeRenderer = i(e.tag.container, e));
|
|
37178
37188
|
});
|
|
37179
37189
|
});
|
|
37180
|
-
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.fiveDomEvents = wm(e), this.
|
|
37190
|
+
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.fiveDomEvents = wm(e), this.tagWrapper = (() => {
|
|
37191
|
+
var o;
|
|
37192
|
+
const s = document.createElement("div");
|
|
37193
|
+
return s.style.position = "absolute", s.style.top = "0", s.style.left = "0", s.style.width = "100%", s.style.height = "100%", s.style.pointerEvents = "none", s.style.zIndex = `${(o = i == null ? void 0 : i.tagContainerZIndex) != null ? o : ""}`, s;
|
|
37194
|
+
})(), e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
|
|
37181
37195
|
}
|
|
37182
37196
|
load(e) {
|
|
37183
37197
|
return G(this, null, function* () {
|
|
37184
|
-
var
|
|
37185
|
-
this.clear(), this.data = e
|
|
37186
|
-
|
|
37187
|
-
|
|
37188
|
-
|
|
37189
|
-
|
|
37190
|
-
|
|
37191
|
-
|
|
37192
|
-
|
|
37193
|
-
opacity: o.object_data.opacity,
|
|
37194
|
-
lineColor: o.object_data.color,
|
|
37198
|
+
var i;
|
|
37199
|
+
this.clear(), this.data = e, (i = e == null ? void 0 : e.list) == null || i.forEach((s) => {
|
|
37200
|
+
var o;
|
|
37201
|
+
if (s.type === "triangles") {
|
|
37202
|
+
const r = new cr();
|
|
37203
|
+
r.setPoints(s.object_data.points), r.setStyle({
|
|
37204
|
+
color: s.object_data.color,
|
|
37205
|
+
opacity: s.object_data.opacity,
|
|
37206
|
+
lineColor: s.object_data.color,
|
|
37195
37207
|
occlusionVisibility: !1
|
|
37196
|
-
}), this.fiveDomEvents.addEventListener(
|
|
37197
|
-
const
|
|
37208
|
+
}), this.fiveDomEvents.addEventListener(r, "hover", () => r.highlight()), this.fiveDomEvents.addEventListener(r, "unHover", () => r.unhighlight());
|
|
37209
|
+
const a = new Pm({
|
|
37198
37210
|
five: this.five,
|
|
37199
|
-
|
|
37211
|
+
tagWrapper: this.tagWrapper,
|
|
37212
|
+
model: r,
|
|
37200
37213
|
group: this.group,
|
|
37201
|
-
type:
|
|
37202
|
-
rawData:
|
|
37203
|
-
tagContainerZIndex: i
|
|
37214
|
+
type: s.type,
|
|
37215
|
+
rawData: s
|
|
37204
37216
|
});
|
|
37205
|
-
this.items.push(
|
|
37206
|
-
} else if (
|
|
37207
|
-
const
|
|
37208
|
-
this.zFightingOffset += 1e-4
|
|
37209
|
-
|
|
37210
|
-
|
|
37211
|
-
|
|
37212
|
-
|
|
37213
|
-
|
|
37214
|
-
|
|
37215
|
-
|
|
37216
|
-
|
|
37217
|
-
lineColor: o.object_data.color,
|
|
37217
|
+
this.items.push(a);
|
|
37218
|
+
} else if (s.type === "prism") {
|
|
37219
|
+
const r = new hr();
|
|
37220
|
+
this.zFightingOffset += 1e-4;
|
|
37221
|
+
const a = s.object_data.points.map((u) => {
|
|
37222
|
+
var f;
|
|
37223
|
+
return [u[0], u[1] + ((f = s.object_data.fixedY) != null ? f : 0), u[2]];
|
|
37224
|
+
}), l = s.object_data.height + ((o = s.object_data.fixedHeight) != null ? o : 0) + this.zFightingOffset, c = Be(a[0]).add(new w.Vector3().setY(l));
|
|
37225
|
+
r.setPoints({ points: a, heightPoint: c }), r.setStyle({
|
|
37226
|
+
color: s.object_data.color,
|
|
37227
|
+
opacity: s.object_data.opacity,
|
|
37228
|
+
lineColor: s.object_data.color,
|
|
37218
37229
|
occlusionVisibility: !1
|
|
37219
37230
|
});
|
|
37220
|
-
const
|
|
37231
|
+
const h = new w3({
|
|
37221
37232
|
five: this.five,
|
|
37222
|
-
|
|
37233
|
+
tagWrapper: this.tagWrapper,
|
|
37234
|
+
model: r,
|
|
37223
37235
|
group: this.group,
|
|
37224
|
-
type:
|
|
37225
|
-
rawData:
|
|
37226
|
-
tagContainerZIndex: i
|
|
37236
|
+
type: s.type,
|
|
37237
|
+
rawData: s
|
|
37227
37238
|
});
|
|
37228
|
-
this.items.push(
|
|
37229
|
-
} else if (
|
|
37230
|
-
const
|
|
37231
|
-
|
|
37232
|
-
points: [_i(
|
|
37233
|
-
heightPoint: _i(
|
|
37234
|
-
}),
|
|
37235
|
-
const
|
|
37239
|
+
this.items.push(h);
|
|
37240
|
+
} else if (s.type === "box") {
|
|
37241
|
+
const r = new hr(), { start: a, end: l, rotation: c = [0, 0, 0, 0], opacity: h, color: u } = s.object_data, f = new w.Vector3().fromArray(a), g = new w.Vector3().fromArray(l), A = new w.Euler().fromArray(c), p = new w.Quaternion().setFromEuler(A), m = p.clone().inverse(), b = new w.Vector3().lerpVectors(f, g, 0.5), y = b.clone().negate(), P = f.clone().add(y).applyQuaternion(m), I = g.clone().add(y).applyQuaternion(m), k = new w.Box3(P.clone().max(I), P.clone().min(I));
|
|
37242
|
+
r.setPoints({
|
|
37243
|
+
points: [_i(k, 2), _i(k, 3), _i(k, 7), _i(k, 6)],
|
|
37244
|
+
heightPoint: _i(k, 0)
|
|
37245
|
+
}), r.position.copy(b), r.quaternion.copy(p), r.setStyle({ color: u, opacity: h, lineColor: u, occlusionVisibility: !1 });
|
|
37246
|
+
const E = new g3({
|
|
37236
37247
|
five: this.five,
|
|
37237
|
-
|
|
37248
|
+
tagWrapper: this.tagWrapper,
|
|
37249
|
+
model: r,
|
|
37238
37250
|
group: this.group,
|
|
37239
|
-
type:
|
|
37240
|
-
rawData:
|
|
37241
|
-
tagContainerZIndex: i
|
|
37251
|
+
type: s.type,
|
|
37252
|
+
rawData: s
|
|
37242
37253
|
});
|
|
37243
|
-
this.items.push(
|
|
37254
|
+
this.items.push(E);
|
|
37244
37255
|
}
|
|
37245
37256
|
}), 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);
|
|
37246
37257
|
});
|
|
@@ -37273,10 +37284,10 @@ class C3 extends vi {
|
|
|
37273
37284
|
this.hooks.emit("dispose"), this.handleDisable();
|
|
37274
37285
|
}
|
|
37275
37286
|
handleShow() {
|
|
37276
|
-
this.
|
|
37287
|
+
this.group.visible = !0, this.tagWrapper.style.visibility = "visible", this.five.needsRender = !0;
|
|
37277
37288
|
}
|
|
37278
37289
|
handleHide() {
|
|
37279
|
-
this.
|
|
37290
|
+
this.group.visible = !1, this.tagWrapper.style.visibility = "hidden", this.five.needsRender = !0;
|
|
37280
37291
|
}
|
|
37281
37292
|
}
|
|
37282
37293
|
const qx = (...n) => new C3(...n);
|