@realsee/dnalogel 3.2.0-dev.7 → 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/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 +3052 -3052
- 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.js +35 -40
- 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,4 +1,4 @@
|
|
|
1
|
-
import type { TagInstance, TagContentType, StickType, TagId, TagConfig, PlaneTag, MediaStore
|
|
1
|
+
import type { TagInstance, TagContentType, StickType, TagId, TagConfig, PlaneTag, MediaStore } from '../typings';
|
|
2
2
|
import * as THREE from 'three';
|
|
3
3
|
import type { Tag, Tags, PointTagInstance, Point3DTag } from '../typings';
|
|
4
4
|
import { TagCache } from './TagCache';
|
|
@@ -10,9 +10,6 @@ import { FiveDomEvents } from '../../shared-utils/five/FiveDomEvents';
|
|
|
10
10
|
export declare abstract class TagUtil extends TagCache {
|
|
11
11
|
tags: TagInstance[];
|
|
12
12
|
config: Pick<Tags, 'globalConfig' | 'contentTypeConfig'>;
|
|
13
|
-
set workCode(workCode: string);
|
|
14
|
-
get workCode(): string;
|
|
15
|
-
protected get work(): import("@realsee/five").Work;
|
|
16
13
|
protected mediaStore: MediaStore;
|
|
17
14
|
/** css3DRenderPlugin */
|
|
18
15
|
protected css3DRenderPlugin?: CSS3DRenderPluginExportType;
|
|
@@ -27,7 +24,7 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
27
24
|
disposed: boolean;
|
|
28
25
|
};
|
|
29
26
|
protected domEvents: FiveDomEvents;
|
|
30
|
-
private
|
|
27
|
+
private mouseInfo?;
|
|
31
28
|
protected constructor(five: Five);
|
|
32
29
|
getTagById<C extends TagContentType = TagContentType, S extends StickType = StickType>(id: TagId): TagInstance<C, S> | undefined;
|
|
33
30
|
/** 暂停当前标签内进行的所有多媒体 */
|
|
@@ -43,7 +40,6 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
43
40
|
* @description 获取标签当前状态
|
|
44
41
|
*/
|
|
45
42
|
getCurrentVisibleState(tag: TagInstance): boolean;
|
|
46
|
-
protected getObserverPosition: (index: number) => THREE.Vector3;
|
|
47
43
|
protected loadVideoFirstFrame: () => void;
|
|
48
44
|
protected updateTagConfig(): void;
|
|
49
45
|
protected can<T extends Tag>(action: 'show' | 'hide' | 'fold' | 'unfold', paramsTag: T): boolean;
|
|
@@ -56,7 +52,8 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
56
52
|
* @description: 获取距离
|
|
57
53
|
*/
|
|
58
54
|
protected getDistance(tag: TagInstance, fiveState?: Partial<FiveState>): number;
|
|
59
|
-
protected getPositions(tag: TagInstance): [
|
|
55
|
+
protected getPositions(tag: TagInstance): [THREE.Vector3, THREE.Vector3, THREE.Vector3, THREE.Vector3] | [import("../typings").ArrayPosition, import("../typings").ArrayPosition, import("../typings").ArrayPosition, import("../typings").ArrayPosition];
|
|
56
|
+
protected preventWhenMouseDown: () => false | void;
|
|
60
57
|
protected addObjectClickHandler(tag: TagInstance, object: THREE.Object3D | undefined, handler: (event: Event) => any): () => void;
|
|
61
58
|
protected getTagNormal(tag: TagInstance): THREE.Vector3 | undefined;
|
|
62
59
|
protected get filterPointTag(): PointTagInstance[];
|
|
@@ -64,7 +61,6 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
64
61
|
protected get filterImagePlane(): TagInstance<"MediaPlane", "Plane">[];
|
|
65
62
|
protected get filterMediaModel(): TagInstance<"MediaModel", "Model">[];
|
|
66
63
|
protected get filterCSS3DTag(): (TagInstance<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Plane"> | TagInstance<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Model"> | TagInstance<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "3DPoint">)[];
|
|
67
|
-
protected getTransformedPostion(position: Tag['position']): THREE.Vector3 | [THREE.Vector3, THREE.Vector3, THREE.Vector3, THREE.Vector3];
|
|
68
64
|
/**
|
|
69
65
|
* @description 检查是否已经销毁
|
|
70
66
|
* @returns isDisposed; 已经销毁返回 true,否则返回 false
|
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var U = Object.defineProperty, X = Object.defineProperties;
|
|
2
|
+
var q = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var R = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var w = (a,
|
|
6
|
-
for (var e in
|
|
7
|
-
|
|
4
|
+
var K = Object.prototype.hasOwnProperty, Q = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var w = (a, r, e) => r in a ? U(a, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[r] = e, C = (a, r) => {
|
|
6
|
+
for (var e in r || (r = {}))
|
|
7
|
+
K.call(r, e) && w(a, e, r[e]);
|
|
8
8
|
if (R)
|
|
9
|
-
for (var e of R(
|
|
10
|
-
|
|
9
|
+
for (var e of R(r))
|
|
10
|
+
Q.call(r, e) && w(a, e, r[e]);
|
|
11
11
|
return a;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
import { defaultGlobalConfig as
|
|
15
|
-
import { objectAssignDeepExports as
|
|
16
|
-
import * as
|
|
17
|
-
import { DefaultConfig as
|
|
18
|
-
import { anyPositionToVector3 as
|
|
19
|
-
import { planeNormal as
|
|
20
|
-
import { getTagCenterPosition as
|
|
12
|
+
}, B = (a, r) => X(a, q(r));
|
|
13
|
+
var d = (a, r, e) => (w(a, typeof r != "symbol" ? r + "" : r, e), e);
|
|
14
|
+
import { defaultGlobalConfig as Y } from "../typings/tag/TagConfig.js";
|
|
15
|
+
import { objectAssignDeepExports as P } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
16
|
+
import * as Z from "three";
|
|
17
|
+
import { DefaultConfig as ee } from "../tag.config.js";
|
|
18
|
+
import { anyPositionToVector3 as ie, arrayPositionToVector3 as E } from "../../shared-utils/positionToVector3.js";
|
|
19
|
+
import { planeNormal as W } from "../utils/planeNormal.js";
|
|
20
|
+
import { getTagCenterPosition as N } from "../utils/tagPosition.js";
|
|
21
21
|
import { normalPositionToPositions as te } from "../utils/normalPositionToPositions.js";
|
|
22
22
|
import { TagCache as oe } from "./TagCache.js";
|
|
23
|
-
import { writable as
|
|
24
|
-
import { isIOSWX as
|
|
23
|
+
import { writable as ne } from "../../vendor/svelte/store/index.js";
|
|
24
|
+
import { isIOSWX as re } from "../../shared-utils/device.js";
|
|
25
25
|
import { Five as se } from "@realsee/five";
|
|
26
|
-
import { isMediaPlaneTag as fe, isMediaModelTag as
|
|
26
|
+
import { isMediaPlaneTag as fe, isMediaModelTag as G, isPlaneTag as ae, isPoint3DTag as ce } from "../utils/tag/tagCheck.js";
|
|
27
27
|
import { VideoPlane as le } from "../utils/model/mediaPlane.js";
|
|
28
28
|
import { FiveDomEvents as de } from "../../shared-utils/five/FiveDomEvents.js";
|
|
29
|
-
import
|
|
30
|
-
import { isPanoramaLike as
|
|
29
|
+
import _ from "../utils/tag/adaptConfig.js";
|
|
30
|
+
import { isPanoramaLike as j, isModelLike as $ } from "../../shared-utils/five/mode.js";
|
|
31
31
|
import "hammerjs";
|
|
32
32
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
33
33
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
34
34
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
35
|
-
import { entries as
|
|
36
|
-
import { getUrlExt as
|
|
37
|
-
import { transformPosition as O } from "../../shared-utils/five/transformPosition.js";
|
|
35
|
+
import { entries as z } from "../../shared-utils/typescript/entries.js";
|
|
36
|
+
import { getUrlExt as H } from "../../shared-utils/url/getUrl.js";
|
|
38
37
|
import "../../shared-utils/three/centerPoint.js";
|
|
39
38
|
import "../../base/BasePlugin.js";
|
|
40
39
|
import "../../shared-utils/Subscribe.js";
|
|
@@ -60,34 +59,33 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
|
60
59
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
61
60
|
import "../../shared-utils/three/getNormal.js";
|
|
62
61
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
63
|
-
class
|
|
62
|
+
class si extends oe {
|
|
64
63
|
constructor(e) {
|
|
65
64
|
super(e);
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
d(this, "tags", []);
|
|
66
|
+
d(this, "config", ee);
|
|
67
|
+
d(this, "mediaStore", ne({
|
|
69
68
|
currentMediaElement: null
|
|
70
69
|
}));
|
|
71
70
|
/** css3DRenderPlugin */
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
d(this, "css3DRenderPlugin");
|
|
72
|
+
d(this, "store", {
|
|
74
73
|
disposers: [],
|
|
75
74
|
disposed: !1,
|
|
76
75
|
resizeObserverDisposerAdding: !1,
|
|
77
76
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
78
77
|
});
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
const i = (o = this.work) == null ? void 0 : o.observers[e];
|
|
84
|
-
if (i)
|
|
85
|
-
return O(i.position, (t = this.work) == null ? void 0 : t.options.transform);
|
|
78
|
+
d(this, "domEvents", new de(this.five));
|
|
79
|
+
d(this, "mouseInfo");
|
|
80
|
+
d(this, "loadVideoFirstFrame", () => {
|
|
81
|
+
re && this.hooks.emit("loadVideoFirstFrame");
|
|
86
82
|
});
|
|
87
|
-
|
|
88
|
-
|
|
83
|
+
d(this, "preventWhenMouseDown", () => {
|
|
84
|
+
var e;
|
|
85
|
+
if ((e = this.mouseInfo) != null && e.isDown)
|
|
86
|
+
return console.debug("preventWhenMouseDown 2"), !1;
|
|
89
87
|
});
|
|
90
|
-
this.mediaStore.subscribe(({ currentMediaElement: i }) => {
|
|
88
|
+
this.five.on("wantsMoveToPano", this.preventWhenMouseDown), this.five.on("wantsTapGesture", this.preventWhenMouseDown), this.mediaStore.subscribe(({ currentMediaElement: i }) => {
|
|
91
89
|
this.tags.forEach((o) => {
|
|
92
90
|
var t;
|
|
93
91
|
if (o.mediaPlane instanceof le && i !== o.mediaPlane.videoInstance) {
|
|
@@ -96,19 +94,10 @@ class fi extends oe {
|
|
|
96
94
|
o.mediaPlane.pause();
|
|
97
95
|
}
|
|
98
96
|
});
|
|
97
|
+
}), this.store.disposers.push(() => {
|
|
98
|
+
this.five.off("wantsMoveToPano", this.preventWhenMouseDown), this.five.off("wantsTapGesture", this.preventWhenMouseDown);
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
|
-
set workCode(e) {
|
|
102
|
-
this._workCode = e;
|
|
103
|
-
}
|
|
104
|
-
get workCode() {
|
|
105
|
-
var e;
|
|
106
|
-
return (e = this._workCode) != null ? e : this.five.state.workCode;
|
|
107
|
-
}
|
|
108
|
-
get work() {
|
|
109
|
-
var e, i;
|
|
110
|
-
return (i = (e = this.five.works) == null ? void 0 : e.find((o) => o.workCode === this.workCode)) != null ? i : this.five.work;
|
|
111
|
-
}
|
|
112
101
|
getTagById(e) {
|
|
113
102
|
const i = this.tags.find((o) => o.id === e);
|
|
114
103
|
if (!i) {
|
|
@@ -125,9 +114,9 @@ class fi extends oe {
|
|
|
125
114
|
* @description: 获取标签配置
|
|
126
115
|
*/
|
|
127
116
|
getTagConfig(e, i) {
|
|
128
|
-
var
|
|
129
|
-
const o = this.calculateTagConfig(e, i), t = (
|
|
130
|
-
return
|
|
117
|
+
var n, f;
|
|
118
|
+
const o = this.calculateTagConfig(e, i), t = (n = i == null ? void 0 : i.fiveMode) != null ? n : this.five.getCurrentState().mode, s = (f = o.configWithFiveMode) == null ? void 0 : f[t];
|
|
119
|
+
return s != null ? s : o;
|
|
131
120
|
}
|
|
132
121
|
/**
|
|
133
122
|
* @description 获取标签当前状态
|
|
@@ -141,7 +130,7 @@ class fi extends oe {
|
|
|
141
130
|
const i = this.getTagConfig(e, { useCache: !1 });
|
|
142
131
|
if (e.config = i, e.config.initialData) {
|
|
143
132
|
const t = JSON.parse(JSON.stringify(e.data));
|
|
144
|
-
e.data = (o = i.initialData) != null && o.important ?
|
|
133
|
+
e.data = (o = i.initialData) != null && o.important ? P(e.data, t, i.initialData) : P(e.data, i.initialData, t);
|
|
145
134
|
}
|
|
146
135
|
});
|
|
147
136
|
}
|
|
@@ -177,10 +166,10 @@ class fi extends oe {
|
|
|
177
166
|
if (t[0].type === "Video")
|
|
178
167
|
return "Mesh";
|
|
179
168
|
if (t[0].type === "Image")
|
|
180
|
-
return
|
|
169
|
+
return H(t[0].url) === "gif" ? "Dom" : "Mesh";
|
|
181
170
|
}
|
|
182
|
-
} else if (
|
|
183
|
-
return t.length === 1 && t[0].type === "Image" ?
|
|
171
|
+
} else if (G(e))
|
|
172
|
+
return t.length === 1 && t[0].type === "Image" ? H(t[0].url) === "gif" ? "Dom" : "Mesh" : "BehindDom";
|
|
184
173
|
}
|
|
185
174
|
})();
|
|
186
175
|
return i != null ? i : "Dom";
|
|
@@ -189,6 +178,7 @@ class fi extends oe {
|
|
|
189
178
|
* @description: 获取角度
|
|
190
179
|
*/
|
|
191
180
|
getAngle(e, i) {
|
|
181
|
+
var s, n;
|
|
192
182
|
const o = i != null ? i : this.five.getCurrentState().panoIndex;
|
|
193
183
|
if (o === void 0)
|
|
194
184
|
throw new Error(`getAngle(): fivePanoIndex is ${o}`);
|
|
@@ -196,68 +186,69 @@ class fi extends oe {
|
|
|
196
186
|
if (t.angle !== void 0)
|
|
197
187
|
return t.angle;
|
|
198
188
|
{
|
|
199
|
-
const n = this.
|
|
200
|
-
if (
|
|
201
|
-
throw new Error(`getAngle(): observerPosition is ${
|
|
202
|
-
const
|
|
203
|
-
if (!
|
|
189
|
+
const f = (n = (s = this.five.work) == null ? void 0 : s.observers[o]) == null ? void 0 : n.position;
|
|
190
|
+
if (f === void 0)
|
|
191
|
+
throw new Error(`getAngle(): observerPosition is ${f}`);
|
|
192
|
+
const u = (() => e.stickType === "3DPoint" ? ie(e.normal) : W(e.position))();
|
|
193
|
+
if (!u)
|
|
204
194
|
return;
|
|
205
|
-
const
|
|
206
|
-
if (!
|
|
195
|
+
const g = N(e);
|
|
196
|
+
if (!g)
|
|
207
197
|
return;
|
|
208
|
-
const
|
|
209
|
-
return t.angle =
|
|
198
|
+
const l = new Z.Vector3().copy(f).sub(g), T = u.angleTo(l) * 180 / Math.PI;
|
|
199
|
+
return t.angle = T, t.angle;
|
|
210
200
|
}
|
|
211
201
|
}
|
|
212
202
|
/**
|
|
213
203
|
* @description: 获取距离
|
|
214
204
|
*/
|
|
215
205
|
getDistance(e, i) {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
206
|
+
var u, g;
|
|
207
|
+
const o = C(C({}, this.five.getCurrentState()), i), { panoIndex: t, mode: s } = o, n = j(s) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
|
|
208
|
+
if ((n == null ? void 0 : n.distance) !== void 0)
|
|
209
|
+
return n.distance;
|
|
210
|
+
const f = N(e);
|
|
220
211
|
if (!f)
|
|
221
212
|
return -1;
|
|
222
|
-
if (
|
|
223
|
-
const
|
|
224
|
-
if (
|
|
213
|
+
if (j(s)) {
|
|
214
|
+
const l = (g = (u = this.five.work) == null ? void 0 : u.observers[t]) == null ? void 0 : g.position;
|
|
215
|
+
if (l === void 0)
|
|
225
216
|
return -1;
|
|
226
|
-
const
|
|
227
|
-
return
|
|
217
|
+
const T = l.distanceTo(f);
|
|
218
|
+
return n && (n.distance = T), T;
|
|
228
219
|
}
|
|
229
|
-
if (
|
|
220
|
+
if ($(s))
|
|
230
221
|
return this.five.camera.position.distanceTo(f);
|
|
231
222
|
}
|
|
232
223
|
getPositions(e) {
|
|
233
224
|
if (ae(e))
|
|
234
225
|
return e.position;
|
|
235
|
-
if (
|
|
226
|
+
if (G(e))
|
|
236
227
|
return e.data.mediaPosition;
|
|
237
228
|
if (ce(e))
|
|
238
|
-
return te(this.five.camera.position,
|
|
229
|
+
return te(this.five.camera.position, E(e.position), E(e.normal));
|
|
239
230
|
}
|
|
240
231
|
addObjectClickHandler(e, i, o) {
|
|
241
232
|
if (!i || !this.domEvents)
|
|
242
233
|
return () => {
|
|
243
234
|
};
|
|
244
|
-
const t = () => !(!this.getCurrentVisibleState(e) || e.loading),
|
|
235
|
+
const t = () => !(!this.getCurrentVisibleState(e) || e.loading), s = (n) => {
|
|
245
236
|
if (!t())
|
|
246
237
|
return !1;
|
|
247
|
-
o(
|
|
238
|
+
o(n.origDomEvent);
|
|
248
239
|
};
|
|
249
|
-
return this.domEvents.addEventListener(i, "click",
|
|
250
|
-
var
|
|
251
|
-
(
|
|
240
|
+
return this.domEvents.addEventListener(i, "click", s), () => {
|
|
241
|
+
var n;
|
|
242
|
+
(n = this.domEvents) == null || n.removeEventListener(i, "click", s);
|
|
252
243
|
};
|
|
253
244
|
}
|
|
254
245
|
getTagNormal(e) {
|
|
255
246
|
if (e.normal)
|
|
256
|
-
return
|
|
247
|
+
return E(e.normal);
|
|
257
248
|
if (e.stickType === "Plane")
|
|
258
|
-
return
|
|
249
|
+
return W(e.position);
|
|
259
250
|
if (e.stickType === "Model")
|
|
260
|
-
return
|
|
251
|
+
return W(this.getPositions(e));
|
|
261
252
|
}
|
|
262
253
|
// TODO: 优化点:下面这些函数,调用比较频繁,可以按点位加缓存
|
|
263
254
|
get filterPointTag() {
|
|
@@ -282,13 +273,6 @@ class fi extends oe {
|
|
|
282
273
|
return o === "BehindDom" || o === "Dom";
|
|
283
274
|
});
|
|
284
275
|
}
|
|
285
|
-
getTransformedPostion(e) {
|
|
286
|
-
var o;
|
|
287
|
-
if (!e)
|
|
288
|
-
return;
|
|
289
|
-
const i = (o = this.work) == null ? void 0 : o.options.transform;
|
|
290
|
-
return Array.isArray(e) && e.length === 4 ? e.map(C).map((t) => O(t, i)) : O(C(e), i);
|
|
291
|
-
}
|
|
292
276
|
/**
|
|
293
277
|
* @description 检查是否已经销毁
|
|
294
278
|
* @returns isDisposed; 已经销毁返回 true,否则返回 false
|
|
@@ -300,46 +284,46 @@ class fi extends oe {
|
|
|
300
284
|
* @description: 获取merge后的配置
|
|
301
285
|
*/
|
|
302
286
|
calculateTagConfig(e, i) {
|
|
303
|
-
var
|
|
304
|
-
const o = (
|
|
287
|
+
var A, I, S, O;
|
|
288
|
+
const o = (A = i == null ? void 0 : i.useCache) != null ? A : !0;
|
|
305
289
|
if (!e)
|
|
306
|
-
return (
|
|
307
|
-
if (o && ((
|
|
290
|
+
return (I = this.config.globalConfig) != null ? I : {};
|
|
291
|
+
if (o && ((S = e.config) != null && S._isMerged))
|
|
308
292
|
return e.config;
|
|
309
|
-
const t = {},
|
|
310
|
-
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([
|
|
311
|
-
var
|
|
312
|
-
const c =
|
|
313
|
-
if (!
|
|
314
|
-
if (
|
|
315
|
-
const [m] =
|
|
316
|
-
(e.contentType === m || m === "Any") && (
|
|
293
|
+
const t = {}, s = {}, n = {};
|
|
294
|
+
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([p, h]) => {
|
|
295
|
+
var F, L;
|
|
296
|
+
const c = p, k = c.split("-"), V = p.startsWith("["), y = V ? k[0].slice(1, -1) : void 0, v = V ? k.slice(1) : k, M = y ? ["PanoramaLike", "ModelLike"].includes(y) ? (F = s[y]) != null ? F : s[y] = {} : (L = n[y]) != null ? L : n[y] = {} : t;
|
|
297
|
+
if (!M[c]) {
|
|
298
|
+
if (v.length === 0 && (M[c] = h), v.length === 1) {
|
|
299
|
+
const [m] = v;
|
|
300
|
+
(e.contentType === m || m === "Any") && (M[c] = h);
|
|
317
301
|
}
|
|
318
|
-
if (
|
|
319
|
-
const [m = "Any",
|
|
320
|
-
m === "Mixin" && e.contentType ===
|
|
302
|
+
if (v.length === 2) {
|
|
303
|
+
const [m = "Any", b = "Any"] = v;
|
|
304
|
+
m === "Mixin" && e.contentType === b && (M[c] = h), (e.stickType === m || m === "Any") && (e.contentType === b || b === "Any") && (M[c] = h);
|
|
321
305
|
}
|
|
322
|
-
if (
|
|
323
|
-
const [m = "Any",
|
|
324
|
-
if (
|
|
306
|
+
if (v.length === 3) {
|
|
307
|
+
const [m = "Any", b, J] = v;
|
|
308
|
+
if (b === "Audio" && e.contentType === "Audio") {
|
|
325
309
|
const x = e;
|
|
326
|
-
(x.stickType === m || m === "Any") && x.data.appearance ===
|
|
310
|
+
(x.stickType === m || m === "Any") && x.data.appearance === J && (M[c] = h);
|
|
327
311
|
}
|
|
328
312
|
}
|
|
329
313
|
}
|
|
330
314
|
});
|
|
331
|
-
const f = (
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
(
|
|
315
|
+
const f = (O = e.config) != null && O._isMerged ? e.initialConfig : e.config, u = P({}, Y, this.config.globalConfig, ...Object.values(t)), g = P({}, u, f), l = {}, T = Object.values(se.Mode);
|
|
316
|
+
z(s).forEach(([p, h]) => {
|
|
317
|
+
T.forEach((c) => {
|
|
318
|
+
(p === "PanoramaLike" && j(c) || p === "ModelLike" && $(c)) && (l[c] = P({}, u, ...Object.values(h), f));
|
|
335
319
|
});
|
|
336
|
-
}),
|
|
337
|
-
|
|
320
|
+
}), z(n).forEach(([p, h]) => {
|
|
321
|
+
l[p] = P({}, u, ...Object.values(h), f);
|
|
338
322
|
});
|
|
339
|
-
const
|
|
340
|
-
return
|
|
323
|
+
const D = B(C({}, g), { configWithFiveMode: l });
|
|
324
|
+
return _(D, e), Object.values(l).forEach((p) => _(p, e)), D._isMerged = !0, D;
|
|
341
325
|
}
|
|
342
326
|
}
|
|
343
327
|
export {
|
|
344
|
-
|
|
328
|
+
si as TagUtil
|
|
345
329
|
};
|