@realsee/dnalogel 3.42.0-alpha-tag.44 → 3.42.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/CHANGELOG.md +12 -7
- package/dist/ModelMakerPlugin/Controller.d.ts +1 -2
- package/dist/Object3DHelperPlugin/Controller.d.ts +61 -0
- package/dist/PanoTagPlugin/controller/Tag/BaseTag.d.ts +14 -1
- package/dist/PanoTagPlugin/controller/Tag/PointTag.d.ts +4 -0
- package/dist/PanoTagPlugin/controller/index.d.ts +4 -4
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +5 -0
- package/dist/index.cjs.js +31 -31
- package/dist/index.js +1205 -1185
- package/dist/index.umd.js +38 -38
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +1 -1
- package/dist/shared-utils/Object3DHelper/typings/index.d.ts +7 -1
- package/libs/ModelMakerPlugin/Controller.d.ts +1 -2
- package/libs/ModelMakerPlugin/Controller.js +1 -1
- package/libs/Object3DHelperPlugin/Controller.d.ts +61 -0
- package/libs/Object3DHelperPlugin/Controller.js +3 -3
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +39 -19
- package/libs/PanoTagPlugin/Components/Tag/index.js +138 -133
- package/libs/PanoTagPlugin/Components/TagItem.js +194 -196
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +14 -1
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +251 -236
- package/libs/PanoTagPlugin/controller/Tag/PointTag.d.ts +4 -0
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +27 -23
- package/libs/PanoTagPlugin/controller/index.d.ts +4 -4
- package/libs/PanoTagPlugin/controller/index.js +19 -17
- package/libs/PanoTagPlugin/tag.config.js +2 -6
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +5 -0
- package/libs/PanoTagPlugin/utils/tag/format.js +3 -3
- package/libs/PipelinePlugin/utils/formatData.js +16 -16
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +22 -21
- package/libs/shared-utils/Object3DHelper/typings/index.d.ts +7 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +3 -2
- package/README.md +0 -116
- package/docs/.nojekyll +0 -1
- package/docs/assets/custom.css +0 -0
- package/docs/assets/highlight.css +0 -127
- 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 -731
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -694
- package/docs/classes/CSS3DRender.html +0 -778
- package/docs/classes/GuideLineItem.GuideLineItem.html +0 -481
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -894
- package/docs/classes/Magnifier.html +0 -485
- package/docs/classes/ModelRoomLabelController.html +0 -403
- package/docs/classes/MoveController.html +0 -681
- package/docs/classes/Object3DHelperController.html +0 -645
- package/docs/classes/PaintBrush.html +0 -507
- package/docs/classes/PanoMeasurePluginLine.html +0 -527
- package/docs/classes/PanoMeasurePluginModel.html +0 -576
- package/docs/classes/PanoMeasurePluginPoint.html +0 -367
- package/docs/classes/PanoMeasurePluginPolyline.html +0 -572
- package/docs/classes/PanoTagPluginController.html +0 -1132
- package/docs/classes/Util.BetterTween.html +0 -421
- package/docs/classes/Util.Interval.html +0 -437
- package/docs/classes/Util.LineSegments.html +0 -389
- package/docs/classes/Util.Magnifier.html +0 -508
- package/docs/classes/Util.Object3D.html +0 -411
- package/docs/classes/Util.PointDomHelper.html +0 -412
- package/docs/classes/Util.PointHelper.html +0 -403
- package/docs/classes/Util.PointSelectorHelper.html +0 -459
- package/docs/classes/Util.Rectangle.html +0 -460
- package/docs/classes/WalkController.html +0 -700
- package/docs/enums/CameraMovementEffect.html +0 -315
- package/docs/enums/ContentType.html +0 -461
- package/docs/enums/DIRECTION.html +0 -325
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -325
- package/docs/enums/DimensionType.html +0 -315
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -318
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -325
- package/docs/enums/PaintBrushTypeEnum.html +0 -318
- package/docs/enums/PointType.html +0 -315
- package/docs/enums/Rotation.html +0 -322
- package/docs/functions/AreaMakerPlugin.html +0 -295
- package/docs/functions/CSS3DRenderPlugin.html +0 -293
- package/docs/functions/CameraMovementPlugin.html +0 -298
- package/docs/functions/CruisePlugin.html +0 -295
- package/docs/functions/CurrentPanoImagePlugin.html +0 -295
- package/docs/functions/GuideLinePlugin.html +0 -295
- package/docs/functions/ItemLabelPlugin.html +0 -295
- package/docs/functions/MapviewFloorplanPlugin.html +0 -295
- package/docs/functions/ModelChassisCompassPlugin.html +0 -298
- package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -298
- package/docs/functions/ModelFloorplanPlugin.html +0 -295
- package/docs/functions/ModelItemLabelPlugin.html +0 -295
- package/docs/functions/ModelRoomLabelPlugin.html +0 -293
- package/docs/functions/ModelTVVideoPlugin.html +0 -295
- package/docs/functions/ModelViewPlugin.html +0 -298
- package/docs/functions/MovePlugin.html +0 -295
- package/docs/functions/Object3DHelperPlugin.html +0 -293
- package/docs/functions/PanoCompassPlugin.html +0 -295
- package/docs/functions/PanoCursorRaycasterPlugin.html +0 -299
- package/docs/functions/PanoDoorLabelPlugin.html +0 -295
- package/docs/functions/PanoFloorplanRadarPlugin.html +0 -295
- package/docs/functions/PanoMeasurePlugin.html +0 -295
- package/docs/functions/PanoRulerPlugin.html +0 -298
- package/docs/functions/PanoRulerProPlugin.html +0 -298
- package/docs/functions/PanoSpatialTagPlugin.html +0 -298
- package/docs/functions/PanoTagPlugin.html +0 -300
- package/docs/functions/PanoVideoPlugin.html +0 -304
- package/docs/functions/PipelinePlugin.html +0 -293
- package/docs/functions/TopviewFloorplanPlugin.html +0 -295
- package/docs/functions/Util.absoluteUrl.html +0 -331
- package/docs/functions/Util.checkFiveModelLoaded.html +0 -334
- package/docs/functions/Util.equal.html +0 -343
- package/docs/functions/Util.getCoordsFromClient.html +0 -333
- package/docs/functions/Util.getCoordsFromElement.html +0 -333
- package/docs/functions/Util.getFrameTime.html +0 -325
- package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -333
- package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -333
- package/docs/functions/Util.isAbsoluteURL.html +0 -326
- package/docs/functions/Util.isModelLike.html +0 -326
- package/docs/functions/Util.isNil.html +0 -334
- package/docs/functions/Util.isPanoramaLike.html +0 -326
- package/docs/functions/Util.nextFrame.html +0 -339
- package/docs/functions/Util.notNil.html +0 -334
- package/docs/functions/Util.requestAnimationFrameInterval.html +0 -355
- package/docs/functions/Util.tweenProgress.html +0 -328
- package/docs/functions/Util.uuid.html +0 -324
- package/docs/functions/pluginFlag.html +0 -293
- package/docs/index.html +0 -358
- package/docs/interfaces/AddTagConfig.html +0 -308
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -335
- package/docs/interfaces/AreaMakerPluginType.Config.html +0 -340
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -626
- package/docs/interfaces/AreaMakerPluginType.Params.html +0 -339
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -397
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -382
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -339
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -332
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -331
- package/docs/interfaces/AreaMakerPluginType.State.html +0 -360
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -454
- package/docs/interfaces/CSS3DRenderPluginState.html +0 -330
- package/docs/interfaces/CameraMovementPluginExportType.html +0 -363
- package/docs/interfaces/CruisePluginTypes.Config.html +0 -364
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -366
- package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -724
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -390
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -426
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -416
- package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -356
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -324
- package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -392
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -387
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -526
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -328
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -320
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -342
- package/docs/interfaces/EventMap.html +0 -547
- package/docs/interfaces/FloorplanBounding.html +0 -337
- package/docs/interfaces/FloorplanData.html +0 -340
- package/docs/interfaces/FloorplanEntrance.html +0 -365
- package/docs/interfaces/FloorplanExtraObject.html +0 -355
- package/docs/interfaces/FloorplanExtraObject3D.html +0 -344
- package/docs/interfaces/FloorplanFloorData.html +0 -333
- package/docs/interfaces/FloorplanImagePosition.html +0 -319
- package/docs/interfaces/FloorplanObserver.html +0 -337
- package/docs/interfaces/FloorplanOutlineItem.html +0 -333
- package/docs/interfaces/FloorplanPosition.html +0 -319
- package/docs/interfaces/FloorplanRoomItem.html +0 -407
- package/docs/interfaces/FloorplanRoomLabelItem.html +0 -325
- package/docs/interfaces/FloorplanServerBounding.html +0 -337
- package/docs/interfaces/FloorplanServerComputedData.html +0 -336
- package/docs/interfaces/FloorplanServerData.html +0 -319
- package/docs/interfaces/FloorplanServerDoorItem.html +0 -336
- package/docs/interfaces/FloorplanServerDoorPosition.html +0 -322
- package/docs/interfaces/FloorplanServerEntrance.html +0 -365
- package/docs/interfaces/FloorplanServerFloorData.html +0 -333
- package/docs/interfaces/FloorplanServerImagePosition.html +0 -319
- package/docs/interfaces/FloorplanServerObserver.html +0 -337
- package/docs/interfaces/FloorplanServerOutlineItem.html +0 -333
- package/docs/interfaces/FloorplanServerPosition.html +0 -319
- package/docs/interfaces/FloorplanServerRoomItem.html +0 -419
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -325
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -328
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -367
- package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -531
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -362
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -353
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -452
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +0 -342
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -352
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -522
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -349
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -532
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -314
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -335
- package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -360
- package/docs/interfaces/GuideLinePluginType.Route.html +0 -376
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -358
- package/docs/interfaces/HelperOffset.html +0 -337
- package/docs/interfaces/ImagePlaneGroup.html +0 -311
- package/docs/interfaces/ItemLabelPluginData.html +0 -308
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -393
- package/docs/interfaces/ItemLabelPluginParametersType.html +0 -329
- package/docs/interfaces/MinMax.html +0 -315
- package/docs/interfaces/ModelChassisCompassPluginData.html +0 -315
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -351
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -315
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -322
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -359
- package/docs/interfaces/ModelItemLabelPluginData.html +0 -308
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -393
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -315
- package/docs/interfaces/ModelRoomLabelPluginData.html +0 -308
- package/docs/interfaces/ModelTVVideoPluginData.html +0 -329
- package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -353
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -308
- package/docs/interfaces/ModelViewPluginExportType.html +0 -421
- package/docs/interfaces/Object3DHelperState.html +0 -322
- package/docs/interfaces/ObjectHelperControllers.html +0 -329
- package/docs/interfaces/PaintBrushAction.html +0 -368
- package/docs/interfaces/PaintBrushConfigs.html +0 -366
- package/docs/interfaces/PaintBrushState.html +0 -350
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -430
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -287
- package/docs/interfaces/PanoMeasureParameterType.html +0 -454
- package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -322
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -319
- package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -315
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -325
- package/docs/interfaces/PanoRulerPluginExportType.html +0 -382
- package/docs/interfaces/PanoRulerPluginOptions.html +0 -331
- package/docs/interfaces/PanoRulerPluginParameterType.html +0 -322
- package/docs/interfaces/PanoRulerProPluginExportType.html +0 -358
- package/docs/interfaces/PanoRulerProPluginOptions.html +0 -328
- package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -315
- package/docs/interfaces/PanoRulerProPluginState.html +0 -322
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -301
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -290
- package/docs/interfaces/PanoSpatialTagPluginData.html +0 -358
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -340
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -436
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -336
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -357
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -343
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -336
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -328
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -346
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -319
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -425
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -319
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -354
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -373
- package/docs/interfaces/Point.html +0 -322
- package/docs/interfaces/Room.html +0 -329
- package/docs/interfaces/RoomInfo.html +0 -315
- package/docs/interfaces/RoomLabel.html +0 -391
- package/docs/interfaces/RoomRules.html +0 -290
- package/docs/interfaces/Rooms.html +0 -290
- package/docs/interfaces/Scissor.html +0 -349
- package/docs/interfaces/State.html +0 -336
- package/docs/interfaces/TagCacheInterface.html +0 -367
- package/docs/interfaces/TagConfig.html +0 -570
- package/docs/interfaces/TagGLTFObjectGroup.html +0 -311
- package/docs/interfaces/TagIconUrl.html +0 -368
- package/docs/interfaces/TagObjectGroup.html +0 -311
- package/docs/interfaces/TagStyle.html +0 -321
- package/docs/interfaces/Tags.html +0 -2825
- package/docs/interfaces/TemporaryState.html +0 -308
- package/docs/interfaces/Util.MagnifierParameter.html +0 -396
- package/docs/interfaces/Util.MouseGroupParameter.html +0 -355
- package/docs/interfaces/Util.PointIntersection.html +0 -370
- package/docs/modules/AreaMakerPluginType.html +0 -330
- package/docs/modules/CruisePluginTypes.html +0 -333
- package/docs/modules/CurrentPanoImagePluginType.html +0 -302
- package/docs/modules/GuideLineItem.html +0 -294
- package/docs/modules/GuideLineModeItem.html +0 -299
- package/docs/modules/GuideLinePluginType.html +0 -355
- package/docs/modules/PanoVideoPluginType.html +0 -306
- package/docs/modules/Util.html +0 -356
- package/docs/modules.html +0 -564
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -359
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +0 -325
- package/docs/types/AreaMakerPluginType.PluginData.html +0 -307
- package/docs/types/AreaMakerPluginType.ServerData.html +0 -307
- package/docs/types/ArrayPosition.html +0 -284
- package/docs/types/AudioAppearance.html +0 -284
- package/docs/types/AudioTagTypeConfigKey.html +0 -284
- package/docs/types/CSS3DRenderExportType.html +0 -284
- package/docs/types/CSS3DRenderPluginExportType.html +0 -284
- package/docs/types/CSS3DRenderPluginParameterType.html +0 -284
- package/docs/types/ClassFunctionParameters.html +0 -291
- package/docs/types/Color.html +0 -284
- package/docs/types/ContentTypeConfigKey.html +0 -284
- package/docs/types/ContentTypeConfigKeySplit.html +0 -284
- package/docs/types/ContentTypeMap.html +0 -284
- package/docs/types/Create3DDomContainerReturnType.html +0 -284
- package/docs/types/Create3DElementReturnType.html +0 -284
- package/docs/types/CruisePluginExportType.html +0 -284
- package/docs/types/CruisePluginTypes.CruiseData.html +0 -323
- package/docs/types/CruisePluginTypes.MoveEffect.html +0 -300
- package/docs/types/CurrentPanoImagePluginExportType.html +0 -284
- package/docs/types/DeprecatedMediaPlaneProperty.html +0 -296
- package/docs/types/DeprecatedTagProperty.html +0 -299
- package/docs/types/Direction-1.html +0 -284
- package/docs/types/Direction4.html +0 -284
- package/docs/types/ElementRenderer.html +0 -308
- package/docs/types/FloorplanRuleLabels.html +0 -287
- package/docs/types/FloorplanServerRuleLabels.html +0 -284
- package/docs/types/GuideLinePluginExportType.html +0 -284
- package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -357
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -378
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -311
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -314
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -314
- package/docs/types/GuideLinePluginType.PathItem.html +0 -314
- package/docs/types/GuideLinePluginType.PluginData.html +0 -323
- package/docs/types/HelperEventMap.html +0 -429
- package/docs/types/InternalHelperEventMap.html +0 -380
- package/docs/types/LoadTagConfig.html +0 -284
- package/docs/types/MapviewFloorplanPluginParameterType.html +0 -284
- package/docs/types/MapviewFloorplanPluginReturnType.html +0 -284
- package/docs/types/MediaData.html +0 -305
- package/docs/types/MediaStore.html +0 -289
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -291
- package/docs/types/ModelFloorplanPluginParameterType.html +0 -284
- package/docs/types/ModelFloorplanPluginReturnType.html +0 -284
- package/docs/types/ModelId.html +0 -284
- package/docs/types/ModelRoomLabelPluginParameters.html +0 -284
- package/docs/types/ModelRoomLabelPluginReturnType.html +0 -284
- package/docs/types/MoveArgs.html +0 -294
- package/docs/types/MoveOpts.html +0 -292
- package/docs/types/Object3DHelperEventMap.html +0 -377
- package/docs/types/ObjectFit.html +0 -284
- package/docs/types/PaintBrushEventMap.html +0 -315
- package/docs/types/PanoCompassPluginData.html +0 -284
- package/docs/types/PanoCompassPluginExportType.html +0 -284
- package/docs/types/PanoCompassPluginParameterType.html +0 -284
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -284
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -284
- package/docs/types/PanoIndex.html +0 -284
- package/docs/types/PanoMeasurePluginEvent.html +0 -284
- package/docs/types/PanoMeasureReturnType.html +0 -284
- package/docs/types/PanoSpatialTagPluginId.html +0 -284
- package/docs/types/PanoTagPluginExportInterface.html +0 -284
- package/docs/types/PanoTagPluginParamsInterface.html +0 -284
- package/docs/types/PanoVideoPluginParameterType.html +0 -284
- package/docs/types/PanoVideoPluginReturnType.html +0 -284
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -292
- package/docs/types/PipelinePluginParameterType.html +0 -284
- package/docs/types/PipelinePluginReturnType.html +0 -284
- package/docs/types/PlaneTag.html +0 -292
- package/docs/types/Point2DTag.html +0 -292
- package/docs/types/Point3DTag.html +0 -292
- package/docs/types/PointTag.html +0 -289
- package/docs/types/PointTagInstance.html +0 -289
- package/docs/types/Position.html +0 -284
- package/docs/types/RotateArgs.html +0 -296
- package/docs/types/RotateOpts.html +0 -292
- package/docs/types/RuleLabelsKey.html +0 -284
- package/docs/types/RuleLabelsValue.html +0 -284
- package/docs/types/StickType.html +0 -284
- package/docs/types/Tag.html +0 -350
- package/docs/types/Tag2D.html +0 -292
- package/docs/types/Tag3D.html +0 -292
- package/docs/types/TagConfigByKey.html +0 -289
- package/docs/types/TagContentType.html +0 -284
- package/docs/types/TagContentTypeMapping.html +0 -284
- package/docs/types/TagDimensionType.html +0 -286
- package/docs/types/TagElement.html +0 -294
- package/docs/types/TagEvents.html +0 -337
- package/docs/types/TagGLTFObject.html +0 -307
- package/docs/types/TagHooks.html +0 -284
- package/docs/types/TagId.html +0 -284
- package/docs/types/TagInstance.html +0 -362
- package/docs/types/TagPointType.html +0 -287
- package/docs/types/TagRendererMap.html +0 -291
- package/docs/types/TopviewFloorplanPluginParameterType.html +0 -284
- package/docs/types/TopviewFloorplanPluginReturnType.html +0 -284
- package/docs/types/WorkCode.html +0 -284
- package/docs/variables/FLOOR_TYPE_MAP.html +0 -294
- package/docs/variables/PLUGIN.html +0 -284
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -287
- package/docs/variables/ROOM_TYPE_MAP.html +0 -294
- package/docs/variables/defaultGlobalConfig.html +0 -284
- package/docs/variables/itemLabelPluginServerParams.html +0 -291
- package/docs/variables/modelItemLabelPluginServerParams.html +0 -291
- package/docs/variables/modelRoomLabelPluginServerParams.html +0 -291
|
@@ -7,6 +7,10 @@ export declare class PointTag<C extends TagContentType = TagContentType> extends
|
|
|
7
7
|
private __Object__;
|
|
8
8
|
private requestIdleCallbackId?;
|
|
9
9
|
constructor(plugin: PanoTagPluginController, tagData: TagData);
|
|
10
|
+
/**
|
|
11
|
+
* @description 展开自己,收起其他标签
|
|
12
|
+
*/
|
|
13
|
+
unfoldAndFoldOthers(): void;
|
|
10
14
|
onClick(params: Pick<TagClickParams, 'target'>): void;
|
|
11
15
|
updateVisible(): void;
|
|
12
16
|
applyVisible(): void;
|
|
@@ -2,7 +2,7 @@ var h = Object.defineProperty;
|
|
|
2
2
|
var f = (n, s, t) => s in n ? h(n, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[s] = t;
|
|
3
3
|
var a = (n, s, t) => (f(n, typeof s != "symbol" ? s + "" : s, t), t);
|
|
4
4
|
import { BaseTag as g } from "./BaseTag.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as u from "three";
|
|
6
6
|
import { cancelIdleCallback as b, requestIdleCallback as y } from "../../utils/requestIdleCallback.js";
|
|
7
7
|
import "../../../shared-utils/Subscribe.js";
|
|
8
8
|
import "../../utils/tag/calculateTagConfig.js";
|
|
@@ -51,29 +51,33 @@ import "../../../shared-utils/five/getFloorIndex.js";
|
|
|
51
51
|
import "../../../shared-utils/safeObj.js";
|
|
52
52
|
import "../../utils/Cache.js";
|
|
53
53
|
import "../../../CruisePlugin/utils/sleep.js";
|
|
54
|
-
const v = new
|
|
54
|
+
const v = new u.Vector2();
|
|
55
55
|
class gt extends g {
|
|
56
|
-
constructor(t,
|
|
57
|
-
super(t,
|
|
56
|
+
constructor(t, e) {
|
|
57
|
+
super(t, e);
|
|
58
58
|
a(this, "__Object__");
|
|
59
59
|
a(this, "requestIdleCallbackId");
|
|
60
60
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
/**
|
|
62
|
+
* @description 展开自己,收起其他标签
|
|
63
|
+
*/
|
|
64
|
+
unfoldAndFoldOthers() {
|
|
65
|
+
const t = this.can("fold"), e = this.can("unfold");
|
|
66
|
+
t && e && (this.state.unfolded = !this.state.unfolded, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.state.unfolded && this.plugin.tags.forEach((o) => {
|
|
67
|
+
o.id !== this.id && o.fold();
|
|
67
68
|
}));
|
|
68
69
|
}
|
|
70
|
+
onClick(t) {
|
|
71
|
+
t.target === "TagPoint" && this.unfoldAndFoldOthers();
|
|
72
|
+
}
|
|
69
73
|
updateVisible() {
|
|
70
74
|
this.requestIdleCallbackId && b(this.requestIdleCallbackId), this.requestIdleCallbackId = y(() => {
|
|
71
75
|
super.updateVisible();
|
|
72
76
|
});
|
|
73
77
|
}
|
|
74
78
|
applyVisible() {
|
|
75
|
-
var t,
|
|
76
|
-
this.currentVisible && this.updateScreenPosition(), (o = (
|
|
79
|
+
var t, e, o, i;
|
|
80
|
+
this.currentVisible && this.updateScreenPosition(), (o = (e = (t = this.tag3DContentSvelte) == null ? void 0 : t.css3DInstance) == null ? void 0 : e.css3DObject) == null || o.setVisible(this.currentVisible), (i = this.tag3DContentSvelte) == null || i.svelteApp.$set({
|
|
77
81
|
state: this.plugin.state,
|
|
78
82
|
temporaryState: this.temporaryState
|
|
79
83
|
}), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
|
|
@@ -89,8 +93,8 @@ class gt extends g {
|
|
|
89
93
|
* @param {boolean} unfolded
|
|
90
94
|
*/
|
|
91
95
|
setUnfold(t) {
|
|
92
|
-
const
|
|
93
|
-
|
|
96
|
+
const e = this.can("fold"), o = this.can("unfold");
|
|
97
|
+
e && o && (this.state.unfolded = t, this.hooks.emit(t ? "unfolded" : "folded"), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
|
|
94
98
|
}
|
|
95
99
|
setPosition(t) {
|
|
96
100
|
this.originPosition = t, this.position = t, this.cache.clear(), this.updateVisible(), this.updateScreenPosition(), this.updateZIndex(), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
|
|
@@ -99,23 +103,23 @@ class gt extends g {
|
|
|
99
103
|
var l;
|
|
100
104
|
if (this.stickType !== "2DPoint" && this.stickType !== "3DPoint")
|
|
101
105
|
return;
|
|
102
|
-
const { force:
|
|
106
|
+
const { force: e = !1 } = t != null ? t : {}, o = e ? this.state.visible : this.currentVisible, i = (l = this.__Object__) != null ? l : {
|
|
103
107
|
timeoutId: void 0,
|
|
104
108
|
inAnimation: !1
|
|
105
109
|
};
|
|
106
|
-
if (this.__Object__ =
|
|
110
|
+
if (this.__Object__ = i, !o && this.screenPosition ? (i.inAnimation = !0, i.timeoutId = setTimeout(() => {
|
|
107
111
|
requestAnimationFrame(() => {
|
|
108
|
-
this.currentVisible || (
|
|
112
|
+
this.currentVisible || (i.inAnimation = !1, this.screenPosition = null, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
|
|
109
113
|
});
|
|
110
|
-
}, 1e3)) :
|
|
114
|
+
}, 1e3)) : i.timeoutId && (clearTimeout(i.timeoutId), i.inAnimation = !1, i.timeoutId = void 0), !o && !i.inAnimation)
|
|
111
115
|
return;
|
|
112
116
|
const r = this.computeTagProject();
|
|
113
117
|
if (r) {
|
|
114
118
|
const d = (() => {
|
|
115
119
|
if (!this.currentConfig.simulate3D)
|
|
116
120
|
return 1;
|
|
117
|
-
const
|
|
118
|
-
return Math.max(Math.min(1 -
|
|
121
|
+
const c = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), m = this.getDistance(void 0, 1);
|
|
122
|
+
return Math.max(Math.min(1 - c * m / 40, 1), 0.5);
|
|
119
123
|
})(), p = this.five.renderer.getSize(v);
|
|
120
124
|
this.screenPosition = {
|
|
121
125
|
leftPx: (r.x + 1) / 2 * p.x,
|
|
@@ -129,12 +133,12 @@ class gt extends g {
|
|
|
129
133
|
updateUnfoldedByPanoIndex() {
|
|
130
134
|
const t = this.getUnfoldedByPanoIndex();
|
|
131
135
|
if (this.state && (t !== void 0 && (this.state.unfolded = t), t && !this.state.visible)) {
|
|
132
|
-
const
|
|
133
|
-
typeof
|
|
136
|
+
const e = this.getConfig();
|
|
137
|
+
typeof e.unfoldedConfig == "object" && e.unfoldedConfig.autoFoldWhenHide !== !1 && (this.state.unfolded = !1);
|
|
134
138
|
}
|
|
135
139
|
}
|
|
136
140
|
computeNormal() {
|
|
137
|
-
return new
|
|
141
|
+
return new u.Vector3().fromArray(this.normal);
|
|
138
142
|
}
|
|
139
143
|
destroy() {
|
|
140
144
|
this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
|
|
@@ -119,10 +119,6 @@ declare class PanoTagPluginController extends TagRender {
|
|
|
119
119
|
private handleHide;
|
|
120
120
|
private handleEnable;
|
|
121
121
|
private handleDisable;
|
|
122
|
-
/**
|
|
123
|
-
* @description 添加 cameraUpdate, panoArrived 等事件监听
|
|
124
|
-
*/
|
|
125
|
-
private addEventListener;
|
|
126
122
|
private addResizeListener;
|
|
127
123
|
private addResizeObserver;
|
|
128
124
|
private handleFiveModeChange;
|
|
@@ -136,6 +132,10 @@ declare class PanoTagPluginController extends TagRender {
|
|
|
136
132
|
private onFiveEveryReady;
|
|
137
133
|
private setUnfoldedByCamera;
|
|
138
134
|
private changeTagMode;
|
|
135
|
+
/**
|
|
136
|
+
* @description 添加 cameraUpdate, panoArrived 等事件监听
|
|
137
|
+
*/
|
|
138
|
+
private addEventListener;
|
|
139
139
|
render: () => void;
|
|
140
140
|
}
|
|
141
141
|
export default PanoTagPluginController;
|
|
@@ -202,7 +202,9 @@ class $i extends R {
|
|
|
202
202
|
p(this, "handleFiveModeChange", (e) => {
|
|
203
203
|
const t = () => {
|
|
204
204
|
this.tags.forEach((i) => {
|
|
205
|
-
i.state.visible = !1, i.applyVisible(),
|
|
205
|
+
i.state.visible = !1, i.applyVisible(), this.five.ready().then(() => {
|
|
206
|
+
i.updateVisible(), M(i) && e !== "Panorama" && this.changeTagMode(i, "behind");
|
|
207
|
+
});
|
|
206
208
|
});
|
|
207
209
|
};
|
|
208
210
|
this.tags.length < 500 ? t() : this.five.ready().then(() => t());
|
|
@@ -256,7 +258,7 @@ class $i extends R {
|
|
|
256
258
|
this.tags.forEach((e) => e.updateVisible());
|
|
257
259
|
});
|
|
258
260
|
p(this, "onFiveEveryReady", () => {
|
|
259
|
-
this.setUnfoldedByCamera(), G(this.five.getCurrentState().mode) && this.
|
|
261
|
+
this.setUnfoldedByCamera(), G(this.five.getCurrentState().mode) && this.tags.forEach((e) => e.updateVisible());
|
|
260
262
|
});
|
|
261
263
|
p(this, "render", () => {
|
|
262
264
|
this.renderQueue.forEach((e, t) => {
|
|
@@ -532,21 +534,6 @@ class $i extends R {
|
|
|
532
534
|
(s = o.tag3DContentSvelte) == null || s.dispose(), o.tag3DContentSvelte = void 0;
|
|
533
535
|
}), this.five.needsRender = !0;
|
|
534
536
|
}
|
|
535
|
-
/**
|
|
536
|
-
* @description 添加 cameraUpdate, panoArrived 等事件监听
|
|
537
|
-
*/
|
|
538
|
-
addEventListener() {
|
|
539
|
-
const { five: e, hooks: t } = this;
|
|
540
|
-
let i = !1;
|
|
541
|
-
const o = y(() => {
|
|
542
|
-
i || (i = !0, e.ready().then(() => {
|
|
543
|
-
this.onFiveEveryReady(), i = !1;
|
|
544
|
-
}));
|
|
545
|
-
}, 150);
|
|
546
|
-
return e.on("cameraUpdate", o), this.handleFivePanoArrived(), e.on("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.on("models.refined", this.onFiveEveryReady), e.on("modeChange", this.handleFiveModeChange), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", this.handleFiveCameraUpdate), e.on("cameraFovUpdate", this.handleFiveCameraFovUpdate), e.on("panoArrived", this.handleFivePanoArrived), e.on("panoArrived", this.loadVideoFirstFrame), e.on("render.prepare", this.render), t.on("click", this.clickhandler), () => {
|
|
547
|
-
e.off("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.off("models.refined", this.onFiveEveryReady), e.off("modeChange", this.handleFiveModeChange), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", this.handleFiveCameraUpdate), e.off("cameraFovUpdate", this.handleFiveCameraFovUpdate), e.off("cameraUpdate", o), e.off("panoArrived", this.handleFivePanoArrived), e.off("panoArrived", this.loadVideoFirstFrame), e.off("render.prepare", this.render), t.off("click", this.clickhandler), this.store.eventListenerDisposer = void 0;
|
|
548
|
-
};
|
|
549
|
-
}
|
|
550
537
|
addResizeListener() {
|
|
551
538
|
if (!this.store.resizeObserverDisposer && !this.store.resizeObserverDisposerAdding) {
|
|
552
539
|
const e = this.addResizeObserver();
|
|
@@ -595,6 +582,21 @@ class $i extends R {
|
|
|
595
582
|
var i, o, s, n, r, h;
|
|
596
583
|
((i = e.config) == null ? void 0 : i.renderType) !== "Mesh" && ((n = (s = (o = e.tag3DContentSvelte) == null ? void 0 : o.css3DInstance) == null ? void 0 : s.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((g) => g == null ? void 0 : g()), e.tag3DContentSvelte = void 0);
|
|
597
584
|
}
|
|
585
|
+
/**
|
|
586
|
+
* @description 添加 cameraUpdate, panoArrived 等事件监听
|
|
587
|
+
*/
|
|
588
|
+
addEventListener() {
|
|
589
|
+
const { five: e, hooks: t } = this;
|
|
590
|
+
let i = !1;
|
|
591
|
+
const o = y(() => {
|
|
592
|
+
i || (i = !0, e.ready().then(() => {
|
|
593
|
+
this.onFiveEveryReady(), i = !1;
|
|
594
|
+
}));
|
|
595
|
+
}, 150);
|
|
596
|
+
return e.on("cameraUpdate", o), this.handleFivePanoArrived(), e.on("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.on("models.refined", this.onFiveEveryReady), e.on("modeChange", this.handleFiveModeChange), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", this.handleFiveCameraUpdate), e.on("cameraFovUpdate", this.handleFiveCameraFovUpdate), e.on("panoArrived", this.handleFivePanoArrived), e.on("panoArrived", this.loadVideoFirstFrame), e.on("render.prepare", this.render), t.on("click", this.clickhandler), () => {
|
|
597
|
+
e.off("wantsMoveToPano", this.handleFiveWantsMoveToPano), e.off("models.refined", this.onFiveEveryReady), e.off("modeChange", this.handleFiveModeChange), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", this.handleFiveCameraUpdate), e.off("cameraFovUpdate", this.handleFiveCameraFovUpdate), e.off("cameraUpdate", o), e.off("panoArrived", this.handleFivePanoArrived), e.off("panoArrived", this.loadVideoFirstFrame), e.off("render.prepare", this.render), t.off("click", this.clickhandler), this.store.eventListenerDisposer = void 0;
|
|
598
|
+
};
|
|
599
|
+
}
|
|
598
600
|
}
|
|
599
601
|
export {
|
|
600
602
|
$i as PanoTagPluginController,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const e = {
|
|
2
2
|
globalConfig: {
|
|
3
3
|
visibleConfig: {
|
|
4
|
-
followModelVisibility: !0
|
|
4
|
+
followModelVisibility: !0,
|
|
5
|
+
visibleDistance: { max: 30 }
|
|
5
6
|
},
|
|
6
7
|
unfoldedConfig: {
|
|
7
8
|
autoUnfold: {
|
|
@@ -15,11 +16,6 @@ const e = {
|
|
|
15
16
|
}
|
|
16
17
|
},
|
|
17
18
|
contentTypeConfig: {
|
|
18
|
-
"[Panorama]": {
|
|
19
|
-
visibleConfig: {
|
|
20
|
-
visibleDistance: { max: 30 }
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
19
|
"[Mapview]": {
|
|
24
20
|
unfoldedConfig: {
|
|
25
21
|
autoUnfold: {
|
|
@@ -59,6 +59,11 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
|
|
|
59
59
|
* ```
|
|
60
60
|
*/
|
|
61
61
|
visibleFiveMode?: TagVisibleMode | ((tag: TagInstance) => TagVisibleMode);
|
|
62
|
+
/**
|
|
63
|
+
* @description 全景标签在模型中可见,点击后进入全景看向标签
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
66
|
+
entryFromModel?: boolean;
|
|
62
67
|
/**
|
|
63
68
|
* @description 当 visibleFiveMode 包含 'Floorplan' 或者 'MapView' 时,是否仅在当前楼层模型下可见
|
|
64
69
|
* @default false
|
|
@@ -2,11 +2,11 @@ function o(e) {
|
|
|
2
2
|
return e.stickType ? e.stickType : e.pointType === "PointTag" && e.dimensionType === "3D" ? "3DPoint" : e.pointType === "PlaneTag" ? "Plane" : "2DPoint";
|
|
3
3
|
}
|
|
4
4
|
function p(e) {
|
|
5
|
-
var t, i,
|
|
5
|
+
var t, i, r, a;
|
|
6
6
|
if (e.stickType || (e.stickType = o(e)), e.contentType === "VRLink" || e.contentType === "PanoLink" || e.contentType === "Link") {
|
|
7
7
|
const n = e;
|
|
8
|
-
!((i = (t = n.data) == null ? void 0 : t.icon) != null && i.url) && !((
|
|
9
|
-
url: "//
|
|
8
|
+
!((i = (t = n.data) == null ? void 0 : t.icon) != null && i.url) && !((a = (r = n.style) == null ? void 0 : r.point) != null && a.url) && (n.data.icon = {
|
|
9
|
+
url: "//vr-static.realsee-cdn.cn/release/web/test.09dee741.png",
|
|
10
10
|
steps: 28
|
|
11
11
|
});
|
|
12
12
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { notNil as c } from "../../shared-utils/isNil.js";
|
|
2
|
-
function
|
|
2
|
+
function d(e) {
|
|
3
3
|
const t = /* @__PURE__ */ new Map();
|
|
4
4
|
return e.forEach((a) => a.pipes.forEach((s) => t.set(s.id, s))), Array.from(t.values());
|
|
5
5
|
}
|
|
@@ -10,37 +10,37 @@ function v(e) {
|
|
|
10
10
|
);
|
|
11
11
|
return r || console.warn(`Cannot find pipeline with startLibraryID ${a} and endLibraryID ${s}`), r;
|
|
12
12
|
}).filter(c);
|
|
13
|
-
return
|
|
13
|
+
return d(t);
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function b(e) {
|
|
16
16
|
if (e.quality === 0)
|
|
17
|
-
return "//
|
|
17
|
+
return "//vr-static.realsee-cdn.cn/release/web/aqueous-system-demo/19/1.png";
|
|
18
18
|
if (e.quality === 1)
|
|
19
|
-
return "//
|
|
19
|
+
return "//vr-static.realsee-cdn.cn/release/web/aqueous-system-demo/19/2.png";
|
|
20
20
|
if (e.quality === 2)
|
|
21
|
-
return "//
|
|
21
|
+
return "//vr-static.realsee-cdn.cn/release/web/aqueous-system-demo/19/3.png";
|
|
22
22
|
if (e.quality === 3)
|
|
23
|
-
return "//
|
|
23
|
+
return "//vr-static.realsee-cdn.cn/release/web/aqueous-system-demo/19/4.png";
|
|
24
24
|
if (e.quality === 4)
|
|
25
|
-
return "//
|
|
25
|
+
return "//vr-static.realsee-cdn.cn/release/web/aqueous-system-demo/19/5.png";
|
|
26
26
|
if (e.isHot)
|
|
27
|
-
return "//
|
|
27
|
+
return "//vr-static.realsee-cdn.cn/release/web/aqueous-system-demo/19/6.png";
|
|
28
28
|
}
|
|
29
29
|
function w(e, t) {
|
|
30
30
|
const a = e.ConnectsDataset.map((r) => {
|
|
31
|
-
const n = r.data,
|
|
32
|
-
const i = e.LinesDataset.find((
|
|
31
|
+
const n = r.data, l = r.start, f = r.end, u = { isHot: r.waterType === 5, quality: r.waterType }, p = n.map((o) => {
|
|
32
|
+
const i = e.LinesDataset.find((g) => g.id === o);
|
|
33
33
|
if (!i)
|
|
34
34
|
return null;
|
|
35
|
-
const
|
|
36
|
-
return { id: i.id, radius: y, water: u, path:
|
|
35
|
+
const m = i.data, y = t != null && t.getPipeRadius ? t.getPipeRadius(i) : 1.6 / 100, q = t != null && t.getPipeUrl ? t.getPipeUrl(u) : b(u);
|
|
36
|
+
return { id: i.id, radius: y, water: u, path: m, texture: q };
|
|
37
37
|
}).filter(c);
|
|
38
|
-
return { startLibraryID:
|
|
38
|
+
return { startLibraryID: l, endLibraryID: f, pipes: p };
|
|
39
39
|
});
|
|
40
|
-
return { pipes:
|
|
40
|
+
return { pipes: d(a), pipelines: a };
|
|
41
41
|
}
|
|
42
42
|
export {
|
|
43
43
|
w as format,
|
|
44
|
-
|
|
44
|
+
b as getDefaultPipeUrl,
|
|
45
45
|
v as getPipesFromLibrary
|
|
46
46
|
};
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Create3DElementReturnType } from '../../../CSS3DRenderPlugin';
|
|
2
|
-
import
|
|
2
|
+
import * as THREE from 'three';
|
|
3
3
|
import type { Group, Mesh, Object3D } from 'three';
|
|
4
4
|
import { Vector3 } from 'three';
|
|
5
5
|
import type { Direction, Direction4, PositionFrom, ScalePosition } from '../typings';
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
var h = Object.defineProperty;
|
|
2
2
|
var c = (i, s, t) => s in i ? h(i, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[s] = t;
|
|
3
3
|
var n = (i, s, t) => (c(i, typeof s != "symbol" ? s + "" : s, t), t);
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
4
|
+
import * as l from "three";
|
|
5
|
+
import { Vector3 as a } from "three";
|
|
6
|
+
import { setObjectQuaternion as d } from "../utils/setObjectQuaternion.js";
|
|
7
|
+
import { IObject3D as b } from "../../three/IObject3D.js";
|
|
8
|
+
import { boundingBox as m, boundingSphere as u } from "../../three/boundingBox.js";
|
|
9
|
+
class r extends b {
|
|
9
10
|
constructor(t, e) {
|
|
10
|
-
var
|
|
11
|
+
var o, p;
|
|
11
12
|
super();
|
|
12
13
|
n(this, "originObject3D");
|
|
13
14
|
n(this, "onRender");
|
|
14
15
|
n(this, "positionFrom");
|
|
15
|
-
this.originObject3D = t, this.onRender = (
|
|
16
|
-
}, this.positionFrom = (
|
|
16
|
+
this.originObject3D = t, this.onRender = (o = e == null ? void 0 : e.onRender) != null ? o : () => {
|
|
17
|
+
}, this.positionFrom = (p = e == null ? void 0 : e.positionFrom) != null ? p : "objectPosition";
|
|
17
18
|
}
|
|
18
19
|
get helperObject() {
|
|
19
20
|
return this;
|
|
@@ -37,8 +38,8 @@ class o extends d {
|
|
|
37
38
|
return t.intersectObject(this, !0, e);
|
|
38
39
|
}
|
|
39
40
|
initialPosition(t) {
|
|
40
|
-
var e;
|
|
41
|
-
this.positionFrom === "objectPosition" ? this.position.copy(this.originObject3D.position) : this.positionFrom === "boundingBox" ? (e =
|
|
41
|
+
var e, o;
|
|
42
|
+
this.positionFrom === "objectPosition" ? this.position.copy(this.originObject3D.position) : this.positionFrom === "boundingBox" ? this.position.copy((e = m(this.originObject3D)) == null ? void 0 : e.getCenter(new l.Vector3())) : this.positionFrom === "boundingSphere" ? this.position.copy((o = u(this.originObject3D)) == null ? void 0 : o.center) : this.positionFrom instanceof a ? this.position.copy(this.positionFrom) : this.positionFrom instanceof Function && this.position.copy(this.positionFrom(this.originObject3D)), t && this.position.add(t);
|
|
42
43
|
}
|
|
43
44
|
setScaleByCamera(t) {
|
|
44
45
|
}
|
|
@@ -49,12 +50,12 @@ class o extends d {
|
|
|
49
50
|
this.scale.applyMatrix4(t);
|
|
50
51
|
}
|
|
51
52
|
setHelperQuaternion(t, e) {
|
|
52
|
-
|
|
53
|
+
d(this, t, e);
|
|
53
54
|
}
|
|
54
55
|
applyHelperQuaternion(t, e) {
|
|
55
56
|
if (e) {
|
|
56
|
-
const
|
|
57
|
-
this.position.copy(
|
|
57
|
+
const o = new a().subVectors(this.position, e).applyQuaternion(t).add(e);
|
|
58
|
+
this.position.copy(o);
|
|
58
59
|
}
|
|
59
60
|
this.applyQuaternion(t);
|
|
60
61
|
}
|
|
@@ -62,20 +63,20 @@ class o extends d {
|
|
|
62
63
|
this.removeFromParent();
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
|
-
class
|
|
66
|
+
class H extends r {
|
|
66
67
|
}
|
|
67
|
-
class
|
|
68
|
+
class D extends r {
|
|
68
69
|
}
|
|
69
|
-
class
|
|
70
|
+
class R extends r {
|
|
70
71
|
}
|
|
71
|
-
class v extends
|
|
72
|
+
class v extends r {
|
|
72
73
|
}
|
|
73
|
-
class B extends
|
|
74
|
+
class B extends r {
|
|
74
75
|
}
|
|
75
76
|
export {
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
D as BoundingBoxHelperAbstract,
|
|
78
|
+
H as MoveHelperAbstract,
|
|
78
79
|
B as RectangleScaleHelperAbstract,
|
|
79
|
-
|
|
80
|
+
R as RotateHelperAbstract,
|
|
80
81
|
v as ScaleHelperAbstract
|
|
81
82
|
};
|
|
@@ -19,7 +19,7 @@ export interface HelperOffset {
|
|
|
19
19
|
}
|
|
20
20
|
export type Color = THREE.Color | string | number;
|
|
21
21
|
export type ClassFunctionParameters<C extends new (...params: any[]) => any, F extends keyof InstanceType<C>> = Parameters<InstanceType<C>[F]>;
|
|
22
|
-
export type PositionFrom = 'objectPosition' | 'boundingBox' | THREE.Vector3 | (() => THREE.Vector3);
|
|
22
|
+
export type PositionFrom = 'objectPosition' | 'boundingBox' | 'boundingSphere' | THREE.Vector3 | ((object: THREE.Object3D) => THREE.Vector3);
|
|
23
23
|
export interface ObjectHelperControllers {
|
|
24
24
|
moveController?: MoveController;
|
|
25
25
|
rotateController?: RotateController;
|
|
@@ -33,6 +33,12 @@ export type ScaleCallback = (params: {
|
|
|
33
33
|
}) => any;
|
|
34
34
|
export type ScalePosition = {
|
|
35
35
|
id?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @description 拖动块的位置
|
|
38
|
+
*/
|
|
36
39
|
handlePosition: THREE.Vector3;
|
|
40
|
+
/**
|
|
41
|
+
* @description 基于什么位置去拖动,比如要向上拉伸一个物体,handlePosition在物体顶部,basePosition在物体底部
|
|
42
|
+
*/
|
|
37
43
|
basePosition: THREE.Vector3;
|
|
38
44
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.42.0
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.42.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@realsee/dnalogel",
|
|
3
|
-
"version": "3.42.0
|
|
3
|
+
"version": "3.42.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./libs/index.js",
|
|
6
6
|
"types": "./libs/index.d.ts",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"private": false,
|
|
14
14
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
15
15
|
"scripts": {
|
|
16
|
-
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|
|
17
16
|
"dev": "run-p dev:*",
|
|
17
|
+
"start": "NODE_ENV=production BUILD_MODULE=dist vite build -m production",
|
|
18
18
|
"light-dev": "npm run dev:dist",
|
|
19
19
|
"dev:libs": "NODE_ENV=development BUILD_MODULE=libs vite build -m development",
|
|
20
20
|
"dev:dist": "NODE_ENV=development BUILD_MODULE=dist vite build -m development",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"build:dist": "NODE_ENV=production BUILD_MODULE=dist vite build -m production",
|
|
25
25
|
"build:components": "NODE_ENV=production BUILD_MODULE=components vite build -m production",
|
|
26
26
|
"docs": "typedoc --options ./typedoc.json",
|
|
27
|
+
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|
|
27
28
|
"prepublishOnly": "run-p build",
|
|
28
29
|
"postpublish": "cnpm sync @realsee/dnalogel"
|
|
29
30
|
},
|
package/README.md
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<a href="https://realsee.js.org/"><img src="https://vrlab-public.ljcdn.com/common/file/web/ea031fa5-ad82-46b3-86c8-7b20ec1e635a.jpg" width="60" /></a>
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<p align="center">
|
|
7
|
-
<a href="https://www.npmjs.com/package/@realsee/dnalogel">
|
|
8
|
-
<img src="https://img.shields.io/npm/v/@realsee/dnalogel.svg" alt="npm version" >
|
|
9
|
-
</a>
|
|
10
|
-
<a href="https://packagephobia.now.sh/result?p=@realsee/dnalogel">
|
|
11
|
-
<img src="https://packagephobia.now.sh/badge?p=@realsee/dnalogel" alt="install size" >
|
|
12
|
-
</a>
|
|
13
|
-
<a href="https://github.com/realsee-developer/dnalogel/blob/main/TERMS.txt">
|
|
14
|
-
<img src="https://img.shields.io/npm/l/@realsee/dnalogel.svg" alt="license">
|
|
15
|
-
</a>
|
|
16
|
-
</p>
|
|
17
|
-
|
|
18
|
-
<h1 align="center">@realsee/dnalogel</h1>
|
|
19
|
-
|
|
20
|
-
# 👀 Overview
|
|
21
|
-
|
|
22
|
-
@realsee/dnalogel 将 [如视(realsee.com)](https://realsee.com) **VR 空间交互** 常用能力沉淀,并以 `Five Plugins` 形式进行抽象。
|
|
23
|
-
结合[如视三维空间重建渲染引擎 Five](https://open-platform.realsee.com/developer/docs/five/intro/)
|
|
24
|
-
与 [如视开放 API](https://open-platform.realsee.com/developer/openapi/?id=1001) ,可以制作出丰富多彩的三维空间应用。不论是经过线上环境千锤百炼的刚需功能,还是灵感一现的炫酷尝试,所有已经落地的功能我们均毫无保留的开源至github [realsee-developer/dnalogel](https://github.com/realsee-developer/dnalogel) 。
|
|
25
|
-
|
|
26
|
-
# 🔨 Usage
|
|
27
|
-
|
|
28
|
-
**1、安装**
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
npm install @realsee/dnalogel
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
yarn add @realsee/dnalogel
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
**2、插件注册**
|
|
39
|
-
|
|
40
|
-
```js
|
|
41
|
-
import { Five } from '@realsee/five'
|
|
42
|
-
import { Plugin } from '@realsee/dnalogel'
|
|
43
|
-
const five = new Five({
|
|
44
|
-
plugins: [[Plugin, 'PluginName', initOptions]],
|
|
45
|
-
})
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
**3、插件方法使用**
|
|
49
|
-
|
|
50
|
-
```js
|
|
51
|
-
// 不同插件提供的方法可能存在差异,请参考各插件 API 文档
|
|
52
|
-
five.plugins.PluginName.load(data)
|
|
53
|
-
five.plugins.PluginName.enable()
|
|
54
|
-
five.plugins.PluginName.disable()
|
|
55
|
-
five.plugins.PluginName.dispose()
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
**4、插件依赖数据获取**
|
|
59
|
-
|
|
60
|
-
您可以通过 [open API](https://open-platform.realsee.com/developer/open/api#/) 查看数据获取方式及相关 open API 。
|
|
61
|
-
|
|
62
|
-
# 📖 Documents
|
|
63
|
-
|
|
64
|
-
- [说明文档](https://open-platform.realsee.com/developer/docs/dnalogel/intro/)
|
|
65
|
-
- [API 文档](https://open-platform.realsee.com/developer/openapi/?id=1001)
|
|
66
|
-
- [demo 源码](https://github.com/realsee-developer/dnalogel)
|
|
67
|
-
- [数据依赖来源:open API](https://open-platform.realsee.com/developer/openapi/?id=1001)
|
|
68
|
-
|
|
69
|
-
# 💡 Preview
|
|
70
|
-
|
|
71
|
-
我们为每个插件书写了简单的效果示例,您可点击预览:
|
|
72
|
-
[@realsee/dnalogel showcase](https://realsee-developer.github.io/dnalogel/)
|
|
73
|
-
|
|
74
|
-
# 🧾 Lists
|
|
75
|
-
|
|
76
|
-
- 🔌 ModelViewPlugin:模型小窗插件
|
|
77
|
-
- 🔌 PanoFloorplanRadarPlugin:全景户型雷达图插件
|
|
78
|
-
- 🔌 ModelRoomLabelPlugin:模型态房屋标签插件
|
|
79
|
-
- 🔌 TopviewFloorplanPlugin:俯视模型户型图插件
|
|
80
|
-
- 🔌 ModelChassisCompassPlugin:模型底盘指南针插件
|
|
81
|
-
- 🔌 ModelEntryDoorGuidePlugin:模型入户门引导插件
|
|
82
|
-
- 🔌 CSS3DRenderPlugin:CSS3D渲染插件
|
|
83
|
-
- 🔌 CameraMovementPlugin:相机运镜插件
|
|
84
|
-
- 🔌 ModelFloorplanPlugin:模型户型图插件
|
|
85
|
-
- 🔌 PanoRulerPlugin:全景标尺插件
|
|
86
|
-
- 🔌 PanoCompassPlugin:全景指南针插件
|
|
87
|
-
- 其他插件持续更新中...
|
|
88
|
-
|
|
89
|
-
# 可能遇到的问题
|
|
90
|
-
|
|
91
|
-
1. webpack打包出现以下错误
|
|
92
|
-
|
|
93
|
-
```bash
|
|
94
|
-
Module not found: Error: Can't resolve '@realsee/five/line' in 'xxx/node_modules/@realsee/dnalogel/libs'
|
|
95
|
-
Did you mean 'index.js'?
|
|
96
|
-
BREAKING CHANGE: The request '@realsee/five/line' failed to resolve only because it was resolved as fully specified
|
|
97
|
-
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
|
|
98
|
-
The extension in the request is mandatory for it to be fully specified.
|
|
99
|
-
Add the extension to the request.
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
解决方案:在webpack配置里加以下rule
|
|
103
|
-
参考:[resolvefullyspecified](https://webpack.js.org/configuration/module/#resolvefullyspecified)
|
|
104
|
-
|
|
105
|
-
```js
|
|
106
|
-
{
|
|
107
|
-
test: /\.m?js$/,
|
|
108
|
-
resolve: {
|
|
109
|
-
fullySpecified: false, // disable the behaviour
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
# License
|
|
115
|
-
|
|
116
|
-
[TERMS](https://github.com/realsee-developer/dnalogel/blob/main/TERMS.txt)
|
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.
|
package/docs/assets/custom.css
DELETED
|
File without changes
|