Skip to content

Commit 3b3cddd

Browse files
trangdoan982claude
andcommitted
ENG-1546: Implement relation creation via drag handles in tldraw (Roam)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 51a394b commit 3b3cddd

3 files changed

Lines changed: 651 additions & 0 deletions

File tree

apps/roam/src/components/canvas/Tldraw.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ import {
5555
} from "tldraw";
5656
import "tldraw/tldraw.css";
5757
import tldrawStyles from "./tldrawStyles";
58+
import { DragHandleOverlay } from "./overlays/DragHandleOverlay";
5859
import getDiscourseNodes, { DiscourseNode } from "~/utils/getDiscourseNodes";
5960
import getDiscourseRelations, {
6061
DiscourseRelation,
@@ -666,6 +667,7 @@ const TldrawCanvasShared = ({
666667
const editorComponents: TLEditorComponents = {
667668
...defaultEditorComponents,
668669
OnTheCanvas: ToastListener,
670+
InFrontOfTheCanvas: DragHandleOverlay,
669671
};
670672
const customUiComponents: TLUiComponents = createUiComponents({
671673
allNodes,

0 commit comments

Comments
 (0)