@realsee/dnalogel 3.0.0-dev.2 → 3.0.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/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
- package/dist/index.cjs.js +37 -37
- package/dist/index.d.ts +0 -1
- package/dist/index.js +3449 -3433
- package/dist/index.umd.js +39 -39
- package/dist/shared-utils/five/FiveDomEvents.d.ts +24 -10
- package/dist/shared-utils/five/calculateThreeMouse.d.ts +11 -0
- package/dist/shared-utils/nearlyEqual.d.ts +7 -0
- package/dist/shared-utils/three/PointSelectorHelper.d.ts +6 -5
- package/libs/CruisePlugin/Controller.js +132 -129
- package/libs/CruisePlugin/index.js +6 -5
- package/libs/CurrentPanoImagePlugin/Controller.js +21 -23
- package/libs/CurrentPanoImagePlugin/index.js +3 -4
- 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 +8 -7
- package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -1
- package/libs/PanoTagPlugin/Components/TagItem.js +192 -205
- package/libs/PanoTagPlugin/controller/TagComputer.js +63 -61
- package/libs/PanoTagPlugin/controller/TagRender.js +52 -51
- package/libs/PanoTagPlugin/controller/TagUtil.js +94 -98
- package/libs/PanoTagPlugin/controller/index.js +42 -42
- package/libs/PanoTagPlugin/index.js +12 -11
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/index.js +1 -0
- package/libs/index.d.ts +0 -1
- package/libs/index.js +1 -1
- package/libs/shared-utils/five/FiveDomEvents.d.ts +24 -10
- package/libs/shared-utils/five/FiveDomEvents.js +104 -66
- package/libs/shared-utils/five/calculateThreeMouse.d.ts +11 -0
- package/libs/shared-utils/five/calculateThreeMouse.js +8 -0
- package/libs/shared-utils/five/changeMode.js +11 -11
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/nearlyEqual.d.ts +7 -0
- package/libs/shared-utils/nearlyEqual.js +9 -3
- package/libs/shared-utils/three/PointSelector.js +39 -39
- package/libs/shared-utils/three/PointSelectorHelper.d.ts +6 -5
- package/libs/shared-utils/three/PointSelectorHelper.js +4 -4
- package/libs/shared-utils/three/getNormal.js +5 -5
- package/package.json +2 -2
- package/dist/shared-utils/five/adapt.d.ts +0 -9
- 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 -1050
- 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 -353
- 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/adapt.d.ts +0 -9
- package/libs/shared-utils/five/adapt.js +0 -16
|
@@ -2,15 +2,15 @@ var E = Object.defineProperty, $ = Object.defineProperties;
|
|
|
2
2
|
var L = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var k = Object.getOwnPropertySymbols;
|
|
4
4
|
var _ = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var M = (
|
|
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
|
-
_.call(e, i) && M(
|
|
7
|
+
_.call(e, i) && M(p, i, e[i]);
|
|
8
8
|
if (k)
|
|
9
9
|
for (var i of k(e))
|
|
10
|
-
z.call(e, i) && M(
|
|
11
|
-
return
|
|
12
|
-
}, D = (
|
|
13
|
-
import * as
|
|
10
|
+
z.call(e, i) && M(p, i, e[i]);
|
|
11
|
+
return p;
|
|
12
|
+
}, D = (p, e) => $(p, L(e));
|
|
13
|
+
import * as j from "three";
|
|
14
14
|
import { is3DTag as O, isMediaModelTag as R } from "../utils/tag/tagCheck.js";
|
|
15
15
|
import { getTagCenterPosition as I, getTagPosition as Z } from "../utils/tagPosition.js";
|
|
16
16
|
import { checkRange as h } from "../utils/checkRange.js";
|
|
@@ -59,11 +59,12 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
|
59
59
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
60
60
|
import "../../shared-utils/three/getNormal.js";
|
|
61
61
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
62
|
+
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
62
63
|
import "../utils/tag/adaptConfig.js";
|
|
63
64
|
import "../../shared-utils/typescript/entries.js";
|
|
64
65
|
import "../../shared-utils/url/getUrl.js";
|
|
65
|
-
const T = new
|
|
66
|
-
class
|
|
66
|
+
const T = new j.Raycaster();
|
|
67
|
+
class Je extends q {
|
|
67
68
|
constructor(e) {
|
|
68
69
|
super(e);
|
|
69
70
|
}
|
|
@@ -75,71 +76,72 @@ class Ge extends q {
|
|
|
75
76
|
if ((d == null ? void 0 : d.visible) !== void 0)
|
|
76
77
|
return d.visible;
|
|
77
78
|
{
|
|
78
|
-
const
|
|
79
|
+
const s = [], c = (() => {
|
|
79
80
|
var r, f, u;
|
|
80
|
-
const
|
|
81
|
-
if (typeof
|
|
82
|
-
return { value:
|
|
83
|
-
if (
|
|
84
|
-
return { value: !1, checkedList:
|
|
85
|
-
if (
|
|
86
|
-
return { value: !0, checkedList:
|
|
87
|
-
if (
|
|
88
|
-
|
|
89
|
-
|
|
81
|
+
const o = (r = e.config.visibleConfig) != null ? r : {};
|
|
82
|
+
if (typeof o == "function")
|
|
83
|
+
return { value: o(this.five, { tag: e, distance: this.getDistance(e) }), checkedList: s, reason: "config function result" };
|
|
84
|
+
if (o.keep === "hidden")
|
|
85
|
+
return { value: !1, checkedList: s, reason: "config.keep is hidden" };
|
|
86
|
+
if (o.keep === "visible")
|
|
87
|
+
return { value: !0, checkedList: s, reason: "config.keep is visible" };
|
|
88
|
+
if (o.visibleFiveMode !== void 0) {
|
|
89
|
+
const a = typeof o.visibleFiveMode == "function" ? o.visibleFiveMode(e) : o.visibleFiveMode;
|
|
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)
|
|
90
92
|
return {
|
|
91
93
|
value: !1,
|
|
92
|
-
checkedList:
|
|
94
|
+
checkedList: s,
|
|
93
95
|
reason: "current mode is not included in visibleFiveMode",
|
|
94
|
-
visibleFiveMode:
|
|
96
|
+
visibleFiveMode: o.visibleFiveMode,
|
|
95
97
|
mode: n
|
|
96
98
|
};
|
|
97
99
|
}
|
|
98
|
-
if (
|
|
99
|
-
return { value: !1, checkedList:
|
|
100
|
-
if (b(n) &&
|
|
101
|
-
if (
|
|
100
|
+
if (o.followModelVisibility === !0 && (n === "Floorplan" || n === "Mapview") && this.getVisibleByFloorIndex(e) === !1)
|
|
101
|
+
return { value: !1, checkedList: s, reason: "followModelVisibility check failed" };
|
|
102
|
+
if (b(n) && o.visiblePanoIndex !== void 0 && o.visiblePanoIndex !== "all" && t !== void 0) {
|
|
103
|
+
if (s.push("visiblePanoIndex"), Array.isArray(o.visiblePanoIndex) && !o.visiblePanoIndex.includes(t))
|
|
102
104
|
return {
|
|
103
105
|
value: !1,
|
|
104
|
-
checkedList:
|
|
105
|
-
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${
|
|
106
|
+
checkedList: s,
|
|
107
|
+
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${o.visiblePanoIndex}`
|
|
106
108
|
};
|
|
107
|
-
if (
|
|
109
|
+
if (o.visiblePanoIndex === "current" && t !== ((f = e.fiveState) == null ? void 0 : f.panoIndex))
|
|
108
110
|
return {
|
|
109
111
|
value: !1,
|
|
110
|
-
checkedList:
|
|
112
|
+
checkedList: s,
|
|
111
113
|
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(u = e.fiveState) == null ? void 0 : u.panoIndex}`
|
|
112
114
|
};
|
|
113
115
|
}
|
|
114
|
-
if (b(n) &&
|
|
116
|
+
if (b(n) && o.visibleDistance !== void 0 && (s.push("visibleDistance"), o.visibleDistance !== "unLimited")) {
|
|
115
117
|
const a = this.getDistance(e);
|
|
116
|
-
if (h(a,
|
|
118
|
+
if (h(a, o.visibleDistance) === !1)
|
|
117
119
|
return {
|
|
118
120
|
value: !1,
|
|
119
|
-
checkedList:
|
|
120
|
-
reason: `distance is not in visibleDistance. distance: ${a}, visibleDistance: ${
|
|
121
|
+
checkedList: s,
|
|
122
|
+
reason: `distance is not in visibleDistance. distance: ${a}, visibleDistance: ${o.visibleDistance}`
|
|
121
123
|
};
|
|
122
124
|
}
|
|
123
|
-
if (b(n) &&
|
|
124
|
-
|
|
125
|
+
if (b(n) && o.angleRange && O(e)) {
|
|
126
|
+
s.push("angleRange");
|
|
125
127
|
const a = this.getAngle(e);
|
|
126
|
-
if (h(a,
|
|
127
|
-
return { value: !1, checkedList:
|
|
128
|
+
if (h(a, o.angleRange) === !1)
|
|
129
|
+
return { value: !1, checkedList: s, reason: `angle is not in angleRange. angle: ${a}, angleRange: ${o.angleRange}` };
|
|
128
130
|
}
|
|
129
|
-
if (
|
|
130
|
-
if (
|
|
131
|
+
if (o.intersectRaycaster !== !1 && (typeof o.intersectRaycaster != "object" || o.intersectRaycaster.enabled !== !1)) {
|
|
132
|
+
if (s.push("intersectRaycaster"), t === void 0)
|
|
131
133
|
return {
|
|
132
134
|
value: !1,
|
|
133
|
-
checkedList:
|
|
135
|
+
checkedList: s,
|
|
134
136
|
reason: `intersectRaycaster check failed: panoIndex is ${t}`
|
|
135
137
|
};
|
|
136
138
|
const a = this.getTagEnableByIntersect(e, t);
|
|
137
139
|
if (a.value === !1)
|
|
138
|
-
return Object.assign(a, { checkedList:
|
|
140
|
+
return Object.assign(a, { checkedList: s });
|
|
139
141
|
}
|
|
140
142
|
return {
|
|
141
143
|
value: !0,
|
|
142
|
-
checkedList:
|
|
144
|
+
checkedList: s,
|
|
143
145
|
reason: "all check passed"
|
|
144
146
|
};
|
|
145
147
|
})();
|
|
@@ -170,8 +172,8 @@ class Ge extends q {
|
|
|
170
172
|
return !1;
|
|
171
173
|
})();
|
|
172
174
|
t.unfolded = d;
|
|
173
|
-
const
|
|
174
|
-
return
|
|
175
|
+
const s = this.getUnfoldedByCamera(e);
|
|
176
|
+
return s !== void 0 ? s : t.unfolded;
|
|
175
177
|
}
|
|
176
178
|
}
|
|
177
179
|
/**
|
|
@@ -200,8 +202,8 @@ class Ge extends q {
|
|
|
200
202
|
const f = this.getTagProject(r);
|
|
201
203
|
if (!f)
|
|
202
204
|
return !1;
|
|
203
|
-
const { x: u, y: a, z:
|
|
204
|
-
return !(Math.abs(
|
|
205
|
+
const { x: u, y: a, z: v } = f;
|
|
206
|
+
return !(Math.abs(v) > 1 || Math.abs(u) > 1 || Math.abs(a) > 1);
|
|
205
207
|
}).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: f }) => {
|
|
206
208
|
var u, a;
|
|
207
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");
|
|
@@ -276,22 +278,22 @@ class Ge extends q {
|
|
|
276
278
|
}
|
|
277
279
|
/** 通过射线检测标签可用性 */
|
|
278
280
|
getTagEnableByIntersect(e, i) {
|
|
279
|
-
var
|
|
280
|
-
const l = U(U((
|
|
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;
|
|
281
283
|
if (n === void 0)
|
|
282
284
|
return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
|
|
283
285
|
const d = X(
|
|
284
286
|
(() => {
|
|
285
287
|
var g;
|
|
286
|
-
const
|
|
287
|
-
return
|
|
288
|
+
const m = (g = l.checkPoints) != null ? g : "center";
|
|
289
|
+
return m === "center" ? I(e) : m === "corner" ? Z(e) : Array.isArray(m) ? m : [];
|
|
288
290
|
})()
|
|
289
291
|
);
|
|
290
|
-
let
|
|
291
|
-
for (const
|
|
292
|
-
const g = new
|
|
292
|
+
let s = 0, c = 0;
|
|
293
|
+
for (const m of d) {
|
|
294
|
+
const g = new j.Vector3().subVectors(m, n).normalize();
|
|
293
295
|
T.set(n, g);
|
|
294
|
-
const
|
|
296
|
+
const F = n.distanceTo(m), [P] = this.five.model.intersectRaycaster(T), x = (() => {
|
|
295
297
|
if (!R(e))
|
|
296
298
|
return;
|
|
297
299
|
const B = this.tags.filter(R).map((A) => {
|
|
@@ -300,33 +302,33 @@ class Ge extends q {
|
|
|
300
302
|
}).filter(N), [w] = T.intersectObjects(B, !0);
|
|
301
303
|
return w;
|
|
302
304
|
})(), S = (f = l.distanceAccuracy) != null ? f : 0.01;
|
|
303
|
-
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 >=
|
|
304
|
-
const V = (
|
|
305
|
-
if (
|
|
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)
|
|
306
308
|
return { value: !0 };
|
|
307
309
|
}
|
|
308
310
|
return c === 0 ? { value: !0 } : {
|
|
309
311
|
value: !1,
|
|
310
312
|
reason: {
|
|
311
313
|
type: "intersectRaycaster check failed",
|
|
312
|
-
passedCount:
|
|
314
|
+
passedCount: s,
|
|
313
315
|
needPassed: l.needPassed
|
|
314
316
|
}
|
|
315
317
|
};
|
|
316
318
|
}
|
|
317
319
|
/** 检测是否匹配当前楼层 */
|
|
318
320
|
getVisibleByFloorIndex(e) {
|
|
319
|
-
var n, d,
|
|
321
|
+
var n, d, s, c, o, r, f;
|
|
320
322
|
let i = 0;
|
|
321
323
|
const l = (n = e.fiveState) == null ? void 0 : n.panoIndex;
|
|
322
324
|
l !== void 0 ? i = (d = this.five.work.observers[l]) == null ? void 0 : d.floorIndex : i = W(
|
|
323
325
|
this.five.work.observers,
|
|
324
|
-
(f = (r = (c = (
|
|
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)
|
|
325
327
|
);
|
|
326
328
|
const t = this.five.model.shownFloor;
|
|
327
329
|
return t === null || t === i;
|
|
328
330
|
}
|
|
329
331
|
}
|
|
330
332
|
export {
|
|
331
|
-
|
|
333
|
+
Je as TagComputer
|
|
332
334
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
1
|
+
var V = Object.defineProperty;
|
|
2
2
|
var j = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var y = (
|
|
5
|
-
for (var t in
|
|
6
|
-
|
|
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
7
|
if (j)
|
|
8
|
-
for (var t of j(
|
|
9
|
-
x.call(
|
|
10
|
-
return
|
|
8
|
+
for (var t of j(p))
|
|
9
|
+
x.call(p, t) && y(d, t, p[t]);
|
|
10
|
+
return d;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var M = (
|
|
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,7 +24,7 @@ var M = (c, d, 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
29
|
import { TagComputer as O } from "./TagComputer.js";
|
|
30
30
|
import { Group as R, Quaternion as I, Vector3 as D, Matrix4 as g } from "three";
|
|
@@ -70,6 +70,7 @@ import "../../vendor/svelte/store/index.js";
|
|
|
70
70
|
import "../../vendor/svelte/internal/index.js";
|
|
71
71
|
import "../../shared-utils/device.js";
|
|
72
72
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
73
|
+
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
73
74
|
import "../utils/tag/adaptConfig.js";
|
|
74
75
|
import "../../shared-utils/typescript/entries.js";
|
|
75
76
|
import "../../shared-utils/url/getUrl.js";
|
|
@@ -157,37 +158,37 @@ import "../../CSS3DRenderPlugin/Controller.js";
|
|
|
157
158
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
158
159
|
import "@realsee/five/gltf-loader";
|
|
159
160
|
const B = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map();
|
|
160
|
-
class
|
|
161
|
+
class ui extends O {
|
|
161
162
|
constructor(t) {
|
|
162
163
|
super(t);
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
P(this, "group", new R());
|
|
165
|
+
P(this, "renderMap", /* @__PURE__ */ new Map());
|
|
166
|
+
P(this, "imagePlaneGroup", new R());
|
|
167
|
+
P(this, "gltfObjectGroup", new R());
|
|
167
168
|
/** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
|
|
168
|
-
|
|
169
|
+
P(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
169
170
|
/** 临时状态 */
|
|
170
|
-
|
|
171
|
+
P(this, "temporaryState", { visible: !0 });
|
|
171
172
|
/** 点标签 */
|
|
172
|
-
|
|
173
|
+
P(this, "TagContainerSvelte");
|
|
173
174
|
/** 加载外部模型 */
|
|
174
|
-
|
|
175
|
+
P(this, "loadModel", (t) => M(this, null, function* () {
|
|
175
176
|
var a;
|
|
176
177
|
const e = t.data.modelUrl;
|
|
177
178
|
if (!e)
|
|
178
179
|
return;
|
|
179
180
|
t.loading = !0;
|
|
180
181
|
const o = W(e).then((r) => {
|
|
181
|
-
var m,
|
|
182
|
+
var m, c;
|
|
182
183
|
const n = Object.assign(r.scene, {
|
|
183
184
|
customID: t.id,
|
|
184
185
|
isTagModel: !0,
|
|
185
186
|
removeEventListener: t.config.clickable === !1 ? () => {
|
|
186
|
-
} : this.addObjectClickHandler(t, r.scene, (
|
|
187
|
-
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 });
|
|
188
189
|
})
|
|
189
190
|
});
|
|
190
|
-
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), (
|
|
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;
|
|
191
192
|
});
|
|
192
193
|
t.model = { promise: o };
|
|
193
194
|
const i = yield o;
|
|
@@ -238,30 +239,30 @@ class hi extends O {
|
|
|
238
239
|
var o, i;
|
|
239
240
|
return ((i = (o = e.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : i.type) === "Video";
|
|
240
241
|
}).forEach((e) => {
|
|
241
|
-
var m,
|
|
242
|
+
var m, c, h, u, b;
|
|
242
243
|
const o = e.data.mediaData[0];
|
|
243
244
|
if (!o)
|
|
244
245
|
return;
|
|
245
246
|
const { url: i } = o;
|
|
246
247
|
if (!i)
|
|
247
248
|
return;
|
|
248
|
-
e.mediaPlane && !((
|
|
249
|
+
e.mediaPlane && !((c = (m = e.state) == null ? void 0 : m.visible) == null || c) && e.mediaPlane instanceof k && e.mediaPlane.pause();
|
|
249
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))();
|
|
250
|
-
if ((r || l) && (e.mediaPlane && this.imagePlaneGroup.remove(e.mediaPlane), (
|
|
251
|
-
const
|
|
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, {
|
|
252
253
|
videoCoverSrc: o.videoCoverUrl,
|
|
253
254
|
playButton: e.data.playIcon,
|
|
254
|
-
paused: !((
|
|
255
|
+
paused: !((b = e.data.autoplayConfig) != null && b.autoplayVideo),
|
|
255
256
|
objectFit: e.data.objectFit,
|
|
256
257
|
videoTextureMap: B,
|
|
257
258
|
ImageTextureMap: N,
|
|
258
259
|
domEvents: this.domEvents
|
|
259
260
|
});
|
|
260
|
-
|
|
261
|
-
T.addEventListener("play", () => this.mediaStore.set({ currentMediaElement:
|
|
261
|
+
f.onVideoReady = (T) => {
|
|
262
|
+
T.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: f.videoInstance }));
|
|
262
263
|
};
|
|
263
264
|
const v = (T) => (this.five.on("renderFrame", T), () => this.five.off("renderFrame", T));
|
|
264
|
-
|
|
265
|
+
f.initialRenderHooks(v), e.mediaPlane = f, this.imagePlaneGroup.add(e.mediaPlane);
|
|
265
266
|
}
|
|
266
267
|
});
|
|
267
268
|
}
|
|
@@ -278,8 +279,8 @@ class hi extends O {
|
|
|
278
279
|
if (!o)
|
|
279
280
|
return;
|
|
280
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))();
|
|
281
|
-
(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", (
|
|
282
|
-
this.hooks.emit("click", { tag: e, target: "TagContent", event:
|
|
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 });
|
|
283
284
|
}), this.imagePlaneGroup.add(e.mediaPlane));
|
|
284
285
|
});
|
|
285
286
|
}
|
|
@@ -310,14 +311,14 @@ class hi extends O {
|
|
|
310
311
|
const n = this.getTagConfig(e), l = w({ wrapperStyle: { zIndex: this.calculateTagZIndex(e).toString() } }, n.tag3DConfig);
|
|
311
312
|
if (this.getRenderType(e) === "BehindDom" || l.mode === "behind") {
|
|
312
313
|
l.mode = "behind", l.container = document.createElement("div");
|
|
313
|
-
const
|
|
314
|
-
l.container.style.backgroundColor =
|
|
315
|
-
var
|
|
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;
|
|
316
317
|
if (m.css3DObject.opacityMesh && n.clickable !== !1) {
|
|
317
|
-
const
|
|
318
|
-
this.hooks.emit("click", { event:
|
|
318
|
+
const b = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (f) => {
|
|
319
|
+
this.hooks.emit("click", { event: f, target: "TagContent", tag: e });
|
|
319
320
|
});
|
|
320
|
-
(
|
|
321
|
+
(u = this.store.css3DRenderDisposer.get(e.id)) == null || u.push(b);
|
|
321
322
|
}
|
|
322
323
|
});
|
|
323
324
|
}
|
|
@@ -325,7 +326,7 @@ class hi extends O {
|
|
|
325
326
|
if (!m)
|
|
326
327
|
return;
|
|
327
328
|
this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
|
|
328
|
-
const
|
|
329
|
+
const c = new F({
|
|
329
330
|
target: m.container,
|
|
330
331
|
props: {
|
|
331
332
|
tag: e,
|
|
@@ -337,13 +338,13 @@ class hi extends O {
|
|
|
337
338
|
}
|
|
338
339
|
});
|
|
339
340
|
e.tag3DContentSvelte = {
|
|
340
|
-
svelteApp:
|
|
341
|
+
svelteApp: c,
|
|
341
342
|
domContainer: m,
|
|
342
343
|
css3DInstance: m,
|
|
343
344
|
initialNormal: r,
|
|
344
345
|
currentNormal: r,
|
|
345
346
|
dispose: () => {
|
|
346
|
-
|
|
347
|
+
c.$destroy(), m.dispose();
|
|
347
348
|
}
|
|
348
349
|
}, S(e) && ((s = e.model) != null && s.object) && this.updateTagCss3DObjectMatrix(e, e.model.object);
|
|
349
350
|
}
|
|
@@ -376,18 +377,18 @@ class hi extends O {
|
|
|
376
377
|
* @param model 模型
|
|
377
378
|
*/
|
|
378
379
|
updateTagCss3DObjectMatrix(t, e) {
|
|
379
|
-
var
|
|
380
|
-
const o = (
|
|
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;
|
|
381
382
|
if (!i)
|
|
382
383
|
return;
|
|
383
384
|
const s = S(t) ? t.data.mediaPosition : t.position;
|
|
384
385
|
if (!s || s.length !== 4 || !Array.isArray(s[0]) || !Array.isArray(s[2]))
|
|
385
386
|
return;
|
|
386
387
|
e.updateWorldMatrix(!1, !1);
|
|
387
|
-
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),
|
|
388
|
-
|
|
389
|
-
const
|
|
390
|
-
|
|
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);
|
|
391
392
|
}
|
|
392
393
|
/** 添加模型标签 */
|
|
393
394
|
addMediaModelTag(t) {
|
|
@@ -401,7 +402,7 @@ class hi extends O {
|
|
|
401
402
|
*/
|
|
402
403
|
updateRenderPointTag() {
|
|
403
404
|
const t = this.filterPointTag;
|
|
404
|
-
this.setTagZIndex(t), this.updateDomView();
|
|
405
|
+
this.setTagZIndex(t), this.setPointTagPosition(), this.updateDomView();
|
|
405
406
|
}
|
|
406
407
|
updatePointTagPosition() {
|
|
407
408
|
this.setPointTagPosition(), this.updateDomView();
|
|
@@ -464,5 +465,5 @@ class hi extends O {
|
|
|
464
465
|
}
|
|
465
466
|
}
|
|
466
467
|
export {
|
|
467
|
-
|
|
468
|
+
ui as TagRender
|
|
468
469
|
};
|