@mappedin/dynamic-focus 6.0.1-beta.54 → 6.0.1-beta.55
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/lib/esm/index.d.ts +19 -3
- package/lib/esm/index.js +210 -10133
- package/lib/esm/index.js.map +4 -4
- package/package.json +3 -3
package/lib/esm/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Generated by dts-bundle v0.7.3
|
|
2
2
|
// Dependencies for this module:
|
|
3
3
|
// ../dynamic-focus/@mappedin/mappedin-js
|
|
4
|
+
// ../dynamic-focus/@packages/internal/common/extensions
|
|
4
5
|
|
|
5
6
|
declare module '@mappedin/dynamic-focus' {
|
|
6
7
|
export { DynamicFocus } from '@mappedin/dynamic-focus/dynamic-focus/src/dynamic-focus';
|
|
@@ -11,11 +12,12 @@ declare module '@mappedin/dynamic-focus/dynamic-focus/src/dynamic-focus' {
|
|
|
11
12
|
import type { Facade, FloorStack, MapView } from '@mappedin/mappedin-js';
|
|
12
13
|
import { Floor } from '@mappedin/mappedin-js';
|
|
13
14
|
import type { DynamicFocusEventPayload, DynamicFocusEvents, DynamicFocusState } from '@mappedin/dynamic-focus/dynamic-focus/src/types';
|
|
15
|
+
import type { MapViewExtension } from '@packages/internal/common/extensions';
|
|
14
16
|
/**
|
|
15
17
|
* Dynamic Focus is a MapView scene manager that maintains the visibility of the outdoors
|
|
16
18
|
* while fading in and out building interiors as the camera pans.
|
|
17
19
|
*/
|
|
18
|
-
export class DynamicFocus {
|
|
20
|
+
export class DynamicFocus implements MapViewExtension<DynamicFocusState> {
|
|
19
21
|
#private;
|
|
20
22
|
/**
|
|
21
23
|
* Creates a new instance of the Dynamic Focus controller.
|
|
@@ -26,7 +28,8 @@ declare module '@mappedin/dynamic-focus/dynamic-focus/src/dynamic-focus' {
|
|
|
26
28
|
* @example
|
|
27
29
|
* ```ts
|
|
28
30
|
* const mapView = show3dMap(...);
|
|
29
|
-
* const df = new DynamicFocus(mapView
|
|
31
|
+
* const df = new DynamicFocus(mapView);
|
|
32
|
+
* df.enable({ autoFocus: true });
|
|
30
33
|
*
|
|
31
34
|
* // pause the listener
|
|
32
35
|
* df.updateState({ autoFocus: false });
|
|
@@ -35,7 +38,20 @@ declare module '@mappedin/dynamic-focus/dynamic-focus/src/dynamic-focus' {
|
|
|
35
38
|
* df.focus();
|
|
36
39
|
* ```
|
|
37
40
|
*/
|
|
38
|
-
constructor(mapView: MapView
|
|
41
|
+
constructor(mapView: MapView);
|
|
42
|
+
/**
|
|
43
|
+
* Enables Dynamic Focus with the given options.
|
|
44
|
+
* @param options - The options to enable Dynamic Focus with.
|
|
45
|
+
*/
|
|
46
|
+
enable(options?: Partial<DynamicFocusState>): void;
|
|
47
|
+
/**
|
|
48
|
+
* Disables Dynamic Focus and returns the MapView to it's previous state.
|
|
49
|
+
*/
|
|
50
|
+
disable(): void;
|
|
51
|
+
/**
|
|
52
|
+
* Returns true if Dynamic Focus is enabled.
|
|
53
|
+
*/
|
|
54
|
+
get isEnabled(): boolean;
|
|
39
55
|
/**
|
|
40
56
|
* Returns true if the current view state is indoor.
|
|
41
57
|
*/
|