@realsee/dnalogel 3.3.0-dev.5 → 3.3.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/index.cjs.js +5 -5
- package/dist/index.js +28 -12
- package/dist/index.umd.js +5 -5
- package/libs/CurrentPanoImagePlugin/Controller.js +27 -27
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +92 -76
- package/libs/PanoTagPlugin/controller/TagRender.js +10 -10
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
- package/docs/.nojekyll +0 -1
- package/docs/assets/highlight.css +0 -120
- package/docs/assets/main.js +0 -58
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1367
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -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 -476
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -856
- 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 -362
- package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -526
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -357
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -348
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -415
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +0 -337
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -347
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -483
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -344
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -483
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -309
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -330
- package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -355
- package/docs/interfaces/GuideLinePluginType.Route.html +0 -371
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -353
- 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 -350
- 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 -352
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -373
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -306
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -309
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -309
- package/docs/types/GuideLinePluginType.PathItem.html +0 -309
- package/docs/types/GuideLinePluginType.PluginData.html +0 -318
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var m = Object.defineProperty;
|
|
2
2
|
var g = Object.getOwnPropertySymbols;
|
|
3
3
|
var v = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var p = (r, o, e) => o in r ? m(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e,
|
|
4
|
+
var p = (r, o, e) => o in r ? m(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e, l = (r, o) => {
|
|
5
5
|
for (var e in o || (o = {}))
|
|
6
6
|
v.call(o, e) && p(r, e, o[e]);
|
|
7
7
|
if (g)
|
|
@@ -11,22 +11,22 @@ var p = (r, o, e) => o in r ? m(r, o, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
};
|
|
12
12
|
var n = (r, o, e) => (p(r, typeof o != "symbol" ? o + "" : o, e), e);
|
|
13
13
|
var f = (r, o, e) => new Promise((i, t) => {
|
|
14
|
-
var s = (
|
|
14
|
+
var s = (d) => {
|
|
15
15
|
try {
|
|
16
|
-
u(e.next(
|
|
16
|
+
u(e.next(d));
|
|
17
17
|
} catch (c) {
|
|
18
18
|
t(c);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, a = (d) => {
|
|
21
21
|
try {
|
|
22
|
-
u(e.throw(
|
|
22
|
+
u(e.throw(d));
|
|
23
23
|
} catch (c) {
|
|
24
24
|
t(c);
|
|
25
25
|
}
|
|
26
|
-
}, u = (
|
|
26
|
+
}, u = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(s, a);
|
|
27
27
|
u((e = e.apply(r, o)).next());
|
|
28
28
|
});
|
|
29
|
-
import * as
|
|
29
|
+
import * as h from "three";
|
|
30
30
|
import { Controller as M } from "../base/BasePlugin.js";
|
|
31
31
|
import { tweenProgress as A } from "../shared-utils/animationFrame/BetterTween.js";
|
|
32
32
|
import "hammerjs";
|
|
@@ -69,7 +69,7 @@ class K extends M {
|
|
|
69
69
|
pluginHidden: ""
|
|
70
70
|
});
|
|
71
71
|
// ==================== private properties ====================
|
|
72
|
-
n(this, "group", new
|
|
72
|
+
n(this, "group", new h.Group());
|
|
73
73
|
n(this, "mesh");
|
|
74
74
|
n(this, "textureLoadingPromise");
|
|
75
75
|
n(this, "opacityAnimeTween");
|
|
@@ -127,20 +127,20 @@ class K extends M {
|
|
|
127
127
|
visible: !0
|
|
128
128
|
};
|
|
129
129
|
this.state = Object.assign(t, i == null ? void 0 : i.initialState);
|
|
130
|
-
const s =
|
|
130
|
+
const s = l({
|
|
131
131
|
width: 1.4,
|
|
132
132
|
yOffset: 0.01,
|
|
133
133
|
yRotate: 0,
|
|
134
134
|
imageURL: this.absoluteUrl("/release/web/logo.7febb17f.png")
|
|
135
135
|
}, i == null ? void 0 : i.config);
|
|
136
|
-
this._config = s, this.group.name = "current-pano-image-plugin-group", this.mesh = new
|
|
137
|
-
new
|
|
138
|
-
new
|
|
136
|
+
this._config = s, this.group.name = "current-pano-image-plugin-group", this.mesh = new h.Mesh(
|
|
137
|
+
new h.PlaneBufferGeometry(this.config.width, this.config.width),
|
|
138
|
+
new h.MeshBasicMaterial({ transparent: !0, opacity: 0, depthTest: !1 })
|
|
139
139
|
), this.mesh.visible = !1, this.group.add(this.mesh), this.updateMeshQuaternion(this.config.yRotate), this.state.visible || (this.checkMsg.pluginHidden = "初始值设置为隐藏"), this.state.enabled || (this.checkMsg.pluginDisabled = "初始值设置为禁用"), this.state.enabled && this._enable({ userAction: !1 }), this.five.once("dispose", this.dispose);
|
|
140
140
|
}
|
|
141
141
|
/** 插件配置项 */
|
|
142
142
|
get config() {
|
|
143
|
-
return
|
|
143
|
+
return l({}, this._config);
|
|
144
144
|
}
|
|
145
145
|
/** 是否已经被销毁 */
|
|
146
146
|
get disposed() {
|
|
@@ -178,7 +178,7 @@ class K extends M {
|
|
|
178
178
|
return Promise.resolve();
|
|
179
179
|
if (this.disposed)
|
|
180
180
|
return Promise.reject(new Error("不能在已销毁的插件上调用 show"));
|
|
181
|
-
const i =
|
|
181
|
+
const i = l({ userAction: !0 }, e);
|
|
182
182
|
this.updateState({ visible: !0 }, i.userAction), this.checkMsg.pluginHidden = "", this._show(i);
|
|
183
183
|
});
|
|
184
184
|
}
|
|
@@ -190,7 +190,7 @@ class K extends M {
|
|
|
190
190
|
return f(this, null, function* () {
|
|
191
191
|
if (this.state.visible === !1)
|
|
192
192
|
return;
|
|
193
|
-
const i =
|
|
193
|
+
const i = l({ userAction: !0 }, e);
|
|
194
194
|
this.updateState({ visible: !1 }, i.userAction), this.checkMsg.pluginDisabled = "调用 hide 隐藏", this._hide(i);
|
|
195
195
|
});
|
|
196
196
|
}
|
|
@@ -205,8 +205,8 @@ class K extends M {
|
|
|
205
205
|
return;
|
|
206
206
|
const s = i.userAction !== void 0 ? i.userAction : !0;
|
|
207
207
|
if (this.updateState(e, s), e.enabled !== void 0 && t.enabled !== e.enabled && (e.enabled ? this.checkMsg.pluginDisabled = "" : this.checkMsg.pluginDisabled = "调用 setState 禁用", e.enabled ? this._enable({ userAction: s }) : this._disable({ userAction: s })), e.visible !== void 0 && t.visible !== e.visible) {
|
|
208
|
-
const
|
|
209
|
-
e.visible ? this.checkMsg.pluginHidden = "" : this.checkMsg.pluginHidden = "调用 setState 隐藏", e.visible ? this._show(
|
|
208
|
+
const a = { userAction: s, anime: { duration: 500 } };
|
|
209
|
+
e.visible ? this.checkMsg.pluginHidden = "" : this.checkMsg.pluginHidden = "调用 setState 隐藏", e.visible ? this._show(a) : this._hide(a);
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
/** 更改插件 Config
|
|
@@ -214,9 +214,9 @@ class K extends M {
|
|
|
214
214
|
* @param `options` `<Option> | <undefined>`
|
|
215
215
|
*/
|
|
216
216
|
updateConfig(e, i = {}) {
|
|
217
|
-
var
|
|
218
|
-
const t = this.config, s =
|
|
219
|
-
this._config = s, t.imageURL !== s.imageURL && this.reloadTexture(s.imageURL), t.yOffset !== s.yOffset && this.updateMeshPosition(this.five.getCurrentState().panoIndex), t.yRotate !== s.yRotate && this.updateMeshQuaternion(s.yRotate), t.width !== s.width && (this.mesh.geometry = new
|
|
217
|
+
var a;
|
|
218
|
+
const t = this.config, s = l(l({}, t), e);
|
|
219
|
+
this._config = s, t.imageURL !== s.imageURL && this.reloadTexture(s.imageURL), t.yOffset !== s.yOffset && this.updateMeshPosition(this.five.getCurrentState().panoIndex), t.yRotate !== s.yRotate && this.updateMeshQuaternion(s.yRotate), t.width !== s.width && (this.mesh.geometry = new h.PlaneBufferGeometry(s.width, s.width)), this.hooks.emit("configChange", { prevConfig: t, config: s, userAction: (a = i.userAction) != null ? a : !0 });
|
|
220
220
|
}
|
|
221
221
|
/** 问什么看不到模型 */
|
|
222
222
|
__whyCantSeeMesh() {
|
|
@@ -231,7 +231,7 @@ class K extends M {
|
|
|
231
231
|
}
|
|
232
232
|
updateState(e, i) {
|
|
233
233
|
const t = this.state;
|
|
234
|
-
this.state =
|
|
234
|
+
this.state = l(l({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: t, userAction: i });
|
|
235
235
|
}
|
|
236
236
|
/** 根据各种条件更新 Mesh 的可见性 */
|
|
237
237
|
updateMeshVisible() {
|
|
@@ -240,8 +240,8 @@ class K extends M {
|
|
|
240
240
|
}
|
|
241
241
|
/** 根据点位更新 Mesh 坐标 */
|
|
242
242
|
updateMeshPosition(e) {
|
|
243
|
-
var s,
|
|
244
|
-
const i = (u = (
|
|
243
|
+
var s, a, u;
|
|
244
|
+
const i = (u = (a = (s = this.five.work) == null ? void 0 : s.observers) == null ? void 0 : a[e]) == null ? void 0 : u.standingPosition, t = i == null ? void 0 : i.clone().setY(i.y + this.config.yOffset);
|
|
245
245
|
t && this.mesh.position.copy(t);
|
|
246
246
|
}
|
|
247
247
|
/** 重新加载贴图,调用时会先清除已有的贴图 */
|
|
@@ -251,19 +251,19 @@ class K extends M {
|
|
|
251
251
|
const i = P(e);
|
|
252
252
|
this.textureLoadingPromise = i;
|
|
253
253
|
const t = yield i;
|
|
254
|
-
this.textureLoadingPromise === i && (this.onTextureLoaded(t), this.textureLoadingPromise = null);
|
|
254
|
+
t.minFilter = h.LinearFilter, this.textureLoadingPromise === i && (this.onTextureLoaded(t), this.textureLoadingPromise = null);
|
|
255
255
|
}
|
|
256
256
|
this.updateMeshVisible();
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
259
|
/** north_rad 变化时,需要更新模型的旋转角度 */
|
|
260
260
|
updateMeshQuaternion(e) {
|
|
261
|
-
const i = new
|
|
261
|
+
const i = new h.Quaternion();
|
|
262
262
|
i.multiplyQuaternions(
|
|
263
263
|
// 沿着自身 X 轴旋转 -90 度
|
|
264
|
-
new
|
|
264
|
+
new h.Quaternion().setFromAxisAngle(new h.Vector3(1, 0, 0), -Math.PI / 2),
|
|
265
265
|
// 沿着自身 Z 轴旋转 rad 弧度
|
|
266
|
-
new
|
|
266
|
+
new h.Quaternion().setFromAxisAngle(new h.Vector3(0, 0, 1), e)
|
|
267
267
|
), this.mesh.quaternion.copy(i);
|
|
268
268
|
}
|
|
269
269
|
_enable(e) {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
var P = Object.defineProperty, V = Object.defineProperties;
|
|
2
|
-
var
|
|
2
|
+
var T = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var k = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var b = (
|
|
4
|
+
var F = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var b = (h, e, t) => e in h ? P(h, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[e] = t, u = (h, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
|
-
|
|
7
|
+
F.call(e, t) && b(h, t, e[t]);
|
|
8
8
|
if (k)
|
|
9
9
|
for (var t of k(e))
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
}, p = (
|
|
13
|
-
var i = (
|
|
14
|
-
import * as
|
|
15
|
-
import { logWarning as x, logError as
|
|
16
|
-
import { createLineGeometry as
|
|
17
|
-
import { isPanoramaLike as
|
|
10
|
+
L.call(e, t) && b(h, t, e[t]);
|
|
11
|
+
return h;
|
|
12
|
+
}, p = (h, e) => V(h, T(e));
|
|
13
|
+
var i = (h, e, t) => (b(h, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
|
+
import * as n from "three";
|
|
15
|
+
import { logWarning as x, logError as S } from "../../shared-utils/log.js";
|
|
16
|
+
import { createLineGeometry as U } from "../utils/createLineGeometry.js";
|
|
17
|
+
import { isPanoramaLike as M, isModelLike as _ } from "../../shared-utils/five/mode.js";
|
|
18
18
|
import "hammerjs";
|
|
19
19
|
import "@realsee/five";
|
|
20
20
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
21
21
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
22
22
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
23
|
-
import { BetterTween as
|
|
24
|
-
import { loadTexture as
|
|
23
|
+
import { BetterTween as O, tweenProgress as G } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
24
|
+
import { loadTexture as A } from "../../shared-utils/three/loadTexture.js";
|
|
25
25
|
import w from "../../PanoTagPlugin/controller/index.js";
|
|
26
|
-
import
|
|
26
|
+
import E from "../Components/Tag.js";
|
|
27
27
|
import { filterAdjacentDistinct as B } from "../utils/index.js";
|
|
28
28
|
import { objectAssignDeepExports as I } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
29
29
|
const R = (
|
|
@@ -155,8 +155,8 @@ class N {
|
|
|
155
155
|
i(this, "plugin");
|
|
156
156
|
i(this, "textureHasLoaded", !1);
|
|
157
157
|
i(this, "disposed", !1);
|
|
158
|
-
i(this, "flowAnime", new
|
|
159
|
-
i(this, "flickerAnime",
|
|
158
|
+
i(this, "flowAnime", new O({ progress: 0 }).to({ progress: 1 }).duration(1500).repeat(1 / 0));
|
|
159
|
+
i(this, "flickerAnime", G(300).yoyo(!0).repeat(5));
|
|
160
160
|
/** 缓存 panoGroup 中每个点距离起点的长度 */
|
|
161
161
|
i(this, "cacheLengths", []);
|
|
162
162
|
/** 为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
|
|
@@ -175,7 +175,7 @@ class N {
|
|
|
175
175
|
});
|
|
176
176
|
/** 模型状态变更 */
|
|
177
177
|
i(this, "onFiveModeChange", (e) => {
|
|
178
|
-
this.modeVisible = this.mode === "panorama" ?
|
|
178
|
+
this.modeVisible = this.mode === "panorama" ? M(e) : _(e), this.updateVisible();
|
|
179
179
|
});
|
|
180
180
|
i(this, "onFiveModelShownFloorChange", (e) => {
|
|
181
181
|
this.floorVisible = e === null || this.visibleFloorIndexes === null || this.visibleFloorIndexes.includes(e), this.updateVisible();
|
|
@@ -190,30 +190,30 @@ class N {
|
|
|
190
190
|
this.mesh.material.uniforms.vOffset.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
191
191
|
});
|
|
192
192
|
i(this, "onFlickerAnimeUpdate", (e) => {
|
|
193
|
-
var
|
|
194
|
-
const { progress: t } = e,
|
|
195
|
-
this.mesh.material.uniforms.flicker.value =
|
|
196
|
-
opacity:
|
|
193
|
+
var s, a, o, d;
|
|
194
|
+
const { progress: t } = e, r = 1 - t;
|
|
195
|
+
this.mesh.material.uniforms.flicker.value = r, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && y(this.startTagContainer.tag) && ((o = this.startTagContainer.app) == null || o.$set(p(u({}, this.startTagContainer.tag.data), {
|
|
196
|
+
opacity: r,
|
|
197
197
|
name: this.name,
|
|
198
|
-
distance: Math.round((a = (
|
|
199
|
-
}))), this.endTagContainer.tag && y(this.endTagContainer.tag) && ((
|
|
198
|
+
distance: Math.round((a = (s = this.curvePath) == null ? void 0 : s.getLength()) != null ? a : 0)
|
|
199
|
+
}))), this.endTagContainer.tag && y(this.endTagContainer.tag) && ((d = this.endTagContainer.app) == null || d.$set(p(u({}, this.endTagContainer.tag.data), { opacity: r })));
|
|
200
200
|
});
|
|
201
201
|
i(this, "logWarning", (e) => x("GuideLineModeItem: ", e));
|
|
202
|
-
i(this, "logError", (e) =>
|
|
202
|
+
i(this, "logError", (e) => S("GuideLineModeItem: ", e));
|
|
203
203
|
var a, o;
|
|
204
204
|
this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.startTagContainer = { tag: null, plugin: new w(this.five) }, this.endTagContainer = { tag: null, plugin: new w(this.five) };
|
|
205
|
-
const
|
|
205
|
+
const r = new n.BufferGeometry(), s = new n.ShaderMaterial({
|
|
206
206
|
vertexShader: R,
|
|
207
207
|
fragmentShader: W,
|
|
208
208
|
transparent: !0,
|
|
209
209
|
uniforms: {
|
|
210
210
|
map: { value: null },
|
|
211
211
|
useMapColor: { value: 0 },
|
|
212
|
-
mapColor: { value: new
|
|
212
|
+
mapColor: { value: new n.Color() },
|
|
213
213
|
mapOpacity: { value: 1 },
|
|
214
|
-
backgroundColor: { value: new
|
|
214
|
+
backgroundColor: { value: new n.Color() },
|
|
215
215
|
backgroundOpacity: { value: 0 },
|
|
216
|
-
borderColor: { value: new
|
|
216
|
+
borderColor: { value: new n.Color() },
|
|
217
217
|
borderOpacity: { value: 0 },
|
|
218
218
|
opacity: { value: 1 },
|
|
219
219
|
flicker: { value: 1 },
|
|
@@ -221,7 +221,7 @@ class N {
|
|
|
221
221
|
vOffset: { value: 0 }
|
|
222
222
|
}
|
|
223
223
|
});
|
|
224
|
-
this.mesh = new
|
|
224
|
+
this.mesh = new n.Mesh(r, s), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.updateVisible(), this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveModelShownFloorChange((o = (a = this.five.model) == null ? void 0 : a.shownFloor) != null ? o : null), this.flowAnime.onUpdate(this.onFlowAnimeUpdate), this.flickerAnime.onUpdate(this.onFlickerAnimeUpdate), this.parent.hooks.on("show", this.updateVisible), this.parent.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("show", this.updateVisible), this.plugin.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("enable", this.updateVisible), this.plugin.hooks.on("disable", this.updateVisible), this.plugin.hooks.on("dispose", this.dispose), this.five.on("modeChange", this.onFiveModeChange), this.five.on("modelShownFloorChange", this.onFiveModelShownFloorChange);
|
|
225
225
|
}
|
|
226
226
|
get panoGroup() {
|
|
227
227
|
return this._panoGroup;
|
|
@@ -268,65 +268,73 @@ class N {
|
|
|
268
268
|
return this.logError("disposed");
|
|
269
269
|
if (!this.five.work)
|
|
270
270
|
return this.logError("setPathByPanoGroup: work is not ready");
|
|
271
|
-
const
|
|
272
|
-
if (this._panoGroup =
|
|
273
|
-
const a = t.skipPanoGroup ?
|
|
271
|
+
const r = B(e);
|
|
272
|
+
if (this._panoGroup = r, (t == null ? void 0 : t.skipPanoGroup) !== void 0) {
|
|
273
|
+
const a = t.skipPanoGroup ? r.map((o) => this.five.work.observers[o]).map((o) => o.standingPosition.clone()) : null;
|
|
274
274
|
this.skippedPositions = a;
|
|
275
275
|
}
|
|
276
|
-
const
|
|
277
|
-
this.path =
|
|
276
|
+
const s = this.getPathFromPanoGroup(r, this.five.work, t);
|
|
277
|
+
this.path = s, this.setGeometryByPath(s, t);
|
|
278
278
|
}
|
|
279
279
|
/** 通过路径设置线条形状 */
|
|
280
280
|
setGeometryByPath(e, t) {
|
|
281
|
-
var
|
|
281
|
+
var f, v, C;
|
|
282
282
|
if (this.disposed)
|
|
283
283
|
return this.logError("disposed");
|
|
284
|
-
const
|
|
285
|
-
this.scale =
|
|
286
|
-
const { geometry: o, maxU:
|
|
284
|
+
const r = (f = t == null ? void 0 : t.scale) != null ? f : this.scale, s = (v = t == null ? void 0 : t.width) != null ? v : this.width, a = (C = t == null ? void 0 : t.unit_length) != null ? C : this.unitLength;
|
|
285
|
+
this.scale = r, this.width = s, this.unitLength = a;
|
|
286
|
+
const { geometry: o, maxU: d, curvePath: g, curvePoints: m } = U({
|
|
287
287
|
path: e,
|
|
288
|
-
width:
|
|
289
|
-
unitLength: a *
|
|
288
|
+
width: s * r,
|
|
289
|
+
unitLength: a * r,
|
|
290
290
|
skipPositions: this.skippedPositions
|
|
291
291
|
});
|
|
292
|
-
this._curvePath = g, this._curvePoints = m, this.mesh.geometry = o, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value =
|
|
293
|
-
const l = e,
|
|
294
|
-
this.path = l, this.geometryStyle =
|
|
292
|
+
this._curvePath = g, this._curvePoints = m, this.mesh.geometry = o, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = d, this.five.needsRender = !0;
|
|
293
|
+
const l = e, c = u(u({}, this.geometryStyle), t);
|
|
294
|
+
this.path = l, this.geometryStyle = c;
|
|
295
295
|
}
|
|
296
296
|
/** 设置线条材质 */
|
|
297
297
|
setMartial(e) {
|
|
298
|
-
var
|
|
298
|
+
var r;
|
|
299
299
|
if (this.disposed)
|
|
300
300
|
return this.logError("disposed");
|
|
301
|
-
(e == null ? void 0 : e.visible) !== void 0 && this.setDefaultVisible(e.visible), (e == null ? void 0 : e.color) !== void 0 && this.setColor(e.color), (e == null ? void 0 : e.opacity) !== void 0 && this.setOpacity(e.opacity), ((
|
|
302
|
-
const t =
|
|
301
|
+
(e == null ? void 0 : e.visible) !== void 0 && this.setDefaultVisible(e.visible), (e == null ? void 0 : e.color) !== void 0 && this.setColor(e.color), (e == null ? void 0 : e.opacity) !== void 0 && this.setOpacity(e.opacity), ((r = e == null ? void 0 : e.texture) == null ? void 0 : r.url) !== void 0 && this.setTextureUrl(e.texture.url), (e == null ? void 0 : e.background_color) !== void 0 && this.setBackgroundColor(e.background_color), (e == null ? void 0 : e.background_opacity) !== void 0 && this.setBackgroundOpacity(e.background_opacity), (e == null ? void 0 : e.border_color) !== void 0 && this.setBorderColor(e.border_color), (e == null ? void 0 : e.border_opacity) !== void 0 && this.setBorderOpacity(e.border_opacity);
|
|
302
|
+
const t = u(u({}, this.materialStyle), e);
|
|
303
303
|
this.materialStyle = t;
|
|
304
304
|
}
|
|
305
305
|
/** 设置模型状态 */
|
|
306
306
|
setMeshStyle(e) {
|
|
307
307
|
if (e != null && e.translate) {
|
|
308
|
-
const s = new
|
|
309
|
-
|
|
308
|
+
const s = new n.Vector3(), a = new n.Vector3().fromArray(e.translate);
|
|
309
|
+
a.y += this.heightOffset, s.add(a), this.mesh.position.copy(s), r(this.startTagContainer, a), r(this.endTagContainer, a);
|
|
310
310
|
}
|
|
311
|
-
const t =
|
|
311
|
+
const t = u(u({}, this.meshStyle), e);
|
|
312
312
|
this.meshStyle = t;
|
|
313
|
+
function r(s, a) {
|
|
314
|
+
if (!s.tag)
|
|
315
|
+
return;
|
|
316
|
+
const o = new n.Vector3().fromArray(s.tag.position);
|
|
317
|
+
o.add(a);
|
|
318
|
+
const d = o.toArray();
|
|
319
|
+
s.plugin.changeTagById(s.tag.id, { position: d });
|
|
320
|
+
}
|
|
313
321
|
}
|
|
314
322
|
/** 设置 Y 轴上的偏移量,为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
|
|
315
323
|
setHeightOffset(e) {
|
|
316
|
-
const t = new
|
|
317
|
-
this.meshStyle.translate && t.add(new
|
|
324
|
+
const t = new n.Vector3();
|
|
325
|
+
this.meshStyle.translate && t.add(new n.Vector3().fromArray(this.meshStyle.translate)), t.setY(t.y + e), this.mesh.position.copy(t), this.heightOffset = e, this.five.needsRender = !0;
|
|
318
326
|
}
|
|
319
327
|
/** 设置贴图颜色 */
|
|
320
328
|
setColor(e) {
|
|
321
329
|
if (this.disposed)
|
|
322
330
|
return this.logError("disposed");
|
|
323
|
-
e && (this.mesh.material.uniforms.mapColor.value = new
|
|
331
|
+
e && (this.mesh.material.uniforms.mapColor.value = new n.Color().set(e)), this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
324
332
|
}
|
|
325
333
|
/** 设置边框 */
|
|
326
334
|
setBorderColor(e) {
|
|
327
335
|
if (this.disposed)
|
|
328
336
|
return this.logError("disposed");
|
|
329
|
-
this.mesh.material.uniforms.borderColor.value = new
|
|
337
|
+
this.mesh.material.uniforms.borderColor.value = new n.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
330
338
|
}
|
|
331
339
|
/** 设置边框透明度 */
|
|
332
340
|
setBorderOpacity(e) {
|
|
@@ -338,7 +346,7 @@ class N {
|
|
|
338
346
|
setBackgroundColor(e) {
|
|
339
347
|
if (this.disposed)
|
|
340
348
|
return this.logError("disposed");
|
|
341
|
-
this.mesh.material.uniforms.backgroundColor.value = new
|
|
349
|
+
this.mesh.material.uniforms.backgroundColor.value = new n.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
342
350
|
}
|
|
343
351
|
/** 设置背景透明度 */
|
|
344
352
|
setBackgroundOpacity(e) {
|
|
@@ -362,15 +370,15 @@ class N {
|
|
|
362
370
|
setTextureUrl(e) {
|
|
363
371
|
if (this.disposed)
|
|
364
372
|
return this.logError("disposed");
|
|
365
|
-
this.textureUrl = e,
|
|
366
|
-
this.disposed || this.textureUrl === e && (t.wrapT =
|
|
373
|
+
this.textureUrl = e, A(e).then((t) => {
|
|
374
|
+
this.disposed || this.textureUrl === e && (t.wrapT = n.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.uniforms.map.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.mesh.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
|
|
367
375
|
});
|
|
368
376
|
}
|
|
369
377
|
setVisibleFloorIndexes(e) {
|
|
370
|
-
var t,
|
|
378
|
+
var t, r;
|
|
371
379
|
if (this.disposed)
|
|
372
380
|
return this.logError("disposed");
|
|
373
|
-
this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((
|
|
381
|
+
this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((r = (t = this.five.model) == null ? void 0 : t.shownFloor) != null ? r : null);
|
|
374
382
|
}
|
|
375
383
|
setStartTag(e) {
|
|
376
384
|
this.setTag("start", e);
|
|
@@ -397,19 +405,20 @@ class N {
|
|
|
397
405
|
var m;
|
|
398
406
|
if (!this.curvePoints || !this.curvePath)
|
|
399
407
|
return [];
|
|
400
|
-
const e = this.panoGroup.map((l) => this.five.work.observers[l]), t = this.curvePoints.length,
|
|
408
|
+
const e = this.panoGroup.map((l) => this.five.work.observers[l]), t = this.curvePoints.length, r = this.curvePath.getLength(), s = t - 1, a = r / s, o = (m = this.curvePath.getLengths(s)) != null ? m : [], d = [];
|
|
401
409
|
let g = 0;
|
|
402
410
|
for (let l = 0; l < t; l++) {
|
|
403
|
-
const
|
|
404
|
-
if (!
|
|
411
|
+
const c = this.curvePoints[l], f = e[g];
|
|
412
|
+
if (!f)
|
|
405
413
|
break;
|
|
406
|
-
|
|
414
|
+
f.standingPosition.clone().setY(0).distanceTo(c.clone().setY(0)) < a && (d.push(o[l]), g += 1);
|
|
407
415
|
}
|
|
408
|
-
return
|
|
416
|
+
return d;
|
|
409
417
|
}
|
|
410
418
|
setTag(e, t) {
|
|
411
|
-
const
|
|
412
|
-
t
|
|
419
|
+
const r = this.curvePath, s = e === "start" ? this.startTagContainer : this.endTagContainer;
|
|
420
|
+
if (!(t != null && t.data))
|
|
421
|
+
return s.plugin.clearTags();
|
|
413
422
|
const o = I({}, {
|
|
414
423
|
contentType: "Custom",
|
|
415
424
|
stickType: "2DPoint",
|
|
@@ -417,12 +426,19 @@ class N {
|
|
|
417
426
|
style: { point: { enabled: !1 } },
|
|
418
427
|
data: {}
|
|
419
428
|
}, t);
|
|
420
|
-
|
|
421
|
-
var
|
|
422
|
-
(
|
|
423
|
-
const
|
|
424
|
-
return
|
|
425
|
-
}),
|
|
429
|
+
s.tag = o, y(o) && (s.tag.element = (g) => {
|
|
430
|
+
var c, f;
|
|
431
|
+
(c = s.app) == null || c.$destroy();
|
|
432
|
+
const m = e === "start" ? p(u({}, o.data), { name: this.name, distance: Math.round((f = r.getLength()) != null ? f : 0), i18n: this.plugin.config.i18n }) : o.data, l = new E({ target: g, intro: !0, props: m });
|
|
433
|
+
return s.app = l, () => l.$destroy();
|
|
434
|
+
}), s.plugin.load({ tagList: [s.tag] });
|
|
435
|
+
const d = this.meshStyle.translate;
|
|
436
|
+
if (d && o.position) {
|
|
437
|
+
const g = new n.Vector3().fromArray(o.position), m = new n.Vector3().fromArray(d);
|
|
438
|
+
g.add(m), g.y += this.heightOffset;
|
|
439
|
+
const l = g.toArray();
|
|
440
|
+
s.plugin.changeTagById(s.tag.id, { position: l });
|
|
441
|
+
}
|
|
426
442
|
}
|
|
427
443
|
doShow() {
|
|
428
444
|
this.mode === "model" && this.flowAnime.play(), this.five.scene.add(this.mesh), this.startTagContainer.plugin.show(), this.endTagContainer.plugin.show(), this.five.needsRender = !0;
|
|
@@ -431,15 +447,15 @@ class N {
|
|
|
431
447
|
this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.mesh), this.startTagContainer.plugin.hide(), this.endTagContainer.plugin.hide(), this.five.needsRender = !0;
|
|
432
448
|
}
|
|
433
449
|
/** 通过 panoIndex 数组计算路径 */
|
|
434
|
-
getPathFromPanoGroup(e, t,
|
|
450
|
+
getPathFromPanoGroup(e, t, r) {
|
|
435
451
|
if (e.length < 2)
|
|
436
452
|
return [];
|
|
437
453
|
const a = e.map((o) => t.observers[o]).map((o) => o.standingPosition.toArray());
|
|
438
|
-
return [
|
|
454
|
+
return [u({ type: "CatmullRomCurve3", points: a }, r)];
|
|
439
455
|
}
|
|
440
456
|
}
|
|
441
|
-
function y(
|
|
442
|
-
return
|
|
457
|
+
function y(h) {
|
|
458
|
+
return h.contentType === "Custom";
|
|
443
459
|
}
|
|
444
460
|
const se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
445
461
|
__proto__: null,
|
|
@@ -27,7 +27,7 @@ var S = (c, l, t) => new Promise((e, o) => {
|
|
|
27
27
|
a((t = t.apply(c, l)).next());
|
|
28
28
|
});
|
|
29
29
|
import { TagComputer as x } from "./TagComputer.js";
|
|
30
|
-
import { Group as y, Quaternion as O, Vector3 as
|
|
30
|
+
import { Group as y, Quaternion as O, Vector3 as b, Matrix4 as v } from "three";
|
|
31
31
|
import I from "../Components/TagContainer.js";
|
|
32
32
|
import G from "../Components/Tag/index.js";
|
|
33
33
|
import { CSS3DRenderPlugin as F } from "../../CSS3DRenderPlugin/index.js";
|
|
@@ -203,7 +203,7 @@ class ui extends x {
|
|
|
203
203
|
t.mediaPlane = new k(t.data.mediaData[0].url, t.data.mediaPosition.map(g), {
|
|
204
204
|
objectFit: t.data.objectFit
|
|
205
205
|
});
|
|
206
|
-
const n = new
|
|
206
|
+
const n = new b().addVectors(r[0], r[2]).divideScalar(2);
|
|
207
207
|
t.mediaPlane.position.copy(n), i.add(t.mediaPlane);
|
|
208
208
|
}
|
|
209
209
|
this.getRenderType(t) !== "Mesh" && (i.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(t, i), i.updateTagCss3DObjectMatrix());
|
|
@@ -262,8 +262,8 @@ class ui extends x {
|
|
|
262
262
|
d.onVideoReady = (u) => {
|
|
263
263
|
u.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: d.videoInstance }));
|
|
264
264
|
};
|
|
265
|
-
const
|
|
266
|
-
d.initialRenderHooks(
|
|
265
|
+
const T = (u) => (this.five.on("renderFrame", u), () => this.five.off("renderFrame", u));
|
|
266
|
+
d.initialRenderHooks(T), e.mediaPlane = d, this.imagePlaneGroup.add(e.mediaPlane);
|
|
267
267
|
}
|
|
268
268
|
});
|
|
269
269
|
}
|
|
@@ -298,7 +298,7 @@ class ui extends x {
|
|
|
298
298
|
}
|
|
299
299
|
return;
|
|
300
300
|
} else {
|
|
301
|
-
if (D(e) && !((o = e.model) != null && o.object) || ((i = e.state) == null ? void 0 : i.visible) === !1 || !this.state.visible || !this.state.enabled
|
|
301
|
+
if (D(e) && !((o = e.model) != null && o.object) || ((i = e.state) == null ? void 0 : i.visible) === !1 || !this.state.visible || !this.state.enabled)
|
|
302
302
|
return;
|
|
303
303
|
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = F(this.five)), e.stickType === "3DPoint" && !e.normal)
|
|
304
304
|
return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
|
|
@@ -315,10 +315,10 @@ class ui extends x {
|
|
|
315
315
|
p.container.style.backgroundColor = P, p.container.style.border = `3px solid ${P}`, this.css3DRenderPlugin.hooks.on("render", () => {
|
|
316
316
|
var d;
|
|
317
317
|
if (m.css3DObject.opacityMesh && n.clickable !== !1) {
|
|
318
|
-
const
|
|
318
|
+
const T = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (u) => {
|
|
319
319
|
this.hooks.emit("click", { event: u, target: "TagContent", tag: e });
|
|
320
320
|
});
|
|
321
|
-
(d = this.store.css3DRenderDisposer.get(e.id)) == null || d.push(
|
|
321
|
+
(d = this.store.css3DRenderDisposer.get(e.id)) == null || d.push(T);
|
|
322
322
|
}
|
|
323
323
|
});
|
|
324
324
|
}
|
|
@@ -378,15 +378,15 @@ class ui extends x {
|
|
|
378
378
|
* @param model 模型
|
|
379
379
|
*/
|
|
380
380
|
updateTagCss3DObjectMatrix(t, e) {
|
|
381
|
-
var
|
|
382
|
-
const o = (u = (
|
|
381
|
+
var T, u, M;
|
|
382
|
+
const o = (u = (T = this.getTagConfig(t).tag3DConfig) == null ? void 0 : T.ratio) != null ? u : 216e-5, i = (M = t.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
|
|
383
383
|
if (!i)
|
|
384
384
|
return;
|
|
385
385
|
const s = D(t) ? t.data.mediaPosition : t.position;
|
|
386
386
|
if (!s || s.length !== 4 || !Array.isArray(s[0]) || !Array.isArray(s[2]))
|
|
387
387
|
return;
|
|
388
388
|
e.updateWorldMatrix(!1, !1);
|
|
389
|
-
const a = e.matrixWorld, r = new
|
|
389
|
+
const a = e.matrixWorld, r = new b().fromArray(s[0]), n = new b().fromArray(s[2]), p = $(r, n).add(new b(0, 0, 5e-4)), m = new v().setPosition(p), h = new v().makeScale(o, o, o), P = new v().multiply(a).multiply(m).multiply(h);
|
|
390
390
|
P.decompose(i.position, i.quaternion, i.scale);
|
|
391
391
|
const d = i.opacityMesh;
|
|
392
392
|
d && P.decompose(d.position, d.quaternion, d.scale);
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.3.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.3.1",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "3.3.
|
|
10
|
+
"version": "3.3.1",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|
package/docs/.nojekyll
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|