Eliminated the `compile-project.ts` and `open-folder.ts` files from the CLI, streamlining the codebase. Updated the README to reflect changes in CLI commands, including the removal of outdated examples. Adjusted the API to enhance clarity and maintainability by consolidating asset handling functions and removing unused types. This refactor improves the overall architecture and reduces complexity in the CLI interactions.
22 lines
825 B
Markdown
22 lines
825 B
Markdown
# `dapi screenshot`
|
|
|
|
Captures the entire application window as a PNG: the full UI as the user sees it (panels, timeline, asset library, canvas viewport), at the window's current size. Use it to check what the app itself looks like; to render a node or scene cleanly for composition checks use [`capture`](./capture.md) instead.
|
|
|
|
The shot is taken from the app's own window buffer, so it works even when the window is hidden or covered by other windows, and never includes anything outside the app.
|
|
|
|
## Options
|
|
|
|
- `-o, --output <dir>`: directory to write the PNG into (default: the system temp directory)
|
|
|
|
## Output
|
|
|
|
One JSON object: the absolute path to a freshly written PNG, plus the image's pixel dimensions.
|
|
|
|
```ts
|
|
{ path: string, width: number, height: number }
|
|
```
|
|
|
|
## Errors
|
|
|
|
Exits non-zero if the app is not running.
|