160 Commits

Author SHA1 Message Date
konstantin-paulus
c78f5ac33a Add EnvironmentOverlays component to manage screen display based on checkout page
Introduced the EnvironmentOverlays function to conditionally render ScreenTooSmall and UnsupportedBrowser components based on the current location. This enhances the user experience by ensuring appropriate overlays are displayed when not on the checkout page.
2026-08-10 14:24:13 +02:00
konstantin-paulus
43792d154a Enhance thumbnail capture functionality with aspect ratio handling
Updated the `captureCanvasThumbnail` function to maintain the correct aspect ratio when drawing the canvas image. The implementation adjusts the source dimensions and offsets based on the target thumbnail aspect ratio, ensuring that thumbnails are generated without distortion.
2026-08-10 11:59:06 +02:00
konstantin-paulus
96638601fa Add analytics tracking for application installation
Introduced a new `analytics.ts` file to implement installation tracking via Umami. The `trackInstall` function sends a tracking event on the first launch of a packaged build and creates a marker file to prevent duplicate tracking. Integrated this functionality into the main application flow by calling `trackInstall` during the app's startup process.
2026-08-10 10:16:58 +02:00
konstantin-paulus
192bc96d70 Update DMG background assets and adjust file positions in configuration
Modified the `dmg-background.svg` file to enhance the visual design and updated the associated PNG files for consistency. Adjusted the file positions in the `forge.config.ts` to improve layout within the application window. These changes aim to enhance the user experience during application installation.
2026-08-09 23:17:11 +02:00
konstantin-paulus
bcc66680fa Check for desktop environment in fullscreen state retrieval
Added a condition in the `handleGetFullscreenState` function to return a resolved promise with `false` if the `window.desktop` object is not present. This change ensures that the function behaves correctly in non-desktop environments, preventing potential errors when checking fullscreen state.
2026-08-09 12:08:18 +02:00
konstantin-paulus
0d04ed9397 Update package dependencies and adjust dev flags in package-lock.json and package.json
Restored the `@tailwindcss/vite`, `tailwindcss`, and `tw-animate-css` packages in both `package-lock.json` and `package.json`. Updated several entries to set the `dev` flag to true for various dependencies, ensuring proper configuration for development environments.
2026-08-09 10:42:44 +02:00
konstantin-paulus
59dc6c01f7 Refactor HtmlHost and rendering update mechanisms for improved performance
Updated the `whenReady` method in the HtmlHost class to accept a time parameter for synchronizing animations and ensuring all images are ready before rendering. Simplified the `nextRenderingUpdate` function to enhance promise management during rendering updates, improving overall efficiency and responsiveness in the rendering pipeline.
2026-08-07 09:02:41 +02:00
konstantin-paulus
b5b8f1cbb2 Add position keyframe check in interaction handling
Introduced a new function to check for position keyframes in the interaction handling logic. Updated the condition for reparenting entities to ensure that entities without position keyframes are handled appropriately. This change enhances the interaction system's robustness by preventing unintended reparenting of entities with active keyframes.
2026-08-06 20:04:18 +02:00
konstantin-paulus
bf54ffdfc6 Update timeline configuration and scrolling behavior
Modified timeline configuration constants to enhance user experience. Increased the maximum timeline resolution range and adjusted the default clip height. Introduced new constants for wheel scrolling sensitivity and clamping, improving the responsiveness of zoom and scroll actions. Updated the timeline rendering logic to utilize these new constants, ensuring smoother interactions during timeline navigation.
2026-08-04 09:23:54 +02:00
konstantin-paulus
3e3a4bdd63 Enhance VideoBuffer scrubbing and seeking functionality
Added new constants for scrub event handling and implemented logic to manage continuous scrubbing and frame display during seeks. Introduced a settle mechanism to refine frame resolution after scrubbing, improving user experience during video playback. Updated methods to utilize keyframes more effectively, ensuring smoother transitions and reducing visual artifacts during rapid seeks.
2026-08-03 13:09:13 +02:00
konstantin-paulus
77a463c31e Refactor VideoBuffer and VideoDecoderQueue for improved frame handling
Removed the `iteratorStart` property from the `VideoBuffer` class and updated the `isBlockedFrame` method to enhance frame management. Introduced an `inFlight` set in the `VideoDecoderQueue` class to track frames currently being processed, ensuring better synchronization and resource management. Adjusted related methods to clear and manage the `inFlight` set effectively, improving overall performance and reliability of video decoding.
2026-08-03 11:29:31 +02:00
konstantin-paulus
0926254346 Add keyframe index management and enhance video buffer handling
Introduced a new `keyframe-index.ts` module to manage keyframe indexing for video assets, improving seek performance and rendering reliability. Updated the `VideoBuffer` class to utilize the keyframe index for efficient frame retrieval and added a method to clear the keyframe index cache. Enhanced the `FrameCache` class with a new `findNearest` method to optimize frame selection based on proximity. Updated related imports and documentation to reflect these changes.
2026-08-03 10:05:28 +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
2da322775c Add project readiness handling to engine context
Implemented a readiness barrier for projects in the engine context, allowing components to wait for a project to be fully initialized before proceeding. Introduced `whenProjectReady` and `markProjectReady` functions to manage project readiness state. Updated the `EngineProvider` and project handling functions to utilize this new mechanism, ensuring smoother project transitions and preventing race conditions during project initialization.
2026-07-29 15:35:25 +02:00
konstantin-paulus
223e07a777 Update background class in PurchaseSuccess component for improved styling 2026-07-29 14:44:05 +02:00
konstantin-paulus
08d10b927c Add deep link support for checkout and auth in desktop app
Enhanced the desktop application to handle deep links for checkout and authentication. Introduced new channels for managing pending callbacks and updated the main process to deliver deep links appropriately. Modified the purchase success component to respond to deep link events, ensuring a seamless user experience. Additionally, updated the checkout functions to utilize deep links for success and cancel URLs.
2026-07-29 14:37:40 +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
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
05f2245e24 Enhance main window management and improve scene initialization logic
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.
2026-07-25 16:17:24 +02:00
konstantin-paulus
7743b32645 Refactor Trim component to Workarea for improved clarity and functionality
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.
2026-07-24 17:35:07 +02:00
konstantin-paulus
ffc3e9ca09 Add command line switches to enhance performance and rendering behavior
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.
2026-07-24 14:36:35 +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
11d232e642 Update image encoder to improve timestamp labeling for captured frames
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.
2026-07-24 08:40:47 +02:00
konstantin-paulus
bf0ef25506 Update context command to include workarea trim information in project overview
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.
2026-07-24 08:05:59 +02:00
konstantin-paulus
aa0162b1f1 Enhance node capture logic to validate timeline clocks and improve error handling
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.
2026-07-23 23:58:19 +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
c1a28375b1 Refactor timeline component to improve scroll handling and update element references
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.
2026-07-23 15:35:41 +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
0d20ff6b58 Refactor HTML rendering logic and remove unused functions
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.
2026-07-22 20:30:53 +02:00
konstantin-paulus
f0b650d1bd Refactor export logic to utilize unified rendering approach and improve state management
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.
2026-07-22 20:18:15 +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
19696e8af9 Refactor timing logic in describeEntity function to improve clarity and functionality
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.
2026-07-22 08:54:03 +02:00
konstantin-paulus
fba355e052 Update README for clarity and enhance WorldDocument component with timing properties
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.
2026-07-21 14:37:45 +02:00
konstantin-paulus
dd5108a15e Enhance CSS variables for overlay effects and update component styling
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.
2026-07-21 10:13:14 +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
e0e464dd0f Refactor timeline management in layout context and update related components
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.
2026-07-20 17:31:34 +02:00
konstantin-paulus
9fc15a3297 Implement timeline minimization feature and enhance rendering logic
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.
2026-07-20 16:59:48 +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
konstantin-paulus
5e42ec2084 Refactor JSX elements to use lowercase tags for consistency
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.
2026-07-20 14:15:45 +02:00
konstantin-paulus
7180de47ae Enhance <Captions /> component with verticalAlign property and update related functionality
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.
2026-07-20 11:17:00 +02:00
konstantin-paulus
5ab9652d06 Add offsetX and offsetY properties to JSX elements and update related documentation
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.
2026-07-20 10:57:29 +02:00