@realsee/dnalogel 2.29.0-dev.3 → 2.30.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/CurrentPanoImagePlugin/Controller.d.ts +93 -0
- package/dist/CurrentPanoImagePlugin/index.d.ts +7 -0
- package/dist/CurrentPanoImagePlugin/typings.d.ts +58 -0
- package/dist/index.cjs.js +53 -53
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3913 -3703
- package/dist/index.umd.js +39 -39
- package/dist/shared-utils/five/index.d.ts +6 -0
- package/libs/CurrentPanoImagePlugin/Controller.d.ts +93 -0
- package/libs/CurrentPanoImagePlugin/Controller.js +261 -0
- package/libs/CurrentPanoImagePlugin/index.d.ts +7 -0
- package/libs/CurrentPanoImagePlugin/index.js +31 -0
- package/libs/CurrentPanoImagePlugin/typings.d.ts +58 -0
- package/libs/CurrentPanoImagePlugin/typings.js +1 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.d.ts +1 -0
- package/libs/index.js +118 -114
- package/libs/shared-utils/five/index.d.ts +6 -0
- package/libs/shared-utils/five/index.js +6 -1
- package/libs/shared-utils/index.js +39 -37
- 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 -721
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -674
- package/docs/classes/CSS3DRender.html +0 -769
- package/docs/classes/CruisePluginController.html +0 -668
- package/docs/classes/GuideLineItem.GuideLineItem.html +0 -487
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -788
- package/docs/classes/Magnifier.html +0 -476
- package/docs/classes/ModelRoomLabelController.html +0 -394
- package/docs/classes/Object3DHelperController.html +0 -636
- package/docs/classes/PaintBrush.html +0 -498
- package/docs/classes/PanoMeasurePluginLine.html +0 -518
- package/docs/classes/PanoMeasurePluginModel.html +0 -567
- package/docs/classes/PanoMeasurePluginPoint.html +0 -358
- package/docs/classes/PanoMeasurePluginPolyline.html +0 -563
- package/docs/classes/PanoTagPluginController.html +0 -1101
- package/docs/classes/Util.BetterTween.html +0 -411
- package/docs/classes/Util.Interval.html +0 -427
- package/docs/classes/Util.LineSegments.html +0 -379
- package/docs/classes/Util.Magnifier.html +0 -498
- package/docs/classes/Util.Object3D.html +0 -401
- package/docs/classes/Util.PointDomHelper.html +0 -402
- package/docs/classes/Util.PointHelper.html +0 -393
- package/docs/classes/Util.PointSelectorHelper.html +0 -449
- package/docs/classes/Util.Rectangle.html +0 -450
- package/docs/enums/CameraMovementEffect.html +0 -306
- package/docs/enums/ContentType.html +0 -442
- package/docs/enums/DIRECTION.html +0 -316
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -316
- package/docs/enums/DimensionType.html +0 -306
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -309
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -316
- package/docs/enums/PaintBrushTypeEnum.html +0 -309
- package/docs/enums/PointType.html +0 -306
- package/docs/enums/Rotation.html +0 -313
- package/docs/functions/AreaMakerPlugin.html +0 -286
- package/docs/functions/CSS3DRenderPlugin.html +0 -284
- package/docs/functions/CameraMovementPlugin.html +0 -289
- package/docs/functions/CruisePlugin.html +0 -286
- package/docs/functions/GuideLinePlugin.html +0 -286
- package/docs/functions/ItemLabelPlugin.html +0 -286
- package/docs/functions/MapviewFloorplanPlugin.html +0 -286
- package/docs/functions/ModelChassisCompassPlugin.html +0 -289
- package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -289
- package/docs/functions/ModelFloorplanPlugin.html +0 -286
- package/docs/functions/ModelItemLabelPlugin.html +0 -286
- package/docs/functions/ModelRoomLabelPlugin.html +0 -284
- package/docs/functions/ModelTVVideoPlugin.html +0 -286
- package/docs/functions/ModelViewPlugin.html +0 -289
- package/docs/functions/Object3DHelperPlugin.html +0 -284
- package/docs/functions/PanoCompassPlugin.html +0 -286
- package/docs/functions/PanoCursorRaycasterPlugin.html +0 -290
- package/docs/functions/PanoDoorLabelPlugin.html +0 -286
- package/docs/functions/PanoFloorplanRadarPlugin.html +0 -286
- package/docs/functions/PanoMeasurePlugin.html +0 -286
- package/docs/functions/PanoRulerPlugin.html +0 -289
- package/docs/functions/PanoRulerProPlugin.html +0 -289
- package/docs/functions/PanoSpatialTagPlugin.html +0 -289
- package/docs/functions/PanoTagPlugin.html +0 -291
- package/docs/functions/PanoVideoPlugin.html +0 -295
- package/docs/functions/PipelinePlugin.html +0 -284
- package/docs/functions/TopviewFloorplanPlugin.html +0 -286
- package/docs/functions/Util.absoluteUrl.html +0 -321
- package/docs/functions/Util.equal.html +0 -333
- package/docs/functions/Util.getCoordsFromClient.html +0 -323
- package/docs/functions/Util.getCoordsFromElement.html +0 -323
- package/docs/functions/Util.getFrameTime.html +0 -315
- package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -323
- package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -323
- package/docs/functions/Util.isAbsoluteURL.html +0 -316
- package/docs/functions/Util.isModelLike.html +0 -316
- package/docs/functions/Util.isNil.html +0 -324
- package/docs/functions/Util.isPanoramaLike.html +0 -316
- package/docs/functions/Util.nextFrame.html +0 -329
- package/docs/functions/Util.notNil.html +0 -324
- package/docs/functions/Util.requestAnimationFrameInterval.html +0 -345
- package/docs/functions/Util.tweenProgress.html +0 -318
- package/docs/functions/Util.uuid.html +0 -314
- package/docs/functions/pluginFlag.html +0 -284
- package/docs/index.html +0 -350
- package/docs/interfaces/AddTagConfig.html +0 -299
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -325
- package/docs/interfaces/AreaMakerPluginType.Config.html +0 -330
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -616
- package/docs/interfaces/AreaMakerPluginType.Params.html +0 -329
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -379
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -364
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -329
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -322
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -321
- package/docs/interfaces/AreaMakerPluginType.State.html +0 -350
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -445
- package/docs/interfaces/CSS3DRenderPluginState.html +0 -321
- package/docs/interfaces/CameraMovementPluginExportType.html +0 -354
- package/docs/interfaces/CruisePluginTypes.Config.html +0 -355
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -357
- package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -692
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -381
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -417
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -407
- package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -347
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -315
- package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -404
- package/docs/interfaces/EventMap.html +0 -538
- package/docs/interfaces/FloorplanBounding.html +0 -328
- package/docs/interfaces/FloorplanData.html +0 -331
- package/docs/interfaces/FloorplanEntrance.html +0 -356
- package/docs/interfaces/FloorplanExtraObject.html +0 -346
- package/docs/interfaces/FloorplanExtraObject3D.html +0 -335
- package/docs/interfaces/FloorplanFloorData.html +0 -324
- package/docs/interfaces/FloorplanImagePosition.html +0 -310
- package/docs/interfaces/FloorplanObserver.html +0 -328
- package/docs/interfaces/FloorplanOutlineItem.html +0 -324
- package/docs/interfaces/FloorplanPosition.html +0 -310
- package/docs/interfaces/FloorplanRoomItem.html +0 -375
- package/docs/interfaces/FloorplanRoomLabelItem.html +0 -316
- package/docs/interfaces/FloorplanServerBounding.html +0 -328
- package/docs/interfaces/FloorplanServerComputedData.html +0 -327
- package/docs/interfaces/FloorplanServerData.html +0 -310
- package/docs/interfaces/FloorplanServerDoorItem.html +0 -327
- package/docs/interfaces/FloorplanServerDoorPosition.html +0 -313
- package/docs/interfaces/FloorplanServerEntrance.html +0 -356
- package/docs/interfaces/FloorplanServerFloorData.html +0 -324
- package/docs/interfaces/FloorplanServerImagePosition.html +0 -310
- package/docs/interfaces/FloorplanServerObserver.html +0 -328
- package/docs/interfaces/FloorplanServerOutlineItem.html +0 -324
- package/docs/interfaces/FloorplanServerPosition.html +0 -310
- package/docs/interfaces/FloorplanServerRoomItem.html +0 -387
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -316
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -319
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -357
- package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -521
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -352
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -343
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -410
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -342
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -467
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -339
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -467
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -304
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -325
- package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -350
- package/docs/interfaces/GuideLinePluginType.Route.html +0 -366
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -348
- package/docs/interfaces/HelperOffset.html +0 -328
- package/docs/interfaces/ImagePlaneGroup.html +0 -302
- package/docs/interfaces/ItemLabelPluginData.html +0 -299
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -384
- package/docs/interfaces/ItemLabelPluginParametersType.html +0 -320
- package/docs/interfaces/MinMax.html +0 -306
- package/docs/interfaces/ModelChassisCompassPluginData.html +0 -306
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -342
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -306
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -313
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -350
- package/docs/interfaces/ModelItemLabelPluginData.html +0 -299
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -384
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -306
- package/docs/interfaces/ModelRoomLabelPluginData.html +0 -299
- package/docs/interfaces/ModelTVVideoPluginData.html +0 -320
- package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -344
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -299
- package/docs/interfaces/ModelViewPluginExportType.html +0 -412
- package/docs/interfaces/Object3DHelperState.html +0 -313
- package/docs/interfaces/ObjectHelperControllers.html +0 -320
- package/docs/interfaces/PaintBrushAction.html +0 -359
- package/docs/interfaces/PaintBrushConfigs.html +0 -357
- package/docs/interfaces/PaintBrushState.html +0 -341
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -421
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -278
- package/docs/interfaces/PanoMeasureParameterType.html +0 -445
- package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -313
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -310
- package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -306
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -316
- package/docs/interfaces/PanoRulerPluginExportType.html +0 -373
- package/docs/interfaces/PanoRulerPluginOptions.html +0 -322
- package/docs/interfaces/PanoRulerPluginParameterType.html +0 -313
- package/docs/interfaces/PanoRulerProPluginExportType.html +0 -349
- package/docs/interfaces/PanoRulerProPluginOptions.html +0 -319
- package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -306
- package/docs/interfaces/PanoRulerProPluginState.html +0 -313
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -292
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -281
- package/docs/interfaces/PanoSpatialTagPluginData.html +0 -349
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -331
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -427
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -327
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -348
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -334
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -327
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -319
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -337
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -310
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -416
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -310
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -345
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -364
- package/docs/interfaces/Point.html +0 -313
- package/docs/interfaces/Room.html +0 -320
- package/docs/interfaces/RoomInfo.html +0 -306
- package/docs/interfaces/RoomLabel.html +0 -382
- package/docs/interfaces/RoomRules.html +0 -281
- package/docs/interfaces/Rooms.html +0 -281
- package/docs/interfaces/Scissor.html +0 -340
- package/docs/interfaces/State.html +0 -327
- package/docs/interfaces/TagCacheInterface.html +0 -358
- package/docs/interfaces/TagConfig.html +0 -544
- package/docs/interfaces/TagGLTFObjectGroup.html +0 -302
- package/docs/interfaces/TagIconUrl.html +0 -359
- package/docs/interfaces/TagObjectGroup.html +0 -302
- package/docs/interfaces/TagStyle.html +0 -312
- package/docs/interfaces/Tags.html +0 -542
- package/docs/interfaces/TemporaryState.html +0 -299
- package/docs/interfaces/Util.MagnifierParameter.html +0 -386
- package/docs/interfaces/Util.MouseGroupParameter.html +0 -345
- package/docs/interfaces/Util.PointIntersection.html +0 -360
- package/docs/modules/AreaMakerPluginType.html +0 -319
- package/docs/modules/CruisePluginTypes.html +0 -324
- package/docs/modules/GuideLineItem.html +0 -285
- package/docs/modules/GuideLineModeItem.html +0 -290
- package/docs/modules/GuideLinePluginType.html +0 -344
- package/docs/modules/PanoVideoPluginType.html +0 -297
- package/docs/modules/Util.html +0 -345
- package/docs/modules.html +0 -532
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -327
- package/docs/types/AreaMakerPluginType.PluginData.html +0 -297
- package/docs/types/AreaMakerPluginType.ServerData.html +0 -297
- package/docs/types/ArrayPosition.html +0 -275
- package/docs/types/AudioAppearance.html +0 -275
- package/docs/types/AudioTagTypeConfigKey.html +0 -275
- package/docs/types/CSS3DRenderExportType.html +0 -275
- package/docs/types/CSS3DRenderPluginExportType.html +0 -275
- package/docs/types/CSS3DRenderPluginParameterType.html +0 -275
- package/docs/types/ClassFunctionParameters.html +0 -282
- package/docs/types/Color.html +0 -275
- package/docs/types/ContentTypeConfigKey.html +0 -275
- package/docs/types/ContentTypeConfigKeySplit.html +0 -275
- package/docs/types/ContentTypeMap.html +0 -275
- package/docs/types/Create3DDomContainerReturnType.html +0 -275
- package/docs/types/Create3DElementReturnType.html +0 -275
- package/docs/types/CruisePluginExportType.html +0 -275
- package/docs/types/CruisePluginTypes.CruiseData.html +0 -314
- package/docs/types/CruisePluginTypes.MoveEffect.html +0 -291
- package/docs/types/DeprecatedMediaPlaneProperty.html +0 -287
- package/docs/types/DeprecatedTagProperty.html +0 -290
- package/docs/types/Direction-1.html +0 -275
- package/docs/types/Direction4.html +0 -275
- package/docs/types/ElementRenderer.html +0 -299
- package/docs/types/FloorplanRuleLabels.html +0 -278
- package/docs/types/FloorplanServerRuleLabels.html +0 -275
- package/docs/types/GuideLinePluginExportType.html +0 -275
- package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -347
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -368
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -301
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -304
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -304
- package/docs/types/GuideLinePluginType.PathItem.html +0 -304
- package/docs/types/GuideLinePluginType.PluginData.html +0 -313
- package/docs/types/HelperEventMap.html +0 -513
- package/docs/types/LoadTagConfig.html +0 -275
- package/docs/types/MapviewFloorplanPluginParameterType.html +0 -275
- package/docs/types/MapviewFloorplanPluginReturnType.html +0 -275
- package/docs/types/MediaData.html +0 -291
- package/docs/types/MediaStore.html +0 -280
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -282
- package/docs/types/ModelFloorplanPluginParameterType.html +0 -275
- package/docs/types/ModelFloorplanPluginReturnType.html +0 -275
- package/docs/types/ModelRoomLabelPluginParameters.html +0 -275
- package/docs/types/ModelRoomLabelPluginReturnType.html +0 -275
- package/docs/types/MoveArgs.html +0 -285
- package/docs/types/MoveOpts.html +0 -283
- package/docs/types/Object3DHelperEventMap.html +0 -368
- package/docs/types/ObjectFit.html +0 -275
- package/docs/types/PaintBrushEventMap.html +0 -306
- package/docs/types/PanoCompassPluginData.html +0 -275
- package/docs/types/PanoCompassPluginExportType.html +0 -275
- package/docs/types/PanoCompassPluginParameterType.html +0 -275
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -275
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -275
- package/docs/types/PanoIndex.html +0 -275
- package/docs/types/PanoMeasurePluginEvent.html +0 -275
- package/docs/types/PanoMeasureReturnType.html +0 -275
- package/docs/types/PanoSpatialTagPluginId.html +0 -275
- package/docs/types/PanoTagPluginExportInterface.html +0 -275
- package/docs/types/PanoTagPluginParamsInterface.html +0 -275
- package/docs/types/PanoVideoPluginParameterType.html +0 -275
- package/docs/types/PanoVideoPluginReturnType.html +0 -275
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -283
- package/docs/types/PipelinePluginParameterType.html +0 -275
- package/docs/types/PipelinePluginReturnType.html +0 -275
- package/docs/types/PlaneTag.html +0 -283
- package/docs/types/Point2DTag.html +0 -283
- package/docs/types/Point3DTag.html +0 -283
- package/docs/types/PointTag.html +0 -280
- package/docs/types/PointTagInstance.html +0 -280
- package/docs/types/Position.html +0 -275
- package/docs/types/RotateArgs.html +0 -287
- package/docs/types/RotateOpts.html +0 -283
- package/docs/types/RuleLabelsKey.html +0 -275
- package/docs/types/RuleLabelsValue.html +0 -275
- package/docs/types/StickType.html +0 -275
- package/docs/types/Tag.html +0 -341
- package/docs/types/Tag2D.html +0 -283
- package/docs/types/Tag3D.html +0 -283
- package/docs/types/TagConfigByKey.html +0 -280
- package/docs/types/TagContentType.html +0 -275
- package/docs/types/TagDimensionType.html +0 -277
- package/docs/types/TagElement.html +0 -285
- package/docs/types/TagEvents.html +0 -328
- package/docs/types/TagGLTFObject.html +0 -298
- package/docs/types/TagHooks.html +0 -275
- package/docs/types/TagId.html +0 -275
- package/docs/types/TagInstance.html +0 -347
- package/docs/types/TagPointType.html +0 -278
- package/docs/types/TagRendererMap.html +0 -280
- package/docs/types/TopviewFloorplanPluginParameterType.html +0 -275
- package/docs/types/TopviewFloorplanPluginReturnType.html +0 -275
- package/docs/types/WorkCode.html +0 -275
- package/docs/variables/FLOOR_TYPE_MAP.html +0 -285
- package/docs/variables/PLUGIN.html +0 -275
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -278
- package/docs/variables/ROOM_TYPE_MAP.html +0 -285
- package/docs/variables/defaultGlobalConfig.html +0 -275
- package/docs/variables/itemLabelPluginServerParams.html +0 -282
- package/docs/variables/modelItemLabelPluginServerParams.html +0 -282
- package/docs/variables/modelRoomLabelPluginServerParams.html +0 -282
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { BaseOptions } from '../base/BasePlugin';
|
|
2
|
+
import type { Five } from '@realsee/five';
|
|
3
|
+
import * as BasePlugin from '../base/BasePlugin';
|
|
4
|
+
import type * as PluginType from './typings';
|
|
5
|
+
export declare class CurrentPanoImagePluginController extends BasePlugin.Controller<PluginType.State, PluginType.EventMap> {
|
|
6
|
+
/** 插件当前状态 */
|
|
7
|
+
state: PluginType.State;
|
|
8
|
+
/** 插件配置项 */
|
|
9
|
+
get config(): {
|
|
10
|
+
width: number;
|
|
11
|
+
yOffset: number;
|
|
12
|
+
yRotate: number;
|
|
13
|
+
imageURL: string;
|
|
14
|
+
staticPrefix?: string;
|
|
15
|
+
i18n?: (key: string) => string;
|
|
16
|
+
};
|
|
17
|
+
/** 是否已经被销毁 */
|
|
18
|
+
get disposed(): boolean;
|
|
19
|
+
/** 查询问题使用的调试对象 */
|
|
20
|
+
checkMsg: {
|
|
21
|
+
meshVisible: string;
|
|
22
|
+
};
|
|
23
|
+
private group;
|
|
24
|
+
private mesh;
|
|
25
|
+
private textureLoadingPromise?;
|
|
26
|
+
private opacityAnimeTween?;
|
|
27
|
+
/** 是否正在走点动画中 */
|
|
28
|
+
private isInPanoMoveAnime;
|
|
29
|
+
/** 上一次走点的全景图索引 */
|
|
30
|
+
private lastArrivedPanoIndex;
|
|
31
|
+
/** config 的原始值 */
|
|
32
|
+
private _config;
|
|
33
|
+
/** disposed 的原始值 */
|
|
34
|
+
private _disposed;
|
|
35
|
+
constructor(five: Five, params?: PluginType.Params);
|
|
36
|
+
/**
|
|
37
|
+
* 启用插件,响应用户操作并展示UI
|
|
38
|
+
* @param options
|
|
39
|
+
*/
|
|
40
|
+
enable(options?: Required<BaseOptions>): void;
|
|
41
|
+
/** 禁用插件
|
|
42
|
+
* @param `options` `<Option> | <undefined>`
|
|
43
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
44
|
+
*/
|
|
45
|
+
disable(options?: BasePlugin.BaseOptions): void;
|
|
46
|
+
/** 插件内容整体展示
|
|
47
|
+
* @param `options` `<Partial<BaseOptions>> | <undefined>`
|
|
48
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
49
|
+
*/
|
|
50
|
+
show(options?: Partial<PluginType.ShowHideOptions>): Promise<void>;
|
|
51
|
+
/** 插件内容整体隐藏
|
|
52
|
+
* @param `options` `<Partial<BaseOptions>> | <undefined>`
|
|
53
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
54
|
+
*/
|
|
55
|
+
hide(options?: Partial<PluginType.ShowHideOptions>): Promise<void>;
|
|
56
|
+
/** 更改插件 State
|
|
57
|
+
* @param `state` `<Partial<Plugin.State>>` 插件属性 `state` 的子集。
|
|
58
|
+
* @param `options` `<Option> | <undefined>`
|
|
59
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
60
|
+
*/
|
|
61
|
+
setState(state: Partial<PluginType.State>, options?: BasePlugin.BaseOptions): void;
|
|
62
|
+
/** 更改插件 Config
|
|
63
|
+
* @param `config` `<Partial<Plugin.Config>>` 插件属性 `config` 的子集。
|
|
64
|
+
* @param `options` `<Option> | <undefined>`
|
|
65
|
+
*/
|
|
66
|
+
updateConfig(config: Partial<PluginType.Config>, options?: BasePlugin.BaseOptions): void;
|
|
67
|
+
/**
|
|
68
|
+
* 销毁插件
|
|
69
|
+
* @todo 销毁贴图时,最好还是直接销毁贴图吧,this.mesh?.material.map 这种都是很深层的引用了。THREE 的建议我看也是自己去管理和销毁公共贴图。
|
|
70
|
+
*/
|
|
71
|
+
dispose: () => void;
|
|
72
|
+
private updateState;
|
|
73
|
+
private updateMeshVisible;
|
|
74
|
+
/** 根据点位更新 Mesh 坐标 */
|
|
75
|
+
private updateMeshPosition;
|
|
76
|
+
/** 重新加载贴图,调用时会先清除已有的贴图 */
|
|
77
|
+
private reloadTexture;
|
|
78
|
+
/** north_rad 变化时,需要更新模型的旋转角度 */
|
|
79
|
+
private updateMeshQuaternion;
|
|
80
|
+
private checkMeshVisible;
|
|
81
|
+
private _enable;
|
|
82
|
+
private _disable;
|
|
83
|
+
private _show;
|
|
84
|
+
private _hide;
|
|
85
|
+
/** 贴图加载完成的回调 */
|
|
86
|
+
private onTextureLoaded;
|
|
87
|
+
private onFiveWillLoad;
|
|
88
|
+
/** 走点前 */
|
|
89
|
+
private onFivePanoWillArrive;
|
|
90
|
+
/** 走点后 */
|
|
91
|
+
private onFivePanoArrived;
|
|
92
|
+
private onFiveModeChange;
|
|
93
|
+
}
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
var v = Object.defineProperty;
|
|
2
|
+
var c = Object.getOwnPropertySymbols;
|
|
3
|
+
var g = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var p = (r, n, e) => n in r ? v(r, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[n] = e, l = (r, n) => {
|
|
5
|
+
for (var e in n || (n = {}))
|
|
6
|
+
g.call(n, e) && p(r, e, n[e]);
|
|
7
|
+
if (c)
|
|
8
|
+
for (var e of c(n))
|
|
9
|
+
b.call(n, e) && p(r, e, n[e]);
|
|
10
|
+
return r;
|
|
11
|
+
};
|
|
12
|
+
var o = (r, n, e) => (p(r, typeof n != "symbol" ? n + "" : n, e), e);
|
|
13
|
+
var f = (r, n, e) => new Promise((i, t) => {
|
|
14
|
+
var s = (u) => {
|
|
15
|
+
try {
|
|
16
|
+
d(e.next(u));
|
|
17
|
+
} catch (m) {
|
|
18
|
+
t(m);
|
|
19
|
+
}
|
|
20
|
+
}, h = (u) => {
|
|
21
|
+
try {
|
|
22
|
+
d(e.throw(u));
|
|
23
|
+
} catch (m) {
|
|
24
|
+
t(m);
|
|
25
|
+
}
|
|
26
|
+
}, d = (u) => u.done ? i(u.value) : Promise.resolve(u.value).then(s, h);
|
|
27
|
+
d((e = e.apply(r, n)).next());
|
|
28
|
+
});
|
|
29
|
+
import * as a from "three";
|
|
30
|
+
import { Controller as A } from "../base/BasePlugin.js";
|
|
31
|
+
import { tweenProgress as w } from "../shared-utils/animationFrame/BetterTween.js";
|
|
32
|
+
import "hammerjs";
|
|
33
|
+
import "@realsee/five";
|
|
34
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
35
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
36
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
37
|
+
import { equal as P } from "../shared-utils/equal.js";
|
|
38
|
+
import { loadTexture as M } from "../shared-utils/three/loadTexture.js";
|
|
39
|
+
import "../shared-utils/Subscribe.js";
|
|
40
|
+
import "../shared-utils/absoluteUrl.js";
|
|
41
|
+
import "../shared-utils/animationFrame/index.js";
|
|
42
|
+
import "../shared-utils/positionToVector3.js";
|
|
43
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
44
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
45
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
46
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
47
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
48
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
49
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
50
|
+
import "../shared-utils/three/centerPoint.js";
|
|
51
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
52
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
53
|
+
import "../shared-utils/isTruelyObject.js";
|
|
54
|
+
const y = { userAction: !0 };
|
|
55
|
+
class J extends A {
|
|
56
|
+
constructor(e, i) {
|
|
57
|
+
super(e);
|
|
58
|
+
// ==================== public properties ====================
|
|
59
|
+
/** 插件当前状态 */
|
|
60
|
+
o(this, "state");
|
|
61
|
+
/** 查询问题使用的调试对象 */
|
|
62
|
+
o(this, "checkMsg", {
|
|
63
|
+
meshVisible: ""
|
|
64
|
+
});
|
|
65
|
+
// ==================== private properties ====================
|
|
66
|
+
o(this, "group", new a.Group());
|
|
67
|
+
o(this, "mesh");
|
|
68
|
+
o(this, "textureLoadingPromise");
|
|
69
|
+
o(this, "opacityAnimeTween");
|
|
70
|
+
/** 是否正在走点动画中 */
|
|
71
|
+
o(this, "isInPanoMoveAnime", !1);
|
|
72
|
+
/** 上一次走点的全景图索引 */
|
|
73
|
+
o(this, "lastArrivedPanoIndex", -1);
|
|
74
|
+
/** config 的原始值 */
|
|
75
|
+
o(this, "_config");
|
|
76
|
+
/** disposed 的原始值 */
|
|
77
|
+
o(this, "_disposed", !1);
|
|
78
|
+
/**
|
|
79
|
+
* 销毁插件
|
|
80
|
+
* @todo 销毁贴图时,最好还是直接销毁贴图吧,this.mesh?.material.map 这种都是很深层的引用了。THREE 的建议我看也是自己去管理和销毁公共贴图。
|
|
81
|
+
*/
|
|
82
|
+
o(this, "dispose", () => {
|
|
83
|
+
this.five.scene.remove(this.group), this.group.remove(...this.group.children), this.five.off("dispose", this.dispose), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("panoWillArrive", this.onFivePanoWillArrive);
|
|
84
|
+
});
|
|
85
|
+
o(this, "checkMeshVisible", () => this.state.visible ? this.config.imageURL === "" ? { result: !1, msg: "图片不存在" } : this.mesh.material.map ? this.five.work ? this.five.getCurrentState().mode !== "Panorama" ? { result: !1, msg: "非全景模式" } : this.isInPanoMoveAnime ? { result: !1, msg: "处于走点动画中" } : { result: !0, msg: "" } : { result: !1, msg: "Five 数据未加载" } : { result: !1, msg: "指南针贴图未加载" } : { result: !1, msg: "插件隐藏" });
|
|
86
|
+
/** 贴图加载完成的回调 */
|
|
87
|
+
o(this, "onTextureLoaded", (e) => {
|
|
88
|
+
this.mesh.material.map = e, this.mesh.material.needsUpdate = !0, this.updateMeshVisible();
|
|
89
|
+
});
|
|
90
|
+
o(this, "onFiveWillLoad", () => {
|
|
91
|
+
this.lastArrivedPanoIndex = -1, this.updateMeshVisible();
|
|
92
|
+
});
|
|
93
|
+
/** 走点前 */
|
|
94
|
+
o(this, "onFivePanoWillArrive", (e) => {
|
|
95
|
+
var i;
|
|
96
|
+
e !== this.five.getCurrentState().panoIndex && (this.isInPanoMoveAnime = !0, (i = this.opacityAnimeTween) == null || i.dispose(), this.updateMeshVisible());
|
|
97
|
+
});
|
|
98
|
+
/** 走点后 */
|
|
99
|
+
o(this, "onFivePanoArrived", (e) => {
|
|
100
|
+
var i;
|
|
101
|
+
e !== this.lastArrivedPanoIndex && (this.lastArrivedPanoIndex = e, this.isInPanoMoveAnime = !1, this.updateMeshPosition(e), this.mesh.material.map && ((i = this.opacityAnimeTween) == null || i.dispose(), this.mesh.material.setValues({ opacity: 0 }), this.opacityAnimeTween = w(1e3).onUpdate(({ progress: t }) => {
|
|
102
|
+
var s;
|
|
103
|
+
(s = this.mesh) == null || s.material.setValues({ opacity: t }), this.five.needsRender = !0;
|
|
104
|
+
}).play()), this.updateMeshVisible(), this.five.needsRender = !0);
|
|
105
|
+
});
|
|
106
|
+
o(this, "onFiveModeChange", () => {
|
|
107
|
+
this.updateMeshVisible();
|
|
108
|
+
});
|
|
109
|
+
this.five = e;
|
|
110
|
+
const t = {
|
|
111
|
+
enabled: !0,
|
|
112
|
+
visible: !0
|
|
113
|
+
};
|
|
114
|
+
this.state = Object.assign(t, i == null ? void 0 : i.initialState);
|
|
115
|
+
const s = l({
|
|
116
|
+
width: 1.4,
|
|
117
|
+
yOffset: 0.01,
|
|
118
|
+
yRotate: 0,
|
|
119
|
+
imageURL: this.absoluteUrl("/release/web/logo.7febb17f.png")
|
|
120
|
+
}, i == null ? void 0 : i.config);
|
|
121
|
+
this._config = s, this.group.name = "current-pano-image-plugin-group", this.mesh = new a.Mesh(
|
|
122
|
+
new a.PlaneBufferGeometry(this.config.width, this.config.width),
|
|
123
|
+
new a.MeshBasicMaterial({ transparent: !0, opacity: 0, depthTest: !1 })
|
|
124
|
+
), this.group.add(this.mesh), this.updateMeshQuaternion(this.config.yRotate), this.updateMeshPosition(this.five.getCurrentState().panoIndex), this.updateMeshVisible(), this.state.enabled && this._enable({ userAction: !1 }), this.five.once("dispose", this.dispose);
|
|
125
|
+
}
|
|
126
|
+
/** 插件配置项 */
|
|
127
|
+
get config() {
|
|
128
|
+
return l({}, this._config);
|
|
129
|
+
}
|
|
130
|
+
/** 是否已经被销毁 */
|
|
131
|
+
get disposed() {
|
|
132
|
+
return this._disposed;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* 启用插件,响应用户操作并展示UI
|
|
136
|
+
* @param options
|
|
137
|
+
*/
|
|
138
|
+
enable(e = y) {
|
|
139
|
+
var t;
|
|
140
|
+
if (this.state.enabled)
|
|
141
|
+
return;
|
|
142
|
+
const i = (t = e.userAction) != null ? t : !0;
|
|
143
|
+
this.updateState({ enabled: !0 }, i), this._enable({ userAction: i });
|
|
144
|
+
}
|
|
145
|
+
/** 禁用插件
|
|
146
|
+
* @param `options` `<Option> | <undefined>`
|
|
147
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
148
|
+
*/
|
|
149
|
+
disable(e = {}) {
|
|
150
|
+
var t;
|
|
151
|
+
if (this.state.enabled === !1)
|
|
152
|
+
return;
|
|
153
|
+
const i = (t = e.userAction) != null ? t : !0;
|
|
154
|
+
this.updateState({ enabled: !1 }, i), this._disable({ userAction: i });
|
|
155
|
+
}
|
|
156
|
+
/** 插件内容整体展示
|
|
157
|
+
* @param `options` `<Partial<BaseOptions>> | <undefined>`
|
|
158
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
159
|
+
*/
|
|
160
|
+
show(e) {
|
|
161
|
+
return f(this, null, function* () {
|
|
162
|
+
if (this.state.visible)
|
|
163
|
+
return Promise.resolve();
|
|
164
|
+
if (this.disposed)
|
|
165
|
+
return Promise.reject(new Error("不能在已销毁的插件上调用 show"));
|
|
166
|
+
const i = l({ userAction: !0 }, e);
|
|
167
|
+
this.updateState({ visible: !0 }, i.userAction), yield this._show(i);
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
/** 插件内容整体隐藏
|
|
171
|
+
* @param `options` `<Partial<BaseOptions>> | <undefined>`
|
|
172
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
173
|
+
*/
|
|
174
|
+
hide(e) {
|
|
175
|
+
return f(this, null, function* () {
|
|
176
|
+
if (this.state.visible === !1)
|
|
177
|
+
return;
|
|
178
|
+
const i = l({ userAction: !0 }, e);
|
|
179
|
+
this.updateState({ visible: !1 }, i.userAction), yield this._hide(i);
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
/** 更改插件 State
|
|
183
|
+
* @param `state` `<Partial<Plugin.State>>` 插件属性 `state` 的子集。
|
|
184
|
+
* @param `options` `<Option> | <undefined>`
|
|
185
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
186
|
+
*/
|
|
187
|
+
setState(e, i = {}) {
|
|
188
|
+
const t = this.state;
|
|
189
|
+
if (P(e, t, { deep: !0 }))
|
|
190
|
+
return;
|
|
191
|
+
const s = i.userAction !== void 0 ? i.userAction : !0;
|
|
192
|
+
if (this.updateState(e, s), e.enabled !== void 0 && t.enabled !== e.enabled && (e.enabled ? this._enable({ userAction: s }) : this._disable({ userAction: s })), e.visible !== void 0 && t.visible !== e.visible) {
|
|
193
|
+
const h = { userAction: s, anime: { duration: 500 } };
|
|
194
|
+
e.visible ? this._show(h) : this._hide(h);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
/** 更改插件 Config
|
|
198
|
+
* @param `config` `<Partial<Plugin.Config>>` 插件属性 `config` 的子集。
|
|
199
|
+
* @param `options` `<Option> | <undefined>`
|
|
200
|
+
*/
|
|
201
|
+
updateConfig(e, i = {}) {
|
|
202
|
+
var h;
|
|
203
|
+
const t = this.config, s = l(l({}, t), e);
|
|
204
|
+
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 a.PlaneBufferGeometry(s.width, s.width)), this.hooks.emit("configChange", { prevConfig: t, config: s, userAction: (h = i.userAction) != null ? h : !0 });
|
|
205
|
+
}
|
|
206
|
+
updateState(e, i) {
|
|
207
|
+
const t = this.state;
|
|
208
|
+
this.state = l(l({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: t, userAction: i });
|
|
209
|
+
}
|
|
210
|
+
updateMeshVisible() {
|
|
211
|
+
const { result: e, msg: i } = this.checkMeshVisible();
|
|
212
|
+
this.checkMsg.meshVisible = i, this.mesh.visible = e;
|
|
213
|
+
}
|
|
214
|
+
/** 根据点位更新 Mesh 坐标 */
|
|
215
|
+
updateMeshPosition(e) {
|
|
216
|
+
var s, h, d;
|
|
217
|
+
const i = (d = (h = (s = this.five.work) == null ? void 0 : s.observers) == null ? void 0 : h[e]) == null ? void 0 : d.standingPosition, t = i == null ? void 0 : i.clone().setY(i.y + this.config.yOffset);
|
|
218
|
+
t && this.mesh.position.copy(t);
|
|
219
|
+
}
|
|
220
|
+
/** 重新加载贴图,调用时会先清除已有的贴图 */
|
|
221
|
+
reloadTexture(e) {
|
|
222
|
+
return f(this, null, function* () {
|
|
223
|
+
if (this.mesh.material.map = null, e !== "") {
|
|
224
|
+
const i = M(e);
|
|
225
|
+
this.textureLoadingPromise = i;
|
|
226
|
+
const t = yield i;
|
|
227
|
+
this.textureLoadingPromise === i && (this.onTextureLoaded(t), this.textureLoadingPromise = null);
|
|
228
|
+
}
|
|
229
|
+
this.updateMeshVisible();
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
/** north_rad 变化时,需要更新模型的旋转角度 */
|
|
233
|
+
updateMeshQuaternion(e) {
|
|
234
|
+
const i = new a.Quaternion();
|
|
235
|
+
i.multiplyQuaternions(
|
|
236
|
+
// 沿着自身 X 轴旋转 -90 度
|
|
237
|
+
new a.Quaternion().setFromAxisAngle(new a.Vector3(1, 0, 0), -Math.PI / 2),
|
|
238
|
+
// 沿着自身 Z 轴旋转 rad 弧度
|
|
239
|
+
new a.Quaternion().setFromAxisAngle(new a.Vector3(0, 0, 1), e)
|
|
240
|
+
), this.mesh.quaternion.copy(i);
|
|
241
|
+
}
|
|
242
|
+
_enable(e) {
|
|
243
|
+
this.hooks.emit("enable", { userAction: e.userAction }), this.config.imageURL && !this.mesh.material.map && !this.textureLoadingPromise && this.reloadTexture(this.config.imageURL), this.five.scene.add(this.group), this.five.needsRender = !0, this.five.work && this.onFiveWillLoad(), this.five.on("willLoad", this.onFiveWillLoad), this.five.on("panoArrived", this.onFivePanoArrived), this.five.on("panoWillArrive", this.onFivePanoWillArrive), this.five.on("modeChange", this.onFiveModeChange);
|
|
244
|
+
}
|
|
245
|
+
_disable(e) {
|
|
246
|
+
this.hooks.emit("disable", { userAction: e.userAction }), this.five.scene.remove(this.group), this.five.needsRender = !0, this.five.off("willLoad", this.onFiveWillLoad), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.off("modeChange", this.onFiveModeChange);
|
|
247
|
+
}
|
|
248
|
+
_show(e) {
|
|
249
|
+
return f(this, null, function* () {
|
|
250
|
+
this.hooks.emit("show", e), this.updateMeshVisible(), this.five.needsRender = !0;
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
_hide(e) {
|
|
254
|
+
return f(this, null, function* () {
|
|
255
|
+
this.hooks.emit("hide", e), this.updateMeshVisible(), this.five.needsRender = !0;
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
export {
|
|
260
|
+
J as CurrentPanoImagePluginController
|
|
261
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FivePlugin } from '@realsee/five';
|
|
2
|
+
import type * as CurrentPanoImagePluginType from './typings';
|
|
3
|
+
import { CurrentPanoImagePluginController } from './Controller';
|
|
4
|
+
export declare const CurrentPanoImagePlugin: FivePlugin<CurrentPanoImagePluginType.Params, CurrentPanoImagePluginController>;
|
|
5
|
+
export default CurrentPanoImagePlugin;
|
|
6
|
+
export type CurrentPanoImagePluginExportType = CurrentPanoImagePluginController;
|
|
7
|
+
export type { CurrentPanoImagePluginType };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CurrentPanoImagePluginController as t } from "./Controller.js";
|
|
2
|
+
import "three";
|
|
3
|
+
import "../base/BasePlugin.js";
|
|
4
|
+
import "../shared-utils/Subscribe.js";
|
|
5
|
+
import "hammerjs";
|
|
6
|
+
import "@realsee/five";
|
|
7
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
8
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
9
|
+
import "../shared-utils/positionToVector3.js";
|
|
10
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
11
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
12
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
13
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
14
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
15
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
16
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
17
|
+
import "../shared-utils/three/centerPoint.js";
|
|
18
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
19
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
20
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
21
|
+
import "../shared-utils/absoluteUrl.js";
|
|
22
|
+
import "../shared-utils/animationFrame/BetterTween.js";
|
|
23
|
+
import "../shared-utils/animationFrame/index.js";
|
|
24
|
+
import "../shared-utils/equal.js";
|
|
25
|
+
import "../shared-utils/isTruelyObject.js";
|
|
26
|
+
import "../shared-utils/three/loadTexture.js";
|
|
27
|
+
const A = (r, o) => new t(r, o);
|
|
28
|
+
export {
|
|
29
|
+
A as CurrentPanoImagePlugin,
|
|
30
|
+
A as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type * as BasePlugin from '../base/BasePlugin';
|
|
2
|
+
export interface Config extends BasePlugin.Config {
|
|
3
|
+
/** 贴图宽度,单位:米 */
|
|
4
|
+
width: number;
|
|
5
|
+
/** 高度偏移量,单位:米 */
|
|
6
|
+
yOffset: number;
|
|
7
|
+
/** 沿着 Y 轴正方向旋转角度,单位:弧度 */
|
|
8
|
+
yRotate: number;
|
|
9
|
+
/** 贴图 URL */
|
|
10
|
+
imageURL: string;
|
|
11
|
+
}
|
|
12
|
+
export interface State extends BasePlugin.State {
|
|
13
|
+
visible: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface ShowHideOptions extends BasePlugin.BaseOptions {
|
|
16
|
+
userAction: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface EventMap extends BasePlugin.EventMap<State> {
|
|
19
|
+
/** visible 从 false 到 true 的回调
|
|
20
|
+
* @param event.userAction 是否是用户操作
|
|
21
|
+
*/
|
|
22
|
+
show: (event: {
|
|
23
|
+
userAction: boolean;
|
|
24
|
+
}) => void;
|
|
25
|
+
/** visible 从 true 到 false 的回调
|
|
26
|
+
* @param event.userAction 是否是用户操作
|
|
27
|
+
*/
|
|
28
|
+
hide: (event: {
|
|
29
|
+
userAction: boolean;
|
|
30
|
+
}) => void;
|
|
31
|
+
/** enabled 从 false 到 true 的回调
|
|
32
|
+
* @param event.userAction 是否是用户操作
|
|
33
|
+
*/
|
|
34
|
+
enable: (event: {
|
|
35
|
+
userAction: boolean;
|
|
36
|
+
}) => void;
|
|
37
|
+
/** enabled 从 true 到 false 的回调
|
|
38
|
+
* @param event.userAction 是否是用户操作
|
|
39
|
+
*/
|
|
40
|
+
disable: (event: {
|
|
41
|
+
userAction: boolean;
|
|
42
|
+
}) => void;
|
|
43
|
+
/** config 变更的回调
|
|
44
|
+
* @param event.prevConfig 变更前的 config
|
|
45
|
+
* @param event.config 变更后的 config
|
|
46
|
+
* @param event.userAction 是否是用户操作
|
|
47
|
+
*/
|
|
48
|
+
configChange: (event: {
|
|
49
|
+
prevConfig: Config;
|
|
50
|
+
config: Config;
|
|
51
|
+
userAction: boolean;
|
|
52
|
+
}) => void;
|
|
53
|
+
}
|
|
54
|
+
/** 插件初始化参数 */
|
|
55
|
+
export interface Params {
|
|
56
|
+
config?: Partial<Config>;
|
|
57
|
+
initialState?: Partial<State>;
|
|
58
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/libs/base/BasePlugin.js
CHANGED
package/libs/index.d.ts
CHANGED