@mapcreator/sdk 1.1.0 → 1.2.0
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 +1 -1
- package/dist/Video.d.ts +2 -1
- package/dist/adornments/connectedLegend.d.ts +4 -1
- package/dist/adornments/heading.d.ts +4 -1
- package/dist/adornments/insetMap.d.ts +5 -2
- package/dist/adornments/manualLegend.d.ts +4 -1
- package/dist/constants/index.d.ts +6 -1
- package/dist/controls/geolocationControls.d.ts +2 -1
- package/dist/controls/webControls.d.ts +2 -1
- package/dist/mapcreator-sdk.js +4088 -3884
- package/dist/mapcreator-sdk.umd.cjs +106 -99
- package/dist/models/marker.d.ts +1 -1
- package/dist/polyfills.d.ts +1 -0
- package/dist/renderAdornments.d.ts +2 -1
- package/dist/report.html +1 -1
- package/dist/types/index.d.ts +7 -0
- package/dist/types/jobObject.d.ts +1 -0
- package/dist/utils/fonts.d.ts +4 -0
- package/dist/utils/geolocation.d.ts +3 -2
- package/dist/utils/helpers.d.ts +2 -0
- package/dist/utils/svgHelpers.d.ts +8 -3
- package/package.json +1 -1
package/dist/MCMap.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ type VideoEvent = {
|
|
|
13
13
|
export declare class MCMap extends Evented {
|
|
14
14
|
map: MapLibre;
|
|
15
15
|
private video;
|
|
16
|
-
constructor(map: MapLibre, jobObject: JobObject, svgs: Svgs, svgCache: SvgCache, mapstyle: StyleSpecification, overlays: Map<number, StyleSpecification>, layerInfo: LayerInfo);
|
|
16
|
+
constructor(map: MapLibre, jobObject: JobObject, svgs: Svgs, svgCache: SvgCache, mapstyle: StyleSpecification, overlays: Map<number, StyleSpecification>, layerInfo: LayerInfo, backgroundColor: string);
|
|
17
17
|
on<T extends keyof SdkEventType>(type: T, listener: (e: SdkEventType[T]) => void): import('@mapcreator/maplibre-gl').Subscription;
|
|
18
18
|
once<T extends keyof SdkEventType>(type: T, listener: (e: SdkEventType[T]) => void): Promise<any> | this;
|
|
19
19
|
off<T extends keyof SdkEventType>(type: T, listener: (e: SdkEventType[T]) => void): this;
|
package/dist/Video.d.ts
CHANGED
|
@@ -13,9 +13,10 @@ export declare class Video {
|
|
|
13
13
|
private mapstyle;
|
|
14
14
|
private overlays;
|
|
15
15
|
private layerInfo;
|
|
16
|
+
private backgroundColor;
|
|
16
17
|
private playhead;
|
|
17
18
|
private playbackContext;
|
|
18
|
-
constructor(mcMap: MCMap, jobObject: JobObject, svgs: Svgs, svgCache: SvgCache, mapstyle: StyleSpecification, overlays: Map<number, StyleSpecification>, layerInfo: LayerInfo);
|
|
19
|
+
constructor(mcMap: MCMap, jobObject: JobObject, svgs: Svgs, svgCache: SvgCache, mapstyle: StyleSpecification, overlays: Map<number, StyleSpecification>, layerInfo: LayerInfo, backgroundColor: string);
|
|
19
20
|
play(): void;
|
|
20
21
|
pause(): void;
|
|
21
22
|
seekTo(time: number): void;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { Map as MapLibre } from '@mapcreator/maplibre-gl';
|
|
2
2
|
import { JobObject, JobObjectConnectedLegend } from '../types/jobObject';
|
|
3
|
-
export declare function useConnectedLegend(legend: JobObjectConnectedLegend, jobObject: JobObject, map: MapLibre, vapiUrl: string, accessToken: string, mapScale: number):
|
|
3
|
+
export declare function useConnectedLegend(legend: JobObjectConnectedLegend, jobObject: JobObject, map: MapLibre, vapiUrl: string, accessToken: string, mapScale: number): {
|
|
4
|
+
element: HTMLElement;
|
|
5
|
+
ready: Promise<void>;
|
|
6
|
+
};
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import { JobObjectHeading } from '../types/jobObject';
|
|
2
|
-
export declare function useHeading(heading: JobObjectHeading, vapiUrl: string, accessToken: string, mapScale: number):
|
|
2
|
+
export declare function useHeading(heading: JobObjectHeading, vapiUrl: string, accessToken: string, mapScale: number): {
|
|
3
|
+
element: HTMLElement;
|
|
4
|
+
ready: Promise<void>;
|
|
5
|
+
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import { Map } from '@mapcreator/maplibre-gl';
|
|
2
1
|
import { JobObjectInsetMap } from '../types/jobObject';
|
|
3
|
-
|
|
2
|
+
import { Map } from '@mapcreator/maplibre-gl';
|
|
3
|
+
export declare function useInsetMap(insetMap: JobObjectInsetMap, map: Map, cdnUrl: string, mapScale: number): {
|
|
4
|
+
element: HTMLElement;
|
|
5
|
+
ready: Promise<void>;
|
|
6
|
+
};
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import { JobObjectManualLegend } from '../types/jobObject';
|
|
2
|
-
export declare function useManualLegend(legend: JobObjectManualLegend, vapiUrl: string, accessToken: string, mapScale: number):
|
|
2
|
+
export declare function useManualLegend(legend: JobObjectManualLegend, vapiUrl: string, accessToken: string, mapScale: number): {
|
|
3
|
+
element: HTMLElement;
|
|
4
|
+
ready: Promise<void>;
|
|
5
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AdornmentPosition, PositionOffsets } from '../types/jobObject';
|
|
2
|
-
import { SkySpecification } from '@mapcreator/maplibre-gl';
|
|
2
|
+
import { SkySpecification, StyleLayer } from '@mapcreator/maplibre-gl';
|
|
3
3
|
export declare const defaultSky: SkySpecification;
|
|
4
4
|
type PositionConfig = {
|
|
5
5
|
x: 'left' | 'right' | 'center';
|
|
@@ -10,4 +10,9 @@ export declare const positionConfig: {
|
|
|
10
10
|
[position in AdornmentPosition]: PositionConfig;
|
|
11
11
|
};
|
|
12
12
|
export declare const defaultFov = 36.87;
|
|
13
|
+
type OpacityConfig = {
|
|
14
|
+
props: string[];
|
|
15
|
+
defaultValue: number;
|
|
16
|
+
};
|
|
17
|
+
export declare const opacityConfigByType: Partial<Record<StyleLayer['type'], OpacityConfig>>;
|
|
13
18
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { JobObjectWebControls } from '../types/jobObject';
|
|
2
2
|
import { InitialPositionInfo } from '../types';
|
|
3
|
+
import { SvgCache } from '../utils/svgHelpers';
|
|
3
4
|
import { Map } from '@mapcreator/maplibre-gl';
|
|
4
|
-
export declare function useWebControls(webControls: JobObjectWebControls, map: Map, initialPosition: InitialPositionInfo): HTMLElement;
|
|
5
|
+
export declare function useWebControls(webControls: JobObjectWebControls, map: Map, svgCache: SvgCache, initialPosition: InitialPositionInfo): HTMLElement;
|