33 Commits

Author SHA1 Message Date
konstantin-paulus
d4d3475cee Refactor document structure to stage model
- Replaced references to `DocumentRoot` with `Stage` across the codebase, aligning with the new stage model.
- Updated entity management and hierarchy functions to reflect the transition from document-based to stage-based parenting.
- Adjusted comments and documentation to clarify the role of the stage in the entity structure.
- Enhanced queries and actions to utilize the new stage terminology, ensuring consistency throughout the runtime environment.
2026-08-17 10:05:00 +02:00
konstantin-paulus
5b8e5e7f66 Merge branch 'main' into koota-migration 2026-08-15 16:54:10 +02:00
konstantin-paulus
e85cee917a Refactor CLI and API structure by removing deprecated components
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.
2026-08-14 14:52:20 +02:00
konstantin-paulus
8aebb7dd9c Enhance documentation on common JSX errors and update GSAP usage in examples
- Added detailed explanations for common issues related to blank or partial `<html>` content in captures, including stateful animations, scaling, and opacity handling.
- Updated example code to recommend using GSAP for timeline animations instead of anime.js, ensuring frame accuracy and proper timeline management.
- Clarified best practices for using CSS properties like `scale()` and `opacity` in JSX to prevent rendering issues.
2026-08-14 08:56:07 +02:00
konstantin-paulus
2899573a36 Remove example HTML scene and update documentation references
Deleted the `09-html-scene.tsx` example file, which demonstrated an HTML scene as a mount root. Updated the README and related documentation to remove references to this example and clarified that only `<rect>` can be promoted to a scene. Adjusted descriptions in the JSX documentation to reflect this change.
2026-08-08 23:21:54 +02:00
konstantin-paulus
37ebe9d9f5 Remove --open option and associated openInBrowser function from dapi report command
Eliminated the `--open` option from the `dapi report` command, which previously opened the created issue in the default browser. Removed the `openInBrowser` function and updated related documentation to reflect these changes, streamlining the command's functionality and focusing on direct issue filing without browser interaction.
2026-08-02 13:29:20 +02:00
konstantin-paulus
a9c21b4427 Refactor dapi report command for direct issue filing and improved documentation
Updated the `dapi report` command to file GitHub issues directly using the `gh` CLI, removing the previous markdown report generation step. Enhanced the command's description and options in the README and reference documentation to clarify the immediate submission process and the requirement for `gh` authentication. Adjusted related code in the report handling to streamline issue creation and improve user experience.
2026-08-02 11:44:32 +02:00
konstantin-paulus
ad3d540026 Refactor HtmlHost readiness mechanism for improved resource handling
Updated the `whenReady` method in the HtmlHost class to streamline the resolution of asynchronously loaded HTML resources. Replaced the previous image decoding handling with a more efficient promise management approach, ensuring that all images and fonts are ready before rendering updates. Adjusted related documentation to clarify the changes in resource readiness handling.
2026-07-31 16:25:40 +02:00
konstantin-paulus
1539ded67a Add image source handling and readiness mechanism to HtmlHost
Implemented a new `whenReady` method in the HtmlHost class to ensure all images in its subtree are decoded before rendering updates. Updated the playback system to utilize this method for improved rendering reliability. Enhanced the WorldDocument class to manage image sources more effectively, including support for various input types and object URL management. Updated documentation to reflect changes in image handling and source resolution.
2026-07-31 16:01:25 +02:00
konstantin-paulus
4e47a7d00f Enhance media frame and node capture functionality with timecoded images
Updated the MediaFrameResult and NodeCaptureResult types to utilize a new TimecodedImage format, which includes timecodes for better clarity. Introduced options for combining frames into contact sheets and specifying frames per sheet, enhancing the output structure. Adjusted related functions and documentation to reflect these changes, improving user understanding of the output format and capabilities.
2026-07-31 10:43:34 +02:00
konstantin-paulus
b9c47a1975 Refactor timecode formatting in media frame and node capture outputs
Updated the naming convention for output PNG files in both media frame and node capture functions to use a more descriptive timecode format (e.g., 00h00m01s15f.png). Introduced a new utility function, `timecodeFilename`, to handle the formatting. Adjusted related documentation to reflect these changes, enhancing clarity for users regarding the output file naming structure.
2026-07-30 00:07:35 +02:00
konstantin-paulus
8772591502 Refactor media frame and node capture to include timecode in output
Updated the MediaFrameResult and related functions to replace the timestamp with a timecode string for better clarity. Adjusted the output structure in both media frame and node capture processes to include timecode, ensuring that captured images and frames are named accordingly. Enhanced documentation to reflect these changes, improving user understanding of the output format.
2026-07-30 00:00:59 +02:00
konstantin-paulus
97ef63115f Add 'report' command to CLI for bug reporting with diagnostics
Introduced a new command `dapi report` that allows users to report bugs in the CLI or the app. This command generates a markdown report containing diagnostics, including the app's status and recent logs, and provides a prefilled GitHub issue URL. Updated the README and reference documentation to include details about the new command and its usage.
2026-07-29 09:30:11 +02:00
konstantin-paulus
5fa6ef4265 Update README and captions documentation to enhance clarity and provide usage examples
Revised the README to better describe Diffusion Studio's functionality, emphasizing the role of the `dapi` CLI and providing detailed prompt examples for video understanding, motion graphics, video editing, and clipping. Additionally, clarified the caching behavior of transcripts in the captions documentation by removing the optional seed parameter reference, ensuring accurate information for users.
2026-07-26 21:00:23 +02:00
konstantin-paulus
c8583eda7f Enhance audio generation options with optional duration parameter
Updated the audio generation functionality to include an optional `duration` parameter in the `GenerateAudioOptions` type. This change allows users to specify the duration for audio prompts, improving flexibility in audio generation. Additionally, validation was added to ensure the duration is a positive number. Updated related documentation to reflect this new option.
2026-07-26 15:18:09 +02:00
konstantin-paulus
5c30d91613 Enhance audio fingerprinting and transcription process with optional seed parameter
Updated the `sceneAudioFingerprint` and `transcribeScene` functions to accept an optional `seed` parameter, allowing for more flexible transcript caching. Adjusted related logic in the `WorldDocument` class to utilize the seed for generating unique transcription keys. Additionally, updated documentation to reflect the new `seed` prop in the captions API, clarifying its role in bypassing cached transcripts.
2026-07-26 14:59:17 +02:00
konstantin-paulus
0d51ab494b Enhance context command and selection handling in editor API
Updated the context command description for clarity on spatial and temporal references. Refactored the context handling to include selected node IDs, improving the context response structure. Additionally, modified the selection utility to streamline the retrieval of selected node IDs, ensuring consistency across the editor API.
2026-07-26 12:03:24 +02:00
konstantin-paulus
5f1a60197e Refactor JSX documentation for <html> element and remove outdated examples
Updated the documentation for the `<html>` element by removing obsolete examples related to scene identity and layout practices. This change streamlines the content, focusing on the current best practices for using `<html>` in JSX, while ensuring clarity and relevance for users.
2026-07-26 00:58:02 +02:00
konstantin-paulus
e105e5a027 Add documentation for font usage in JSX and update HTML styling guidance 2026-07-24 17:20:02 +02:00
konstantin-paulus
d0dcd7b445 Update JSX documentation to correct references to <html> and improve clarity
Revised multiple files to update references from `<html-paint.md>` to `<html.md>` for consistency. Added a new file for the `<html>` element, detailing its usage, properties, and best practices for incorporating real HTML into JSX layouts. This update enhances the documentation's accuracy and provides clearer guidance for users on utilizing the `<html>` element effectively.
2026-07-24 13:43:01 +02:00
konstantin-paulus
9a913787f9 Add guidance on minimizing <html> hosts in JSX documentation
Expanded the documentation for the `<html>` element to include best practices for minimizing the number of `<html>` hosts. Added examples illustrating the preferred approach of using a single host with internal layout versus multiple hosts for content that appears simultaneously. This update aims to enhance performance and clarity for users when structuring their JSX layouts.
2026-07-24 12:47:04 +02:00
konstantin-paulus
69628905f2 Update JSX documentation for <group> and <html> elements to enhance clarity and consistency
Revised the descriptions of the `<group>` and `<html>` elements in the JSX documentation to improve clarity. The `<group>` element's internal node description was updated for better understanding, while the `<html>` element's usage examples were modified to reflect the correct structure when used as a scene. Additionally, clarified the constraints related to scene roots in the documentation, ensuring users have accurate information on the properties and behaviors of these elements.
2026-07-24 12:46:22 +02:00
konstantin-paulus
90d0959a91 Refactor JSX elements to replace <scene> with <rect> using the scene property for root promotion
Updated multiple files to transition from using `<scene>` elements to `<rect>` elements with the `scene` property, promoting rectangle geometries to mount roots. This change enhances the JSX API by clarifying the role of scenes and ensuring consistency across examples and documentation. Additionally, modified related documentation to reflect the new usage and constraints of the `scene` property.
2026-07-24 12:01:41 +02:00
konstantin-paulus
68117d5b04 Enhance image encoder to manage timeline clocks and local time updates
Updated the image encoder to track entities with timeline clocks, ensuring that local time is consistently updated for both the main stage and clock entities. This change improves synchronization during playback and enhances the overall functionality of the image encoding process.
2026-07-23 23:31:14 +02:00
konstantin-paulus
10120f3f0a Update render documentation to clarify encode settings and progress monitoring
Revised the render documentation to remove unnecessary details about the encode window and added a note about using `dapi screenshot` for progress monitoring. This update enhances clarity and ensures users have accurate information regarding the rendering process and configuration options.
2026-07-23 15:11:00 +02:00
konstantin-paulus
7d93bb3353 Update captions documentation to reflect changes in preset styles and default settings
Modified the captions documentation to clarify the default styles and color slots for various presets. The changes include a simplification of the descriptions for the "classic" and "whisper" presets, enhancing user understanding of their intended use cases. This update ensures that the documentation accurately represents the current functionality of the `<captions />` component.
2026-07-23 15:00:11 +02:00
konstantin-paulus
5da1a203a8 Refactor media transcription logic to simplify parameters and improve clarity
Removed optional start and end parameters from the MediaTranscribeRequest type and the mediaTranscribe function, streamlining the transcription process. Updated related documentation to reflect these changes, ensuring a clearer understanding of the transcription command and its usage.
2026-07-23 14:33:14 +02:00
konstantin-paulus
4493d17803 Enhance HTML host management and rendering logic
Updated the HtmlHost class to expose the setSize method publicly, allowing external components to adjust size directly. Introduced a new PendingHtmlHost type to manage HTML hosts awaiting size initialization. Refactored the registerHtmlHost method to include a paint parameter, improving the handling of HTML hosts during rendering. Added a flushConnectedHtmlHosts method to process pending hosts efficiently, ensuring accurate size updates when connected. Updated documentation to reflect these changes.
2026-07-22 20:55:00 +02:00
konstantin-paulus
07c47fae94 Enhance audio downsampling logic and update captions documentation
Refactored the downsampleAudio function to improve peak calculation efficiency and accuracy. Updated the logic to handle peak accumulation more effectively, ensuring better audio quality in downsampled outputs. Additionally, expanded the captions documentation to clarify the relationship between timing properties and transcript trimming, enhancing user understanding of captioning mechanics.
2026-07-22 19:21:16 +02:00
konstantin-paulus
bd01027484 Add timing properties to captions documentation
Updated the captions documentation to include new properties: `start`, `end`, `sourceIn`, and `sourceOut`. These properties allow for trimming specific sections of the transcript, enhancing the functionality and clarity of captioning in relation to media timing.
2026-07-21 14:42:47 +02:00
konstantin-paulus
81d29d5d88 Add Shader Paint functionality and related components
Introduced a new `<shaderPaint>` element that applies a WGSL fragment shader to the media paint directly below it in the paint stack. Implemented support for shader uniforms and updated the rendering logic to handle shader paints in the engine. Enhanced the API to include shader-related methods and types, ensuring seamless integration with existing media elements. Updated documentation and examples to demonstrate the new shader capabilities, improving user guidance and showcasing practical implementations.
2026-07-20 20:56:32 +02:00
konstantin-paulus
d7e6414b5b Update examples and documentation to include width and height properties for video and text elements
Added width and height properties to various video and text elements across examples and documentation files to ensure consistent sizing. This change enhances the clarity of the examples and improves the user experience by providing explicit dimensions for media elements.
2026-07-20 16:11:45 +02:00
konstantin-paulus
c1bc3f0085 Update package.json and README for consistency and clarity
Modified the "check" script in package.json to reference the correct "examples" directory. Updated the README to replace "video editor" with "media compositor" for improved accuracy and restructured some sentences for better readability. Removed outdated documentation files related to assets, CLI, composition, distribution, and getting started, streamlining the documentation for a more focused user experience.
2026-07-20 15:53:30 +02:00