@mapcreator/sdk 0.0.0-video.3 → 0.0.0-video.5
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 +10 -2
- package/dist/adornments/copyright.d.ts +3 -0
- package/dist/mapcreator-sdk.css +1 -1
- package/dist/mapcreator-sdk.js +2898 -2594
- package/dist/mapcreator-sdk.umd.cjs +76 -61
- package/dist/models/circle.d.ts +3 -1
- package/dist/models/line.d.ts +3 -1
- package/dist/report.html +1 -1
- package/dist/utils/helpers.d.ts +1 -0
- package/dist/utils/lineSlicer.d.ts +9 -0
- package/dist/utils/video/animations.d.ts +2 -0
- package/dist/utils/video/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/utils/helpers.d.ts
CHANGED
|
@@ -26,4 +26,5 @@ export declare function clamp(value: number, min: number, max: number): number;
|
|
|
26
26
|
*/
|
|
27
27
|
export declare function fnv32b(str: string): string;
|
|
28
28
|
export declare function calculateScaleCorrection(jobObject: JobObject, container: HTMLElement): number;
|
|
29
|
+
export declare function almostEqual(a: number, b: number, delta?: number): boolean;
|
|
29
30
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MercatorCoordinate } from '@mapcreator/maplibre-gl';
|
|
2
|
+
import { Position } from '../types/geometry';
|
|
3
|
+
export declare class LineSlicer {
|
|
4
|
+
#private;
|
|
5
|
+
constructor(line: Position[]);
|
|
6
|
+
sample(position: number): MercatorCoordinate;
|
|
7
|
+
slice(start: number, end: number): Position[];
|
|
8
|
+
get length(): number;
|
|
9
|
+
}
|
|
@@ -8,3 +8,4 @@ import { Keyframe } from '../../types/video';
|
|
|
8
8
|
export declare function unwrapGlobeAndCameraRotation(script: Keyframe[]): Keyframe[];
|
|
9
9
|
export declare function zoomToAltitude(zoom: number): number;
|
|
10
10
|
export declare function getTotalDuration(script: Keyframe[]): number;
|
|
11
|
+
export declare function getPreciseFramerate(frameRate: number): number;
|