105 Commits

Author SHA1 Message Date
konstantin-paulus
98ea0c986b feat: update version to 0.216.0 across all modules and implement auto-update notifications 2026-10-19 00:11:57 +02:00
konstantin-paulus
a54e4152c3 feat: update package versions to 0.215.0 across all modules 2026-10-17 17:35:13 +02:00
konstantin-paulus
6a45d560d1 feat: add 'type' prop to mask for channel specification and update example usage 2026-10-16 16:38:37 +02:00
konstantin-paulus
0491460e1a Merge branch 'clip-mask-containers' into feat/alpha-mask 2026-10-16 16:16:05 +02:00
konstantin-paulus
f29396e13a feat: update package versions to 0.214.0 across all modules 2026-10-16 11:09:52 +02:00
konstantin-paulus
17e09d1cc4 feat: bump version to 0.213.1 across all packages 2026-10-14 00:23:21 +02:00
konstantin-paulus
b9dcc6193e feat: bump version to 0.213.0 across all packages 2026-10-14 00:11:25 +02:00
konstantin-paulus
be7c406fb3 feat: update package versions to 0.212.0 across all modules 2026-10-13 10:00:11 +02:00
konstantin-paulus
8a1313b777 Refactor clip path handling and enhance SVG support
- Updated the handling of clip paths in various components, replacing references to `isClipPath` with `isClipShape` for consistency.
- Enhanced the `ClipPathsSettings` component to correctly select and manage clip path shapes.
- Added support for `<mask>` and `<clipPath>` elements in the documentation, clarifying their usage and properties.
- Improved the handling of ambiguous SVG tags by including `<mask>` and `<clipPath>` in the relevant sets.
- Introduced a new `clip-path.tsx` file to manage clip path functionalities, ensuring better organization and maintainability of the codebase.
2026-10-11 11:47:17 +02:00
konstantin-paulus
d3260cb452 Update package versions to 0.211.0 across all relevant files
- Incremented version number from 0.210.0 to 0.211.0 in package.json and package-lock.json for the editor, cli, desktop, web, and jsx packages.
- Ensured consistency in versioning across the project to reflect the latest updates.
2026-10-11 00:35:54 +02:00
konstantin-paulus
d5190170d6 Add stroke dash properties and related SVG icons for enhanced stroke customization
- Introduced new SVG icons for stroke styles, including solid, dashed, and various dash configurations.
- Updated the StrokeInspector component to support line styles with dash properties (dash, dashGap, dashOffset).
- Enhanced the stroke handling in the rendering system to apply dash styles correctly.
- Updated documentation to include new stroke properties and their usage in animations and styling.
- Improved entity serialization and deserialization to handle new stroke dash attributes effectively.
2026-10-10 14:19:16 +02:00
konstantin-paulus
2c736e5f4a Add PivotRow component and integrate pivot functionality into transform settings
- Introduced a new PivotRow component to manage pivot properties (pivotX, pivotY) for entities.
- Updated TransformSettings to conditionally display PivotRow instead of AnchorRow based on the entity's pivot state.
- Enhanced the clip-path and group handling logic to utilize pivot instead of anchor for transformations.
- Updated documentation to reflect the new pivot properties and their usage in the context of groups and transformations.
2026-10-10 13:02:21 +02:00
konstantin-paulus
5552978747 Enhance path editing capabilities and introduce new SVG icons
- Updated the source file to include 'path' in the set of ambiguous SVG tags.
- Added new SVG icons for path trimming (trim-start, trim-end, trim-offset) and a small pen tool icon.
- Implemented a PathSettings component to manage path-specific properties such as fill rule and trim settings.
- Enhanced the Toolbar and ToolMenu components to include the new Pen tool for drawing and editing paths.
- Integrated path editing functionality, allowing users to edit vertices and manage path outlines directly on the canvas.
- Updated the inspector components to support path properties and interactions, improving the overall user experience for path manipulation.
- Enhanced documentation to include details about the new path features and SVG elements.
2026-10-09 23:18:37 +02:00
konstantin-paulus
eaacc15fc8 Add ellipse and polygon shapes to drawing tools
- Introduced new shape tools for Ellipse and Polygon, enhancing the drawing capabilities within the application.
- Updated the Toolbar component to include shape tools, allowing users to select and utilize these new shapes.
- Enhanced the ToolMenu to provide options for selecting Ellipse and Polygon tools.
- Implemented functionality for managing point counts in polygons and added relevant controls in the AppearanceSettings.
- Updated the rendering engine to support the new shapes, ensuring they can be drawn and manipulated effectively.
- Enhanced documentation to include details about the new shapes and their properties.
2026-10-09 13:44:11 +02:00
konstantin-paulus
bdbe912409 Enhance stroke and fill handling in inspector components
- Updated FillPicker to manage stroke paint placement and gradient handling more effectively.
- Refactored StrokeInspector to utilize the new useStrokePaint hook for improved paint management.
- Adjusted rendering logic in strokes and related components to support both solid and gradient paints.
- Enhanced documentation to clarify stroke and fill interactions, including the use of paint children in strokes.
- Improved overall user experience by ensuring consistent behavior across fill and stroke components.
2026-10-09 10:49:36 +02:00
konstantin-paulus
acb7092faa Add angular gradient support in fill-picker and related components
- Introduced AngularGradientPaint to support angular gradients in the fill-picker component.
- Updated fill-row and gradient-picker components to recognize and handle angular gradients.
- Enhanced gradient handling logic to accommodate angular gradient properties and interactions.
- Updated documentation to reflect the new angular gradient capabilities and usage examples.
- Refactored gradient tool logic to include angular gradient manipulation and rendering.
2026-10-08 23:15:53 +02:00
konstantin-paulus
4e232a3c5d Update package versions to 0.210.0 across all modules
- Bumped version numbers in package.json and package-lock.json for the editor, CLI, desktop, web, and JSX packages to 0.210.0, ensuring consistency across the project.
- This update may include new features, bug fixes, or improvements as part of the version increment.
2026-10-07 12:35:25 +02:00
konstantin-paulus
1a8968a396 Refactor generative AI components and update dependencies
- Removed unused imports and code related to generative assets in various components.
- Updated the `package-lock.json` to remove `@diffusionstudio/api-contract` and `@trpc` dependencies.
- Introduced a placeholder mechanism for generative AI features that are currently being rebuilt.
- Adjusted the CLI and documentation to reflect changes in available commands and features.
- Enhanced the handling of timeouts in the CLI client for media analysis and rendering tasks.
2026-10-04 11:12:49 +02:00
konstantin-paulus
77f7513960 Update package versions to 0.207.0 across all modules
- Incremented version numbers in `package.json` and `package-lock.json` for the main editor, CLI, desktop, web applications, and JSX package to reflect the new release.
- Ensured consistency in versioning across all related packages to maintain compatibility.
2026-09-29 00:08:50 +02:00
konstantin-paulus
4d5d9fc780 Refactor Mask Terminology and Functionality
- Updated references from "matte" to "mask" across various components and files to align with new terminology.
- Adjusted related logic in the `EffectsInspector`, `ObjectMaskInspector`, and other components to ensure consistent behavior with the updated mask handling.
- Refactored caching and serialization processes to accommodate the new mask structure, enhancing overall functionality.
- Improved documentation and type definitions to reflect the transition from mattes to masks, ensuring clarity for developers.
2026-09-28 10:14:19 +02:00
konstantin-paulus
cde1cc1b53 Refactor Mask Functionality to Clip Path
- Renamed mask-related components and functions to reflect the new terminology of "clip path" throughout the codebase.
- Introduced a new `ClipPathsSettings` component for managing clip paths in the inspector.
- Updated the `Inspector` to integrate clip path settings and adjusted related logic to accommodate the new structure.
- Enhanced the `ObjectMenu` to change "Set mask target" to "Set clip path target" for clarity.
- Refactored various utility functions and traits to replace mask references with clip path equivalents, ensuring consistent behavior across the application.
- Updated documentation and type definitions to reflect the transition from masks to clip paths, improving clarity for developers.
2026-09-28 09:56:30 +02:00
konstantin-paulus
b7866279fa Implement Object Mask Tool Enhancements and UI Integration
- Added new `ObjectMaskPanel` component to manage object masks within the effects inspector.
- Introduced functionality for adding and managing object masks, including dropdown menus for selecting masks and controls for editing.
- Enhanced the `EffectsInspector` to support object mask interactions, including displaying existing masks and allowing users to track new objects.
- Implemented brush functionality for painting masks directly onto video clips, improving user experience for object segmentation.
- Updated cursor styles for the object mask tool to provide clearer visual feedback during interactions.
- Refactored related components and utilities to support the new object mask features, ensuring seamless integration with existing functionality.
2026-09-28 09:41:49 +02:00
konstantin-paulus
e63f1c7a0f Implement Object Mask Tool and Enhance UI Components
- Added the `Object Mask` tool to the toolbar and sidebar menu, allowing users to select and utilize this new functionality.
- Introduced a new SVG icon for the `Object Mask` tool to improve visual representation in the UI.
- Updated the `Inspector` component to display the `ObjectMaskPanel` when the `Object Mask` tool is selected.
- Enhanced the `Effect` options to include `opacity`, allowing for more refined control over visual effects.
- Updated documentation to reflect the new `<mask>` element and its properties, improving clarity for developers.
- Refactored related components to ensure seamless integration of the new tool and its functionalities.
2026-09-26 20:40:12 +02:00
konstantin-paulus
53a9ecc7d9 Merge remote-tracking branch 'origin/main' into mcp-support 2026-09-14 11:40:13 +02:00
konstantin-paulus
763ce7aa5c Enhance playhead management and update scene documentation
- Added `playhead` property to the scene, allowing the editor to track the playhead's position when the project is opened, improving playback accuracy.
- Introduced `editPlayhead` function to manage playhead updates, ensuring the file reflects the playhead's position during scrubbing and timeline interactions.
- Updated documentation to clarify the role of the `playhead` property in the scene, emphasizing its importance for project state management.
2026-09-14 00:16:55 +02:00
konstantin-paulus
2874735936 Update scene and stage documentation, and adjust default camera settings
- Enhanced the `scene.md` documentation to clarify the `workarea` property and its implications for playback and export.
- Revised the `stage.md` documentation to provide clearer guidance on the `camera` property, emphasizing the importance of setting a camera for non-standard compositions.
- Updated the default camera settings in the `world.ts` and `types.ts` files to better frame typical project dimensions, ensuring a more intuitive starting point for users.
2026-09-13 21:15:22 +02:00
konstantin-paulus
c5bdfd88aa Update package versions to 0.205.0 across all modules
- Bumped version numbers in `package.json` and `package-lock.json` for the main editor and all related applications (CLI, desktop, web, and JSX) to 0.205.0, ensuring consistency across the project.
2026-09-13 12:35:37 +02:00
konstantin-paulus
1bbe992345 Refactor and enhance transform functionality in the asset management system
- Replaced the `useModifiers` hook with `useTransforms` to better reflect the new transform functionality.
- Updated components to utilize the new `useTransforms` hook, including `ActionBar` and `PromptInputActions`, improving the handling of transformations.
- Introduced new `TransformItem` component for managing transform actions in the UI.
- Refactored asset handling logic to accommodate the new transform types and ensure compatibility with existing features.
- Removed deprecated modifier-related code and documentation, streamlining the codebase and enhancing clarity.
- Updated documentation to reflect changes in transform functionality and usage examples.
2026-09-12 16:31:36 +02:00
konstantin-paulus
28ad0372db Enhance asset management and introduce partial asset handling
- Updated the `Assets` component to include support for partial assets, allowing for better management of assets that are still generating.
- Introduced a new `PartialAssetItem` component to represent partial documents in the asset panel, providing options to retry or delete failed generations.
- Modified the `AssetInfoPanel` to display information about partial assets, including their status and error messages.
- Refactored the `useAssetSelection` hook to accommodate both assets and partial assets, improving the selection logic.
- Updated the `FolderItem` component to count partial assets alongside regular assets, enhancing folder statistics.
- Removed the `sourceErrorSystem` as part of the cleanup, streamlining error handling for asset generations.
- Added documentation updates to reflect changes in asset handling and the introduction of partial assets.
2026-09-12 15:52:41 +02:00
konstantin-paulus
312ce2e1b3 Refactor CLI dependencies and update documentation
- Removed Babel-related dependencies from apps/cli/package.json and package-lock.json to streamline the build process.
- Added esbuild as a devDependency in apps/cli/package.json for improved bundling.
- Updated README.md to provide a more detailed description of the dapi CLI tool, clarifying its role as a client of the MCP server and stdio proxy.
- Deleted untyped-modules.d.ts to eliminate unnecessary type declarations for Babel presets.
- Enhanced comments in stage-cli.mjs to clarify the staging process for the dapi CLI within the Electron app.
2026-09-09 14:04:57 +02:00
konstantin-paulus
5481035f17 Implement horizontal and vertical constraints in the inspector
- Added `horizontalConstraintName` and `verticalConstraintName` functions to map constraint types to their respective names.
- Updated `ConstraintsRow` component to utilize these functions for setting `constrainX` and `constrainY` properties.
- Introduced `HORIZONTAL_CONSTRAINTS` and `VERTICAL_CONSTRAINTS` constants in the runtime to define available constraints.
- Enhanced documentation to clarify the behavior of `constrainX` and `constrainY` properties in the JSX elements reference.
2026-09-03 23:17:50 +02:00
konstantin-paulus
a168e99238 published new @diffusionstudio/jsx version 2026-09-01 15:04:23 +02:00
konstantin-paulus
c55b03d434 Enhance Redraw example with resolution handling
- Updated `11-redraw.tsx` to incorporate `useResolution`, ensuring sharp rendering at any export size by adapting the bitmap to the display's pixel ratio.
- Modified the `draw` function to accept a resolution parameter, allowing dynamic adjustments during rendering.
- Enhanced documentation in `README.md` to reflect the new resolution handling feature in the Redraw example.
2026-09-01 14:58:28 +02:00
konstantin-paulus
4c53ded4ca Enhance timeline functionality and state management
- Updated the `EXCLUDED_PROPS` in `history.ts` to include 'timeline', ensuring proper state handling.
- Introduced `reportView` function in `controller.ts` to track timeline view changes, integrating it into the timeline update process.
- Modified `timeline.ts` to call `updateTimelineTransform` every draw pass, improving responsiveness to view changes.
- Added `timeline` property to `SceneProps` in `types.ts` to store the scene's timeline viewport state.
- Updated documentation to reflect the new `timeline` property and its implications for scene state management.
2026-08-31 12:03:21 +02:00
konstantin-paulus
f2728f616b Update keyframe documentation to clarify source-local time semantics
- Revised the `KeyframeProps` type definition to specify that `time` is source-local, meaning it refers to the source's first frame rather than the clip's start.
- Enhanced the `keyframes.md` documentation to reflect this change, providing clearer guidance on how keyframes relate to trimmed clips and playback rates.
- Added an example to illustrate the impact of `sourceIn` on keyframe timing, improving understanding for developers.
2026-08-31 11:28:12 +02:00
konstantin-paulus
914c2222aa Enhance @inspect variable functionality and UI controls
- Added support for boolean and select types in the @inspect annotation, allowing for more diverse variable configurations.
- Implemented UI controls for boolean toggles and select dropdowns in the inspector, improving user interaction.
- Updated the inspect plugin to validate options for select types and ensure proper initialization.
- Enhanced documentation to reflect the new variable types and their usage in the inspector.
2026-08-29 13:25:06 +02:00
konstantin-paulus
d9cc6b0819 Add @inspect variable support in editor and inspector
- Introduced the `@inspect` annotation for top-level constants, allowing live editing through the inspector.
- Implemented the `VariablesSettings` component to manage and display `@inspect` variables in the sidebar.
- Enhanced the editor to handle variable edits, ensuring changes are reflected in the source code.
- Updated the history management to track variable changes, allowing for undo functionality.
- Added utility functions to manage `@inspect` entries within the project, ensuring consistent access across components.
2026-08-29 13:18:15 +02:00
konstantin-paulus
d0d02b3601 Update package versions to 0.200.0 across all modules
- Bumped version numbers for the editor, CLI, desktop, web applications, and JSX package to 0.200.0 in package.json and package-lock.json.
- Ensured consistency in versioning across all related packages to reflect the latest updates and improvements.
2026-08-27 13:31:48 +02:00
konstantin-paulus
5bd5076cf0 Refactor aspect ratio handling in layout and resizing logic
- Updated the `LayoutPanel` component to improve aspect ratio management by introducing a `lockedRatio` function, which determines the aspect ratio based on the current dimensions or authored values.
- Simplified the `resize` function to utilize the new `lockedRatio` for enforcing aspect ratios during resizing operations.
- Enhanced the `toggleAspectRatio` function to directly edit the `keepAspectRatio` property, streamlining the locking mechanism.
- Added documentation for the `keepAspectRatio` property in relevant types and reference materials, clarifying its purpose and usage in the editor.
2026-08-26 10:21:42 +02:00
konstantin-paulus
fb241b9851 Refactor stage and scene components to include camera and active properties
- Updated all example files and relevant documentation to incorporate the `camera` property in the `<stage>` component, ensuring proper framing for various scene dimensions.
- Marked one scene as `active` in each example to prevent projects from opening on an empty timeline, enhancing usability and clarity in project structure.
- Adjusted the `StageProps` and `SceneProps` types to reflect the new requirements for camera and active properties, improving type safety and documentation accuracy.
2026-08-25 16:43:40 +02:00
konstantin-paulus
572425a511 Enhance useTicker with hold functionality for async work
- Introduced the `hold` method in the `useTicker` hook to manage async operations, ensuring frames wait for necessary resources before sampling.
- Updated example files to utilize the `hold` method for loading models and setting up WebGPU devices, improving frame accuracy during exports and captures.
- Added documentation for the `hold` method, detailing its purpose and usage in managing async work within the rendering pipeline.
- Implemented a timeout mechanism for held promises to prevent indefinite waits during rendering.
2026-08-25 16:31:49 +02:00
konstantin-paulus
11fecc09ea Refactor example files to use <stage> and <scene> components
- Updated all example files to replace <rect> with <stage> and <scene> for improved structure and consistency.
- Enhanced the README.md to reflect the new project entry format for examples.
- Added a new dependency on "koota" in package.json for better integration.
- Improved documentation and comments throughout the examples for clarity.
2026-08-25 14:32:48 +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
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
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
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
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
konstantin-paulus
907a56ef59 Integrate transcription functionality and enhance audio processing
- Added `@diffusionstudio/encoder` dependency to support audio encoding features.
- Implemented transcription capabilities in the `EditorGenAi` class, allowing for scene audio transcription and caching.
- Enhanced asset management by introducing `TranscriptionRequest` trait for handling transcription requests in the asset system.
- Updated `assetSystem` to process transcription requests, improving audio handling within scenes.
- Refactored related components to accommodate new transcription logic, ensuring seamless integration with existing workflows.
2026-08-21 23:27:37 +02:00