Update
This commit is contained in:
@@ -51,7 +51,7 @@ const useResponsiveCanvas = (maxWidth = 350) => {
|
||||
return scale;
|
||||
};
|
||||
|
||||
const EditorCanvas = ({ maxWidth = 350 }) => {
|
||||
const EditorCanvas = ({ maxWidth = 350, onOpenTextSidebar }) => {
|
||||
const scale = useResponsiveCanvas(maxWidth);
|
||||
const displayWidth = LAYOUT_CONSTANTS.CANVAS_WIDTH * scale;
|
||||
const displayHeight = LAYOUT_CONSTANTS.CANVAS_HEIGHT * scale;
|
||||
@@ -86,7 +86,11 @@ const EditorCanvas = ({ maxWidth = 350 }) => {
|
||||
console.log(`Canvas coordinates: x=${x}, y=${y}`);
|
||||
}}
|
||||
>
|
||||
<VideoEditor width={LAYOUT_CONSTANTS.CANVAS_WIDTH} height={LAYOUT_CONSTANTS.CANVAS_HEIGHT} />
|
||||
<VideoEditor
|
||||
width={LAYOUT_CONSTANTS.CANVAS_WIDTH}
|
||||
height={LAYOUT_CONSTANTS.CANVAS_HEIGHT}
|
||||
onOpenTextSidebar={onOpenTextSidebar}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user