Commit a7cb959
authored
Refactor Tldraw component to improve canvas rendering logic (#368)
- Simplified the rendering logic by consolidating checks for the root element and child elements.
- Updated the attribute handling for TLDRAW_DATA_ATTRIBUTE to ensure proper visibility toggling of Roam blocks.
- Enhanced the styling rules in tldrawStyles to maintain consistency in block visibility when the canvas is present.1 parent 9cf1bc4 commit a7cb959
2 files changed
+24
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
886 | 886 | | |
887 | 887 | | |
888 | 888 | | |
889 | | - | |
890 | | - | |
891 | | - | |
| 889 | + | |
892 | 890 | | |
893 | | - | |
894 | | - | |
895 | | - | |
| 891 | + | |
896 | 892 | | |
897 | 893 | | |
898 | | - | |
899 | | - | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
900 | 905 | | |
901 | | - | |
902 | | - | |
903 | | - | |
904 | | - | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
905 | 914 | | |
906 | 915 | | |
907 | 916 | | |
| |||
913 | 922 | | |
914 | 923 | | |
915 | 924 | | |
916 | | - | |
| 925 | + | |
917 | 926 | | |
918 | 927 | | |
919 | 928 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments