diff options
| author | Maze Winther <mazewinther@gmail.com> | 2026-04-06 00:02:23 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2026-04-06 00:02:23 +0200 |
| commit | 44d8c4c8764d49a8e8d0ae713432c07f07cb7597 (patch) | |
| tree | 4657187279adb475ea710231feb3d0bd4add36ed /apps/web/src/components/editor/panels/properties/hooks | |
| parent | 20235d0724a70e6787b6cbdbfa054b1c5d8f62e9 (diff) | |
| download | opencut-44d8c4c8764d49a8e8d0ae713432c07f07cb7597.tar.gz | |
refactor: unify element updates into pipeline and centralize ripple
Diffstat (limited to 'apps/web/src/components/editor/panels/properties/hooks')
| -rw-r--r-- | apps/web/src/components/editor/panels/properties/hooks/use-keyframed-number-property.ts | 2 | ||||
| -rw-r--r-- | apps/web/src/components/editor/panels/properties/hooks/use-keyframed-vector-property.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/web/src/components/editor/panels/properties/hooks/use-keyframed-number-property.ts b/apps/web/src/components/editor/panels/properties/hooks/use-keyframed-number-property.ts index ddd3d2e4..0c10d443 100644 --- a/apps/web/src/components/editor/panels/properties/hooks/use-keyframed-number-property.ts +++ b/apps/web/src/components/editor/panels/properties/hooks/use-keyframed-number-property.ts @@ -144,7 +144,7 @@ export function useKeyframedNumberProperty({ {
trackId,
elementId,
- updates: buildBaseUpdates({ value: nextValue }),
+ patch: buildBaseUpdates({ value: nextValue }),
},
],
});
diff --git a/apps/web/src/components/editor/panels/properties/hooks/use-keyframed-vector-property.ts b/apps/web/src/components/editor/panels/properties/hooks/use-keyframed-vector-property.ts index a342859c..7ee1f221 100644 --- a/apps/web/src/components/editor/panels/properties/hooks/use-keyframed-vector-property.ts +++ b/apps/web/src/components/editor/panels/properties/hooks/use-keyframed-vector-property.ts @@ -152,7 +152,7 @@ export function useKeyframedVectorProperty({ }
editor.timeline.updateElements({
updates: [
- { trackId, elementId, updates: buildBaseUpdates({ value: vector }) },
+ { trackId, elementId, patch: buildBaseUpdates({ value: vector }) },
],
});
};
@@ -172,7 +172,7 @@ export function useKeyframedVectorProperty({ }
editor.timeline.updateElements({
updates: [
- { trackId, elementId, updates: buildBaseUpdates({ value: vector }) },
+ { trackId, elementId, patch: buildBaseUpdates({ value: vector }) },
],
});
};
|
