This commit is contained in:
ct
2025-06-15 06:05:09 +08:00
parent a3303dbdd1
commit f686de8f29
4 changed files with 750 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
import React, { useEffect, useLayoutEffect, useState } from 'react';
import { LAYOUT_CONSTANTS, calculateResponsiveScale } from '../utils/layout-constants';
import VideoEditor from './canvas/video-editor';
const useResponsiveCanvas = (maxWidth: number = 350) => {
const [scale, setScale] = useState(() => calculateResponsiveScale(maxWidth));
@@ -89,7 +90,7 @@ const EditorCanvas: React.FC<EditorCanvasProps> = ({ maxWidth = 350 }) => {
console.log(`Canvas coordinates: x=${x}, y=${y}`);
}}
>
{/* Your canvas content goes here */}
<VideoEditor width={LAYOUT_CONSTANTS.CANVAS_WIDTH} height={LAYOUT_CONSTANTS.CANVAS_HEIGHT} />
</div>
</div>
</div>