@realsee/dnalogel 3.2.0-dev.8 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/GuideLinePlugin/GuideLineItem.d.ts +0 -1
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +10 -1
- package/dist/GuideLinePlugin/typing.d.ts +6 -1
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +4 -8
- package/dist/PanoTagPlugin/controller/index.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +0 -1
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -2
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +3 -2
- package/dist/index.cjs.js +54 -54
- package/dist/index.js +3071 -3056
- 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 +124 -86
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +10 -1
- package/libs/GuideLinePlugin/GuideLineModeItem.js +2 -3
- package/libs/GuideLinePlugin/index.js +7 -8
- package/libs/GuideLinePlugin/typing.d.ts +6 -1
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +26 -26
- package/libs/PanoTagPlugin/controller/TagComputer.js +95 -89
- package/libs/PanoTagPlugin/controller/TagRender.js +81 -81
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +4 -8
- package/libs/PanoTagPlugin/controller/TagUtil.js +107 -123
- package/libs/PanoTagPlugin/controller/index.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/index.js +36 -41
- package/libs/PanoTagPlugin/index.js +11 -12
- package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +0 -1
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -2
- package/libs/PanoTagPlugin/utils/tagPosition.d.ts +3 -2
- package/libs/PanoTagPlugin/utils/tagPosition.js +15 -15
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +116 -117
- package/libs/shared-utils/five/getFloorIndex.d.ts +8 -2
- package/libs/shared-utils/five/getFloorIndex.js +12 -16
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
- package/dist/shared-utils/five/transformPosition.d.ts +0 -2
- package/docs/.nojekyll +0 -1
- package/docs/assets/highlight.css +0 -120
- package/docs/assets/main.js +0 -58
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1367
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -725
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -678
- package/docs/classes/CSS3DRender.html +0 -773
- package/docs/classes/CruisePluginController.html +0 -672
- package/docs/classes/GuideLineItem.GuideLineItem.html +0 -491
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -792
- package/docs/classes/Magnifier.html +0 -480
- package/docs/classes/ModelRoomLabelController.html +0 -398
- package/docs/classes/Object3DHelperController.html +0 -640
- package/docs/classes/PaintBrush.html +0 -502
- package/docs/classes/PanoMeasurePluginLine.html +0 -522
- package/docs/classes/PanoMeasurePluginModel.html +0 -571
- package/docs/classes/PanoMeasurePluginPoint.html +0 -362
- package/docs/classes/PanoMeasurePluginPolyline.html +0 -567
- package/docs/classes/PanoTagPluginController.html +0 -1077
- package/docs/classes/Util.BetterTween.html +0 -416
- package/docs/classes/Util.Interval.html +0 -432
- package/docs/classes/Util.LineSegments.html +0 -384
- package/docs/classes/Util.Magnifier.html +0 -503
- package/docs/classes/Util.Object3D.html +0 -406
- package/docs/classes/Util.PointDomHelper.html +0 -407
- package/docs/classes/Util.PointHelper.html +0 -398
- package/docs/classes/Util.PointSelectorHelper.html +0 -454
- package/docs/classes/Util.Rectangle.html +0 -455
- package/docs/enums/CameraMovementEffect.html +0 -310
- package/docs/enums/ContentType.html +0 -446
- package/docs/enums/DIRECTION.html +0 -320
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -320
- package/docs/enums/DimensionType.html +0 -310
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -313
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -320
- package/docs/enums/PaintBrushTypeEnum.html +0 -313
- package/docs/enums/PointType.html +0 -310
- package/docs/enums/Rotation.html +0 -317
- package/docs/functions/AreaMakerPlugin.html +0 -290
- package/docs/functions/CSS3DRenderPlugin.html +0 -288
- package/docs/functions/CameraMovementPlugin.html +0 -293
- package/docs/functions/CruisePlugin.html +0 -290
- package/docs/functions/CurrentPanoImagePlugin.html +0 -290
- package/docs/functions/GuideLinePlugin.html +0 -290
- package/docs/functions/ItemLabelPlugin.html +0 -290
- package/docs/functions/MapviewFloorplanPlugin.html +0 -290
- package/docs/functions/ModelChassisCompassPlugin.html +0 -293
- package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -293
- package/docs/functions/ModelFloorplanPlugin.html +0 -290
- package/docs/functions/ModelItemLabelPlugin.html +0 -290
- package/docs/functions/ModelRoomLabelPlugin.html +0 -288
- package/docs/functions/ModelTVVideoPlugin.html +0 -290
- package/docs/functions/ModelViewPlugin.html +0 -293
- package/docs/functions/Object3DHelperPlugin.html +0 -288
- package/docs/functions/PanoCompassPlugin.html +0 -290
- package/docs/functions/PanoCursorRaycasterPlugin.html +0 -294
- package/docs/functions/PanoDoorLabelPlugin.html +0 -290
- package/docs/functions/PanoFloorplanRadarPlugin.html +0 -290
- package/docs/functions/PanoMeasurePlugin.html +0 -290
- package/docs/functions/PanoRulerPlugin.html +0 -293
- package/docs/functions/PanoRulerProPlugin.html +0 -293
- package/docs/functions/PanoSpatialTagPlugin.html +0 -293
- package/docs/functions/PanoTagPlugin.html +0 -295
- package/docs/functions/PanoVideoPlugin.html +0 -299
- package/docs/functions/PipelinePlugin.html +0 -288
- package/docs/functions/TopviewFloorplanPlugin.html +0 -290
- package/docs/functions/Util.absoluteUrl.html +0 -326
- package/docs/functions/Util.checkFiveModelLoaded.html +0 -329
- package/docs/functions/Util.equal.html +0 -338
- package/docs/functions/Util.getCoordsFromClient.html +0 -328
- package/docs/functions/Util.getCoordsFromElement.html +0 -328
- package/docs/functions/Util.getFrameTime.html +0 -320
- package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -328
- package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -328
- package/docs/functions/Util.isAbsoluteURL.html +0 -321
- package/docs/functions/Util.isModelLike.html +0 -321
- package/docs/functions/Util.isNil.html +0 -329
- package/docs/functions/Util.isPanoramaLike.html +0 -321
- package/docs/functions/Util.nextFrame.html +0 -334
- package/docs/functions/Util.notNil.html +0 -329
- package/docs/functions/Util.requestAnimationFrameInterval.html +0 -350
- package/docs/functions/Util.tweenProgress.html +0 -323
- package/docs/functions/Util.uuid.html +0 -319
- package/docs/functions/pluginFlag.html +0 -288
- package/docs/index.html +0 -354
- package/docs/interfaces/AddTagConfig.html +0 -303
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -329
- package/docs/interfaces/AreaMakerPluginType.Config.html +0 -334
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -620
- package/docs/interfaces/AreaMakerPluginType.Params.html +0 -333
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -383
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -368
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -333
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -326
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -325
- package/docs/interfaces/AreaMakerPluginType.State.html +0 -354
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -449
- package/docs/interfaces/CSS3DRenderPluginState.html +0 -325
- package/docs/interfaces/CameraMovementPluginExportType.html +0 -358
- package/docs/interfaces/CruisePluginTypes.Config.html +0 -359
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -361
- package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -696
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -385
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -421
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -411
- package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -351
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -319
- package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -408
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -382
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -521
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -323
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -315
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -337
- package/docs/interfaces/EventMap.html +0 -542
- package/docs/interfaces/FloorplanBounding.html +0 -332
- package/docs/interfaces/FloorplanData.html +0 -335
- package/docs/interfaces/FloorplanEntrance.html +0 -360
- package/docs/interfaces/FloorplanExtraObject.html +0 -350
- package/docs/interfaces/FloorplanExtraObject3D.html +0 -339
- package/docs/interfaces/FloorplanFloorData.html +0 -328
- package/docs/interfaces/FloorplanImagePosition.html +0 -314
- package/docs/interfaces/FloorplanObserver.html +0 -332
- package/docs/interfaces/FloorplanOutlineItem.html +0 -328
- package/docs/interfaces/FloorplanPosition.html +0 -314
- package/docs/interfaces/FloorplanRoomItem.html +0 -379
- package/docs/interfaces/FloorplanRoomLabelItem.html +0 -320
- package/docs/interfaces/FloorplanServerBounding.html +0 -332
- package/docs/interfaces/FloorplanServerComputedData.html +0 -331
- package/docs/interfaces/FloorplanServerData.html +0 -314
- package/docs/interfaces/FloorplanServerDoorItem.html +0 -331
- package/docs/interfaces/FloorplanServerDoorPosition.html +0 -317
- package/docs/interfaces/FloorplanServerEntrance.html +0 -360
- package/docs/interfaces/FloorplanServerFloorData.html +0 -328
- package/docs/interfaces/FloorplanServerImagePosition.html +0 -314
- package/docs/interfaces/FloorplanServerObserver.html +0 -332
- package/docs/interfaces/FloorplanServerOutlineItem.html +0 -328
- package/docs/interfaces/FloorplanServerPosition.html +0 -314
- package/docs/interfaces/FloorplanServerRoomItem.html +0 -391
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -320
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -323
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -361
- package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -525
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -356
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -347
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -414
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -346
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -471
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -343
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -471
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -308
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -329
- package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -354
- package/docs/interfaces/GuideLinePluginType.Route.html +0 -370
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -352
- package/docs/interfaces/HelperOffset.html +0 -332
- package/docs/interfaces/ImagePlaneGroup.html +0 -306
- package/docs/interfaces/ItemLabelPluginData.html +0 -303
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -388
- package/docs/interfaces/ItemLabelPluginParametersType.html +0 -324
- package/docs/interfaces/MinMax.html +0 -310
- package/docs/interfaces/ModelChassisCompassPluginData.html +0 -310
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -346
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -310
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -317
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -354
- package/docs/interfaces/ModelItemLabelPluginData.html +0 -303
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -388
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -310
- package/docs/interfaces/ModelRoomLabelPluginData.html +0 -303
- package/docs/interfaces/ModelTVVideoPluginData.html +0 -324
- package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -348
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -303
- package/docs/interfaces/ModelViewPluginExportType.html +0 -416
- package/docs/interfaces/Object3DHelperState.html +0 -317
- package/docs/interfaces/ObjectHelperControllers.html +0 -324
- package/docs/interfaces/PaintBrushAction.html +0 -363
- package/docs/interfaces/PaintBrushConfigs.html +0 -361
- package/docs/interfaces/PaintBrushState.html +0 -345
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -425
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -282
- package/docs/interfaces/PanoMeasureParameterType.html +0 -449
- package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -317
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -314
- package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -310
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -320
- package/docs/interfaces/PanoRulerPluginExportType.html +0 -377
- package/docs/interfaces/PanoRulerPluginOptions.html +0 -326
- package/docs/interfaces/PanoRulerPluginParameterType.html +0 -317
- package/docs/interfaces/PanoRulerProPluginExportType.html +0 -353
- package/docs/interfaces/PanoRulerProPluginOptions.html +0 -323
- package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -310
- package/docs/interfaces/PanoRulerProPluginState.html +0 -317
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -296
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -285
- package/docs/interfaces/PanoSpatialTagPluginData.html +0 -353
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -335
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -431
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -331
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -352
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -338
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -331
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -323
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -341
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -314
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -420
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -314
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -349
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -368
- package/docs/interfaces/Point.html +0 -317
- package/docs/interfaces/Room.html +0 -324
- package/docs/interfaces/RoomInfo.html +0 -310
- package/docs/interfaces/RoomLabel.html +0 -386
- package/docs/interfaces/RoomRules.html +0 -285
- package/docs/interfaces/Rooms.html +0 -285
- package/docs/interfaces/Scissor.html +0 -344
- package/docs/interfaces/State.html +0 -331
- package/docs/interfaces/TagCacheInterface.html +0 -362
- package/docs/interfaces/TagConfig.html +0 -565
- package/docs/interfaces/TagGLTFObjectGroup.html +0 -306
- package/docs/interfaces/TagIconUrl.html +0 -363
- package/docs/interfaces/TagObjectGroup.html +0 -306
- package/docs/interfaces/TagStyle.html +0 -316
- package/docs/interfaces/Tags.html +0 -2688
- package/docs/interfaces/TemporaryState.html +0 -303
- package/docs/interfaces/Util.MagnifierParameter.html +0 -391
- package/docs/interfaces/Util.MouseGroupParameter.html +0 -350
- package/docs/interfaces/Util.PointIntersection.html +0 -365
- package/docs/modules/AreaMakerPluginType.html +0 -323
- package/docs/modules/CruisePluginTypes.html +0 -328
- package/docs/modules/CurrentPanoImagePluginType.html +0 -297
- package/docs/modules/GuideLineItem.html +0 -289
- package/docs/modules/GuideLineModeItem.html +0 -294
- package/docs/modules/GuideLinePluginType.html +0 -348
- package/docs/modules/PanoVideoPluginType.html +0 -301
- package/docs/modules/Util.html +0 -351
- package/docs/modules.html +0 -540
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -331
- package/docs/types/AreaMakerPluginType.PluginData.html +0 -301
- package/docs/types/AreaMakerPluginType.ServerData.html +0 -301
- package/docs/types/ArrayPosition.html +0 -279
- package/docs/types/AudioAppearance.html +0 -279
- package/docs/types/AudioTagTypeConfigKey.html +0 -279
- package/docs/types/CSS3DRenderExportType.html +0 -279
- package/docs/types/CSS3DRenderPluginExportType.html +0 -279
- package/docs/types/CSS3DRenderPluginParameterType.html +0 -279
- package/docs/types/ClassFunctionParameters.html +0 -286
- package/docs/types/Color.html +0 -279
- package/docs/types/ContentTypeConfigKey.html +0 -279
- package/docs/types/ContentTypeConfigKeySplit.html +0 -279
- package/docs/types/ContentTypeMap.html +0 -279
- package/docs/types/Create3DDomContainerReturnType.html +0 -279
- package/docs/types/Create3DElementReturnType.html +0 -279
- package/docs/types/CruisePluginExportType.html +0 -279
- package/docs/types/CruisePluginTypes.CruiseData.html +0 -318
- package/docs/types/CruisePluginTypes.MoveEffect.html +0 -295
- package/docs/types/CurrentPanoImagePluginExportType.html +0 -279
- package/docs/types/DeprecatedMediaPlaneProperty.html +0 -291
- package/docs/types/DeprecatedTagProperty.html +0 -294
- package/docs/types/Direction-1.html +0 -279
- package/docs/types/Direction4.html +0 -279
- package/docs/types/ElementRenderer.html +0 -303
- package/docs/types/FloorplanRuleLabels.html +0 -282
- package/docs/types/FloorplanServerRuleLabels.html +0 -279
- package/docs/types/GuideLinePluginExportType.html +0 -279
- package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -351
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -372
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -305
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -308
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -308
- package/docs/types/GuideLinePluginType.PathItem.html +0 -308
- package/docs/types/GuideLinePluginType.PluginData.html +0 -317
- package/docs/types/HelperEventMap.html +0 -517
- package/docs/types/LoadTagConfig.html +0 -279
- package/docs/types/MapviewFloorplanPluginParameterType.html +0 -279
- package/docs/types/MapviewFloorplanPluginReturnType.html +0 -279
- package/docs/types/MediaData.html +0 -295
- package/docs/types/MediaStore.html +0 -284
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -286
- package/docs/types/ModelFloorplanPluginParameterType.html +0 -279
- package/docs/types/ModelFloorplanPluginReturnType.html +0 -279
- package/docs/types/ModelId.html +0 -279
- package/docs/types/ModelRoomLabelPluginParameters.html +0 -279
- package/docs/types/ModelRoomLabelPluginReturnType.html +0 -279
- package/docs/types/MoveArgs.html +0 -289
- package/docs/types/MoveOpts.html +0 -287
- package/docs/types/Object3DHelperEventMap.html +0 -372
- package/docs/types/ObjectFit.html +0 -279
- package/docs/types/PaintBrushEventMap.html +0 -310
- package/docs/types/PanoCompassPluginData.html +0 -279
- package/docs/types/PanoCompassPluginExportType.html +0 -279
- package/docs/types/PanoCompassPluginParameterType.html +0 -279
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -279
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -279
- package/docs/types/PanoIndex.html +0 -279
- package/docs/types/PanoMeasurePluginEvent.html +0 -279
- package/docs/types/PanoMeasureReturnType.html +0 -279
- package/docs/types/PanoSpatialTagPluginId.html +0 -279
- package/docs/types/PanoTagPluginExportInterface.html +0 -279
- package/docs/types/PanoTagPluginParamsInterface.html +0 -279
- package/docs/types/PanoVideoPluginParameterType.html +0 -279
- package/docs/types/PanoVideoPluginReturnType.html +0 -279
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -287
- package/docs/types/PipelinePluginParameterType.html +0 -279
- package/docs/types/PipelinePluginReturnType.html +0 -279
- package/docs/types/PlaneTag.html +0 -287
- package/docs/types/Point2DTag.html +0 -287
- package/docs/types/Point3DTag.html +0 -287
- package/docs/types/PointTag.html +0 -284
- package/docs/types/PointTagInstance.html +0 -284
- package/docs/types/Position.html +0 -279
- package/docs/types/RotateArgs.html +0 -291
- package/docs/types/RotateOpts.html +0 -287
- package/docs/types/RuleLabelsKey.html +0 -279
- package/docs/types/RuleLabelsValue.html +0 -279
- package/docs/types/StickType.html +0 -279
- package/docs/types/Tag.html +0 -345
- package/docs/types/Tag2D.html +0 -287
- package/docs/types/Tag3D.html +0 -287
- package/docs/types/TagConfigByKey.html +0 -284
- package/docs/types/TagContentType.html +0 -279
- package/docs/types/TagDimensionType.html +0 -281
- package/docs/types/TagElement.html +0 -289
- package/docs/types/TagEvents.html +0 -332
- package/docs/types/TagGLTFObject.html +0 -302
- package/docs/types/TagHooks.html +0 -279
- package/docs/types/TagId.html +0 -279
- package/docs/types/TagInstance.html +0 -355
- package/docs/types/TagPointType.html +0 -282
- package/docs/types/TagRendererMap.html +0 -284
- package/docs/types/TopviewFloorplanPluginParameterType.html +0 -279
- package/docs/types/TopviewFloorplanPluginReturnType.html +0 -279
- package/docs/types/WorkCode.html +0 -279
- package/docs/variables/FLOOR_TYPE_MAP.html +0 -289
- package/docs/variables/PLUGIN.html +0 -279
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -282
- package/docs/variables/ROOM_TYPE_MAP.html +0 -289
- package/docs/variables/defaultGlobalConfig.html +0 -279
- package/docs/variables/itemLabelPluginServerParams.html +0 -286
- package/docs/variables/modelItemLabelPluginServerParams.html +0 -286
- package/docs/variables/modelRoomLabelPluginServerParams.html +0 -286
- package/libs/shared-utils/five/transformPosition.d.ts +0 -2
- package/libs/shared-utils/five/transformPosition.js +0 -10
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var w = Object.defineProperty, E = Object.defineProperties;
|
|
2
2
|
var U = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var C = Object.getOwnPropertySymbols;
|
|
4
|
-
var I = Object.prototype.hasOwnProperty,
|
|
4
|
+
var I = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var m = (d, a, e) => a in d ? w(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, c = (d, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
7
|
I.call(a, e) && m(d, e, a[e]);
|
|
8
8
|
if (C)
|
|
9
9
|
for (var e of C(a))
|
|
10
|
-
|
|
10
|
+
B.call(a, e) && m(d, e, a[e]);
|
|
11
11
|
return d;
|
|
12
12
|
}, u = (d, a) => E(d, U(a));
|
|
13
13
|
var l = (d, a, e) => (m(d, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
|
-
var
|
|
14
|
+
var p = (d, a, e) => new Promise((t, i) => {
|
|
15
15
|
var s = (r) => {
|
|
16
16
|
try {
|
|
17
17
|
n(e.next(r));
|
|
@@ -28,11 +28,11 @@ var f = (d, a, e) => new Promise((t, i) => {
|
|
|
28
28
|
n((e = e.apply(d, a)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as v from "three";
|
|
31
|
-
import { Subscribe as
|
|
32
|
-
import { objectAssignDeepExports as
|
|
33
|
-
import { addDebugPoints as
|
|
31
|
+
import { Subscribe as F } from "@realsee/five";
|
|
32
|
+
import { objectAssignDeepExports as f } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
33
|
+
import { addDebugPoints as M } from "../utils/addDebugPoints.js";
|
|
34
34
|
import { arrayPositionToVector3 as A } from "../../shared-utils/positionToVector3.js";
|
|
35
|
-
import { isMediaModelTag as
|
|
35
|
+
import { isMediaModelTag as R, isModelTag as _ } from "../utils/tag/tagCheck.js";
|
|
36
36
|
import { debounce as k } from "../utils/debounce.js";
|
|
37
37
|
import { throttle as O } from "../utils/throttle.js";
|
|
38
38
|
import { resizeObserver as D } from "../utils/resizeObserver.js";
|
|
@@ -89,7 +89,6 @@ import "../../shared-utils/five/calculateThreeMouse.js";
|
|
|
89
89
|
import "../utils/tag/adaptConfig.js";
|
|
90
90
|
import "../../shared-utils/typescript/entries.js";
|
|
91
91
|
import "../../shared-utils/url/getUrl.js";
|
|
92
|
-
import "../../shared-utils/five/transformPosition.js";
|
|
93
92
|
import "../../shared-utils/five/getFloorIndex.js";
|
|
94
93
|
import "../../shared-utils/safeObj.js";
|
|
95
94
|
import "../Components/TagContainer.js";
|
|
@@ -168,8 +167,8 @@ import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
|
168
167
|
import "../../shared-utils/three/GLTFLoader.js";
|
|
169
168
|
import "@realsee/five/gltf-loader";
|
|
170
169
|
import "../../shared-utils/animationFrame/index.js";
|
|
171
|
-
const P = "Dnalogel-PanoTagPlugin",
|
|
172
|
-
class
|
|
170
|
+
const P = "Dnalogel-PanoTagPlugin", Di = (d) => `${P}--${d}`;
|
|
171
|
+
class Pi extends N {
|
|
173
172
|
constructor(e, t) {
|
|
174
173
|
super(e);
|
|
175
174
|
/** state */
|
|
@@ -179,8 +178,8 @@ class Si extends N {
|
|
|
179
178
|
/** debug */
|
|
180
179
|
l(this, "debug");
|
|
181
180
|
/** 更改 tag 模型 */
|
|
182
|
-
l(this, "changeTagModel", (e, t) =>
|
|
183
|
-
e.data =
|
|
181
|
+
l(this, "changeTagModel", (e, t) => p(this, null, function* () {
|
|
182
|
+
e.data = f({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
|
|
184
183
|
}));
|
|
185
184
|
l(this, "whyHide", (e) => {
|
|
186
185
|
var i, s, o;
|
|
@@ -193,18 +192,16 @@ class Si extends N {
|
|
|
193
192
|
return { reason: `tag ${e} not found` };
|
|
194
193
|
if (!t.enabled)
|
|
195
194
|
return { reason: `tag ${e} enabled is ${t.enabled}` };
|
|
196
|
-
if (t.stickType === "Model" || t.stickType === "Plane")
|
|
197
|
-
return { reason: "maybe blocked by the five model" };
|
|
198
195
|
if (!t.state.visible) {
|
|
199
196
|
const n = (s = (i = this.getPanoIndexCache({ panoIndex: this.five.panoIndex, id: e })) == null ? void 0 : i.__debug_visible_reason__) == null ? void 0 : s.reason;
|
|
200
|
-
return { reason: (o = n
|
|
197
|
+
return { reason: (o = n.type) != null ? o : n, reasonObj: n };
|
|
201
198
|
}
|
|
202
|
-
return { reason: "check your eyes" };
|
|
199
|
+
return t.stickType === "Model" || t.stickType === "Plane" ? { reason: "maybe blocked by the five model" } : { reason: "check your eyes" };
|
|
203
200
|
});
|
|
204
201
|
l(this, "updateVisible", () => {
|
|
205
202
|
const e = this.five.getCurrentState().mode;
|
|
206
203
|
this.tags.forEach((t) => {
|
|
207
|
-
|
|
204
|
+
R(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
|
|
208
205
|
}), this.setVisible(), this.updateRenderAllTags();
|
|
209
206
|
});
|
|
210
207
|
l(this, "handleFiveWantsMoveToPano", (e) => {
|
|
@@ -243,7 +240,7 @@ class Si extends N {
|
|
|
243
240
|
l(this, "handleFiveCameraUpdate", () => {
|
|
244
241
|
this.updatePointTagPosition();
|
|
245
242
|
});
|
|
246
|
-
l(this, "handleFivePanoArrived", () =>
|
|
243
|
+
l(this, "handleFivePanoArrived", () => p(this, null, function* () {
|
|
247
244
|
this.setVisible(), this.updatePointTagPosition(), yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
|
|
248
245
|
e.temporaryState = u(c({}, e.temporaryState), { visible: !0 });
|
|
249
246
|
}), this.tags.filter(_).filter((e) => {
|
|
@@ -268,9 +265,9 @@ class Si extends N {
|
|
|
268
265
|
this.setVisible(), this.updateRenderAllTags();
|
|
269
266
|
});
|
|
270
267
|
l(this, "onFiveEveryReady", () => {
|
|
271
|
-
this.setUnfoldedByCamera(), x(this.five.getCurrentState().mode) && (this.setTagZIndex(this.filterPointTag), this.setVisible(), this.setPointTagPosition()), this.updateDomView({ withAnimation: !0 })
|
|
268
|
+
this.setUnfoldedByCamera(), x(this.five.getCurrentState().mode) && (this.setTagZIndex(this.filterPointTag), this.setVisible(this.filterPointTag), this.setPointTagPosition()), this.updateDomView({ withAnimation: !0 });
|
|
272
269
|
});
|
|
273
|
-
this.params =
|
|
270
|
+
this.params = f({}, { debug: !1, config: this.config }, c({}, t)), this.debug = this.params.debug, this.config = this.params.config, L(1, { namespace: G.PlayAudio });
|
|
274
271
|
try {
|
|
275
272
|
const i = window;
|
|
276
273
|
Array.isArray(i.__PANOTAGPLUGIN_DEBUG_LIST__) || (i.__PANOTAGPLUGIN_DEBUG_LIST__ = []), i.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), i.__PANOTAGPLUGIN_DEBUG__ = this;
|
|
@@ -281,16 +278,16 @@ class Si extends N {
|
|
|
281
278
|
* @description: 加载数据
|
|
282
279
|
*/
|
|
283
280
|
load(e, t) {
|
|
284
|
-
return
|
|
281
|
+
return p(this, null, function* () {
|
|
285
282
|
var s, o;
|
|
286
|
-
this.clearTags(), console.debug(P, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config =
|
|
283
|
+
this.clearTags(), console.debug(P, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = f({}, this.config, {
|
|
287
284
|
globalConfig: (s = e.globalConfig) != null ? s : {},
|
|
288
285
|
contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
|
|
289
286
|
});
|
|
290
287
|
const i = yield this.addTag(e.tagList, t);
|
|
291
288
|
if (this.debug)
|
|
292
289
|
try {
|
|
293
|
-
|
|
290
|
+
M(this.five, this.tags);
|
|
294
291
|
} catch (n) {
|
|
295
292
|
console.error(n);
|
|
296
293
|
}
|
|
@@ -301,21 +298,19 @@ class Si extends N {
|
|
|
301
298
|
* @description: 添加标签
|
|
302
299
|
*/
|
|
303
300
|
addTag(e, t) {
|
|
304
|
-
return
|
|
301
|
+
return p(this, null, function* () {
|
|
305
302
|
const s = (Array.isArray(e) ? e : [e]).map((o) => {
|
|
306
303
|
var b, T, y;
|
|
307
304
|
const n = this.getTagConfig(o), r = JSON.parse(JSON.stringify(o.data)), h = o.config;
|
|
308
305
|
return o.config = n, u(c({}, o), {
|
|
309
306
|
enabled: (b = o.enabled) != null ? b : !0,
|
|
310
307
|
id: (T = o.id) != null ? T : z(),
|
|
311
|
-
data: (y = n.initialData) != null && y.important ?
|
|
308
|
+
data: (y = n.initialData) != null && y.important ? f(o.data, r, n.initialData) : f(o.data, n.initialData, r),
|
|
312
309
|
state: c({
|
|
313
310
|
visible: void 0,
|
|
314
311
|
unfolded: !this.can("fold", o)
|
|
315
312
|
}, n.initialState),
|
|
316
|
-
hooks: new
|
|
317
|
-
originPosition: o.position,
|
|
318
|
-
position: this.getTransformedPostion(o.position),
|
|
313
|
+
hooks: new F(),
|
|
319
314
|
initialConfig: h,
|
|
320
315
|
config: n,
|
|
321
316
|
unfold: () => this.changeUnfoldedById(o.id, !0),
|
|
@@ -326,7 +321,7 @@ class Si extends N {
|
|
|
326
321
|
changeData: (S) => this.changeDataById(o.id, S)
|
|
327
322
|
});
|
|
328
323
|
}).filter((o) => o.position);
|
|
329
|
-
return s.forEach(V), this.tags.push(...s), W(this.five).then(() =>
|
|
324
|
+
return s.forEach(V), this.tags.push(...s), W(this.five).then(() => p(this, null, function* () {
|
|
330
325
|
var o, n, r;
|
|
331
326
|
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();
|
|
332
327
|
}));
|
|
@@ -336,22 +331,22 @@ class Si extends N {
|
|
|
336
331
|
* @description: 改变配置
|
|
337
332
|
*/
|
|
338
333
|
changeConfig(e, t = !0) {
|
|
339
|
-
t ? this.config =
|
|
334
|
+
t ? this.config = f({}, this.config, e) : this.config = e, this.updateTagConfig(), this.updateRenderAllTags();
|
|
340
335
|
}
|
|
341
336
|
/**
|
|
342
337
|
* @description: 改变全局配置
|
|
343
338
|
*/
|
|
344
339
|
changeGlobalConfig(e, t = !0) {
|
|
345
|
-
t ? this.config.globalConfig =
|
|
340
|
+
t ? this.config.globalConfig = f({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig(), this.updateRenderAllTags();
|
|
346
341
|
}
|
|
347
342
|
/**
|
|
348
343
|
* @description: 改变类型配置
|
|
349
344
|
*/
|
|
350
345
|
changeContentTypeConfig(e, t, i = !0) {
|
|
351
|
-
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] =
|
|
346
|
+
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();
|
|
352
347
|
}
|
|
353
348
|
show(e) {
|
|
354
|
-
return
|
|
349
|
+
return p(this, null, function* () {
|
|
355
350
|
if (this.checkDisposed())
|
|
356
351
|
return;
|
|
357
352
|
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
@@ -359,7 +354,7 @@ class Si extends N {
|
|
|
359
354
|
});
|
|
360
355
|
}
|
|
361
356
|
hide(e) {
|
|
362
|
-
return
|
|
357
|
+
return p(this, null, function* () {
|
|
363
358
|
if (this.checkDisposed())
|
|
364
359
|
return;
|
|
365
360
|
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
@@ -381,7 +376,7 @@ class Si extends N {
|
|
|
381
376
|
setState(e, t) {
|
|
382
377
|
if (this.checkDisposed())
|
|
383
378
|
return;
|
|
384
|
-
const { userAction: i = !0, visibleWithAnimation: s = !1 } = t
|
|
379
|
+
const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = c({}, this.state);
|
|
385
380
|
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 });
|
|
386
381
|
}
|
|
387
382
|
/**
|
|
@@ -424,7 +419,7 @@ class Si extends N {
|
|
|
424
419
|
changeDataById(e, t, i = !0) {
|
|
425
420
|
const s = this.getTagById(e);
|
|
426
421
|
let o = !1;
|
|
427
|
-
s && (s.data && (o = !0), i ? s.data =
|
|
422
|
+
s && (s.data && (o = !0), i ? s.data = f(s.data, t) : s.data = c(c({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags(), o && s.hooks.emit("dataChanged", s.data));
|
|
428
423
|
}
|
|
429
424
|
/**
|
|
430
425
|
* @description: 改变tag的stickType
|
|
@@ -438,7 +433,7 @@ class Si extends N {
|
|
|
438
433
|
changeTagById(e, t, i = !0) {
|
|
439
434
|
const s = this.getTagById(e);
|
|
440
435
|
let o = !1;
|
|
441
|
-
t && (t.data && (o = !0), i ?
|
|
436
|
+
t && (t.data && (o = !0), i ? f(s, t) : Object.assign(s, t), s != null && s.tag3DContentSvelte && (t != null && t.normal) && (s.tag3DContentSvelte.currentNormal = A(t.normal)), this.updateRenderAllTags(), this.clearUnusedPanelTag(), o && s.hooks.emit("dataChanged", s.data));
|
|
442
437
|
}
|
|
443
438
|
/**
|
|
444
439
|
* @description: 销毁tag
|
|
@@ -453,7 +448,7 @@ class Si extends N {
|
|
|
453
448
|
* @description: 设置 visible 和 unfolded
|
|
454
449
|
*/
|
|
455
450
|
setVisibleAndUnfolded() {
|
|
456
|
-
return
|
|
451
|
+
return p(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
|
|
457
452
|
return this.setVisible(), e ? new Promise((t) => {
|
|
458
453
|
setTimeout(() => {
|
|
459
454
|
this.setUnfoldedByPanoIndex(), t();
|
|
@@ -539,7 +534,7 @@ class Si extends N {
|
|
|
539
534
|
}
|
|
540
535
|
}
|
|
541
536
|
export {
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
537
|
+
Pi as PanoTagPluginController,
|
|
538
|
+
Pi as default,
|
|
539
|
+
Di as pluginFlag
|
|
545
540
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r from "./controller/index.js";
|
|
2
|
-
import { pluginFlag as
|
|
3
|
-
import { defaultGlobalConfig as
|
|
4
|
-
import { ContentType as
|
|
2
|
+
import { pluginFlag as Lt } from "./controller/index.js";
|
|
3
|
+
import { defaultGlobalConfig as Nt } from "./typings/tag/TagConfig.js";
|
|
4
|
+
import { ContentType as Qt, DimensionType as Rt, PointType as St } from "./Archive/deprecated.js";
|
|
5
5
|
import "three";
|
|
6
6
|
import "@realsee/five";
|
|
7
7
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
@@ -60,7 +60,6 @@ import "../shared-utils/five/calculateThreeMouse.js";
|
|
|
60
60
|
import "./utils/tag/adaptConfig.js";
|
|
61
61
|
import "../shared-utils/typescript/entries.js";
|
|
62
62
|
import "../shared-utils/url/getUrl.js";
|
|
63
|
-
import "../shared-utils/five/transformPosition.js";
|
|
64
63
|
import "../shared-utils/five/getFloorIndex.js";
|
|
65
64
|
import "../shared-utils/safeObj.js";
|
|
66
65
|
import "./Components/TagContainer.js";
|
|
@@ -142,14 +141,14 @@ import "@realsee/five/gltf-loader";
|
|
|
142
141
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
143
142
|
import "../shared-utils/animationFrame/index.js";
|
|
144
143
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
145
|
-
const
|
|
144
|
+
const It = (o, t) => new r(o, t);
|
|
146
145
|
export {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
146
|
+
Qt as ContentType,
|
|
147
|
+
Rt as DimensionType,
|
|
148
|
+
It as PanoTagPlugin,
|
|
150
149
|
r as PanoTagPluginController,
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
150
|
+
St as PointType,
|
|
151
|
+
It as default,
|
|
152
|
+
Nt as defaultGlobalConfig,
|
|
153
|
+
Lt as pluginFlag
|
|
155
154
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GLTFObject } from '@realsee/five/gltf-loader';
|
|
2
|
-
import type { Group
|
|
2
|
+
import type { Group } from 'three';
|
|
3
3
|
import type { TagContentType } from './TagData';
|
|
4
4
|
import type { ImagePlane } from '../../utils/model/mediaPlane';
|
|
5
5
|
import type { TagInstance } from './TagInstance';
|
|
@@ -7,7 +7,7 @@ import type { TagConfig } from '../..';
|
|
|
7
7
|
import type { Mode } from '@realsee/five';
|
|
8
8
|
export type TagId = string | number;
|
|
9
9
|
export type ArrayPosition = number[];
|
|
10
|
-
export type Position = ArrayPosition
|
|
10
|
+
export type Position = ArrayPosition;
|
|
11
11
|
export type PanoIndex = number;
|
|
12
12
|
export type WorkCode = string;
|
|
13
13
|
export type ModelId = string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Vector3 } from 'three';
|
|
1
2
|
import type { TagInstance } from '../typings';
|
|
2
|
-
export declare function getTagPosition(tag: TagInstance):
|
|
3
|
-
export declare function getTagCenterPosition(tag: TagInstance):
|
|
3
|
+
export declare function getTagPosition(tag: TagInstance): Vector3 | Vector3[];
|
|
4
|
+
export declare function getTagCenterPosition(tag: TagInstance): Vector3;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { Matrix4 as n } from "three";
|
|
2
|
-
import { centerPoint as
|
|
3
|
-
import { isMediaModelTag as
|
|
4
|
-
import {
|
|
5
|
-
function p(
|
|
6
|
-
const
|
|
7
|
-
if (
|
|
8
|
-
const
|
|
9
|
-
return
|
|
1
|
+
import { Matrix4 as n, Vector3 as e } from "three";
|
|
2
|
+
import { centerPoint as a } from "../../shared-utils/three/centerPoint.js";
|
|
3
|
+
import { isMediaModelTag as m } from "./tag/tagCheck.js";
|
|
4
|
+
import { vector3Position as s } from "../../shared-utils/positionToVector3.js";
|
|
5
|
+
function p(r) {
|
|
6
|
+
const o = (() => {
|
|
7
|
+
if (m(r) && r.matrix) {
|
|
8
|
+
const i = new n().fromArray(r.matrix);
|
|
9
|
+
return r.data.mediaPosition.map((t) => new e().fromArray(t).applyMatrix4(i));
|
|
10
10
|
} else
|
|
11
|
-
return
|
|
11
|
+
return r.position;
|
|
12
12
|
})();
|
|
13
|
-
return s(
|
|
13
|
+
return s(o);
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
const
|
|
17
|
-
return
|
|
15
|
+
function P(r) {
|
|
16
|
+
const o = p(r);
|
|
17
|
+
return a(...Array.isArray(o) ? o : [o]);
|
|
18
18
|
}
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
P as getTagCenterPosition,
|
|
21
21
|
p as getTagPosition
|
|
22
22
|
};
|
package/libs/base/BasePlugin.js
CHANGED
package/libs/index.js
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
import { consoleVersion as o } from "./shared-utils/logger.js";
|
|
2
2
|
import { autoFixOffscreenCanvas as r } from "./shared-utils/offscreenCanvas.js";
|
|
3
|
-
import { PaintBrush as
|
|
4
|
-
import { PaintBrushTypeEnum as
|
|
5
|
-
import { ModelViewPlugin as
|
|
6
|
-
import { CSS3DRenderPlugin as
|
|
7
|
-
import { PanoCursorRaycasterPlugin as
|
|
8
|
-
import { ModelRoomLabelPlugin as
|
|
9
|
-
import { FLOOR_PLAN_ATTACHED_TO as
|
|
10
|
-
import { ModelFloorplanPlugin as
|
|
11
|
-
import { MapviewFloorplanPlugin as
|
|
12
|
-
import { TopviewFloorplanPlugin as
|
|
13
|
-
import { PanoFloorplanRadarPlugin as
|
|
14
|
-
import { FLOOR_TYPE_MAP as
|
|
15
|
-
import { ModelChassisCompassPlugin as
|
|
16
|
-
import { ModelEntryDoorGuidePlugin as
|
|
17
|
-
import { CameraMovementPlugin as
|
|
18
|
-
import { CameraMovementEffect as
|
|
19
|
-
import { PanoRulerPlugin as
|
|
20
|
-
import { PanoRulerProPlugin as
|
|
21
|
-
import { PanoCompassPlugin as
|
|
22
|
-
import { PanoMeasurePlugin as
|
|
23
|
-
import { PanoSpatialTagPlugin as
|
|
24
|
-
import { modelItemLabelPluginServerParams as
|
|
25
|
-
import { ModelTVVideoPlugin as
|
|
26
|
-
import { DIRECTION as
|
|
27
|
-
import { itemLabelPluginServerParams as
|
|
28
|
-
import { PanoDoorLabelPlugin as
|
|
29
|
-
import { GuideLinePlugin as
|
|
30
|
-
import { CruisePlugin as
|
|
31
|
-
import { PanoTagPlugin as
|
|
32
|
-
import { Object3DHelperPlugin as
|
|
33
|
-
import { PanoVideoPlugin as
|
|
34
|
-
import { PipelinePlugin as
|
|
35
|
-
import { AreaMakerPlugin as
|
|
36
|
-
import { CurrentPanoImagePlugin as
|
|
37
|
-
import { index as
|
|
38
|
-
import { CSS3DRender as
|
|
39
|
-
import { Model as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { Polyline as
|
|
43
|
-
import { default as
|
|
44
|
-
import { DISPLAY_STRATEGY_TYPE as
|
|
45
|
-
import { ModelItemLabelPlugin as
|
|
46
|
-
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as
|
|
47
|
-
import { Plugin as
|
|
48
|
-
import { GuideLineItem$1 as
|
|
49
|
-
import { GuideLineModeItem$1 as
|
|
50
|
-
import { default as
|
|
51
|
-
import { typing as
|
|
52
|
-
import { default as
|
|
53
|
-
import { defaultGlobalConfig as
|
|
54
|
-
import { ContentType as
|
|
55
|
-
import { Object3DHelperController as
|
|
56
|
-
import { typings as
|
|
3
|
+
import { PaintBrush as $p } from "./components/PaintBrush/index.js";
|
|
4
|
+
import { PaintBrushTypeEnum as qp } from "./components/PaintBrush/typings.js";
|
|
5
|
+
import { ModelViewPlugin as Jp } from "./ModelViewPlugin/Plugin.js";
|
|
6
|
+
import { CSS3DRenderPlugin as Qp } from "./CSS3DRenderPlugin/index.js";
|
|
7
|
+
import { PanoCursorRaycasterPlugin as Xp } from "./PanoCursorRaycasterPlugin/index.js";
|
|
8
|
+
import { ModelRoomLabelPlugin as oe, modelRoomLabelPluginServerParams as re } from "./ModelRoomLabelPlugin/index.js";
|
|
9
|
+
import { FLOOR_PLAN_ATTACHED_TO as ie } from "./floorplan/constant.js";
|
|
10
|
+
import { ModelFloorplanPlugin as pe } from "./floorplan/ModelFloorplanPlugin/index.js";
|
|
11
|
+
import { MapviewFloorplanPlugin as ne } from "./floorplan/MapviewFloorplanPlugin/index.js";
|
|
12
|
+
import { TopviewFloorplanPlugin as ae } from "./floorplan/TopviewFloorplanPlugin/index.js";
|
|
13
|
+
import { PanoFloorplanRadarPlugin as ue } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
|
|
14
|
+
import { FLOOR_TYPE_MAP as xe, ROOM_FETILE_TYPE_MAP as ge, ROOM_TYPE_MAP as se } from "./floorplan/typings/floorplanServerData.js";
|
|
15
|
+
import { ModelChassisCompassPlugin as Me } from "./ModelChassisCompassPlugin/Plugin.js";
|
|
16
|
+
import { ModelEntryDoorGuidePlugin as Le } from "./ModelEntryDoorGuidePlugin/Plugin.js";
|
|
17
|
+
import { CameraMovementPlugin as _e } from "./CameraMovementPlugin/CameraMovementPlugin.js";
|
|
18
|
+
import { CameraMovementEffect as Ie, Rotation as Re } from "./CameraMovementPlugin/typing.js";
|
|
19
|
+
import { PanoRulerPlugin as ye } from "./PanoRulerPlugin/Plugin.js";
|
|
20
|
+
import { PanoRulerProPlugin as Se } from "./PanoRulerProPlugin/index.js";
|
|
21
|
+
import { PanoCompassPlugin as Ge } from "./PanoCompassPlugin/index.js";
|
|
22
|
+
import { PanoMeasurePlugin as Fe } from "./PanoMeasurePlugin/index.js";
|
|
23
|
+
import { PanoSpatialTagPlugin as ve } from "./PanoSpatialTagPlugin/Plugin.js";
|
|
24
|
+
import { modelItemLabelPluginServerParams as Ve } from "./ModelItemLabelPlugin/index.js";
|
|
25
|
+
import { ModelTVVideoPlugin as he } from "./ModelTVVideoPlugin/Plugin.js";
|
|
26
|
+
import { DIRECTION as Be } from "./ModelTVVideoPlugin/typings.js";
|
|
27
|
+
import { itemLabelPluginServerParams as Ue } from "./ItemLabelPlugin/index.js";
|
|
28
|
+
import { PanoDoorLabelPlugin as $e } from "./PanoDoorLabelPlugin/index.js";
|
|
29
|
+
import { GuideLinePlugin as qe } from "./GuideLinePlugin/index.js";
|
|
30
|
+
import { CruisePlugin as Je } from "./CruisePlugin/index.js";
|
|
31
|
+
import { PanoTagPlugin as Qe } from "./PanoTagPlugin/index.js";
|
|
32
|
+
import { Object3DHelperPlugin as Xe } from "./Object3DHelperPlugin/index.js";
|
|
33
|
+
import { PanoVideoPlugin as on } from "./PanoVideoPlugin/index.js";
|
|
34
|
+
import { PipelinePlugin as tn } from "./PipelinePlugin/index.js";
|
|
35
|
+
import { AreaMakerPlugin as pn } from "./AreaMakerPlugin/index.js";
|
|
36
|
+
import { CurrentPanoImagePlugin as nn } from "./CurrentPanoImagePlugin/index.js";
|
|
37
|
+
import { index as an } from "./shared-utils/index.js";
|
|
38
|
+
import { CSS3DRender as un } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
39
|
+
import { Model as xn } from "./PanoMeasurePlugin/Model/index.js";
|
|
40
|
+
import { default as sn } from "./PanoMeasurePlugin/Model/point.js";
|
|
41
|
+
import { default as Mn } from "./PanoMeasurePlugin/Model/line.js";
|
|
42
|
+
import { Polyline as Ln } from "./PanoMeasurePlugin/Model/polyline.js";
|
|
43
|
+
import { default as _n } from "./PanoMeasurePlugin/Modules/Magnifier.js";
|
|
44
|
+
import { DISPLAY_STRATEGY_TYPE as In } from "./ModelItemLabelPlugin/typings.js";
|
|
45
|
+
import { ModelItemLabelPlugin as On } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
|
|
46
|
+
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as An } from "./ItemLabelPlugin/typings.js";
|
|
47
|
+
import { Plugin as Dn } from "./ItemLabelPlugin/Plugin.js";
|
|
48
|
+
import { GuideLineItem$1 as bn } from "./GuideLinePlugin/GuideLineItem/index.js";
|
|
49
|
+
import { GuideLineModeItem$1 as Yn } from "./GuideLinePlugin/GuideLineModeItem/index.js";
|
|
50
|
+
import { default as cn } from "./CruisePlugin/Controller.js";
|
|
51
|
+
import { typing as Nn } from "./CruisePlugin/typing/index.js";
|
|
52
|
+
import { default as wn, pluginFlag as Bn } from "./PanoTagPlugin/controller/index.js";
|
|
53
|
+
import { defaultGlobalConfig as Un } from "./PanoTagPlugin/typings/tag/TagConfig.js";
|
|
54
|
+
import { ContentType as $n, DimensionType as kn, PointType as qn } from "./PanoTagPlugin/Archive/deprecated.js";
|
|
55
|
+
import { Object3DHelperController as Jn, PLUGIN as Kn } from "./Object3DHelperPlugin/Controller.js";
|
|
56
|
+
import { typings as Wn } from "./PanoVideoPlugin/typings/index.js";
|
|
57
57
|
import "./components/PaintBrush/Controller.js";
|
|
58
58
|
import "./components/PaintBrush/utils.js";
|
|
59
59
|
import "./components/PaintBrush/tween.js";
|
|
@@ -286,7 +286,6 @@ import "./shared-utils/five/calculateThreeMouse.js";
|
|
|
286
286
|
import "./PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
287
287
|
import "./shared-utils/typescript/entries.js";
|
|
288
288
|
import "./shared-utils/url/getUrl.js";
|
|
289
|
-
import "./shared-utils/five/transformPosition.js";
|
|
290
289
|
import "./shared-utils/five/getFloorIndex.js";
|
|
291
290
|
import "./PanoTagPlugin/Components/TagContainer.js";
|
|
292
291
|
import "./PanoTagPlugin/Components/TagItem.js";
|
|
@@ -419,66 +418,66 @@ import "./shared-utils/three/getRaycaster.js";
|
|
|
419
418
|
r();
|
|
420
419
|
o();
|
|
421
420
|
export {
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
421
|
+
pn as AreaMakerPlugin,
|
|
422
|
+
un as CSS3DRender,
|
|
423
|
+
Qp as CSS3DRenderPlugin,
|
|
424
|
+
Ie as CameraMovementEffect,
|
|
425
|
+
_e as CameraMovementPlugin,
|
|
426
|
+
$n as ContentType,
|
|
427
|
+
Je as CruisePlugin,
|
|
428
|
+
cn as CruisePluginController,
|
|
429
|
+
Nn as CruisePluginTypes,
|
|
430
|
+
nn as CurrentPanoImagePlugin,
|
|
431
|
+
Be as DIRECTION,
|
|
432
|
+
In as DISPLAY_STRATEGY_TYPE,
|
|
433
|
+
kn as DimensionType,
|
|
434
|
+
ie as FLOOR_PLAN_ATTACHED_TO,
|
|
435
|
+
xe as FLOOR_TYPE_MAP,
|
|
436
|
+
bn as GuideLineItem,
|
|
437
|
+
Yn as GuideLineModeItem,
|
|
438
|
+
qe as GuideLinePlugin,
|
|
439
|
+
An as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
440
|
+
Dn as ItemLabelPlugin,
|
|
441
|
+
_n as Magnifier,
|
|
442
|
+
ne as MapviewFloorplanPlugin,
|
|
443
|
+
Me as ModelChassisCompassPlugin,
|
|
444
|
+
Le as ModelEntryDoorGuidePlugin,
|
|
445
|
+
pe as ModelFloorplanPlugin,
|
|
446
|
+
On as ModelItemLabelPlugin,
|
|
447
|
+
oe as ModelRoomLabelPlugin,
|
|
448
|
+
he as ModelTVVideoPlugin,
|
|
449
|
+
Jp as ModelViewPlugin,
|
|
450
|
+
Jn as Object3DHelperController,
|
|
451
|
+
Xe as Object3DHelperPlugin,
|
|
452
|
+
Kn as PLUGIN,
|
|
453
|
+
$p as PaintBrush,
|
|
454
|
+
qp as PaintBrushTypeEnum,
|
|
455
|
+
Ge as PanoCompassPlugin,
|
|
456
|
+
Xp as PanoCursorRaycasterPlugin,
|
|
457
|
+
$e as PanoDoorLabelPlugin,
|
|
458
|
+
ue as PanoFloorplanRadarPlugin,
|
|
459
|
+
Fe as PanoMeasurePlugin,
|
|
460
|
+
Mn as PanoMeasurePluginLine,
|
|
461
|
+
xn as PanoMeasurePluginModel,
|
|
462
|
+
sn as PanoMeasurePluginPoint,
|
|
463
|
+
Ln as PanoMeasurePluginPolyline,
|
|
464
|
+
ye as PanoRulerPlugin,
|
|
465
|
+
Se as PanoRulerProPlugin,
|
|
466
|
+
ve as PanoSpatialTagPlugin,
|
|
467
|
+
Qe as PanoTagPlugin,
|
|
468
|
+
wn as PanoTagPluginController,
|
|
469
|
+
on as PanoVideoPlugin,
|
|
470
|
+
Wn as PanoVideoPluginType,
|
|
471
|
+
tn as PipelinePlugin,
|
|
472
|
+
qn as PointType,
|
|
473
|
+
ge as ROOM_FETILE_TYPE_MAP,
|
|
474
|
+
se as ROOM_TYPE_MAP,
|
|
475
|
+
Re as Rotation,
|
|
476
|
+
ae as TopviewFloorplanPlugin,
|
|
477
|
+
an as Util,
|
|
478
|
+
Un as defaultGlobalConfig,
|
|
479
|
+
Ue as itemLabelPluginServerParams,
|
|
480
|
+
Ve as modelItemLabelPluginServerParams,
|
|
481
|
+
re as modelRoomLabelPluginServerParams,
|
|
482
|
+
Bn as pluginFlag
|
|
484
483
|
};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export default function getFloorIndex(observer: {
|
|
2
|
+
floorIndex: number;
|
|
3
|
+
position: {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
z: number;
|
|
7
|
+
};
|
|
8
|
+
}[], point: {
|
|
3
9
|
y: number;
|
|
4
10
|
}): number;
|