mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
Merge branch 'staging' of https://github.com/mazeincoding/AppCut into staging
This commit is contained in:
@@ -6,11 +6,12 @@ import { DEFAULT_CANVAS_SIZE, useProjectStore } from "@/stores/project-store";
|
||||
export function useAspectRatio() {
|
||||
const { canvasPresets } = useEditorStore();
|
||||
const { activeProject } = useProjectStore();
|
||||
const canvasSize = activeProject?.canvasSize || DEFAULT_CANVAS_SIZE;
|
||||
const canvasMode = activeProject?.canvasMode || "preset";
|
||||
const { mediaItems } = useMediaStore();
|
||||
const { tracks } = useTimelineStore();
|
||||
|
||||
const canvasSize = activeProject?.canvasSize || DEFAULT_CANVAS_SIZE;
|
||||
const canvasMode = activeProject?.canvasMode || "preset";
|
||||
|
||||
// Find the current preset based on canvas size
|
||||
const currentPreset = canvasPresets.find(
|
||||
(preset) =>
|
||||
|
||||
Reference in New Issue
Block a user