20 Commits

Author SHA1 Message Date
konstantin-paulus
4acfb3e447 Add keyboard shortcuts for seeking playhead to selection and timeline edges 2026-09-12 22:12:20 +02:00
konstantin-paulus
905d649141 Refactor CLI and DAPI integration
- Removed @trpc/client and @trpc/server dependencies from package-lock.json and apps/cli/package.json.
- Updated TypeScript configuration in apps/cli/tsconfig.json to simplify compiler options.
- Refactored cli-client.ts to replace TRPC client calls with direct calls to the DAPI, enhancing modularity and performance.
- Adjusted media handling functions in index.ts to utilize the new call method for better clarity and maintainability.
- Cleaned up protocol.ts by introducing encoding and decoding functions for replies, improving data handling consistency.
2026-09-03 10:04:02 +02:00
konstantin-paulus
814caddf1d Refactor export resolution handling and update utility functions
- Modified the ExportPanel to calculate resolution based on the shorter side of the scene, improving output consistency for both landscape and portrait formats.
- Replaced the computeOutputSize function with scaleSize for better clarity in scaling logic.
- Updated the VideoConfig interface to reflect the new resolution definition, emphasizing the output's shorter side.
- Enhanced the computeOutputSize function to align with the new resolution handling, ensuring accurate output sizes for various scene dimensions.
2026-08-31 16:00:04 +02:00
konstantin-paulus
f0c847fb28 Enhance export functionality with resolution handling
- Added width and height properties to the ExportProgress component for better display of video dimensions.
- Implemented resolution options and selection logic in the ExportPanel, allowing users to choose output resolutions dynamically.
- Integrated video encoding checks in the ExportProvider to ensure compatibility with selected resolutions and codecs.
- Updated rendering logic to reflect actual output sizes based on scene dimensions and selected resolution, improving user feedback during exports.
2026-08-31 15:43:12 +02:00
konstantin-paulus
22c75e7e26 Update capture command to render scene frames and improve documentation
- Modified the `capture` command to render single frames of a scene instead of a node, ensuring the output matches the export's encoding.
- Updated command descriptions and argument details to reflect the new functionality, including changes to the time reference and scene handling.
- Enhanced documentation for the `capture` command and related references to clarify usage and expected behavior.
- Improved error messages for invalid scene captures, guiding users to capture the correct scene id.
2026-08-27 12:08:41 +02:00
konstantin-paulus
f1b86549b9 Refactor asset warmup integration in encoder
- Moved the `warmupAssets` function to be exported for broader use across modules.
- Integrated `warmupAssets` calls in both `createEncoder` and `createImageEncoder` functions to ensure assets are preloaded before processing.
- Removed redundant warmup call from the `render` function in `createEncoder` for cleaner code.
2026-08-25 16:07:41 +02:00
konstantin-paulus
63620be1f8 Remove deprecated bitecs dependency and clean up engine components
- Removed the `bitecs` package from `package-lock.json` and `package.json` as it is no longer needed.
- Deleted unused engine components and API files, including `constants.ts`, `index.ts`, `selection.ts`, `thumbnail.ts`, `assets.ts`, `base.ts`, `clipboard.ts`, `components.ts`, `engine.ts`, `entities.ts`, `events.ts`, `folders.ts`, and `frame.ts`, to streamline the codebase.
- Updated the `Canvas` component to remove references to the deprecated `bitecs` canvas.
- Refactored import paths in `projects-view.tsx` to align with the new structure.
2026-08-24 09:04:13 +02:00
konstantin-paulus
312f6c5859 Refactor export functionality and enhance scene handling
- Updated the export system to utilize the new `createCapture` function, allowing for more efficient scene rendering in a dedicated capture world.
- Refactored the `exportScene` method to accept an `Entity` instead of a scene ID, improving type safety and clarity.
- Enhanced the `FileExportMenu` and `FileExportSpecificSceneMenu` components to leverage the updated export logic, ensuring proper scene selection and export configuration.
- Improved error handling and user feedback during the export process, including checks for active scenes and clearer toast notifications.
- Streamlined the integration of the encoder and capture systems, ensuring consistent behavior across different export scenarios.
2026-08-23 22:36:08 +02:00
konstantin-paulus
2272d029ae Enhance JSX composition handling and improve DOM integration
- Introduced `canonicalizeTagsPlugin` to rewrite composition tags to PascalCase, preventing naming collisions with native DOM elements.
- Updated `sourcePlugin` to integrate SVG collision detection and ensure proper handling of composition tags within SVG contexts.
- Refactored `DocumentEditor` to improve scene node management and ensure correct DOM node handling during element creation.
- Removed deprecated `SurfaceHost` and `HtmlHost` implementations, streamlining media handling and improving performance.
- Enhanced type definitions and documentation for better clarity on scene node properties and DOM interactions.
2026-08-23 16:22:17 +02:00
konstantin-paulus
2fafd8668c Enhance asset management and integration with AI generation
- Added `@diffusionstudio/jsx` dependency to support JSX generation features.
- Integrated `assetSystem` into various components to streamline asset handling.
- Refactored `create-engine.ts`, `image-encoder.ts`, and `encoder.ts` to utilize the new asset management structure.
- Removed the obsolete `jsx-generation.ts` file, consolidating asset generation logic.
- Updated `library.ts` to improve asset resolution and management processes.
- Enhanced the `EditorPage` to incorporate AI generation capabilities, improving project workflows.
2026-08-21 23:05:45 +02:00
konstantin-paulus
97b829edcb Add project config read/write channels and implement config handling
- Introduced new channels for reading and writing project configuration from the `diffusion` field in `package.json`, enhancing project management capabilities.
- Implemented `readConfig` and `writeConfig` functions to handle project configuration, allowing for dynamic updates and retrieval of project settings.
- Updated `main-channels.ts` to include new channel definitions for project config operations, ensuring proper integration with the main bridge.
- Refactored related components to utilize the new project config functionality, improving overall state management and user experience in the application.
- Added necessary types and utility functions to support the new project configuration structure, ensuring type safety and maintainability.
2026-08-19 17:50:05 +02:00
konstantin-paulus
47e364d3d0 Enhance entity management and rendering capabilities in the runtime
- Updated the encoder to exclude geometries from scene fills, ensuring accurate rendering of paint entities.
- Introduced intrinsic paint handling for geometries, allowing them to manage their own paint traits.
- Enhanced the rendering system to support intrinsic media, improving the visual output of image, video, and sequence paints.
- Refactored time management functions to account for asset changes and intrinsic properties, ensuring accurate duration calculations.
- Improved observer functionality to react to asset removals, maintaining consistency in entity state management.
2026-08-18 16:09:54 +02:00
konstantin-paulus
8e4138a31d Refactor scene activation management in the editor
- Replaced `switchActiveScene` with a new `activate` method in `DocumentEditor` to manage the active entity more effectively.
- Updated `DrawOverlay` and `SceneInitOverlay` components to utilize the new `activate` method, streamlining scene selection.
- Introduced `Active` trait to represent the active entity directly, enhancing clarity in entity management.
- Refactored related hooks and actions to align with the new active entity handling, improving overall code consistency and maintainability.
2026-08-17 15:48:08 +02:00
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
4e15ad775c Refactor timing traits and entity management in Runtime
- Replaced the `Delay` and `Trim` traits with four distinct traits: `Start`, `End`, `SourceIn`, and `SourceOut`, to better represent authored time values.
- Updated entity creation and serialization processes to accommodate the new timing traits, ensuring accurate handling of time-related properties.
- Refactored time range computation logic to utilize the new traits, enhancing clarity and consistency in how entities are managed within the timeline.
- Streamlined the propagation of time changes across entities, improving responsiveness to edits in authored time values.
2026-08-17 09:36:07 +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
0aa7bf67eb Refactor entity queries to remove Deleted trait checks
- Updated various systems and actions to eliminate checks for the Deleted trait in entity queries, simplifying the logic and improving performance.
- Adjusted the handling of entity collections to ensure proper management of active entities without relying on soft deletion.
- Enhanced documentation to clarify the changes in entity lifecycle management and the implications for system behavior.
2026-08-16 11:15:03 +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
b1b2854bd9 Update encoder and runtime packages to include new contact sheet and audio sync features
Added exports for the new `contact-sheet` module in the encoder package and included `audio-sync` in the runtime media index. Updated migration documentation to reflect these changes, ensuring better organization and functionality for media handling within the application.
2026-08-12 16:02:10 +02:00
konstantin-paulus
664eb897c8 Update runtime package to include encoder system and enhance rendering capabilities
Added a new encoder package (`@diffusionstudio/encoder`) for handling media encoding, separating it from the main runtime. Updated the migration documentation to reflect the new encoder structure and its integration with the runtime. Enhanced the render system to support hit regions and callback-less interactions, improving the rendering process. Updated various system modules to ensure proper integration and functionality within the runtime package.
2026-08-12 13:36:54 +02:00