@realsee/dnalogel 3.2.0-dev.8 → 3.2.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/dist/GuideLinePlugin/GuideLineItem.d.ts +0 -1
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +10 -1
- package/dist/GuideLinePlugin/typing.d.ts +6 -1
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +4 -8
- package/dist/PanoTagPlugin/controller/index.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +0 -1
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -2
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +3 -2
- package/dist/index.cjs.js +54 -54
- package/dist/index.js +3053 -3053
- package/dist/index.umd.js +51 -51
- package/dist/shared-utils/five/getFloorIndex.d.ts +8 -2
- package/libs/CruisePlugin/Controller.js +34 -35
- package/libs/CruisePlugin/index.js +5 -6
- package/libs/GuideLinePlugin/Controller.js +40 -41
- package/libs/GuideLinePlugin/GuideLineItem/index.js +33 -36
- package/libs/GuideLinePlugin/GuideLineItem.d.ts +0 -1
- package/libs/GuideLinePlugin/GuideLineItem.js +2 -3
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +95 -72
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +10 -1
- package/libs/GuideLinePlugin/GuideLineModeItem.js +2 -3
- package/libs/GuideLinePlugin/index.js +7 -8
- package/libs/GuideLinePlugin/typing.d.ts +6 -1
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +26 -26
- package/libs/PanoTagPlugin/controller/TagComputer.js +95 -89
- package/libs/PanoTagPlugin/controller/TagRender.js +81 -81
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +4 -8
- package/libs/PanoTagPlugin/controller/TagUtil.js +107 -123
- package/libs/PanoTagPlugin/controller/index.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/index.js +36 -41
- package/libs/PanoTagPlugin/index.js +11 -12
- package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +0 -1
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -2
- package/libs/PanoTagPlugin/utils/tagPosition.d.ts +3 -2
- package/libs/PanoTagPlugin/utils/tagPosition.js +15 -15
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +116 -117
- package/libs/shared-utils/five/getFloorIndex.d.ts +8 -2
- package/libs/shared-utils/five/getFloorIndex.js +12 -16
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
- package/dist/shared-utils/five/transformPosition.d.ts +0 -2
- package/docs/.nojekyll +0 -1
- package/docs/assets/highlight.css +0 -120
- package/docs/assets/main.js +0 -58
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1367
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -725
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -678
- package/docs/classes/CSS3DRender.html +0 -773
- package/docs/classes/CruisePluginController.html +0 -672
- package/docs/classes/GuideLineItem.GuideLineItem.html +0 -491
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -792
- package/docs/classes/Magnifier.html +0 -480
- package/docs/classes/ModelRoomLabelController.html +0 -398
- package/docs/classes/Object3DHelperController.html +0 -640
- package/docs/classes/PaintBrush.html +0 -502
- package/docs/classes/PanoMeasurePluginLine.html +0 -522
- package/docs/classes/PanoMeasurePluginModel.html +0 -571
- package/docs/classes/PanoMeasurePluginPoint.html +0 -362
- package/docs/classes/PanoMeasurePluginPolyline.html +0 -567
- package/docs/classes/PanoTagPluginController.html +0 -1077
- package/docs/classes/Util.BetterTween.html +0 -416
- package/docs/classes/Util.Interval.html +0 -432
- package/docs/classes/Util.LineSegments.html +0 -384
- package/docs/classes/Util.Magnifier.html +0 -503
- package/docs/classes/Util.Object3D.html +0 -406
- package/docs/classes/Util.PointDomHelper.html +0 -407
- package/docs/classes/Util.PointHelper.html +0 -398
- package/docs/classes/Util.PointSelectorHelper.html +0 -454
- package/docs/classes/Util.Rectangle.html +0 -455
- package/docs/enums/CameraMovementEffect.html +0 -310
- package/docs/enums/ContentType.html +0 -446
- package/docs/enums/DIRECTION.html +0 -320
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -320
- package/docs/enums/DimensionType.html +0 -310
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -313
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -320
- package/docs/enums/PaintBrushTypeEnum.html +0 -313
- package/docs/enums/PointType.html +0 -310
- package/docs/enums/Rotation.html +0 -317
- package/docs/functions/AreaMakerPlugin.html +0 -290
- package/docs/functions/CSS3DRenderPlugin.html +0 -288
- package/docs/functions/CameraMovementPlugin.html +0 -293
- package/docs/functions/CruisePlugin.html +0 -290
- package/docs/functions/CurrentPanoImagePlugin.html +0 -290
- package/docs/functions/GuideLinePlugin.html +0 -290
- package/docs/functions/ItemLabelPlugin.html +0 -290
- package/docs/functions/MapviewFloorplanPlugin.html +0 -290
- package/docs/functions/ModelChassisCompassPlugin.html +0 -293
- package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -293
- package/docs/functions/ModelFloorplanPlugin.html +0 -290
- package/docs/functions/ModelItemLabelPlugin.html +0 -290
- package/docs/functions/ModelRoomLabelPlugin.html +0 -288
- package/docs/functions/ModelTVVideoPlugin.html +0 -290
- package/docs/functions/ModelViewPlugin.html +0 -293
- package/docs/functions/Object3DHelperPlugin.html +0 -288
- package/docs/functions/PanoCompassPlugin.html +0 -290
- package/docs/functions/PanoCursorRaycasterPlugin.html +0 -294
- package/docs/functions/PanoDoorLabelPlugin.html +0 -290
- package/docs/functions/PanoFloorplanRadarPlugin.html +0 -290
- package/docs/functions/PanoMeasurePlugin.html +0 -290
- package/docs/functions/PanoRulerPlugin.html +0 -293
- package/docs/functions/PanoRulerProPlugin.html +0 -293
- package/docs/functions/PanoSpatialTagPlugin.html +0 -293
- package/docs/functions/PanoTagPlugin.html +0 -295
- package/docs/functions/PanoVideoPlugin.html +0 -299
- package/docs/functions/PipelinePlugin.html +0 -288
- package/docs/functions/TopviewFloorplanPlugin.html +0 -290
- package/docs/functions/Util.absoluteUrl.html +0 -326
- package/docs/functions/Util.checkFiveModelLoaded.html +0 -329
- package/docs/functions/Util.equal.html +0 -338
- package/docs/functions/Util.getCoordsFromClient.html +0 -328
- package/docs/functions/Util.getCoordsFromElement.html +0 -328
- package/docs/functions/Util.getFrameTime.html +0 -320
- package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -328
- package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -328
- package/docs/functions/Util.isAbsoluteURL.html +0 -321
- package/docs/functions/Util.isModelLike.html +0 -321
- package/docs/functions/Util.isNil.html +0 -329
- package/docs/functions/Util.isPanoramaLike.html +0 -321
- package/docs/functions/Util.nextFrame.html +0 -334
- package/docs/functions/Util.notNil.html +0 -329
- package/docs/functions/Util.requestAnimationFrameInterval.html +0 -350
- package/docs/functions/Util.tweenProgress.html +0 -323
- package/docs/functions/Util.uuid.html +0 -319
- package/docs/functions/pluginFlag.html +0 -288
- package/docs/index.html +0 -354
- package/docs/interfaces/AddTagConfig.html +0 -303
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -329
- package/docs/interfaces/AreaMakerPluginType.Config.html +0 -334
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -620
- package/docs/interfaces/AreaMakerPluginType.Params.html +0 -333
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -383
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -368
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -333
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -326
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -325
- package/docs/interfaces/AreaMakerPluginType.State.html +0 -354
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -449
- package/docs/interfaces/CSS3DRenderPluginState.html +0 -325
- package/docs/interfaces/CameraMovementPluginExportType.html +0 -358
- package/docs/interfaces/CruisePluginTypes.Config.html +0 -359
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -361
- package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -696
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -385
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -421
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -411
- package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -351
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -319
- package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -408
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -382
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -521
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -323
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -315
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -337
- package/docs/interfaces/EventMap.html +0 -542
- package/docs/interfaces/FloorplanBounding.html +0 -332
- package/docs/interfaces/FloorplanData.html +0 -335
- package/docs/interfaces/FloorplanEntrance.html +0 -360
- package/docs/interfaces/FloorplanExtraObject.html +0 -350
- package/docs/interfaces/FloorplanExtraObject3D.html +0 -339
- package/docs/interfaces/FloorplanFloorData.html +0 -328
- package/docs/interfaces/FloorplanImagePosition.html +0 -314
- package/docs/interfaces/FloorplanObserver.html +0 -332
- package/docs/interfaces/FloorplanOutlineItem.html +0 -328
- package/docs/interfaces/FloorplanPosition.html +0 -314
- package/docs/interfaces/FloorplanRoomItem.html +0 -379
- package/docs/interfaces/FloorplanRoomLabelItem.html +0 -320
- package/docs/interfaces/FloorplanServerBounding.html +0 -332
- package/docs/interfaces/FloorplanServerComputedData.html +0 -331
- package/docs/interfaces/FloorplanServerData.html +0 -314
- package/docs/interfaces/FloorplanServerDoorItem.html +0 -331
- package/docs/interfaces/FloorplanServerDoorPosition.html +0 -317
- package/docs/interfaces/FloorplanServerEntrance.html +0 -360
- package/docs/interfaces/FloorplanServerFloorData.html +0 -328
- package/docs/interfaces/FloorplanServerImagePosition.html +0 -314
- package/docs/interfaces/FloorplanServerObserver.html +0 -332
- package/docs/interfaces/FloorplanServerOutlineItem.html +0 -328
- package/docs/interfaces/FloorplanServerPosition.html +0 -314
- package/docs/interfaces/FloorplanServerRoomItem.html +0 -391
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -320
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -323
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -361
- package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -525
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -356
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -347
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -414
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -346
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -471
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -343
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -471
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -308
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -329
- package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -354
- package/docs/interfaces/GuideLinePluginType.Route.html +0 -370
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -352
- package/docs/interfaces/HelperOffset.html +0 -332
- package/docs/interfaces/ImagePlaneGroup.html +0 -306
- package/docs/interfaces/ItemLabelPluginData.html +0 -303
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -388
- package/docs/interfaces/ItemLabelPluginParametersType.html +0 -324
- package/docs/interfaces/MinMax.html +0 -310
- package/docs/interfaces/ModelChassisCompassPluginData.html +0 -310
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -346
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -310
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -317
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -354
- package/docs/interfaces/ModelItemLabelPluginData.html +0 -303
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -388
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -310
- package/docs/interfaces/ModelRoomLabelPluginData.html +0 -303
- package/docs/interfaces/ModelTVVideoPluginData.html +0 -324
- package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -348
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -303
- package/docs/interfaces/ModelViewPluginExportType.html +0 -416
- package/docs/interfaces/Object3DHelperState.html +0 -317
- package/docs/interfaces/ObjectHelperControllers.html +0 -324
- package/docs/interfaces/PaintBrushAction.html +0 -363
- package/docs/interfaces/PaintBrushConfigs.html +0 -361
- package/docs/interfaces/PaintBrushState.html +0 -345
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -425
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -282
- package/docs/interfaces/PanoMeasureParameterType.html +0 -449
- package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -317
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -314
- package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -310
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -320
- package/docs/interfaces/PanoRulerPluginExportType.html +0 -377
- package/docs/interfaces/PanoRulerPluginOptions.html +0 -326
- package/docs/interfaces/PanoRulerPluginParameterType.html +0 -317
- package/docs/interfaces/PanoRulerProPluginExportType.html +0 -353
- package/docs/interfaces/PanoRulerProPluginOptions.html +0 -323
- package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -310
- package/docs/interfaces/PanoRulerProPluginState.html +0 -317
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -296
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -285
- package/docs/interfaces/PanoSpatialTagPluginData.html +0 -353
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -335
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -431
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -331
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -352
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -338
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -331
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -323
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -341
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -314
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -420
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -314
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -349
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -368
- package/docs/interfaces/Point.html +0 -317
- package/docs/interfaces/Room.html +0 -324
- package/docs/interfaces/RoomInfo.html +0 -310
- package/docs/interfaces/RoomLabel.html +0 -386
- package/docs/interfaces/RoomRules.html +0 -285
- package/docs/interfaces/Rooms.html +0 -285
- package/docs/interfaces/Scissor.html +0 -344
- package/docs/interfaces/State.html +0 -331
- package/docs/interfaces/TagCacheInterface.html +0 -362
- package/docs/interfaces/TagConfig.html +0 -565
- package/docs/interfaces/TagGLTFObjectGroup.html +0 -306
- package/docs/interfaces/TagIconUrl.html +0 -363
- package/docs/interfaces/TagObjectGroup.html +0 -306
- package/docs/interfaces/TagStyle.html +0 -316
- package/docs/interfaces/Tags.html +0 -2688
- package/docs/interfaces/TemporaryState.html +0 -303
- package/docs/interfaces/Util.MagnifierParameter.html +0 -391
- package/docs/interfaces/Util.MouseGroupParameter.html +0 -350
- package/docs/interfaces/Util.PointIntersection.html +0 -365
- package/docs/modules/AreaMakerPluginType.html +0 -323
- package/docs/modules/CruisePluginTypes.html +0 -328
- package/docs/modules/CurrentPanoImagePluginType.html +0 -297
- package/docs/modules/GuideLineItem.html +0 -289
- package/docs/modules/GuideLineModeItem.html +0 -294
- package/docs/modules/GuideLinePluginType.html +0 -348
- package/docs/modules/PanoVideoPluginType.html +0 -301
- package/docs/modules/Util.html +0 -351
- package/docs/modules.html +0 -540
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -331
- package/docs/types/AreaMakerPluginType.PluginData.html +0 -301
- package/docs/types/AreaMakerPluginType.ServerData.html +0 -301
- package/docs/types/ArrayPosition.html +0 -279
- package/docs/types/AudioAppearance.html +0 -279
- package/docs/types/AudioTagTypeConfigKey.html +0 -279
- package/docs/types/CSS3DRenderExportType.html +0 -279
- package/docs/types/CSS3DRenderPluginExportType.html +0 -279
- package/docs/types/CSS3DRenderPluginParameterType.html +0 -279
- package/docs/types/ClassFunctionParameters.html +0 -286
- package/docs/types/Color.html +0 -279
- package/docs/types/ContentTypeConfigKey.html +0 -279
- package/docs/types/ContentTypeConfigKeySplit.html +0 -279
- package/docs/types/ContentTypeMap.html +0 -279
- package/docs/types/Create3DDomContainerReturnType.html +0 -279
- package/docs/types/Create3DElementReturnType.html +0 -279
- package/docs/types/CruisePluginExportType.html +0 -279
- package/docs/types/CruisePluginTypes.CruiseData.html +0 -318
- package/docs/types/CruisePluginTypes.MoveEffect.html +0 -295
- package/docs/types/CurrentPanoImagePluginExportType.html +0 -279
- package/docs/types/DeprecatedMediaPlaneProperty.html +0 -291
- package/docs/types/DeprecatedTagProperty.html +0 -294
- package/docs/types/Direction-1.html +0 -279
- package/docs/types/Direction4.html +0 -279
- package/docs/types/ElementRenderer.html +0 -303
- package/docs/types/FloorplanRuleLabels.html +0 -282
- package/docs/types/FloorplanServerRuleLabels.html +0 -279
- package/docs/types/GuideLinePluginExportType.html +0 -279
- package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -351
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -372
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -305
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -308
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -308
- package/docs/types/GuideLinePluginType.PathItem.html +0 -308
- package/docs/types/GuideLinePluginType.PluginData.html +0 -317
- package/docs/types/HelperEventMap.html +0 -517
- package/docs/types/LoadTagConfig.html +0 -279
- package/docs/types/MapviewFloorplanPluginParameterType.html +0 -279
- package/docs/types/MapviewFloorplanPluginReturnType.html +0 -279
- package/docs/types/MediaData.html +0 -295
- package/docs/types/MediaStore.html +0 -284
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -286
- package/docs/types/ModelFloorplanPluginParameterType.html +0 -279
- package/docs/types/ModelFloorplanPluginReturnType.html +0 -279
- package/docs/types/ModelId.html +0 -279
- package/docs/types/ModelRoomLabelPluginParameters.html +0 -279
- package/docs/types/ModelRoomLabelPluginReturnType.html +0 -279
- package/docs/types/MoveArgs.html +0 -289
- package/docs/types/MoveOpts.html +0 -287
- package/docs/types/Object3DHelperEventMap.html +0 -372
- package/docs/types/ObjectFit.html +0 -279
- package/docs/types/PaintBrushEventMap.html +0 -310
- package/docs/types/PanoCompassPluginData.html +0 -279
- package/docs/types/PanoCompassPluginExportType.html +0 -279
- package/docs/types/PanoCompassPluginParameterType.html +0 -279
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -279
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -279
- package/docs/types/PanoIndex.html +0 -279
- package/docs/types/PanoMeasurePluginEvent.html +0 -279
- package/docs/types/PanoMeasureReturnType.html +0 -279
- package/docs/types/PanoSpatialTagPluginId.html +0 -279
- package/docs/types/PanoTagPluginExportInterface.html +0 -279
- package/docs/types/PanoTagPluginParamsInterface.html +0 -279
- package/docs/types/PanoVideoPluginParameterType.html +0 -279
- package/docs/types/PanoVideoPluginReturnType.html +0 -279
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -287
- package/docs/types/PipelinePluginParameterType.html +0 -279
- package/docs/types/PipelinePluginReturnType.html +0 -279
- package/docs/types/PlaneTag.html +0 -287
- package/docs/types/Point2DTag.html +0 -287
- package/docs/types/Point3DTag.html +0 -287
- package/docs/types/PointTag.html +0 -284
- package/docs/types/PointTagInstance.html +0 -284
- package/docs/types/Position.html +0 -279
- package/docs/types/RotateArgs.html +0 -291
- package/docs/types/RotateOpts.html +0 -287
- package/docs/types/RuleLabelsKey.html +0 -279
- package/docs/types/RuleLabelsValue.html +0 -279
- package/docs/types/StickType.html +0 -279
- package/docs/types/Tag.html +0 -345
- package/docs/types/Tag2D.html +0 -287
- package/docs/types/Tag3D.html +0 -287
- package/docs/types/TagConfigByKey.html +0 -284
- package/docs/types/TagContentType.html +0 -279
- package/docs/types/TagDimensionType.html +0 -281
- package/docs/types/TagElement.html +0 -289
- package/docs/types/TagEvents.html +0 -332
- package/docs/types/TagGLTFObject.html +0 -302
- package/docs/types/TagHooks.html +0 -279
- package/docs/types/TagId.html +0 -279
- package/docs/types/TagInstance.html +0 -355
- package/docs/types/TagPointType.html +0 -282
- package/docs/types/TagRendererMap.html +0 -284
- package/docs/types/TopviewFloorplanPluginParameterType.html +0 -279
- package/docs/types/TopviewFloorplanPluginReturnType.html +0 -279
- package/docs/types/WorkCode.html +0 -279
- package/docs/variables/FLOOR_TYPE_MAP.html +0 -289
- package/docs/variables/PLUGIN.html +0 -279
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -282
- package/docs/variables/ROOM_TYPE_MAP.html +0 -289
- package/docs/variables/defaultGlobalConfig.html +0 -279
- package/docs/variables/itemLabelPluginServerParams.html +0 -286
- package/docs/variables/modelItemLabelPluginServerParams.html +0 -286
- package/docs/variables/modelRoomLabelPluginServerParams.html +0 -286
- package/libs/shared-utils/five/transformPosition.d.ts +0 -2
- package/libs/shared-utils/five/transformPosition.js +0 -10
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var E = Object.defineProperty, $ = Object.defineProperties;
|
|
2
|
+
var L = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var k = Object.getOwnPropertySymbols;
|
|
4
|
+
var _ = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var M = (p, e, i) => e in p ? E(p, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : p[e] = i, y = (p, e) => {
|
|
6
6
|
for (var i in e || (e = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var i of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
7
|
+
_.call(e, i) && M(p, i, e[i]);
|
|
8
|
+
if (k)
|
|
9
|
+
for (var i of k(e))
|
|
10
|
+
z.call(e, i) && M(p, i, e[i]);
|
|
11
|
+
return p;
|
|
12
|
+
}, D = (p, e) => $(p, L(e));
|
|
13
13
|
import * as j from "three";
|
|
14
|
-
import { is3DTag as
|
|
15
|
-
import { getTagCenterPosition as
|
|
16
|
-
import { checkRange as
|
|
17
|
-
import { isPanoramaLike as b, isModelLike as
|
|
14
|
+
import { is3DTag as O, isMediaModelTag as R } from "../utils/tag/tagCheck.js";
|
|
15
|
+
import { getTagCenterPosition as I, getTagPosition as Z } from "../utils/tagPosition.js";
|
|
16
|
+
import { checkRange as h } from "../utils/checkRange.js";
|
|
17
|
+
import { isPanoramaLike as b, isModelLike as H } from "../../shared-utils/five/mode.js";
|
|
18
18
|
import "hammerjs";
|
|
19
19
|
import "@realsee/five";
|
|
20
20
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
21
21
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
22
22
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
23
|
-
import { notNil as
|
|
24
|
-
import { TagUtil as
|
|
25
|
-
import { getFloorIndex as
|
|
26
|
-
import { safeObj as
|
|
27
|
-
import { toArray as
|
|
23
|
+
import { notNil as N } from "../../shared-utils/isNil.js";
|
|
24
|
+
import { TagUtil as q } from "./TagUtil.js";
|
|
25
|
+
import { getFloorIndex as W } from "../../shared-utils/five/getFloorIndex.js";
|
|
26
|
+
import { safeObj as U } from "../../shared-utils/safeObj.js";
|
|
27
|
+
import { toArray as X } from "../../shared-utils/util.js";
|
|
28
28
|
import "../../shared-utils/three/centerPoint.js";
|
|
29
29
|
import "../../shared-utils/positionToVector3.js";
|
|
30
30
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
@@ -63,9 +63,8 @@ import "../../shared-utils/five/calculateThreeMouse.js";
|
|
|
63
63
|
import "../utils/tag/adaptConfig.js";
|
|
64
64
|
import "../../shared-utils/typescript/entries.js";
|
|
65
65
|
import "../../shared-utils/url/getUrl.js";
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
class Je extends N {
|
|
66
|
+
const T = new j.Raycaster();
|
|
67
|
+
class Je extends q {
|
|
69
68
|
constructor(e) {
|
|
70
69
|
super(e);
|
|
71
70
|
}
|
|
@@ -73,12 +72,12 @@ class Je extends N {
|
|
|
73
72
|
* @description: 获取是否可见
|
|
74
73
|
*/
|
|
75
74
|
getVisible(e, i) {
|
|
76
|
-
const l =
|
|
77
|
-
if ((
|
|
78
|
-
return
|
|
75
|
+
const l = y(y({}, this.five.getCurrentState()), i), { panoIndex: t, mode: n } = l, d = b(n) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
|
|
76
|
+
if ((d == null ? void 0 : d.visible) !== void 0)
|
|
77
|
+
return d.visible;
|
|
79
78
|
{
|
|
80
|
-
const s = [],
|
|
81
|
-
var r,
|
|
79
|
+
const s = [], c = (() => {
|
|
80
|
+
var r, f, u;
|
|
82
81
|
const o = (r = e.config.visibleConfig) != null ? r : {};
|
|
83
82
|
if (typeof o == "function")
|
|
84
83
|
return { value: o(this.five, { tag: e, distance: this.getDistance(e) }), checkedList: s, reason: "config function result" };
|
|
@@ -88,8 +87,8 @@ class Je extends N {
|
|
|
88
87
|
return { value: !0, checkedList: s, reason: "config.keep is visible" };
|
|
89
88
|
if (o.visibleFiveMode !== void 0) {
|
|
90
89
|
const a = typeof o.visibleFiveMode == "function" ? o.visibleFiveMode(e) : o.visibleFiveMode;
|
|
91
|
-
let
|
|
92
|
-
if (Array.isArray(a) ?
|
|
90
|
+
let v = !1;
|
|
91
|
+
if (Array.isArray(a) ? v = a.includes(n) : a === "ModelLike" ? v = H(n) : a === "PanoramaLike" ? v = !b(n) : a === "all" ? v = !0 : typeof a == "string" && (v = a === n), v === !1)
|
|
93
92
|
return {
|
|
94
93
|
value: !1,
|
|
95
94
|
checkedList: s,
|
|
@@ -107,26 +106,26 @@ class Je extends N {
|
|
|
107
106
|
checkedList: s,
|
|
108
107
|
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${o.visiblePanoIndex}`
|
|
109
108
|
};
|
|
110
|
-
if (o.visiblePanoIndex === "current" && t !== ((
|
|
109
|
+
if (o.visiblePanoIndex === "current" && t !== ((f = e.fiveState) == null ? void 0 : f.panoIndex))
|
|
111
110
|
return {
|
|
112
111
|
value: !1,
|
|
113
112
|
checkedList: s,
|
|
114
|
-
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(
|
|
113
|
+
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(u = e.fiveState) == null ? void 0 : u.panoIndex}`
|
|
115
114
|
};
|
|
116
115
|
}
|
|
117
|
-
if (o.visibleDistance !== void 0 && (s.push("visibleDistance"), o.visibleDistance !== "unLimited")) {
|
|
116
|
+
if (b(n) && o.visibleDistance !== void 0 && (s.push("visibleDistance"), o.visibleDistance !== "unLimited")) {
|
|
118
117
|
const a = this.getDistance(e);
|
|
119
|
-
if (
|
|
118
|
+
if (h(a, o.visibleDistance) === !1)
|
|
120
119
|
return {
|
|
121
120
|
value: !1,
|
|
122
121
|
checkedList: s,
|
|
123
122
|
reason: `distance is not in visibleDistance. distance: ${a}, visibleDistance: ${o.visibleDistance}`
|
|
124
123
|
};
|
|
125
124
|
}
|
|
126
|
-
if (b(n) && o.angleRange &&
|
|
125
|
+
if (b(n) && o.angleRange && O(e)) {
|
|
127
126
|
s.push("angleRange");
|
|
128
127
|
const a = this.getAngle(e);
|
|
129
|
-
if (
|
|
128
|
+
if (h(a, o.angleRange) === !1)
|
|
130
129
|
return { value: !1, checkedList: s, reason: `angle is not in angleRange. angle: ${a}, angleRange: ${o.angleRange}` };
|
|
131
130
|
}
|
|
132
131
|
if (o.intersectRaycaster !== !1 && (typeof o.intersectRaycaster != "object" || o.intersectRaycaster.enabled !== !1)) {
|
|
@@ -146,7 +145,7 @@ class Je extends N {
|
|
|
146
145
|
reason: "all check passed"
|
|
147
146
|
};
|
|
148
147
|
})();
|
|
149
|
-
return
|
|
148
|
+
return d && (d.visible = c.value, d.__debug_visible_reason__ = c), c.value;
|
|
150
149
|
}
|
|
151
150
|
}
|
|
152
151
|
/**
|
|
@@ -162,17 +161,17 @@ class Je extends N {
|
|
|
162
161
|
const n = this.getTagConfig(e).unfoldedConfig;
|
|
163
162
|
if (!n)
|
|
164
163
|
return;
|
|
165
|
-
const
|
|
164
|
+
const d = (() => {
|
|
166
165
|
if (typeof n == "function")
|
|
167
166
|
return n(this.five, { tag: e, distance: this.getDistance(e) });
|
|
168
167
|
if (n.keep === "folded")
|
|
169
168
|
return !1;
|
|
170
169
|
if (n.keep === "unfolded")
|
|
171
170
|
return !0;
|
|
172
|
-
if (n.unfoldDistance &&
|
|
171
|
+
if (n.unfoldDistance && h(this.getDistance(e), n.unfoldDistance) === !1)
|
|
173
172
|
return !1;
|
|
174
173
|
})();
|
|
175
|
-
t.unfolded =
|
|
174
|
+
t.unfolded = d;
|
|
176
175
|
const s = this.getUnfoldedByCamera(e);
|
|
177
176
|
return s !== void 0 ? s : t.unfolded;
|
|
178
177
|
}
|
|
@@ -194,25 +193,25 @@ class Je extends N {
|
|
|
194
193
|
if (t.autoUnfold === void 0 || t.autoUnfold === !1 || t.autoUnfold.enable === !1 || !t.autoUnfold.strategy)
|
|
195
194
|
return;
|
|
196
195
|
if (t.autoUnfold.strategy === "ScreenPostion") {
|
|
197
|
-
const
|
|
198
|
-
if (
|
|
196
|
+
const d = this.getTagProject(e);
|
|
197
|
+
if (d && h(d.x, t.autoUnfold.autoUnfoldProjectX) === !1)
|
|
199
198
|
return !1;
|
|
200
199
|
}
|
|
201
200
|
if (t.autoUnfold.strategy === "MinimumDistance") {
|
|
202
|
-
const
|
|
203
|
-
const
|
|
204
|
-
if (!
|
|
201
|
+
const c = this.filterPointTag.filter((r) => this.getCurrentVisibleState(r)).filter((r) => {
|
|
202
|
+
const f = this.getTagProject(r);
|
|
203
|
+
if (!f)
|
|
205
204
|
return !1;
|
|
206
|
-
const { x:
|
|
207
|
-
return !(Math.abs(
|
|
208
|
-
}).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig:
|
|
209
|
-
var
|
|
210
|
-
return !(typeof
|
|
211
|
-
}).map((r) =>
|
|
212
|
-
const
|
|
213
|
-
return !(
|
|
214
|
-
}).sort((r,
|
|
215
|
-
if (
|
|
205
|
+
const { x: u, y: a, z: v } = f;
|
|
206
|
+
return !(Math.abs(v) > 1 || Math.abs(u) > 1 || Math.abs(a) > 1);
|
|
207
|
+
}).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: f }) => {
|
|
208
|
+
var u, a;
|
|
209
|
+
return !(typeof f == "function" || f.keep || f.autoUnfold === !1 || ((u = f.autoUnfold) == null ? void 0 : u.enable) === !1 || ((a = f.autoUnfold) == null ? void 0 : a.strategy) !== "MinimumDistance");
|
|
210
|
+
}).map((r) => D(y({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: f }) => {
|
|
211
|
+
const u = f.autoUnfold.distance;
|
|
212
|
+
return !(u && h(r, u) === !1);
|
|
213
|
+
}).sort((r, f) => r.distance - f.distance).findIndex((r) => r.id === e.id);
|
|
214
|
+
if (c === -1 || c <= ((n = t.autoUnfold.maxNumber) != null ? n : 1) - 1 === !1)
|
|
216
215
|
return !1;
|
|
217
216
|
}
|
|
218
217
|
return !0;
|
|
@@ -234,17 +233,21 @@ class Je extends N {
|
|
|
234
233
|
setPointTagPosition() {
|
|
235
234
|
const e = this.filterPointTag;
|
|
236
235
|
e.length !== 0 && e.forEach((i) => {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
this.getCurrentVisibleState(i) || (t.inAnimation = !1, i.screenPosition = null);
|
|
244
|
-
}, 1e3)) : t.timeoutId && (t.inAnimation = !1, clearTimeout(t.timeoutId)), !l && !t.inAnimation)
|
|
236
|
+
const l = this.getCurrentVisibleState(i);
|
|
237
|
+
let t;
|
|
238
|
+
if (!l) {
|
|
239
|
+
t = setTimeout(() => {
|
|
240
|
+
l || (i.screenPosition = null);
|
|
241
|
+
}, 1e3);
|
|
245
242
|
return;
|
|
243
|
+
}
|
|
244
|
+
clearTimeout(t);
|
|
246
245
|
const n = this.getTagProject(i);
|
|
247
|
-
|
|
246
|
+
if (!n) {
|
|
247
|
+
i.screenPosition = null;
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
i.screenPosition = { leftPercent: (n.x + 1) / 2 * 100, topPercent: (-n.y + 1) / 2 * 100 };
|
|
248
251
|
});
|
|
249
252
|
}
|
|
250
253
|
setVisible(e) {
|
|
@@ -266,7 +269,7 @@ class Je extends N {
|
|
|
266
269
|
* @description 一个点的标签
|
|
267
270
|
*/
|
|
268
271
|
getTagProject(e) {
|
|
269
|
-
const i =
|
|
272
|
+
const i = I(e);
|
|
270
273
|
if (!i)
|
|
271
274
|
return;
|
|
272
275
|
const { x: l, y: t, z: n } = i.project(this.five.camera);
|
|
@@ -275,36 +278,36 @@ class Je extends N {
|
|
|
275
278
|
}
|
|
276
279
|
/** 通过射线检测标签可用性 */
|
|
277
280
|
getTagEnableByIntersect(e, i) {
|
|
278
|
-
var o, r,
|
|
279
|
-
const l =
|
|
281
|
+
var o, r, f, u, a, v;
|
|
282
|
+
const l = U(U((o = this.getTagConfig(e).visibleConfig) != null ? o : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, n = b(this.five.getCurrentState().mode) ? (r = this.five.work.observers[t]) == null ? void 0 : r.position : this.five.camera.position;
|
|
280
283
|
if (n === void 0)
|
|
281
284
|
return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
|
|
282
|
-
const
|
|
285
|
+
const d = X(
|
|
283
286
|
(() => {
|
|
284
|
-
var
|
|
285
|
-
const
|
|
286
|
-
return
|
|
287
|
+
var g;
|
|
288
|
+
const m = (g = l.checkPoints) != null ? g : "center";
|
|
289
|
+
return m === "center" ? I(e) : m === "corner" ? Z(e) : Array.isArray(m) ? m : [];
|
|
287
290
|
})()
|
|
288
291
|
);
|
|
289
|
-
let s = 0,
|
|
290
|
-
for (const
|
|
291
|
-
const
|
|
292
|
-
|
|
293
|
-
const
|
|
294
|
-
if (!
|
|
292
|
+
let s = 0, c = 0;
|
|
293
|
+
for (const m of d) {
|
|
294
|
+
const g = new j.Vector3().subVectors(m, n).normalize();
|
|
295
|
+
T.set(n, g);
|
|
296
|
+
const F = n.distanceTo(m), [P] = this.five.model.intersectRaycaster(T), x = (() => {
|
|
297
|
+
if (!R(e))
|
|
295
298
|
return;
|
|
296
|
-
const
|
|
297
|
-
var
|
|
298
|
-
return (
|
|
299
|
-
}).filter(
|
|
300
|
-
return
|
|
301
|
-
})(),
|
|
302
|
-
Math.min((
|
|
303
|
-
const
|
|
304
|
-
if (s >=
|
|
299
|
+
const B = this.tags.filter(R).map((A) => {
|
|
300
|
+
var C;
|
|
301
|
+
return (C = A.model) == null ? void 0 : C.object;
|
|
302
|
+
}).filter(N), [w] = T.intersectObjects(B, !0);
|
|
303
|
+
return w;
|
|
304
|
+
})(), S = (f = l.distanceAccuracy) != null ? f : 0.01;
|
|
305
|
+
Math.min((u = P == null ? void 0 : P.distance) != null ? u : 1 / 0, (a = x == null ? void 0 : x.distance) != null ? a : 1 / 0) + S >= F ? s++ : c++;
|
|
306
|
+
const V = (v = l.needPassed) != null ? v : 1;
|
|
307
|
+
if (s >= V)
|
|
305
308
|
return { value: !0 };
|
|
306
309
|
}
|
|
307
|
-
return
|
|
310
|
+
return c === 0 ? { value: !0 } : {
|
|
308
311
|
value: !1,
|
|
309
312
|
reason: {
|
|
310
313
|
type: "intersectRaycaster check failed",
|
|
@@ -315,10 +318,13 @@ class Je extends N {
|
|
|
315
318
|
}
|
|
316
319
|
/** 检测是否匹配当前楼层 */
|
|
317
320
|
getVisibleByFloorIndex(e) {
|
|
318
|
-
var n,
|
|
321
|
+
var n, d, s, c, o, r, f;
|
|
319
322
|
let i = 0;
|
|
320
323
|
const l = (n = e.fiveState) == null ? void 0 : n.panoIndex;
|
|
321
|
-
l !== void 0 ? i = (
|
|
324
|
+
l !== void 0 ? i = (d = this.five.work.observers[l]) == null ? void 0 : d.floorIndex : i = W(
|
|
325
|
+
this.five.work.observers,
|
|
326
|
+
(f = (r = (c = (s = e.model) == null ? void 0 : s.object) == null ? void 0 : c.position) != null ? r : (o = e.mediaPlane) == null ? void 0 : o.position) != null ? f : I(e)
|
|
327
|
+
);
|
|
322
328
|
const t = this.five.model.shownFloor;
|
|
323
329
|
return t === null || t === i;
|
|
324
330
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
for (var t in
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
|
|
10
|
-
return
|
|
1
|
+
var V = Object.defineProperty;
|
|
2
|
+
var j = Object.getOwnPropertySymbols;
|
|
3
|
+
var A = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var y = (d, p, t) => p in d ? V(d, p, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[p] = t, w = (d, p) => {
|
|
5
|
+
for (var t in p || (p = {}))
|
|
6
|
+
A.call(p, t) && y(d, t, p[t]);
|
|
7
|
+
if (j)
|
|
8
|
+
for (var t of j(p))
|
|
9
|
+
x.call(p, t) && y(d, t, p[t]);
|
|
10
|
+
return d;
|
|
11
11
|
};
|
|
12
|
-
var P = (
|
|
13
|
-
var
|
|
12
|
+
var P = (d, p, t) => (y(d, typeof p != "symbol" ? p + "" : p, t), t);
|
|
13
|
+
var M = (d, p, t) => new Promise((e, o) => {
|
|
14
14
|
var i = (r) => {
|
|
15
15
|
try {
|
|
16
16
|
a(t.next(r));
|
|
@@ -24,18 +24,18 @@ var C = (c, l, t) => new Promise((e, o) => {
|
|
|
24
24
|
o(n);
|
|
25
25
|
}
|
|
26
26
|
}, a = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(i, s);
|
|
27
|
-
a((t = t.apply(
|
|
27
|
+
a((t = t.apply(d, p)).next());
|
|
28
28
|
});
|
|
29
|
-
import { TagComputer as
|
|
30
|
-
import { Group as
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import { CSS3DRenderPlugin as
|
|
34
|
-
import { loadGLTF as
|
|
35
|
-
import { isMediaModelTag as
|
|
36
|
-
import { VideoPlane as
|
|
37
|
-
import { centerPoint as
|
|
38
|
-
import { arrayPositionToVector3 as
|
|
29
|
+
import { TagComputer as O } from "./TagComputer.js";
|
|
30
|
+
import { Group as R, Quaternion as I, Vector3 as D, Matrix4 as g } from "three";
|
|
31
|
+
import G from "../Components/TagContainer.js";
|
|
32
|
+
import F from "../Components/Tag/index.js";
|
|
33
|
+
import { CSS3DRenderPlugin as L } from "../../CSS3DRenderPlugin/index.js";
|
|
34
|
+
import { loadGLTF as W } from "../../shared-utils/three/GLTFLoader.js";
|
|
35
|
+
import { isMediaModelTag as S, isStickModelTag as $ } from "../utils/tag/tagCheck.js";
|
|
36
|
+
import { VideoPlane as k, ImagePlane as E } from "../utils/model/mediaPlane.js";
|
|
37
|
+
import { centerPoint as q } from "../../shared-utils/three/centerPoint.js";
|
|
38
|
+
import { arrayPositionToVector3 as C } from "../../shared-utils/positionToVector3.js";
|
|
39
39
|
import "../utils/tagPosition.js";
|
|
40
40
|
import "../utils/checkRange.js";
|
|
41
41
|
import "../../shared-utils/five/mode.js";
|
|
@@ -74,7 +74,6 @@ import "../../shared-utils/five/calculateThreeMouse.js";
|
|
|
74
74
|
import "../utils/tag/adaptConfig.js";
|
|
75
75
|
import "../../shared-utils/typescript/entries.js";
|
|
76
76
|
import "../../shared-utils/url/getUrl.js";
|
|
77
|
-
import "../../shared-utils/five/transformPosition.js";
|
|
78
77
|
import "../../shared-utils/five/getFloorIndex.js";
|
|
79
78
|
import "../../shared-utils/safeObj.js";
|
|
80
79
|
import "../../shared-utils/three/loadTexture.js";
|
|
@@ -158,14 +157,14 @@ import "../Components/Tag/CustomTag.js";
|
|
|
158
157
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
159
158
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
160
159
|
import "@realsee/five/gltf-loader";
|
|
161
|
-
const
|
|
162
|
-
class ui extends
|
|
160
|
+
const B = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map();
|
|
161
|
+
class ui extends O {
|
|
163
162
|
constructor(t) {
|
|
164
163
|
super(t);
|
|
165
|
-
P(this, "group", new
|
|
164
|
+
P(this, "group", new R());
|
|
166
165
|
P(this, "renderMap", /* @__PURE__ */ new Map());
|
|
167
|
-
P(this, "imagePlaneGroup", new
|
|
168
|
-
P(this, "gltfObjectGroup", new
|
|
166
|
+
P(this, "imagePlaneGroup", new R());
|
|
167
|
+
P(this, "gltfObjectGroup", new R());
|
|
169
168
|
/** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
|
|
170
169
|
P(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
171
170
|
/** 临时状态 */
|
|
@@ -173,23 +172,23 @@ class ui extends x {
|
|
|
173
172
|
/** 点标签 */
|
|
174
173
|
P(this, "TagContainerSvelte");
|
|
175
174
|
/** 加载外部模型 */
|
|
176
|
-
P(this, "loadModel", (t) =>
|
|
175
|
+
P(this, "loadModel", (t) => M(this, null, function* () {
|
|
177
176
|
var a;
|
|
178
177
|
const e = t.data.modelUrl;
|
|
179
178
|
if (!e)
|
|
180
179
|
return;
|
|
181
180
|
t.loading = !0;
|
|
182
|
-
const o =
|
|
183
|
-
var m,
|
|
181
|
+
const o = W(e).then((r) => {
|
|
182
|
+
var m, c;
|
|
184
183
|
const n = Object.assign(r.scene, {
|
|
185
184
|
customID: t.id,
|
|
186
185
|
isTagModel: !0,
|
|
187
186
|
removeEventListener: t.config.clickable === !1 ? () => {
|
|
188
|
-
} : this.addObjectClickHandler(t, r.scene, (
|
|
189
|
-
this.hooks.emit("click", { target: "TagModel", tag: t, event:
|
|
187
|
+
} : this.addObjectClickHandler(t, r.scene, (h) => {
|
|
188
|
+
this.hooks.emit("click", { target: "TagModel", tag: t, event: h });
|
|
190
189
|
})
|
|
191
190
|
});
|
|
192
|
-
return n.visible = this.getCurrentVisibleState(t), new
|
|
191
|
+
return n.visible = this.getCurrentVisibleState(t), new g().fromArray(t.matrix).decompose(n.position, n.quaternion, n.scale), n.updateWorldMatrix(!0, !0), n.visible = this.getVisible(t), (c = (m = t.config) == null ? void 0 : m.modelConfig) != null && c.autoLookAtEnabled && n.lookAt(this.five.camera.position.clone().setY(n.position.y)), n;
|
|
193
192
|
});
|
|
194
193
|
t.model = { promise: o };
|
|
195
194
|
const i = yield o;
|
|
@@ -197,13 +196,13 @@ class ui extends x {
|
|
|
197
196
|
return;
|
|
198
197
|
t.model.object = i;
|
|
199
198
|
const s = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
|
|
200
|
-
if (s && (this.gltfObjectGroup.remove(s), s.removeEventListener()), this.updateRender3DDomTag(),
|
|
199
|
+
if (s && (this.gltfObjectGroup.remove(s), s.removeEventListener()), this.updateRender3DDomTag(), S(t)) {
|
|
201
200
|
if (this.getRenderType(t) === "Mesh" && !t.mediaPlane) {
|
|
202
|
-
const r = t.data.mediaPosition.map(
|
|
203
|
-
t.mediaPlane = new
|
|
201
|
+
const r = t.data.mediaPosition.map(C);
|
|
202
|
+
t.mediaPlane = new E(t.data.mediaData[0].url, t.data.mediaPosition.map(C), {
|
|
204
203
|
objectFit: t.data.objectFit
|
|
205
204
|
});
|
|
206
|
-
const n = new
|
|
205
|
+
const n = new D().addVectors(r[0], r[2]).divideScalar(2);
|
|
207
206
|
t.mediaPlane.position.copy(n), i.add(t.mediaPlane);
|
|
208
207
|
}
|
|
209
208
|
this.getRenderType(t) !== "Mesh" && (i.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(t, i), i.updateTagCss3DObjectMatrix());
|
|
@@ -240,30 +239,30 @@ class ui extends x {
|
|
|
240
239
|
var o, i;
|
|
241
240
|
return ((i = (o = e.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : i.type) === "Video";
|
|
242
241
|
}).forEach((e) => {
|
|
243
|
-
var m, h, u;
|
|
242
|
+
var m, c, h, u, b;
|
|
244
243
|
const o = e.data.mediaData[0];
|
|
245
244
|
if (!o)
|
|
246
245
|
return;
|
|
247
246
|
const { url: i } = o;
|
|
248
247
|
if (!i)
|
|
249
248
|
return;
|
|
250
|
-
e.mediaPlane && !((
|
|
251
|
-
const s = e.position.map(
|
|
252
|
-
if ((r ||
|
|
253
|
-
const
|
|
249
|
+
e.mediaPlane && !((c = (m = e.state) == null ? void 0 : m.visible) == null || c) && e.mediaPlane instanceof k && e.mediaPlane.pause();
|
|
250
|
+
const s = e.position.map(C), a = this.getCurrentVisibleState(e), r = (() => !!(e.mediaPlane && !a))(), n = (() => !!(!e.mediaPlane && a))(), l = (() => !!(e.mediaPlane && e.mediaPlane.src !== i))();
|
|
251
|
+
if ((r || l) && (e.mediaPlane && this.imagePlaneGroup.remove(e.mediaPlane), (h = e.mediaPlane) == null || h.dispose(), (u = e.mediaPlane) == null || u.removeFromParent(), e.mediaPlane = void 0), n || l) {
|
|
252
|
+
const f = new k(i, s, {
|
|
254
253
|
videoCoverSrc: o.videoCoverUrl,
|
|
255
254
|
playButton: e.data.playIcon,
|
|
256
|
-
paused: !((
|
|
255
|
+
paused: !((b = e.data.autoplayConfig) != null && b.autoplayVideo),
|
|
257
256
|
objectFit: e.data.objectFit,
|
|
258
|
-
videoTextureMap:
|
|
259
|
-
ImageTextureMap:
|
|
257
|
+
videoTextureMap: B,
|
|
258
|
+
ImageTextureMap: N,
|
|
260
259
|
domEvents: this.domEvents
|
|
261
260
|
});
|
|
262
|
-
|
|
263
|
-
|
|
261
|
+
f.onVideoReady = (T) => {
|
|
262
|
+
T.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: f.videoInstance }));
|
|
264
263
|
};
|
|
265
|
-
const
|
|
266
|
-
|
|
264
|
+
const v = (T) => (this.five.on("renderFrame", T), () => this.five.off("renderFrame", T));
|
|
265
|
+
f.initialRenderHooks(v), e.mediaPlane = f, this.imagePlaneGroup.add(e.mediaPlane);
|
|
267
266
|
}
|
|
268
267
|
});
|
|
269
268
|
}
|
|
@@ -275,12 +274,13 @@ class ui extends x {
|
|
|
275
274
|
var o, i;
|
|
276
275
|
return ((i = (o = e.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : i.type) === "Image";
|
|
277
276
|
}).forEach((e) => {
|
|
277
|
+
var l, m;
|
|
278
278
|
const { url: o } = e.data.mediaData[0];
|
|
279
279
|
if (!o)
|
|
280
280
|
return;
|
|
281
|
-
const i = e.position.map(
|
|
282
|
-
(a || n) && e.mediaPlane &&
|
|
283
|
-
this.hooks.emit("click", { tag: e, target: "TagContent", event:
|
|
281
|
+
const i = e.position.map(C), s = this.getCurrentVisibleState(e), a = (() => !!(e.mediaPlane && !s))(), r = (() => !!(!e.mediaPlane && s))(), n = (() => !!(e.mediaPlane && e.mediaPlane.src !== o))();
|
|
282
|
+
(a || n) && (e.mediaPlane && this.imagePlaneGroup.remove(e.mediaPlane), (l = e.mediaPlane) == null || l.dispose(), (m = e.mediaPlane) == null || m.removeFromParent(), e.mediaPlane = void 0), (r || n) && (e.mediaPlane = new E(o, i, { objectFit: e.data.objectFit }), e.config.clickable !== !1 && this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (c) => {
|
|
283
|
+
this.hooks.emit("click", { tag: e, target: "TagContent", event: c.origDomEvent });
|
|
284
284
|
}), this.imagePlaneGroup.add(e.mediaPlane));
|
|
285
285
|
});
|
|
286
286
|
}
|
|
@@ -291,16 +291,16 @@ class ui extends x {
|
|
|
291
291
|
this.filterCSS3DTag.forEach((e) => {
|
|
292
292
|
var o, i, s;
|
|
293
293
|
if (e.tag3DContentSvelte) {
|
|
294
|
-
const { svelteApp: a, css3DInstance: r, initialNormal: n, currentNormal:
|
|
295
|
-
if (a.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !n.equals(
|
|
296
|
-
const m = new
|
|
294
|
+
const { svelteApp: a, css3DInstance: r, initialNormal: n, currentNormal: l } = e.tag3DContentSvelte;
|
|
295
|
+
if (a.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !n.equals(l)) {
|
|
296
|
+
const m = new I().setFromUnitVectors(n, l);
|
|
297
297
|
r.css3DObject.setRotationFromQuaternion(m);
|
|
298
298
|
}
|
|
299
299
|
return;
|
|
300
300
|
} else {
|
|
301
|
-
if (
|
|
301
|
+
if (S(e) && !((o = e.model) != null && o.object) || ((i = e.state) == null ? void 0 : i.visible) === !1 || !this.state.visible || !this.state.enabled)
|
|
302
302
|
return;
|
|
303
|
-
if (this.css3DRenderPlugin || (this.css3DRenderPlugin =
|
|
303
|
+
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = L(this.five)), e.stickType === "3DPoint" && !e.normal)
|
|
304
304
|
return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
|
|
305
305
|
const a = this.getPositions(e);
|
|
306
306
|
if (!a)
|
|
@@ -308,25 +308,25 @@ class ui extends x {
|
|
|
308
308
|
const r = this.getTagNormal(e);
|
|
309
309
|
if (!r)
|
|
310
310
|
return;
|
|
311
|
-
const n = this.getTagConfig(e),
|
|
312
|
-
if (this.getRenderType(e) === "BehindDom" ||
|
|
313
|
-
|
|
314
|
-
const
|
|
315
|
-
|
|
316
|
-
var
|
|
311
|
+
const n = this.getTagConfig(e), l = w({ wrapperStyle: { zIndex: this.calculateTagZIndex(e).toString() } }, n.tag3DConfig);
|
|
312
|
+
if (this.getRenderType(e) === "BehindDom" || l.mode === "behind") {
|
|
313
|
+
l.mode = "behind", l.container = document.createElement("div");
|
|
314
|
+
const h = "black";
|
|
315
|
+
l.container.style.backgroundColor = h, l.container.style.border = `3px solid ${h}`, this.css3DRenderPlugin.hooks.on("render", () => {
|
|
316
|
+
var u;
|
|
317
317
|
if (m.css3DObject.opacityMesh && n.clickable !== !1) {
|
|
318
318
|
const b = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (f) => {
|
|
319
319
|
this.hooks.emit("click", { event: f, target: "TagContent", tag: e });
|
|
320
320
|
});
|
|
321
|
-
(
|
|
321
|
+
(u = this.store.css3DRenderDisposer.get(e.id)) == null || u.push(b);
|
|
322
322
|
}
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
|
-
const m = this.css3DRenderPlugin.create3DDomContainer(a,
|
|
325
|
+
const m = this.css3DRenderPlugin.create3DDomContainer(a, l);
|
|
326
326
|
if (!m)
|
|
327
327
|
return;
|
|
328
328
|
this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
|
|
329
|
-
const
|
|
329
|
+
const c = new F({
|
|
330
330
|
target: m.container,
|
|
331
331
|
props: {
|
|
332
332
|
tag: e,
|
|
@@ -338,15 +338,15 @@ class ui extends x {
|
|
|
338
338
|
}
|
|
339
339
|
});
|
|
340
340
|
e.tag3DContentSvelte = {
|
|
341
|
-
svelteApp:
|
|
341
|
+
svelteApp: c,
|
|
342
342
|
domContainer: m,
|
|
343
343
|
css3DInstance: m,
|
|
344
344
|
initialNormal: r,
|
|
345
345
|
currentNormal: r,
|
|
346
346
|
dispose: () => {
|
|
347
|
-
|
|
347
|
+
c.$destroy(), m.dispose();
|
|
348
348
|
}
|
|
349
|
-
},
|
|
349
|
+
}, S(e) && ((s = e.model) != null && s.object) && this.updateTagCss3DObjectMatrix(e, e.model.object);
|
|
350
350
|
}
|
|
351
351
|
}), this.clearUnusedPanelTag();
|
|
352
352
|
}
|
|
@@ -377,23 +377,23 @@ class ui extends x {
|
|
|
377
377
|
* @param model 模型
|
|
378
378
|
*/
|
|
379
379
|
updateTagCss3DObjectMatrix(t, e) {
|
|
380
|
-
var b, f,
|
|
381
|
-
const o = (f = (b = t.config.tag3DConfig) == null ? void 0 : b.ratio) != null ? f : 216e-5, i = (
|
|
380
|
+
var b, f, v;
|
|
381
|
+
const o = (f = (b = t.config.tag3DConfig) == null ? void 0 : b.ratio) != null ? f : 216e-5, i = (v = t.tag3DContentSvelte) == null ? void 0 : v.css3DInstance.css3DObject;
|
|
382
382
|
if (!i)
|
|
383
383
|
return;
|
|
384
|
-
const s =
|
|
384
|
+
const s = S(t) ? t.data.mediaPosition : t.position;
|
|
385
385
|
if (!s || s.length !== 4 || !Array.isArray(s[0]) || !Array.isArray(s[2]))
|
|
386
386
|
return;
|
|
387
387
|
e.updateWorldMatrix(!1, !1);
|
|
388
|
-
const a = e.matrixWorld, r = new
|
|
389
|
-
|
|
390
|
-
const
|
|
391
|
-
|
|
388
|
+
const a = e.matrixWorld, r = new D().fromArray(s[0]), n = new D().fromArray(s[2]), l = q(r, n).add(new D(0, 0, 5e-4)), m = new g().setPosition(l), c = new g().makeScale(o, o, o), h = new g().multiply(a).multiply(m).multiply(c);
|
|
389
|
+
h.decompose(i.position, i.quaternion, i.scale);
|
|
390
|
+
const u = i.opacityMesh;
|
|
391
|
+
u && h.decompose(u.position, u.quaternion, u.scale);
|
|
392
392
|
}
|
|
393
393
|
/** 添加模型标签 */
|
|
394
394
|
addMediaModelTag(t) {
|
|
395
|
-
return
|
|
396
|
-
const e = t.filter(
|
|
395
|
+
return M(this, null, function* () {
|
|
396
|
+
const e = t.filter($).map((o) => this.loadModel(o));
|
|
397
397
|
yield Promise.all(e), this.setVisible(), this.updateRenderAllTags();
|
|
398
398
|
});
|
|
399
399
|
}
|
|
@@ -449,7 +449,7 @@ class ui extends x {
|
|
|
449
449
|
const s = (o = this.five.getElement()) == null ? void 0 : o.parentElement;
|
|
450
450
|
if (!s)
|
|
451
451
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
452
|
-
this.TagContainerSvelte = new
|
|
452
|
+
this.TagContainerSvelte = new G({
|
|
453
453
|
target: s,
|
|
454
454
|
props: {
|
|
455
455
|
hooks: this.hooks,
|