@realsee/dnalogel 3.35.0-dev.1 → 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/PanoTagPlugin/controller/TagRender.d.ts +1 -2
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +6 -11
- package/dist/PanoTagPlugin/controller/index.d.ts +0 -1
- package/dist/PanoTagPlugin/utils/debounce.d.ts +0 -1
- package/dist/PanoVideoPlugin/Controller.d.ts +3 -1
- package/dist/PanoVideoPlugin/typings.d.ts +2 -2
- package/dist/index.cjs.js +54 -54
- package/dist/index.js +3161 -3165
- package/dist/index.umd.js +44 -44
- 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/PanoTagPlugin/controller/TagComputer.js +0 -2
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +1 -2
- package/libs/PanoTagPlugin/controller/TagRender.js +63 -67
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +6 -11
- package/libs/PanoTagPlugin/controller/TagUtil.js +107 -106
- package/libs/PanoTagPlugin/controller/index.d.ts +0 -1
- package/libs/PanoTagPlugin/controller/index.js +61 -67
- package/libs/PanoTagPlugin/utils/debounce.d.ts +0 -1
- package/libs/PanoTagPlugin/utils/debounce.js +4 -10
- package/libs/PanoTagPlugin/utils/index.js +6 -7
- 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
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import type { Mode as FiveMode } from '@realsee/five';
|
|
1
2
|
export interface PolylineJson {
|
|
2
3
|
id: string;
|
|
3
4
|
lines: LineJson[];
|
|
4
5
|
/** 当前折线在哪个点位上可见,字段不存在时,不做限制 */
|
|
5
6
|
visiblePanoIndexes?: number[];
|
|
7
|
+
/** 当前折线在哪些 FiveMode 上可见,字段不存在时,不做限制 */
|
|
8
|
+
visibleFiveMode?: FiveMode[];
|
|
6
9
|
}
|
|
7
10
|
export interface LineJson {
|
|
8
11
|
id: string;
|
|
@@ -70,10 +70,7 @@ const ue = (t, n) => Math.sqrt(Math.pow(t.z - n.z, 2) + Math.pow(t.x - n.x, 2)),
|
|
|
70
70
|
`, o = document.createElement("div");
|
|
71
71
|
return o.setAttribute("class", "PanoRulerPlugin-rule"), o.setAttribute("data-name", r), o.setAttribute("style", "display: none"), o.innerHTML = c, o;
|
|
72
72
|
}, h = document.createElement("div");
|
|
73
|
-
h.setAttribute(
|
|
74
|
-
"style",
|
|
75
|
-
"position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
|
|
76
|
-
);
|
|
73
|
+
h.setAttribute("style", "position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;");
|
|
77
74
|
const S = document.createElement("div");
|
|
78
75
|
S.innerHTML = ce, h.appendChild(S);
|
|
79
76
|
const l = {}, u = (r, a) => {
|
|
@@ -129,9 +126,7 @@ const ue = (t, n) => Math.sqrt(Math.pow(t.z - n.z, 2) + Math.pow(t.x - n.x, 2)),
|
|
|
129
126
|
const o = r || n.roomInfo, i = a || n.roomRules;
|
|
130
127
|
if (!o || !i)
|
|
131
128
|
throw new Error("标尺数据依赖不齐全!");
|
|
132
|
-
return e.loaded = !1, e.options = B(B({}, e.options), c || {}), t.model.loaded ? u(o, i) : yield new Promise(
|
|
133
|
-
(y) => t.once("modelLoaded", () => y(u(o, i)))
|
|
134
|
-
);
|
|
129
|
+
return e.loaded = !1, e.options = B(B({}, e.options), c || {}), t.model.loaded ? u(o, i) : yield new Promise((y) => t.once("modelLoaded", () => y(u(o, i))));
|
|
135
130
|
});
|
|
136
131
|
n.roomInfo && n.roomRules && x(n.roomInfo, n.roomRules);
|
|
137
132
|
const v = (r, a, c, o) => {
|
|
@@ -218,24 +213,29 @@ const ue = (t, n) => Math.sqrt(Math.pow(t.z - n.z, 2) + Math.pow(t.x - n.x, 2)),
|
|
|
218
213
|
continue;
|
|
219
214
|
}
|
|
220
215
|
const K = w.distanceTo(_);
|
|
221
|
-
if (_.clone().sub(
|
|
216
|
+
if (_.clone().sub(
|
|
217
|
+
_.clone().sub(w).divide(new L(2, 2, 2))
|
|
218
|
+
).distanceTo(y) / K > 8) {
|
|
222
219
|
g.style.display = "none";
|
|
223
220
|
continue;
|
|
224
221
|
}
|
|
225
222
|
const O = w.clone().project(c), R = (O.x + 1) / 2 * m, F = (-O.y + 1) / 2 * d, V = _.clone().project(c), N = (V.x + 1) / 2 * m, D = (-V.y + 1) / 2 * d, E = Math.sqrt(Math.pow(N - R, 2) + Math.pow(D - F, 2));
|
|
226
223
|
let H = E, z = 50;
|
|
227
|
-
const M = v(
|
|
228
|
-
x: ~~
|
|
229
|
-
|
|
230
|
-
|
|
224
|
+
const M = v(
|
|
225
|
+
{ x: ~~R, y: ~~F },
|
|
226
|
+
{
|
|
227
|
+
x: ~~N,
|
|
228
|
+
y: ~~D
|
|
229
|
+
},
|
|
230
|
+
m,
|
|
231
|
+
d
|
|
232
|
+
);
|
|
231
233
|
if (M && M.length === 1 && (f === w ? (H = Math.sqrt(Math.pow(M[0].x - R, 2) + Math.pow(M[0].y - F, 2)), z = H / E * 50) : f === _ && (H = Math.sqrt(Math.pow(M[0].x - N, 2) + Math.pow(M[0].y - D, 2)), z = 100 - H / E * 50)), M && M.length === 2) {
|
|
232
234
|
const G = {
|
|
233
235
|
x: (M[0].x + M[1].x) / 2,
|
|
234
236
|
y: (M[0].y + M[1].y) / 2
|
|
235
237
|
};
|
|
236
|
-
z = Math.sqrt(
|
|
237
|
-
Math.pow(G.x - R, 2) + Math.pow(G.y - F, 2)
|
|
238
|
-
) / E * 100;
|
|
238
|
+
z = Math.sqrt(Math.pow(G.x - R, 2) + Math.pow(G.y - F, 2)) / E * 100;
|
|
239
239
|
}
|
|
240
240
|
const te = (Math.PI / 2 - Math.atan2(N - R, F - D)) / Math.PI * 180, W = T.querySelector(".PanoRulerPlugin-rule-label"), U = W.children[0].clientWidth;
|
|
241
241
|
U >= E || U / 2 >= z / 100 * E || U / 2 >= (1 - z / 100) * E ? T.style.display = "none" : (T.style.display = "block", T.style.width = E + "px", T.style.left = R + "px", T.style.top = F + "px", T.style.transform = `rotate(${-te}deg)`, W.style.left = `${z}%`);
|
|
@@ -89,8 +89,6 @@ class ni extends W {
|
|
|
89
89
|
* @description 获取是否可见
|
|
90
90
|
*/
|
|
91
91
|
getVisible(e, i) {
|
|
92
|
-
if (!e.enabled)
|
|
93
|
-
return !1;
|
|
94
92
|
const s = h(h({}, this.five.getCurrentState()), i), { panoIndex: t, mode: r } = s, n = x(r) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
|
|
95
93
|
if ((n == null ? void 0 : n.visible) !== void 0)
|
|
96
94
|
return n.visible;
|
|
@@ -35,8 +35,6 @@ export declare abstract class TagRender extends TagComputer {
|
|
|
35
35
|
* @description 更新所有标签
|
|
36
36
|
*/
|
|
37
37
|
protected updateRenderAllTags(): void;
|
|
38
|
-
protected updateAllTagsNextFrame(): void;
|
|
39
|
-
protected updateTag(tag: TagInstance): void;
|
|
40
38
|
protected updateRenderVideoPlane(): void;
|
|
41
39
|
/**
|
|
42
40
|
* @description 渲染图片贴片
|
|
@@ -70,6 +68,7 @@ export declare abstract class TagRender extends TagComputer {
|
|
|
70
68
|
* @description 渲染单个点的标签
|
|
71
69
|
*/
|
|
72
70
|
protected updateRenderPointTag(): void;
|
|
71
|
+
protected updatePointTagPosition(): void;
|
|
73
72
|
protected updateTagContainerVisible(): void;
|
|
74
73
|
protected disposeAllCSS3DContainer(): void;
|
|
75
74
|
/**
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var A = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
2
|
+
var R = Object.getOwnPropertySymbols;
|
|
3
|
+
var k = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var C = (d, m, t) => m in d ? A(d, m, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[m] = t, j = (d, m) => {
|
|
5
5
|
for (var t in m || (m = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
|
|
10
|
-
return
|
|
6
|
+
k.call(m, t) && C(d, t, m[t]);
|
|
7
|
+
if (R)
|
|
8
|
+
for (var t of R(m))
|
|
9
|
+
I.call(m, t) && C(d, t, m[t]);
|
|
10
|
+
return d;
|
|
11
11
|
};
|
|
12
|
-
var u = (
|
|
13
|
-
var
|
|
12
|
+
var u = (d, m, t) => (C(d, typeof m != "symbol" ? m + "" : m, t), t);
|
|
13
|
+
var S = (d, m, t) => new Promise((e, o) => {
|
|
14
14
|
var i = (s) => {
|
|
15
15
|
try {
|
|
16
16
|
a(t.next(s));
|
|
@@ -24,18 +24,17 @@ var C = (p, m, t) => new Promise((e, o) => {
|
|
|
24
24
|
o(n);
|
|
25
25
|
}
|
|
26
26
|
}, a = (s) => s.done ? e(s.value) : Promise.resolve(s.value).then(i, r);
|
|
27
|
-
a((t = t.apply(
|
|
27
|
+
a((t = t.apply(d, m)).next());
|
|
28
28
|
});
|
|
29
|
-
import { TagComputer as
|
|
30
|
-
import { Group as
|
|
29
|
+
import { TagComputer as V } from "./TagComputer.js";
|
|
30
|
+
import { Group as y, Quaternion as x, Vector3 as b, Matrix4 as v } from "three";
|
|
31
31
|
import O from "../Components/TagContainer.js";
|
|
32
|
-
import
|
|
33
|
-
import { loadGLTF as
|
|
34
|
-
import { isMediaModelTag as
|
|
35
|
-
import { VideoPlane as
|
|
36
|
-
import { centerPoint as
|
|
37
|
-
import { arrayPositionToVector3 as
|
|
38
|
-
import { debounceByKey as y } from "../utils/debounce.js";
|
|
32
|
+
import E from "../Components/Tag/index.js";
|
|
33
|
+
import { loadGLTF as G } from "../../shared-utils/three/GLTFLoader.js";
|
|
34
|
+
import { isMediaModelTag as D, isStickModelTag as F } from "../utils/tag/tagCheck.js";
|
|
35
|
+
import { VideoPlane as _, ImagePlane as w } from "../utils/model/mediaPlane.js";
|
|
36
|
+
import { centerPoint as L } from "../../shared-utils/three/centerPoint.js";
|
|
37
|
+
import { arrayPositionToVector3 as g } from "../../shared-utils/positionToVector3.js";
|
|
39
38
|
import "../utils/tagPosition.js";
|
|
40
39
|
import "../utils/checkRange.js";
|
|
41
40
|
import "../../shared-utils/five/mode.js";
|
|
@@ -162,15 +161,15 @@ import "../Components/Tag/LinkTag.js";
|
|
|
162
161
|
import "../Components/Tag/PanoramaTag.js";
|
|
163
162
|
import "../Components/Tag/CustomTag.js";
|
|
164
163
|
import "@realsee/five/gltf-loader";
|
|
165
|
-
const
|
|
166
|
-
class
|
|
164
|
+
const W = /* @__PURE__ */ new Map(), $ = /* @__PURE__ */ new Map();
|
|
165
|
+
class Pi extends V {
|
|
167
166
|
constructor(t) {
|
|
168
167
|
super(t);
|
|
169
168
|
u(this, "rendererMap", /* @__PURE__ */ new Map());
|
|
170
169
|
u(this, "contentTypeMap", /* @__PURE__ */ new Map());
|
|
171
|
-
u(this, "group", new
|
|
172
|
-
u(this, "imagePlaneGroup", new
|
|
173
|
-
u(this, "gltfObjectGroup", new
|
|
170
|
+
u(this, "group", new y());
|
|
171
|
+
u(this, "imagePlaneGroup", new y());
|
|
172
|
+
u(this, "gltfObjectGroup", new y());
|
|
174
173
|
/** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
|
|
175
174
|
u(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
176
175
|
/** 临时状态 */
|
|
@@ -178,14 +177,14 @@ class bi extends x {
|
|
|
178
177
|
/** 点标签 */
|
|
179
178
|
u(this, "TagContainerSvelte");
|
|
180
179
|
/** 加载外部模型 */
|
|
181
|
-
u(this, "loadModel", (t) =>
|
|
180
|
+
u(this, "loadModel", (t) => S(this, null, function* () {
|
|
182
181
|
var a;
|
|
183
182
|
const e = t.data.modelUrl;
|
|
184
183
|
if (!e)
|
|
185
184
|
return;
|
|
186
185
|
t.loading = !0;
|
|
187
|
-
const o =
|
|
188
|
-
var
|
|
186
|
+
const o = G(e).then((s) => {
|
|
187
|
+
var p;
|
|
189
188
|
const n = Object.assign(s.scene, {
|
|
190
189
|
customID: t.id,
|
|
191
190
|
isTagModel: !0,
|
|
@@ -194,7 +193,7 @@ class bi extends x {
|
|
|
194
193
|
this.hooks.emit("click", { target: "TagModel", tag: t, event: h });
|
|
195
194
|
})
|
|
196
195
|
});
|
|
197
|
-
return n.visible = this.getCurrentVisibleState(t), new v().fromArray(t.matrix).decompose(n.position, n.quaternion, n.scale), n.updateWorldMatrix(!0, !0), n.visible = this.getVisible(t), (
|
|
196
|
+
return n.visible = this.getCurrentVisibleState(t), new v().fromArray(t.matrix).decompose(n.position, n.quaternion, n.scale), n.updateWorldMatrix(!0, !0), n.visible = this.getVisible(t), (p = this.getTagConfig(t).modelConfig) != null && p.autoLookAtEnabled && n.lookAt(this.five.camera.position.clone().setY(n.position.y)), n;
|
|
198
197
|
});
|
|
199
198
|
t.model = { promise: o };
|
|
200
199
|
const i = yield o;
|
|
@@ -202,10 +201,10 @@ class bi extends x {
|
|
|
202
201
|
return;
|
|
203
202
|
t.model.object = i;
|
|
204
203
|
const r = this.gltfObjectGroup.children.find((s) => s.customID === t.id);
|
|
205
|
-
if (r && (this.gltfObjectGroup.remove(r), r.removeEventListener()), this.updateRender3DDomTag(),
|
|
204
|
+
if (r && (this.gltfObjectGroup.remove(r), r.removeEventListener()), this.updateRender3DDomTag(), D(t)) {
|
|
206
205
|
if (this.getRenderType(t) === "Mesh" && !t.mediaPlane) {
|
|
207
|
-
const s = t.data.mediaPosition.map(
|
|
208
|
-
t.mediaPlane = new w(t.data.mediaData[0].url, t.data.mediaPosition.map(
|
|
206
|
+
const s = t.data.mediaPosition.map(g);
|
|
207
|
+
t.mediaPlane = new w(t.data.mediaData[0].url, t.data.mediaPosition.map(g), {
|
|
209
208
|
objectFit: t.data.objectFit
|
|
210
209
|
});
|
|
211
210
|
const n = new b().addVectors(s[0], s[2]).divideScalar(2);
|
|
@@ -238,7 +237,7 @@ class bi extends x {
|
|
|
238
237
|
this.tags.length && (this.tags.forEach((e) => {
|
|
239
238
|
var o, i;
|
|
240
239
|
(i = (o = e.mediaPlane) == null ? void 0 : o.parent) == null || i.remove(e.mediaPlane);
|
|
241
|
-
}), this.tags = [], (t = this.TagContainerSvelte) == null || t.$destroy(), this.TagContainerSvelte = void 0, this.disposeAllCSS3DContainer(), this.updateRenderAllTags()), this.enabledModelTagSet.clear(), this.clearCache()
|
|
240
|
+
}), this.tags = [], (t = this.TagContainerSvelte) == null || t.$destroy(), this.TagContainerSvelte = void 0, this.disposeAllCSS3DContainer(), this.updateRenderAllTags()), this.enabledModelTagSet.clear(), this.clearCache();
|
|
242
241
|
}
|
|
243
242
|
/**
|
|
244
243
|
* @description 更新所有标签
|
|
@@ -246,12 +245,6 @@ class bi extends x {
|
|
|
246
245
|
updateRenderAllTags() {
|
|
247
246
|
this.enabledModelTagSet.clear(), this.tags.forEach((t) => t.stickType === "Model" && this.enabledModelTagSet.add(t.id)), this.updateRenderPointTag(), this.updateRender3DDomTag(), this.updateRenderModelTag(), this.updateRenderImagePlane(), this.updateRenderVideoPlane();
|
|
248
247
|
}
|
|
249
|
-
updateAllTagsNextFrame() {
|
|
250
|
-
requestAnimationFrame(() => this.updateRenderAllTags());
|
|
251
|
-
}
|
|
252
|
-
updateTag(t) {
|
|
253
|
-
t.stickType === "2DPoint" ? y("updateRenderPointTag", () => this.updateRenderPointTag()) : t.stickType === "3DPoint" ? (y("updateRenderPointTag", () => this.updateRenderPointTag()), y("updateRender3DDomTag", () => this.updateRender3DDomTag())) : t.stickType === "Model" ? (this.enabledModelTagSet.clear(), this.tags.forEach((e) => e.stickType === "Model" && this.enabledModelTagSet.add(e.id)), this.updateRenderModelTag()) : t.stickType === "Plane" && (this.updateRenderImagePlane(), this.updateRenderVideoPlane());
|
|
254
|
-
}
|
|
255
248
|
updateRenderVideoPlane() {
|
|
256
249
|
this.filterImagePlane.filter((e) => {
|
|
257
250
|
var o, i;
|
|
@@ -266,12 +259,12 @@ class bi extends x {
|
|
|
266
259
|
return;
|
|
267
260
|
const r = this.getCurrentVisibleState(e), a = (() => !!(e.mediaPlane && !r))(), s = (() => !!(!e.mediaPlane && r))(), n = (() => !!(e.mediaPlane && e.mediaPlane.src !== i))();
|
|
268
261
|
if ((a || n) && e.mediaPlane && (this.imagePlaneGroup.remove(e.mediaPlane), e.mediaPlane.dispose(), e.mediaPlane.removeFromParent(), e.mediaPlane = void 0), s || n) {
|
|
269
|
-
const
|
|
262
|
+
const p = e.position.map(g), h = new _(i, p, {
|
|
270
263
|
videoCoverSrc: o.videoCoverUrl,
|
|
271
264
|
playButton: e.data.playIcon,
|
|
272
265
|
paused: !((l = e.data.autoplayConfig) != null && l.autoplayVideo),
|
|
273
266
|
objectFit: e.data.objectFit,
|
|
274
|
-
videoTextureMap:
|
|
267
|
+
videoTextureMap: W,
|
|
275
268
|
ImageTextureMap: $,
|
|
276
269
|
domEvents: this.domEvents
|
|
277
270
|
});
|
|
@@ -294,7 +287,7 @@ class bi extends x {
|
|
|
294
287
|
const { url: o } = e.data.mediaData[0];
|
|
295
288
|
if (!o)
|
|
296
289
|
return;
|
|
297
|
-
const i = e.position.map(
|
|
290
|
+
const i = e.position.map(g), r = this.getCurrentVisibleState(e), a = (() => !!(e.mediaPlane && !r))(), s = (() => !!(!e.mediaPlane && r))(), n = (() => !!(e.mediaPlane && e.mediaPlane.src !== o))();
|
|
298
291
|
(a || n) && e.mediaPlane && (this.imagePlaneGroup.remove(e.mediaPlane), e.mediaPlane.dispose(), e.mediaPlane.removeFromParent(), e.mediaPlane = void 0), (s || n) && (e.mediaPlane = new w(o, i, { objectFit: e.data.objectFit }), this.getTagConfig(e).clickable !== !1 && this.domEvents.addAutoBindEventListener(
|
|
299
292
|
e.mediaPlane,
|
|
300
293
|
"click",
|
|
@@ -314,12 +307,12 @@ class bi extends x {
|
|
|
314
307
|
if (e.tag3DContentSvelte) {
|
|
315
308
|
const { svelteApp: a, css3DInstance: s, initialNormal: n, currentNormal: l } = e.tag3DContentSvelte;
|
|
316
309
|
if (a.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !n.equals(l)) {
|
|
317
|
-
const
|
|
318
|
-
s.css3DObject.setRotationFromQuaternion(
|
|
310
|
+
const p = new x().setFromUnitVectors(n, l);
|
|
311
|
+
s.css3DObject.setRotationFromQuaternion(p);
|
|
319
312
|
}
|
|
320
313
|
return;
|
|
321
314
|
} else {
|
|
322
|
-
if (
|
|
315
|
+
if (D(e) && !((o = e.model) != null && o.object) || ((i = e.state) == null ? void 0 : i.visible) === !1 || !this.state.visible || !this.state.enabled || !this.css3DRenderPlugin)
|
|
323
316
|
return;
|
|
324
317
|
if (e.stickType === "3DPoint" && !e.normal)
|
|
325
318
|
return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
|
|
@@ -329,26 +322,26 @@ class bi extends x {
|
|
|
329
322
|
const s = this.getTagNormal(e);
|
|
330
323
|
if (!s)
|
|
331
324
|
return;
|
|
332
|
-
const n = this.getTagConfig(e), l =
|
|
325
|
+
const n = this.getTagConfig(e), l = j({ wrapperStyle: { zIndex: this.calculateTagZIndex(e).toString() } }, n.tag3DConfig);
|
|
333
326
|
if (this.getRenderType(e) === "BehindDom" || l.mode === "behind") {
|
|
334
327
|
l.mode = "behind", l.container = document.createElement("div");
|
|
335
328
|
const f = "black";
|
|
336
329
|
l.container.style.backgroundColor = f, l.container.style.border = `3px solid ${f}`, this.css3DRenderPlugin.hooks.on("render", () => {
|
|
337
330
|
var c;
|
|
338
|
-
if (
|
|
339
|
-
const
|
|
340
|
-
this.hooks.emit("click", { event:
|
|
331
|
+
if (p.css3DObject.opacityMesh && n.clickable !== !1) {
|
|
332
|
+
const P = this.addObjectClickHandler(e, p.css3DObject.opacityMesh, (T) => {
|
|
333
|
+
this.hooks.emit("click", { event: T, target: "TagContent", tag: e });
|
|
341
334
|
});
|
|
342
|
-
(c = this.store.css3DRenderDisposer.get(e.id)) == null || c.push(
|
|
335
|
+
(c = this.store.css3DRenderDisposer.get(e.id)) == null || c.push(P);
|
|
343
336
|
}
|
|
344
337
|
});
|
|
345
338
|
}
|
|
346
|
-
const
|
|
347
|
-
if (!
|
|
339
|
+
const p = this.css3DRenderPlugin.create3DDomContainer(a, l);
|
|
340
|
+
if (!p)
|
|
348
341
|
return;
|
|
349
|
-
this.store.css3DRenderDisposer.set(e.id, [
|
|
350
|
-
const h = new
|
|
351
|
-
target:
|
|
342
|
+
this.store.css3DRenderDisposer.set(e.id, [p.dispose]);
|
|
343
|
+
const h = new E({
|
|
344
|
+
target: p.container,
|
|
352
345
|
props: {
|
|
353
346
|
tag: e,
|
|
354
347
|
hooks: this.hooks,
|
|
@@ -360,14 +353,14 @@ class bi extends x {
|
|
|
360
353
|
});
|
|
361
354
|
e.tag3DContentSvelte = {
|
|
362
355
|
svelteApp: h,
|
|
363
|
-
domContainer:
|
|
364
|
-
css3DInstance:
|
|
356
|
+
domContainer: p,
|
|
357
|
+
css3DInstance: p,
|
|
365
358
|
initialNormal: s,
|
|
366
359
|
currentNormal: s,
|
|
367
360
|
dispose: () => {
|
|
368
|
-
h.$destroy(),
|
|
361
|
+
h.$destroy(), p.dispose();
|
|
369
362
|
}
|
|
370
|
-
},
|
|
363
|
+
}, D(e) && ((r = e.model) != null && r.object) && this.updateTagCss3DObjectMatrix(e, e.model.object);
|
|
371
364
|
}
|
|
372
365
|
}), this.clearUnusedPanelTag();
|
|
373
366
|
}
|
|
@@ -399,23 +392,23 @@ class bi extends x {
|
|
|
399
392
|
* @param model 模型
|
|
400
393
|
*/
|
|
401
394
|
updateTagCss3DObjectMatrix(t, e) {
|
|
402
|
-
var
|
|
403
|
-
const o = (
|
|
395
|
+
var P, T, M;
|
|
396
|
+
const o = (T = (P = this.getTagConfig(t).tag3DConfig) == null ? void 0 : P.ratio) != null ? T : 216e-5, i = (M = t.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
|
|
404
397
|
if (!i)
|
|
405
398
|
return;
|
|
406
|
-
const r =
|
|
399
|
+
const r = D(t) ? t.data.mediaPosition : t.position;
|
|
407
400
|
if (!r || r.length !== 4 || !Array.isArray(r[0]) || !Array.isArray(r[2]))
|
|
408
401
|
return;
|
|
409
402
|
e.updateWorldMatrix(!1, !1);
|
|
410
|
-
const a = e.matrixWorld, s = new b().fromArray(r[0]), n = new b().fromArray(r[2]), l =
|
|
403
|
+
const a = e.matrixWorld, s = new b().fromArray(r[0]), n = new b().fromArray(r[2]), l = L(s, n).add(new b(0, 0, 5e-4)), p = new v().setPosition(l), h = new v().makeScale(o, o, o), f = new v().multiply(a).multiply(p).multiply(h);
|
|
411
404
|
f.decompose(i.position, i.quaternion, i.scale);
|
|
412
405
|
const c = i.opacityMesh;
|
|
413
406
|
c && f.decompose(c.position, c.quaternion, c.scale);
|
|
414
407
|
}
|
|
415
408
|
/** 添加模型标签 */
|
|
416
409
|
addMediaModelTag(t) {
|
|
417
|
-
return
|
|
418
|
-
const e = t.filter(
|
|
410
|
+
return S(this, null, function* () {
|
|
411
|
+
const e = t.filter(F).map((o) => this.loadModel(o));
|
|
419
412
|
yield Promise.all(e), this.setVisible(), this.updateRenderAllTags();
|
|
420
413
|
});
|
|
421
414
|
}
|
|
@@ -445,7 +438,10 @@ class bi extends x {
|
|
|
445
438
|
*/
|
|
446
439
|
updateRenderPointTag() {
|
|
447
440
|
const t = this.filterPointTag;
|
|
448
|
-
this.setTagZIndex(t), this.setPointTagPosition(),
|
|
441
|
+
this.setTagZIndex(t), this.setPointTagPosition(), this.updateDomView();
|
|
442
|
+
}
|
|
443
|
+
updatePointTagPosition() {
|
|
444
|
+
this.setPointTagPosition(), this.updateDomView();
|
|
449
445
|
}
|
|
450
446
|
updateTagContainerVisible() {
|
|
451
447
|
var t;
|
|
@@ -509,5 +505,5 @@ class bi extends x {
|
|
|
509
505
|
}
|
|
510
506
|
}
|
|
511
507
|
export {
|
|
512
|
-
|
|
508
|
+
Pi as TagRender
|
|
513
509
|
};
|
|
@@ -12,7 +12,7 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
12
12
|
get container(): Element;
|
|
13
13
|
set container(container: Element);
|
|
14
14
|
config: Pick<Tags, 'globalConfig' | 'contentTypeConfig'>;
|
|
15
|
-
|
|
15
|
+
tagsLengthWillUpdate: boolean;
|
|
16
16
|
workUtil: WorkUtil;
|
|
17
17
|
set workCode(workCode: string);
|
|
18
18
|
get workCode(): string;
|
|
@@ -36,16 +36,6 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
36
36
|
disposed: boolean;
|
|
37
37
|
};
|
|
38
38
|
protected domEvents: FiveDomEvents;
|
|
39
|
-
private _cache_pointTag?;
|
|
40
|
-
private _cache_2DPointTag?;
|
|
41
|
-
private _cache_imagePlane?;
|
|
42
|
-
private _cache_mediaModel?;
|
|
43
|
-
private _cache_css3DTag?;
|
|
44
|
-
protected get filterPointTag(): PointTagInstance[];
|
|
45
|
-
protected get filter2DPointTag(): TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "2DPoint">[];
|
|
46
|
-
protected get filterImagePlane(): TagInstance<"MediaPlane", "Plane">[];
|
|
47
|
-
protected get filterMediaModel(): TagInstance<"MediaModel", "Model">[];
|
|
48
|
-
protected get filterCSS3DTag(): (TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Plane"> | TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Model"> | TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "3DPoint">)[];
|
|
49
39
|
private _container;
|
|
50
40
|
private _css3DRenderPlugin;
|
|
51
41
|
protected constructor(five: Five);
|
|
@@ -78,6 +68,11 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
78
68
|
protected getPositions(tag: TagInstance): [THREE.Vector3, THREE.Vector3, THREE.Vector3, THREE.Vector3] | [import("../typings").ArrayPosition, import("../typings").ArrayPosition, import("../typings").ArrayPosition, import("../typings").ArrayPosition];
|
|
79
69
|
protected addObjectClickHandler(tag: TagInstance, object: THREE.Object3D | undefined, handler: (event: Event) => any): () => void;
|
|
80
70
|
protected getTagNormal(tag: TagInstance): THREE.Vector3 | undefined;
|
|
71
|
+
protected get filterPointTag(): PointTagInstance[];
|
|
72
|
+
protected get filter2DPointTag(): TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "2DPoint">[];
|
|
73
|
+
protected get filterImagePlane(): TagInstance<"MediaPlane", "Plane">[];
|
|
74
|
+
protected get filterMediaModel(): TagInstance<"MediaModel", "Model">[];
|
|
75
|
+
protected get filterCSS3DTag(): (TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Plane"> | TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Model"> | TagInstance<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "3DPoint">)[];
|
|
81
76
|
protected getTransformedPostion(position: Tag['position']): THREE.Vector3 | [THREE.Vector3, THREE.Vector3, THREE.Vector3, THREE.Vector3];
|
|
82
77
|
/**
|
|
83
78
|
* @description 检查是否已经销毁
|