mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-04 07:19:52 +00:00
fix(studio): remove unused onSelectElementById after indicator removal (#1377)
This commit is contained in:
@@ -108,7 +108,6 @@ export function StudioPreviewArea({
|
||||
handlePreviewCanvasPointerMove,
|
||||
handlePreviewCanvasPointerLeave,
|
||||
applyDomSelection,
|
||||
buildDomSelectionFromTarget,
|
||||
handleBlockedDomMove,
|
||||
handleDomManualDragStart,
|
||||
handleDomPathOffsetCommit,
|
||||
@@ -291,14 +290,6 @@ export function StudioPreviewArea({
|
||||
onRotationCommit={handleDomRotationCommit}
|
||||
gridVisible={snapPrefs.gridVisible}
|
||||
gridSpacing={snapPrefs.gridSpacing}
|
||||
onSelectElementById={async (id) => {
|
||||
const iframe = previewIframeRef.current;
|
||||
const el = iframe?.contentDocument?.getElementById(id);
|
||||
if (!el) return null;
|
||||
const sel = await buildDomSelectionFromTarget(el);
|
||||
if (sel) applyDomSelection(sel, { revealPanel: true });
|
||||
return sel;
|
||||
}}
|
||||
/>
|
||||
<SnapToolbar onSnapChange={setSnapPrefs} />
|
||||
{gestureOverlay}
|
||||
|
||||
@@ -54,7 +54,6 @@ interface DomEditOverlayProps {
|
||||
) => void;
|
||||
onBlockedMove: (selection: DomEditSelection) => void;
|
||||
onManualDragStart?: () => void;
|
||||
onSelectElementById?: (id: string) => Promise<DomEditSelection | null>;
|
||||
onPathOffsetCommit: (
|
||||
selection: DomEditSelection,
|
||||
next: { x: number; y: number },
|
||||
@@ -84,7 +83,6 @@ export const DomEditOverlay = memo(function DomEditOverlay({
|
||||
gridVisible = false,
|
||||
gridSpacing = 50,
|
||||
onManualDragStart,
|
||||
onSelectElementById,
|
||||
onPathOffsetCommit,
|
||||
onGroupPathOffsetCommit,
|
||||
onBoxSizeCommit,
|
||||
@@ -214,7 +212,6 @@ export const DomEditOverlay = memo(function DomEditOverlay({
|
||||
return () => cancelAnimationFrame(frame);
|
||||
});
|
||||
|
||||
|
||||
const gestures = createDomEditOverlayGestureHandlers({
|
||||
overlayRef,
|
||||
iframeRef,
|
||||
|
||||
Reference in New Issue
Block a user