Commit 114ed85
[ENG-1546] Relation creation via drag handles (Roam) (#923)
* ENG-1546: Implement relation creation via drag handles in tldraw (Roam)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* DRY
* Fix DragHandleOverlay lint warnings
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
* Apply handle padding in viewport space
Matches the Obsidian (eng-1547) pattern: padding is now applied after
pageToViewport conversion so dots remain a fixed screen distance from
the node edge regardless of zoom level.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
* Fix relation direction and label color in drag handle flow
- Show complement label when creating relation in reverse direction
- DRY checkConnectionType into canvasUtils (used by RelationUtil + overlays)
- Remove labelColor override to match DiscourseRelationTool convention
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
* change to tailwind as much as possible
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 900eba0 commit 114ed85
5 files changed
Lines changed: 652 additions & 17 deletions
File tree
- apps/roam/src/components/canvas
- DiscourseRelationShape
- overlays
Lines changed: 2 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| |||
1705 | 1706 | | |
1706 | 1707 | | |
1707 | 1708 | | |
1708 | | - | |
1709 | | - | |
1710 | | - | |
1711 | | - | |
1712 | | - | |
1713 | | - | |
1714 | | - | |
1715 | | - | |
1716 | | - | |
| 1709 | + | |
1717 | 1710 | | |
1718 | 1711 | | |
1719 | 1712 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
533 | 535 | | |
534 | 536 | | |
535 | 537 | | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | 538 | | |
543 | 539 | | |
544 | 540 | | |
| |||
563 | 559 | | |
564 | 560 | | |
565 | 561 | | |
566 | | - | |
| 562 | + | |
567 | 563 | | |
568 | 564 | | |
569 | 565 | | |
| |||
588 | 584 | | |
589 | 585 | | |
590 | 586 | | |
591 | | - | |
| 587 | + | |
592 | 588 | | |
593 | 589 | | |
594 | 590 | | |
| |||
693 | 689 | | |
694 | 690 | | |
695 | 691 | | |
| 692 | + | |
696 | 693 | | |
697 | 694 | | |
698 | 695 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
0 commit comments