338 Commits

Author SHA1 Message Date
konstantin-paulus
61e1e9a0d2 Refactor camera handling and integrate document reporting
- Updated camera control functions to utilize the new useDocument hook for reporting camera edits.
- Enhanced CameraController to report camera matrix changes directly to the document, ensuring real-time updates.
- Refactored InspectorHeader and BackgroundSettings to improve clarity and consistency in camera and background management.
- Introduced CameraMatrix type for better type handling in camera-related operations, enhancing overall code quality.
2026-08-16 17:52:06 +02:00
konstantin-paulus
b2fc9a9619 Enhance project editing capabilities and integrate new JSX features
- Added support for writing project edits back to JSX, allowing real-time updates from the editor to the source files.
- Introduced new `writeProject` function to handle edits, ensuring changes are reflected in the project's JSX without triggering a full compile.
- Updated `main-channels` to include a new `PROJECTS_WRITE` channel for handling write requests.
- Enhanced `RuntimeDocument` to manage edits and maintain a connection between the editor and the JSX source.
- Improved type definitions in the JSX package to support new source properties, ensuring better integration with the editing workflow.
2026-08-16 17:13:33 +02:00
konstantin-paulus
e21b7bbffd Refactor background handling and document interactions
- Updated BackgroundSettings to utilize the new useDocument hook for managing background properties.
- Enhanced RuntimeDocument to streamline background color parsing and setting, ensuring consistent handling of background traits.
- Refactored mount function to create RuntimeDocument instances through a dedicated factory method, improving clarity and encapsulation.
- Adjusted color parsing logic to handle both string and number inputs, enhancing flexibility in background color management.
2026-08-16 15:59:31 +02:00
konstantin-paulus
d08c07f2a1 Implement camera controls and refactor related components
- Introduced CameraController to manage camera input and gestures, enhancing user interaction with the canvas.
- Updated Canvas component to include CameraController alongside EngineCanvas for improved functionality.
- Refactored InspectorHeader to utilize new camera scaling and zooming methods, streamlining the zoom management process.
- Enhanced camera-related hooks and actions for better integration with the new camera system.
- Updated documentation and comments to clarify the new camera management approach and its implications for component interactions.
2026-08-16 14:16:00 +02:00
konstantin-paulus
35b9185c65 Refactor world trait access to utilize Root entity
- Updated various components and systems to replace direct world access with the Root entity for managing traits like Camera and Background.
- Enhanced BackgroundSettings and useCamera hooks to reflect the new approach in trait retrieval.
- Simplified entity management in the RuntimeDocument and other systems by ensuring consistent access to the Root entity.
- Removed deprecated getDocument function and adjusted related logic for improved clarity and performance.
2026-08-16 12:13:37 +02:00
konstantin-paulus
880a11214d Refactor world and document interactions to utilize getDocument for trait management
- Updated various components to replace direct world access with getDocument for managing Camera and Background traits.
- Enhanced BackgroundSettings and useCamera hooks to reflect changes in trait retrieval.
- Adjusted encoder and rendering systems to ensure consistent access to document-level state.
- Improved documentation comments to clarify the new approach to managing document traits.
2026-08-16 11:00:57 +02:00
konstantin-paulus
585c2aa4ca Update project dependencies and enhance JSX support
- Introduced new JSX_VERSION and SOLID_VERSION constants for better version management in package.json.
- Updated package.json to use @diffusionstudio/jsx for JSX support, ensuring compatibility with the latest features.
- Added jsxImportSource to tsconfig for improved JSX handling.
- Removed outdated TYPES definition and integrated StageProps into the JSX namespace for better type management.
2026-08-15 23:20:19 +02:00
konstantin-paulus
c419c4bc3b Refactor project structure and remove deprecated components
- Commented out the SceneInitOverlay in Canvas component to streamline rendering.
- Integrated useProject hook in EditorPage for improved project context handling.
- Removed ProjectLoader from ProjectPage to simplify project management.
- Updated project exports to include use-project instead of loader.
- Deleted the unused ProjectLoader component to clean up the codebase.
2026-08-15 22:48:36 +02:00
konstantin-paulus
2f5cc9d945 Refactor project components and improve rendering logic
- Renamed the default export function in the starter template from Scene to Project for clarity.
- Updated StageProps interface to include a background property for customizable canvas color.
- Removed redundant project-related UI elements from the dashboard view to streamline the user experience.
- Simplified the ProjectLoader component by eliminating unused camera fitting logic and related comments.
- Enhanced the RuntimeDocument class to better manage the stage and rect entities, including background handling.
2026-08-15 22:41:44 +02:00
konstantin-paulus
7273ed2141 Enhance project management features and improve project handling
- Added new project channels in main-channels.ts for retrieving, renaming, duplicating, and deleting projects.
- Updated main.ts to handle new project-related requests, enhancing the project lifecycle management.
- Improved ProjectInfo type to include displayName and updated related functions for better project metadata handling.
- Enhanced dashboard and file menu components to support new project operations with improved UI interactions.
- Refactored project management logic in projects.ts to streamline package.json handling and ensure consistency across project operations.
2026-08-15 22:17:17 +02:00
konstantin-paulus
ba1dd1b8cd Refactor dashboard and project routing for improved navigation
- Replaced HomePage with DashboardPage as the main entry point in app.tsx.
- Introduced ProjectPage for project-specific routes.
- Updated routing logic to utilize useParams for project identification.
- Removed deprecated dashboard component files and adjusted related imports.
- Enhanced project management features in the dashboard, including navigation and project handling.
- Updated context imports to use dapi instead of editor-api for consistency.
2026-08-15 22:03:07 +02:00
konstantin-paulus
434b994881 Update project management features and dependencies
- Bumped version numbers for all packages to 0.132.1 in package-lock.json.
- Introduced new project management channels in main-channels.ts for creating, listing, and compiling projects.
- Enhanced main.ts to handle new project-related requests.
- Updated dashboard projects view to support project creation, deletion, and duplication with improved UI interactions.
- Integrated project management functionality into the file menu for easier access.
- Added a new reconciler package to manage project content on disk.
- Improved project ID handling in use-project-id.ts to ensure valid folder names.
2026-08-15 20:03:45 +02:00
konstantin-paulus
641b6abde9 Refactor asset and folder management to remove IndexedDB dependencies
- Eliminated references to IndexedDB in asset and folder management, including removal of database-related code in `assets.ts` and `folders.ts`.
- Updated `restoreAssets` and `restoreFolders` functions to use in-memory placeholders instead of database retrieval.
- Adjusted `initAssets` and `initFolders` to remove database initialization, reflecting a shift towards in-memory project handling.
- Removed unused migration and project database files to streamline the codebase.
2026-08-15 17:24:13 +02:00
konstantin-paulus
5b8e5e7f66 Merge branch 'main' into koota-migration 2026-08-15 16:54:10 +02:00
konstantin-paulus
24ed4435e0 Refactor soundboard layout and styling for improved responsiveness
- Added CSS rules to adjust the soundboard's height and scale based on the container size.
- Updated the Soundboard component to apply the new soundboard class for consistent styling.
- Modified VolumeControl and MeterScale components to utilize new soundboard-related classes for better layout management.
2026-08-15 11:31:02 +02:00
konstantin-paulus
9dbc4096b3 Add desktop app promotion components and download functionality
- Introduced `DashboardGetDesktopApp` and updated `DesktopAppBanner` to promote the desktop app.
- Implemented `downloadDesktopApp` function to handle downloads for macOS users.
- Added download option in the project menu for better accessibility.
- Included a new SVG icon for download representation.
2026-08-15 11:09:20 +02:00
konstantin-paulus
fc08cb5134 Add DesktopAppBanner component to Canvas for enhanced user engagement 2026-08-15 10:21:43 +02:00
konstantin-paulus
e62a71b133 Refactor BackgroundSettings component to utilize new trait system and improve background color management
Updated the BackgroundSettings component to replace the deprecated engine context with the new Koota trait system for background management. Adjusted color assignment logic to use the new trait API, enhancing maintainability and performance. Additionally, modified the use-trait and use-trait-effect hooks to improve type inference and support for relation pairs, ensuring better integration with the entity and world systems.
2026-08-14 15:31:20 +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
66a2ef085a Refactor editor API to use new DAPI context
Updated imports in cli-client and sidebar-left components to reference the new DAPI context instead of the deprecated editor-api. Removed the editor-api module and its associated files, streamlining the codebase and improving maintainability. This change enhances the overall architecture by consolidating API interactions under the new DAPI structure.
2026-08-14 13:40:44 +02:00
konstantin-paulus
577c50253f Refactor Canvas component to integrate EngineCanvas and update drag-and-drop event handling; enhance HomePage with KootaEngineProvider for improved project management. 2026-08-14 12:51:17 +02:00
konstantin-paulus
b750ee964d Add @diffusionstudio/koota-solid and koota dependencies; refactor Engine class to manage running state with listeners 2026-08-14 10:31:09 +02:00
konstantin-paulus
8434fcd755 Add @diffusionstudio/runtime dependency to package.json and package-lock.json 2026-08-14 10:15:33 +02:00
konstantin-paulus
e7194d68cb Update package versions to 0.132.1 for all applications 2026-08-13 10:38:24 +02:00
konstantin-paulus
528c224f5b Update aspect ratio accessor to prioritize image configuration over video configuration 2026-08-13 10:37:14 +02:00
konstantin-paulus
77050e9bb0 Update package versions to 0.132.0 and enhance CLI environment handling
Bumped version for all applications to 0.132.0. Updated the CLI to properly handle environment variables when spawning processes, ensuring compatibility with Electron and improving overall functionality.
2026-08-11 11:29:17 +02:00
konstantin-paulus
fc88526a72 Update package versions to 0.131.0 and enhance web build process
Bumped version for all applications to 0.131.0. Added a step in the release workflow to copy the environment variables for the web build, ensuring necessary configurations are set for the desktop app build process. Updated the Vite configuration to enforce environment variable checks for the desktop mode.
2026-08-10 17:31:00 +02:00
konstantin-paulus
613508124c Update package versions to 0.130.0 for all applications 2026-08-10 16:39:48 +02:00
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