@realsee/dnalogel 3.2.0-dev.7 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/GuideLinePlugin/GuideLineItem.d.ts +0 -1
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +10 -1
- package/dist/GuideLinePlugin/typing.d.ts +6 -1
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +4 -8
- package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +0 -1
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -2
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +3 -2
- package/dist/index.cjs.js +54 -54
- package/dist/index.js +3052 -3052
- package/dist/index.umd.js +51 -51
- package/dist/shared-utils/five/getFloorIndex.d.ts +8 -2
- package/libs/CruisePlugin/Controller.js +34 -35
- package/libs/CruisePlugin/index.js +5 -6
- package/libs/GuideLinePlugin/Controller.js +40 -41
- package/libs/GuideLinePlugin/GuideLineItem/index.js +33 -36
- package/libs/GuideLinePlugin/GuideLineItem.d.ts +0 -1
- package/libs/GuideLinePlugin/GuideLineItem.js +2 -3
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +95 -72
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +10 -1
- package/libs/GuideLinePlugin/GuideLineModeItem.js +2 -3
- package/libs/GuideLinePlugin/index.js +7 -8
- package/libs/GuideLinePlugin/typing.d.ts +6 -1
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +26 -26
- package/libs/PanoTagPlugin/controller/TagComputer.js +95 -89
- package/libs/PanoTagPlugin/controller/TagRender.js +81 -81
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +4 -8
- package/libs/PanoTagPlugin/controller/TagUtil.js +107 -123
- package/libs/PanoTagPlugin/controller/index.js +35 -40
- package/libs/PanoTagPlugin/index.js +11 -12
- package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +0 -1
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -2
- package/libs/PanoTagPlugin/utils/tagPosition.d.ts +3 -2
- package/libs/PanoTagPlugin/utils/tagPosition.js +15 -15
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +116 -117
- package/libs/shared-utils/five/getFloorIndex.d.ts +8 -2
- package/libs/shared-utils/five/getFloorIndex.js +12 -16
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
- package/dist/shared-utils/five/transformPosition.d.ts +0 -2
- package/docs/.nojekyll +0 -1
- package/docs/assets/highlight.css +0 -120
- package/docs/assets/main.js +0 -58
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1367
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -725
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -678
- package/docs/classes/CSS3DRender.html +0 -773
- package/docs/classes/CruisePluginController.html +0 -672
- package/docs/classes/GuideLineItem.GuideLineItem.html +0 -491
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -792
- package/docs/classes/Magnifier.html +0 -480
- package/docs/classes/ModelRoomLabelController.html +0 -398
- package/docs/classes/Object3DHelperController.html +0 -640
- package/docs/classes/PaintBrush.html +0 -502
- package/docs/classes/PanoMeasurePluginLine.html +0 -522
- package/docs/classes/PanoMeasurePluginModel.html +0 -571
- package/docs/classes/PanoMeasurePluginPoint.html +0 -362
- package/docs/classes/PanoMeasurePluginPolyline.html +0 -567
- package/docs/classes/PanoTagPluginController.html +0 -1077
- package/docs/classes/Util.BetterTween.html +0 -416
- package/docs/classes/Util.Interval.html +0 -432
- package/docs/classes/Util.LineSegments.html +0 -384
- package/docs/classes/Util.Magnifier.html +0 -503
- package/docs/classes/Util.Object3D.html +0 -406
- package/docs/classes/Util.PointDomHelper.html +0 -407
- package/docs/classes/Util.PointHelper.html +0 -398
- package/docs/classes/Util.PointSelectorHelper.html +0 -454
- package/docs/classes/Util.Rectangle.html +0 -455
- package/docs/enums/CameraMovementEffect.html +0 -310
- package/docs/enums/ContentType.html +0 -446
- package/docs/enums/DIRECTION.html +0 -320
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -320
- package/docs/enums/DimensionType.html +0 -310
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -313
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -320
- package/docs/enums/PaintBrushTypeEnum.html +0 -313
- package/docs/enums/PointType.html +0 -310
- package/docs/enums/Rotation.html +0 -317
- package/docs/functions/AreaMakerPlugin.html +0 -290
- package/docs/functions/CSS3DRenderPlugin.html +0 -288
- package/docs/functions/CameraMovementPlugin.html +0 -293
- package/docs/functions/CruisePlugin.html +0 -290
- package/docs/functions/CurrentPanoImagePlugin.html +0 -290
- package/docs/functions/GuideLinePlugin.html +0 -290
- package/docs/functions/ItemLabelPlugin.html +0 -290
- package/docs/functions/MapviewFloorplanPlugin.html +0 -290
- package/docs/functions/ModelChassisCompassPlugin.html +0 -293
- package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -293
- package/docs/functions/ModelFloorplanPlugin.html +0 -290
- package/docs/functions/ModelItemLabelPlugin.html +0 -290
- package/docs/functions/ModelRoomLabelPlugin.html +0 -288
- package/docs/functions/ModelTVVideoPlugin.html +0 -290
- package/docs/functions/ModelViewPlugin.html +0 -293
- package/docs/functions/Object3DHelperPlugin.html +0 -288
- package/docs/functions/PanoCompassPlugin.html +0 -290
- package/docs/functions/PanoCursorRaycasterPlugin.html +0 -294
- package/docs/functions/PanoDoorLabelPlugin.html +0 -290
- package/docs/functions/PanoFloorplanRadarPlugin.html +0 -290
- package/docs/functions/PanoMeasurePlugin.html +0 -290
- package/docs/functions/PanoRulerPlugin.html +0 -293
- package/docs/functions/PanoRulerProPlugin.html +0 -293
- package/docs/functions/PanoSpatialTagPlugin.html +0 -293
- package/docs/functions/PanoTagPlugin.html +0 -295
- package/docs/functions/PanoVideoPlugin.html +0 -299
- package/docs/functions/PipelinePlugin.html +0 -288
- package/docs/functions/TopviewFloorplanPlugin.html +0 -290
- package/docs/functions/Util.absoluteUrl.html +0 -326
- package/docs/functions/Util.checkFiveModelLoaded.html +0 -329
- package/docs/functions/Util.equal.html +0 -338
- package/docs/functions/Util.getCoordsFromClient.html +0 -328
- package/docs/functions/Util.getCoordsFromElement.html +0 -328
- package/docs/functions/Util.getFrameTime.html +0 -320
- package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -328
- package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -328
- package/docs/functions/Util.isAbsoluteURL.html +0 -321
- package/docs/functions/Util.isModelLike.html +0 -321
- package/docs/functions/Util.isNil.html +0 -329
- package/docs/functions/Util.isPanoramaLike.html +0 -321
- package/docs/functions/Util.nextFrame.html +0 -334
- package/docs/functions/Util.notNil.html +0 -329
- package/docs/functions/Util.requestAnimationFrameInterval.html +0 -350
- package/docs/functions/Util.tweenProgress.html +0 -323
- package/docs/functions/Util.uuid.html +0 -319
- package/docs/functions/pluginFlag.html +0 -288
- package/docs/index.html +0 -354
- package/docs/interfaces/AddTagConfig.html +0 -303
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -329
- package/docs/interfaces/AreaMakerPluginType.Config.html +0 -334
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -620
- package/docs/interfaces/AreaMakerPluginType.Params.html +0 -333
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -383
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -368
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -333
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -326
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -325
- package/docs/interfaces/AreaMakerPluginType.State.html +0 -354
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -449
- package/docs/interfaces/CSS3DRenderPluginState.html +0 -325
- package/docs/interfaces/CameraMovementPluginExportType.html +0 -358
- package/docs/interfaces/CruisePluginTypes.Config.html +0 -359
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -361
- package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -696
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -385
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -421
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -411
- package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -351
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -319
- package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -408
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -382
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -521
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -323
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -315
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -337
- package/docs/interfaces/EventMap.html +0 -542
- package/docs/interfaces/FloorplanBounding.html +0 -332
- package/docs/interfaces/FloorplanData.html +0 -335
- package/docs/interfaces/FloorplanEntrance.html +0 -360
- package/docs/interfaces/FloorplanExtraObject.html +0 -350
- package/docs/interfaces/FloorplanExtraObject3D.html +0 -339
- package/docs/interfaces/FloorplanFloorData.html +0 -328
- package/docs/interfaces/FloorplanImagePosition.html +0 -314
- package/docs/interfaces/FloorplanObserver.html +0 -332
- package/docs/interfaces/FloorplanOutlineItem.html +0 -328
- package/docs/interfaces/FloorplanPosition.html +0 -314
- package/docs/interfaces/FloorplanRoomItem.html +0 -379
- package/docs/interfaces/FloorplanRoomLabelItem.html +0 -320
- package/docs/interfaces/FloorplanServerBounding.html +0 -332
- package/docs/interfaces/FloorplanServerComputedData.html +0 -331
- package/docs/interfaces/FloorplanServerData.html +0 -314
- package/docs/interfaces/FloorplanServerDoorItem.html +0 -331
- package/docs/interfaces/FloorplanServerDoorPosition.html +0 -317
- package/docs/interfaces/FloorplanServerEntrance.html +0 -360
- package/docs/interfaces/FloorplanServerFloorData.html +0 -328
- package/docs/interfaces/FloorplanServerImagePosition.html +0 -314
- package/docs/interfaces/FloorplanServerObserver.html +0 -332
- package/docs/interfaces/FloorplanServerOutlineItem.html +0 -328
- package/docs/interfaces/FloorplanServerPosition.html +0 -314
- package/docs/interfaces/FloorplanServerRoomItem.html +0 -391
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -320
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -323
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -361
- package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -525
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -356
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -347
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -414
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -346
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -471
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -343
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -471
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -308
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -329
- package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -354
- package/docs/interfaces/GuideLinePluginType.Route.html +0 -370
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -352
- package/docs/interfaces/HelperOffset.html +0 -332
- package/docs/interfaces/ImagePlaneGroup.html +0 -306
- package/docs/interfaces/ItemLabelPluginData.html +0 -303
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -388
- package/docs/interfaces/ItemLabelPluginParametersType.html +0 -324
- package/docs/interfaces/MinMax.html +0 -310
- package/docs/interfaces/ModelChassisCompassPluginData.html +0 -310
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -346
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -310
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -317
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -354
- package/docs/interfaces/ModelItemLabelPluginData.html +0 -303
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -388
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -310
- package/docs/interfaces/ModelRoomLabelPluginData.html +0 -303
- package/docs/interfaces/ModelTVVideoPluginData.html +0 -324
- package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -348
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -303
- package/docs/interfaces/ModelViewPluginExportType.html +0 -416
- package/docs/interfaces/Object3DHelperState.html +0 -317
- package/docs/interfaces/ObjectHelperControllers.html +0 -324
- package/docs/interfaces/PaintBrushAction.html +0 -363
- package/docs/interfaces/PaintBrushConfigs.html +0 -361
- package/docs/interfaces/PaintBrushState.html +0 -345
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -425
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -282
- package/docs/interfaces/PanoMeasureParameterType.html +0 -449
- package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -317
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -314
- package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -310
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -320
- package/docs/interfaces/PanoRulerPluginExportType.html +0 -377
- package/docs/interfaces/PanoRulerPluginOptions.html +0 -326
- package/docs/interfaces/PanoRulerPluginParameterType.html +0 -317
- package/docs/interfaces/PanoRulerProPluginExportType.html +0 -353
- package/docs/interfaces/PanoRulerProPluginOptions.html +0 -323
- package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -310
- package/docs/interfaces/PanoRulerProPluginState.html +0 -317
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -296
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -285
- package/docs/interfaces/PanoSpatialTagPluginData.html +0 -353
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -335
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -431
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -331
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -352
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -338
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -331
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -323
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -341
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -314
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -420
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -314
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -349
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -368
- package/docs/interfaces/Point.html +0 -317
- package/docs/interfaces/Room.html +0 -324
- package/docs/interfaces/RoomInfo.html +0 -310
- package/docs/interfaces/RoomLabel.html +0 -386
- package/docs/interfaces/RoomRules.html +0 -285
- package/docs/interfaces/Rooms.html +0 -285
- package/docs/interfaces/Scissor.html +0 -344
- package/docs/interfaces/State.html +0 -331
- package/docs/interfaces/TagCacheInterface.html +0 -362
- package/docs/interfaces/TagConfig.html +0 -565
- package/docs/interfaces/TagGLTFObjectGroup.html +0 -306
- package/docs/interfaces/TagIconUrl.html +0 -363
- package/docs/interfaces/TagObjectGroup.html +0 -306
- package/docs/interfaces/TagStyle.html +0 -316
- package/docs/interfaces/Tags.html +0 -2688
- package/docs/interfaces/TemporaryState.html +0 -303
- package/docs/interfaces/Util.MagnifierParameter.html +0 -391
- package/docs/interfaces/Util.MouseGroupParameter.html +0 -350
- package/docs/interfaces/Util.PointIntersection.html +0 -365
- package/docs/modules/AreaMakerPluginType.html +0 -323
- package/docs/modules/CruisePluginTypes.html +0 -328
- package/docs/modules/CurrentPanoImagePluginType.html +0 -297
- package/docs/modules/GuideLineItem.html +0 -289
- package/docs/modules/GuideLineModeItem.html +0 -294
- package/docs/modules/GuideLinePluginType.html +0 -348
- package/docs/modules/PanoVideoPluginType.html +0 -301
- package/docs/modules/Util.html +0 -351
- package/docs/modules.html +0 -540
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -331
- package/docs/types/AreaMakerPluginType.PluginData.html +0 -301
- package/docs/types/AreaMakerPluginType.ServerData.html +0 -301
- package/docs/types/ArrayPosition.html +0 -279
- package/docs/types/AudioAppearance.html +0 -279
- package/docs/types/AudioTagTypeConfigKey.html +0 -279
- package/docs/types/CSS3DRenderExportType.html +0 -279
- package/docs/types/CSS3DRenderPluginExportType.html +0 -279
- package/docs/types/CSS3DRenderPluginParameterType.html +0 -279
- package/docs/types/ClassFunctionParameters.html +0 -286
- package/docs/types/Color.html +0 -279
- package/docs/types/ContentTypeConfigKey.html +0 -279
- package/docs/types/ContentTypeConfigKeySplit.html +0 -279
- package/docs/types/ContentTypeMap.html +0 -279
- package/docs/types/Create3DDomContainerReturnType.html +0 -279
- package/docs/types/Create3DElementReturnType.html +0 -279
- package/docs/types/CruisePluginExportType.html +0 -279
- package/docs/types/CruisePluginTypes.CruiseData.html +0 -318
- package/docs/types/CruisePluginTypes.MoveEffect.html +0 -295
- package/docs/types/CurrentPanoImagePluginExportType.html +0 -279
- package/docs/types/DeprecatedMediaPlaneProperty.html +0 -291
- package/docs/types/DeprecatedTagProperty.html +0 -294
- package/docs/types/Direction-1.html +0 -279
- package/docs/types/Direction4.html +0 -279
- package/docs/types/ElementRenderer.html +0 -303
- package/docs/types/FloorplanRuleLabels.html +0 -282
- package/docs/types/FloorplanServerRuleLabels.html +0 -279
- package/docs/types/GuideLinePluginExportType.html +0 -279
- package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -351
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -372
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -305
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -308
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -308
- package/docs/types/GuideLinePluginType.PathItem.html +0 -308
- package/docs/types/GuideLinePluginType.PluginData.html +0 -317
- package/docs/types/HelperEventMap.html +0 -517
- package/docs/types/LoadTagConfig.html +0 -279
- package/docs/types/MapviewFloorplanPluginParameterType.html +0 -279
- package/docs/types/MapviewFloorplanPluginReturnType.html +0 -279
- package/docs/types/MediaData.html +0 -295
- package/docs/types/MediaStore.html +0 -284
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -286
- package/docs/types/ModelFloorplanPluginParameterType.html +0 -279
- package/docs/types/ModelFloorplanPluginReturnType.html +0 -279
- package/docs/types/ModelId.html +0 -279
- package/docs/types/ModelRoomLabelPluginParameters.html +0 -279
- package/docs/types/ModelRoomLabelPluginReturnType.html +0 -279
- package/docs/types/MoveArgs.html +0 -289
- package/docs/types/MoveOpts.html +0 -287
- package/docs/types/Object3DHelperEventMap.html +0 -372
- package/docs/types/ObjectFit.html +0 -279
- package/docs/types/PaintBrushEventMap.html +0 -310
- package/docs/types/PanoCompassPluginData.html +0 -279
- package/docs/types/PanoCompassPluginExportType.html +0 -279
- package/docs/types/PanoCompassPluginParameterType.html +0 -279
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -279
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -279
- package/docs/types/PanoIndex.html +0 -279
- package/docs/types/PanoMeasurePluginEvent.html +0 -279
- package/docs/types/PanoMeasureReturnType.html +0 -279
- package/docs/types/PanoSpatialTagPluginId.html +0 -279
- package/docs/types/PanoTagPluginExportInterface.html +0 -279
- package/docs/types/PanoTagPluginParamsInterface.html +0 -279
- package/docs/types/PanoVideoPluginParameterType.html +0 -279
- package/docs/types/PanoVideoPluginReturnType.html +0 -279
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -287
- package/docs/types/PipelinePluginParameterType.html +0 -279
- package/docs/types/PipelinePluginReturnType.html +0 -279
- package/docs/types/PlaneTag.html +0 -287
- package/docs/types/Point2DTag.html +0 -287
- package/docs/types/Point3DTag.html +0 -287
- package/docs/types/PointTag.html +0 -284
- package/docs/types/PointTagInstance.html +0 -284
- package/docs/types/Position.html +0 -279
- package/docs/types/RotateArgs.html +0 -291
- package/docs/types/RotateOpts.html +0 -287
- package/docs/types/RuleLabelsKey.html +0 -279
- package/docs/types/RuleLabelsValue.html +0 -279
- package/docs/types/StickType.html +0 -279
- package/docs/types/Tag.html +0 -345
- package/docs/types/Tag2D.html +0 -287
- package/docs/types/Tag3D.html +0 -287
- package/docs/types/TagConfigByKey.html +0 -284
- package/docs/types/TagContentType.html +0 -279
- package/docs/types/TagDimensionType.html +0 -281
- package/docs/types/TagElement.html +0 -289
- package/docs/types/TagEvents.html +0 -332
- package/docs/types/TagGLTFObject.html +0 -302
- package/docs/types/TagHooks.html +0 -279
- package/docs/types/TagId.html +0 -279
- package/docs/types/TagInstance.html +0 -355
- package/docs/types/TagPointType.html +0 -282
- package/docs/types/TagRendererMap.html +0 -284
- package/docs/types/TopviewFloorplanPluginParameterType.html +0 -279
- package/docs/types/TopviewFloorplanPluginReturnType.html +0 -279
- package/docs/types/WorkCode.html +0 -279
- package/docs/variables/FLOOR_TYPE_MAP.html +0 -289
- package/docs/variables/PLUGIN.html +0 -279
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -282
- package/docs/variables/ROOM_TYPE_MAP.html +0 -289
- package/docs/variables/defaultGlobalConfig.html +0 -279
- package/docs/variables/itemLabelPluginServerParams.html +0 -286
- package/docs/variables/modelItemLabelPluginServerParams.html +0 -286
- package/docs/variables/modelRoomLabelPluginServerParams.html +0 -286
- package/libs/shared-utils/five/transformPosition.d.ts +0 -2
- package/libs/shared-utils/five/transformPosition.js +0 -10
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var P = Object.defineProperty, V = Object.defineProperties;
|
|
2
|
+
var F = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var k = Object.getOwnPropertySymbols;
|
|
4
|
+
var L = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var b = (n, e, t) => e in n ? P(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, d = (n, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
|
|
7
|
+
L.call(e, t) && b(n, t, e[t]);
|
|
8
|
+
if (k)
|
|
9
|
+
for (var t of k(e))
|
|
10
|
+
T.call(e, t) && b(n, t, e[t]);
|
|
11
11
|
return n;
|
|
12
|
-
},
|
|
13
|
-
var i = (n, e, t) => (
|
|
14
|
-
import * as
|
|
15
|
-
import { logWarning as
|
|
16
|
-
import { createLineGeometry as
|
|
17
|
-
import { isPanoramaLike as
|
|
12
|
+
}, p = (n, e) => V(n, F(e));
|
|
13
|
+
var i = (n, e, t) => (b(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
|
+
import * as h from "three";
|
|
15
|
+
import { logWarning as x, logError as U } from "../../shared-utils/log.js";
|
|
16
|
+
import { createLineGeometry as S } from "../utils/createLineGeometry.js";
|
|
17
|
+
import { isPanoramaLike as _, isModelLike as M } 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
|
|
23
|
+
import { BetterTween as G, tweenProgress as O } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
24
24
|
import { loadTexture as E } from "../../shared-utils/three/loadTexture.js";
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import { filterAdjacentDistinct as
|
|
28
|
-
import { objectAssignDeepExports as
|
|
29
|
-
const
|
|
25
|
+
import w from "../../PanoTagPlugin/controller/index.js";
|
|
26
|
+
import A from "../Components/Tag.js";
|
|
27
|
+
import { filterAdjacentDistinct as B } from "../utils/index.js";
|
|
28
|
+
import { objectAssignDeepExports as I } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
29
|
+
const R = (
|
|
30
30
|
/* glsl */
|
|
31
31
|
`
|
|
32
32
|
varying vec2 vUv;
|
|
@@ -36,7 +36,7 @@ const B = (
|
|
|
36
36
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
37
37
|
}
|
|
38
38
|
`
|
|
39
|
-
),
|
|
39
|
+
), W = (
|
|
40
40
|
/* glsl */
|
|
41
41
|
`
|
|
42
42
|
// 是否使用颜色
|
|
@@ -120,15 +120,18 @@ const B = (
|
|
|
120
120
|
}
|
|
121
121
|
`
|
|
122
122
|
);
|
|
123
|
-
class
|
|
123
|
+
class N {
|
|
124
124
|
constructor(e, t) {
|
|
125
125
|
i(this, "name", "");
|
|
126
126
|
i(this, "startTagContainer");
|
|
127
127
|
i(this, "endTagContainer");
|
|
128
|
+
i(this, "path", []);
|
|
129
|
+
i(this, "geometryStyle", {});
|
|
130
|
+
i(this, "materialStyle", {});
|
|
131
|
+
i(this, "meshStyle", {});
|
|
128
132
|
i(this, "mesh");
|
|
129
133
|
i(this, "five");
|
|
130
134
|
i(this, "mode");
|
|
131
|
-
i(this, "path", []);
|
|
132
135
|
i(this, "_curvePath", null);
|
|
133
136
|
i(this, "_curvePoints", null);
|
|
134
137
|
i(this, "_panoGroup", []);
|
|
@@ -152,10 +155,12 @@ class R {
|
|
|
152
155
|
i(this, "plugin");
|
|
153
156
|
i(this, "textureHasLoaded", !1);
|
|
154
157
|
i(this, "disposed", !1);
|
|
155
|
-
i(this, "flowAnime", new
|
|
156
|
-
i(this, "flickerAnime",
|
|
158
|
+
i(this, "flowAnime", new G({ progress: 0 }).to({ progress: 1 }).duration(1500).repeat(1 / 0));
|
|
159
|
+
i(this, "flickerAnime", O(300).yoyo(!0).repeat(5));
|
|
157
160
|
/** 缓存 panoGroup 中每个点距离起点的长度 */
|
|
158
161
|
i(this, "cacheLengths", []);
|
|
162
|
+
/** 为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
|
|
163
|
+
i(this, "heightOffset", 0);
|
|
159
164
|
i(this, "dispose", () => {
|
|
160
165
|
var e, t;
|
|
161
166
|
this.disposed || (this.disposed = !0, this.parent.hooks.off("show", this.updateVisible), this.parent.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("show", this.updateVisible), this.plugin.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("enable", this.updateVisible), this.plugin.hooks.off("disable", this.updateVisible), this.five.off("modeChange", this.onFiveModeChange), this.five.off("modelShownFloorChange", this.onFiveModelShownFloorChange), this.doHide(), (e = this.startTagContainer) == null || e.plugin.dispose(), (t = this.endTagContainer) == null || t.plugin.dispose());
|
|
@@ -170,7 +175,7 @@ class R {
|
|
|
170
175
|
});
|
|
171
176
|
/** 模型状态变更 */
|
|
172
177
|
i(this, "onFiveModeChange", (e) => {
|
|
173
|
-
this.modeVisible = this.mode === "panorama" ?
|
|
178
|
+
this.modeVisible = this.mode === "panorama" ? _(e) : M(e), this.updateVisible();
|
|
174
179
|
});
|
|
175
180
|
i(this, "onFiveModelShownFloorChange", (e) => {
|
|
176
181
|
this.floorVisible = e === null || this.visibleFloorIndexes === null || this.visibleFloorIndexes.includes(e), this.updateVisible();
|
|
@@ -185,30 +190,30 @@ class R {
|
|
|
185
190
|
this.mesh.material.uniforms.vOffset.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
186
191
|
});
|
|
187
192
|
i(this, "onFlickerAnimeUpdate", (e) => {
|
|
188
|
-
var r, a, o,
|
|
193
|
+
var r, a, o, u;
|
|
189
194
|
const { progress: t } = e, s = 1 - t;
|
|
190
|
-
this.mesh.material.uniforms.flicker.value = s, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag &&
|
|
195
|
+
this.mesh.material.uniforms.flicker.value = s, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && y(this.startTagContainer.tag) && ((o = this.startTagContainer.app) == null || o.$set(p(d({}, this.startTagContainer.tag.data), {
|
|
191
196
|
opacity: s,
|
|
192
197
|
name: this.name,
|
|
193
198
|
distance: Math.round((a = (r = this.curvePath) == null ? void 0 : r.getLength()) != null ? a : 0)
|
|
194
|
-
}))), this.endTagContainer.tag &&
|
|
199
|
+
}))), this.endTagContainer.tag && y(this.endTagContainer.tag) && ((u = this.endTagContainer.app) == null || u.$set(p(d({}, this.endTagContainer.tag.data), { opacity: s })));
|
|
195
200
|
});
|
|
196
|
-
i(this, "logWarning", (e) =>
|
|
197
|
-
i(this, "logError", (e) =>
|
|
201
|
+
i(this, "logWarning", (e) => x("GuideLineModeItem: ", e));
|
|
202
|
+
i(this, "logError", (e) => U("GuideLineModeItem: ", e));
|
|
198
203
|
var a, o;
|
|
199
|
-
this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.startTagContainer = { tag: null, plugin: new
|
|
200
|
-
const s = new
|
|
201
|
-
vertexShader:
|
|
202
|
-
fragmentShader:
|
|
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 s = new h.BufferGeometry(), r = new h.ShaderMaterial({
|
|
206
|
+
vertexShader: R,
|
|
207
|
+
fragmentShader: W,
|
|
203
208
|
transparent: !0,
|
|
204
209
|
uniforms: {
|
|
205
210
|
map: { value: null },
|
|
206
211
|
useMapColor: { value: 0 },
|
|
207
|
-
mapColor: { value: new
|
|
212
|
+
mapColor: { value: new h.Color() },
|
|
208
213
|
mapOpacity: { value: 1 },
|
|
209
|
-
backgroundColor: { value: new
|
|
214
|
+
backgroundColor: { value: new h.Color() },
|
|
210
215
|
backgroundOpacity: { value: 0 },
|
|
211
|
-
borderColor: { value: new
|
|
216
|
+
borderColor: { value: new h.Color() },
|
|
212
217
|
borderOpacity: { value: 0 },
|
|
213
218
|
opacity: { value: 1 },
|
|
214
219
|
flicker: { value: 1 },
|
|
@@ -216,7 +221,7 @@ class R {
|
|
|
216
221
|
vOffset: { value: 0 }
|
|
217
222
|
}
|
|
218
223
|
});
|
|
219
|
-
this.mesh = new
|
|
224
|
+
this.mesh = new h.Mesh(s, r), 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);
|
|
220
225
|
}
|
|
221
226
|
get panoGroup() {
|
|
222
227
|
return this._panoGroup;
|
|
@@ -263,7 +268,7 @@ class R {
|
|
|
263
268
|
return this.logError("disposed");
|
|
264
269
|
if (!this.five.work)
|
|
265
270
|
return this.logError("setPathByPanoGroup: work is not ready");
|
|
266
|
-
const s =
|
|
271
|
+
const s = B(e);
|
|
267
272
|
if (this._panoGroup = s, (t == null ? void 0 : t.skipPanoGroup) !== void 0) {
|
|
268
273
|
const a = t.skipPanoGroup ? s.map((o) => this.five.work.observers[o]).map((o) => o.standingPosition.clone()) : null;
|
|
269
274
|
this.skippedPositions = a;
|
|
@@ -273,37 +278,55 @@ class R {
|
|
|
273
278
|
}
|
|
274
279
|
/** 通过路径设置线条形状 */
|
|
275
280
|
setGeometryByPath(e, t) {
|
|
276
|
-
var
|
|
281
|
+
var c, v, C;
|
|
277
282
|
if (this.disposed)
|
|
278
283
|
return this.logError("disposed");
|
|
279
|
-
const s = (
|
|
280
|
-
this.
|
|
281
|
-
const { geometry: o, maxU:
|
|
284
|
+
const s = (c = t == null ? void 0 : t.scale) != null ? c : this.scale, r = (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 = s, this.width = r, this.unitLength = a;
|
|
286
|
+
const { geometry: o, maxU: u, curvePath: g, curvePoints: m } = S({
|
|
282
287
|
path: e,
|
|
283
288
|
width: r * s,
|
|
284
289
|
unitLength: a * s,
|
|
285
290
|
skipPositions: this.skippedPositions
|
|
286
291
|
});
|
|
287
|
-
this._curvePath =
|
|
292
|
+
this._curvePath = g, this._curvePoints = m, this.mesh.geometry = o, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = u, this.five.needsRender = !0;
|
|
293
|
+
const l = e, f = d(d({}, this.geometryStyle), t);
|
|
294
|
+
this.path = l, this.geometryStyle = f;
|
|
288
295
|
}
|
|
289
296
|
/** 设置线条材质 */
|
|
290
297
|
setMartial(e) {
|
|
291
|
-
var
|
|
298
|
+
var s;
|
|
292
299
|
if (this.disposed)
|
|
293
300
|
return this.logError("disposed");
|
|
294
|
-
(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), ((
|
|
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), ((s = e == null ? void 0 : e.texture) == null ? void 0 : s.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 = d(d({}, this.materialStyle), e);
|
|
303
|
+
this.materialStyle = t;
|
|
304
|
+
}
|
|
305
|
+
/** 设置模型状态 */
|
|
306
|
+
setMeshStyle(e) {
|
|
307
|
+
if (e != null && e.translate) {
|
|
308
|
+
const s = new h.Vector3(), r = new h.Vector3().fromArray(e.translate);
|
|
309
|
+
s.add(r), s.y += this.heightOffset, this.mesh.position.copy(s);
|
|
310
|
+
}
|
|
311
|
+
const t = d(d({}, this.meshStyle), e);
|
|
312
|
+
this.meshStyle = t;
|
|
313
|
+
}
|
|
314
|
+
/** 设置 Y 轴上的偏移量,为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
|
|
315
|
+
setHeightOffset(e) {
|
|
316
|
+
const t = new h.Vector3();
|
|
317
|
+
this.meshStyle.translate && t.add(new h.Vector3().fromArray(this.meshStyle.translate)), t.setY(t.y + e), this.mesh.position.copy(t), this.heightOffset = e, this.five.needsRender = !0;
|
|
295
318
|
}
|
|
296
319
|
/** 设置贴图颜色 */
|
|
297
320
|
setColor(e) {
|
|
298
321
|
if (this.disposed)
|
|
299
322
|
return this.logError("disposed");
|
|
300
|
-
e && (this.mesh.material.uniforms.mapColor.value = new
|
|
323
|
+
e && (this.mesh.material.uniforms.mapColor.value = new h.Color().set(e)), this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
301
324
|
}
|
|
302
325
|
/** 设置边框 */
|
|
303
326
|
setBorderColor(e) {
|
|
304
327
|
if (this.disposed)
|
|
305
328
|
return this.logError("disposed");
|
|
306
|
-
this.mesh.material.uniforms.borderColor.value = new
|
|
329
|
+
this.mesh.material.uniforms.borderColor.value = new h.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
307
330
|
}
|
|
308
331
|
/** 设置边框透明度 */
|
|
309
332
|
setBorderOpacity(e) {
|
|
@@ -315,7 +338,7 @@ class R {
|
|
|
315
338
|
setBackgroundColor(e) {
|
|
316
339
|
if (this.disposed)
|
|
317
340
|
return this.logError("disposed");
|
|
318
|
-
this.mesh.material.uniforms.backgroundColor.value = new
|
|
341
|
+
this.mesh.material.uniforms.backgroundColor.value = new h.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
319
342
|
}
|
|
320
343
|
/** 设置背景透明度 */
|
|
321
344
|
setBackgroundOpacity(e) {
|
|
@@ -340,7 +363,7 @@ class R {
|
|
|
340
363
|
if (this.disposed)
|
|
341
364
|
return this.logError("disposed");
|
|
342
365
|
this.textureUrl = e, E(e).then((t) => {
|
|
343
|
-
this.disposed || this.textureUrl === e && (t.wrapT =
|
|
366
|
+
this.disposed || this.textureUrl === e && (t.wrapT = h.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());
|
|
344
367
|
});
|
|
345
368
|
}
|
|
346
369
|
setVisibleFloorIndexes(e) {
|
|
@@ -371,34 +394,34 @@ class R {
|
|
|
371
394
|
return this.disposed ? this.logError("disposed") : this.cacheLengths.length !== 0 ? this.cacheLengths[e] : (this.cacheLengths = this.getPanoGroupLengths(), this.cacheLengths[e]);
|
|
372
395
|
}
|
|
373
396
|
getPanoGroupLengths() {
|
|
374
|
-
var
|
|
397
|
+
var m;
|
|
375
398
|
if (!this.curvePoints || !this.curvePath)
|
|
376
399
|
return [];
|
|
377
|
-
const e = this.panoGroup.map((
|
|
378
|
-
let
|
|
379
|
-
for (let
|
|
380
|
-
const
|
|
381
|
-
if (!
|
|
400
|
+
const e = this.panoGroup.map((l) => this.five.work.observers[l]), t = this.curvePoints.length, s = this.curvePath.getLength(), r = t - 1, a = s / r, o = (m = this.curvePath.getLengths(r)) != null ? m : [], u = [];
|
|
401
|
+
let g = 0;
|
|
402
|
+
for (let l = 0; l < t; l++) {
|
|
403
|
+
const f = this.curvePoints[l], c = e[g];
|
|
404
|
+
if (!c)
|
|
382
405
|
break;
|
|
383
|
-
|
|
406
|
+
c.standingPosition.clone().setY(0).distanceTo(f.clone().setY(0)) < a && (u.push(o[l]), g += 1);
|
|
384
407
|
}
|
|
385
|
-
return
|
|
408
|
+
return u;
|
|
386
409
|
}
|
|
387
410
|
setTag(e, t) {
|
|
388
411
|
const s = this.curvePath, r = e === "start" ? this.startTagContainer : this.endTagContainer;
|
|
389
412
|
t || r.plugin.clearTags();
|
|
390
|
-
const o =
|
|
413
|
+
const o = I({}, {
|
|
391
414
|
contentType: "Custom",
|
|
392
415
|
stickType: "2DPoint",
|
|
393
416
|
config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
|
|
394
417
|
style: { point: { enabled: !1 } },
|
|
395
418
|
data: {}
|
|
396
419
|
}, t);
|
|
397
|
-
r.tag = o,
|
|
398
|
-
var
|
|
399
|
-
(
|
|
400
|
-
const
|
|
401
|
-
return r.app =
|
|
420
|
+
r.tag = o, y(o) && (r.tag.element = (u) => {
|
|
421
|
+
var l, f;
|
|
422
|
+
(l = r.app) == null || l.$destroy();
|
|
423
|
+
const g = e === "start" ? p(d({}, o.data), { name: this.name, distance: Math.round((f = s.getLength()) != null ? f : 0), i18n: this.plugin.config.i18n }) : o.data, m = new A({ target: u, intro: !0, props: g });
|
|
424
|
+
return r.app = m, () => m.$destroy();
|
|
402
425
|
}), r.plugin.load({ tagList: [r.tag] });
|
|
403
426
|
}
|
|
404
427
|
doShow() {
|
|
@@ -412,17 +435,17 @@ class R {
|
|
|
412
435
|
if (e.length < 2)
|
|
413
436
|
return [];
|
|
414
437
|
const a = e.map((o) => t.observers[o]).map((o) => o.standingPosition.toArray());
|
|
415
|
-
return [
|
|
438
|
+
return [d({ type: "CatmullRomCurve3", points: a }, s)];
|
|
416
439
|
}
|
|
417
440
|
}
|
|
418
|
-
function
|
|
441
|
+
function y(n) {
|
|
419
442
|
return n.contentType === "Custom";
|
|
420
443
|
}
|
|
421
|
-
const
|
|
444
|
+
const se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
422
445
|
__proto__: null,
|
|
423
|
-
GuideLineModeItem:
|
|
446
|
+
GuideLineModeItem: N
|
|
424
447
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
425
448
|
export {
|
|
426
|
-
|
|
427
|
-
|
|
449
|
+
N as GuideLineModeItem,
|
|
450
|
+
se as GuideLineModeItem$1
|
|
428
451
|
};
|
|
@@ -25,10 +25,13 @@ declare class GuideLineModeItem {
|
|
|
25
25
|
name: string;
|
|
26
26
|
startTagContainer: GuideLineTagContainer;
|
|
27
27
|
endTagContainer: GuideLineTagContainer;
|
|
28
|
+
path: PluginType.PathItem[];
|
|
29
|
+
geometryStyle: PluginType.GuideLineGeometryStyle;
|
|
30
|
+
materialStyle: PluginType.GuideLineMaterialStyle;
|
|
31
|
+
meshStyle: PluginType.GuideLineMeshStyle;
|
|
28
32
|
readonly mesh: THREE.Mesh<THREE.BufferGeometry, THREE.ShaderMaterial>;
|
|
29
33
|
private five;
|
|
30
34
|
private mode;
|
|
31
|
-
private path;
|
|
32
35
|
private _curvePath;
|
|
33
36
|
private _curvePoints;
|
|
34
37
|
private _panoGroup;
|
|
@@ -56,6 +59,8 @@ declare class GuideLineModeItem {
|
|
|
56
59
|
private flickerAnime;
|
|
57
60
|
/** 缓存 panoGroup 中每个点距离起点的长度 */
|
|
58
61
|
private cacheLengths;
|
|
62
|
+
/** 为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
|
|
63
|
+
private heightOffset;
|
|
59
64
|
constructor(five: Five, options: {
|
|
60
65
|
mode: PluginType.GuideLineModeItemMode;
|
|
61
66
|
plugin: GuideLinePlugin;
|
|
@@ -78,6 +83,10 @@ declare class GuideLineModeItem {
|
|
|
78
83
|
setGeometryByPath(path: PluginType.PathItem[], options?: PluginType.GuideLineGeometryStyle): void;
|
|
79
84
|
/** 设置线条材质 */
|
|
80
85
|
setMartial(options?: PluginType.GuideLineMaterialStyle): void;
|
|
86
|
+
/** 设置模型状态 */
|
|
87
|
+
setMeshStyle(options?: PluginType.GuideLineMeshStyle): void;
|
|
88
|
+
/** 设置 Y 轴上的偏移量,为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
|
|
89
|
+
setHeightOffset(offset: number): void;
|
|
81
90
|
/** 设置贴图颜色 */
|
|
82
91
|
setColor(color: null | string): void;
|
|
83
92
|
/** 设置边框 */
|
|
@@ -13,7 +13,7 @@ import "../PanoTagPlugin/controller/index.js";
|
|
|
13
13
|
import "./Components/Tag.js";
|
|
14
14
|
import "./utils/index.js";
|
|
15
15
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
16
|
-
import { GuideLineModeItem as
|
|
16
|
+
import { GuideLineModeItem as Vi } from "./GuideLineModeItem/index.js";
|
|
17
17
|
import "../vendor/polyline-normals/index.js";
|
|
18
18
|
import "../vendor/polyline-miter-util/index.js";
|
|
19
19
|
import "../vendor/gl-vec2/add.js";
|
|
@@ -72,7 +72,6 @@ import "../shared-utils/five/calculateThreeMouse.js";
|
|
|
72
72
|
import "../PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
73
73
|
import "../shared-utils/typescript/entries.js";
|
|
74
74
|
import "../shared-utils/url/getUrl.js";
|
|
75
|
-
import "../shared-utils/five/transformPosition.js";
|
|
76
75
|
import "../shared-utils/five/getFloorIndex.js";
|
|
77
76
|
import "../shared-utils/safeObj.js";
|
|
78
77
|
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
@@ -153,5 +152,5 @@ import "../shared-utils/three/GLTFLoader.js";
|
|
|
153
152
|
import "@realsee/five/gltf-loader";
|
|
154
153
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
155
154
|
export {
|
|
156
|
-
|
|
155
|
+
Vi as GuideLineModeItem
|
|
157
156
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import t from "./Controller.js";
|
|
2
|
-
import { GuideLineItem$1 as
|
|
3
|
-
import { GuideLineModeItem$1 as
|
|
2
|
+
import { GuideLineItem$1 as ft } from "./GuideLineItem/index.js";
|
|
3
|
+
import { GuideLineModeItem$1 as st } from "./GuideLineModeItem/index.js";
|
|
4
4
|
import "../base/BasePluginWithData.js";
|
|
5
5
|
import "../base/BasePlugin.js";
|
|
6
6
|
import "../shared-utils/Subscribe.js";
|
|
@@ -85,7 +85,6 @@ import "../shared-utils/five/calculateThreeMouse.js";
|
|
|
85
85
|
import "../PanoTagPlugin/utils/tag/adaptConfig.js";
|
|
86
86
|
import "../shared-utils/typescript/entries.js";
|
|
87
87
|
import "../shared-utils/url/getUrl.js";
|
|
88
|
-
import "../shared-utils/five/transformPosition.js";
|
|
89
88
|
import "../shared-utils/five/getFloorIndex.js";
|
|
90
89
|
import "../shared-utils/safeObj.js";
|
|
91
90
|
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
@@ -169,10 +168,10 @@ import "./utils/index.js";
|
|
|
169
168
|
import "../shared-utils/to.js";
|
|
170
169
|
import "../shared-utils/five/changeMode.js";
|
|
171
170
|
import "../shared-utils/nearlyEqual.js";
|
|
172
|
-
const
|
|
171
|
+
const Gt = (i, o) => new t(i, o);
|
|
173
172
|
export {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
173
|
+
ft as GuideLineItem,
|
|
174
|
+
st as GuideLineModeItem,
|
|
175
|
+
Gt as GuideLinePlugin,
|
|
176
|
+
Gt as default
|
|
178
177
|
};
|
|
@@ -95,7 +95,12 @@ export interface ModelGuideLineStyle extends GuideLineStyle {
|
|
|
95
95
|
end_tag?: ModelGuideLineTagData;
|
|
96
96
|
}
|
|
97
97
|
/** 不同模态下的路线数据 */
|
|
98
|
-
export type GuideLineStyle = GuideLineGeometryStyle & GuideLineMaterialStyle;
|
|
98
|
+
export type GuideLineStyle = GuideLineGeometryStyle & GuideLineMaterialStyle & GuideLineMeshStyle;
|
|
99
|
+
/** 影响模型的样式 */
|
|
100
|
+
export interface GuideLineMeshStyle {
|
|
101
|
+
/** 三维偏移值: [x, y, z] */
|
|
102
|
+
translate?: number[];
|
|
103
|
+
}
|
|
99
104
|
/** 影响形状的样式 */
|
|
100
105
|
export interface GuideLineGeometryStyle {
|
|
101
106
|
/** scale 之前的路线宽度,默认值是 0.5 */
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var Q = Object.defineProperty, V = Object.defineProperties;
|
|
2
2
|
var X = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var E = Object.getOwnPropertySymbols;
|
|
4
4
|
var Y = Object.prototype.hasOwnProperty, Z = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var F = (e, i, o) => i in e ? Q(e, i, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[i] = o, C = (e, i) => {
|
|
6
6
|
for (var o in i || (i = {}))
|
|
7
|
-
Y.call(i, o) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var o of
|
|
10
|
-
Z.call(i, o) &&
|
|
7
|
+
Y.call(i, o) && F(e, o, i[o]);
|
|
8
|
+
if (E)
|
|
9
|
+
for (var o of E(i))
|
|
10
|
+
Z.call(i, o) && F(e, o, i[o]);
|
|
11
11
|
return e;
|
|
12
12
|
}, L = (e, i) => V(e, X(i));
|
|
13
13
|
var K = (e, i, o) => new Promise((t, n) => {
|
|
@@ -26,7 +26,7 @@ var K = (e, i, o) => new Promise((t, n) => {
|
|
|
26
26
|
}, u = (a) => a.done ? t(a.value) : Promise.resolve(a.value).then(r, m);
|
|
27
27
|
u((o = o.apply(e, i)).next());
|
|
28
28
|
});
|
|
29
|
-
import { SvelteComponent as $, init as x, safe_not_equal as ee, append_styles as ie, empty as N, insert as w, transition_in as _, transition_out as y, check_outros as B, detach as b, createEventDispatcher as ne, onMount as te, element as R, space as oe, attr as p, set_style as c, append as re, group_outros as G, create_component as ae, mount_component as le, destroy_component as ue, handle_promise as q, update_await_block_branch as J, noop as s, src_url_equal as
|
|
29
|
+
import { SvelteComponent as $, init as x, safe_not_equal as ee, append_styles as ie, empty as N, insert as w, transition_in as _, transition_out as y, check_outros as B, detach as b, createEventDispatcher as ne, onMount as te, element as R, space as oe, attr as p, set_style as c, append as re, group_outros as G, create_component as ae, mount_component as le, destroy_component as ue, handle_promise as q, update_await_block_branch as J, noop as s, src_url_equal as M } from "../../../../vendor/svelte/internal/index.js";
|
|
30
30
|
import "three";
|
|
31
31
|
import { noTypecheck as W } from "../../../utils/noTypecheck.js";
|
|
32
32
|
import { getKeyframeInfo as se, getImageInfo as fe } from "../../../utils/getImageInfo.js";
|
|
@@ -37,13 +37,13 @@ import "../../../../vendor/svelte/easing/index.js";
|
|
|
37
37
|
function de(e) {
|
|
38
38
|
ie(e, "svelte-316sq3", "@keyframes svelte-316sq3-sprites-animation{0%{background-position:0 0}100%{background-position:100% 0}}.icon-image.svelte-316sq3{display:block;width:auto}.icon-keyframe.svelte-316sq3{background-repeat:no-repeat;background-size:auto 100%;animation-direction:normal;animation-iteration-count:infinite;animation-name:svelte-316sq3-sprites-animation;animation-delay:0}");
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function T(e) {
|
|
41
41
|
e[1] = e[19].width;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function U(e) {
|
|
44
44
|
e[1] = e[19].width, e[16] = e[19].height, e[17] = e[19].steps, e[18] = e[19].duration;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function j(e) {
|
|
47
47
|
let i, o, t, n = (
|
|
48
48
|
/*shadow*/
|
|
49
49
|
e[0] && A()
|
|
@@ -237,11 +237,11 @@ function _e(e) {
|
|
|
237
237
|
return { c: s, m: s, p: s, d: s };
|
|
238
238
|
}
|
|
239
239
|
function pe(e) {
|
|
240
|
-
|
|
240
|
+
T(e);
|
|
241
241
|
let i, o;
|
|
242
242
|
return {
|
|
243
243
|
c() {
|
|
244
|
-
i = R("img"), p(i, "alt", "tag-icon"), p(i, "class", "icon-image svelte-316sq3"),
|
|
244
|
+
i = R("img"), p(i, "alt", "tag-icon"), p(i, "class", "icon-image svelte-316sq3"), M(i.src, o = /*iconUrl*/
|
|
245
245
|
e[7]) || p(i, "src", o), c(i, "width", g(k({
|
|
246
246
|
originWidth: (
|
|
247
247
|
/*width*/
|
|
@@ -261,8 +261,8 @@ function pe(e) {
|
|
|
261
261
|
w(t, i, n);
|
|
262
262
|
},
|
|
263
263
|
p(t, n) {
|
|
264
|
-
|
|
265
|
-
128 && !
|
|
264
|
+
T(t), n & /*iconUrl*/
|
|
265
|
+
128 && !M(i.src, o = /*iconUrl*/
|
|
266
266
|
t[7]) && p(i, "src", o), n & /*iconUrl, iconRatio, iconScale, iconWidth*/
|
|
267
267
|
184 && c(i, "width", g(k({
|
|
268
268
|
originWidth: (
|
|
@@ -291,10 +291,10 @@ function ke(e) {
|
|
|
291
291
|
return { c: s, m: s, p: s, d: s };
|
|
292
292
|
}
|
|
293
293
|
function we(e) {
|
|
294
|
-
|
|
294
|
+
U(e);
|
|
295
295
|
let i, o = `url(${/*iconUrl*/
|
|
296
296
|
e[7]})`, t = `steps(${/*steps*/
|
|
297
|
-
e[17]
|
|
297
|
+
e[17] - 1})`;
|
|
298
298
|
return {
|
|
299
299
|
c() {
|
|
300
300
|
i = R("div"), p(i, "class", "icon-keyframe svelte-316sq3"), c(i, "width", g(k({
|
|
@@ -342,7 +342,7 @@ function we(e) {
|
|
|
342
342
|
w(n, i, r);
|
|
343
343
|
},
|
|
344
344
|
p(n, r) {
|
|
345
|
-
|
|
345
|
+
U(n), r & /*iconUrl, iconSteps, iconFps, iconRatio, iconScale, iconWidth*/
|
|
346
346
|
252 && c(i, "width", g(k({
|
|
347
347
|
originWidth: (
|
|
348
348
|
/*width*/
|
|
@@ -388,7 +388,7 @@ function we(e) {
|
|
|
388
388
|
n[18]
|
|
389
389
|
), r & /*iconUrl, iconSteps, iconFps, iconRatio*/
|
|
390
390
|
228 && t !== (t = `steps(${/*steps*/
|
|
391
|
-
n[17]
|
|
391
|
+
n[17] - 1})`) && c(i, "animation-timing-function", t);
|
|
392
392
|
},
|
|
393
393
|
d(n) {
|
|
394
394
|
n && b(i);
|
|
@@ -401,7 +401,7 @@ function be(e) {
|
|
|
401
401
|
function ye(e) {
|
|
402
402
|
let i, o, t = (
|
|
403
403
|
/*iconCopy*/
|
|
404
|
-
e[9] &&
|
|
404
|
+
e[9] && j(e)
|
|
405
405
|
);
|
|
406
406
|
return {
|
|
407
407
|
c() {
|
|
@@ -413,7 +413,7 @@ function ye(e) {
|
|
|
413
413
|
p(n, [r]) {
|
|
414
414
|
/*iconCopy*/
|
|
415
415
|
n[9] ? t ? (t.p(n, r), r & /*iconCopy*/
|
|
416
|
-
512 && _(t, 1)) : (t =
|
|
416
|
+
512 && _(t, 1)) : (t = j(n), t.c(), _(t, 1), t.m(i.parentNode, i)) : t && (G(), y(t, 1, 1, () => {
|
|
417
417
|
t = null;
|
|
418
418
|
}), B());
|
|
419
419
|
},
|
|
@@ -433,7 +433,7 @@ function k(e) {
|
|
|
433
433
|
return L(C({}, e), { width: r, height: m });
|
|
434
434
|
}
|
|
435
435
|
function We(e, i, o) {
|
|
436
|
-
let t, n, r, m, u, a, d, v, I, { width: H = null } = i, { icon: l = null } = i, { shadow:
|
|
436
|
+
let t, n, r, m, u, a, d, v, I, { width: H = null } = i, { icon: l = null } = i, { shadow: z = !1 } = i;
|
|
437
437
|
const S = ne();
|
|
438
438
|
function O(f) {
|
|
439
439
|
return K(this, null, function* () {
|
|
@@ -449,13 +449,13 @@ function We(e, i, o) {
|
|
|
449
449
|
return S("iconLoaded", h), h;
|
|
450
450
|
});
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function D() {
|
|
453
453
|
v || S("iconLoaded");
|
|
454
454
|
}
|
|
455
455
|
return te(() => {
|
|
456
|
-
|
|
456
|
+
D();
|
|
457
457
|
}), e.$$set = (f) => {
|
|
458
|
-
"width" in f && o(1, H = f.width), "icon" in f && o(12, l = f.icon), "shadow" in f && o(0,
|
|
458
|
+
"width" in f && o(1, H = f.width), "icon" in f && o(12, l = f.icon), "shadow" in f && o(0, z = f.shadow);
|
|
459
459
|
}, e.$$.update = () => {
|
|
460
460
|
var f, h;
|
|
461
461
|
e.$$.dirty & /*icon*/
|
|
@@ -475,8 +475,8 @@ function We(e, i, o) {
|
|
|
475
475
|
})), e.$$.dirty & /*iconSteps*/
|
|
476
476
|
4 && o(8, v = n > 1), e.$$.dirty & /*width*/
|
|
477
477
|
2 && (I = H);
|
|
478
|
-
},
|
|
479
|
-
|
|
478
|
+
}, D(), [
|
|
479
|
+
z,
|
|
480
480
|
H,
|
|
481
481
|
n,
|
|
482
482
|
a,
|