450 Commits

Author SHA1 Message Date
konstantin-paulus
7e1f3599a6 Enhance cache eviction logic for animated values
- Added logic to reset animated values in the cache when evicting from 'animations' or 'keyframeTracks' lists, ensuring proper state management during animation transitions.
- Improved the handling of cache members to maintain integrity when entities are removed.
2026-08-24 17:08:50 +02:00
konstantin-paulus
a83f4d5ade Enhance object menu with grouping and scene wrapping functionality
- Added new options for grouping and ungrouping selections in the Object Menu, improving user interaction with selected elements.
- Introduced `wrapSelectionInScene` function to allow users to encapsulate selected elements within a scene, maintaining their positions.
- Updated keyboard shortcuts for grouping, ungrouping, and wrapping selections, streamlining workflow efficiency.
- Refactored related functions in the engine to support the new scene wrapping feature, ensuring consistent behavior across the editor.
2026-08-24 16:56:29 +02:00
konstantin-paulus
589be2161d Refactor timing traits to introduce Delay and Trim
- Replaced Start and End traits with Delay and Trim to better represent the node's timing on the timeline.
- Updated related functions and components to utilize the new timing structure, ensuring accurate handling of authored time.
- Enhanced the timing logic to reconcile authored time properties into the runtime's vocabulary, improving consistency across the editor and runtime.
- Refactored serialization and deserialization processes to accommodate the new timing traits, ensuring proper data handling during entity state changes.
2026-08-24 16:32:06 +02:00
Konstantin Paulus
872f363f59
Merge pull request #29 from diffusionstudio/prod
Merge pull request #28 from diffusionstudio/main
2026-08-24 16:23:54 +02:00
Konstantin Paulus
84d6be402f
Merge pull request #28 from diffusionstudio/main
Updated pricing cards
2026-08-24 16:23:26 +02:00
konstantin-paulus
f5c0e149d2 v0.132.2 v0.132.2 2026-08-24 16:15:04 +02:00
konstantin-paulus
95bb150d4c Sync dashboard pricing cards with website pricing page
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-24 16:14:59 +02:00
konstantin-paulus
ad53498b23 Add sequence wrapping and unwrapping functionality in the editor
- Introduced `wrapSelectionInSequence` and `unwrapSequenceSelection` functions to allow users to group selected elements into sequences, maintaining their positions and start times.
- Updated the `ungroupSelection` function to handle both groups and sequences, ensuring consistent behavior when dissolving selections.
- Enhanced keyboard shortcuts to trigger sequence wrapping and unwrapping, improving user interaction and workflow efficiency.
2026-08-24 16:05:58 +02:00
konstantin-paulus
329938d957 Implement drag-and-drop functionality for timeline layers
- Introduced a new `LayerContext` to manage drag-and-drop interactions for timeline layers, allowing users to reorder and reparent layers visually.
- Added `DropIndicator` component to provide visual feedback on potential drop targets during dragging.
- Enhanced `NodeLayer` to initiate dragging on pointer down events, integrating drag state management.
- Created utility functions in `drag.ts` for handling drop targets and layer positioning, improving the overall user experience in the timeline.
- Updated the timeline controller to support programmatic scrolling during drag operations, enhancing usability when dragging layers near the viewport edges.
2026-08-24 15:55:46 +02:00
konstantin-paulus
374adf88ce Add grouping and ungrouping functionality to selection in the editor
- Introduced `groupSelection` and `ungroupSelection` functions to allow users to group and ungroup selected elements without altering their positions on the canvas.
- Updated keyboard shortcuts to trigger grouping with 'G' and ungrouping with 'G + Shift', enhancing user interaction.
- Refactored the `SceneTemplatePanel` to integrate `SolidPaint` for fill colors, improving rendering consistency.
2026-08-24 15:51:55 +02:00
konstantin-paulus
d09cc52fa3 Refactor scene rendering to utilize SolidPaint for fill colors
- Updated the DrawOverlay and createScene functions to replace direct fill color attributes with SolidPaint components, enhancing rendering flexibility.
- Improved the structure of Scene and Rect elements to support the new SolidPaint integration, ensuring consistent fill handling across components.
2026-08-24 15:48:38 +02:00
konstantin-paulus
dc81b93e66 Refactor store function in world module for improved trait handling
- Removed the WeakMap for registered traits, simplifying the trait registration process.
- Enhanced error handling in the store function to ensure traits are queried correctly, improving reliability in accessing the store.
- Streamlined the logic for retrieving the store, reducing unnecessary checks and improving performance.
2026-08-24 15:42:03 +02:00
konstantin-paulus
918740ed8a Enhance edit history functionality and input handling
- Integrated `getEditHistory` into the `EditMenu` component, enabling undo and redo actions based on edit history state.
- Updated the `Engine` class to improve modifier key handling, ensuring accurate key state management during input events.
- Refactored the `DocumentEditor` to support capturing previous values during edits, enhancing the undo/redo capabilities.
- Added new methods for undo and redo actions in the shortcuts system, streamlining keyboard shortcut functionality.
- Improved documentation and type definitions related to edit history and input handling for better clarity and maintainability.
2026-08-24 15:00:23 +02:00
konstantin-paulus
2d27b6deb9 Refactor image and video generation components to use new rendering structure
- Updated `useGenerateImage` and `useGenerateVideo` to replace direct `<Image>` and `<Video>` elements with `<ImagePaint>` and `<VideoPaint>` wrapped in `<Rect>`, enhancing the rendering process.
- Modified `insertAsset` function to accommodate the new structure for inserting images and videos, ensuring consistency across asset types.
- Improved error handling in the timeline rendering by refining how generating and error states are determined, leading to better visual feedback during asset generation.
2026-08-24 12:43:56 +02:00
konstantin-paulus
6d67890282 Update type definitions in editor for scene node compatibility
- Changed the import type from `HostNode` to `SceneNode` in `editor.ts` to align with the updated project structure.
- Modified the `recording` method's return type to `ProjectDocument<SceneNode>`, ensuring consistency in type usage across the document editor.
2026-08-24 12:06:28 +02:00
konstantin-paulus
2725d5a87f Add source settings component to inspector and refactor fill-picker
- Introduced a new `SourceSettings` component to manage media source properties in the inspector, enhancing the user interface for asset management.
- Updated the `Inspector` component to include the `SourceSettings` when the target is a shape, improving the overall functionality.
- Refactored `fill-picker` to export `FIT_OPTIONS` and `FIT_NAMES`, making them accessible for use in other components.
- Enhanced documentation within the `FitMenu` function to clarify its purpose and usage.
2026-08-24 12:04:55 +02:00
konstantin-paulus
8eafe46f16 Update capture functionality and documentation for node IDs
- Changed the `id` type in `CaptureRequest` from number to string to accommodate JSX element IDs.
- Refactored the `resolveNode` function to handle string IDs, improving error handling for ambiguous and non-existent nodes.
- Updated the `README.md` and `capture.md` to clarify the expected format for node IDs, including the use of `file:id` for disambiguation.
- Enhanced the `dapi capture` command documentation to reflect changes in ID handling and provide clearer usage instructions.
2026-08-24 10:58:54 +02:00
konstantin-paulus
d720a8fa00 Add timeline system integration in resize handler
- Integrated the `timelineSystem` function into the resize handler of the timeline controller, ensuring that timeline updates are processed during window resizing events.
- This enhancement improves the responsiveness of the timeline component, maintaining accurate visual representation as the viewport changes.
2026-08-24 10:57:37 +02:00
konstantin-paulus
6e51eb878e Enhance rendering and capture functionality with project directory support
- Updated the `renderScene` function to accept a `dir` parameter, allowing for project-specific directory handling during scene rendering.
- Modified the `handleCapture` function to utilize the project context, ensuring captures are created with the correct project directory.
- Refactored the `createCapture` function to compile project bundles based on the provided directory, improving rendering accuracy and efficiency.
- Enhanced type definitions in `RenderSceneOptions` and `CaptureOptions` to include the new `dir` parameter, ensuring clarity in function signatures.
2026-08-24 10:51:59 +02:00
konstantin-paulus
77190f478e Add layer functionality to timeline component
- Implemented the `addLayer` function to allow users to add a new layer to the timeline, ensuring it is linked to an existing scene.
- Integrated a toast notification to inform users when attempting to add a layer without an open scene.
- Updated the dropdown menu to include an option for adding layers, enhancing the user interface for timeline management.
2026-08-24 10:39:45 +02:00
konstantin-paulus
963f3c1f6f Enhance project management commands and documentation
- Added the `dapi open` command to launch the app and open or create a project folder, with updates to the `README.md` and `projects.ts` for clarity.
- Implemented `initProject` function to initialize project folders, ensuring they can be opened from any location on disk.
- Updated the `main-channels.ts` and `main.ts` to handle new project initialization requests.
- Enhanced the database schema to support project root types, allowing for better project organization and retrieval.
- Improved the IPC layer to manage multiple routers for different command contexts, ensuring efficient command handling.
2026-08-24 10:26:09 +02:00
konstantin-paulus
b9f3aafd96 Update dapi context command documentation and implementation
- Revised the `dapi context` command description in `README.md`, `index.ts`, and `projects.ts` to clarify its purpose in reporting the current project and playhead position.
- Enhanced the `handleContextGet` function to return detailed project information, including project ID, name, directory, and frame rate.
- Updated the API response structure in `context.ts` to reflect the new project context format, ensuring accurate data representation for users.
- Improved documentation in `context.md` and `README.md` to provide clearer guidance on the command's functionality and expected output.
2026-08-24 09:48:15 +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
05bbc303ea Update project and module documentation for npm package handling
- Revised the documentation in `projects.ts` to clarify that npm packages are treated as standard packages, allowing for direct installation and bundling from `node_modules`.
- Updated `module.md` to reflect changes in userland package resolution, emphasizing the need for browser compatibility and the removal of CDN fallback.
- Enhanced clarity on local imports and the handling of type declarations for userland packages, ensuring accurate guidance for developers.
2026-08-23 23:50:12 +02:00
konstantin-paulus
14fa73e53b Add EMPTY_MANIFEST for new project scaffolding 2026-08-23 23:08:41 +02:00
konstantin-paulus
dc614bb3b8 Implement project bundle management and enhance database schema
- Introduced `ProjectBundle` interface to manage project bundles in the database, allowing for efficient storage and retrieval of project data.
- Updated the `GlobalDBSchema` to include a new `bundles` object store, enhancing the database structure for better project management.
- Integrated `forgetProjectBundle` and `rememberProjectBundle` functions to handle project bundle lifecycle during project deletion and loading.
- Refactored the `createCapture` function to utilize the loaded project bundle, improving scene rendering efficiency.
- Enhanced the `EditorPage` to load cached project bundles, ensuring a smoother user experience during project editing.
2026-08-23 23:01:32 +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
a58d69cd31 Enhance entity disposal and error handling in RuntimeDocument
- Introduced an `attempt` function to safely execute operations and handle errors during entity disposal.
- Updated the `dispose` method to skip excluded entities and ensure proper cleanup of DOM nodes and resources.
- Improved error handling for URL revocation and entity destruction, enhancing stability during document disposal.
2026-08-23 18:18:01 +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
0f82c49175 Refactor KeyframeLayer and SubItemLayer for improved property handling and UI consistency
- Updated KeyframeLayer to utilize the new trackProperty function for better property path management, enhancing clarity in property representation.
- Refactored formatProperty function to improve naming consistency for properties displayed in the UI.
- Added a visual element in SubItemLayer for improved layout consistency.
- Enhanced type definitions for better maintainability and understanding of property paths.
2026-08-23 10:24:43 +02:00
konstantin-paulus
ff6ebac686 Remove redundant AudioBus observer from world observation logic
- Eliminated the observer for the AudioBus entity, which was responsible for rebuilding the timeline index during playback. This change simplifies the observation logic and improves performance by reducing unnecessary updates to the timeline index.
2026-08-23 10:10:20 +02:00
konstantin-paulus
4e081980c5 Refactor Soundboard component for improved audio layer management
- Updated the Soundboard component to utilize the new `@diffusionstudio/koota-solid` engine, enhancing audio layer querying and management.
- Replaced deprecated hooks with new ones for better integration with the audio system, including the use of `useWorld`, `useEditor`, and `useTimelineIndex`.
- Improved the handling of audio layers and meters, ensuring that only audio-bearing layers are metered and simplifying the selection logic for left and right meters.
- Enhanced volume control functionality by introducing a unified `editVolume` method, streamlining volume adjustments across different entities.
- Added volume property documentation to the SceneProps type for better clarity on audio mixing behavior.
2026-08-23 10:08:16 +02:00
konstantin-paulus
fcaa8b95ed Refactor peaks and waveform management in timeline
- Updated the peaks management system to streamline audio peak handling, including the removal of the `peaks-worker` and integration of waveform derivation directly in the asset cache.
- Enhanced the `derivePeaks` function to utilize the new `deriveWaveform` method, improving efficiency in generating audio peaks from media files.
- Refactored the `requestPeaks` and `getClipSamples` functions to accommodate changes in data structure, ensuring better performance and clarity in waveform rendering.
- Improved type definitions and documentation for better maintainability and understanding of the audio processing workflow.
2026-08-23 09:41:50 +02:00
konstantin-paulus
03f1078b3c Refactor timeline media and peaks management
- Updated media handling in the timeline to utilize new functions for managing asset visuals, including `forgetAssetMedia` and `forgetAssetPeaks`, improving clarity in asset state management.
- Introduced `cloneFramesForSplit` and `clonePeaksForSplit` functions to streamline the duplication of clip visuals during splits, enhancing performance and usability.
- Added new `peaks.ts` module to manage audio peaks for timeline clips, improving organization and maintainability of audio-related functionality.
- Refactored rendering functions to accommodate changes in thumbnail and waveform rendering, ensuring consistent visual representation across different asset types.
2026-08-23 00:16:33 +02:00
konstantin-paulus
0aa88ae4c7 Refactor document editing and node management in the editor
- Updated the `editProperty`, `insertNode`, and `removeNode` methods in `DocumentEditor` to utilize the new `node` method from `RuntimeDocument`, improving consistency in node handling.
- Enhanced the `SceneNode` interface in `document.ts` to include `tag`, `props`, `parent`, and `children`, streamlining the structure of document nodes.
- Refactored various functions to operate on `SceneNode` instead of `Entity`, improving clarity and maintainability in document manipulation.
2026-08-22 23:20:56 +02:00
konstantin-paulus
ae21a34b7c Enhance runtime document management and error handling
- Updated the `dispose` method in `RuntimeDocument` to ensure proper cleanup of the document registry when a document is replaced.
- Added error handling in `createRuntimeDocument` to prevent multiple mounts in the same world, ensuring that only one project can be mounted at a time.
- Improved documentation to clarify the behavior of runtime documents and the importance of disposing of previous mounts before creating new ones.
2026-08-22 20:50:18 +02:00
konstantin-paulus
e6dbd415aa Refactor media handling and remove sequence support
- Removed references to `SEQUENCE` from various components, including `fill-picker`, `fill-row`, and `sub-item`, streamlining media type management.
- Updated `PaintItemIcon` and `TimeSettings` to handle only `VIDEO` and `IMAGE` types, enhancing clarity in media selection.
- Introduced `SourceFrameRate` trait to manage frame rates for frames directories, ensuring accurate playback duration.
- Refactored asset actions and timing utilities to accommodate the removal of sequence handling, improving overall code maintainability.
2026-08-22 20:21:59 +02:00
konstantin-paulus
428217f089 Refactor project menu components to utilize new engine structure and improve functionality
- Updated EditMenu, FileMenu, ViewMenu, and InspectorHeader components to use the new `@diffusionstudio/koota-solid` engine, enhancing performance and maintainability.
- Replaced deprecated functions with new selection and zoom utilities, streamlining user interactions.
- Improved keyboard shortcuts for selection management and zooming, ensuring a more intuitive user experience.
- Enhanced the handling of disabled states for menu items based on selection availability, improving usability.
2026-08-22 17:35:03 +02:00
konstantin-paulus
137091a458 Refactor keyboard shortcuts and input handling for improved usability
- Removed deprecated keyboard shortcuts related to asset import and folder creation in the keyboard system, streamlining input handling.
- Introduced a new shortcut handling mechanism in the Assets component to manage library-specific commands, enhancing user interaction.
- Updated the ExportProvider to handle keyboard shortcuts for exporting scenes and frames, improving accessibility and consistency across components.
- Improved input target checks to prevent conflicts with active input fields, ensuring smoother user experience during keyboard interactions.
2026-08-22 17:19:12 +02:00
konstantin-paulus
fd6edd8455 Enhance zoom functionality and input shortcuts in inspector header and shortcuts.ts
- Added keyboard shortcuts for zooming in, out, and resetting zoom in the inspector header, improving user accessibility.
- Refactored the focus function to frame all content on the stage, enhancing the zoom menu's usability.
- Updated input shortcuts to reflect the new focus functionality, streamlining user interactions with the scene.
2026-08-22 17:12:26 +02:00
konstantin-paulus
301d27e807 Enhance input shortcuts and selection management in shortcuts.ts
- Refactored input handling to include new functions for managing selection visibility, focusing on active scenes, and adjusting camera zoom.
- Introduced new shortcuts for cutting selections, seeking by frames or seconds, and restacking selected entities.
- Improved selection management by adding functions to select parents and children of the current selection, enhancing user interaction with the scene.
- Updated type definitions and imports for better clarity and maintainability.
2026-08-22 17:10:54 +02:00
konstantin-paulus
71b18dbf6c Refactor camera control and cursor management for improved tool interaction
- Updated the CameraController to enhance pointer handling and tool-based cursor updates, ensuring a more intuitive user experience.
- Introduced a new cursor management system that dynamically adjusts based on the active tool, improving visual feedback during interactions.
- Refactored input handling to streamline cursor updates, reducing reliance on hardcoded cursor states and enhancing maintainability.
- Added functionality to manage tool selection and cursor states when the space key is held, allowing for smoother transitions between tools.
2026-08-22 16:38:02 +02:00
konstantin-paulus
6a3272c048 Enhance asset placement logic in Canvas component
- Updated the asset drop handling to ensure that assets are placed correctly on the canvas, even when no scene is present.
- Introduced a fallback mechanism to use the world root as the parent for dropped assets, improving usability and consistency in asset placement.
- Enhanced documentation to clarify the behavior of asset drops when no active scene is detected.
2026-08-22 15:43:20 +02:00
konstantin-paulus
bbf7d1ca06 Implement timeline clearing functionality when no scene is present
- Added `clearTimeline` function to reset the canvas and surface state when there is no active scene, preventing leftover visual artifacts.
- Updated `timelineSystem` to call `clearTimeline` if the scene is null, enhancing the user experience by ensuring a clean slate for new scenes.
- Improved type definitions by importing `TimelinePointer` and `TimelineSurfaceState` for better clarity and maintainability.
2026-08-22 15:31:48 +02:00
konstantin-paulus
ac630bcbf1 Enhance scene initialization and asset handling in SceneInitOverlay and Timeline components
- Refactored SceneInitOverlay to support scene creation from dropped assets, ensuring proper placement and camera focus.
- Introduced new functions for handling asset drops and scene initialization, improving user experience when adding assets.
- Updated Timeline component to manage asset drops more effectively, creating new scenes when necessary and providing feedback for missing scenes.
- Added new utility functions in new-scene.tsx for creating scenes and inserting assets, streamlining asset management across components.
2026-08-22 15:31:05 +02:00
konstantin-paulus
a4ab6440b0 Refactor media selection and generation handling in the ActionBar and PromptInput components
- Introduced `useMediaSelection` to streamline the management of selected image and video nodes.
- Updated `ActionBar` to utilize the new media selection logic, simplifying the determination of media types.
- Refactored `PromptInputActions` to leverage `useMediaSelection`, enhancing clarity and reducing complexity in handling selected nodes.
- Removed obsolete functions related to media type determination, improving code maintainability.
- Added new constants for voice model and aspect ratio dimensions in `config.ts`, enhancing configurability for media generation.
2026-08-22 15:20:57 +02:00
konstantin-paulus
620dd7600c Integrate source error handling and enhance UI feedback
- Added `sourceErrorSystem` to manage source error states within the engine, improving error handling during asset generation.
- Updated HUD rendering logic to display error messages for entities with source errors, enhancing user awareness of issues.
- Introduced new color constants for failed states in the timeline, providing visual differentiation for failed generations.
- Enhanced clip rendering to account for source errors, ensuring clarity in the UI when an asset fails to generate.
- Refactored `EditorGenAi` to report generation failures with descriptive messages, improving user feedback on errors.
- Updated relevant types to include error handling, ensuring consistency across the codebase for managing generation failures.
2026-08-22 12:21:16 +02:00
konstantin-paulus
fa00825223 Implement generating color functionality and enhance clip rendering
- Introduced a new utility `getGeneratingColor` to manage the color pulsing effect for entities marked as generating.
- Updated `renderClip` to conditionally render the clip background based on the generating state, improving visual feedback during generation.
- Refactored `renderGenerating` to utilize the new color utility, streamlining the rendering process for generating entities.
- Enhanced label rendering logic to account for the generating state, ensuring clarity in the UI during the generation phase.
- Added a new file `generating.ts` to encapsulate generating-related utilities, promoting better code organization.
2026-08-22 11:38:04 +02:00
konstantin-paulus
ea2830bb41 Enhance auto captions functionality in use-auto-captions.tsx
- Added new imports for `Computed`, `FrameRate`, and `framesToSeconds` to support dynamic caption timing.
- Implemented `sceneSpan` function to calculate the duration of scenes for accurate caption end timing.
- Updated the `insertFresh` function to utilize the calculated scene length when inserting captions, improving caption accuracy.
2026-08-22 11:06:54 +02:00
konstantin-paulus
71a7f30a68 Refactor and enhance JSX editing capabilities
- Introduced `SerializedAssetRef` and `EditValue` types to support new asset reference handling in JSX.
- Updated `setProp` and related functions to accommodate `SerializedAssetRef`, allowing for more complex prop values.
- Refactored `SourceSet`, `SourceInsert`, and `SourceIteration` interfaces to utilize `EditValue`, improving type safety and flexibility.
- Implemented `ensureGenerateImport` function to manage `generate` imports dynamically, enhancing code organization.
- Removed obsolete `use-auto-captions.ts` and integrated its functionality into `use-auto-captions.tsx`, streamlining the codebase.
- Added new `use-generate-image.tsx` to replace the previous image generation logic, improving asset management and integration with the editor.
- Enhanced the `PromptInput` component to support new asset handling and improve user experience in image generation workflows.
2026-08-22 10:58:03 +02:00