drone-path-engine 0.0.0-stage → 1.0.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/LICENSE +21 -0
- package/README.md +33 -2
- package/THIRD-PARTY-NOTICES.md +11 -0
- package/dist/assets.d.ts +34 -0
- package/dist/assets.js +60 -0
- package/dist/config.d.ts +208 -0
- package/dist/config.js +577 -0
- package/dist/configfile.d.ts +20 -0
- package/dist/configfile.js +82 -0
- package/dist/decimate.d.ts +2 -0
- package/dist/decimate.js +1 -0
- package/dist/ffmpeg-output.d.ts +9 -0
- package/dist/ffmpeg-output.js +40 -0
- package/dist/logging.d.ts +1 -0
- package/dist/logging.js +1 -0
- package/dist/paths.d.ts +4 -0
- package/dist/paths.js +21 -0
- package/dist/pipeline.d.ts +90 -0
- package/dist/pipeline.js +436 -0
- package/dist/plan.d.ts +47 -0
- package/dist/plan.js +113 -0
- package/dist/png.d.ts +1 -0
- package/dist/png.js +32 -0
- package/dist/range.d.ts +19 -0
- package/dist/range.js +50 -0
- package/dist/recordings.d.ts +5 -0
- package/dist/recordings.js +45 -0
- package/dist/render-page.d.ts +35 -0
- package/dist/render-page.js +85 -0
- package/dist/render.d.ts +57 -0
- package/dist/render.js +397 -0
- package/dist/renderer/boot.d.ts +4 -0
- package/dist/renderer/boot.js +28 -0
- package/dist/renderer/dom.d.ts +28 -0
- package/dist/renderer/dom.js +179 -0
- package/dist/renderer/framemath.d.ts +5 -0
- package/dist/renderer/framemath.js +30 -0
- package/dist/renderer/scene.d.ts +38 -0
- package/dist/renderer/scene.js +394 -0
- package/dist/renderer/theme.d.ts +13 -0
- package/dist/renderer/theme.js +82 -0
- package/dist/renderer/tilesources.d.ts +14 -0
- package/dist/renderer/tilesources.js +38 -0
- package/dist/renderer/trail.d.ts +18 -0
- package/dist/renderer/trail.js +42 -0
- package/dist/restyle.d.ts +13 -0
- package/dist/restyle.js +16 -0
- package/dist/serve.d.ts +6 -0
- package/dist/serve.js +27 -0
- package/dist/tilecache.d.ts +12 -0
- package/dist/tilecache.js +21 -0
- package/dist/tiles.d.ts +25 -0
- package/dist/tiles.js +215 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +3 -0
- package/package.json +37 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Manuel Warum
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,34 @@
|
|
|
1
|
-
#
|
|
1
|
+
# drone-path-engine
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Plan and render flight-path map overlay videos from DJI recordings. This
|
|
4
|
+
package owns the render pipeline and configuration. It uses
|
|
5
|
+
`drone-path-core` for telemetry extraction and track export.
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install drone-path-engine
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Use the module subpaths in Node.js 24 or later.
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import { DEFAULT_CONFIG } from 'drone-path-engine/config';
|
|
15
|
+
import { runBatch } from 'drone-path-engine/pipeline';
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Each module ships TypeScript declarations.
|
|
19
|
+
|
|
20
|
+
Install `@types/node` for your Node.js major version. In TypeScript 6, list
|
|
21
|
+
`node` in `compilerOptions.types` to load the Node declarations.
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"compilerOptions": {
|
|
26
|
+
"module": "NodeNext",
|
|
27
|
+
"types": ["node"]
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
See the [project manual](https://github.com/MrManny/drone-path/tree/main/docs/user)
|
|
33
|
+
for browser, FFmpeg, and map tile requirements. Install `drone-path` for
|
|
34
|
+
the command-line interface.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
The npm dependencies carry their own license texts. This package serves
|
|
4
|
+
Leaflet's browser assets and uses Playwright for headless rendering.
|
|
5
|
+
|
|
6
|
+
- Leaflet is licensed under BSD-2-Clause.
|
|
7
|
+
- Playwright Core is licensed under Apache-2.0.
|
|
8
|
+
- p-queue, Zod, and the Leaflet type declarations are licensed under MIT.
|
|
9
|
+
|
|
10
|
+
The `drone-path-core` dependency documents the optional FFmpeg and FFprobe
|
|
11
|
+
binaries used for telemetry and rendering.
|
package/dist/assets.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { MapStyle } from './config.js';
|
|
2
|
+
import type { TileCoord } from './plan.js';
|
|
3
|
+
export declare const MIME: Record<string, string>;
|
|
4
|
+
export declare function mimeFor(filePath: string): string;
|
|
5
|
+
type TilePolicy = {
|
|
6
|
+
style: MapStyle;
|
|
7
|
+
} | {
|
|
8
|
+
anyStyle: true;
|
|
9
|
+
};
|
|
10
|
+
interface TileRoute {
|
|
11
|
+
style: MapStyle;
|
|
12
|
+
tile: TileCoord;
|
|
13
|
+
filePath: string;
|
|
14
|
+
placeholderPath: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function resolveTileRoute(pathname: string, tileCache: string, policy: TilePolicy): TileRoute | null;
|
|
17
|
+
export interface AssetRoutes {
|
|
18
|
+
leafletDir: string;
|
|
19
|
+
style: MapStyle;
|
|
20
|
+
tileCache: string;
|
|
21
|
+
rendererDir: string;
|
|
22
|
+
}
|
|
23
|
+
type AssetResolution = {
|
|
24
|
+
kind: 'file';
|
|
25
|
+
filePath: string;
|
|
26
|
+
mime: string;
|
|
27
|
+
fallbackPath?: string;
|
|
28
|
+
} | {
|
|
29
|
+
kind: 'missing';
|
|
30
|
+
} | {
|
|
31
|
+
kind: 'unrouted';
|
|
32
|
+
};
|
|
33
|
+
export declare function resolveAsset(url: string, routes: AssetRoutes): AssetResolution;
|
|
34
|
+
export {};
|
package/dist/assets.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { parseTilePathname, tilePaths } from './tilecache.js';
|
|
3
|
+
export const MIME = {
|
|
4
|
+
'.html': 'text/html; charset=utf-8',
|
|
5
|
+
'.js': 'text/javascript; charset=utf-8',
|
|
6
|
+
'.css': 'text/css; charset=utf-8',
|
|
7
|
+
'.json': 'application/json; charset=utf-8',
|
|
8
|
+
'.txt': 'text/plain; charset=utf-8',
|
|
9
|
+
'.svg': 'image/svg+xml',
|
|
10
|
+
'.ico': 'image/x-icon',
|
|
11
|
+
'.png': 'image/png',
|
|
12
|
+
'.mp4': 'video/mp4',
|
|
13
|
+
};
|
|
14
|
+
export function mimeFor(filePath) {
|
|
15
|
+
return MIME[path.extname(filePath).toLowerCase()] ?? 'application/octet-stream';
|
|
16
|
+
}
|
|
17
|
+
export function resolveTileRoute(pathname, tileCache, policy) {
|
|
18
|
+
const parsed = parseTilePathname(pathname);
|
|
19
|
+
if (!parsed)
|
|
20
|
+
return null;
|
|
21
|
+
if (!('anyStyle' in policy) && parsed.style !== policy.style)
|
|
22
|
+
return null;
|
|
23
|
+
const paths = tilePaths(tileCache, parsed.style, parsed.tile);
|
|
24
|
+
return {
|
|
25
|
+
style: parsed.style,
|
|
26
|
+
tile: parsed.tile,
|
|
27
|
+
filePath: paths.file,
|
|
28
|
+
placeholderPath: paths.placeholder,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function resolveAsset(url, routes) {
|
|
32
|
+
if (url.startsWith('/leaflet/')) {
|
|
33
|
+
const rel = url.slice('/leaflet/'.length);
|
|
34
|
+
if (!/^(leaflet\.(js|css|js\.map|css\.map)|images\/[a-z0-9_-]+\.png)$/.test(rel)) {
|
|
35
|
+
return { kind: 'missing' };
|
|
36
|
+
}
|
|
37
|
+
return fileResolution(path.join(routes.leafletDir, rel));
|
|
38
|
+
}
|
|
39
|
+
if (url.startsWith('/tiles/')) {
|
|
40
|
+
const tile = resolveTileRoute(url, routes.tileCache, { style: routes.style });
|
|
41
|
+
return tile
|
|
42
|
+
? {
|
|
43
|
+
kind: 'file',
|
|
44
|
+
filePath: tile.filePath,
|
|
45
|
+
fallbackPath: tile.placeholderPath,
|
|
46
|
+
mime: mimeFor(tile.filePath),
|
|
47
|
+
}
|
|
48
|
+
: { kind: 'missing' };
|
|
49
|
+
}
|
|
50
|
+
if (url.startsWith('/renderer/')) {
|
|
51
|
+
const rel = url.slice('/renderer/'.length);
|
|
52
|
+
if (!/^[a-z0-9_-]+\.js$/.test(rel))
|
|
53
|
+
return { kind: 'missing' };
|
|
54
|
+
return fileResolution(path.join(routes.rendererDir, rel));
|
|
55
|
+
}
|
|
56
|
+
return { kind: 'unrouted' };
|
|
57
|
+
}
|
|
58
|
+
function fileResolution(filePath) {
|
|
59
|
+
return { kind: 'file', filePath, mime: mimeFor(filePath) };
|
|
60
|
+
}
|
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import type { FfmpegToolOverrides } from 'drone-path-core/ffmpeg-tools';
|
|
2
|
+
import type { FrameRange } from 'drone-path-core/frame-range';
|
|
3
|
+
export declare const MAP_STYLE_VALUES: readonly ["satellite", "topo"];
|
|
4
|
+
export type MapStyle = (typeof MAP_STYLE_VALUES)[number];
|
|
5
|
+
declare const VIEW_MODE_VALUES: readonly ["follow", "overview"];
|
|
6
|
+
export type ViewMode = (typeof VIEW_MODE_VALUES)[number];
|
|
7
|
+
declare const CAPTURE_FORMAT_VALUES: readonly ["jpeg", "png"];
|
|
8
|
+
export type CaptureFormat = (typeof CAPTURE_FORMAT_VALUES)[number];
|
|
9
|
+
export declare const CODEC_VALUES: readonly ["h264", "h265"];
|
|
10
|
+
export type Codec = (typeof CODEC_VALUES)[number];
|
|
11
|
+
export declare const QUALITY_VALUES: readonly ["near-lossless", "high", "medium", "low"];
|
|
12
|
+
export type Quality = (typeof QUALITY_VALUES)[number];
|
|
13
|
+
export declare const ENCODER_PRESET_VALUES: readonly ["medium", "veryfast"];
|
|
14
|
+
export type EncoderPreset = (typeof ENCODER_PRESET_VALUES)[number];
|
|
15
|
+
export interface HudLayout {
|
|
16
|
+
heading: boolean;
|
|
17
|
+
alt: boolean;
|
|
18
|
+
speed: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface RenderConfig extends FfmpegToolOverrides {
|
|
21
|
+
outDir: string | null;
|
|
22
|
+
outSuffix: string;
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
style: MapStyle;
|
|
26
|
+
view: ViewMode;
|
|
27
|
+
zoom: number;
|
|
28
|
+
zoomOut: number;
|
|
29
|
+
introSec: number;
|
|
30
|
+
outroSec: number;
|
|
31
|
+
trailColor: string | null;
|
|
32
|
+
hud: HudLayout;
|
|
33
|
+
workers: number;
|
|
34
|
+
capture: CaptureFormat;
|
|
35
|
+
codec: Codec;
|
|
36
|
+
quality: Quality;
|
|
37
|
+
preset: EncoderPreset;
|
|
38
|
+
tileCache: string;
|
|
39
|
+
browser: string | null;
|
|
40
|
+
skipExisting: boolean;
|
|
41
|
+
recurse: boolean;
|
|
42
|
+
trackOut: string | null;
|
|
43
|
+
json: boolean;
|
|
44
|
+
quiet: boolean;
|
|
45
|
+
}
|
|
46
|
+
export type ConfigOverrides = Partial<RenderConfig>;
|
|
47
|
+
export declare const CONFIG_FILE_NAME = ".dronepath.json";
|
|
48
|
+
export declare const CONFIG_FILE_OPTION: {
|
|
49
|
+
readonly flags: "--config <path>";
|
|
50
|
+
readonly help: "config file (default: .dronepath.json discovered upward from the working directory)";
|
|
51
|
+
};
|
|
52
|
+
type OverrideNormalizer<K extends keyof RenderConfig> = (value: unknown, name: string) => Pick<ConfigOverrides, K>;
|
|
53
|
+
export declare function parseHud(list: string): HudLayout;
|
|
54
|
+
export declare function resolveHudLayout(hud: HudLayout, hasAlt: boolean): HudLayout;
|
|
55
|
+
export declare function hasAltitude(alt: readonly (number | null)[]): boolean;
|
|
56
|
+
export declare function formatHud(hud: HudLayout): string;
|
|
57
|
+
export declare function asTrailColor(value: unknown, name: string): string | null;
|
|
58
|
+
interface CliOptionSpec {
|
|
59
|
+
flags: string;
|
|
60
|
+
help: string;
|
|
61
|
+
choices?: readonly string[];
|
|
62
|
+
parse?: (raw: unknown) => unknown;
|
|
63
|
+
}
|
|
64
|
+
export interface ConfigOption<K extends keyof RenderConfig = keyof RenderConfig> {
|
|
65
|
+
key: K;
|
|
66
|
+
cli: CliOptionSpec;
|
|
67
|
+
default: RenderConfig[K];
|
|
68
|
+
normalize: OverrideNormalizer<K>;
|
|
69
|
+
}
|
|
70
|
+
type AnyConfigOption = {
|
|
71
|
+
[K in keyof RenderConfig]: ConfigOption<K>;
|
|
72
|
+
}[keyof RenderConfig];
|
|
73
|
+
export declare const OVERRIDE_NORMALIZERS: {
|
|
74
|
+
outDir: (v: unknown, name: string) => {
|
|
75
|
+
outDir: string | null;
|
|
76
|
+
};
|
|
77
|
+
outSuffix: (v: unknown, name: string) => {
|
|
78
|
+
outSuffix: string;
|
|
79
|
+
};
|
|
80
|
+
width: (v: unknown, name: string) => {
|
|
81
|
+
width: number;
|
|
82
|
+
};
|
|
83
|
+
height: (v: unknown, name: string) => {
|
|
84
|
+
height: number;
|
|
85
|
+
};
|
|
86
|
+
style: (v: unknown, name: string) => {
|
|
87
|
+
style: "satellite" | "topo";
|
|
88
|
+
};
|
|
89
|
+
view: (v: unknown, name: string) => {
|
|
90
|
+
view: "follow" | "overview";
|
|
91
|
+
};
|
|
92
|
+
zoom: (v: unknown, name: string) => {
|
|
93
|
+
zoom: number;
|
|
94
|
+
};
|
|
95
|
+
zoomOut: (v: unknown, name: string) => {
|
|
96
|
+
zoomOut: number;
|
|
97
|
+
};
|
|
98
|
+
introSec: (v: unknown, name: string) => {
|
|
99
|
+
introSec: number;
|
|
100
|
+
};
|
|
101
|
+
outroSec: (v: unknown, name: string) => {
|
|
102
|
+
outroSec: number;
|
|
103
|
+
};
|
|
104
|
+
trailColor: (v: unknown, name: string) => {
|
|
105
|
+
trailColor: string | null;
|
|
106
|
+
};
|
|
107
|
+
hud: (v: unknown, name: string) => {
|
|
108
|
+
hud: HudLayout;
|
|
109
|
+
};
|
|
110
|
+
workers: (v: unknown, name: string) => {
|
|
111
|
+
workers: number;
|
|
112
|
+
};
|
|
113
|
+
capture: (v: unknown, name: string) => {
|
|
114
|
+
capture: "jpeg" | "png";
|
|
115
|
+
};
|
|
116
|
+
codec: (v: unknown, name: string) => {
|
|
117
|
+
codec: "h264" | "h265";
|
|
118
|
+
};
|
|
119
|
+
quality: (v: unknown, name: string) => {
|
|
120
|
+
quality: "near-lossless" | "high" | "medium" | "low";
|
|
121
|
+
};
|
|
122
|
+
preset: (v: unknown, name: string) => {
|
|
123
|
+
preset: "medium" | "veryfast";
|
|
124
|
+
};
|
|
125
|
+
tileCache: (v: unknown, name: string) => {
|
|
126
|
+
tileCache: string;
|
|
127
|
+
};
|
|
128
|
+
browser: (v: unknown, name: string) => {
|
|
129
|
+
browser: string | null;
|
|
130
|
+
};
|
|
131
|
+
ffmpeg: (v: unknown, name: string) => {
|
|
132
|
+
ffmpeg: string | null;
|
|
133
|
+
};
|
|
134
|
+
ffprobe: (v: unknown, name: string) => {
|
|
135
|
+
ffprobe: string | null;
|
|
136
|
+
};
|
|
137
|
+
skipExisting: (v: unknown, name: string) => {
|
|
138
|
+
skipExisting: boolean;
|
|
139
|
+
};
|
|
140
|
+
recurse: (v: unknown, name: string) => {
|
|
141
|
+
recurse: boolean;
|
|
142
|
+
};
|
|
143
|
+
trackOut: (v: unknown, name: string) => {
|
|
144
|
+
trackOut: string | null;
|
|
145
|
+
};
|
|
146
|
+
json: (v: unknown, name: string) => {
|
|
147
|
+
json: boolean;
|
|
148
|
+
};
|
|
149
|
+
quiet: (v: unknown, name: string) => {
|
|
150
|
+
quiet: boolean;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
export declare const CONFIG_OPTIONS: readonly AnyConfigOption[];
|
|
154
|
+
export declare const TELEMETRY_JSON_ALIAS: {
|
|
155
|
+
readonly inputKey: "telemetryJson";
|
|
156
|
+
readonly key: "trackOut";
|
|
157
|
+
readonly flags: "--telemetry-json <file>";
|
|
158
|
+
readonly help: "deprecated alias of --track-out <file>.json";
|
|
159
|
+
readonly cliWarning: "warning: --telemetry-json is deprecated; use --track-out <file>.json (the alias will be removed in a future version)";
|
|
160
|
+
readonly fileWarning: "warning: the telemetryJson key is deprecated; use trackOut (the key will be removed in a future version)";
|
|
161
|
+
};
|
|
162
|
+
export type TrackOutSpelling = 'track-out' | 'telemetry-json';
|
|
163
|
+
/**
|
|
164
|
+
* Which spelling of the one trackOut key a raw override object uses. Both
|
|
165
|
+
* spellings within one origin are ambiguous and rejected.
|
|
166
|
+
*/
|
|
167
|
+
export declare function trackOutSpellingOf(raw: Record<string, unknown>, origin: string): TrackOutSpelling | null;
|
|
168
|
+
/**
|
|
169
|
+
* The merged effective config may use only one spelling of the one trackOut
|
|
170
|
+
* key - across the command line and the config file, not just within one of
|
|
171
|
+
* them.
|
|
172
|
+
*/
|
|
173
|
+
export declare function assertOneTrackOutSpelling(entries: readonly {
|
|
174
|
+
origin: string;
|
|
175
|
+
spelling: TrackOutSpelling | null;
|
|
176
|
+
}[]): void;
|
|
177
|
+
export declare function cliDefaultOf(key: keyof RenderConfig): string | boolean;
|
|
178
|
+
export declare const DEFAULT_CONFIG: RenderConfig;
|
|
179
|
+
export declare function normalizeOverrides(raw: Record<string, unknown>, origin: string, onDeprecated?: (message: string) => void): ConfigOverrides;
|
|
180
|
+
export declare function effectiveZoomOut(config: Pick<RenderConfig, 'zoom' | 'zoomOut'>): number;
|
|
181
|
+
declare const LOOK_SETTINGS_KEYS: readonly ["style", "view", "zoom", "zoomOut", "hud", "introSec", "outroSec", "trailColor"];
|
|
182
|
+
declare const ENCODE_SETTINGS_KEYS: readonly ["codec", "quality", "preset"];
|
|
183
|
+
export declare const SETTINGS_KEYS: readonly ["style", "view", "zoom", "zoomOut", "hud", "introSec", "outroSec", "trailColor", "codec", "quality", "preset"];
|
|
184
|
+
export type AppearanceSettings = Pick<RenderConfig, (typeof LOOK_SETTINGS_KEYS)[number]>;
|
|
185
|
+
export type EncodeSettings = Pick<RenderConfig, (typeof ENCODE_SETTINGS_KEYS)[number]>;
|
|
186
|
+
export type SettingsPatch = Pick<RenderConfig, (typeof SETTINGS_KEYS)[number]>;
|
|
187
|
+
/** The look projection every consumer shares; hud is cloned so no caller can
|
|
188
|
+
leak chip state into another owner. */
|
|
189
|
+
export declare function appearanceOf(config: AppearanceSettings): AppearanceSettings;
|
|
190
|
+
export declare function settingsPatchOf(config: RenderConfig): SettingsPatch;
|
|
191
|
+
export declare function parseSettingsPatch(raw: unknown, origin: string): SettingsPatch;
|
|
192
|
+
export declare function parseAppearanceSettings(raw: unknown): AppearanceSettings;
|
|
193
|
+
export declare const MIN_DIMENSION = 64;
|
|
194
|
+
export declare function isValidDimensions(width: number, height: number): boolean;
|
|
195
|
+
export declare function normalizeDimensions(width: number, height: number): {
|
|
196
|
+
width: number;
|
|
197
|
+
height: number;
|
|
198
|
+
};
|
|
199
|
+
export declare function isValidRenderConfig(config: RenderConfig): boolean;
|
|
200
|
+
export declare function validateRenderConfig(config: RenderConfig): void;
|
|
201
|
+
export declare function finalizeRenderConfig(config: RenderConfig): RenderConfig;
|
|
202
|
+
export interface ExportRequest {
|
|
203
|
+
outPath: string;
|
|
204
|
+
config: RenderConfig;
|
|
205
|
+
range: FrameRange | null;
|
|
206
|
+
}
|
|
207
|
+
export declare function parseExportRequest(raw: unknown, base: RenderConfig): ExportRequest;
|
|
208
|
+
export {};
|