@realsee/dnalogel 3.34.0-dev.2 → 3.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -1
- package/dist/ModelMakerPlugin/Controller.d.ts +4 -1
- package/dist/ModelMakerPlugin/item/baseItem.d.ts +1 -0
- package/dist/index.cjs.js +4 -4
- package/dist/index.js +74 -58
- package/dist/index.umd.js +4 -4
- package/dist/shared-utils/tag.d.ts +7 -2
- 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 +54 -34
- package/docs/classes/PanoTagPluginController.html +232 -124
- 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 +20 -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 +21 -11
- 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 +4 -1
- package/libs/ModelMakerPlugin/Controller.js +63 -51
- package/libs/ModelMakerPlugin/item/baseItem.d.ts +1 -0
- package/libs/ModelMakerPlugin/item/baseItem.js +15 -15
- package/libs/PanoTagPlugin/controller/TagUtil.js +18 -18
- package/libs/base/BasePlugin.js +3 -3
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +7 -2
- package/libs/shared-utils/tag.js +49 -45
- package/package.json +2 -2
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var r = (l, n, e) => (
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var I = Object.defineProperty;
|
|
2
|
+
var P = (l, n, e) => n in l ? I(l, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[n] = e;
|
|
3
|
+
var r = (l, n, e) => (P(l, typeof n != "symbol" ? n + "" : n, e), e);
|
|
4
|
+
var x = (l, n, e) => new Promise((i, d) => {
|
|
5
|
+
var t = (s) => {
|
|
6
6
|
try {
|
|
7
|
-
|
|
8
|
-
} catch (
|
|
9
|
-
|
|
7
|
+
o(e.next(s));
|
|
8
|
+
} catch (a) {
|
|
9
|
+
d(a);
|
|
10
10
|
}
|
|
11
|
-
},
|
|
11
|
+
}, m = (s) => {
|
|
12
12
|
try {
|
|
13
|
-
|
|
14
|
-
} catch (
|
|
15
|
-
|
|
13
|
+
o(e.throw(s));
|
|
14
|
+
} catch (a) {
|
|
15
|
+
d(a);
|
|
16
16
|
}
|
|
17
|
-
},
|
|
18
|
-
|
|
17
|
+
}, o = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(t, m);
|
|
18
|
+
o((e = e.apply(l, n)).next());
|
|
19
19
|
});
|
|
20
|
-
import { Controller as
|
|
20
|
+
import { Controller as D } from "../base/BasePluginWithData.js";
|
|
21
21
|
import * as h from "three";
|
|
22
|
-
import { ModelMakerBoxItem as
|
|
22
|
+
import { ModelMakerBoxItem as A } from "./item/boxItem.js";
|
|
23
23
|
import { PrismMesh as j } from "../Sculpt/Meshes/Prism.js";
|
|
24
|
-
import { anyPositionToVector3 as
|
|
25
|
-
import { PolygonWithEdgeMesh as
|
|
24
|
+
import { anyPositionToVector3 as T } from "../shared-utils/positionToVector3.js";
|
|
25
|
+
import { PolygonWithEdgeMesh as H } from "../Sculpt/Meshes/PolygonWithEdge.js";
|
|
26
26
|
import "hammerjs";
|
|
27
27
|
import "@realsee/five";
|
|
28
28
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
29
29
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
30
30
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
31
31
|
import "animejs";
|
|
32
|
-
import { notNil as
|
|
33
|
-
import { tagRendererMap as
|
|
34
|
-
import { ModelMakerPrismItem as
|
|
35
|
-
import { ModelMakerPolygonItem as
|
|
32
|
+
import { notNil as V } from "../shared-utils/isNil.js";
|
|
33
|
+
import { tagRendererMap as F } from "./utils/tagRenderer.js";
|
|
34
|
+
import { ModelMakerPrismItem as L } from "./item/prismItem.js";
|
|
35
|
+
import { ModelMakerPolygonItem as O } from "./item/polygonItem.js";
|
|
36
36
|
import { boxVertex as c } from "../shared-utils/Object3DHelper/utils/boundingBox.js";
|
|
37
|
-
import { getFiveDomEvent as
|
|
37
|
+
import { getFiveDomEvent as z } from "./utils/getFiveDomEvent.js";
|
|
38
38
|
import "../base/BasePlugin.js";
|
|
39
39
|
import "../shared-utils/Subscribe.js";
|
|
40
40
|
import "../shared-utils/url/absoluteUrl.js";
|
|
@@ -75,8 +75,8 @@ import "../shared-utils/tag.js";
|
|
|
75
75
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
76
76
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
77
77
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
78
|
-
class Se extends
|
|
79
|
-
constructor(e) {
|
|
78
|
+
class Se extends D {
|
|
79
|
+
constructor(e, i) {
|
|
80
80
|
super(e);
|
|
81
81
|
r(this, "state");
|
|
82
82
|
r(this, "items", []);
|
|
@@ -85,6 +85,7 @@ class Se extends A {
|
|
|
85
85
|
r(this, "tagRendererMap", {});
|
|
86
86
|
r(this, "fiveDomEvents");
|
|
87
87
|
r(this, "zFightingOffset", 0);
|
|
88
|
+
r(this, "tagContainerZIndex");
|
|
88
89
|
r(this, "handleEnable", () => {
|
|
89
90
|
this.items.forEach((e) => e.enable());
|
|
90
91
|
});
|
|
@@ -93,73 +94,84 @@ class Se extends A {
|
|
|
93
94
|
});
|
|
94
95
|
r(this, "updateTagRenderer", () => {
|
|
95
96
|
this.items.forEach((e) => {
|
|
96
|
-
var
|
|
97
|
-
const
|
|
98
|
-
|
|
97
|
+
var d;
|
|
98
|
+
const i = (d = this.tagRendererMap[e.type]) != null ? d : F[e.type];
|
|
99
|
+
i && e.__renderer !== i && (e.__renderer = i, typeof e.__disposeRenderer == "function" && e.__disposeRenderer(), e.tag.container.innerHTML = "", e.__disposeRenderer = i(e.tag.container, e));
|
|
99
100
|
});
|
|
100
101
|
});
|
|
101
|
-
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.fiveDomEvents =
|
|
102
|
+
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.fiveDomEvents = z(e), this.tagContainerZIndex = 1, e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
|
|
102
103
|
}
|
|
103
104
|
load(e) {
|
|
104
|
-
return
|
|
105
|
-
var
|
|
106
|
-
this.clear(), this.data = e
|
|
105
|
+
return x(this, null, function* () {
|
|
106
|
+
var d;
|
|
107
|
+
this.clear(), this.data = e;
|
|
108
|
+
const i = this.tagContainerZIndex;
|
|
109
|
+
(d = e == null ? void 0 : e.list) == null || d.forEach((t) => {
|
|
107
110
|
var m;
|
|
108
111
|
if (t.type === "triangles") {
|
|
109
|
-
const o = new
|
|
112
|
+
const o = new H();
|
|
110
113
|
o.setPoints(t.object_data.points), o.setStyle({
|
|
111
114
|
color: t.object_data.color,
|
|
112
115
|
opacity: t.object_data.opacity,
|
|
113
116
|
lineColor: t.object_data.color,
|
|
114
117
|
occlusionVisibility: !1
|
|
115
118
|
}), this.fiveDomEvents.addEventListener(o, "hover", () => o.highlight()), this.fiveDomEvents.addEventListener(o, "unHover", () => o.unhighlight());
|
|
116
|
-
const
|
|
119
|
+
const s = new O({
|
|
117
120
|
five: this.five,
|
|
118
121
|
model: o,
|
|
119
122
|
group: this.group,
|
|
120
123
|
type: t.type,
|
|
121
|
-
rawData: t
|
|
124
|
+
rawData: t,
|
|
125
|
+
tagContainerZIndex: i
|
|
122
126
|
});
|
|
123
|
-
this.items.push(
|
|
127
|
+
this.items.push(s);
|
|
124
128
|
} else if (t.type === "prism") {
|
|
125
129
|
const o = new j();
|
|
126
130
|
this.zFightingOffset += 1e-4, o.setPoints({
|
|
127
|
-
points: t.object_data.points.map((
|
|
128
|
-
var
|
|
129
|
-
return [
|
|
131
|
+
points: t.object_data.points.map((a) => {
|
|
132
|
+
var b;
|
|
133
|
+
return [a[0], a[1] + ((b = t.object_data.fixedY) != null ? b : 0), a[2]];
|
|
130
134
|
}),
|
|
131
|
-
heightPoint:
|
|
135
|
+
heightPoint: T(t.object_data.points[0]).add(new h.Vector3().setY(t.object_data.height + ((m = t.object_data.fixedHeight) != null ? m : 0))).add(new h.Vector3().setY(this.zFightingOffset))
|
|
132
136
|
}), o.setStyle({
|
|
133
137
|
color: t.object_data.color,
|
|
134
138
|
opacity: t.object_data.opacity,
|
|
135
139
|
lineColor: t.object_data.color,
|
|
136
140
|
occlusionVisibility: !1
|
|
137
141
|
});
|
|
138
|
-
const
|
|
142
|
+
const s = new L({
|
|
139
143
|
five: this.five,
|
|
140
144
|
model: o,
|
|
141
145
|
group: this.group,
|
|
142
146
|
type: t.type,
|
|
143
|
-
rawData: t
|
|
147
|
+
rawData: t,
|
|
148
|
+
tagContainerZIndex: i
|
|
144
149
|
});
|
|
145
|
-
this.items.push(
|
|
150
|
+
this.items.push(s);
|
|
146
151
|
} else if (t.type === "box") {
|
|
147
|
-
const o = new j(), { start:
|
|
152
|
+
const o = new j(), { start: s, end: a, rotation: b = [0, 0, 0, 0], opacity: R, color: f } = t.object_data, g = new h.Vector3().fromArray(s), u = new h.Vector3().fromArray(a), k = new h.Euler().fromArray(b), y = new h.Quaternion().setFromEuler(k), _ = y.clone().inverse(), w = new h.Vector3().lerpVectors(g, u, 0.5), v = w.clone().negate(), E = g.clone().add(v).applyQuaternion(_), M = u.clone().add(v).applyQuaternion(_), p = new h.Box3(E.clone().max(M), E.clone().min(M));
|
|
148
153
|
o.setPoints({
|
|
149
|
-
points: [c(
|
|
150
|
-
heightPoint: c(
|
|
151
|
-
}), o.position.copy(
|
|
152
|
-
const
|
|
153
|
-
|
|
154
|
+
points: [c(p, 2), c(p, 3), c(p, 7), c(p, 6)],
|
|
155
|
+
heightPoint: c(p, 0)
|
|
156
|
+
}), o.position.copy(w), o.quaternion.copy(y), o.setStyle({ color: f, opacity: R, lineColor: f, occlusionVisibility: !1 });
|
|
157
|
+
const C = new A({
|
|
158
|
+
five: this.five,
|
|
159
|
+
model: o,
|
|
160
|
+
group: this.group,
|
|
161
|
+
type: t.type,
|
|
162
|
+
rawData: t,
|
|
163
|
+
tagContainerZIndex: i
|
|
164
|
+
});
|
|
165
|
+
this.items.push(C);
|
|
154
166
|
}
|
|
155
167
|
}), 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);
|
|
156
168
|
});
|
|
157
169
|
}
|
|
158
170
|
setState(e) {
|
|
159
|
-
|
|
171
|
+
V(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: "我不知道捏" })), V(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: "我不知道捏" }));
|
|
160
172
|
}
|
|
161
173
|
getItemById(e) {
|
|
162
|
-
return this.items.find((
|
|
174
|
+
return this.items.find((i) => i.rawData.id === e);
|
|
163
175
|
}
|
|
164
176
|
registerTagRenderer(e) {
|
|
165
177
|
this.tagRendererMap = e, this.updateTagRenderer();
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var t = (s, i, e) => (
|
|
4
|
-
import * as
|
|
5
|
-
import { addIfNotExists as
|
|
6
|
-
import { Subscribe as
|
|
7
|
-
import { tag as
|
|
8
|
-
import { boundingBox as
|
|
9
|
-
import { getFiveDomEvent as
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var m = (s, i, e) => i in s ? l(s, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[i] = e;
|
|
3
|
+
var t = (s, i, e) => (m(s, typeof i != "symbol" ? i + "" : i, e), e);
|
|
4
|
+
import * as a from "three";
|
|
5
|
+
import { addIfNotExists as v } from "../../shared-utils/three/addIfNotExists.js";
|
|
6
|
+
import { Subscribe as f } from "../../shared-utils/Subscribe.js";
|
|
7
|
+
import { tag as b } from "../../shared-utils/tag.js";
|
|
8
|
+
import { boundingBox as c } from "../../shared-utils/Object3DHelper/utils/boundingBox.js";
|
|
9
|
+
import { getFiveDomEvent as u } from "../utils/getFiveDomEvent.js";
|
|
10
10
|
import "../../shared-utils/positionToVector3.js";
|
|
11
11
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
12
12
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
13
13
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
14
14
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
15
|
-
class B extends
|
|
15
|
+
class B extends f {
|
|
16
16
|
constructor(e) {
|
|
17
|
-
var o, r, h;
|
|
17
|
+
var o, r, n, h;
|
|
18
18
|
super();
|
|
19
19
|
t(this, "type");
|
|
20
20
|
t(this, "tag");
|
|
@@ -24,9 +24,9 @@ class B extends v {
|
|
|
24
24
|
t(this, "group");
|
|
25
25
|
t(this, "enabled", !1);
|
|
26
26
|
t(this, "fiveDomEvents");
|
|
27
|
-
this.five = e.five, this.model = e.model, this.group = e.group, this.type = e.type, this.rawData = e.rawData, this.fiveDomEvents =
|
|
28
|
-
const
|
|
29
|
-
this.tag =
|
|
27
|
+
this.five = e.five, this.model = e.model, this.group = e.group, this.type = e.type, this.rawData = e.rawData, this.fiveDomEvents = u(this.five);
|
|
28
|
+
const d = (n = (r = (o = e.position) != null ? o : this.model.worldCenter) != null ? r : this.model.center) != null ? n : c(this.model).getCenter(new a.Vector3());
|
|
29
|
+
this.tag = b(this.five, d, { wrapperStyle: { zIndex: `${(h = e.tagContainerZIndex) != null ? h : ""}` } });
|
|
30
30
|
}
|
|
31
31
|
get container() {
|
|
32
32
|
return this.tag.container;
|
|
@@ -46,7 +46,7 @@ class B extends v {
|
|
|
46
46
|
enable() {
|
|
47
47
|
if (this.enabled)
|
|
48
48
|
return;
|
|
49
|
-
this.enabled = !0,
|
|
49
|
+
this.enabled = !0, v(this.group, this.model), this.five.needsRender = !0, this.tag.enable();
|
|
50
50
|
const e = this.onClick.bind(this);
|
|
51
51
|
this.fiveDomEvents.addEventListener(this.model, "click", e), this.emit("enable");
|
|
52
52
|
}
|
|
@@ -2,21 +2,21 @@ var Z = Object.defineProperty, q = Object.defineProperties;
|
|
|
2
2
|
var K = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var _ = Object.getOwnPropertySymbols;
|
|
4
4
|
var Q = Object.prototype.hasOwnProperty, Y = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var E = (l, s, e) => s in l ? Z(l, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[s] = e, b = (l, s) => {
|
|
6
6
|
for (var e in s || (s = {}))
|
|
7
|
-
Q.call(s, e) &&
|
|
7
|
+
Q.call(s, e) && E(l, e, s[e]);
|
|
8
8
|
if (_)
|
|
9
9
|
for (var e of _(s))
|
|
10
|
-
Y.call(s, e) &&
|
|
10
|
+
Y.call(s, e) && E(l, e, s[e]);
|
|
11
11
|
return l;
|
|
12
12
|
}, U = (l, s) => q(l, K(s));
|
|
13
|
-
var d = (l, s, e) => (
|
|
13
|
+
var d = (l, s, e) => (E(l, typeof s != "symbol" ? s + "" : s, e), e);
|
|
14
14
|
import { defaultGlobalConfig as ee } from "../typings/tag/TagConfig.js";
|
|
15
15
|
import { objectAssignDeepExports as y } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
16
16
|
import * as ie from "three";
|
|
17
17
|
import { DefaultConfig as te } from "../tag.config.js";
|
|
18
18
|
import { anyPositionToVector3 as C } from "../../shared-utils/positionToVector3.js";
|
|
19
|
-
import { planeNormal as
|
|
19
|
+
import { planeNormal as w } from "../utils/planeNormal.js";
|
|
20
20
|
import { getTagCenterPosition as V } from "../utils/tagPosition.js";
|
|
21
21
|
import { normalPositionToPositions as oe } from "../utils/normalPositionToPositions.js";
|
|
22
22
|
import { TagCache as ne } from "./TagCache.js";
|
|
@@ -125,10 +125,10 @@ class hi extends ne {
|
|
|
125
125
|
}
|
|
126
126
|
/** css3DRenderPlugin */
|
|
127
127
|
get css3DRenderPlugin() {
|
|
128
|
-
var e, i;
|
|
128
|
+
var e, i, o;
|
|
129
129
|
if (!this._css3DRenderPlugin) {
|
|
130
|
-
const
|
|
131
|
-
this._css3DRenderPlugin =
|
|
130
|
+
const t = fe(this.five);
|
|
131
|
+
this._css3DRenderPlugin = t, (e = t.frontModeCSS3DRenderer) != null && e.domElementWrapper && (t.frontModeCSS3DRenderer.domElementWrapper.style.zIndex = (o = (i = this.params.containerZIndex) == null ? void 0 : i.toString()) != null ? o : "");
|
|
132
132
|
}
|
|
133
133
|
return this._css3DRenderPlugin;
|
|
134
134
|
}
|
|
@@ -224,7 +224,7 @@ class hi extends ne {
|
|
|
224
224
|
const n = this.workUtil.getObserverPosition(o);
|
|
225
225
|
if (n === void 0)
|
|
226
226
|
throw new Error(`getAngle(): observerPosition is ${n}`);
|
|
227
|
-
const r = (() => e.stickType === "3DPoint" ? C(e.normal) :
|
|
227
|
+
const r = (() => e.stickType === "3DPoint" ? C(e.normal) : w(e.position))();
|
|
228
228
|
if (!r)
|
|
229
229
|
return;
|
|
230
230
|
const f = V(e);
|
|
@@ -280,9 +280,9 @@ class hi extends ne {
|
|
|
280
280
|
if (e.normal)
|
|
281
281
|
return C(e.normal);
|
|
282
282
|
if (e.stickType === "Plane")
|
|
283
|
-
return
|
|
283
|
+
return w(e.position);
|
|
284
284
|
if (e.stickType === "Model")
|
|
285
|
-
return
|
|
285
|
+
return w(this.getPositions(e));
|
|
286
286
|
}
|
|
287
287
|
get filterPointTag() {
|
|
288
288
|
return this.tags.filter((i) => i.stickType === "2DPoint" || i.stickType === "3DPoint").filter((i) => i.position);
|
|
@@ -323,20 +323,20 @@ class hi extends ne {
|
|
|
323
323
|
* @description 获取merge后的配置
|
|
324
324
|
*/
|
|
325
325
|
calculateTagConfig(e, i) {
|
|
326
|
-
var A, O, I,
|
|
326
|
+
var A, O, I, W, j;
|
|
327
327
|
const o = (A = i == null ? void 0 : i.useCache) != null ? A : !0;
|
|
328
328
|
if (!e)
|
|
329
329
|
return (O = this.config.globalConfig) != null ? O : {};
|
|
330
330
|
if (o) {
|
|
331
331
|
if ((I = e == null ? void 0 : e.computedConfig) != null && I._isMerged)
|
|
332
332
|
return e.computedConfig;
|
|
333
|
-
if ((
|
|
333
|
+
if ((W = e == null ? void 0 : e.config) != null && W._isMerged)
|
|
334
334
|
return e.config;
|
|
335
335
|
}
|
|
336
336
|
const t = {}, n = {}, r = {};
|
|
337
337
|
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([u, m]) => {
|
|
338
|
-
var
|
|
339
|
-
const a = u, D = a.split("-"),
|
|
338
|
+
var R, F;
|
|
339
|
+
const a = u, D = a.split("-"), x = u.startsWith("["), T = x ? D[0].slice(1, -1) : void 0, g = x ? D.slice(1) : D, v = T ? ["PanoramaLike", "ModelLike"].includes(T) ? (R = n[T]) != null ? R : n[T] = {} : (F = r[T]) != null ? F : r[T] = {} : t;
|
|
340
340
|
if (!v[a]) {
|
|
341
341
|
if (g.length === 0 && (v[a] = m), g.length === 1) {
|
|
342
342
|
const [p] = g;
|
|
@@ -349,13 +349,13 @@ class hi extends ne {
|
|
|
349
349
|
if (g.length === 3) {
|
|
350
350
|
const [p = "Any", M, X] = g;
|
|
351
351
|
if (M === "Audio" && e.contentType === "Audio") {
|
|
352
|
-
const
|
|
353
|
-
(
|
|
352
|
+
const L = e;
|
|
353
|
+
(L.stickType === p || p === "Any") && L.data.appearance === X && (v[a] = m);
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
});
|
|
358
|
-
const f = (
|
|
358
|
+
const f = (j = e.initialConfig) != null ? j : {}, c = y({}, ee, this.config.globalConfig, ...Object.values(t)), h = y({}, c, f), P = {}, G = Object.values(ae.Mode);
|
|
359
359
|
$(n).forEach(([u, m]) => {
|
|
360
360
|
G.forEach((a) => {
|
|
361
361
|
(u === "PanoramaLike" && S(a) || u === "ModelLike" && z(a)) && (P[a] = y({}, c, ...Object.values(m), f, { _isMerged: !0 }));
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -10,12 +10,12 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
|
10
10
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
11
11
|
import "animejs";
|
|
12
12
|
import { absoluteUrl as l } from "../shared-utils/url/absoluteUrl.js";
|
|
13
|
-
let
|
|
13
|
+
let C = class {
|
|
14
14
|
constructor(t, r) {
|
|
15
15
|
/**
|
|
16
16
|
* @realsee/dnalogel 版本号
|
|
17
17
|
*/
|
|
18
|
-
i(this, "VERSION", "3.34.
|
|
18
|
+
i(this, "VERSION", "3.34.1");
|
|
19
19
|
i(this, "five");
|
|
20
20
|
/**
|
|
21
21
|
* @description: 插件事件钩子
|
|
@@ -38,5 +38,5 @@ let v = class {
|
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
C as Controller
|
|
42
42
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.34.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.34.1",
|
|
4
4
|
[
|
|
5
5
|
"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=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
|
@@ -8,7 +8,10 @@ export declare class LightTag {
|
|
|
8
8
|
private position;
|
|
9
9
|
private wrapper;
|
|
10
10
|
private disposer;
|
|
11
|
-
|
|
11
|
+
private wrapperStyle;
|
|
12
|
+
constructor(five: Five, position: AnyPosition, config?: {
|
|
13
|
+
wrapperStyle?: Partial<CSSStyleDeclaration>;
|
|
14
|
+
});
|
|
12
15
|
show(): void;
|
|
13
16
|
hide(params?: {
|
|
14
17
|
withAnimation?: boolean;
|
|
@@ -18,4 +21,6 @@ export declare class LightTag {
|
|
|
18
21
|
private onCameraUpdate;
|
|
19
22
|
private onFiveEveryReady;
|
|
20
23
|
}
|
|
21
|
-
export declare function tag(five: Five, position: AnyPosition
|
|
24
|
+
export declare function tag(five: Five, position: AnyPosition, config?: {
|
|
25
|
+
wrapperStyle?: Partial<CSSStyleDeclaration>;
|
|
26
|
+
}): LightTag;
|
package/libs/shared-utils/tag.js
CHANGED
|
@@ -1,72 +1,76 @@
|
|
|
1
|
-
var
|
|
2
|
-
var c = (o,
|
|
3
|
-
var
|
|
4
|
-
import { anyPositionToVector3 as
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var c = (o, e, t) => e in o ? l(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
+
var s = (o, e, t) => (c(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import { anyPositionToVector3 as p } from "./positionToVector3.js";
|
|
5
5
|
import * as d from "three";
|
|
6
|
-
import { vector3ToScreen as
|
|
7
|
-
const
|
|
6
|
+
import { vector3ToScreen as y } from "./five/vector3ToScreen.js";
|
|
7
|
+
const h = "LightTagContainer_shgjakdhwakjdhsja";
|
|
8
8
|
class f {
|
|
9
|
-
constructor(t,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
constructor(e, t, n) {
|
|
10
|
+
s(this, "container");
|
|
11
|
+
s(this, "visible", !1);
|
|
12
|
+
s(this, "enabled", !1);
|
|
13
|
+
s(this, "five");
|
|
14
|
+
s(this, "position");
|
|
15
|
+
s(this, "wrapper");
|
|
16
|
+
s(this, "disposer");
|
|
17
|
+
s(this, "wrapperStyle", {});
|
|
18
|
+
s(this, "onCameraUpdate", () => {
|
|
18
19
|
if (this.visible === !1)
|
|
19
20
|
return;
|
|
20
|
-
const
|
|
21
|
-
|
|
21
|
+
const e = y(this.five.camera, this.position);
|
|
22
|
+
e ? (this.container.style.left = e.leftPercent + "%", this.container.style.top = e.topPercent + "%") : (this.container.style.left = "-100%", this.container.style.top = "-100%");
|
|
22
23
|
});
|
|
23
|
-
|
|
24
|
-
var
|
|
24
|
+
s(this, "onFiveEveryReady", () => {
|
|
25
|
+
var e;
|
|
25
26
|
if (this.visible && this.five.state.mode !== "Panorama") {
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
(
|
|
27
|
+
const t = new d.Raycaster();
|
|
28
|
+
t.set(this.five.camera.position, this.position.clone().sub(this.five.camera.position));
|
|
29
|
+
const n = (e = this.five.model.intersectRaycaster(t)) == null ? void 0 : e[0];
|
|
30
|
+
(n == null ? void 0 : n.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");
|
|
30
31
|
}
|
|
31
32
|
});
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
var i;
|
|
34
|
+
this.five = e, this.position = p(t).clone(), this.container = (() => {
|
|
35
|
+
const a = document.createElement("div");
|
|
36
|
+
return a.style.width = "0", a.style.height = "0", a.style.position = "absolute", a;
|
|
37
|
+
})(), this.wrapperStyle = (i = n == null ? void 0 : n.wrapperStyle) != null ? i : {}, this.enable(), this.show();
|
|
36
38
|
}
|
|
37
39
|
show() {
|
|
38
|
-
this.visible = !0, this.container.style.opacity = "1", this.container.style.pointerEvents = "auto", this.container.
|
|
40
|
+
this.visible = !0, this.container.style.opacity = "1", this.container.style.pointerEvents = "auto", this.container.style.transition = "opacity 0.2s linear", this.onCameraUpdate();
|
|
39
41
|
}
|
|
40
|
-
hide(
|
|
41
|
-
this.visible = !1,
|
|
42
|
+
hide(e) {
|
|
43
|
+
this.visible = !1, e != null && e.withAnimation ? this.container.style.transition = "opacity 0.2s linear" : this.container.style.transition = "", this.container.style.opacity = "0", this.container.style.pointerEvents = "none";
|
|
42
44
|
}
|
|
43
45
|
enable() {
|
|
44
|
-
var
|
|
46
|
+
var n;
|
|
45
47
|
if (this.enabled)
|
|
46
48
|
return;
|
|
47
|
-
this.enabled = !0, this.wrapper = (
|
|
49
|
+
this.enabled = !0, this.wrapper = (n = document.getElementById(h)) != null ? n : (() => {
|
|
48
50
|
var a;
|
|
49
|
-
const
|
|
50
|
-
return
|
|
51
|
+
const i = document.createElement("div");
|
|
52
|
+
return i.id = h, i.style.position = "absolute", i.style.top = "0", i.style.left = "0", i.style.width = "100%", i.style.height = "100%", i.style.pointerEvents = "none", Object.keys(this.wrapperStyle).forEach((r) => {
|
|
53
|
+
i.style[r] = this.wrapperStyle[r];
|
|
54
|
+
}), (a = this.five.getElement()) == null || a.parentElement.appendChild(i), i;
|
|
51
55
|
})(), this.wrapper.appendChild(this.container);
|
|
52
|
-
let
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
this.onFiveEveryReady(),
|
|
56
|
+
let e = !1;
|
|
57
|
+
const t = () => {
|
|
58
|
+
e || (e = !0, this.five.ready().then(() => {
|
|
59
|
+
this.onFiveEveryReady(), e = !1;
|
|
56
60
|
}));
|
|
57
61
|
};
|
|
58
|
-
this.five.on("cameraUpdate",
|
|
59
|
-
this.five.off("cameraUpdate",
|
|
62
|
+
this.five.on("cameraUpdate", t), this.five.on("cameraUpdate", this.onCameraUpdate), this.disposer = () => {
|
|
63
|
+
this.five.off("cameraUpdate", t), this.five.off("cameraUpdate", this.onCameraUpdate);
|
|
60
64
|
};
|
|
61
65
|
}
|
|
62
66
|
disable() {
|
|
63
|
-
var
|
|
64
|
-
this.enabled && (this.enabled = !1, this.wrapper.removeChild(this.container), (
|
|
67
|
+
var e;
|
|
68
|
+
this.enabled && (this.enabled = !1, this.wrapper.removeChild(this.container), (e = this.disposer) == null || e.call(this));
|
|
65
69
|
}
|
|
66
70
|
}
|
|
67
|
-
function
|
|
68
|
-
return new f(o, t);
|
|
71
|
+
function w(o, e, t) {
|
|
72
|
+
return new f(o, e, t);
|
|
69
73
|
}
|
|
70
74
|
export {
|
|
71
|
-
|
|
75
|
+
w as tag
|
|
72
76
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@realsee/dnalogel",
|
|
3
|
-
"version": "3.34.
|
|
3
|
+
"version": "3.34.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./libs/index.js",
|
|
6
6
|
"types": "./libs/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"build:dist": "NODE_ENV=production BUILD_MODULE=dist vite build -m production",
|
|
25
25
|
"build:components": "NODE_ENV=production BUILD_MODULE=components vite build -m production",
|
|
26
26
|
"docs": "typedoc --options ./typedoc.json",
|
|
27
|
-
"prepublishOnly": "run-p build",
|
|
27
|
+
"prepublishOnly": "run-p build docs",
|
|
28
28
|
"postpublish": "cnpm sync @realsee/dnalogel"
|
|
29
29
|
},
|
|
30
30
|
"files": [
|