@mapcreator/sdk 0.0.0-preload.2 → 0.0.0-preload.4
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/Registry.d.ts +53 -2
- package/dist/Video.d.ts +11 -1
- package/dist/controls/toggleAdornmentsControl.d.ts +2 -0
- package/dist/mapcreator-sdk.css +1 -1
- package/dist/mapcreator-sdk.js +2255 -2219
- package/dist/mapcreator-sdk.umd.cjs +65 -64
- package/dist/renderAdornments.d.ts +1 -0
- package/dist/report.html +1 -1
- package/dist/types/video.d.ts +13 -0
- package/dist/utils/video/animations.d.ts +3 -0
- package/package.json +2 -2
package/dist/types/video.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { JobObjectAnimation } from './jobObject';
|
|
1
2
|
import { LngLat } from './geometry';
|
|
2
3
|
export interface Keyframe {
|
|
3
4
|
time: number;
|
|
@@ -12,6 +13,17 @@ export interface Keyframe {
|
|
|
12
13
|
transition: 'ease' | 'linear' | 'instant';
|
|
13
14
|
hideLabels: boolean;
|
|
14
15
|
}
|
|
16
|
+
type AnimationTarget = JobObjectAnimation['target'];
|
|
17
|
+
export type RegistryAnimation = JobObjectAnimation & {
|
|
18
|
+
target: Extract<AnimationTarget, {
|
|
19
|
+
type: 'model';
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
22
|
+
export type LayerAnimation = JobObjectAnimation & {
|
|
23
|
+
target: Extract<AnimationTarget, {
|
|
24
|
+
type: 'layer' | 'overlay';
|
|
25
|
+
}>;
|
|
26
|
+
};
|
|
15
27
|
export interface CameraParams {
|
|
16
28
|
center: LngLat;
|
|
17
29
|
zoom: number;
|
|
@@ -20,3 +32,4 @@ export interface CameraParams {
|
|
|
20
32
|
fov: number;
|
|
21
33
|
elevation: number;
|
|
22
34
|
}
|
|
35
|
+
export {};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { JobObjectAnimation, JobObjectAnimationType } from '../../types/jobObject';
|
|
2
|
+
import { LayerAnimation, RegistryAnimation } from '../../types/video';
|
|
2
3
|
export declare function changesOpacity(animation: JobObjectAnimation): boolean;
|
|
3
4
|
export declare function changesScale(animation: JobObjectAnimation): boolean;
|
|
4
5
|
export declare function getAnimatedValue(animation: JobObjectAnimation, type: JobObjectAnimationType, time: number): number;
|
|
6
|
+
export declare function isRegistryAnimation(animation: JobObjectAnimation): animation is RegistryAnimation;
|
|
7
|
+
export declare function isLayerAnimation(animation: JobObjectAnimation): animation is LayerAnimation;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapcreator/sdk",
|
|
3
|
-
"version": "0.0.0-preload.
|
|
3
|
+
"version": "0.0.0-preload.4",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": "^24.0.0",
|
|
6
6
|
"npm": "^11.0.0"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"vite-plugin-dts": "^4.5.4"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@mapcreator/maplibre-gl": "
|
|
54
|
+
"@mapcreator/maplibre-gl": "5.7.0-mc.6",
|
|
55
55
|
"@turf/area": "^7.3.4",
|
|
56
56
|
"@turf/bbox-clip": "^7.3.4",
|
|
57
57
|
"@turf/intersect": "^7.3.4",
|