@mapcreator/sdk 0.0.0-video.5 → 0.0.0-video.6

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/MCMap.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Evented, Map as MapLibre } from '@mapcreator/maplibre-gl';
1
+ import { Evented, Map as MapLibre, StyleSpecification } from '@mapcreator/maplibre-gl';
2
2
  import { JobObject } from './types/jobObject';
3
3
  import { SvgCache } from './utils/svgHelpers';
4
4
  import { Svgs } from './types';
@@ -12,14 +12,8 @@ type VideoEvent = {
12
12
  };
13
13
  export declare class MCMap extends Evented {
14
14
  map: MapLibre;
15
- private cameraCurve;
16
- private jobObject;
17
- private svgs;
18
- private svgCache;
19
- private duration;
20
- private playhead;
21
- private playbackContext;
22
- constructor(map: MapLibre, jobObject: JobObject, svgs: Svgs, svgCache: SvgCache);
15
+ private video;
16
+ constructor(map: MapLibre, jobObject: JobObject, svgs: Svgs, svgCache: SvgCache, mapstyle: StyleSpecification, overlays: Map<number, StyleSpecification>);
23
17
  on<T extends keyof SdkEventType>(type: T, listener: (e: SdkEventType[T]) => void): import('@mapcreator/maplibre-gl').Subscription;
24
18
  once<T extends keyof SdkEventType>(type: T, listener: (e: SdkEventType[T]) => void): Promise<any> | this;
25
19
  off<T extends keyof SdkEventType>(type: T, listener: (e: SdkEventType[T]) => void): this;
@@ -28,19 +22,5 @@ export declare class MCMap extends Evented {
28
22
  pause(): void;
29
23
  seekTo(time: number): void;
30
24
  frames(): AsyncGenerator<ImageData, void, void>;
31
- private captureFrame;
32
- private playFrame;
33
- private setCamera;
34
- private applyAnimations;
35
- /**
36
- * Prepares map for any change during playback (camera movement or animation update):
37
- *
38
- * 1. Disables center clamping to ground for manual elevation control
39
- * 2. Disables paint propertytransitions
40
- *
41
- * Initial state is restored 300ms later
42
- */
43
- private prepareForPlayback;
44
- private restoreAfterPlayback;
45
25
  }
46
26
  export {};
@@ -0,0 +1,41 @@
1
+ import { JobObject } from './types/jobObject';
2
+ import { SvgCache } from './utils/svgHelpers';
3
+ import { MCMap } from './MCMap';
4
+ import { Svgs } from './types';
5
+ import { StyleSpecification } from '@mapcreator/maplibre-gl';
6
+ export declare class Video {
7
+ private mcMap;
8
+ private cameraCurve;
9
+ private jobObject;
10
+ private svgs;
11
+ private svgCache;
12
+ private duration;
13
+ private mapstyle;
14
+ private overlays;
15
+ private layerInfo;
16
+ private playhead;
17
+ private playbackContext;
18
+ constructor(mcMap: MCMap, jobObject: JobObject, svgs: Svgs, svgCache: SvgCache, mapstyle: StyleSpecification, overlays: Map<number, StyleSpecification>);
19
+ play(): void;
20
+ pause(): void;
21
+ seekTo(time: number): void;
22
+ frames(): AsyncGenerator<ImageData, void, void>;
23
+ private captureFrame;
24
+ private playFrame;
25
+ private setCamera;
26
+ private applyAnimations;
27
+ /**
28
+ * Prepares map for any change during playback (camera movement or animation update):
29
+ *
30
+ * 1. Disables center clamping to ground for manual elevation control
31
+ * 2. Disables paint property transitions
32
+ *
33
+ * Initial state is restored 300ms later
34
+ */
35
+ private prepareForPlayback;
36
+ private restoreAfterPlayback;
37
+ private getGroupAnimations;
38
+ private getLayerOpacity;
39
+ private setLayerOpacity;
40
+ private resetLayerOpacity;
41
+ }