@realsee/dnalogel 3.5.0-tag-dev.1 → 3.5.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/controller/TagRender.d.ts +2 -2
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +3 -1
- package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +2 -1
- package/dist/PanoTagPlugin/utils/tag/adaptConfig.d.ts +1 -1
- package/dist/index.cjs.js +23 -23
- package/dist/index.js +964 -959
- package/dist/index.umd.js +26 -26
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +2 -2
- package/libs/PanoTagPlugin/controller/TagRender.js +1 -1
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +3 -1
- package/libs/PanoTagPlugin/controller/TagUtil.js +62 -58
- package/libs/PanoTagPlugin/controller/index.js +44 -43
- package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +2 -1
- package/libs/PanoTagPlugin/utils/tag/adaptConfig.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/tag/adaptConfig.js +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
- 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 -726
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -679
- package/docs/classes/CSS3DRender.html +0 -774
- package/docs/classes/CruisePluginController.html +0 -673
- package/docs/classes/GuideLineItem.GuideLineItem.html +0 -477
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -857
- package/docs/classes/Magnifier.html +0 -481
- package/docs/classes/ModelRoomLabelController.html +0 -399
- package/docs/classes/Object3DHelperController.html +0 -641
- package/docs/classes/PaintBrush.html +0 -503
- package/docs/classes/PanoMeasurePluginLine.html +0 -523
- package/docs/classes/PanoMeasurePluginModel.html +0 -572
- package/docs/classes/PanoMeasurePluginPoint.html +0 -363
- package/docs/classes/PanoMeasurePluginPolyline.html +0 -568
- package/docs/classes/PanoTagPluginController.html +0 -1096
- package/docs/classes/Util.BetterTween.html +0 -417
- package/docs/classes/Util.Interval.html +0 -433
- package/docs/classes/Util.LineSegments.html +0 -385
- package/docs/classes/Util.Magnifier.html +0 -504
- package/docs/classes/Util.Object3D.html +0 -407
- package/docs/classes/Util.PointDomHelper.html +0 -408
- package/docs/classes/Util.PointHelper.html +0 -399
- package/docs/classes/Util.PointSelectorHelper.html +0 -455
- package/docs/classes/Util.Rectangle.html +0 -456
- package/docs/enums/CameraMovementEffect.html +0 -311
- package/docs/enums/ContentType.html +0 -457
- package/docs/enums/DIRECTION.html +0 -321
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -321
- package/docs/enums/DimensionType.html +0 -311
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -314
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -321
- package/docs/enums/PaintBrushTypeEnum.html +0 -314
- package/docs/enums/PointType.html +0 -311
- package/docs/enums/Rotation.html +0 -318
- package/docs/functions/AreaMakerPlugin.html +0 -291
- package/docs/functions/CSS3DRenderPlugin.html +0 -289
- package/docs/functions/CameraMovementPlugin.html +0 -294
- package/docs/functions/CruisePlugin.html +0 -291
- package/docs/functions/CurrentPanoImagePlugin.html +0 -291
- package/docs/functions/GuideLinePlugin.html +0 -291
- package/docs/functions/ItemLabelPlugin.html +0 -291
- package/docs/functions/MapviewFloorplanPlugin.html +0 -291
- package/docs/functions/ModelChassisCompassPlugin.html +0 -294
- package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -294
- package/docs/functions/ModelFloorplanPlugin.html +0 -291
- package/docs/functions/ModelItemLabelPlugin.html +0 -291
- package/docs/functions/ModelRoomLabelPlugin.html +0 -289
- package/docs/functions/ModelTVVideoPlugin.html +0 -291
- package/docs/functions/ModelViewPlugin.html +0 -294
- package/docs/functions/Object3DHelperPlugin.html +0 -289
- package/docs/functions/PanoCompassPlugin.html +0 -291
- package/docs/functions/PanoCursorRaycasterPlugin.html +0 -295
- package/docs/functions/PanoDoorLabelPlugin.html +0 -291
- package/docs/functions/PanoFloorplanRadarPlugin.html +0 -291
- package/docs/functions/PanoMeasurePlugin.html +0 -291
- package/docs/functions/PanoRulerPlugin.html +0 -294
- package/docs/functions/PanoRulerProPlugin.html +0 -294
- package/docs/functions/PanoSpatialTagPlugin.html +0 -294
- package/docs/functions/PanoTagPlugin.html +0 -296
- package/docs/functions/PanoVideoPlugin.html +0 -300
- package/docs/functions/PipelinePlugin.html +0 -289
- package/docs/functions/TopviewFloorplanPlugin.html +0 -291
- package/docs/functions/Util.absoluteUrl.html +0 -327
- package/docs/functions/Util.checkFiveModelLoaded.html +0 -330
- package/docs/functions/Util.equal.html +0 -339
- package/docs/functions/Util.getCoordsFromClient.html +0 -329
- package/docs/functions/Util.getCoordsFromElement.html +0 -329
- package/docs/functions/Util.getFrameTime.html +0 -321
- package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -329
- package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -329
- package/docs/functions/Util.isAbsoluteURL.html +0 -322
- package/docs/functions/Util.isModelLike.html +0 -322
- package/docs/functions/Util.isNil.html +0 -330
- package/docs/functions/Util.isPanoramaLike.html +0 -322
- package/docs/functions/Util.nextFrame.html +0 -335
- package/docs/functions/Util.notNil.html +0 -330
- package/docs/functions/Util.requestAnimationFrameInterval.html +0 -351
- package/docs/functions/Util.tweenProgress.html +0 -324
- package/docs/functions/Util.uuid.html +0 -320
- package/docs/functions/pluginFlag.html +0 -289
- package/docs/index.html +0 -355
- package/docs/interfaces/AddTagConfig.html +0 -304
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -330
- package/docs/interfaces/AreaMakerPluginType.Config.html +0 -335
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -621
- package/docs/interfaces/AreaMakerPluginType.Params.html +0 -334
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -384
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -369
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -334
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -327
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -326
- package/docs/interfaces/AreaMakerPluginType.State.html +0 -355
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -450
- package/docs/interfaces/CSS3DRenderPluginState.html +0 -326
- package/docs/interfaces/CameraMovementPluginExportType.html +0 -359
- package/docs/interfaces/CruisePluginTypes.Config.html +0 -360
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -362
- package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -697
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -386
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -422
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -412
- package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -352
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -320
- package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -409
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -383
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -522
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -324
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -316
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -338
- package/docs/interfaces/EventMap.html +0 -543
- package/docs/interfaces/FloorplanBounding.html +0 -333
- package/docs/interfaces/FloorplanData.html +0 -336
- package/docs/interfaces/FloorplanEntrance.html +0 -361
- package/docs/interfaces/FloorplanExtraObject.html +0 -351
- package/docs/interfaces/FloorplanExtraObject3D.html +0 -340
- package/docs/interfaces/FloorplanFloorData.html +0 -329
- package/docs/interfaces/FloorplanImagePosition.html +0 -315
- package/docs/interfaces/FloorplanObserver.html +0 -333
- package/docs/interfaces/FloorplanOutlineItem.html +0 -329
- package/docs/interfaces/FloorplanPosition.html +0 -315
- package/docs/interfaces/FloorplanRoomItem.html +0 -380
- package/docs/interfaces/FloorplanRoomLabelItem.html +0 -321
- package/docs/interfaces/FloorplanServerBounding.html +0 -333
- package/docs/interfaces/FloorplanServerComputedData.html +0 -332
- package/docs/interfaces/FloorplanServerData.html +0 -315
- package/docs/interfaces/FloorplanServerDoorItem.html +0 -332
- package/docs/interfaces/FloorplanServerDoorPosition.html +0 -318
- package/docs/interfaces/FloorplanServerEntrance.html +0 -361
- package/docs/interfaces/FloorplanServerFloorData.html +0 -329
- package/docs/interfaces/FloorplanServerImagePosition.html +0 -315
- package/docs/interfaces/FloorplanServerObserver.html +0 -333
- package/docs/interfaces/FloorplanServerOutlineItem.html +0 -329
- package/docs/interfaces/FloorplanServerPosition.html +0 -315
- package/docs/interfaces/FloorplanServerRoomItem.html +0 -392
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -321
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -324
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -363
- package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -527
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -358
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -349
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -416
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +0 -338
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -348
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -484
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -345
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -484
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -310
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -331
- package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -356
- package/docs/interfaces/GuideLinePluginType.Route.html +0 -372
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -354
- package/docs/interfaces/HelperOffset.html +0 -333
- package/docs/interfaces/ImagePlaneGroup.html +0 -307
- package/docs/interfaces/ItemLabelPluginData.html +0 -304
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -389
- package/docs/interfaces/ItemLabelPluginParametersType.html +0 -325
- package/docs/interfaces/MinMax.html +0 -311
- package/docs/interfaces/ModelChassisCompassPluginData.html +0 -311
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -347
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -311
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -318
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -355
- package/docs/interfaces/ModelItemLabelPluginData.html +0 -304
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -389
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -311
- package/docs/interfaces/ModelRoomLabelPluginData.html +0 -304
- package/docs/interfaces/ModelTVVideoPluginData.html +0 -325
- package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -349
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -304
- package/docs/interfaces/ModelViewPluginExportType.html +0 -417
- package/docs/interfaces/Object3DHelperState.html +0 -318
- package/docs/interfaces/ObjectHelperControllers.html +0 -325
- package/docs/interfaces/PaintBrushAction.html +0 -364
- package/docs/interfaces/PaintBrushConfigs.html +0 -362
- package/docs/interfaces/PaintBrushState.html +0 -346
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -426
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -283
- package/docs/interfaces/PanoMeasureParameterType.html +0 -450
- package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -318
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -315
- package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -311
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -321
- package/docs/interfaces/PanoRulerPluginExportType.html +0 -378
- package/docs/interfaces/PanoRulerPluginOptions.html +0 -327
- package/docs/interfaces/PanoRulerPluginParameterType.html +0 -318
- package/docs/interfaces/PanoRulerProPluginExportType.html +0 -354
- package/docs/interfaces/PanoRulerProPluginOptions.html +0 -324
- package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -311
- package/docs/interfaces/PanoRulerProPluginState.html +0 -318
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -297
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -286
- package/docs/interfaces/PanoSpatialTagPluginData.html +0 -354
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -336
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -432
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -332
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -353
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -339
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -332
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -324
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -342
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -315
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -421
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -315
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -350
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -369
- package/docs/interfaces/Point.html +0 -318
- package/docs/interfaces/Room.html +0 -325
- package/docs/interfaces/RoomInfo.html +0 -311
- package/docs/interfaces/RoomLabel.html +0 -387
- package/docs/interfaces/RoomRules.html +0 -286
- package/docs/interfaces/Rooms.html +0 -286
- package/docs/interfaces/Scissor.html +0 -345
- package/docs/interfaces/State.html +0 -332
- package/docs/interfaces/TagCacheInterface.html +0 -363
- package/docs/interfaces/TagConfig.html +0 -566
- package/docs/interfaces/TagGLTFObjectGroup.html +0 -307
- package/docs/interfaces/TagIconUrl.html +0 -364
- package/docs/interfaces/TagObjectGroup.html +0 -307
- package/docs/interfaces/TagStyle.html +0 -317
- package/docs/interfaces/Tags.html +0 -2821
- package/docs/interfaces/TemporaryState.html +0 -304
- package/docs/interfaces/Util.MagnifierParameter.html +0 -392
- package/docs/interfaces/Util.MouseGroupParameter.html +0 -351
- package/docs/interfaces/Util.PointIntersection.html +0 -366
- package/docs/modules/AreaMakerPluginType.html +0 -324
- package/docs/modules/CruisePluginTypes.html +0 -329
- package/docs/modules/CurrentPanoImagePluginType.html +0 -298
- package/docs/modules/GuideLineItem.html +0 -290
- package/docs/modules/GuideLineModeItem.html +0 -295
- package/docs/modules/GuideLinePluginType.html +0 -351
- package/docs/modules/PanoVideoPluginType.html +0 -302
- package/docs/modules/Util.html +0 -352
- package/docs/modules.html +0 -542
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -332
- package/docs/types/AreaMakerPluginType.PluginData.html +0 -302
- package/docs/types/AreaMakerPluginType.ServerData.html +0 -302
- package/docs/types/ArrayPosition.html +0 -280
- package/docs/types/AudioAppearance.html +0 -280
- package/docs/types/AudioTagTypeConfigKey.html +0 -280
- package/docs/types/CSS3DRenderExportType.html +0 -280
- package/docs/types/CSS3DRenderPluginExportType.html +0 -280
- package/docs/types/CSS3DRenderPluginParameterType.html +0 -280
- package/docs/types/ClassFunctionParameters.html +0 -287
- package/docs/types/Color.html +0 -280
- package/docs/types/ContentTypeConfigKey.html +0 -280
- package/docs/types/ContentTypeConfigKeySplit.html +0 -280
- package/docs/types/ContentTypeMap.html +0 -280
- package/docs/types/Create3DDomContainerReturnType.html +0 -280
- package/docs/types/Create3DElementReturnType.html +0 -280
- package/docs/types/CruisePluginExportType.html +0 -280
- package/docs/types/CruisePluginTypes.CruiseData.html +0 -319
- package/docs/types/CruisePluginTypes.MoveEffect.html +0 -296
- package/docs/types/CurrentPanoImagePluginExportType.html +0 -280
- package/docs/types/DeprecatedMediaPlaneProperty.html +0 -292
- package/docs/types/DeprecatedTagProperty.html +0 -295
- package/docs/types/Direction-1.html +0 -280
- package/docs/types/Direction4.html +0 -280
- package/docs/types/ElementRenderer.html +0 -304
- package/docs/types/FloorplanRuleLabels.html +0 -283
- package/docs/types/FloorplanServerRuleLabels.html +0 -280
- package/docs/types/GuideLinePluginExportType.html +0 -280
- package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -353
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -374
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -307
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -310
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -310
- package/docs/types/GuideLinePluginType.PathItem.html +0 -310
- package/docs/types/GuideLinePluginType.PluginData.html +0 -319
- package/docs/types/HelperEventMap.html +0 -518
- package/docs/types/LoadTagConfig.html +0 -280
- package/docs/types/MapviewFloorplanPluginParameterType.html +0 -280
- package/docs/types/MapviewFloorplanPluginReturnType.html +0 -280
- package/docs/types/MediaData.html +0 -301
- package/docs/types/MediaStore.html +0 -285
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -287
- package/docs/types/ModelFloorplanPluginParameterType.html +0 -280
- package/docs/types/ModelFloorplanPluginReturnType.html +0 -280
- package/docs/types/ModelId.html +0 -280
- package/docs/types/ModelRoomLabelPluginParameters.html +0 -280
- package/docs/types/ModelRoomLabelPluginReturnType.html +0 -280
- package/docs/types/MoveArgs.html +0 -290
- package/docs/types/MoveOpts.html +0 -288
- package/docs/types/Object3DHelperEventMap.html +0 -373
- package/docs/types/ObjectFit.html +0 -280
- package/docs/types/PaintBrushEventMap.html +0 -311
- package/docs/types/PanoCompassPluginData.html +0 -280
- package/docs/types/PanoCompassPluginExportType.html +0 -280
- package/docs/types/PanoCompassPluginParameterType.html +0 -280
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -280
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -280
- package/docs/types/PanoIndex.html +0 -280
- package/docs/types/PanoMeasurePluginEvent.html +0 -280
- package/docs/types/PanoMeasureReturnType.html +0 -280
- package/docs/types/PanoSpatialTagPluginId.html +0 -280
- package/docs/types/PanoTagPluginExportInterface.html +0 -280
- package/docs/types/PanoTagPluginParamsInterface.html +0 -280
- package/docs/types/PanoVideoPluginParameterType.html +0 -280
- package/docs/types/PanoVideoPluginReturnType.html +0 -280
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -288
- package/docs/types/PipelinePluginParameterType.html +0 -280
- package/docs/types/PipelinePluginReturnType.html +0 -280
- package/docs/types/PlaneTag.html +0 -288
- package/docs/types/Point2DTag.html +0 -288
- package/docs/types/Point3DTag.html +0 -288
- package/docs/types/PointTag.html +0 -285
- package/docs/types/PointTagInstance.html +0 -285
- package/docs/types/Position.html +0 -280
- package/docs/types/RotateArgs.html +0 -292
- package/docs/types/RotateOpts.html +0 -288
- package/docs/types/RuleLabelsKey.html +0 -280
- package/docs/types/RuleLabelsValue.html +0 -280
- package/docs/types/StickType.html +0 -280
- package/docs/types/Tag.html +0 -346
- package/docs/types/Tag2D.html +0 -288
- package/docs/types/Tag3D.html +0 -288
- package/docs/types/TagConfigByKey.html +0 -285
- package/docs/types/TagContentType.html +0 -280
- package/docs/types/TagContentTypeMapping.html +0 -280
- package/docs/types/TagDimensionType.html +0 -282
- package/docs/types/TagElement.html +0 -290
- package/docs/types/TagEvents.html +0 -333
- package/docs/types/TagGLTFObject.html +0 -303
- package/docs/types/TagHooks.html +0 -280
- package/docs/types/TagId.html +0 -280
- package/docs/types/TagInstance.html +0 -356
- package/docs/types/TagPointType.html +0 -283
- package/docs/types/TagRendererMap.html +0 -285
- package/docs/types/TopviewFloorplanPluginParameterType.html +0 -280
- package/docs/types/TopviewFloorplanPluginReturnType.html +0 -280
- package/docs/types/WorkCode.html +0 -280
- package/docs/variables/FLOOR_TYPE_MAP.html +0 -290
- package/docs/variables/PLUGIN.html +0 -280
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -283
- package/docs/variables/ROOM_TYPE_MAP.html +0 -290
- package/docs/variables/defaultGlobalConfig.html +0 -280
- package/docs/variables/itemLabelPluginServerParams.html +0 -287
- package/docs/variables/modelItemLabelPluginServerParams.html +0 -287
- package/docs/variables/modelRoomLabelPluginServerParams.html +0 -287
|
@@ -5,9 +5,9 @@ import type { Object3D } from 'three';
|
|
|
5
5
|
import TagContainerSvelte from '../Components/TagContainer.svelte';
|
|
6
6
|
import type { Five } from '@realsee/five';
|
|
7
7
|
export declare abstract class TagRender extends TagComputer {
|
|
8
|
+
rendererMap: TagRendererMap;
|
|
9
|
+
contentTypeMap: TagContentTypeMapping;
|
|
8
10
|
protected group: TagObjectGroup;
|
|
9
|
-
protected rendererMap: TagRendererMap;
|
|
10
|
-
protected contentTypeMap: TagContentTypeMapping;
|
|
11
11
|
protected imagePlaneGroup: ImagePlaneGroup;
|
|
12
12
|
protected gltfObjectGroup: TagGLTFObjectGroup;
|
|
13
13
|
/** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
|
|
@@ -163,9 +163,9 @@ const $ = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map();
|
|
|
163
163
|
class fi extends I {
|
|
164
164
|
constructor(t) {
|
|
165
165
|
super(t);
|
|
166
|
-
h(this, "group", new y());
|
|
167
166
|
h(this, "rendererMap", /* @__PURE__ */ new Map());
|
|
168
167
|
h(this, "contentTypeMap", /* @__PURE__ */ new Map());
|
|
168
|
+
h(this, "group", new y());
|
|
169
169
|
h(this, "imagePlaneGroup", new y());
|
|
170
170
|
h(this, "gltfObjectGroup", new y());
|
|
171
171
|
/** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
|
|
@@ -73,5 +73,7 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
73
73
|
/**
|
|
74
74
|
* @description: 获取merge后的配置
|
|
75
75
|
*/
|
|
76
|
-
|
|
76
|
+
protected calculateTagConfig(tag: Tag | TagInstance, params?: {
|
|
77
|
+
useCache?: boolean;
|
|
78
|
+
}): TagInstance['computedConfig'];
|
|
77
79
|
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var q = Object.defineProperty, K = Object.defineProperties;
|
|
2
|
+
var Q = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var R = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var w = (a, s, e) => s in a ?
|
|
4
|
+
var Y = Object.prototype.hasOwnProperty, Z = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var w = (a, s, e) => s in a ? q(a, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[s] = e, M = (a, s) => {
|
|
6
6
|
for (var e in s || (s = {}))
|
|
7
|
-
|
|
7
|
+
Y.call(s, e) && w(a, e, s[e]);
|
|
8
8
|
if (R)
|
|
9
9
|
for (var e of R(s))
|
|
10
|
-
|
|
10
|
+
Z.call(s, e) && w(a, e, s[e]);
|
|
11
11
|
return a;
|
|
12
|
-
},
|
|
12
|
+
}, B = (a, s) => K(a, Q(s));
|
|
13
13
|
var d = (a, s, e) => (w(a, typeof s != "symbol" ? s + "" : s, e), e);
|
|
14
|
-
import { defaultGlobalConfig as
|
|
14
|
+
import { defaultGlobalConfig as ee } from "../typings/tag/TagConfig.js";
|
|
15
15
|
import { objectAssignDeepExports as y } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
16
|
-
import * as
|
|
17
|
-
import { DefaultConfig as
|
|
16
|
+
import * as ie from "three";
|
|
17
|
+
import { DefaultConfig as te } from "../tag.config.js";
|
|
18
18
|
import { anyPositionToVector3 as C } from "../../shared-utils/positionToVector3.js";
|
|
19
19
|
import { planeNormal as E } from "../utils/planeNormal.js";
|
|
20
|
-
import { getTagCenterPosition as
|
|
21
|
-
import { normalPositionToPositions as
|
|
22
|
-
import { TagCache as
|
|
23
|
-
import { writable as
|
|
24
|
-
import { isIOSWX as
|
|
25
|
-
import { Five as
|
|
26
|
-
import { isMediaPlaneTag as
|
|
27
|
-
import { VideoPlane as
|
|
28
|
-
import { FiveDomEvents as
|
|
29
|
-
import
|
|
30
|
-
import { isPanoramaLike as A, isModelLike as
|
|
20
|
+
import { getTagCenterPosition as N } from "../utils/tagPosition.js";
|
|
21
|
+
import { normalPositionToPositions as oe } from "../utils/normalPositionToPositions.js";
|
|
22
|
+
import { TagCache as re } from "./TagCache.js";
|
|
23
|
+
import { writable as ne } from "../../vendor/svelte/store/index.js";
|
|
24
|
+
import { isIOSWX as se } from "../../shared-utils/device.js";
|
|
25
|
+
import { Five as fe } from "@realsee/five";
|
|
26
|
+
import { isMediaPlaneTag as ae, isMediaModelTag as $, isPlaneTag as ce, isPoint3DTag as le } from "../utils/tag/tagCheck.js";
|
|
27
|
+
import { VideoPlane as de } from "../utils/model/mediaPlane.js";
|
|
28
|
+
import { FiveDomEvents as ue } from "../../shared-utils/five/FiveDomEvents.js";
|
|
29
|
+
import z from "../utils/tag/adaptConfig.js";
|
|
30
|
+
import { isPanoramaLike as A, isModelLike as H } 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
|
|
35
|
+
import { entries as J } from "../../shared-utils/typescript/entries.js";
|
|
36
|
+
import { getUrlExt as U } from "../../shared-utils/url/getUrl.js";
|
|
37
37
|
import { transformPosition as O } from "../../shared-utils/five/transformPosition.js";
|
|
38
38
|
import "../../shared-utils/three/centerPoint.js";
|
|
39
39
|
import "../../base/BasePlugin.js";
|
|
@@ -60,12 +60,12 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
|
60
60
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
61
61
|
import "../../shared-utils/three/getNormal.js";
|
|
62
62
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
63
|
-
class
|
|
63
|
+
class ai extends re {
|
|
64
64
|
constructor(e) {
|
|
65
65
|
super(e);
|
|
66
66
|
d(this, "tags", []);
|
|
67
|
-
d(this, "config",
|
|
68
|
-
d(this, "mediaStore",
|
|
67
|
+
d(this, "config", te);
|
|
68
|
+
d(this, "mediaStore", ne({
|
|
69
69
|
currentMediaElement: null
|
|
70
70
|
}));
|
|
71
71
|
/** css3DRenderPlugin */
|
|
@@ -76,7 +76,7 @@ class fi extends oe {
|
|
|
76
76
|
resizeObserverDisposerAdding: !1,
|
|
77
77
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
78
78
|
});
|
|
79
|
-
d(this, "domEvents", new
|
|
79
|
+
d(this, "domEvents", new ue(this.five));
|
|
80
80
|
d(this, "_workCode");
|
|
81
81
|
d(this, "getObserverPosition", (e) => {
|
|
82
82
|
var o, t;
|
|
@@ -85,12 +85,12 @@ class fi extends oe {
|
|
|
85
85
|
return O(i.position, (t = this.work) == null ? void 0 : t.options.transform);
|
|
86
86
|
});
|
|
87
87
|
d(this, "loadVideoFirstFrame", () => {
|
|
88
|
-
|
|
88
|
+
se && this.hooks.emit("loadVideoFirstFrame");
|
|
89
89
|
});
|
|
90
90
|
this.mediaStore.subscribe(({ currentMediaElement: i }) => {
|
|
91
91
|
this.tags.forEach((o) => {
|
|
92
92
|
var t;
|
|
93
|
-
if (o.mediaPlane instanceof
|
|
93
|
+
if (o.mediaPlane instanceof de && i !== o.mediaPlane.videoInstance) {
|
|
94
94
|
if (!((t = o.mediaPlane.videoInstance) != null && t.src) || i === o.mediaPlane.videoInstance)
|
|
95
95
|
return;
|
|
96
96
|
o.mediaPlane.pause();
|
|
@@ -172,15 +172,15 @@ class fi extends oe {
|
|
|
172
172
|
return;
|
|
173
173
|
const t = e.data.mediaData;
|
|
174
174
|
if (!(!t || t.length === 0) && o.renderType === "Mesh") {
|
|
175
|
-
if (
|
|
175
|
+
if (ae(e)) {
|
|
176
176
|
if (t.length === 1) {
|
|
177
177
|
if (t[0].type === "Video")
|
|
178
178
|
return "Mesh";
|
|
179
179
|
if (t[0].type === "Image")
|
|
180
|
-
return
|
|
180
|
+
return U(t[0].url) === "gif" ? "Dom" : "Mesh";
|
|
181
181
|
}
|
|
182
|
-
} else if (
|
|
183
|
-
return t.length === 1 && t[0].type === "Image" ?
|
|
182
|
+
} else if ($(e))
|
|
183
|
+
return t.length === 1 && t[0].type === "Image" ? U(t[0].url) === "gif" ? "Dom" : "Mesh" : "BehindDom";
|
|
184
184
|
}
|
|
185
185
|
})();
|
|
186
186
|
return i != null ? i : "Dom";
|
|
@@ -202,10 +202,10 @@ class fi extends oe {
|
|
|
202
202
|
const r = (() => e.stickType === "3DPoint" ? C(e.normal) : E(e.position))();
|
|
203
203
|
if (!r)
|
|
204
204
|
return;
|
|
205
|
-
const f =
|
|
205
|
+
const f = N(e);
|
|
206
206
|
if (!f)
|
|
207
207
|
return;
|
|
208
|
-
const c = new
|
|
208
|
+
const c = new ie.Vector3().copy(n).sub(f), g = r.angleTo(c) * 180 / Math.PI;
|
|
209
209
|
return t.angle = g, t.angle;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
@@ -213,10 +213,10 @@ class fi extends oe {
|
|
|
213
213
|
* @description: 获取距离
|
|
214
214
|
*/
|
|
215
215
|
getDistance(e, i) {
|
|
216
|
-
const o =
|
|
216
|
+
const o = M(M({}, this.five.getCurrentState()), i), { panoIndex: t, mode: n } = o, r = A(n) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
|
|
217
217
|
if ((r == null ? void 0 : r.distance) !== void 0)
|
|
218
218
|
return r.distance;
|
|
219
|
-
const f =
|
|
219
|
+
const f = N(e);
|
|
220
220
|
if (!f)
|
|
221
221
|
return -1;
|
|
222
222
|
if (A(n)) {
|
|
@@ -226,16 +226,16 @@ class fi extends oe {
|
|
|
226
226
|
const g = c.distanceTo(f);
|
|
227
227
|
return r && (r.distance = g), g;
|
|
228
228
|
}
|
|
229
|
-
if (
|
|
229
|
+
if (H(n))
|
|
230
230
|
return this.five.camera.position.distanceTo(f);
|
|
231
231
|
}
|
|
232
232
|
getPositions(e) {
|
|
233
|
-
if (
|
|
233
|
+
if (ce(e))
|
|
234
234
|
return e.position;
|
|
235
|
-
if (
|
|
235
|
+
if ($(e))
|
|
236
236
|
return e.data.mediaPosition;
|
|
237
|
-
if (
|
|
238
|
-
return
|
|
237
|
+
if (le(e))
|
|
238
|
+
return oe(this.five.camera.position, C(e.position), C(e.normal));
|
|
239
239
|
}
|
|
240
240
|
addObjectClickHandler(e, i, o) {
|
|
241
241
|
if (!i || !this.domEvents)
|
|
@@ -300,16 +300,20 @@ class fi extends oe {
|
|
|
300
300
|
* @description: 获取merge后的配置
|
|
301
301
|
*/
|
|
302
302
|
calculateTagConfig(e, i) {
|
|
303
|
-
var j, S, I, W;
|
|
303
|
+
var j, S, I, W, F;
|
|
304
304
|
const o = (j = i == null ? void 0 : i.useCache) != null ? j : !0;
|
|
305
305
|
if (!e)
|
|
306
306
|
return (S = this.config.globalConfig) != null ? S : {};
|
|
307
|
-
if (o
|
|
308
|
-
|
|
307
|
+
if (o) {
|
|
308
|
+
if ((I = e == null ? void 0 : e.computedConfig) != null && I._isMerged)
|
|
309
|
+
return e.computedConfig;
|
|
310
|
+
if ((W = e == null ? void 0 : e.config) != null && W._isMerged)
|
|
311
|
+
return e.config;
|
|
312
|
+
}
|
|
309
313
|
const t = {}, n = {}, r = {};
|
|
310
314
|
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([u, p]) => {
|
|
311
|
-
var
|
|
312
|
-
const l = u, D = l.split("-"),
|
|
315
|
+
var L, _;
|
|
316
|
+
const l = u, D = l.split("-"), V = u.startsWith("["), T = V ? D[0].slice(1, -1) : void 0, h = V ? D.slice(1) : D, v = T ? ["PanoramaLike", "ModelLike"].includes(T) ? (L = n[T]) != null ? L : n[T] = {} : (_ = r[T]) != null ? _ : r[T] = {} : t;
|
|
313
317
|
if (!v[l]) {
|
|
314
318
|
if (h.length === 0 && (v[l] = p), h.length === 1) {
|
|
315
319
|
const [m] = h;
|
|
@@ -320,26 +324,26 @@ class fi extends oe {
|
|
|
320
324
|
m === "Mixin" && e.contentType === P && (v[l] = p), (e.stickType === m || m === "Any") && (e.contentType === P || P === "Any") && (v[l] = p);
|
|
321
325
|
}
|
|
322
326
|
if (h.length === 3) {
|
|
323
|
-
const [m = "Any", P,
|
|
327
|
+
const [m = "Any", P, X] = h;
|
|
324
328
|
if (P === "Audio" && e.contentType === "Audio") {
|
|
325
329
|
const x = e;
|
|
326
|
-
(x.stickType === m || m === "Any") && x.data.appearance ===
|
|
330
|
+
(x.stickType === m || m === "Any") && x.data.appearance === X && (v[l] = p);
|
|
327
331
|
}
|
|
328
332
|
}
|
|
329
333
|
}
|
|
330
334
|
});
|
|
331
|
-
const f = (
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
(u === "PanoramaLike" && A(l) || u === "ModelLike" &&
|
|
335
|
+
const f = (F = e.initialConfig) != null ? F : {}, c = y({}, ee, this.config.globalConfig, ...Object.values(t)), g = y({}, c, f), k = {}, G = Object.values(fe.Mode);
|
|
336
|
+
J(n).forEach(([u, p]) => {
|
|
337
|
+
G.forEach((l) => {
|
|
338
|
+
(u === "PanoramaLike" && A(l) || u === "ModelLike" && H(l)) && (k[l] = y({}, c, ...Object.values(p), f, { _isMerged: !0 }));
|
|
335
339
|
});
|
|
336
|
-
}),
|
|
337
|
-
k[u] = y({}, c, ...Object.values(p), f);
|
|
340
|
+
}), J(r).forEach(([u, p]) => {
|
|
341
|
+
k[u] = y({}, c, ...Object.values(p), f, { _isMerged: !0 });
|
|
338
342
|
});
|
|
339
|
-
const
|
|
340
|
-
return
|
|
343
|
+
const b = B(M({}, g), { configWithFiveMode: k });
|
|
344
|
+
return z(b, e), Object.values(k).forEach((u) => z(u, e)), b._isMerged = !0, b;
|
|
341
345
|
}
|
|
342
346
|
}
|
|
343
347
|
export {
|
|
344
|
-
|
|
348
|
+
ai as TagUtil
|
|
345
349
|
};
|
|
@@ -2,7 +2,7 @@ var E = Object.defineProperty, U = Object.defineProperties;
|
|
|
2
2
|
var I = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var A = Object.getOwnPropertySymbols;
|
|
4
4
|
var R = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var u = (d, a, e) => a in d ? E(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e,
|
|
5
|
+
var u = (d, a, e) => a in d ? E(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, g = (d, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
7
|
R.call(a, e) && u(d, e, a[e]);
|
|
8
8
|
if (A)
|
|
@@ -11,7 +11,7 @@ var u = (d, a, e) => a in d ? E(d, a, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return d;
|
|
12
12
|
}, v = (d, a) => U(d, I(a));
|
|
13
13
|
var l = (d, a, e) => (u(d, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
|
-
var
|
|
14
|
+
var c = (d, a, e) => new Promise((t, i) => {
|
|
15
15
|
var s = (r) => {
|
|
16
16
|
try {
|
|
17
17
|
n(e.next(r));
|
|
@@ -29,15 +29,15 @@ var f = (d, a, e) => new Promise((t, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
import * as b from "three";
|
|
31
31
|
import { Subscribe as F } from "@realsee/five";
|
|
32
|
-
import { objectAssignDeepExports as
|
|
32
|
+
import { objectAssignDeepExports as f } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
33
33
|
import { addDebugPoints as M } from "../utils/addDebugPoints.js";
|
|
34
34
|
import { arrayPositionToVector3 as P } from "../../shared-utils/positionToVector3.js";
|
|
35
|
-
import { isMediaModelTag as
|
|
36
|
-
import { debounce as
|
|
35
|
+
import { isMediaModelTag as O, isModelTag as _ } from "../utils/tag/tagCheck.js";
|
|
36
|
+
import { debounce as k } from "../utils/debounce.js";
|
|
37
37
|
import { throttle as V } from "../utils/throttle.js";
|
|
38
38
|
import { resizeObserver as D } from "../utils/resizeObserver.js";
|
|
39
39
|
import L from "../utils/tag/format.js";
|
|
40
|
-
import { generateBlankAudio as
|
|
40
|
+
import { generateBlankAudio as N, AudioNamespace as G } from "../../shared-utils/audio.js";
|
|
41
41
|
import { TagRender as z } from "./TagRender.js";
|
|
42
42
|
import { uuid as x } from "../../shared-utils/uuid.js";
|
|
43
43
|
import { isModelLike as $ } from "../../shared-utils/five/mode.js";
|
|
@@ -46,7 +46,7 @@ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
46
46
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
47
47
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
48
48
|
import { tweenProgress as W } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
49
|
-
import { waitFiveModelLoaded as
|
|
49
|
+
import { waitFiveModelLoaded as J } from "../../shared-utils/five/fiveModelLoad.js";
|
|
50
50
|
import "./TagComputer.js";
|
|
51
51
|
import "../utils/tagPosition.js";
|
|
52
52
|
import "../../shared-utils/three/centerPoint.js";
|
|
@@ -169,8 +169,8 @@ import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
|
169
169
|
import "../../shared-utils/three/GLTFLoader.js";
|
|
170
170
|
import "@realsee/five/gltf-loader";
|
|
171
171
|
import "../../shared-utils/animationFrame/index.js";
|
|
172
|
-
const S = "Dnalogel-PanoTagPlugin",
|
|
173
|
-
class
|
|
172
|
+
const S = "Dnalogel-PanoTagPlugin", Ui = (d) => `${S}--${d}`;
|
|
173
|
+
class Ii extends z {
|
|
174
174
|
constructor(e, t) {
|
|
175
175
|
super(e);
|
|
176
176
|
/** state */
|
|
@@ -180,8 +180,8 @@ class Ui extends z {
|
|
|
180
180
|
/** debug */
|
|
181
181
|
l(this, "debug");
|
|
182
182
|
/** 更改 tag 模型 */
|
|
183
|
-
l(this, "changeTagModel", (e, t) =>
|
|
184
|
-
e.data =
|
|
183
|
+
l(this, "changeTagModel", (e, t) => c(this, null, function* () {
|
|
184
|
+
e.data = f({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
|
|
185
185
|
}));
|
|
186
186
|
l(this, "whyHide", (e) => {
|
|
187
187
|
var i, s, o;
|
|
@@ -205,7 +205,7 @@ class Ui extends z {
|
|
|
205
205
|
l(this, "updateVisible", () => {
|
|
206
206
|
const e = this.five.getCurrentState().mode;
|
|
207
207
|
this.tags.forEach((t) => {
|
|
208
|
-
|
|
208
|
+
O(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
|
|
209
209
|
}), this.setVisible(), this.updateRenderAllTags();
|
|
210
210
|
});
|
|
211
211
|
l(this, "handleFiveWantsMoveToPano", (e) => {
|
|
@@ -244,10 +244,10 @@ class Ui extends z {
|
|
|
244
244
|
l(this, "handleFiveCameraUpdate", () => {
|
|
245
245
|
this.updatePointTagPosition();
|
|
246
246
|
});
|
|
247
|
-
l(this, "handleFivePanoArrived", () =>
|
|
247
|
+
l(this, "handleFivePanoArrived", () => c(this, null, function* () {
|
|
248
248
|
this.setVisible(), this.updatePointTagPosition(), yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
|
|
249
|
-
e.temporaryState = v(
|
|
250
|
-
}), this.tags.filter(
|
|
249
|
+
e.temporaryState = v(g({}, e.temporaryState), { visible: !0 });
|
|
250
|
+
}), this.tags.filter(_).filter((e) => {
|
|
251
251
|
var t;
|
|
252
252
|
return (t = this.getTagConfig(e).modelConfig) == null ? void 0 : t.autoLookAtEnabled;
|
|
253
253
|
}).forEach((e) => {
|
|
@@ -259,8 +259,8 @@ class Ui extends z {
|
|
|
259
259
|
const s = this.five.camera.position;
|
|
260
260
|
t.lookAt(s.clone().setY(t.position.y));
|
|
261
261
|
const o = i.quaternion.clone(), n = t.quaternion.clone(), r = W();
|
|
262
|
-
r.onUpdate(({ progress:
|
|
263
|
-
i.quaternion.copy(o.clone().slerp(n,
|
|
262
|
+
r.onUpdate(({ progress: p }) => {
|
|
263
|
+
i.quaternion.copy(o.clone().slerp(n, p));
|
|
264
264
|
}), r.play();
|
|
265
265
|
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
|
|
266
266
|
}));
|
|
@@ -271,7 +271,7 @@ class Ui extends z {
|
|
|
271
271
|
l(this, "onFiveEveryReady", () => {
|
|
272
272
|
this.setUnfoldedByCamera(), $(this.five.getCurrentState().mode) && (this.setTagZIndex(this.filterPointTag), this.setVisible(), this.setPointTagPosition()), this.updateDomView({ withAnimation: !0 }), this.updateRenderVideoPlane(), this.updateRenderImagePlane(), this.updateTagModelVisible();
|
|
273
273
|
});
|
|
274
|
-
this.params =
|
|
274
|
+
this.params = f({}, { debug: !1, config: this.config }, g({}, t)), this.debug = this.params.debug, this.config = this.params.config, N(1, { namespace: G.PlayAudio });
|
|
275
275
|
try {
|
|
276
276
|
const i = window;
|
|
277
277
|
Array.isArray(i.__PANOTAGPLUGIN_DEBUG_LIST__) || (i.__PANOTAGPLUGIN_DEBUG_LIST__ = []), i.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), i.__PANOTAGPLUGIN_DEBUG__ = this;
|
|
@@ -282,9 +282,9 @@ class Ui extends z {
|
|
|
282
282
|
* @description: 加载数据
|
|
283
283
|
*/
|
|
284
284
|
load(e, t) {
|
|
285
|
-
return
|
|
285
|
+
return c(this, null, function* () {
|
|
286
286
|
var s, o;
|
|
287
|
-
this.clearTags(), console.debug(S, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config =
|
|
287
|
+
this.clearTags(), console.debug(S, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = f({}, this.config, {
|
|
288
288
|
globalConfig: (s = e.globalConfig) != null ? s : {},
|
|
289
289
|
contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
|
|
290
290
|
});
|
|
@@ -302,26 +302,27 @@ class Ui extends z {
|
|
|
302
302
|
* @description: 添加标签
|
|
303
303
|
*/
|
|
304
304
|
addTag(e, t) {
|
|
305
|
-
return
|
|
305
|
+
return c(this, null, function* () {
|
|
306
306
|
const s = (Array.isArray(e) ? e : [e]).filter((o) => o.position).map((o) => {
|
|
307
307
|
var T, y, C;
|
|
308
|
-
const n =
|
|
309
|
-
return o.config =
|
|
308
|
+
const n = JSON.parse(JSON.stringify(o.data)), r = o.config ? JSON.parse(JSON.stringify(o.config)) : void 0, h = this.calculateTagConfig(o), p = this.getTagConfig(o);
|
|
309
|
+
return o.config = p, v(g({}, o), {
|
|
310
310
|
enabled: (T = o.enabled) != null ? T : !0,
|
|
311
311
|
id: (y = o.id) != null ? y : x(),
|
|
312
|
-
data: (C =
|
|
313
|
-
state:
|
|
312
|
+
data: (C = p.initialData) != null && C.important ? f(o.data, n, p.initialData) : f(o.data, p.initialData, n),
|
|
313
|
+
state: g({
|
|
314
314
|
visible: void 0,
|
|
315
315
|
unfolded: !this.can("fold", o)
|
|
316
|
-
},
|
|
316
|
+
}, p.initialState),
|
|
317
317
|
hooks: new F(),
|
|
318
318
|
originPosition: o.position,
|
|
319
319
|
position: (() => {
|
|
320
320
|
const m = this.getTransformedPostion(o.position);
|
|
321
321
|
return Array.isArray(m) ? m.map((w) => w.toArray()) : m.toArray();
|
|
322
322
|
})(),
|
|
323
|
-
initialConfig:
|
|
324
|
-
|
|
323
|
+
initialConfig: r,
|
|
324
|
+
computedConfig: h,
|
|
325
|
+
config: p,
|
|
325
326
|
unfold: () => this.changeUnfoldedById(o.id, !0),
|
|
326
327
|
fold: () => this.changeUnfoldedById(o.id, !1),
|
|
327
328
|
enable: () => this.changeEnabledById(o.id, !0),
|
|
@@ -330,7 +331,7 @@ class Ui extends z {
|
|
|
330
331
|
changeData: (m) => this.changeDataById(o.id, m)
|
|
331
332
|
});
|
|
332
333
|
});
|
|
333
|
-
return s.forEach(L), this.tags.push(...s),
|
|
334
|
+
return s.forEach(L), this.tags.push(...s), J(this.five).then(() => c(this, null, function* () {
|
|
334
335
|
var o, n, r;
|
|
335
336
|
this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.addMediaModelTag(s), this.setVisibleAndUnfolded({ withAnimation: (r = t == null ? void 0 : t.withAnimation) != null ? r : !0 }), this.updatePointTagPosition(), this.updateRenderAllTags();
|
|
336
337
|
}));
|
|
@@ -340,22 +341,22 @@ class Ui extends z {
|
|
|
340
341
|
* @description: 改变配置
|
|
341
342
|
*/
|
|
342
343
|
changeConfig(e, t = !0) {
|
|
343
|
-
t ? this.config =
|
|
344
|
+
t ? this.config = f({}, this.config, e) : this.config = e, this.updateTagConfig(), this.updateRenderAllTags();
|
|
344
345
|
}
|
|
345
346
|
/**
|
|
346
347
|
* @description: 改变全局配置
|
|
347
348
|
*/
|
|
348
349
|
changeGlobalConfig(e, t = !0) {
|
|
349
|
-
t ? this.config.globalConfig =
|
|
350
|
+
t ? this.config.globalConfig = f({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig(), this.updateRenderAllTags();
|
|
350
351
|
}
|
|
351
352
|
/**
|
|
352
353
|
* @description: 改变类型配置
|
|
353
354
|
*/
|
|
354
355
|
changeContentTypeConfig(e, t, i = !0) {
|
|
355
|
-
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] =
|
|
356
|
+
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = f({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.updateTagConfig(), this.updateRenderAllTags();
|
|
356
357
|
}
|
|
357
358
|
show(e) {
|
|
358
|
-
return
|
|
359
|
+
return c(this, null, function* () {
|
|
359
360
|
if (this.checkDisposed())
|
|
360
361
|
return;
|
|
361
362
|
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
@@ -363,7 +364,7 @@ class Ui extends z {
|
|
|
363
364
|
});
|
|
364
365
|
}
|
|
365
366
|
hide(e) {
|
|
366
|
-
return
|
|
367
|
+
return c(this, null, function* () {
|
|
367
368
|
if (this.checkDisposed())
|
|
368
369
|
return;
|
|
369
370
|
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
@@ -385,7 +386,7 @@ class Ui extends z {
|
|
|
385
386
|
setState(e, t) {
|
|
386
387
|
if (this.checkDisposed())
|
|
387
388
|
return;
|
|
388
|
-
const { userAction: i = !0, visibleWithAnimation: s = !1 } = t != null ? t : {}, o =
|
|
389
|
+
const { userAction: i = !0, visibleWithAnimation: s = !1 } = t != null ? t : {}, o = g({}, this.state);
|
|
389
390
|
this.state = Object.assign(this.state, e), this.store.visibleWithAnimation = s, o.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), o.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: i });
|
|
390
391
|
}
|
|
391
392
|
/**
|
|
@@ -428,7 +429,7 @@ class Ui extends z {
|
|
|
428
429
|
changeDataById(e, t, i = !0) {
|
|
429
430
|
const s = this.getTagById(e);
|
|
430
431
|
let o = !1;
|
|
431
|
-
s && (s.data && (o = !0), i ? s.data =
|
|
432
|
+
s && (s.data && (o = !0), i ? s.data = f(s.data, t) : s.data = g(g({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags(), o && s.hooks.emit("dataChanged", s.data));
|
|
432
433
|
}
|
|
433
434
|
/**
|
|
434
435
|
* @description: 改变tag的stickType
|
|
@@ -442,7 +443,7 @@ class Ui extends z {
|
|
|
442
443
|
changeTagById(e, t, i = !0) {
|
|
443
444
|
const s = this.getTagById(e);
|
|
444
445
|
let o = !1;
|
|
445
|
-
t && (t.data && (o = !0), i ?
|
|
446
|
+
t && (t.data && (o = !0), i ? f(s, t) : Object.assign(s, t), s != null && s.tag3DContentSvelte && (t != null && t.normal) && (s.tag3DContentSvelte.currentNormal = P(t.normal)), this.updateRenderAllTags(), this.clearUnusedPanelTag(), o && s.hooks.emit("dataChanged", s.data));
|
|
446
447
|
}
|
|
447
448
|
/**
|
|
448
449
|
* @description: 销毁tag
|
|
@@ -457,7 +458,7 @@ class Ui extends z {
|
|
|
457
458
|
* @description: 设置 visible 和 unfolded
|
|
458
459
|
*/
|
|
459
460
|
setVisibleAndUnfolded() {
|
|
460
|
-
return
|
|
461
|
+
return c(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
|
|
461
462
|
return this.setVisible(), e ? new Promise((t) => {
|
|
462
463
|
setTimeout(() => {
|
|
463
464
|
this.setUnfoldedByPanoIndex(), t();
|
|
@@ -520,7 +521,7 @@ class Ui extends z {
|
|
|
520
521
|
}, 500),
|
|
521
522
|
e
|
|
522
523
|
), { observe: n, unobserve: r } = D(
|
|
523
|
-
|
|
524
|
+
k(() => t(), 400),
|
|
524
525
|
e
|
|
525
526
|
);
|
|
526
527
|
return s(), n(), () => {
|
|
@@ -539,11 +540,11 @@ class Ui extends z {
|
|
|
539
540
|
}
|
|
540
541
|
changeTagMode(e, t) {
|
|
541
542
|
var i, s, o, n, r, h;
|
|
542
|
-
((i = e.config) == null ? void 0 : i.renderType) !== "Mesh" && ((n = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.css3DInstance) == null ? void 0 : o.css3DObject) == null ? void 0 : n.mode) !== t && ((r = e.config) != null && r.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (h = this.store.css3DRenderDisposer.get(e.id)) == null || h.forEach((
|
|
543
|
+
((i = e.config) == null ? void 0 : i.renderType) !== "Mesh" && ((n = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.css3DInstance) == null ? void 0 : o.css3DObject) == null ? void 0 : n.mode) !== t && ((r = e.config) != null && r.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (h = this.store.css3DRenderDisposer.get(e.id)) == null || h.forEach((p) => p == null ? void 0 : p()), e.tag3DContentSvelte = void 0);
|
|
543
544
|
}
|
|
544
545
|
}
|
|
545
546
|
export {
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
547
|
+
Ii as PanoTagPluginController,
|
|
548
|
+
Ii as default,
|
|
549
|
+
Ui as pluginFlag
|
|
549
550
|
};
|
|
@@ -43,7 +43,8 @@ export type TagInstance<C extends TagContentType = TagContentType, S extends Sti
|
|
|
43
43
|
visible?: boolean;
|
|
44
44
|
unfolded: boolean;
|
|
45
45
|
};
|
|
46
|
-
config: TagConfig<C
|
|
46
|
+
config: TagConfig<C>;
|
|
47
|
+
computedConfig: TagConfig<C> & {
|
|
47
48
|
configWithFiveMode?: {
|
|
48
49
|
[key in Mode]?: TagConfig<C>;
|
|
49
50
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Tag, TagConfig } from '../..';
|
|
2
|
-
export default function adaptConfig(config: TagConfig, tag?: Tag):
|
|
2
|
+
export default function adaptConfig(config: TagConfig, tag?: Tag): TagConfig<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown">;
|
|
@@ -2,7 +2,7 @@ function v(e, l) {
|
|
|
2
2
|
var d, f, o, s, b;
|
|
3
3
|
typeof e.visibleConfig == "object" && (e.visibleConfig.visibleFiveMode = (o = (f = e.visibleConfig.visibleFiveMode) != null ? f : (d = l == null ? void 0 : l.fiveState) == null ? void 0 : d.mode) != null ? o : "Panorama", e.visibleConfig.keep && (e.visibleConfig.keep === "visible" ? e.visibleConfig = { keep: e.visibleConfig.keep, visibleFiveMode: (s = e.visibleConfig) == null ? void 0 : s.visibleFiveMode } : e.visibleConfig.keep === "hidden" && (e.visibleConfig = { keep: e.visibleConfig.keep }))), typeof e.unfoldedConfig == "object" && (e.unfoldedConfig.disableFold && (e.unfoldedConfig = { keep: "unfolded" }), e.unfoldedConfig.disableUnfold && (e.unfoldedConfig = { keep: "folded" }), e.unfoldedConfig.keep && (e.unfoldedConfig = { keep: e.unfoldedConfig.keep }));
|
|
4
4
|
const i = (b = e.initialState) != null ? b : {};
|
|
5
|
-
typeof e.unfoldedConfig == "object" && (e.unfoldedConfig.keep === "unfolded" ? i.unfolded = !0 : e.unfoldedConfig.keep === "folded" && (i.unfolded = !1)), typeof e.visibleConfig == "object" && (e.visibleConfig.keep === "visible" ? i.visible = !0 : e.visibleConfig.keep === "hidden" && (i.visible = !1)), e.initialState = i;
|
|
5
|
+
return typeof e.unfoldedConfig == "object" && (e.unfoldedConfig.keep === "unfolded" ? i.unfolded = !0 : e.unfoldedConfig.keep === "folded" && (i.unfolded = !1)), typeof e.visibleConfig == "object" && (e.visibleConfig.keep === "visible" ? i.visible = !0 : e.visibleConfig.keep === "hidden" && (i.visible = !1)), e.initialState = i, e;
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
8
|
v as default
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.5.0
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.5.0",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "3.5.0
|
|
10
|
+
"version": "3.5.0",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|
package/docs/.nojekyll
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|