@realsee/dnalogel 3.73.0 → 3.73.1-alpha.2
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 +4 -0
- package/dist/PanoTagPlugin/controller/Tag/PlaneTag.d.ts +14 -1
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +7 -0
- package/dist/index.cjs.js +49 -49
- package/dist/index.js +4840 -4722
- package/dist/index.umd.js +70 -70
- package/dist/shared-utils/five/getFloorMesh.d.ts +3 -0
- package/libs/CruisePlugin/Move.js +3 -2
- package/libs/CruisePlugin/Work.js +3 -2
- package/libs/CruisePlugin/index.js +7 -6
- package/libs/GuideLinePlugin/Controller.js +5 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
- package/libs/GuideLinePlugin/index.js +7 -6
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +230 -230
- package/libs/PanoTagPlugin/Components/TagItem.js +231 -219
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.d.ts +14 -1
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +190 -131
- package/libs/PanoTagPlugin/controller/index.js +6 -5
- package/libs/PanoTagPlugin/index.js +12 -11
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +7 -0
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +167 -136
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +44 -44
- package/libs/index.js +149 -148
- package/libs/shared-utils/five/getFloorMesh.d.ts +3 -0
- package/libs/shared-utils/five/getFloorMesh.js +11 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +151 -139
- package/package.json +2 -2
- package/docs/.nojekyll +0 -1
- package/docs/assets/custom.css +0 -0
- package/docs/assets/highlight.css +0 -127
- package/docs/assets/icons.js +0 -18
- package/docs/assets/icons.svg +0 -1
- package/docs/assets/main.js +0 -60
- package/docs/assets/navigation.js +0 -1
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1493
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -59
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -71
- package/docs/classes/CSS3DRender.html +0 -100
- package/docs/classes/GuideLineItem.GuideLineItem.html +0 -21
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -70
- package/docs/classes/ModelMakerPluginInstance.html +0 -116
- package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +0 -52
- package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +0 -52
- package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +0 -53
- package/docs/classes/ModelRoomLabelController.html +0 -19
- package/docs/classes/MoveController.html +0 -45
- package/docs/classes/Object3DHelperController.html +0 -45
- package/docs/classes/PaintBrush.html +0 -15
- package/docs/classes/PanoMeasurePluginLine.html +0 -24
- package/docs/classes/PanoMeasurePluginModel.html +0 -23
- package/docs/classes/PanoMeasurePluginPoint.html +0 -7
- package/docs/classes/PanoMeasurePluginPolyline.html +0 -27
- package/docs/classes/PanoTagPluginController.html +0 -111
- package/docs/classes/Sculpt.html +0 -77
- package/docs/classes/Util.BetterTween.html +0 -6
- package/docs/classes/Util.FiveDomEvents.html +0 -13
- package/docs/classes/Util.FivePuppet.html +0 -20
- package/docs/classes/Util.Interval.html +0 -11
- package/docs/classes/Util.LegacyPointHelper.html +0 -7
- package/docs/classes/Util.LightTag.html +0 -47
- package/docs/classes/Util.LineSegments.html +0 -4
- package/docs/classes/Util.Magnifier.html +0 -26
- package/docs/classes/Util.Object3D.html +0 -8
- package/docs/classes/Util.PointDomHelper.html +0 -8
- package/docs/classes/Util.PointHelper.html +0 -10
- package/docs/classes/Util.PointSelector.html +0 -66
- package/docs/classes/Util.PointSelectorHelper.html +0 -14
- package/docs/classes/Util.Rectangle.html +0 -12
- package/docs/classes/Util.sculpt.BaseEditor.html +0 -17
- package/docs/classes/Util.sculpt.BoxMesh.html +0 -48
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.CircleMesh.html +0 -26
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +0 -26
- package/docs/classes/Util.sculpt.CylinderMesh.html +0 -25
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.LineMesh.html +0 -34
- package/docs/classes/Util.sculpt.PointMesh.html +0 -24
- package/docs/classes/Util.sculpt.PolygonMesh.html +0 -40
- package/docs/classes/Util.sculpt.PrismMesh.html +0 -48
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.RectangleMesh.html +0 -41
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +0 -44
- package/docs/classes/WalkController.html +0 -42
- package/docs/enums/CameraMovementEffect.html +0 -4
- package/docs/enums/ContentType.html +0 -34
- package/docs/enums/DIRECTION.html +0 -5
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -5
- package/docs/enums/DimensionType.html +0 -4
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -4
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -5
- package/docs/enums/PaintBrushTypeEnum.html +0 -4
- package/docs/enums/PointType.html +0 -4
- package/docs/enums/Rotation.html +0 -5
- package/docs/functions/AreaMakerPlugin.html +0 -1
- package/docs/functions/CSS3DRenderPlugin.html +0 -1
- package/docs/functions/CameraMovementPlugin.html +0 -2
- package/docs/functions/CruisePlugin.html +0 -1
- package/docs/functions/CurrentPanoImagePlugin.html +0 -1
- package/docs/functions/FloorplanGuidePlugin.html +0 -1
- package/docs/functions/GuideLinePlugin.html +0 -1
- package/docs/functions/ItemLabelPlugin.html +0 -1
- package/docs/functions/MapviewFloorplanPlugin.html +0 -1
- package/docs/functions/MeasurePlugin.html +0 -1
- package/docs/functions/ModelChassisCompassPlugin.html +0 -2
- package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -2
- package/docs/functions/ModelFloorplanPlugin.html +0 -1
- package/docs/functions/ModelItemLabelPlugin.html +0 -1
- package/docs/functions/ModelMakerPlugin.html +0 -1
- package/docs/functions/ModelRoomLabelPlugin.html +0 -1
- package/docs/functions/ModelTVVideoPlugin.html +0 -1
- package/docs/functions/ModelViewPlugin.html +0 -2
- package/docs/functions/MovePlugin.html +0 -1
- package/docs/functions/Object3DHelperPlugin.html +0 -1
- package/docs/functions/PanoCompassPlugin.html +0 -1
- package/docs/functions/PanoCursorRaycasterPlugin.html +0 -2
- package/docs/functions/PanoDoorLabelPlugin.html +0 -1
- package/docs/functions/PanoFloorplanRadarPlugin.html +0 -1
- package/docs/functions/PanoMeasurePlugin.html +0 -1
- package/docs/functions/PanoRulerPlugin.html +0 -2
- package/docs/functions/PanoRulerProPlugin.html +0 -2
- package/docs/functions/PanoSpatialTagPlugin.html +0 -2
- package/docs/functions/PanoTagPlugin.html +0 -1
- package/docs/functions/PanoVideoPlugin.html +0 -10
- package/docs/functions/PipelinePlugin.html +0 -1
- package/docs/functions/SculptPlugin.html +0 -2
- package/docs/functions/SculptPluginForFive.html +0 -2
- package/docs/functions/TopviewFloorplanPlugin.html +0 -1
- package/docs/functions/Util.awaitNextFrame.html +0 -1
- package/docs/functions/Util.blink.html +0 -13
- package/docs/functions/Util.blinkWithPreset.html +0 -6
- package/docs/functions/Util.bounding.html +0 -1
- package/docs/functions/Util.boundingBox.html +0 -1
- package/docs/functions/Util.boundingSphere.html +0 -1
- package/docs/functions/Util.boxVertex.html +0 -7
- package/docs/functions/Util.boxVertexes.html +0 -1
- package/docs/functions/Util.checkFiveModelLoaded.html +0 -2
- package/docs/functions/Util.cleanup.html +0 -3
- package/docs/functions/Util.convexHull.html +0 -2
- package/docs/functions/Util.equal.html +0 -5
- package/docs/functions/Util.fiveModelIsLoaded.html +0 -2
- package/docs/functions/Util.getCoordsFromClient.html +0 -1
- package/docs/functions/Util.getCoordsFromElement.html +0 -1
- package/docs/functions/Util.getFrameTime.html +0 -3
- package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -1
- package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -1
- package/docs/functions/Util.initialCSS3DRender.html +0 -1
- package/docs/functions/Util.inside.html +0 -1
- package/docs/functions/Util.isModelLike.html +0 -1
- package/docs/functions/Util.isNil.html +0 -2
- package/docs/functions/Util.isPanoramaLike.html +0 -1
- package/docs/functions/Util.lookObject.html +0 -7
- package/docs/functions/Util.lookPoint.html +0 -5
- package/docs/functions/Util.nextFrame.html +0 -1
- package/docs/functions/Util.notNil.html +0 -2
- package/docs/functions/Util.reblink.html +0 -13
- package/docs/functions/Util.replaceStaticPrefix.html +0 -8
- package/docs/functions/Util.requestAnimationFrameInterval.html +0 -5
- package/docs/functions/Util.sculpt.createBox.html +0 -1
- package/docs/functions/Util.sculpt.createCircle.html +0 -1
- package/docs/functions/Util.sculpt.createCylinder.html +0 -1
- package/docs/functions/Util.sculpt.createLine.html +0 -2
- package/docs/functions/Util.sculpt.createPoint.html +0 -1
- package/docs/functions/Util.sculpt.createPolygon.html +0 -1
- package/docs/functions/Util.sculpt.createPrism.html +0 -1
- package/docs/functions/Util.sculpt.createRectangle.html +0 -2
- package/docs/functions/Util.tag.html +0 -1
- package/docs/functions/Util.tweenProgress.html +0 -1
- package/docs/functions/Util.uuid.html +0 -2
- package/docs/functions/Util.waitFiveModelLoaded.html +0 -2
- package/docs/functions/Util.worldBounding.html +0 -1
- package/docs/functions/Util.worldBoundingBox.html +0 -1
- package/docs/functions/Util.worldBoundingSphere.html +0 -1
- package/docs/functions/createPolyline.html +0 -2
- package/docs/functions/pluginFlag.html +0 -1
- package/docs/hierarchy.html +0 -1
- package/docs/index.html +0 -70
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -4
- package/docs/interfaces/AreaMakerPluginType.Config.html +0 -8
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -25
- package/docs/interfaces/AreaMakerPluginType.Params.html +0 -4
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -20
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -13
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -9
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -3
- package/docs/interfaces/AreaMakerPluginType.State.html +0 -8
- package/docs/interfaces/BoxAnimationConfig.html +0 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -9
- package/docs/interfaces/CSS3DRenderPluginState.html +0 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +0 -11
- package/docs/interfaces/ContentTypeMapInterface.html +0 -73
- package/docs/interfaces/CruisePluginTypes.Config.html +0 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -8
- package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -33
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +0 -6
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -16
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -19
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -20
- package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -15
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -13
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -15
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -4
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -3
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -7
- package/docs/interfaces/FloorplanBounding.html +0 -9
- package/docs/interfaces/FloorplanData.html +0 -7
- package/docs/interfaces/FloorplanEntrance.html +0 -14
- package/docs/interfaces/FloorplanExtraObject.html +0 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +0 -5
- package/docs/interfaces/FloorplanFloorData.html +0 -9
- package/docs/interfaces/FloorplanImagePosition.html +0 -4
- package/docs/interfaces/FloorplanObserver.html +0 -8
- package/docs/interfaces/FloorplanOutlineItem.html +0 -6
- package/docs/interfaces/FloorplanPosition.html +0 -4
- package/docs/interfaces/FloorplanRoomItem.html +0 -24
- package/docs/interfaces/FloorplanRoomLabelItem.html +0 -6
- package/docs/interfaces/FloorplanServerBounding.html +0 -9
- package/docs/interfaces/FloorplanServerComputedData.html +0 -6
- package/docs/interfaces/FloorplanServerData.html +0 -4
- package/docs/interfaces/FloorplanServerDoorItem.html +0 -6
- package/docs/interfaces/FloorplanServerDoorPosition.html +0 -4
- package/docs/interfaces/FloorplanServerEntrance.html +0 -14
- package/docs/interfaces/FloorplanServerFloorData.html +0 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +0 -4
- package/docs/interfaces/FloorplanServerObserver.html +0 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +0 -6
- package/docs/interfaces/FloorplanServerPosition.html +0 -4
- package/docs/interfaces/FloorplanServerRoomItem.html +0 -27
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -4
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -7
- package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -13
- package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +0 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -8
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -32
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +0 -4
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -5
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -42
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -3
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -57
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +0 -13
- package/docs/interfaces/HelperOffset.html +0 -4
- package/docs/interfaces/ImagePlaneGroup.html +0 -3
- package/docs/interfaces/ItemLabelPluginData.html +0 -2
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -7
- package/docs/interfaces/ItemLabelPluginParametersType.html +0 -5
- package/docs/interfaces/MinMax.html +0 -3
- package/docs/interfaces/ModelChassisCompassPluginData.html +0 -3
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -4
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -4
- package/docs/interfaces/ModelItemLabelPluginData.html +0 -2
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -7
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -3
- package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +0 -17
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +0 -18
- package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +0 -23
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +0 -11
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +0 -10
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +0 -3
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +0 -10
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +0 -10
- package/docs/interfaces/ModelMakerPluginType.State.html +0 -8
- package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +0 -11
- package/docs/interfaces/ModelRoomLabelPluginData.html +0 -2
- package/docs/interfaces/ModelTVVideoPluginData.html +0 -5
- package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -4
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -2
- package/docs/interfaces/ModelViewPluginExportType.html +0 -8
- package/docs/interfaces/Object3DHelperState.html +0 -4
- package/docs/interfaces/ObjectHelperControllers.html +0 -5
- package/docs/interfaces/PaintBrushAction.html +0 -14
- package/docs/interfaces/PaintBrushConfigs.html +0 -8
- package/docs/interfaces/PaintBrushState.html +0 -6
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -16
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -1
- package/docs/interfaces/PanoMeasureParameterType.html +0 -20
- package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -4
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -4
- package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -3
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +0 -6
- package/docs/interfaces/PanoRulerPluginOptions.html +0 -3
- package/docs/interfaces/PanoRulerPluginParameterType.html +0 -4
- package/docs/interfaces/PanoRulerProPluginExportType.html +0 -5
- package/docs/interfaces/PanoRulerProPluginOptions.html +0 -3
- package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -3
- package/docs/interfaces/PanoRulerProPluginState.html +0 -4
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +0 -7
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -6
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -9
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -6
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -9
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -7
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -6
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -15
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -14
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -13
- package/docs/interfaces/PluginEventMap.html +0 -16
- package/docs/interfaces/Point.html +0 -4
- package/docs/interfaces/Room.html +0 -5
- package/docs/interfaces/RoomInfo.html +0 -3
- package/docs/interfaces/RoomLabel.html +0 -16
- package/docs/interfaces/RoomRules.html +0 -1
- package/docs/interfaces/Rooms.html +0 -1
- package/docs/interfaces/Scissor.html +0 -13
- package/docs/interfaces/SculptConfig.html +0 -14
- package/docs/interfaces/State.html +0 -7
- package/docs/interfaces/TagCacheInterface.html +0 -9
- package/docs/interfaces/TagConfig.html +0 -164
- package/docs/interfaces/TagGLTFObjectGroup.html +0 -3
- package/docs/interfaces/TagIconAnimationConfig.html +0 -7
- package/docs/interfaces/TagIconUrl.html +0 -20
- package/docs/interfaces/TagObjectGroup.html +0 -3
- package/docs/interfaces/TagState.html +0 -3
- package/docs/interfaces/TagStyle.html +0 -5
- package/docs/interfaces/Tags.html +0 -8
- package/docs/interfaces/TemporaryState.html +0 -2
- package/docs/interfaces/Util.AnimeInstance.html +0 -14
- package/docs/interfaces/Util.BlinkAnimeOptions.html +0 -21
- package/docs/interfaces/Util.EventHandlerConfig.html +0 -21
- package/docs/interfaces/Util.FiveDomEvent.html +0 -7
- package/docs/interfaces/Util.FiveDomEventMap.html +0 -20
- package/docs/interfaces/Util.LegacyMouseGroupParameter.html +0 -4
- package/docs/interfaces/Util.MagnifierParameter.html +0 -13
- package/docs/interfaces/Util.MouseGroupParameter.html +0 -4
- package/docs/interfaces/Util.ObjectInitialState.html +0 -9
- package/docs/interfaces/Util.PointIntersection.html +0 -21
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +0 -6
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +0 -27
- package/docs/modules/AreaMakerPluginType.html +0 -17
- package/docs/modules/CruisePluginTypes.html +0 -14
- package/docs/modules/CurrentPanoImagePluginType.html +0 -6
- package/docs/modules/GuideLineItem.html +0 -2
- package/docs/modules/GuideLineModeItem.html +0 -3
- package/docs/modules/GuideLinePluginType.html +0 -25
- package/docs/modules/ModelMakerPluginType.html +0 -19
- package/docs/modules/PanoVideoPluginType.html +0 -8
- package/docs/modules/SculptData.html +0 -9
- package/docs/modules/SculptType.html +0 -2
- package/docs/modules/Util.html +0 -86
- package/docs/modules/Util.sculpt.html +0 -25
- package/docs/modules.html +0 -279
- package/docs/types/AddObject3DHelperConfig.html +0 -19
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -7
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +0 -1
- package/docs/types/AreaMakerPluginType.PluginData.html +0 -2
- package/docs/types/AreaMakerPluginType.ServerData.html +0 -2
- package/docs/types/ArrayPosition.html +0 -1
- package/docs/types/AudioAppearance.html +0 -1
- package/docs/types/CSS3DRenderExportType.html +0 -1
- package/docs/types/CSS3DRenderPluginExportType.html +0 -1
- package/docs/types/CSS3DRenderPluginParameterType.html +0 -1
- package/docs/types/ClassFunctionParameters.html +0 -1
- package/docs/types/Color.html +0 -1
- package/docs/types/ContentTypeConfigKey.html +0 -1
- package/docs/types/ContentTypeConfigKeySplit.html +0 -1
- package/docs/types/ContentTypeMap.html +0 -1
- package/docs/types/Create3DDomContainerReturnType.html +0 -1
- package/docs/types/Create3DElementReturnType.html +0 -1
- package/docs/types/CruisePluginExportType.html +0 -1
- package/docs/types/CruisePluginTypes.CruiseData.html +0 -5
- package/docs/types/CruisePluginTypes.MoveEffect.html +0 -1
- package/docs/types/CurrentPanoImagePluginExportType.html +0 -1
- package/docs/types/DeprecatedMediaPlaneProperty.html +0 -3
- package/docs/types/DeprecatedTagProperty.html +0 -3
- package/docs/types/Direction-1.html +0 -1
- package/docs/types/Direction4.html +0 -1
- package/docs/types/ElementRenderer.html +0 -2
- package/docs/types/FloorplanGuidePluginParameterType.html +0 -1
- package/docs/types/FloorplanGuidePluginReturnType.html +0 -1
- package/docs/types/FloorplanRuleLabels.html +0 -2
- package/docs/types/FloorplanServerRuleLabels.html +0 -1
- package/docs/types/GuideLinePluginExportType.html +0 -1
- package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -2
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -1
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -1
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -2
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -2
- package/docs/types/GuideLinePluginType.PathItem.html +0 -2
- package/docs/types/GuideLinePluginType.PluginData.html +0 -2
- package/docs/types/GuideLinePluginType.RouteConfig.html +0 -4
- package/docs/types/HelperEventMap.html +0 -1
- package/docs/types/InternalHelperEventMap.html +0 -1
- package/docs/types/MapviewFloorplanPluginParameterType.html +0 -1
- package/docs/types/MapviewFloorplanPluginReturnType.html +0 -1
- package/docs/types/MeasureEndReason.html +0 -1
- package/docs/types/MeasurePluginConfig.html +0 -5
- package/docs/types/MediaData.html +0 -2
- package/docs/types/MediaStore.html +0 -1
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -1
- package/docs/types/ModelFloorplanPluginParameterType.html +0 -1
- package/docs/types/ModelFloorplanPluginReturnType.html +0 -1
- package/docs/types/ModelId.html +0 -1
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +0 -1
- package/docs/types/ModelMakerPluginType.ItemType.html +0 -2
- package/docs/types/ModelMakerPluginType.MarkerItem.html +0 -1
- package/docs/types/ModelMakerPluginType.ServerItem.html +0 -2
- package/docs/types/ModelRoomLabelPluginParameters.html +0 -1
- package/docs/types/ModelRoomLabelPluginReturnType.html +0 -1
- package/docs/types/MoveArgs.html +0 -2
- package/docs/types/MoveOpts.html +0 -2
- package/docs/types/Object3DHelperEventMap.html +0 -1
- package/docs/types/ObjectFit.html +0 -1
- package/docs/types/PaintBrushEventMap.html +0 -1
- package/docs/types/PanoCompassPluginData.html +0 -1
- package/docs/types/PanoCompassPluginExportType.html +0 -1
- package/docs/types/PanoCompassPluginParameterType.html +0 -1
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -1
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -1
- package/docs/types/PanoIndex.html +0 -1
- package/docs/types/PanoMeasurePluginEvent.html +0 -1
- package/docs/types/PanoMeasureReturnType.html +0 -1
- package/docs/types/PanoSpatialTagPluginId.html +0 -1
- package/docs/types/PanoTagPluginExportInterface.html +0 -1
- package/docs/types/PanoTagPluginParamsInterface.html +0 -1
- package/docs/types/PanoVideoPluginParameterType.html +0 -1
- package/docs/types/PanoVideoPluginReturnType.html +0 -1
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -2
- package/docs/types/PipelinePluginParameterType.html +0 -1
- package/docs/types/PipelinePluginReturnType.html +0 -1
- package/docs/types/PlaneTag.html +0 -2
- package/docs/types/Point2DTag.html +0 -2
- package/docs/types/Point3DTag.html +0 -2
- package/docs/types/PointTagInstance.html +0 -1
- package/docs/types/Position.html +0 -1
- package/docs/types/PositionFrom.html +0 -1
- package/docs/types/RotateArgs.html +0 -2
- package/docs/types/RotateOpts.html +0 -2
- package/docs/types/RuleLabelsKey.html +0 -1
- package/docs/types/RuleLabelsValue.html +0 -1
- package/docs/types/ScaleCallback.html +0 -1
- package/docs/types/ScalePosition.html +0 -3
- package/docs/types/SculptData.BoxData.html +0 -1
- package/docs/types/SculptData.CircleData.html +0 -1
- package/docs/types/SculptData.CylinderData.html +0 -1
- package/docs/types/SculptData.PointData.html +0 -1
- package/docs/types/SculptData.PolygonData.html +0 -1
- package/docs/types/SculptData.PolylineData.html +0 -1
- package/docs/types/SculptData.PrismData.html +0 -1
- package/docs/types/SculptData.RectangleData.html +0 -1
- package/docs/types/SculptType.Theme.html +0 -10
- package/docs/types/StickType.html +0 -1
- package/docs/types/Tag.html +0 -17
- package/docs/types/Tag2D.html +0 -2
- package/docs/types/Tag3D.html +0 -2
- package/docs/types/TagClickParams.html +0 -1
- package/docs/types/TagConfigByKey.html +0 -1
- package/docs/types/TagContentType.html +0 -1
- package/docs/types/TagContentTypeMapping.html +0 -1
- package/docs/types/TagDimensionType.html +0 -1
- package/docs/types/TagElement.html +0 -2
- package/docs/types/TagEvents.html +0 -1
- package/docs/types/TagGLTFObject.html +0 -1
- package/docs/types/TagHooks.html +0 -1
- package/docs/types/TagId.html +0 -1
- package/docs/types/TagInstance.html +0 -1
- package/docs/types/TagPlacement.html +0 -5
- package/docs/types/TagPointType.html +0 -2
- package/docs/types/TagRendererMap.html +0 -1
- package/docs/types/TopviewFloorplanPluginParameterType.html +0 -1
- package/docs/types/TopviewFloorplanPluginReturnType.html +0 -1
- package/docs/types/Util.ActionIfNoIntersection.html +0 -1
- package/docs/types/Util.AdherePoint.html +0 -2
- package/docs/types/Util.PointSelectorConfig.html +0 -1
- package/docs/types/Util.SupportedTarget.html +0 -2
- package/docs/types/Util.Target.html +0 -2
- package/docs/types/Util.ThreeObject.html +0 -2
- package/docs/types/WorkCode.html +0 -1
- package/docs/variables/FLOOR_TYPE_MAP.html +0 -2
- package/docs/variables/PLUGIN.html +0 -1
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -2
- package/docs/variables/ROOM_TYPE_MAP.html +0 -2
- package/docs/variables/Util.ANIME_PRESETS.html +0 -2
- package/docs/variables/Util.CURRENT_PANO_IMAGE_DEFAULT_IMAGE.html +0 -2
- package/docs/variables/Util.DEFAULT_ANIME_CONFIG.html +0 -2
- package/docs/variables/Util.DEFAULT_STATIC_PREFIX.html +0 -2
- package/docs/variables/Util.DNALOGEL_DEFAULT_ASSETS.html +0 -2
- package/docs/variables/Util.ENTRY_DOOR_DEFAULT_IMAGE.html +0 -2
- package/docs/variables/Util.FLOORPLAN_DEFAULT_IMAGE.html +0 -2
- package/docs/variables/Util.GUIDELINE_DEFAULT_ARROW_TEXTURE.html +0 -2
- package/docs/variables/Util.GUIDELINE_WHITE_ARROW_TEXTURE.html +0 -2
- package/docs/variables/Util.MODEL_CHASSIS_COMPASS_DEFAULT_MODEL.html +0 -2
- package/docs/variables/Util.MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL.html +0 -2
- package/docs/variables/Util.PANO_COMPASS_DEFAULT_IMAGE.html +0 -2
- package/docs/variables/Util.PANO_SPATIAL_TAG_BLUR_IMAGE.html +0 -2
- package/docs/variables/Util.PANO_TAG_DEFAULT_LINK_ICON.html +0 -2
- package/docs/variables/defaultGlobalConfig.html +0 -1
- package/docs/variables/itemLabelPluginServerParams.html +0 -1
- package/docs/variables/modelItemLabelPluginServerParams.html +0 -1
- package/docs/variables/modelRoomLabelPluginServerParams.html +0 -1
|
@@ -6,11 +6,24 @@ import type { Vector3 } from 'three';
|
|
|
6
6
|
import { Rectangle } from '../../../Sculpt/Objects/Rectangle';
|
|
7
7
|
export type PlaneTagInterface<C extends TagContentType = TagContentType> = TagInstance<C, 'Plane'>;
|
|
8
8
|
export declare class PlaneTag<C extends TagContentType = TagContentType> extends BaseTag<C, 'Plane'> {
|
|
9
|
-
constructor(plugin: PanoTagPluginController, tagData: TagData);
|
|
10
9
|
rectanglePlane?: Rectangle;
|
|
10
|
+
private _floorIndex?;
|
|
11
|
+
private _floorIndexDirty;
|
|
12
|
+
private _opacity?;
|
|
13
|
+
constructor(plugin: PanoTagPluginController, tagData: TagData);
|
|
14
|
+
/** 获取透明度 */
|
|
15
|
+
get opacity(): number;
|
|
16
|
+
/** 设置透明度 (0-1) */
|
|
17
|
+
set opacity(value: number);
|
|
18
|
+
/** 获取楼层索引(惰性计算 + 缓存) */
|
|
19
|
+
get floorIndex(): number | undefined;
|
|
20
|
+
/** 标记 floorIndex 需要重新计算(在位置等相关数据变化时调用) */
|
|
21
|
+
invalidateFloorIndex(): void;
|
|
11
22
|
applyVisible(): void;
|
|
12
23
|
set(tag: PartialObjectDeep<Tag<C, 'Plane'>>, deepMerge?: boolean): void;
|
|
13
24
|
setData(...data: Parameters<InstanceType<typeof BaseTag<C, 'Plane'>>['setData']>): void;
|
|
25
|
+
/** 计算楼层索引 */
|
|
26
|
+
private computeFloorIndex;
|
|
14
27
|
private loadModel;
|
|
15
28
|
private initialSculpt;
|
|
16
29
|
editorEnable(): void;
|
|
@@ -1,44 +1,46 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var t in
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
|
|
1
|
+
var j = Object.defineProperty, R = Object.defineProperties;
|
|
2
|
+
var V = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var F = Object.getOwnPropertySymbols;
|
|
4
|
+
var k = Object.prototype.hasOwnProperty, M = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var I = (d, p, t) => p in d ? j(d, p, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[p] = t, b = (d, p) => {
|
|
6
|
+
for (var t in p || (p = {}))
|
|
7
|
+
k.call(p, t) && I(d, t, p[t]);
|
|
8
|
+
if (F)
|
|
9
|
+
for (var t of F(p))
|
|
10
|
+
M.call(p, t) && I(d, t, p[t]);
|
|
11
|
+
return d;
|
|
12
|
+
}, S = (d, p) => R(d, V(p));
|
|
13
|
+
var y = (d, p, t) => (I(d, typeof p != "symbol" ? p + "" : p, t), t);
|
|
14
|
+
var C = (d, p, t) => new Promise((e, i) => {
|
|
15
|
+
var n = (r) => {
|
|
15
16
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
17
|
+
o(t.next(r));
|
|
18
|
+
} catch (m) {
|
|
19
|
+
i(m);
|
|
19
20
|
}
|
|
20
|
-
},
|
|
21
|
+
}, a = (r) => {
|
|
21
22
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
23
|
+
o(t.throw(r));
|
|
24
|
+
} catch (m) {
|
|
25
|
+
i(m);
|
|
25
26
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
27
|
+
}, o = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(n, a);
|
|
28
|
+
o((t = t.apply(d, p)).next());
|
|
28
29
|
});
|
|
29
|
-
import { CONST as
|
|
30
|
-
import { CSS3DObjectPlus as
|
|
31
|
-
import { anyPositionToVector3 as
|
|
32
|
-
import "three";
|
|
30
|
+
import { CONST as _ } from "../../../shared-utils/constants.js";
|
|
31
|
+
import { CSS3DObjectPlus as w } from "../../../shared-utils/CSS3DRender/CSS3DObject.js";
|
|
32
|
+
import { anyPositionToVector3 as T, arrayPositionToVector3 as g } from "../../../shared-utils/positionToVector3.js";
|
|
33
|
+
import * as E from "three";
|
|
33
34
|
import { planeNormal as O } from "../../utils/planeNormal.js";
|
|
34
|
-
import {
|
|
35
|
-
import L from "../../
|
|
36
|
-
import
|
|
35
|
+
import { centerPoint as G } from "../../../shared-utils/three/centerPoint.js";
|
|
36
|
+
import { VideoPlane as L, ImagePlane as A } from "../../utils/model/mediaPlane.js";
|
|
37
|
+
import N from "../../Components/Tag/index.js";
|
|
38
|
+
import { BaseTag as B } from "./BaseTag.js";
|
|
37
39
|
import "../../../shared-utils/tag.js";
|
|
38
40
|
import "../../../vendor/hammerjs/hammer.js";
|
|
39
41
|
import "../../../shared-utils/three/PointSelector/index.js";
|
|
40
42
|
import "../../../shared-utils/three/CSS3DRenderer/index.js";
|
|
41
|
-
import { initialCSS3DRender as
|
|
43
|
+
import { initialCSS3DRender as H } from "../../../shared-utils/CSS3DRender/index.js";
|
|
42
44
|
import "@realsee/five/line";
|
|
43
45
|
import "../../../shared-utils/three/core/Five_LineMaterial2.js";
|
|
44
46
|
import "../../../shared-utils/three/core/Sphere.js";
|
|
@@ -46,14 +48,14 @@ import "../../../shared-utils/three/blink.js";
|
|
|
46
48
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
47
49
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
48
50
|
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
49
|
-
import { waitFiveModelLoaded as
|
|
50
|
-
import { uuid as
|
|
51
|
+
import { waitFiveModelLoaded as x } from "../../../shared-utils/five/fiveModelLoad.js";
|
|
52
|
+
import { uuid as $ } from "../../../shared-utils/uuid.js";
|
|
51
53
|
import "../../../shared-utils/five/FivePuppet.js";
|
|
52
|
-
import { Sculpt as
|
|
53
|
-
import { Rectangle as
|
|
54
|
+
import { Sculpt as U } from "../../../Sculpt/index.js";
|
|
55
|
+
import { Rectangle as q } from "../../../Sculpt/Objects/Rectangle/index.js";
|
|
56
|
+
import { getFloorMesh as W } from "../../../shared-utils/five/getFloorMesh.js";
|
|
54
57
|
import "../../../shared-utils/even.js";
|
|
55
58
|
import "../../../shared-utils/CSS3DRender/OpacityMesh.js";
|
|
56
|
-
import "../../../shared-utils/three/centerPoint.js";
|
|
57
59
|
import "../../../shared-utils/isNil.js";
|
|
58
60
|
import "../../../shared-utils/three/loadTexture.js";
|
|
59
61
|
import "../../../shared-utils/three/Quadrangle.js";
|
|
@@ -297,43 +299,99 @@ import "../../../shared-utils/forReverseEach.js";
|
|
|
297
299
|
import "../../../Sculpt/Objects/Line/index.js";
|
|
298
300
|
import "../../../Sculpt/Editors/RectangleMeshEditor.js";
|
|
299
301
|
import "../../../Sculpt/utils/sortPositionsByCameraPosition.js";
|
|
300
|
-
const
|
|
301
|
-
class
|
|
302
|
-
constructor(
|
|
303
|
-
super(
|
|
302
|
+
const Z = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map();
|
|
303
|
+
class Xr extends B {
|
|
304
|
+
constructor(t, e) {
|
|
305
|
+
super(t, e);
|
|
306
|
+
y(this, "_floorIndex");
|
|
307
|
+
y(this, "_floorIndexDirty", !0);
|
|
308
|
+
y(this, "_opacity");
|
|
309
|
+
this.state.unfolded = !0, this.loadModel();
|
|
310
|
+
}
|
|
311
|
+
/** 获取透明度 */
|
|
312
|
+
get opacity() {
|
|
313
|
+
var t, e;
|
|
314
|
+
return this._opacity !== void 0 ? this._opacity : (e = (t = this.data) == null ? void 0 : t.opacity) != null ? e : 1;
|
|
315
|
+
}
|
|
316
|
+
/** 设置透明度 (0-1) */
|
|
317
|
+
set opacity(t) {
|
|
318
|
+
t !== this._opacity && (this._opacity = t, this.mediaPlane && (this.mediaPlane.opacity = t));
|
|
319
|
+
}
|
|
320
|
+
/** 获取楼层索引(惰性计算 + 缓存) */
|
|
321
|
+
get floorIndex() {
|
|
322
|
+
return (this._floorIndexDirty || this._floorIndex === void 0) && (this._floorIndex = this.computeFloorIndex(), this._floorIndexDirty = !1), this._floorIndex;
|
|
323
|
+
}
|
|
324
|
+
/** 标记 floorIndex 需要重新计算(在位置等相关数据变化时调用) */
|
|
325
|
+
invalidateFloorIndex() {
|
|
326
|
+
this._floorIndexDirty = !0;
|
|
304
327
|
}
|
|
305
328
|
applyVisible() {
|
|
306
|
-
var
|
|
307
|
-
this.computeRenderType() === "Mesh" ? (this.initialSculpt(), ((
|
|
329
|
+
var e, i, n, a, o, r;
|
|
330
|
+
this.computeRenderType() === "Mesh" ? (this.initialSculpt(), ((i = (e = this.data.mediaData) == null ? void 0 : e[0]) == null ? void 0 : i.type) === "Video" ? this.renderVideoPlane() : ((a = (n = this.data.mediaData) == null ? void 0 : n[0]) == null ? void 0 : a.type) === "Image" ? this.renderImagePlane() : this.renderEmptyPlane()) : ((o = this.tag3DContentSvelte) == null || o.svelteApp.$set({ tag: this, state: this.plugin.state, temporaryState: this.plugin.temporaryState }), (r = this.tag3DContentSvelte) != null && r.css3DInstance && (this.tag3DContentSvelte.css3DInstance.visible = this.visible, this.five.needsRender = !0));
|
|
308
331
|
}
|
|
309
|
-
set(
|
|
310
|
-
super.set(
|
|
311
|
-
this.tag3DContentSvelte && (
|
|
332
|
+
set(t, e = !0) {
|
|
333
|
+
super.set(t, e), x(this.five).then(() => {
|
|
334
|
+
this.tag3DContentSvelte && (t.data ? this.tag3DContentSvelte.svelteApp.$set({ tag: this, state: this.plugin.state, temporaryState: this.plugin.temporaryState }) : t.position && this.loadModel());
|
|
312
335
|
});
|
|
313
336
|
}
|
|
314
|
-
setData(...
|
|
315
|
-
var
|
|
316
|
-
super.setData(...
|
|
337
|
+
setData(...t) {
|
|
338
|
+
var i, n, a, o, r;
|
|
339
|
+
super.setData(...t), this.computeRenderType() === "Mesh" ? (((n = (i = this.data.mediaData) == null ? void 0 : i[0]) == null ? void 0 : n.type) === "Video" ? this.renderVideoPlane() : ((o = (a = this.data.mediaData) == null ? void 0 : a[0]) == null ? void 0 : o.type) === "Image" ? this.renderImagePlane() : this.renderEmptyPlane(), this.mediaPlane && (this.mediaPlane.opacity = this.opacity)) : (r = this.tag3DContentSvelte) == null || r.svelteApp.$set({ tag: this });
|
|
340
|
+
}
|
|
341
|
+
/** 计算楼层索引 */
|
|
342
|
+
computeFloorIndex() {
|
|
343
|
+
const t = /* @__PURE__ */ new Map();
|
|
344
|
+
this.five.observers.forEach((a) => {
|
|
345
|
+
var r;
|
|
346
|
+
const o = (r = a.floorIndex) != null ? r : 0;
|
|
347
|
+
if (!t.has(o)) {
|
|
348
|
+
const m = W(this.five, o);
|
|
349
|
+
m.isEmpty() || t.set(o, m);
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
const e = G(...this.position.map(T)), i = [], n = [];
|
|
353
|
+
if (t.forEach((a, o) => {
|
|
354
|
+
n.push({ floorIndex: o, box: a }), a.containsPoint(e) && i.push({ floorIndex: o, box: a });
|
|
355
|
+
}), i.length === 1)
|
|
356
|
+
return i[0].floorIndex;
|
|
357
|
+
if (i.length > 1) {
|
|
358
|
+
let a = 1 / 0, o = i[0].floorIndex;
|
|
359
|
+
return i.forEach(({ floorIndex: r, box: m }) => {
|
|
360
|
+
const h = new E.Vector3();
|
|
361
|
+
m.getCenter(h);
|
|
362
|
+
const c = e.distanceTo(h);
|
|
363
|
+
c < a && (a = c, o = r);
|
|
364
|
+
}), o;
|
|
365
|
+
}
|
|
366
|
+
if (n.length > 0) {
|
|
367
|
+
let a = 1 / 0, o = n[0].floorIndex;
|
|
368
|
+
return n.forEach(({ floorIndex: r, box: m }) => {
|
|
369
|
+
const h = new E.Vector3();
|
|
370
|
+
m.getCenter(h);
|
|
371
|
+
const c = e.distanceTo(h);
|
|
372
|
+
c < a && (a = c, o = r);
|
|
373
|
+
}), o;
|
|
374
|
+
}
|
|
317
375
|
}
|
|
318
376
|
loadModel() {
|
|
319
377
|
return C(this, null, function* () {
|
|
320
|
-
var
|
|
321
|
-
if (yield
|
|
322
|
-
this.initialSculpt(), ((
|
|
378
|
+
var e, i, n, a, o, r;
|
|
379
|
+
if (yield x(this.five), this.computeRenderType() === "Mesh")
|
|
380
|
+
this.initialSculpt(), ((i = (e = this.data.mediaData) == null ? void 0 : e[0]) == null ? void 0 : i.type) === "Video" ? this.renderVideoPlane() : ((a = (n = this.data.mediaData) == null ? void 0 : n[0]) == null ? void 0 : a.type) === "Image" ? this.renderImagePlane() : this.renderEmptyPlane();
|
|
323
381
|
else {
|
|
324
|
-
|
|
325
|
-
const
|
|
326
|
-
(r = (
|
|
327
|
-
const
|
|
328
|
-
|
|
329
|
-
const
|
|
330
|
-
|
|
331
|
-
let
|
|
332
|
-
|
|
333
|
-
this.plugin.hooks.emit("click", { event:
|
|
382
|
+
H(this.five);
|
|
383
|
+
const m = this.position.map(T);
|
|
384
|
+
(r = (o = this.tag3DContentSvelte) == null ? void 0 : o.dispose) == null || r.call(o);
|
|
385
|
+
const h = document.createElement("div");
|
|
386
|
+
h.classList.add("tag-media-container");
|
|
387
|
+
const c = b({ mode: "front", cornerPoints: m, container: h }, this.config.tag3DConfig), P = this.computeRenderType() === "BehindDom" || c.mode === "behind" ? "behind" : "front", l = new w(S(b({}, c), { mode: P })), s = this.computeNormal();
|
|
388
|
+
l.position.add(s.clone().setLength(_.Z_FIGHTING_OFFSET)), this.plugin.group.add(l);
|
|
389
|
+
let v;
|
|
390
|
+
l.mode === "behind" && this.config.clickable !== !1 && (v = this.addObjectClickHandler(this, l, (f) => {
|
|
391
|
+
this.plugin.hooks.emit("click", { event: f, target: "TagContent", tag: this });
|
|
334
392
|
}));
|
|
335
|
-
const
|
|
336
|
-
target:
|
|
393
|
+
const u = new N({
|
|
394
|
+
target: h,
|
|
337
395
|
props: {
|
|
338
396
|
tag: this,
|
|
339
397
|
hooks: this.plugin.hooks,
|
|
@@ -344,15 +402,15 @@ class Zr extends A {
|
|
|
344
402
|
}
|
|
345
403
|
});
|
|
346
404
|
this.tag3DContentSvelte = {
|
|
347
|
-
svelteApp:
|
|
405
|
+
svelteApp: u,
|
|
348
406
|
domContainer: {
|
|
349
|
-
css3DObject:
|
|
407
|
+
css3DObject: l
|
|
350
408
|
},
|
|
351
|
-
css3DInstance:
|
|
352
|
-
initialNormal:
|
|
353
|
-
currentNormal:
|
|
409
|
+
css3DInstance: l,
|
|
410
|
+
initialNormal: s,
|
|
411
|
+
currentNormal: s,
|
|
354
412
|
dispose: () => {
|
|
355
|
-
|
|
413
|
+
u.$destroy(), l.dispose(), v == null || v();
|
|
356
414
|
}
|
|
357
415
|
}, this.five.needsRender = !0;
|
|
358
416
|
}
|
|
@@ -361,15 +419,15 @@ class Zr extends A {
|
|
|
361
419
|
initialSculpt() {
|
|
362
420
|
if (this.rectanglePlane)
|
|
363
421
|
return;
|
|
364
|
-
const
|
|
422
|
+
const t = new U(this.five, void 0, {
|
|
365
423
|
magnifier: null
|
|
366
424
|
});
|
|
367
|
-
|
|
368
|
-
const
|
|
425
|
+
t.clear(), t.group.removeFromParent();
|
|
426
|
+
const e = $(), i = new q(
|
|
369
427
|
{
|
|
370
|
-
id:
|
|
428
|
+
id: e,
|
|
371
429
|
type: "Rectangle",
|
|
372
|
-
points: this.position.map(
|
|
430
|
+
points: this.position.map(g),
|
|
373
431
|
style: {
|
|
374
432
|
color: 2203620,
|
|
375
433
|
opacity: 0.1,
|
|
@@ -380,91 +438,92 @@ class Zr extends A {
|
|
|
380
438
|
defaultAction: !1
|
|
381
439
|
}
|
|
382
440
|
);
|
|
383
|
-
|
|
384
|
-
var
|
|
385
|
-
(
|
|
386
|
-
}),
|
|
441
|
+
i.visible = !1, this.plugin.imagePlaneGroup.add(i), this.rectanglePlane = i, i.editor.hooks.on("objectUpdate", () => {
|
|
442
|
+
var n;
|
|
443
|
+
(n = this.mediaPlane) == null || n.changePointsOrParams({ cornerPoints: i.data.points.map(g) });
|
|
444
|
+
}), i.editor.disable();
|
|
387
445
|
}
|
|
388
446
|
editorEnable() {
|
|
389
447
|
this.rectanglePlane || this.initialSculpt(), this.rectanglePlane.visible = !0, this.rectanglePlane.editor.enable();
|
|
390
448
|
}
|
|
391
|
-
editorDisable(
|
|
392
|
-
var
|
|
449
|
+
editorDisable(t) {
|
|
450
|
+
var i;
|
|
393
451
|
this.rectanglePlane.visible = !1;
|
|
394
|
-
const
|
|
395
|
-
(
|
|
396
|
-
points:
|
|
452
|
+
const e = t || this.position.map(g);
|
|
453
|
+
(i = this.mediaPlane) == null || i.changePointsOrParams({ cornerPoints: e }), this.rectanglePlane.setData({
|
|
454
|
+
points: e
|
|
397
455
|
}), this.rectanglePlane.editor.disable();
|
|
398
456
|
}
|
|
399
457
|
renderVideoPlane() {
|
|
400
|
-
var
|
|
401
|
-
const
|
|
402
|
-
if (!i)
|
|
403
|
-
return;
|
|
404
|
-
const { url: t } = i;
|
|
458
|
+
var h, c, P;
|
|
459
|
+
const t = this.data.mediaData[0];
|
|
405
460
|
if (!t)
|
|
406
461
|
return;
|
|
407
|
-
const
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
462
|
+
const { url: e } = t;
|
|
463
|
+
if (!e)
|
|
464
|
+
return;
|
|
465
|
+
const i = (h = this.data.objectFit) != null ? h : "contain", n = this.currentVisible, a = (() => !!(this.mediaPlane && !n))(), o = (() => !!(!this.mediaPlane && n))(), r = (() => !!(this.mediaPlane && (this.mediaPlane.src !== e || this.mediaPlane.objectFit !== i)))();
|
|
466
|
+
(a || r) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0);
|
|
467
|
+
const m = (() => !!(this.mediaPlane && this.mediaPlane.objectFit && this.mediaPlane.objectFit !== i))();
|
|
468
|
+
if (o || r) {
|
|
469
|
+
let l = this.position.map(g);
|
|
470
|
+
this.rectanglePlane && (l = this.rectanglePlane.data.points.map(g));
|
|
471
|
+
const s = new L(e, l, {
|
|
472
|
+
videoCoverSrc: t.videoCoverUrl,
|
|
415
473
|
playButton: this.data.playIcon,
|
|
416
|
-
paused: !((
|
|
474
|
+
paused: !((c = this.data.autoplayConfig) != null && c.autoplayVideo),
|
|
417
475
|
objectFit: this.data.objectFit,
|
|
418
|
-
videoTextureMap:
|
|
419
|
-
ImageTextureMap:
|
|
420
|
-
domEvents: this.plugin.domEvents
|
|
476
|
+
videoTextureMap: Z,
|
|
477
|
+
ImageTextureMap: z,
|
|
478
|
+
domEvents: this.plugin.domEvents,
|
|
479
|
+
opacity: this.opacity
|
|
421
480
|
});
|
|
422
|
-
this.plugin.domEvents.addAutoBindEventListener(
|
|
423
|
-
var
|
|
424
|
-
!((
|
|
425
|
-
event:
|
|
481
|
+
this.plugin.domEvents.addAutoBindEventListener(s, "click", (u) => {
|
|
482
|
+
var f, D;
|
|
483
|
+
!((f = s.videoInstance) != null && f.paused) && ((D = s.videoInstance) == null ? void 0 : D.muted) === !1 && this.plugin.hooks.emit("playStateChange", {
|
|
484
|
+
event: u,
|
|
426
485
|
state: "playing",
|
|
427
486
|
tag: this,
|
|
428
|
-
mediaInstance:
|
|
487
|
+
mediaInstance: s.videoInstance
|
|
429
488
|
});
|
|
430
|
-
}),
|
|
431
|
-
|
|
432
|
-
this.plugin.mediaStore.set({ currentMediaElement:
|
|
433
|
-
}),
|
|
434
|
-
this.plugin.hooks.emit("playStateChange", { event:
|
|
435
|
-
}),
|
|
436
|
-
this.plugin.hooks.emit("playStateChange", { event:
|
|
489
|
+
}), s.onVideoReady = (u) => {
|
|
490
|
+
u.addEventListener("play", (f) => {
|
|
491
|
+
this.plugin.mediaStore.set({ currentMediaElement: s.videoInstance }), this.plugin.hooks.emit("playStateChange", { event: f, state: "playing", tag: this, mediaInstance: s.videoInstance });
|
|
492
|
+
}), u.addEventListener("pause", (f) => {
|
|
493
|
+
this.plugin.hooks.emit("playStateChange", { event: f, state: "paused", tag: this, mediaInstance: s.videoInstance });
|
|
494
|
+
}), u.addEventListener("ended", (f) => {
|
|
495
|
+
this.plugin.hooks.emit("playStateChange", { event: f, state: "paused", tag: this, mediaInstance: s.videoInstance });
|
|
437
496
|
});
|
|
438
497
|
};
|
|
439
|
-
const
|
|
440
|
-
|
|
498
|
+
const v = (u) => (this.five.on("renderFrame", u), () => this.five.off("renderFrame", u));
|
|
499
|
+
s.initialRenderHooks(v), this.mediaPlane = s, this.play = () => s.play(), this.pause = () => s.pause(), this.plugin.imagePlaneGroup.add(this.mediaPlane);
|
|
441
500
|
}
|
|
442
|
-
if (
|
|
443
|
-
const
|
|
444
|
-
(P = this.mediaPlane) == null || P.changePointsOrParams({ cornerPoints:
|
|
501
|
+
if (m) {
|
|
502
|
+
const l = this.rectanglePlane.data.points.map(g);
|
|
503
|
+
(P = this.mediaPlane) == null || P.changePointsOrParams({ cornerPoints: l, params: { objectFit: i } });
|
|
445
504
|
}
|
|
446
505
|
this.five.needsRender = !0;
|
|
447
506
|
}
|
|
448
507
|
renderImagePlane() {
|
|
449
|
-
var
|
|
450
|
-
const
|
|
451
|
-
if (!
|
|
508
|
+
var c, P;
|
|
509
|
+
const t = this.data.mediaData[0], e = (c = this.data.objectFit) != null ? c : "contain";
|
|
510
|
+
if (!t)
|
|
452
511
|
return;
|
|
453
|
-
const { url:
|
|
454
|
-
if (!
|
|
512
|
+
const { url: i } = t;
|
|
513
|
+
if (!i)
|
|
455
514
|
return;
|
|
456
|
-
let
|
|
457
|
-
const
|
|
458
|
-
if ((
|
|
515
|
+
let n = this.position.map(g);
|
|
516
|
+
const a = this.currentVisible, o = (() => !!(this.mediaPlane && !a))(), r = (() => !!(!this.mediaPlane && a))(), m = (() => !!(this.mediaPlane && this.mediaPlane.src !== i))(), h = (() => !!(this.mediaPlane && this.mediaPlane.objectFit && this.mediaPlane.objectFit !== e))();
|
|
517
|
+
if ((o || m) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), (r || m) && (this.rectanglePlane && (n = this.rectanglePlane.data.points.map(g)), this.mediaPlane = new A(i, n, { objectFit: this.data.objectFit, opacity: this.opacity }), this.getConfig().clickable !== !1 && this.plugin.domEvents.addAutoBindEventListener(
|
|
459
518
|
this.mediaPlane,
|
|
460
519
|
"click",
|
|
461
|
-
(
|
|
462
|
-
this.plugin.hooks.emit("click", { tag: this, target: "TagContent", event:
|
|
520
|
+
(l) => {
|
|
521
|
+
this.plugin.hooks.emit("click", { tag: this, target: "TagContent", event: l.origDomEvent });
|
|
463
522
|
},
|
|
464
523
|
{ noEmitWhenHide: !0 }
|
|
465
|
-
), this.plugin.imagePlaneGroup.add(this.mediaPlane)),
|
|
466
|
-
const
|
|
467
|
-
(P = this.mediaPlane) == null || P.changePointsOrParams({ cornerPoints:
|
|
524
|
+
), this.plugin.imagePlaneGroup.add(this.mediaPlane)), h) {
|
|
525
|
+
const l = this.rectanglePlane.data.points.map(g);
|
|
526
|
+
(P = this.mediaPlane) == null || P.changePointsOrParams({ cornerPoints: l, params: { objectFit: e } });
|
|
468
527
|
}
|
|
469
528
|
this.five.needsRender = !0;
|
|
470
529
|
}
|
|
@@ -476,5 +535,5 @@ class Zr extends A {
|
|
|
476
535
|
}
|
|
477
536
|
}
|
|
478
537
|
export {
|
|
479
|
-
|
|
538
|
+
Xr as PlaneTag
|
|
480
539
|
};
|
|
@@ -312,6 +312,7 @@ import "../../Sculpt/Editors/BoxMeshEditor.js";
|
|
|
312
312
|
import "../../Sculpt/Meshes/Box.js";
|
|
313
313
|
import "../../shared-utils/forReverseEach.js";
|
|
314
314
|
import "../../Sculpt/Objects/Line/index.js";
|
|
315
|
+
import "../../shared-utils/five/getFloorMesh.js";
|
|
315
316
|
import "../Components/TagItem.js";
|
|
316
317
|
import "../Components/Common/TagPoint.js";
|
|
317
318
|
import "../Components/Tag/AudioTag/AudioPoint.js";
|
|
@@ -328,8 +329,8 @@ import "../Components/Common/TagPopover/TagPopoverToolBar.js";
|
|
|
328
329
|
import "../Components/Common/TagPopover/ArrowRightIcon.js";
|
|
329
330
|
import "../Components/Common/TagPopover/ShareIcon.js";
|
|
330
331
|
import "../utils/popoverContainer.js";
|
|
331
|
-
const D = "Dnalogel-PanoTagPlugin",
|
|
332
|
-
class
|
|
332
|
+
const D = "Dnalogel-PanoTagPlugin", _s = (h) => `${D}--${h}`;
|
|
333
|
+
class Fs extends R {
|
|
333
334
|
constructor(e, t) {
|
|
334
335
|
super(e);
|
|
335
336
|
/** state */
|
|
@@ -802,7 +803,7 @@ class _s extends R {
|
|
|
802
803
|
}
|
|
803
804
|
}
|
|
804
805
|
export {
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
806
|
+
Fs as PanoTagPluginController,
|
|
807
|
+
Fs as default,
|
|
808
|
+
_s as pluginFlag
|
|
808
809
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r from "./controller/index.js";
|
|
2
|
-
import { pluginFlag as
|
|
3
|
-
import { defaultGlobalConfig as
|
|
4
|
-
import { ContentType as
|
|
2
|
+
import { pluginFlag as Li } from "./controller/index.js";
|
|
3
|
+
import { defaultGlobalConfig as Ni } from "./typings/tag/TagConfig.js";
|
|
4
|
+
import { ContentType as Qi, DimensionType as Ri, PointType as Si } from "./Archive/deprecated.js";
|
|
5
5
|
import "three";
|
|
6
6
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
7
7
|
import "../shared-utils/positionToVector3.js";
|
|
@@ -284,6 +284,7 @@ import "../Sculpt/Editors/BoxMeshEditor.js";
|
|
|
284
284
|
import "../Sculpt/Meshes/Box.js";
|
|
285
285
|
import "../shared-utils/forReverseEach.js";
|
|
286
286
|
import "../Sculpt/Objects/Line/index.js";
|
|
287
|
+
import "../shared-utils/five/getFloorMesh.js";
|
|
287
288
|
import "./Components/TagContainer.js";
|
|
288
289
|
import "./Components/TagItem.js";
|
|
289
290
|
import "./Components/Common/TagPoint.js";
|
|
@@ -302,14 +303,14 @@ import "./Components/Common/TagPopover/ArrowRightIcon.js";
|
|
|
302
303
|
import "./Components/Common/TagPopover/ShareIcon.js";
|
|
303
304
|
import "./utils/popoverContainer.js";
|
|
304
305
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
305
|
-
const
|
|
306
|
+
const Ii = (o, t) => new r(o, t);
|
|
306
307
|
export {
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
308
|
+
Qi as ContentType,
|
|
309
|
+
Ri as DimensionType,
|
|
310
|
+
Ii as PanoTagPlugin,
|
|
310
311
|
r as PanoTagPluginController,
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
312
|
+
Si as PointType,
|
|
313
|
+
Ii as default,
|
|
314
|
+
Ni as defaultGlobalConfig,
|
|
315
|
+
Li as pluginFlag
|
|
315
316
|
};
|
|
@@ -15,6 +15,10 @@ declare abstract class MediaPlane extends THREE.Mesh<THREE.BufferGeometry | THRE
|
|
|
15
15
|
name: string;
|
|
16
16
|
src?: string;
|
|
17
17
|
objectFit: ObjectFit;
|
|
18
|
+
/** 获取透明度 */
|
|
19
|
+
get opacity(): number;
|
|
20
|
+
/** 设置透明度 (0-1) */
|
|
21
|
+
set opacity(value: number);
|
|
18
22
|
removeFromParent(): this;
|
|
19
23
|
dispose(): void;
|
|
20
24
|
}
|
|
@@ -24,6 +28,7 @@ declare class ImagePlane extends MediaPlane {
|
|
|
24
28
|
constructor(imageSrc: string, cornerPoints: Vector3[], params?: {
|
|
25
29
|
objectFit?: ObjectFit;
|
|
26
30
|
resolveZFighting?: boolean;
|
|
31
|
+
opacity?: number;
|
|
27
32
|
});
|
|
28
33
|
changePointsOrParams(props: {
|
|
29
34
|
cornerPoints: Vector3[];
|
|
@@ -48,6 +53,7 @@ declare class VideoPlane extends MediaPlane {
|
|
|
48
53
|
private buttonMesh?;
|
|
49
54
|
private videoTextureMap;
|
|
50
55
|
private ImageTextureMap;
|
|
56
|
+
private initialOpacity;
|
|
51
57
|
constructor(videoSrc: string, cornerPoints: Vector3[], params?: {
|
|
52
58
|
paused?: boolean;
|
|
53
59
|
playButton?: 'withText' | 'withoutText' | string;
|
|
@@ -59,6 +65,7 @@ declare class VideoPlane extends MediaPlane {
|
|
|
59
65
|
transparent: boolean;
|
|
60
66
|
}>;
|
|
61
67
|
domEvents?: FiveDomEvents;
|
|
68
|
+
opacity?: number;
|
|
62
69
|
});
|
|
63
70
|
play(muted?: boolean): Promise<void>;
|
|
64
71
|
pause(): void;
|