Update
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user