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.
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.
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.
Updated the desktop application to improve main window activation behavior, ensuring it restores and focuses the window if minimized or destroyed. Additionally, refined the scene initialization overlay logic to ensure reactivity by accessing the timeline index, enhancing the overall user experience and responsiveness of the application.
Updated the codebase to replace instances of the Trim component with the Workarea component, enhancing the handling of playback and rendering windows. This change includes adjustments in the context command, encoder, playback system, and rendering logic to utilize the new Workarea structure, ensuring a more intuitive and consistent approach to managing scene work areas.
Introduced several command line switches in the desktop application to disable background timer throttling, renderer backgrounding, and occluded window backgrounding. Additionally, disabled the CalculateNativeWinOcclusion feature to improve overall application performance and responsiveness. Updated the rendering update logic in the web application to utilize a race condition between animation frame requests and a timeout, ensuring smoother rendering updates while maintaining performance during paused states.
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.
Refined the timestamp labeling in the image encoder by updating the comment for clarity and adjusting the logic to correctly calculate the frame's HH:MM:SS:FF timecode based on the rendered frame. This enhancement ensures accurate time representation during image encoding.
Enhanced the context command description to specify the inclusion of workarea trim in seconds when set, providing users with a more comprehensive overview of the open project. Additionally, updated the context retrieval logic to calculate and return workarea details based on the active scene's trim settings.
Updated the node capture function to check for the presence of timeline clocks before capturing nodes. If a node lacks a timeline clock, an informative error message is thrown, suggesting the capture of its scene ancestor instead. This change improves the robustness of the node handling process and enhances user feedback during errors.
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.
Modified the timeline component to correctly calculate the new scroll position using the layers' scroll height instead of the container's. Updated the element reference from 'data-timeline-layers-container' to 'data-timeline-layers-viewport' for better clarity and functionality in the rendering process. This refactor enhances the overall performance and maintainability of the timeline feature.
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.
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.
Removed the `hasLiveHtmlHosts` function and its references from the encoder files, streamlining the rendering process. Updated the `nextRenderingUpdate` function to utilize memoization for improved performance during rendering updates. This refactor enhances code clarity and optimizes the handling of HTML paint hosts in the rendering pipeline.
Replaced the previous export implementation in the ExportProvider with a new renderScene function, consolidating the rendering logic for both UI and CLI exports. This refactor enhances state management by utilizing a reactive overlay for progress reporting and error handling. Additionally, removed unused signals and streamlined the export process, improving overall code clarity and maintainability.
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.
Updated the describeEntity function to streamline the handling of timing properties, including `start`, `end`, `sourceIn`, and `sourceOut`. This refactor enhances the readability of the code and ensures accurate timing calculations based on the presence of trim components, improving the overall functionality of the editor API.
Revised the README to replace "media compositor" with "multimedia editor" and improved the description of the `dapi` CLI. Enhanced the `WorldDocument` class in the JSX utility by updating the `setComponent` logic to conditionally handle trim properties based on the presence of timing attributes, improving the functionality of scene transcriptions. Updated the `CaptionsProps` type to include new timing properties for better integration.
Added a new CSS variable `--color-overlay-strong` to improve overlay styling options. Updated the `ExportProgress` component to utilize the new `bg-overlay-strong` class for enhanced visual consistency during the export process. This change improves the user interface by providing a stronger overlay effect.
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.
Renamed and consolidated timeline-related functions in the layout context to improve clarity and consistency. Updated components to utilize the new `toggleTimeline` method, enhancing the user interface by streamlining the toggling of the timeline's visibility state. Adjusted the EditorPage and Layers components to reflect these changes, ensuring a cohesive experience across the application.
Added functionality to minimize the timeline, allowing for a more streamlined interface. Updated rendering logic to conditionally display elements based on the minimized state, including the playhead and snap points. Introduced a new method to set the minimized state and updated the layout context to manage timeline visibility. Adjusted related components to support double-click toggling for minimizing the timeline, improving user interaction.
Updated all JSX elements in the documentation and codebase to use lowercase tags (e.g., `<Scene>` to `<scene>`, `<Video>` to `<video>`, etc.) for uniformity and adherence to the new standards. This change enhances clarity and consistency across the JSX API, ensuring that users have a cohesive experience when working with the elements. Updated related documentation to reflect these changes.
Added a `verticalAlign` property to the `<Captions />` component, allowing for customizable vertical positioning of caption blocks. Updated the relevant API, decoders, and serialization logic to support this new feature. Enhanced documentation to reflect the changes and clarify usage, improving the overall flexibility and usability of the captioning system.
Introduced `offsetX` and `offsetY` as new animatable properties for visual elements, allowing for render-time translations without altering layout boxes. Updated the documentation to reflect these changes, ensuring clarity on their usage. Enhanced the type definitions and functionality in the editor API to support these new properties, improving the overall flexibility of animations in the application.
Introduced a new `screenshot` command in the CLI to capture the entire application window as a PNG. Updated the documentation to include this command and its options. Implemented the screenshot functionality in both the CLI and desktop applications, allowing users to save the screenshot to a specified directory. Enhanced the type definitions to support the new screenshot feature, improving overall usability and functionality.
Updated the HtmlHost class to require an HTMLCanvasElement as a target during construction, enhancing its integration with the rendering context. Removed unnecessary canvas creation and adjusted the error logging to provide clearer messages. Additionally, cleaned up the surface decoder by removing unused imports, streamlining the codebase.
Modified the JSX runtime and related documentation to clarify that `<audio>` and `<video>` tags are not supported within paint hosts. Users are now directed to use the `<Audio>` and `<Video>` composition elements for media playback, ensuring better adherence to the paint host's functionality and improving overall documentation clarity.
Changed the image smoothing property in FrameCache from `imageSmoothingEnabled` to `imageSmoothingQuality` set to 'high' for better rendering quality. Additionally, modified the VideoBuffer class to dynamically calculate the cache size based on asset dimensions and a defined pixel budget, enhancing performance and memory management for video assets.
Introduced a logging system that captures console output from the running app, including various log levels (debug, info, warning, error). Implemented a new `logs` command in the CLI to display recent log entries, and integrated log handling in the desktop application to maintain a buffer of log entries across reloads. Updated relevant types and API routes to support log retrieval, enhancing debugging capabilities and overall application observability.
Removed the `shareHtmlHosts` and `shareSurfaceHosts` functions to streamline the handling of HTML and Surface hosts. Introduced new utility functions `hasLiveHtmlHosts` and `nextRenderingUpdate` to manage the rendering lifecycle more effectively. Updated the encoder logic to wait for rendering updates when live HTML hosts are present, enhancing the rendering accuracy and performance. This refactor improves the overall clarity and functionality of the encoding process.
Refactored JSX elements from lowercase to PascalCase, including `<scene>` to `<Scene>`, `<text>` to `<Text>`, and others, to improve consistency and clarity in the codebase. Updated related documentation to reflect these changes, ensuring that the usage of JSX elements aligns with the new naming conventions. This update enhances the overall readability and usability of the JSX API.
Updated the `dapi mount` command to ensure the reactive graph remains live after execution, enhancing the persistence and re-execution of modules across contexts. Simplified the `dapi node insert` command to accept only inline JSX tags, removing the `export default` requirement and clarifying its non-persistent nature. Adjusted related documentation to reflect these changes, ensuring consistency and clarity in usage. This refactor improves the overall usability and understanding of the mounting and insertion processes in the application.
Added support for new paint types, including HTML and Surface, in the SubItemLayer component. Updated the FillItem component to display corresponding icons and labels for these new paint types. This enhancement improves the rendering capabilities and user interface consistency for various paint types in the application.
Replaced all instances of `<canvas>` and `<canvasPaint>` with `<surface>` and `<surfacePaint>` across the codebase. Updated related documentation to reflect this change, ensuring consistency in naming and usage. Adjusted rendering logic and component imports to support the new surface functionality, enhancing the drawing capabilities for various context types (2D, WebGL, WebGPU). This refactor improves the overall clarity and usability of the rendering system.
Introduced the `useFile` hook, which resolves a source (path, asset id, URL, or `generate.*` ref) to its `File`, allowing for reading raw bytes within effects. This hook returns Solid's `createResource` tuple, enabling async resolution and providing loading and error states. Updated documentation to include usage examples for drawing images onto a `<canvas>` and parsing data files, enhancing the functionality for handling media assets in the application.
Introduced the `<canvas>` element as a shorthand for a rectangle carrying a `<canvasPaint>`, enabling users to draw custom graphics using various context types (2D, WebGL, WebGPU). Updated the rendering system to support this new element, ensuring it integrates with existing components. Enhanced documentation to clarify the usage of `<canvas>` and its properties, and added new samples demonstrating its functionality in different contexts. This update improves the flexibility and creative potential of rendered content.
Introduced the `<html>` element as a shorthand for a rectangle carrying an `<htmlPaint>`, allowing for browser-laid-out HTML/SVG children. Updated the rendering logic to support this new element, ensuring it integrates seamlessly with existing components. Enhanced documentation to clarify the usage of `<html>` and its properties, and added new samples demonstrating its functionality in various contexts. This update improves the flexibility and interactivity of rendered content.
Added a new `disposeHtmlHosts` function to manage the cleanup of HTML hosts in the engine. Updated the `observeWorld` function to call this new disposal method. Introduced `shareHtmlHosts` to facilitate sharing of HTML hosts between worlds during encoding processes. Adjusted the `HtmlHost` class to ensure proper disposal and integration with the rendering context. These changes enhance memory management and support for HTML rendering in the engine.
Bumped the Electron version in both `package-lock.json` and `package.json` to `43.1.1`. Removed the deprecated `<jstemp>` component and updated the JSX elements documentation to reflect new aliases for paint elements, including `<solid>`, `<linearGradient>`, `<radialGradient>`, and `<stop>`. Revised the `html-paint.md` and `elements.md` files to clarify the usage of the `<html>` element and its properties. Added new samples demonstrating the use of the `<html>` element in various contexts.
Introduced the `<htmlPaint>` element, allowing real HTML children to be rendered within a defined box using the html-in-canvas API. Updated the `elements.md`, `paints.md`, and `README.md` to include details about `<htmlPaint>`, its properties, and usage examples. Added a new `html-paint.md` file for comprehensive documentation on the element's functionality and limitations. Enhanced the rendering system to support HTML content, ensuring it integrates seamlessly with existing paint types.
Updated the `mount.md` and `lifecycle.md` documentation to clarify the new `--live` option, detailing its behavior and implications for the reactive graph. Introduced the `useTicker` hook in the `renderer.ts` to facilitate access to the project's timeline during live mounts. Additionally, modified the `playback.ts` and `live-mounts.ts` to support the new live functionality, ensuring that the reactive graph remains active and responsive during playback. These changes improve the overall usability and clarity of the mounting process.
Enhance the `mount` command to support a new `--live` option, allowing the reactive graph to remain active after mounting. This change includes updates to the `MountRequest` and `MountOptions` types, as well as modifications to the `handleMount` function to manage live mounts effectively. Additionally, a new utility for managing live mounts has been introduced, improving the overall handling of reactive entities in the engine.
Change the default value of the `objectFit` property in the image documentation from "contain" to "cover" to align with the updated description in the elements documentation. This ensures clarity and consistency across the documentation regarding how media pixels map into the box.
Enhance the resize and transform systems to better manage entity constraints and spatial relationships. Introduced logic to handle sequential entities more effectively, ensuring they mirror their parent's frame. Updated comments for clarity and refined the computation of group bounds. These changes improve the overall stability and accuracy of the engine's spatial management.
Updated the DashboardProjectsView to include padding, modified the DashboardSearchBar for stronger border styling, and refined the DashboardCardButton and DashboardCardPreview components for better visual consistency. Additionally, introduced a class prop to the DashboardViewSection for flexible styling. These changes contribute to a more cohesive and polished user interface across the dashboard.
Refactor various components in the dashboard and scene initialization overlay to enhance visual appeal and user interaction. Changes include updating button and card background colors, adjusting separator styles, and modifying sidebar item active states. These updates contribute to a more cohesive and polished user interface across the application.
Change the button class from "text-muted-foreground" to "text-foreground" in the Alignment component to enhance its visibility and ensure better user interaction. This update contributes to a more consistent and appealing user interface.