@soonspacejs/plugin-navigation 2.16.8 → 3.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +623 -4
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,4 +1,623 @@
1
- export * from './camera';
2
- export * from './navigator';
3
- export * from './utils';
4
- export * from './azimuth';
1
+ import { Camera } from 'three';
2
+ import { default as default_2 } from 'soonspacejs';
3
+ import { Euler } from 'three';
4
+ import { EulerOrder } from 'three';
5
+ import { Node as Node_2 } from 'soonspacejs';
6
+ import { Object3D } from 'three';
7
+ import { Object3DEventMap } from 'three';
8
+ import { OrthographicCamera } from 'three';
9
+ import { Quaternion } from 'three';
10
+ import { Topology } from 'soonspacejs';
11
+ import { Vector3 } from 'three';
12
+
13
+ /**
14
+ * 角度范围
15
+ * @remarks
16
+ * - 可以是 [start,end] 也可以是 [end,start],即:可以第一个值 可以在于 第二个值
17
+ * - 范围始终包含 第一个值,不包含第二个值
18
+ */
19
+ export declare type AngleRange = [number, number];
20
+
21
+ /**
22
+ * 计算方位的类
23
+ */
24
+ export declare class Azimuth {
25
+ constructor(options?: AzimuthOptions);
26
+ static get options(): AzimuthOptions;
27
+ static set options(value: AzimuthOptions);
28
+ protected static _options?: AzimuthOptions | null;
29
+ /**
30
+ * 默认选项
31
+ */
32
+ protected get defaultOptions(): AzimuthOptions;
33
+ get options(): AzimuthOptions;
34
+ set options(value: AzimuthOptions);
35
+ protected _options?: AzimuthOptions | null;
36
+ /**
37
+ * 是否使用角度,而非弧度
38
+ */
39
+ get degrees(): boolean;
40
+ set degrees(value: boolean);
41
+ get map(): CourseAzimuthMap<AzimuthDefine> | null | undefined;
42
+ set map(value: CourseAzimuthMap<AzimuthDefine> | null | undefined);
43
+ protected get listMap(): CourseAzimuthMap<AzimuthList>;
44
+ protected _listMap?: CourseAzimuthMap<AzimuthList> | null;
45
+ get front(): IVector3;
46
+ set front(value: IVector3);
47
+ protected _front?: Vector3 | null;
48
+ get up(): IVector3;
49
+ set up(value: IVector3);
50
+ protected _up?: Vector3 | null;
51
+ /**
52
+ * 计算方位
53
+ * @param target
54
+ * @param front
55
+ * @param up
56
+ */
57
+ computeAzimuth(target: IVector3, front?: IVector3 | null, up?: IVector3 | null): CourseInfo;
58
+ /**
59
+ * 查找匹配的方位名字
60
+ * @param type - 类型
61
+ * @param angle - 角度
62
+ * @returns 匹配的名字列表
63
+ */
64
+ findAzimuthNames(type: keyof CourseAzimuthMap, angle: number): string[];
65
+ }
66
+
67
+ export declare const azimuth: any;
68
+
69
+ /**
70
+ * 方位定义
71
+ */
72
+ export declare type AzimuthDefine = AzimuthList | AzimuthMap;
73
+
74
+ export declare interface AzimuthInfo {
75
+ /**
76
+ * 角度
77
+ */
78
+ angle: number;
79
+ /**
80
+ * 所有匹配的名字
81
+ */
82
+ name: string[];
83
+ }
84
+
85
+ /**
86
+ * 方位范围列表
87
+ */
88
+ export declare type AzimuthList = AzimuthRange[];
89
+
90
+ /**
91
+ * 方位映射
92
+ */
93
+ export declare type AzimuthMap = Record<string, [number, number]>;
94
+
95
+ /**
96
+ * Azimuth 的选项
97
+ */
98
+ export declare interface AzimuthOptions {
99
+ /**
100
+ * 是否使用角度,而非弧度
101
+ * @defaultValue true
102
+ */
103
+ degrees?: boolean | null;
104
+ /**
105
+ * 方位映射定义
106
+ */
107
+ map?: CourseAzimuthMap | null;
108
+ /**
109
+ * 前方向量
110
+ * @defaultValue {x:0,y:0,z:1}
111
+ */
112
+ front?: IVector3;
113
+ /**
114
+ * 前方向量
115
+ * @defaultValue {x:0,y:1,z:0}
116
+ */
117
+ up?: IVector3;
118
+ }
119
+
120
+ /**
121
+ * 方位范围,用来描述方位对应的角度范围
122
+ */
123
+ declare interface AzimuthRange {
124
+ name: string;
125
+ range: [number, number];
126
+ }
127
+
128
+ export declare type CameraOppositeType = {
129
+ x: boolean;
130
+ y: boolean;
131
+ z: boolean;
132
+ };
133
+
134
+ /**
135
+ * 相机控制回调
136
+ *
137
+ * camera 当前相机
138
+ *
139
+ * target 跟踪的目标
140
+ */
141
+ export declare type ControlCallback = (camera: Camera, target: Object3D, event?: MouseEvent | TouchEvent) => void;
142
+
143
+ /**
144
+ * 航向方位映射
145
+ */
146
+ export declare interface CourseAzimuthMap<Define extends AzimuthDefine = AzimuthDefine> {
147
+ /**
148
+ * 偏航角
149
+ * @remarks
150
+ * - 旋转轴 上方向量
151
+ * - 起始向量:前方向量
152
+ */
153
+ yaw?: Define | null;
154
+ /**
155
+ * 俯仰角
156
+ * @remarks
157
+ * - 旋转轴 右方向量
158
+ * - 起始向量:前方向量
159
+ */
160
+ pitch?: Define | null;
161
+ /**
162
+ * 横滚角
163
+ * @remarks
164
+ * - 旋转轴 后方向量
165
+ * - 起始向量:上方向量
166
+ */
167
+ roll?: Define | null;
168
+ }
169
+
170
+ /**
171
+ * 航向信息
172
+ */
173
+ export declare interface CourseInfo {
174
+ /**
175
+ * 偏航角
176
+ * @remarks
177
+ * - 旋转轴 上方向量
178
+ * - 起始向量:前方向量
179
+ */
180
+ yaw: AzimuthInfo;
181
+ /**
182
+ * 俯仰角
183
+ * @remarks
184
+ * - 旋转轴 右方向量
185
+ * - 起始向量:前方向量
186
+ */
187
+ pitch: AzimuthInfo;
188
+ /**
189
+ * 横滚角
190
+ * @remarks
191
+ * - 旋转轴 后方向量
192
+ * - 起始向量:上方向量
193
+ */
194
+ roll: AzimuthInfo;
195
+ }
196
+
197
+ export declare type Direction = 'left' | 'right' | 'up' | 'down' | 'left-up' | 'left-down' | 'right-up' | 'right-down' | 'straight';
198
+
199
+ declare interface DistanceInfo {
200
+ distanceToStartNode: number;
201
+ distanceToEndNode: number;
202
+ distanceToStart: number;
203
+ distanceToEnd: number;
204
+ }
205
+
206
+ export declare type EulerArray = [number, number, number, EulerOrder?];
207
+
208
+ export declare function eulerToVector3(e: Euler): Vector3;
209
+
210
+ export declare type FixEuler = EulerArray | ((target?: Object3DLike) => EulerArray);
211
+
212
+ export declare type FixVector = VectorArray | ((target?: Object3DLike) => VectorArray);
213
+
214
+ export declare function getDirection(target: Vector3, front: Vector3): Direction;
215
+
216
+ export declare function getDirectionByNodes(p1: Node_2, p2?: Node_2, p3?: Node_2): Direction;
217
+
218
+ /** 获取当前位置距离信息 */
219
+ export declare function getDistanceInfoByProgress(progress: number, info?: NavigatorNodeInfo): DistanceInfo;
220
+
221
+ export declare function getFixEuler(e: FixEuler, target?: Object3DLike): EulerArray;
222
+
223
+ export declare function getFixVector(v: FixVector, target?: Object3DLike): VectorArray;
224
+
225
+ /** 根据进度获取当前节点信息 */
226
+ export declare function getNavigatorNodeInfoByProgress(progress: number, infos: NavigatorNodeInfo[]): NavigatorNodeInfo | undefined;
227
+
228
+ /** 分析并返回所有节点信息 */
229
+ export declare function getNavigatorNodeInfosByTopology(topology: Topology): NavigatorNodeInfo[];
230
+
231
+ export declare class GyroListener {
232
+ gyroEvent: null | ((event: DeviceOrientationEvent) => void);
233
+ onChange: (alpha: number | null, beta: number | null, gamma: number | null) => void;
234
+ _isActive: boolean;
235
+ defaultBeta: number | null;
236
+ defaultAlpha: number | null;
237
+ defaultGamma: number | null;
238
+ cache: null | {
239
+ beta: number | null;
240
+ alpha: number | null;
241
+ gamma: number | null;
242
+ };
243
+ beta: number | null;
244
+ alpha: number | null;
245
+ gamma: number | null;
246
+ gyroX: boolean;
247
+ gyroY: boolean;
248
+ gyroZ: boolean;
249
+ absolute: boolean;
250
+ constructor(x?: boolean, y?: boolean, z?: boolean, absolute?: boolean);
251
+ requestPermisson(): Promise<unknown>;
252
+ /** 监听陀螺仪事件 */
253
+ active(): Promise<void>;
254
+ /** 销毁陀螺仪事件 */
255
+ inActive(): void;
256
+ }
257
+
258
+ /**
259
+ * 二维向量
260
+ */
261
+ declare interface IVector2 {
262
+ x: number;
263
+ y: number;
264
+ }
265
+
266
+ /**
267
+ * 三维向量
268
+ */
269
+ declare interface IVector3 extends IVector2 {
270
+ z: number;
271
+ }
272
+
273
+ export declare class MapCamera extends SoonSpaceCamera<OrthographicCamera> {
274
+ readonly ssp: default_2;
275
+ protected resizeObserver: ResizeObserver;
276
+ _zoom: number;
277
+ get zoom(): number;
278
+ set zoom(value: number);
279
+ constructor(ssp: default_2);
280
+ resizeCamera(): void;
281
+ protected onEnter(): void;
282
+ protected onQuit(): void;
283
+ }
284
+
285
+ export declare enum NAVIGATE_ORIENTATION_TYPE {
286
+ RELATIVE_ORIENTATION = "relative",
287
+ FIXED_ORIENTATION = "fixed",
288
+ GYRO_ORIENTATION = "gyro"
289
+ }
290
+
291
+ export declare enum NAVIGATE_VISION_TYPE {
292
+ FIRST_VISION = "first",
293
+ THIRD_VISION = "third",
294
+ UP_VISION = "up",
295
+ LEFT_VISION = "left"
296
+ }
297
+
298
+ /** 导航相机 */
299
+ export declare class NavigateCamera extends SoonSpaceCamera<Camera> {
300
+ readonly ssp: default_2;
301
+ initOptions: Readonly<NavigateCameraOptions>;
302
+ cameraKey: string;
303
+ private _events;
304
+ get position(): Vector3;
305
+ get rotation(): Euler;
306
+ get quaternion(): Quaternion;
307
+ private _lookAt;
308
+ private _restoreTimer;
309
+ private _positionTween;
310
+ private autoFollowRender;
311
+ /** 相机位置记录用的对象,用于恢复相机位置和朝向使用 */
312
+ protected _cameraPlaceholder: Object3D<Object3DEventMap>;
313
+ /** 取消飞向动画 */
314
+ disabledAnimate: boolean;
315
+ /** 第三人称相机距离跟踪目标距离 */
316
+ distanceToTarget: number;
317
+ /** 第三人称相机相对模型视角 */
318
+ rotationToTarget: Vector3;
319
+ /** 相机反转 */
320
+ oppositeCamera: boolean;
321
+ /** 相机反转类型, 默认为 Y 轴对称 */
322
+ oppositeType: CameraOppositeType;
323
+ /** 是否相对模型修正角度 */
324
+ isFixRotationRelativeTarget: boolean;
325
+ /**
326
+ * 目标角度修正
327
+ *
328
+ * 支持传入 getter 函数
329
+ */
330
+ targetRotationFix: FixEuler;
331
+ /** 是否相对模型修正偏移 */
332
+ isFixPositionRelativeTarget: boolean;
333
+ /**
334
+ * 目标位置修正
335
+ *
336
+ * 支持传入 getter 函数
337
+ */
338
+ targetPositionFix: FixVector;
339
+ /**
340
+ * 自动恢复朝向
341
+ *
342
+ * boolean 是否恢复朝向
343
+ *
344
+ * number 间隔多少秒后恢复朝向
345
+ */
346
+ autoRestoreOrientation: boolean | number;
347
+ /** 当控制器控制相机时允许外部自定义控制,控制开始时触发 */
348
+ onControlStart: null | ControlCallback;
349
+ /** 当控制器控制相机时允许外部自定义控制,控制进行时回调 */
350
+ onControlRender: null | ControlCallback;
351
+ /** 当控制器控制相机时允许外部自定义控制,控制结束时回调 */
352
+ onControlEnd: null | ControlCallback;
353
+ /** 陀螺仪 */
354
+ protected _gyroListener: GyroListener;
355
+ protected _enableGyro: boolean;
356
+ /** 开启 */
357
+ get enableGyro(): boolean;
358
+ set enableGyro(value: boolean);
359
+ /** 是否应用陀螺仪 X 轴,默认不启动 */
360
+ get gyroX(): boolean;
361
+ set gyroX(value: boolean);
362
+ /** 是否应用陀螺仪 Y 轴,默认启动 */
363
+ get gyroY(): boolean;
364
+ set gyroY(value: boolean);
365
+ /** 是否应用陀螺仪 Z 轴,默认不启动 */
366
+ get gyroZ(): boolean;
367
+ set gyroZ(value: boolean);
368
+ /** 陀螺仪是否使用绝对值,默认使用 */
369
+ get gyroAbsolute(): boolean;
370
+ set gyroAbsolute(value: boolean);
371
+ /** 陀螺仪的旋转欧拉角 */
372
+ protected _gyroRotation: Euler;
373
+ get targetRotationAfterFix(): EulerArray;
374
+ get targetPositionAfterFix(): VectorArray;
375
+ get realDistanceToTarget(): number;
376
+ get realRotationToTarget(): Vector3;
377
+ protected _orientationType: NAVIGATE_ORIENTATION_TYPE;
378
+ /** 绝对朝向的缓存值 */
379
+ private _fixedOrientationRotation;
380
+ /**
381
+ * 相机朝向类型
382
+ *
383
+ * NAVIGATE_ORIENTATION_TYPE.RELATIVE_ORIENTATION 相对朝向
384
+ *
385
+ * NAVIGATE_ORIENTATION_TYPE.FIXED_ORIENTATION 绝对朝向
386
+ *
387
+ * NAVIGATE_ORIENTATION_TYPE.GYRO_ORIENTATION 陀螺仪朝向
388
+ */
389
+ get orientationType(): NAVIGATE_ORIENTATION_TYPE;
390
+ set orientationType(value: NAVIGATE_ORIENTATION_TYPE);
391
+ protected _orientationTarget: NavigateOrientationTarget;
392
+ /**
393
+ * 相机朝向目标
394
+ *
395
+ * “main” 朝向跟踪目标
396
+ *
397
+ * Vector3 朝向点
398
+ *
399
+ * Object3D 朝向目标对象
400
+ *
401
+ * Euler 固定朝向
402
+ */
403
+ get orientationTarget(): NavigateOrientationTarget;
404
+ set orientationTarget(value: NavigateOrientationTarget);
405
+ protected _vision: NAVIGATE_VISION_TYPE;
406
+ /**
407
+ * 视角配置
408
+ *
409
+ * NAVIGATE_VISION_TYPE.FIRST_VISION 第一人称
410
+ *
411
+ * NAVIGATE_VISION_TYPE.THIRD_VISION 第三人称
412
+ *
413
+ * NAVIGATE_VISION_TYPE.UP_VISION 俯视图
414
+ *
415
+ * NAVIGATE_VISION_TYPE.LEFT_VISION 左视图
416
+ *
417
+ * 默认为第三人称
418
+ */
419
+ get vision(): NAVIGATE_VISION_TYPE;
420
+ set vision(value: NAVIGATE_VISION_TYPE);
421
+ protected _followTarget: Object3D;
422
+ /** 相机跟随目标 */
423
+ get followTarget(): Object3D;
424
+ set followTarget(value: Object3D);
425
+ /** 相机跟踪点(相对跟随目标以及偏移参数获取的点) */
426
+ get followPosition(): Vector3;
427
+ /** 跟踪目标的方向(相对跟随目标以及偏移参数获取的朝向) */
428
+ get followRotation(): Euler;
429
+ protected _fixedOrientation: boolean;
430
+ /** 固定朝向,朝向不受控制器影响 */
431
+ get fixedOrientation(): boolean;
432
+ set fixedOrientation(value: boolean);
433
+ constructor(ssp: default_2, camera?: Camera, options?: Partial<NavigateCameraOptions>);
434
+ protected initGyroListener(): void;
435
+ /** 控制器操作时处理 */
436
+ protected setCameraOrientationOnControl(): void;
437
+ /** 更新相机占位符的方位 */
438
+ protected updateCameraPlaceholder(): void;
439
+ /** 设置相机的方位 */
440
+ protected setCameraOrientationOnRender(): void;
441
+ /** 获取相机点相对跟踪点的欧拉角 */
442
+ protected getRenderCameraOrientation(): Euler;
443
+ /** 获取相机落点(相对跟踪点的方向归一化 * 距离) */
444
+ protected getRenderCameraPosition(): Vector3;
445
+ protected onRender(): void;
446
+ /** 初始化事件 */
447
+ protected initEvents(): void;
448
+ /** 清除事件 */
449
+ protected clearEvents(): void;
450
+ protected onEnter(): void;
451
+ protected onQuit(): void;
452
+ /** 参数重置 */
453
+ resetOptions(): void;
454
+ /** 设置参数 */
455
+ setOptions(options: Partial<NavigateCameraOptions>): void;
456
+ /**
457
+ * 设置相机,若导航相机正在使用中,则会立即切换为设置的相机
458
+ */
459
+ setCamera(camera: Camera): this;
460
+ /** 重置相机坐标 */
461
+ restoreOrientation(): void;
462
+ }
463
+
464
+ export declare interface NavigateCameraOptions {
465
+ disabledAnimate: boolean;
466
+ fixedOrientation: boolean;
467
+ autoRestoreOrientation: boolean | number;
468
+ oppositeCamera: boolean;
469
+ oppositeType: CameraOppositeType;
470
+ orientationTarget: NavigateOrientationTarget;
471
+ vision: NAVIGATE_VISION_TYPE;
472
+ orientationType: NAVIGATE_ORIENTATION_TYPE;
473
+ distanceToTarget: number;
474
+ rotationToTarget: Vector3;
475
+ isFixRotationRelativeTarget: boolean;
476
+ targetRotationFix: FixEuler;
477
+ isFixPositionRelativeTarget: boolean;
478
+ targetPositionFix: FixVector;
479
+ enableGyro: boolean;
480
+ gyroX: boolean;
481
+ gyroY: boolean;
482
+ gyroZ: boolean;
483
+ gyroAbsolute: boolean;
484
+ onControlStart: null | ControlCallback;
485
+ onControlRender: null | ControlCallback;
486
+ onControlEnd: null | ControlCallback;
487
+ }
488
+
489
+ export declare type NavigateOrientationTarget = 'main' | Vector3 | Euler | Object3D;
490
+
491
+ declare class Navigator_2 {
492
+ readonly ssp: default_2;
493
+ paths: Topology[];
494
+ onPlay: (info: playInfo) => void;
495
+ onStatusChange: (status: PLAY_STATUS) => void;
496
+ /** 是否循环播放,默认为否 */
497
+ loop: boolean;
498
+ /** 是否自动开始下一段路径播放,默认为是 */
499
+ autoNext: boolean;
500
+ /** 开始或者重新开始后自动播放路径动画,默认为否 */
501
+ playAfterStart: boolean;
502
+ /** 开始时飞向模型,默认为是 */
503
+ flyToModelAfterStart: boolean;
504
+ /** 停止时是否返回起点,默认为是 */
505
+ backStartPointWhenStop: boolean;
506
+ /** 路径动画主体模型 */
507
+ _model: Object3D<Object3DEventMap>;
508
+ get model(): Object3D;
509
+ set model(obj: Object3D);
510
+ protected _speed: number;
511
+ /** 播放速度 */
512
+ get speed(): number;
513
+ set speed(value: number);
514
+ protected _pathProgress: number;
515
+ /** 当前段进度 */
516
+ get pathProgress(): number;
517
+ set pathProgress(value: number);
518
+ protected _totalProgress: number;
519
+ /** 总进度 */
520
+ get totalProgress(): number;
521
+ set totalProgress(value: number);
522
+ /** 当前播放的动画路径索引 */
523
+ protected _currentPathIndex: number;
524
+ /** 当前节点 */
525
+ protected _currentNode: Vector3 | null;
526
+ /** 下个路径节点 */
527
+ protected _nextNode: Vector3 | null;
528
+ /** 当前状态 */
529
+ protected _playStatus: PLAY_STATUS;
530
+ get currentPath(): Topology;
531
+ /** 对外只读 当前路径索引 */
532
+ get currentPathIndex(): number;
533
+ /** 对外只读 当前朝向方向向量 */
534
+ get currentRotationVector(): Vector3;
535
+ constructor(ssp: default_2, paths: Topology[]);
536
+ protected changeStatus(status: PLAY_STATUS): void;
537
+ /** 开始导航 */
538
+ start(): void;
539
+ /** 重新开始导航 */
540
+ restart(): void;
541
+ /** 播放动画 */
542
+ play(index?: number, node?: Vector3): void;
543
+ /** 暂停动画 */
544
+ pause(): void;
545
+ /** 停止动画 */
546
+ stop(): void;
547
+ /** 路径反转 */
548
+ flip(): void;
549
+ /** 结束导航 */
550
+ over(): void;
551
+ }
552
+ export { Navigator_2 as Navigator }
553
+
554
+ declare interface NavigatorNodeInfo {
555
+ progressArea: [number, number];
556
+ distanceArea: [number, number];
557
+ node: Node_2;
558
+ nextNode?: Node_2;
559
+ distanceToNext: number;
560
+ distanceToStart: number;
561
+ distanceToEnd: number;
562
+ frontDirection: Direction;
563
+ }
564
+
565
+ /**
566
+ * 欧拉角归一化
567
+ * @param e 欧拉角
568
+ */
569
+ export declare function normalizeEuler(e: Euler): Vector3;
570
+
571
+ export declare type Object3DLike = {
572
+ position: Vector3;
573
+ rotation: Euler;
574
+ } & Record<PropertyKey, any>;
575
+
576
+ export declare enum PLAY_STATUS {
577
+ 'PENDING' = "pending",
578
+ 'STOP' = "stop",
579
+ 'PLAYING' = "playing",
580
+ 'PAUSE' = "pause",
581
+ 'FINISHED' = "finished"
582
+ }
583
+
584
+ export declare interface playInfo {
585
+ pathId: string;
586
+ progress: number;
587
+ pathProgress: number;
588
+ distanceToNodeStart: number;
589
+ distanceToPathStart: number;
590
+ distanceToStart: number;
591
+ distanceToNodeEnd: number;
592
+ distanceToPathEnd: number;
593
+ distanceToEnd: number;
594
+ position: Vector3;
595
+ rotation: Vector3;
596
+ direction: Direction;
597
+ }
598
+
599
+ /**
600
+ * 路径反转
601
+ * @param ssp
602
+ * @param topologies 路径数组
603
+ * @returns
604
+ */
605
+ export declare function reverseTopologies(ssp: default_2, topologies: Topology[]): Topology[];
606
+
607
+ export declare abstract class SoonSpaceCamera<C extends Camera = Camera> {
608
+ readonly ssp: default_2;
609
+ nativeCamera: C;
610
+ protected _isActive: boolean;
611
+ constructor(ssp: default_2, nativeCamera: C);
612
+ active(): void;
613
+ private _onBeforeEnter;
614
+ private _onBeforeQuit;
615
+ protected onEnter(): void;
616
+ protected onQuit(): void;
617
+ }
618
+
619
+ export declare function Vector3ToEuler(v: Vector3): Euler;
620
+
621
+ export declare type VectorArray = [number, number, number];
622
+
623
+ export { }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@soonspacejs/plugin-navigation",
3
3
  "pluginName": "NavigationPlugin",
4
- "version": "2.16.8",
4
+ "version": "3.0.0-alpha.1",
5
5
  "description": "Navigation plugin for SoonSpace.js",
6
6
  "main": "dist/index.esm.js",
7
7
  "module": "dist/index.esm.js",
@@ -15,7 +15,7 @@
15
15
  "license": "UNLICENSED",
16
16
  "gitHead": "4a87dd85050651088e11c3da777c49fab3db7e5d",
17
17
  "peerDependencies": {
18
- "soonspacejs": "2.16.8"
18
+ "soonspacejs": "3.0.0-alpha.1"
19
19
  },
20
20
  "dependencies": {
21
21
  "@three3d/tools": "^1.6.0"