@realsee/dnalogel 2.0.0-alpha.53 → 2.0.0-alpha.54
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/CSS3DRenderPlugin/CruisePlugin/index.d.ts +2 -2
- package/dist/CSS3DRenderPlugin/CruisePlugin/typing.d.ts +11 -1
- package/dist/CSS3DRenderPlugin/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/CSS3DRenderPlugin/GuideLinePlugin/index.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/GuideLinePlugin/utils/getArrowMaterial.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +1 -1
- package/dist/CameraMovementPlugin/CruisePlugin/index.d.ts +2 -2
- package/dist/CameraMovementPlugin/CruisePlugin/typing.d.ts +11 -1
- package/dist/CameraMovementPlugin/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/CameraMovementPlugin/GuideLinePlugin/index.d.ts +1 -1
- package/dist/CameraMovementPlugin/GuideLinePlugin/utils/getArrowMaterial.d.ts +1 -1
- package/dist/CameraMovementPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +1 -1
- package/dist/CruisePlugin/CruisePlugin/index.d.ts +2 -2
- package/dist/CruisePlugin/CruisePlugin/typing.d.ts +11 -1
- package/dist/CruisePlugin/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/CruisePlugin/GuideLinePlugin/index.d.ts +1 -1
- package/dist/CruisePlugin/GuideLinePlugin/utils/getArrowMaterial.d.ts +1 -1
- package/dist/CruisePlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +1 -1
- package/dist/CruisePlugin/index.d.ts +2 -2
- package/dist/CruisePlugin/index.js +77 -36
- package/dist/CruisePlugin/typing.d.ts +11 -1
- package/dist/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/GuideLinePlugin/CruisePlugin/index.d.ts +2 -2
- package/dist/GuideLinePlugin/CruisePlugin/typing.d.ts +11 -1
- package/dist/GuideLinePlugin/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/GuideLinePlugin/GuideLinePlugin/index.d.ts +1 -1
- package/dist/GuideLinePlugin/GuideLinePlugin/utils/getArrowMaterial.d.ts +1 -1
- package/dist/GuideLinePlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +1 -1
- package/dist/GuideLinePlugin/index.d.ts +1 -1
- package/dist/GuideLinePlugin/index.js +13 -8
- package/dist/GuideLinePlugin/utils/getArrowMaterial.d.ts +1 -1
- package/dist/GuideLinePlugin/utils/getLineGeometry.d.ts +1 -1
- package/dist/ItemLabelPlugin/CruisePlugin/index.d.ts +2 -2
- package/dist/ItemLabelPlugin/CruisePlugin/typing.d.ts +11 -1
- package/dist/ItemLabelPlugin/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/ItemLabelPlugin/GuideLinePlugin/index.d.ts +1 -1
- package/dist/ItemLabelPlugin/GuideLinePlugin/utils/getArrowMaterial.d.ts +1 -1
- package/dist/ItemLabelPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +1 -1
- package/dist/ModelChassisCompassPlugin/CruisePlugin/index.d.ts +2 -2
- package/dist/ModelChassisCompassPlugin/CruisePlugin/typing.d.ts +11 -1
- package/dist/ModelChassisCompassPlugin/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/ModelChassisCompassPlugin/GuideLinePlugin/index.d.ts +1 -1
- package/dist/ModelChassisCompassPlugin/GuideLinePlugin/utils/getArrowMaterial.d.ts +1 -1
- package/dist/ModelChassisCompassPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +1 -1
- package/dist/ModelEntryDoorGuidePlugin/CruisePlugin/index.d.ts +2 -2
- package/dist/ModelEntryDoorGuidePlugin/CruisePlugin/typing.d.ts +11 -1
- package/dist/ModelEntryDoorGuidePlugin/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/ModelEntryDoorGuidePlugin/GuideLinePlugin/index.d.ts +1 -1
- package/dist/ModelEntryDoorGuidePlugin/GuideLinePlugin/utils/getArrowMaterial.d.ts +1 -1
- package/dist/ModelEntryDoorGuidePlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +1 -1
- package/dist/ModelItemLabelPlugin/CruisePlugin/index.d.ts +2 -2
- package/dist/ModelItemLabelPlugin/CruisePlugin/typing.d.ts +11 -1
- package/dist/ModelItemLabelPlugin/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/ModelItemLabelPlugin/GuideLinePlugin/index.d.ts +1 -1
- package/dist/ModelItemLabelPlugin/GuideLinePlugin/utils/getArrowMaterial.d.ts +1 -1
- package/dist/ModelItemLabelPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +1 -1
- package/dist/ModelRoomLabelPlugin/CruisePlugin/index.d.ts +2 -2
- package/dist/ModelRoomLabelPlugin/CruisePlugin/typing.d.ts +11 -1
- package/dist/ModelRoomLabelPlugin/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/ModelRoomLabelPlugin/GuideLinePlugin/index.d.ts +1 -1
- package/dist/ModelRoomLabelPlugin/GuideLinePlugin/utils/getArrowMaterial.d.ts +1 -1
- package/dist/ModelRoomLabelPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +1 -1
- package/dist/ModelTVVideoPlugin/CruisePlugin/index.d.ts +2 -2
- package/dist/ModelTVVideoPlugin/CruisePlugin/typing.d.ts +11 -1
- package/dist/ModelTVVideoPlugin/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/ModelTVVideoPlugin/GuideLinePlugin/index.d.ts +1 -1
- package/dist/ModelTVVideoPlugin/GuideLinePlugin/utils/getArrowMaterial.d.ts +1 -1
- package/dist/ModelTVVideoPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +1 -1
- package/dist/ModelViewPlugin/CruisePlugin/index.d.ts +2 -2
- package/dist/ModelViewPlugin/CruisePlugin/typing.d.ts +11 -1
- package/dist/ModelViewPlugin/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/ModelViewPlugin/GuideLinePlugin/index.d.ts +1 -1
- package/dist/ModelViewPlugin/GuideLinePlugin/utils/getArrowMaterial.d.ts +1 -1
- package/dist/ModelViewPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +1 -1
- package/dist/PanoCompassPlugin/CruisePlugin/index.d.ts +2 -2
- package/dist/PanoCompassPlugin/CruisePlugin/typing.d.ts +11 -1
- package/dist/PanoCompassPlugin/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/PanoCompassPlugin/GuideLinePlugin/index.d.ts +1 -1
- package/dist/PanoCompassPlugin/GuideLinePlugin/utils/getArrowMaterial.d.ts +1 -1
- package/dist/PanoCompassPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +1 -1
- package/dist/PanoCursorRaycasterPlugin/CruisePlugin/index.d.ts +2 -2
- package/dist/PanoCursorRaycasterPlugin/CruisePlugin/typing.d.ts +11 -1
- package/dist/PanoCursorRaycasterPlugin/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/PanoCursorRaycasterPlugin/GuideLinePlugin/index.d.ts +1 -1
- package/dist/PanoCursorRaycasterPlugin/GuideLinePlugin/utils/getArrowMaterial.d.ts +1 -1
- package/dist/PanoCursorRaycasterPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +1 -1
- package/dist/PanoDoorLabelPlugin/CruisePlugin/index.d.ts +2 -2
- package/dist/PanoDoorLabelPlugin/CruisePlugin/typing.d.ts +11 -1
- package/dist/PanoDoorLabelPlugin/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/PanoDoorLabelPlugin/GuideLinePlugin/index.d.ts +1 -1
- package/dist/PanoDoorLabelPlugin/GuideLinePlugin/utils/getArrowMaterial.d.ts +1 -1
- package/dist/PanoDoorLabelPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +1 -1
- package/dist/PanoMeasurePlugin/CruisePlugin/index.d.ts +2 -2
- package/dist/PanoMeasurePlugin/CruisePlugin/typing.d.ts +11 -1
- package/dist/PanoMeasurePlugin/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/PanoMeasurePlugin/GuideLinePlugin/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/GuideLinePlugin/utils/getArrowMaterial.d.ts +1 -1
- package/dist/PanoMeasurePlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +1 -1
- package/dist/PanoRulerPlugin/CruisePlugin/index.d.ts +2 -2
- package/dist/PanoRulerPlugin/CruisePlugin/typing.d.ts +11 -1
- package/dist/PanoRulerPlugin/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/PanoRulerPlugin/GuideLinePlugin/index.d.ts +1 -1
- package/dist/PanoRulerPlugin/GuideLinePlugin/utils/getArrowMaterial.d.ts +1 -1
- package/dist/PanoRulerPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +1 -1
- package/dist/PanoRulerProPlugin/CruisePlugin/index.d.ts +2 -2
- package/dist/PanoRulerProPlugin/CruisePlugin/typing.d.ts +11 -1
- package/dist/PanoRulerProPlugin/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/PanoRulerProPlugin/GuideLinePlugin/index.d.ts +1 -1
- package/dist/PanoRulerProPlugin/GuideLinePlugin/utils/getArrowMaterial.d.ts +1 -1
- package/dist/PanoRulerProPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +1 -1
- package/dist/PanoSpatialTagPlugin/CruisePlugin/index.d.ts +2 -2
- package/dist/PanoSpatialTagPlugin/CruisePlugin/typing.d.ts +11 -1
- package/dist/PanoSpatialTagPlugin/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/PanoSpatialTagPlugin/GuideLinePlugin/index.d.ts +1 -1
- package/dist/PanoSpatialTagPlugin/GuideLinePlugin/utils/getArrowMaterial.d.ts +1 -1
- package/dist/PanoSpatialTagPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +1 -1
- package/dist/floorplan/MapviewFloorplanPlugin/CruisePlugin/index.d.ts +2 -2
- package/dist/floorplan/MapviewFloorplanPlugin/CruisePlugin/typing.d.ts +11 -1
- package/dist/floorplan/MapviewFloorplanPlugin/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/floorplan/MapviewFloorplanPlugin/GuideLinePlugin/index.d.ts +1 -1
- package/dist/floorplan/MapviewFloorplanPlugin/GuideLinePlugin/utils/getArrowMaterial.d.ts +1 -1
- package/dist/floorplan/MapviewFloorplanPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +1 -1
- package/dist/floorplan/ModelFloorplanPlugin/CruisePlugin/index.d.ts +2 -2
- package/dist/floorplan/ModelFloorplanPlugin/CruisePlugin/typing.d.ts +11 -1
- package/dist/floorplan/ModelFloorplanPlugin/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/GuideLinePlugin/index.d.ts +1 -1
- package/dist/floorplan/ModelFloorplanPlugin/GuideLinePlugin/utils/getArrowMaterial.d.ts +1 -1
- package/dist/floorplan/ModelFloorplanPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +1 -1
- package/dist/floorplan/PanoFloorplanRadarPlugin/CruisePlugin/index.d.ts +2 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/CruisePlugin/typing.d.ts +11 -1
- package/dist/floorplan/PanoFloorplanRadarPlugin/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/GuideLinePlugin/index.d.ts +1 -1
- package/dist/floorplan/PanoFloorplanRadarPlugin/GuideLinePlugin/utils/getArrowMaterial.d.ts +1 -1
- package/dist/floorplan/PanoFloorplanRadarPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +1 -1
- package/dist/floorplan/TopviewFloorplanPlugin/CruisePlugin/index.d.ts +2 -2
- package/dist/floorplan/TopviewFloorplanPlugin/CruisePlugin/typing.d.ts +11 -1
- package/dist/floorplan/TopviewFloorplanPlugin/CruisePlugin/utils/sleep.d.ts +1 -0
- package/dist/floorplan/TopviewFloorplanPlugin/GuideLinePlugin/index.d.ts +1 -1
- package/dist/floorplan/TopviewFloorplanPlugin/GuideLinePlugin/utils/getArrowMaterial.d.ts +1 -1
- package/dist/floorplan/TopviewFloorplanPlugin/GuideLinePlugin/utils/getLineGeometry.d.ts +1 -1
- package/dist/index.es.js +77 -36
- package/dist/index.js +77 -36
- package/dist/index.umd.js +77 -36
- package/docs/assets/search.js +1 -1
- package/docs/classes/CruisePluginController.html +14 -14
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/Rotation.html +2 -2
- package/docs/index.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginExportType.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/EventMap.html +15 -0
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +7 -7
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +6 -6
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +1 -1
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
- package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
- package/docs/interfaces/FloorplanServerEntrance.html +7 -7
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +1 -1
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/ModelViewPluginExportType.html +1 -1
- package/docs/interfaces/OpenParameter.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +1 -1
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginState.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
- package/docs/interfaces/PluginData.html +1 -0
- package/docs/interfaces/PluginServerData.html +3 -0
- package/docs/interfaces/PluginState.html +5 -0
- package/docs/interfaces/Point.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -1
- package/docs/interfaces/RoomInfo.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Route.html +1 -0
- package/docs/modules.html +18 -18
- package/libs/CruisePlugin/Controller.js +57 -28
- package/libs/CruisePlugin/index.d.ts +2 -2
- package/libs/CruisePlugin/index.js +1 -2
- package/libs/CruisePlugin/typing.d.ts +11 -1
- package/libs/CruisePlugin/utils/sleep.d.ts +1 -0
- package/libs/CruisePlugin/utils/sleep.js +7 -0
- package/libs/GuideLinePlugin/Controller.js +3 -3
- package/libs/GuideLinePlugin/index.d.ts +1 -1
- package/libs/GuideLinePlugin/index.js +1 -0
- package/libs/GuideLinePlugin/utils/getArrowMaterial.d.ts +1 -1
- package/libs/GuideLinePlugin/utils/getArrowMaterial.js +6 -1
- package/libs/GuideLinePlugin/utils/getLineGeometry.d.ts +1 -1
- package/libs/GuideLinePlugin/utils/getLineGeometry.js +4 -4
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function sleep(duration: number): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FivePlugin } from '@realsee/five';
|
|
2
2
|
import Controller from './Controller';
|
|
3
|
+
export * from './typing';
|
|
3
4
|
export declare const GuideLinePlugin: FivePlugin<void, InstanceType<typeof Controller>>;
|
|
4
|
-
export type { GuideLinePluginExportType } from './typing';
|
|
5
5
|
export default GuideLinePlugin;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
|
-
export default function getLineGeometry(positionList: THREE.Vector3[]): THREE.BufferGeometry;
|
|
2
|
+
export default function getLineGeometry(positionList: THREE.Vector3[]): void | THREE.BufferGeometry;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FivePlugin } from '@realsee/five';
|
|
2
2
|
import CruisePluginController from './Controller';
|
|
3
3
|
export { CruisePluginController };
|
|
4
|
-
declare const CruisePlugin: FivePlugin<void, InstanceType<typeof CruisePluginController>>;
|
|
5
|
-
export {
|
|
4
|
+
export declare const CruisePlugin: FivePlugin<void, InstanceType<typeof CruisePluginController>>;
|
|
5
|
+
export type { CruisePluginExportType } from './typing';
|
|
6
6
|
export default CruisePlugin;
|
|
@@ -2,7 +2,7 @@ import type { MovePanoOptions, Pose, State } from '@realsee/five';
|
|
|
2
2
|
import type CruisePlugin from '.';
|
|
3
3
|
import type * as BasePluginWithData from '../base/BasePluginWithData';
|
|
4
4
|
declare type FivePoseAndState = Partial<Pose> & Partial<State>;
|
|
5
|
-
declare type MoveEffect = MovePanoOptions['effect'];
|
|
5
|
+
export declare type MoveEffect = MovePanoOptions['effect'];
|
|
6
6
|
export declare type CruiseData = {
|
|
7
7
|
/** 移动/旋转 */
|
|
8
8
|
effect: 'Move' | 'Rotate';
|
|
@@ -16,6 +16,8 @@ export declare type CruiseData = {
|
|
|
16
16
|
export interface CruiseKeyframe {
|
|
17
17
|
id: string;
|
|
18
18
|
index: number;
|
|
19
|
+
moveIndex: number;
|
|
20
|
+
stay?: number;
|
|
19
21
|
start?: number;
|
|
20
22
|
end?: number;
|
|
21
23
|
data: CruiseData;
|
|
@@ -39,13 +41,21 @@ export interface PluginServerData extends BasePluginWithData.ServerData {
|
|
|
39
41
|
moveEffect?: undefined;
|
|
40
42
|
/** for ts check, no care */
|
|
41
43
|
moveType?: undefined;
|
|
44
|
+
/** for ts check, no care */
|
|
45
|
+
moveToFirstPanoEffect?: undefined;
|
|
46
|
+
/** for ts check, no care */
|
|
47
|
+
stay?: undefined;
|
|
42
48
|
} | {
|
|
43
49
|
/** 点位列表 */
|
|
44
50
|
panoIndexList: number[];
|
|
45
51
|
/** five走点动画 */
|
|
46
52
|
moveEffect?: MoveEffect;
|
|
53
|
+
/** 到第一个点的走点动画 / 续播到暂停处的走点动画 */
|
|
54
|
+
moveToFirstPanoEffect?: MoveEffect;
|
|
47
55
|
/** 漫游方式:justMove 为移动到指定点位,且朝向为下一个点的朝向;moveAndRotate 为先移动到指定点位且朝向不变,然后旋转到下一个点的朝向 */
|
|
48
56
|
moveType?: 'justMove' | 'moveAndRotate';
|
|
57
|
+
/** 停留时长 */
|
|
58
|
+
stay?: number;
|
|
49
59
|
/** for ts check, no care */
|
|
50
60
|
keyframes?: undefined;
|
|
51
61
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function sleep(duration: number): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FivePlugin } from '@realsee/five';
|
|
2
2
|
import Controller from './Controller';
|
|
3
|
+
export * from './typing';
|
|
3
4
|
export declare const GuideLinePlugin: FivePlugin<void, InstanceType<typeof Controller>>;
|
|
4
|
-
export type { GuideLinePluginExportType } from './typing';
|
|
5
5
|
export default GuideLinePlugin;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
|
-
export default function getLineGeometry(positionList: THREE.Vector3[]): THREE.BufferGeometry;
|
|
2
|
+
export default function getLineGeometry(positionList: THREE.Vector3[]): void | THREE.BufferGeometry;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FivePlugin } from '@realsee/five';
|
|
2
2
|
import CruisePluginController from './Controller';
|
|
3
3
|
export { CruisePluginController };
|
|
4
|
-
declare const CruisePlugin: FivePlugin<void, InstanceType<typeof CruisePluginController>>;
|
|
5
|
-
export {
|
|
4
|
+
export declare const CruisePlugin: FivePlugin<void, InstanceType<typeof CruisePluginController>>;
|
|
5
|
+
export type { CruisePluginExportType } from './typing';
|
|
6
6
|
export default CruisePlugin;
|
|
@@ -2,7 +2,7 @@ import type { MovePanoOptions, Pose, State } from '@realsee/five';
|
|
|
2
2
|
import type CruisePlugin from '.';
|
|
3
3
|
import type * as BasePluginWithData from '../base/BasePluginWithData';
|
|
4
4
|
declare type FivePoseAndState = Partial<Pose> & Partial<State>;
|
|
5
|
-
declare type MoveEffect = MovePanoOptions['effect'];
|
|
5
|
+
export declare type MoveEffect = MovePanoOptions['effect'];
|
|
6
6
|
export declare type CruiseData = {
|
|
7
7
|
/** 移动/旋转 */
|
|
8
8
|
effect: 'Move' | 'Rotate';
|
|
@@ -16,6 +16,8 @@ export declare type CruiseData = {
|
|
|
16
16
|
export interface CruiseKeyframe {
|
|
17
17
|
id: string;
|
|
18
18
|
index: number;
|
|
19
|
+
moveIndex: number;
|
|
20
|
+
stay?: number;
|
|
19
21
|
start?: number;
|
|
20
22
|
end?: number;
|
|
21
23
|
data: CruiseData;
|
|
@@ -39,13 +41,21 @@ export interface PluginServerData extends BasePluginWithData.ServerData {
|
|
|
39
41
|
moveEffect?: undefined;
|
|
40
42
|
/** for ts check, no care */
|
|
41
43
|
moveType?: undefined;
|
|
44
|
+
/** for ts check, no care */
|
|
45
|
+
moveToFirstPanoEffect?: undefined;
|
|
46
|
+
/** for ts check, no care */
|
|
47
|
+
stay?: undefined;
|
|
42
48
|
} | {
|
|
43
49
|
/** 点位列表 */
|
|
44
50
|
panoIndexList: number[];
|
|
45
51
|
/** five走点动画 */
|
|
46
52
|
moveEffect?: MoveEffect;
|
|
53
|
+
/** 到第一个点的走点动画 / 续播到暂停处的走点动画 */
|
|
54
|
+
moveToFirstPanoEffect?: MoveEffect;
|
|
47
55
|
/** 漫游方式:justMove 为移动到指定点位,且朝向为下一个点的朝向;moveAndRotate 为先移动到指定点位且朝向不变,然后旋转到下一个点的朝向 */
|
|
48
56
|
moveType?: 'justMove' | 'moveAndRotate';
|
|
57
|
+
/** 停留时长 */
|
|
58
|
+
stay?: number;
|
|
49
59
|
/** for ts check, no care */
|
|
50
60
|
keyframes?: undefined;
|
|
51
61
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function sleep(duration: number): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FivePlugin } from '@realsee/five';
|
|
2
2
|
import Controller from './Controller';
|
|
3
|
+
export * from './typing';
|
|
3
4
|
export declare const GuideLinePlugin: FivePlugin<void, InstanceType<typeof Controller>>;
|
|
4
|
-
export type { GuideLinePluginExportType } from './typing';
|
|
5
5
|
export default GuideLinePlugin;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
|
-
export default function getLineGeometry(positionList: THREE.Vector3[]): THREE.BufferGeometry;
|
|
2
|
+
export default function getLineGeometry(positionList: THREE.Vector3[]): void | THREE.BufferGeometry;
|
package/dist/index.es.js
CHANGED
|
@@ -18280,10 +18280,10 @@ const AXIS_NUMBER_OF_VERTEX = 3; // 每个顶点有三个轴坐标
|
|
|
18280
18280
|
const UV_NUMBER_OF_VERTEX = 2; // 每个顶点有两个 UV 轴坐标
|
|
18281
18281
|
function getLineGeometry(positionList) {
|
|
18282
18282
|
if (positionList.length < 2)
|
|
18283
|
-
return;
|
|
18284
|
-
const lineWidth =
|
|
18285
|
-
const halfLineWidth =
|
|
18286
|
-
const aspect =
|
|
18283
|
+
return console.warn('positionList length must be greater than 1');
|
|
18284
|
+
const lineWidth = 0.6;
|
|
18285
|
+
const halfLineWidth = lineWidth / 2;
|
|
18286
|
+
const aspect = 0.67; // 纵横比 width / height
|
|
18287
18287
|
// 点位向量数组
|
|
18288
18288
|
const keyPoints = positionList;
|
|
18289
18289
|
// 点位组成的平滑曲线
|
|
@@ -18338,7 +18338,12 @@ function getLineGeometry(positionList) {
|
|
|
18338
18338
|
|
|
18339
18339
|
function getArrowMaterial(params) {
|
|
18340
18340
|
var _a;
|
|
18341
|
-
const texture = new THREE.TextureLoader().load(
|
|
18341
|
+
// const texture = new THREE.TextureLoader().load(params?.textureUrl ?? '//vrlab-static.ljcdn.com/release/web/arrow.c5d028e4.png')
|
|
18342
|
+
// const texture = new THREE.TextureLoader().load(params?.textureUrl ?? '//vrlab-static.ljcdn.com/release/web/arrow2.aa1762e4.png')
|
|
18343
|
+
// const texture = new THREE.TextureLoader().load(params?.textureUrl ?? '//vrlab-static.ljcdn.com/release/web/arrow3.06c5b657.png')
|
|
18344
|
+
// const texture = new THREE.TextureLoader().load(params?.textureUrl ?? '//vrlab-static.ljcdn.com/release/web/arrow4.b1427685.png')
|
|
18345
|
+
// const texture = new THREE.TextureLoader().load(params?.textureUrl ?? '//vrlab-static.ljcdn.com/release/web/arrow5.ae49f3c8.png')
|
|
18346
|
+
const texture = new THREE.TextureLoader().load((_a = params === null || params === void 0 ? void 0 : params.textureUrl) !== null && _a !== void 0 ? _a : '//vrlab-static.ljcdn.com/release/web/arrow6.b6ce0c62.png');
|
|
18342
18347
|
texture.wrapS = texture.wrapT = THREE.RepeatWrapping;
|
|
18343
18348
|
texture.encoding = THREE.sRGBEncoding;
|
|
18344
18349
|
const arrowMaterial = new THREE.MeshBasicMaterial({
|
|
@@ -18421,7 +18426,7 @@ class Controller extends Controller$6 {
|
|
|
18421
18426
|
this.five.scene.remove(this.linesGroup);
|
|
18422
18427
|
const linesGroup = this.getLinesGroup(data.routes);
|
|
18423
18428
|
if (!linesGroup)
|
|
18424
|
-
return
|
|
18429
|
+
return;
|
|
18425
18430
|
this.linesGroup = linesGroup;
|
|
18426
18431
|
this.five.scene.add(linesGroup);
|
|
18427
18432
|
this.handleVisible(this.state.visible);
|
|
@@ -18525,10 +18530,10 @@ class Controller extends Controller$6 {
|
|
|
18525
18530
|
const geometry = getLineGeometry(positions);
|
|
18526
18531
|
if (!geometry)
|
|
18527
18532
|
return;
|
|
18528
|
-
const material = getArrowMaterial({
|
|
18533
|
+
const material = getArrowMaterial({ textureUrl: data.arrowTextureUrl });
|
|
18529
18534
|
const mesh = new THREE.Mesh(geometry, material);
|
|
18530
18535
|
mesh.name = pluginFlag('route-line-mesh');
|
|
18531
|
-
mesh.renderOrder = 3
|
|
18536
|
+
// mesh.renderOrder = 3
|
|
18532
18537
|
return mesh;
|
|
18533
18538
|
}
|
|
18534
18539
|
}
|
|
@@ -18596,7 +18601,15 @@ function linerValue(x0, v0, t1, t) {
|
|
|
18596
18601
|
return a * t + d;
|
|
18597
18602
|
}
|
|
18598
18603
|
|
|
18599
|
-
|
|
18604
|
+
function sleep(duration) {
|
|
18605
|
+
return new Promise((resolve) => {
|
|
18606
|
+
setTimeout(() => {
|
|
18607
|
+
resolve();
|
|
18608
|
+
}, duration);
|
|
18609
|
+
});
|
|
18610
|
+
}
|
|
18611
|
+
|
|
18612
|
+
const VERSION = 'v1.0.6';
|
|
18600
18613
|
const PLUGIN_NAME = 'CruisePlugin';
|
|
18601
18614
|
const PLUGIN = `${PLUGIN_NAME}@${VERSION}`;
|
|
18602
18615
|
const disposedErrorLog = () => {
|
|
@@ -18626,7 +18639,7 @@ class CruisePluginController extends Controller$6 {
|
|
|
18626
18639
|
speedConfig: {
|
|
18627
18640
|
rotateSpeed: 0.001,
|
|
18628
18641
|
rotateSpeedUnit: 'rad/ms',
|
|
18629
|
-
moveSpeed: 0.
|
|
18642
|
+
moveSpeed: 0.002,
|
|
18630
18643
|
moveSpeedUnit: 'm/ms',
|
|
18631
18644
|
},
|
|
18632
18645
|
},
|
|
@@ -18842,12 +18855,24 @@ class CruisePluginController extends Controller$6 {
|
|
|
18842
18855
|
if (data.keyframes) {
|
|
18843
18856
|
return {
|
|
18844
18857
|
keyframesId: uuid(),
|
|
18845
|
-
keyframes: data.keyframes.map((keyframe, index) => {
|
|
18858
|
+
keyframes: data.keyframes.map((keyframe, index) => {
|
|
18859
|
+
var _a;
|
|
18860
|
+
const nextKeyframe = data.keyframes[index + 1];
|
|
18861
|
+
const stay = (() => {
|
|
18862
|
+
if (!nextKeyframe)
|
|
18863
|
+
return 0;
|
|
18864
|
+
if (nextKeyframe.start === undefined || keyframe.end === undefined)
|
|
18865
|
+
return 0;
|
|
18866
|
+
return nextKeyframe.start - keyframe.end;
|
|
18867
|
+
})();
|
|
18868
|
+
return Object.assign({ id: (_a = keyframe.uuid) !== null && _a !== void 0 ? _a : uuid(), moveIndex: index, stay, index }, keyframe);
|
|
18869
|
+
}),
|
|
18846
18870
|
};
|
|
18847
18871
|
}
|
|
18848
18872
|
else if (data.panoIndexList) {
|
|
18849
18873
|
let keyframes = [];
|
|
18850
|
-
const moveEffect = data
|
|
18874
|
+
const { moveEffect, moveToFirstPanoEffect } = data;
|
|
18875
|
+
this.privateState.moveToFirstPanoEffect = moveToFirstPanoEffect;
|
|
18851
18876
|
data.panoIndexList
|
|
18852
18877
|
.filter((panoIndex, index) => panoIndex !== data.panoIndexList[index - 1])
|
|
18853
18878
|
.forEach((panoIndex, index) => {
|
|
@@ -18868,13 +18893,17 @@ class CruisePluginController extends Controller$6 {
|
|
|
18868
18893
|
})();
|
|
18869
18894
|
if (data.moveType === undefined || data.moveType === 'justMove') {
|
|
18870
18895
|
// move to panoIndex, latitude, longitude
|
|
18871
|
-
keyframes.push({
|
|
18896
|
+
keyframes.push({
|
|
18897
|
+
moveIndex: index,
|
|
18898
|
+
stay: data.stay,
|
|
18899
|
+
data: Object.assign({ effect: 'Move', panoIndex, moveEffect }, (lookatNextPanoIndex !== null && lookatNextPanoIndex !== void 0 ? lookatNextPanoIndex : {})),
|
|
18900
|
+
});
|
|
18872
18901
|
}
|
|
18873
18902
|
else if (data.moveType === 'moveAndRotate') {
|
|
18874
18903
|
// move to panoIndex, then rotate to latitude and longitude
|
|
18875
|
-
keyframes.push({ data: { effect: 'Move', panoIndex, moveEffect } });
|
|
18904
|
+
keyframes.push({ moveIndex: index, stay: data.stay, data: { effect: 'Move', panoIndex, moveEffect } });
|
|
18876
18905
|
if (lookatNextPanoIndex)
|
|
18877
|
-
keyframes.push({ data: Object.assign({ effect: 'Rotate', panoIndex }, lookatNextPanoIndex) });
|
|
18906
|
+
keyframes.push({ moveIndex: index, stay: data.stay, data: Object.assign({ effect: 'Rotate', panoIndex }, lookatNextPanoIndex) });
|
|
18878
18907
|
}
|
|
18879
18908
|
});
|
|
18880
18909
|
return { keyframesId: uuid(), keyframes: keyframes.map((keyframe, index) => (Object.assign({ id: uuid(), index }, keyframe))) };
|
|
@@ -18939,6 +18968,7 @@ class CruisePluginController extends Controller$6 {
|
|
|
18939
18968
|
if ((options === null || options === void 0 ? void 0 : options.notEmitEvent) !== true) {
|
|
18940
18969
|
hooks.emit('play', { userAction: (_a = options === null || options === void 0 ? void 0 : options.userAction) !== null && _a !== void 0 ? _a : true });
|
|
18941
18970
|
}
|
|
18971
|
+
let playedFirstKeyframe = false;
|
|
18942
18972
|
const getPlayFromIndex = async () => {
|
|
18943
18973
|
var _a, _b;
|
|
18944
18974
|
// play from index
|
|
@@ -18952,13 +18982,14 @@ class CruisePluginController extends Controller$6 {
|
|
|
18952
18982
|
const pausedKeyframe = (_b = this.data) === null || _b === void 0 ? void 0 : _b.keyframes.find((keyframe) => keyframe.id === pauseData.keyframeId);
|
|
18953
18983
|
// restore paused state
|
|
18954
18984
|
if (pauseData === null || pauseData === void 0 ? void 0 : pauseData.fiveState)
|
|
18955
|
-
await this.move(pauseData.fiveState);
|
|
18985
|
+
await this.move(pauseData.fiveState, { moveEffect: privateState.moveToFirstPanoEffect });
|
|
18956
18986
|
if (pausedKeyframe) {
|
|
18957
18987
|
if (pausedKeyframe.data.effect === 'Move')
|
|
18958
18988
|
return pausedKeyframe.index;
|
|
18959
18989
|
else if (pausedKeyframe.data.effect === 'Rotate') {
|
|
18960
18990
|
const duration = pauseData.duration !== undefined ? pauseData.duration * (1 - pauseData.playedProgress) : undefined;
|
|
18961
|
-
await this.playKeyframe(pausedKeyframe, duration);
|
|
18991
|
+
await this.playKeyframe(pausedKeyframe, { duration });
|
|
18992
|
+
playedFirstKeyframe = true;
|
|
18962
18993
|
// playFromIndex += 1 cause played last part of paused keyframe
|
|
18963
18994
|
return pausedKeyframe.index + 1;
|
|
18964
18995
|
}
|
|
@@ -18980,11 +19011,19 @@ class CruisePluginController extends Controller$6 {
|
|
|
18980
19011
|
try {
|
|
18981
19012
|
console.log('playIndexChange', keyframe.index);
|
|
18982
19013
|
hooks.emit('playIndexChange', keyframe.index, keyframe);
|
|
18983
|
-
|
|
19014
|
+
console.log({ playFromIndex });
|
|
19015
|
+
await this.playKeyframe(keyframe, {
|
|
19016
|
+
moveEffect: playedFirstKeyframe === false ? privateState.moveToFirstPanoEffect : undefined,
|
|
19017
|
+
duration: 800,
|
|
19018
|
+
});
|
|
19019
|
+
if (keyframe.stay)
|
|
19020
|
+
await sleep(keyframe.stay);
|
|
19021
|
+
if (playedFirstKeyframe === false)
|
|
19022
|
+
playedFirstKeyframe = true;
|
|
18984
19023
|
}
|
|
18985
19024
|
catch (error) {
|
|
18986
19025
|
return Promise.resolve('broke');
|
|
18987
|
-
// if think play be interupted by five gesture is an error, return Promise.reject(error)
|
|
19026
|
+
// if think the play be interupted by five gesture is an error, return Promise.reject(error)
|
|
18988
19027
|
// return Promise.reject(error)
|
|
18989
19028
|
}
|
|
18990
19029
|
}
|
|
@@ -19016,12 +19055,12 @@ class CruisePluginController extends Controller$6 {
|
|
|
19016
19055
|
/**
|
|
19017
19056
|
* @description Play single keyframe
|
|
19018
19057
|
*/
|
|
19019
|
-
async playKeyframe(keyframe,
|
|
19058
|
+
async playKeyframe(keyframe, params) {
|
|
19020
19059
|
var _a;
|
|
19021
19060
|
const { privateState } = this;
|
|
19022
19061
|
if (((_a = this.privateState.currentPlayKeyframe) === null || _a === void 0 ? void 0 : _a.keyframe.id) !== keyframe.id)
|
|
19023
19062
|
this.privateState.currentPlayKeyframe = { keyframe };
|
|
19024
|
-
privateState.currentPlayQueue.push(this.getPlayPromise(keyframe,
|
|
19063
|
+
privateState.currentPlayQueue.push(this.getPlayPromise(keyframe, params));
|
|
19025
19064
|
return this.actionPromiseQueue();
|
|
19026
19065
|
}
|
|
19027
19066
|
/**
|
|
@@ -19038,9 +19077,10 @@ class CruisePluginController extends Controller$6 {
|
|
|
19038
19077
|
/**
|
|
19039
19078
|
* @description: getPlayPromise
|
|
19040
19079
|
*/
|
|
19041
|
-
async getPlayPromise(keyframe,
|
|
19080
|
+
async getPlayPromise(keyframe, params) {
|
|
19081
|
+
var _a;
|
|
19042
19082
|
const data = keyframe.data;
|
|
19043
|
-
|
|
19083
|
+
(_a = params === null || params === void 0 ? void 0 : params.duration) !== null && _a !== void 0 ? _a : (keyframe.start !== undefined && keyframe.end !== undefined ? keyframe.end - keyframe.start : undefined);
|
|
19044
19084
|
if (!data)
|
|
19045
19085
|
return;
|
|
19046
19086
|
return new Promise((resolve, reject) => {
|
|
@@ -19064,13 +19104,13 @@ class CruisePluginController extends Controller$6 {
|
|
|
19064
19104
|
};
|
|
19065
19105
|
switch (data.effect) {
|
|
19066
19106
|
case 'Move':
|
|
19067
|
-
this.move(data,
|
|
19107
|
+
this.move(data, params).then(res);
|
|
19068
19108
|
break;
|
|
19069
19109
|
case 'Rotate':
|
|
19070
|
-
this.rotate(data,
|
|
19110
|
+
this.rotate(data, params).then(res);
|
|
19071
19111
|
break;
|
|
19072
19112
|
default:
|
|
19073
|
-
this.rotate(data,
|
|
19113
|
+
this.rotate(data, params).then(res);
|
|
19074
19114
|
}
|
|
19075
19115
|
}
|
|
19076
19116
|
catch (e) { }
|
|
@@ -19101,13 +19141,13 @@ class CruisePluginController extends Controller$6 {
|
|
|
19101
19141
|
/**
|
|
19102
19142
|
* @description Action move keyframe
|
|
19103
19143
|
*/
|
|
19104
|
-
async move(data,
|
|
19144
|
+
async move(data, params) {
|
|
19105
19145
|
console.log('--move--', data.panoIndex);
|
|
19106
19146
|
if (data.mode && data.mode !== this.five.currentMode) {
|
|
19107
19147
|
await this.changeMode(data);
|
|
19108
19148
|
}
|
|
19109
19149
|
else if (data.panoIndex !== this.five.panoIndex) {
|
|
19110
|
-
await this.changePano(data,
|
|
19150
|
+
await this.changePano(data, params);
|
|
19111
19151
|
}
|
|
19112
19152
|
else {
|
|
19113
19153
|
return Promise.resolve();
|
|
@@ -19117,15 +19157,15 @@ class CruisePluginController extends Controller$6 {
|
|
|
19117
19157
|
/**
|
|
19118
19158
|
* @description Action rotate keyframe
|
|
19119
19159
|
*/
|
|
19120
|
-
async rotate(data,
|
|
19160
|
+
async rotate(data, params) {
|
|
19121
19161
|
console.log('--rotate--', data);
|
|
19122
19162
|
if (data.mode && data.mode !== this.five.currentMode) {
|
|
19123
19163
|
await this.changeMode({ mode: data.mode, panoIndex: data.panoIndex });
|
|
19124
19164
|
}
|
|
19125
19165
|
else if (data.panoIndex && data.panoIndex !== this.five.panoIndex) {
|
|
19126
|
-
return await this.changePano(data,
|
|
19166
|
+
return await this.changePano(data, params);
|
|
19127
19167
|
}
|
|
19128
|
-
await this.updateCamera(data, duration);
|
|
19168
|
+
await this.updateCamera(data, params === null || params === void 0 ? void 0 : params.duration);
|
|
19129
19169
|
}
|
|
19130
19170
|
/**
|
|
19131
19171
|
* @description Update five camera
|
|
@@ -19160,13 +19200,14 @@ class CruisePluginController extends Controller$6 {
|
|
|
19160
19200
|
/**
|
|
19161
19201
|
* @description: Change five pano
|
|
19162
19202
|
*/
|
|
19163
|
-
async changePano(data,
|
|
19203
|
+
async changePano(data, params) {
|
|
19204
|
+
var _a;
|
|
19164
19205
|
const { five, privateState, state } = this;
|
|
19165
19206
|
if (typeof data.panoIndex !== 'number')
|
|
19166
19207
|
return;
|
|
19167
19208
|
if (data.panoIndex === five.panoIndex)
|
|
19168
19209
|
return;
|
|
19169
|
-
let originDuration =
|
|
19210
|
+
let originDuration = (_a = params === null || params === void 0 ? void 0 : params.duration) !== null && _a !== void 0 ? _a : 800;
|
|
19170
19211
|
const speed = (() => {
|
|
19171
19212
|
var _a, _b;
|
|
19172
19213
|
const speedConfig = (_a = state.config) === null || _a === void 0 ? void 0 : _a.speedConfig;
|
|
@@ -19187,13 +19228,13 @@ class CruisePluginController extends Controller$6 {
|
|
|
19187
19228
|
privateState.currentPlayKeyframe.originDuration = originDuration;
|
|
19188
19229
|
const duration = this.getSpeededDuration(originDuration);
|
|
19189
19230
|
return new Promise((resolve) => {
|
|
19190
|
-
var _a, _b;
|
|
19231
|
+
var _a, _b, _c;
|
|
19191
19232
|
five.moveToPano(data.panoIndex, {
|
|
19192
19233
|
latitude: data.latitude,
|
|
19193
19234
|
longitude: data.longitude,
|
|
19194
19235
|
fov: data.fov,
|
|
19195
19236
|
duration,
|
|
19196
|
-
effect: (
|
|
19237
|
+
effect: (_c = (_a = params === null || params === void 0 ? void 0 : params.moveEffect) !== null && _a !== void 0 ? _a : (_b = this.state.config) === null || _b === void 0 ? void 0 : _b.moveEffect) !== null && _c !== void 0 ? _c : data.moveEffect,
|
|
19197
19238
|
moveCancelCallback: () => resolve(),
|
|
19198
19239
|
moveEndCallback: () => resolve(),
|
|
19199
19240
|
});
|
|
@@ -19210,7 +19251,7 @@ class CruisePluginController extends Controller$6 {
|
|
|
19210
19251
|
try {
|
|
19211
19252
|
const duration = currentPlayKeyframe.originDuration !== undefined ? currentPlayKeyframe.originDuration * (1 - this.getProgress()) : undefined;
|
|
19212
19253
|
console.log('--speedChange--', speed, { duration });
|
|
19213
|
-
const promise = this.playKeyframe(currentPlayKeyframe.keyframe, duration);
|
|
19254
|
+
const promise = this.playKeyframe(currentPlayKeyframe.keyframe, { duration });
|
|
19214
19255
|
privateState.currentPlayQueue.push(promise);
|
|
19215
19256
|
}
|
|
19216
19257
|
catch (e) { }
|