@realsee/dnalogel 2.27.4-2 → 2.27.4
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/AreaMakerPlugin/index.d.ts +3 -3
- package/dist/floorplan/utils/correctFiveState.d.ts +0 -2
- package/dist/index.cjs.js +49 -49
- package/dist/index.js +2005 -2009
- package/dist/index.umd.js +41 -41
- package/dist/shared-utils/three/loadVideoTexture.d.ts +1 -1
- package/libs/AreaMakerPlugin/index.d.ts +3 -3
- package/libs/AreaMakerPlugin/index.js +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +48 -49
- package/libs/floorplan/utils/correctFiveState.d.ts +0 -2
- package/libs/floorplan/utils/correctFiveState.js +28 -28
- package/libs/index.js +6 -6
- package/libs/shared-utils/device.js +0 -1
- package/libs/shared-utils/five/changeMode.js +29 -32
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/loadVideoTexture.d.ts +1 -1
- package/libs/shared-utils/three/loadVideoTexture.js +6 -6
- 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/AreaMakerPluginPluginType.AreaMakerController.html +0 -711
- package/docs/classes/AreaMakerPluginPluginType.AreaMakerItem.html +0 -671
- 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 -1086
- 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/AreaMakerPluginPlugin.html +0 -284
- 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/AreaMakerPluginPluginType.AnimeOptions.html +0 -325
- package/docs/interfaces/AreaMakerPluginPluginType.Config.html +0 -330
- package/docs/interfaces/AreaMakerPluginPluginType.EventMap.html +0 -616
- package/docs/interfaces/AreaMakerPluginPluginType.Params.html +0 -329
- package/docs/interfaces/AreaMakerPluginPluginType.ServerAreaMakerItem.html +0 -379
- package/docs/interfaces/AreaMakerPluginPluginType.ServerAreaMakerItemV1.html +0 -364
- package/docs/interfaces/AreaMakerPluginPluginType.ServerDataV1.html +0 -329
- package/docs/interfaces/AreaMakerPluginPluginType.ServerDataV2.html +0 -322
- package/docs/interfaces/AreaMakerPluginPluginType.ShowHideOptions.html +0 -321
- package/docs/interfaces/AreaMakerPluginPluginType.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 -351
- package/docs/interfaces/TagConfig.html +0 -541
- 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/AreaMakerPluginPluginType.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/AreaMakerPluginPluginType.AreaMakerItemEventMap.html +0 -327
- package/docs/types/AreaMakerPluginPluginType.PluginData.html +0 -297
- package/docs/types/AreaMakerPluginPluginType.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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
|
-
import {
|
|
2
|
+
import type { Overwrite } from '../../typings/utils.type';
|
|
3
3
|
export default function loadVideoTexture(src: string, videoElement?: HTMLVideoElement): Promise<Overwrite<THREE.VideoTexture, {
|
|
4
4
|
image: HTMLVideoElement;
|
|
5
5
|
}>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Five } from '@realsee/five';
|
|
2
|
-
import type * as
|
|
3
|
-
export declare const
|
|
4
|
-
export type {
|
|
2
|
+
import type * as AreaMakerPluginPluginType from './typing';
|
|
3
|
+
export declare const AreaMakerPluginPlugin: (five: Five) => AreaMakerPluginPluginType.AreaMakerController;
|
|
4
|
+
export type { AreaMakerPluginPluginType };
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var m = (d,
|
|
6
|
-
for (var t in
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
|
|
1
|
+
var S = Object.defineProperty, A = Object.defineProperties;
|
|
2
|
+
var P = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var w = Object.getOwnPropertySymbols;
|
|
4
|
+
var E = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var m = (d, n, t) => n in d ? S(d, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[n] = t, c = (d, n) => {
|
|
6
|
+
for (var t in n || (n = {}))
|
|
7
|
+
E.call(n, t) && m(d, t, n[t]);
|
|
8
|
+
if (w)
|
|
9
|
+
for (var t of w(n))
|
|
10
|
+
C.call(n, t) && m(d, t, n[t]);
|
|
11
11
|
return d;
|
|
12
|
-
}, v = (d,
|
|
13
|
-
var o = (d,
|
|
14
|
-
var u = (d,
|
|
15
|
-
var
|
|
12
|
+
}, v = (d, n) => A(d, P(n));
|
|
13
|
+
var o = (d, n, t) => (m(d, typeof n != "symbol" ? n + "" : n, t), t);
|
|
14
|
+
var u = (d, n, t) => new Promise((e, i) => {
|
|
15
|
+
var r = (a) => {
|
|
16
16
|
try {
|
|
17
17
|
s(t.next(a));
|
|
18
18
|
} catch (l) {
|
|
@@ -24,21 +24,21 @@ var u = (d, r, t) => new Promise((e, i) => {
|
|
|
24
24
|
} catch (l) {
|
|
25
25
|
i(l);
|
|
26
26
|
}
|
|
27
|
-
}, s = (a) => a.done ? e(a.value) : Promise.resolve(a.value).then(
|
|
28
|
-
s((t = t.apply(d,
|
|
27
|
+
}, s = (a) => a.done ? e(a.value) : Promise.resolve(a.value).then(r, h);
|
|
28
|
+
s((t = t.apply(d, n)).next());
|
|
29
29
|
});
|
|
30
|
-
import * as
|
|
30
|
+
import * as I from "three";
|
|
31
31
|
import { to as y } from "../../shared-utils/to.js";
|
|
32
32
|
import { equal as F } from "../../shared-utils/equal.js";
|
|
33
33
|
import { Main as x } from "../Components/Main.js";
|
|
34
|
-
import { formatData as
|
|
34
|
+
import { formatData as g } from "../utils/formatData.js";
|
|
35
35
|
import { CAMERA_IMAGE as M } from "../Assets/camera.js";
|
|
36
36
|
import { omit as _ } from "../../shared-utils/filter.js";
|
|
37
37
|
import { FLOOR_PLAN_ATTACHED_TO as L } from "../constant.js";
|
|
38
38
|
import { Controller as O } from "../../base/BasePluginWithData.js";
|
|
39
39
|
import { getPxmm as D, getAttachedY as T } from "../../shared-utils/getPxmm.js";
|
|
40
40
|
import { checkShowState as k, correctFiveState as H } from "../utils/correctFiveState.js";
|
|
41
|
-
import { changeModelCanvasOpacity as
|
|
41
|
+
import { changeModelCanvasOpacity as b } from "../../shared-utils/changeModelCanvasOpacity.js";
|
|
42
42
|
import { FloorplanErrorType as f, SHOW_ANIME_DURATION as R } from "../utils/constant.js";
|
|
43
43
|
import "../../shared-utils/isTruelyObject.js";
|
|
44
44
|
import "../../vendor/svelte/internal/index.js";
|
|
@@ -90,11 +90,11 @@ import "../../shared-utils/absoluteUrl.js";
|
|
|
90
90
|
import "../../shared-utils/nearlyEqual.js";
|
|
91
91
|
import "../../shared-utils/five/changeMode.js";
|
|
92
92
|
function G(d) {
|
|
93
|
-
const { latitude:
|
|
93
|
+
const { latitude: n, longitude: t } = d, e = Math.abs(n - Math.PI / 2) > 5 * Math.PI / 180, i = t > 5 * (Math.PI / 180) && t < 355 * (Math.PI / 180);
|
|
94
94
|
return e || i;
|
|
95
95
|
}
|
|
96
96
|
function W(d) {
|
|
97
|
-
const { latitude:
|
|
97
|
+
const { latitude: n, longitude: t } = d, e = Math.abs(n - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
|
|
98
98
|
return e && i;
|
|
99
99
|
}
|
|
100
100
|
class Jt extends O {
|
|
@@ -160,7 +160,7 @@ class Jt extends O {
|
|
|
160
160
|
o(this, "updateSize", () => {
|
|
161
161
|
if (!this.data || !k(this.five, this.showState) || !this.container || !this.wrapper)
|
|
162
162
|
return;
|
|
163
|
-
const { min: t, max: e } = this.data.bounding, i = e.x - t.x,
|
|
163
|
+
const { min: t, max: e } = this.data.bounding, i = e.x - t.x, r = e.y - t.y, h = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, s = D(this.five, this.wrapper, this.floorIndex, h), a = Math.ceil(i * s), l = Math.ceil(r * s);
|
|
164
164
|
this.size.width === a && this.size.height === l || (this.container.style.width = a + "px", this.container.style.height = l + "px", this.size = { width: a, height: l });
|
|
165
165
|
});
|
|
166
166
|
o(this, "highlight", (t) => {
|
|
@@ -170,9 +170,9 @@ class Jt extends O {
|
|
|
170
170
|
this.highlightData = {}, this.render();
|
|
171
171
|
});
|
|
172
172
|
o(this, "_disable", (t) => {
|
|
173
|
-
var i,
|
|
173
|
+
var i, r, h;
|
|
174
174
|
const { userAction: e } = t;
|
|
175
|
-
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, f.BreakOffByDisable), this.showPromise = void 0, (
|
|
175
|
+
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, f.BreakOffByDisable), this.showPromise = void 0, (r = this.app) == null || r.$destroy(), this.app = void 0, (h = this.container) == null || h.remove(), this.removeEventListener();
|
|
176
176
|
});
|
|
177
177
|
o(this, "_enable", (t) => {
|
|
178
178
|
const { userAction: e } = t;
|
|
@@ -194,7 +194,7 @@ class Jt extends O {
|
|
|
194
194
|
immediately: !1,
|
|
195
195
|
isAutoShow: !1,
|
|
196
196
|
userAction: !0
|
|
197
|
-
}, i = c(c({}, e), t),
|
|
197
|
+
}, i = c(c({}, e), t), r = () => u(this, null, function* () {
|
|
198
198
|
this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
|
|
199
199
|
let s = !1, a;
|
|
200
200
|
this.showRejection = (p) => {
|
|
@@ -207,10 +207,10 @@ class Jt extends O {
|
|
|
207
207
|
throw a ? new Error(a) : new Error(f.UnknownError);
|
|
208
208
|
this.updateSize(), this.updatePosition(), this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
|
|
209
209
|
});
|
|
210
|
-
return this.isHiddenByHideFunc = !1, this.showPromise =
|
|
210
|
+
return this.isHiddenByHideFunc = !1, this.showPromise = r().then(() => {
|
|
211
211
|
this.showPromise = void 0, this.showRejection = void 0;
|
|
212
212
|
const s = i.modelOpacity, a = i.immediately ? 0 : R;
|
|
213
|
-
|
|
213
|
+
b(this.five, s, a), this.render(a), this.hooks.emit("showAnimationEnded", {
|
|
214
214
|
auto: i.isAutoShow,
|
|
215
215
|
userAction: i.userAction
|
|
216
216
|
});
|
|
@@ -220,13 +220,13 @@ class Jt extends O {
|
|
|
220
220
|
}), this.showPromise;
|
|
221
221
|
}));
|
|
222
222
|
o(this, "_hide", (t) => {
|
|
223
|
-
var
|
|
224
|
-
(
|
|
223
|
+
var r;
|
|
224
|
+
(r = this.showRejection) == null || r.call(this, f.BreakOffByHide), this.showPromise = void 0;
|
|
225
225
|
const i = c(c({}, {
|
|
226
226
|
userAction: !0,
|
|
227
227
|
isAutoHide: !1
|
|
228
228
|
}), t);
|
|
229
|
-
|
|
229
|
+
b(this.five, 1, 0), this.hooks.emit("hide", { auto: i.isAutoHide, userAction: i.userAction }), this.render();
|
|
230
230
|
});
|
|
231
231
|
o(this, "handleClick", () => {
|
|
232
232
|
if (!this.state.visible)
|
|
@@ -236,13 +236,12 @@ class Jt extends O {
|
|
|
236
236
|
});
|
|
237
237
|
/** modelLoaded 之后自动执行 append container 操作 */
|
|
238
238
|
o(this, "onFiveModelLoaded", () => {
|
|
239
|
-
|
|
240
|
-
if (this.showState.offset = e, this.state.enabled === !1 || this.wrapper || !this.selector)
|
|
239
|
+
if (this.state.enabled === !1 || this.wrapper || !this.selector)
|
|
241
240
|
return;
|
|
242
|
-
const
|
|
243
|
-
if (!
|
|
241
|
+
const t = this.selector instanceof Element ? this.selector : document.querySelector(this.selector);
|
|
242
|
+
if (!t)
|
|
244
243
|
throw new Error("不正确的父容器选择器");
|
|
245
|
-
this.wrapper =
|
|
244
|
+
this.wrapper = t, t.append(this.container);
|
|
246
245
|
});
|
|
247
246
|
/** 更改模型时,自动隐藏户型图 */
|
|
248
247
|
o(this, "onFiveModeChange", (t) => {
|
|
@@ -293,7 +292,7 @@ class Jt extends O {
|
|
|
293
292
|
mode: "Mapview",
|
|
294
293
|
longitude: 0,
|
|
295
294
|
latitude: Math.PI / 2,
|
|
296
|
-
fov:
|
|
295
|
+
fov: 90
|
|
297
296
|
};
|
|
298
297
|
const i = {
|
|
299
298
|
northDesc: "北",
|
|
@@ -313,7 +312,7 @@ class Jt extends O {
|
|
|
313
312
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
314
313
|
getRoomAreaText: (s) => (s / 1e6).toFixed(1) + "㎡",
|
|
315
314
|
getRuleDistanceText: (s) => s.toString()
|
|
316
|
-
},
|
|
315
|
+
}, r = e ? _(e, ["selector", "scale"]) : {}, h = c(c({}, i), r);
|
|
317
316
|
this.state = {
|
|
318
317
|
enabled: !0,
|
|
319
318
|
visible: !1,
|
|
@@ -322,13 +321,13 @@ class Jt extends O {
|
|
|
322
321
|
}
|
|
323
322
|
load(t, e, i = !0) {
|
|
324
323
|
return u(this, null, function* () {
|
|
325
|
-
function
|
|
324
|
+
function r(p) {
|
|
326
325
|
return Object.prototype.hasOwnProperty.apply(p, ["version"]);
|
|
327
326
|
}
|
|
328
327
|
const h = t;
|
|
329
328
|
h && !h.version && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
|
|
330
|
-
const s = JSON.parse(JSON.stringify(t)), a =
|
|
331
|
-
this.data = yield
|
|
329
|
+
const s = JSON.parse(JSON.stringify(t)), a = r(s) ? s.data : s, l = this.data;
|
|
330
|
+
this.data = yield g(a), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, l), e && this.updateState(e, i), this.render();
|
|
332
331
|
});
|
|
333
332
|
}
|
|
334
333
|
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
@@ -352,9 +351,9 @@ class Jt extends O {
|
|
|
352
351
|
}
|
|
353
352
|
/** 更改插件 State */
|
|
354
353
|
setState(t, e = {}) {
|
|
355
|
-
const i = this.state,
|
|
356
|
-
if (this.updateState(t,
|
|
357
|
-
const h = { userAction:
|
|
354
|
+
const i = this.state, r = e.userAction !== void 0 ? e.userAction : !0;
|
|
355
|
+
if (this.updateState(t, r), t.enabled !== void 0 && i.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: r }) : this._disable({ userAction: r })), t.visible !== void 0 && i.visible !== t.visible) {
|
|
356
|
+
const h = { userAction: r };
|
|
358
357
|
t.visible ? this._show(h) : this._hide(h);
|
|
359
358
|
}
|
|
360
359
|
}
|
|
@@ -364,20 +363,20 @@ class Jt extends O {
|
|
|
364
363
|
/** 更新户型图位置 */
|
|
365
364
|
updatePosition() {
|
|
366
365
|
var s;
|
|
367
|
-
const t = T(this.five, this.floorIndex, this.state.config.attachedTo), e = (s = this.five.model) == null ? void 0 : s.bounding.getCenter(new
|
|
366
|
+
const t = T(this.five, this.floorIndex, this.state.config.attachedTo), e = (s = this.five.model) == null ? void 0 : s.bounding.getCenter(new I.Vector3()).setY(t);
|
|
368
367
|
if (!e)
|
|
369
368
|
return;
|
|
370
|
-
const i = e.clone().project(this.five.camera),
|
|
371
|
-
this.container.style.left =
|
|
369
|
+
const i = e.clone().project(this.five.camera), r = (i.x + 1) / 2, h = -(i.y - 1) / 2;
|
|
370
|
+
this.container.style.left = r * 100 + "%", this.container.style.top = h * 100 + "%";
|
|
372
371
|
}
|
|
373
372
|
formatData(t) {
|
|
374
373
|
return u(this, null, function* () {
|
|
375
|
-
return yield
|
|
374
|
+
return yield g(t.data);
|
|
376
375
|
});
|
|
377
376
|
}
|
|
378
377
|
updateState(t, e) {
|
|
379
|
-
const i = this.state,
|
|
380
|
-
this.state = v(c(c({}, this.state), t), { config:
|
|
378
|
+
const i = this.state, r = t.config ? c(c({}, i.config), t.config) : i.config;
|
|
379
|
+
this.state = v(c(c({}, this.state), t), { config: r }), !F(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
|
|
381
380
|
}
|
|
382
381
|
/** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
|
|
383
382
|
*
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import type * as THREE from 'three';
|
|
2
1
|
import type { Five, Mode } from '@realsee/five';
|
|
3
2
|
export interface ShowState {
|
|
4
3
|
latitude: number;
|
|
5
4
|
longitude: number;
|
|
6
5
|
fov: number;
|
|
7
6
|
mode: Mode;
|
|
8
|
-
offset?: THREE.Vector3;
|
|
9
7
|
}
|
|
10
8
|
/** 判断当前状态是否可以展示户型图 */
|
|
11
9
|
export declare function checkShowState(five: Five, showState: ShowState): boolean;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
var
|
|
2
|
-
var i = (
|
|
1
|
+
var m = (t, r, e) => new Promise((d, a) => {
|
|
2
|
+
var i = (o) => {
|
|
3
3
|
try {
|
|
4
|
-
u(
|
|
5
|
-
} catch (
|
|
6
|
-
a(
|
|
4
|
+
u(e.next(o));
|
|
5
|
+
} catch (c) {
|
|
6
|
+
a(c);
|
|
7
7
|
}
|
|
8
|
-
}, n = (
|
|
8
|
+
}, n = (o) => {
|
|
9
9
|
try {
|
|
10
|
-
u(
|
|
11
|
-
} catch (
|
|
12
|
-
a(
|
|
10
|
+
u(e.throw(o));
|
|
11
|
+
} catch (c) {
|
|
12
|
+
a(c);
|
|
13
13
|
}
|
|
14
|
-
}, u = (
|
|
15
|
-
u((
|
|
14
|
+
}, u = (o) => o.done ? d(o.value) : Promise.resolve(o.value).then(i, n);
|
|
15
|
+
u((e = e.apply(t, r)).next());
|
|
16
16
|
});
|
|
17
|
-
import { to as
|
|
18
|
-
import { FloorplanErrorType as
|
|
17
|
+
import { to as f } from "../../shared-utils/to.js";
|
|
18
|
+
import { FloorplanErrorType as l } from "./constant.js";
|
|
19
19
|
import { nearlyEqual as s } from "../../shared-utils/nearlyEqual.js";
|
|
20
20
|
import { changeMode as p } from "../../shared-utils/five/changeMode.js";
|
|
21
|
-
function g(
|
|
22
|
-
if (
|
|
21
|
+
function g(t, r) {
|
|
22
|
+
if (t.currentMode !== r.mode)
|
|
23
23
|
return !1;
|
|
24
|
-
const { latitude:
|
|
25
|
-
return !(!s(
|
|
24
|
+
const { latitude: e, longitude: d, fov: a } = r, { latitude: i, longitude: n } = t.getCurrentState(), u = t.camera.fov;
|
|
25
|
+
return !(!s(e, i, 2) || !s(d, n, 2) || a !== u);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
return
|
|
29
|
-
if (g(
|
|
27
|
+
function F(t, r, e = !0) {
|
|
28
|
+
return m(this, null, function* () {
|
|
29
|
+
if (g(t, r) === !0)
|
|
30
30
|
return;
|
|
31
|
-
const a =
|
|
31
|
+
const a = t.getCurrentState();
|
|
32
32
|
if (a.mode !== r.mode) {
|
|
33
|
-
const [M] = yield
|
|
33
|
+
const [M] = yield f(p(t, [r.mode, r, void 0, e]));
|
|
34
34
|
if (M)
|
|
35
|
-
throw new Error(
|
|
35
|
+
throw new Error(l.ChangeModeError);
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
38
|
-
const { latitude: i, longitude: n, fov: u } = a,
|
|
38
|
+
const { latitude: i, longitude: n, fov: u } = a, o = Math.min(
|
|
39
39
|
1e3,
|
|
40
40
|
Math.max(
|
|
41
41
|
200,
|
|
@@ -43,12 +43,12 @@ function y(e, r, o = !0) {
|
|
|
43
43
|
(n > Math.PI ? 2 * Math.PI - n : n) * 500,
|
|
44
44
|
Math.abs(u - r.fov) * 10
|
|
45
45
|
)
|
|
46
|
-
), [
|
|
47
|
-
if (
|
|
48
|
-
throw new Error(
|
|
46
|
+
), [c] = yield f(t.updateCamera(r, o, e));
|
|
47
|
+
if (c)
|
|
48
|
+
throw new Error(l.UpdateCameraError);
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
export {
|
|
52
52
|
g as checkShowState,
|
|
53
|
-
|
|
53
|
+
F as correctFiveState
|
|
54
54
|
};
|
package/libs/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { PanoFloorplanRadarPlugin as te } from "./floorplan/PanoFloorplanRadarPl
|
|
|
14
14
|
import { FLOOR_TYPE_MAP as me, ROOM_FETILE_TYPE_MAP as pe, ROOM_TYPE_MAP as ee } from "./floorplan/typings/floorplanServerData.js";
|
|
15
15
|
import { ModelChassisCompassPlugin as le } from "./ModelChassisCompassPlugin/Plugin.js";
|
|
16
16
|
import { ModelEntryDoorGuidePlugin as Pe } from "./ModelEntryDoorGuidePlugin/Plugin.js";
|
|
17
|
-
import { CameraMovementPlugin as
|
|
17
|
+
import { CameraMovementPlugin as fe } from "./CameraMovementPlugin/CameraMovementPlugin.js";
|
|
18
18
|
import { CameraMovementEffect as ge, Rotation as se } from "./CameraMovementPlugin/typing.js";
|
|
19
19
|
import { PanoRulerPlugin as Me } from "./PanoRulerPlugin/Plugin.js";
|
|
20
20
|
import { PanoRulerProPlugin as Le } from "./PanoRulerProPlugin/index.js";
|
|
@@ -32,7 +32,7 @@ import { PanoTagPlugin as He } from "./PanoTagPlugin/index.js";
|
|
|
32
32
|
import { Object3DHelperPlugin as je } from "./Object3DHelperPlugin/index.js";
|
|
33
33
|
import { PanoVideoPlugin as ke } from "./PanoVideoPlugin/index.js";
|
|
34
34
|
import { PipelinePlugin as ze } from "./PipelinePlugin/index.js";
|
|
35
|
-
import {
|
|
35
|
+
import { AreaMakerPluginPlugin as Ke } from "./AreaMakerPlugin/index.js";
|
|
36
36
|
import { index as We } from "./shared-utils/index.js";
|
|
37
37
|
import { CSS3DRender as Ze } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
38
38
|
import { Model as rn } from "./PanoMeasurePlugin/Model/index.js";
|
|
@@ -40,7 +40,7 @@ import { default as mn } from "./PanoMeasurePlugin/Model/point.js";
|
|
|
40
40
|
import { default as en } from "./PanoMeasurePlugin/Model/line.js";
|
|
41
41
|
import { Polyline as ln } from "./PanoMeasurePlugin/Model/polyline.js";
|
|
42
42
|
import { default as Pn } from "./PanoMeasurePlugin/Modules/Magnifier.js";
|
|
43
|
-
import { DISPLAY_STRATEGY_TYPE as
|
|
43
|
+
import { DISPLAY_STRATEGY_TYPE as fn } from "./ModelItemLabelPlugin/typings.js";
|
|
44
44
|
import { ModelItemLabelPlugin as gn } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
|
|
45
45
|
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as dn } from "./ItemLabelPlugin/typings.js";
|
|
46
46
|
import { Plugin as Tn } from "./ItemLabelPlugin/Plugin.js";
|
|
@@ -408,17 +408,17 @@ import "./shared-utils/three/getRaycaster.js";
|
|
|
408
408
|
r();
|
|
409
409
|
o();
|
|
410
410
|
export {
|
|
411
|
-
Ke as
|
|
411
|
+
Ke as AreaMakerPluginPlugin,
|
|
412
412
|
Ze as CSS3DRender,
|
|
413
413
|
Hp as CSS3DRenderPlugin,
|
|
414
414
|
ge as CameraMovementEffect,
|
|
415
|
-
|
|
415
|
+
fe as CameraMovementPlugin,
|
|
416
416
|
Yn as ContentType,
|
|
417
417
|
we as CruisePlugin,
|
|
418
418
|
In as CruisePluginController,
|
|
419
419
|
yn as CruisePluginTypes,
|
|
420
420
|
be as DIRECTION,
|
|
421
|
-
|
|
421
|
+
fn as DISPLAY_STRATEGY_TYPE,
|
|
422
422
|
vn as DimensionType,
|
|
423
423
|
Jp as FLOOR_PLAN_ATTACHED_TO,
|
|
424
424
|
me as FLOOR_TYPE_MAP,
|
|
@@ -2,7 +2,6 @@ const e = navigator.userAgent.toLowerCase().indexOf("iphone") !== -1;
|
|
|
2
2
|
navigator.userAgent.toLowerCase().indexOf("android");
|
|
3
3
|
const o = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1, n = e && o;
|
|
4
4
|
export {
|
|
5
|
-
e as isIOS,
|
|
6
5
|
n as isIOSWX,
|
|
7
6
|
o as isWX
|
|
8
7
|
};
|
|
@@ -1,51 +1,48 @@
|
|
|
1
|
-
var
|
|
1
|
+
var m = (e, c, t) => new Promise((r, n) => {
|
|
2
2
|
var a = (o) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
5
|
-
} catch (
|
|
6
|
-
|
|
4
|
+
s(t.next(o));
|
|
5
|
+
} catch (u) {
|
|
6
|
+
n(u);
|
|
7
7
|
}
|
|
8
8
|
}, i = (o) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
} catch (
|
|
12
|
-
|
|
10
|
+
s(t.throw(o));
|
|
11
|
+
} catch (u) {
|
|
12
|
+
n(u);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, s = (o) => o.done ? r(o.value) : Promise.resolve(o.value).then(a, i);
|
|
15
|
+
s((t = t.apply(e, c)).next());
|
|
16
16
|
});
|
|
17
|
-
import { nearlyEqual as
|
|
18
|
-
import { to as
|
|
19
|
-
function
|
|
20
|
-
return
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return h(t) && !!t.isVector3;
|
|
24
|
-
}
|
|
25
|
-
function g(t, c) {
|
|
26
|
-
return f(this, null, function* () {
|
|
27
|
-
const [n] = yield l(t.changeMode(...c));
|
|
28
|
-
if (n)
|
|
17
|
+
import { nearlyEqual as f } from "../nearlyEqual.js";
|
|
18
|
+
import { to as h } from "../to.js";
|
|
19
|
+
function y(e, c) {
|
|
20
|
+
return m(this, null, function* () {
|
|
21
|
+
const [t] = yield h(e.changeMode(...c));
|
|
22
|
+
if (t)
|
|
29
23
|
throw new Error("change mode canceled");
|
|
30
24
|
yield new Promise((i) => {
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
e.once("initAnimationWillStart", () => {
|
|
26
|
+
e.once("initAnimationEnded", () => i());
|
|
33
27
|
});
|
|
34
28
|
});
|
|
35
|
-
const
|
|
36
|
-
if (!
|
|
29
|
+
const r = c[1];
|
|
30
|
+
if (!r)
|
|
37
31
|
return !0;
|
|
38
|
-
const
|
|
39
|
-
if (!w(
|
|
32
|
+
const n = e.getCurrentState();
|
|
33
|
+
if (!w(r, n))
|
|
40
34
|
throw new Error("pose 与预期不符");
|
|
41
35
|
});
|
|
42
36
|
}
|
|
43
|
-
function w(
|
|
44
|
-
return Object.keys(
|
|
45
|
-
const
|
|
46
|
-
|
|
37
|
+
function w(e, c) {
|
|
38
|
+
return Object.keys(e).every((t) => {
|
|
39
|
+
const r = c[t];
|
|
40
|
+
if (r === void 0)
|
|
41
|
+
return !0;
|
|
42
|
+
const n = e[t];
|
|
43
|
+
return typeof r == "number" && typeof n == "number" ? f(r, n, 2) : r === n;
|
|
47
44
|
});
|
|
48
45
|
}
|
|
49
46
|
export {
|
|
50
|
-
|
|
47
|
+
y as changeMode
|
|
51
48
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv2.27.4
|
|
3
|
+
"%c %c@realsee/dnalogel %cv2.27.4",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
|
-
import {
|
|
2
|
+
import type { Overwrite } from '../../typings/utils.type';
|
|
3
3
|
export default function loadVideoTexture(src: string, videoElement?: HTMLVideoElement): Promise<Overwrite<THREE.VideoTexture, {
|
|
4
4
|
image: HTMLVideoElement;
|
|
5
5
|
}>>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as a from "three";
|
|
2
|
-
import { isWX as d
|
|
3
|
-
function
|
|
2
|
+
import { isWX as d } from "../device.js";
|
|
3
|
+
function c(i, r) {
|
|
4
4
|
let n = !d;
|
|
5
5
|
const e = r != null ? r : document.createElement("video");
|
|
6
6
|
e.preload = "metadata", e.crossOrigin = "anonymous", e.muted = !0, e.loop = !0, e.playsInline = !0, e.autoplay = !0;
|
|
7
7
|
const t = new a.VideoTexture(e);
|
|
8
|
-
t.minFilter = a.LinearFilter, t.magFilter = a.LinearFilter, t.encoding = a.sRGBEncoding, t.metadataLoaded = !1, e.src =
|
|
8
|
+
t.minFilter = a.LinearFilter, t.magFilter = a.LinearFilter, t.encoding = a.sRGBEncoding, t.metadataLoaded = !1, e.src = i;
|
|
9
9
|
const o = () => {
|
|
10
10
|
t.metadataLoaded || (t.dispatchEvent({ type: "videoLoaded" }), t.metadataLoaded = !0);
|
|
11
11
|
};
|
|
12
12
|
if (d || (e.onloadedmetadata = () => {
|
|
13
13
|
o();
|
|
14
14
|
}), d) {
|
|
15
|
-
const
|
|
15
|
+
const u = () => {
|
|
16
16
|
if (!n) {
|
|
17
17
|
if (!e.paused) {
|
|
18
18
|
o();
|
|
@@ -23,10 +23,10 @@ function m(u, r) {
|
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
document.addEventListener("click",
|
|
26
|
+
document.addEventListener("click", u, { once: !0 }), document.addEventListener("touchend", u, { once: !0 });
|
|
27
27
|
}
|
|
28
28
|
return t;
|
|
29
29
|
}
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
c as getVideoTexture
|
|
32
32
|
};
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "2.27.4
|
|
10
|
+
"version": "2.27.4",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|
package/docs/.nojekyll
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|