@tldraw/tldraw 4.6.0-canary.239a3cd0bda5 → 4.6.0-canary.2704cdc4a4e9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -19,7 +19,7 @@ var import_tldraw = require("tldraw");
19
19
  __reExport(index_exports, require("tldraw"), module.exports);
20
20
  (0, import_tldraw.registerTldrawLibraryVersion)(
21
21
  "@tldraw/tldraw",
22
- "4.6.0-canary.239a3cd0bda5",
22
+ "4.6.0-canary.2704cdc4a4e9",
23
23
  "cjs"
24
24
  );
25
25
  //# sourceMappingURL=index.js.map
@@ -2,7 +2,7 @@ import { registerTldrawLibraryVersion } from "tldraw";
2
2
  export * from "tldraw";
3
3
  registerTldrawLibraryVersion(
4
4
  "@tldraw/tldraw",
5
- "4.6.0-canary.239a3cd0bda5",
5
+ "4.6.0-canary.2704cdc4a4e9",
6
6
  "esm"
7
7
  );
8
8
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tldraw/tldraw",
3
3
  "description": "A tiny little drawing editor.",
4
- "version": "4.6.0-canary.239a3cd0bda5",
4
+ "version": "4.6.0-canary.2704cdc4a4e9",
5
5
  "author": {
6
6
  "name": "tldraw Inc.",
7
7
  "email": "hello@tldraw.com"
@@ -47,7 +47,7 @@
47
47
  "src"
48
48
  ],
49
49
  "dependencies": {
50
- "tldraw": "4.6.0-canary.239a3cd0bda5"
50
+ "tldraw": "4.6.0-canary.2704cdc4a4e9"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "react": "^18.2.0 || ^19.2.1",
package/tldraw.css CHANGED
@@ -58,7 +58,6 @@
58
58
  /* User handles need to be above selection edges / corners, matters for sticky note clone handles */
59
59
  --tl-layer-overlays-user-handles: 105;
60
60
  --tl-layer-overlays-user-indicator-hint: 110;
61
- --tl-layer-overlays-custom: 115;
62
61
  --tl-layer-overlays-collaborator-cursor-hint: 120;
63
62
  --tl-layer-overlays-collaborator-cursor: 130;
64
63
 
@@ -158,14 +157,11 @@
158
157
 
159
158
  .tl-theme__light {
160
159
  /* Canvas */
161
- --tl-color-snap: hsl(0, 76%, 60%);
162
160
  --tl-color-selection-fill: hsl(210, 100%, 56%, 24%);
163
161
  --tl-color-selection-stroke: hsl(214, 84%, 56%);
164
162
  --tl-color-background: hsl(210, 20%, 98%);
165
163
  /* if you ever update --tl-color-background, update the hardcoded values in theme-init.js and globals.css
166
164
  they're there to make sure the background color matches the user's preference before the actual app loads*/
167
- --tl-color-brush-fill: hsl(0, 0%, 56%, 10.2%);
168
- --tl-color-brush-stroke: hsl(0, 0%, 56%, 25.1%);
169
165
  --tl-color-grid: hsl(0, 0%, 43%);
170
166
  /* UI */
171
167
  --tl-color-low: hsl(204, 16%, 94%);
@@ -199,7 +195,7 @@
199
195
  --tl-color-info: hsl(201, 98%, 41%);
200
196
  --tl-color-warning: hsl(27, 98%, 47%);
201
197
  --tl-color-danger: hsl(0, 90%, 43%);
202
- --tl-color-laser: hsl(0, 100%, 50%);
198
+
203
199
  /* Shadows */
204
200
  --tl-shadow-1: 0px 1px 2px hsl(0, 0%, 0%, 25%), 0px 1px 3px hsl(0, 0%, 0%, 9%);
205
201
  --tl-shadow-2:
@@ -215,14 +211,11 @@
215
211
 
216
212
  .tl-theme__dark {
217
213
  /* Canvas */
218
- --tl-color-snap: hsl(0, 76%, 60%);
219
214
  --tl-color-selection-fill: hsl(209, 100%, 57%, 20%);
220
215
  --tl-color-selection-stroke: hsl(214, 84%, 56%);
221
216
  --tl-color-background: hsl(240, 5%, 6.5%);
222
217
  /* if you ever update --tl-color-background, update the hardcoded values in theme-init.js and globals.css
223
218
  they're there to make sure the background color matches the user's preference before the actual app loads*/
224
- --tl-color-brush-fill: hsl(0, 0%, 71%, 5.1%);
225
- --tl-color-brush-stroke: hsl(0, 0%, 71%, 25.1%);
226
219
  --tl-color-grid: hsl(0, 0%, 40%);
227
220
  /* UI */
228
221
  --tl-color-low: hsl(260, 4.5%, 10.5%);
@@ -256,7 +249,7 @@
256
249
  --tl-color-info: hsl(199, 92%, 56%);
257
250
  --tl-color-warning: hsl(36, 100%, 57%);
258
251
  --tl-color-danger: hsl(0, 82%, 66%);
259
- --tl-color-laser: hsl(0, 100%, 50%);
252
+
260
253
  /* Shadows */
261
254
  --tl-shadow-1:
262
255
  0px 1px 2px hsl(0, 0%, 0%, 16.1%), 0px 1px 3px hsl(0, 0%, 0%, 22%),
@@ -403,62 +396,6 @@ input,
403
396
 
404
397
  /* --------------- Overlay Stack --------------- */
405
398
 
406
- /* back of the stack, behind user's stuff */
407
- .tl-collaborator__scribble {
408
- z-index: var(--tl-layer-overlays-collaborator-scribble);
409
- }
410
-
411
- .tl-collaborator__brush {
412
- z-index: var(--tl-layer-overlays-collaborator-brush);
413
- }
414
-
415
- .tl-collaborator__shape-indicator {
416
- z-index: var(--tl-layer-overlays-collaborator-shape-indicator);
417
- }
418
-
419
- .tl-user-scribble {
420
- z-index: var(--tl-layer-overlays-user-scribble);
421
- }
422
-
423
- .tl-user-brush {
424
- z-index: var(--tl-layer-overlays-user-brush);
425
- }
426
-
427
- .tl-user-handles {
428
- z-index: var(--tl-layer-overlays-user-handles);
429
- }
430
-
431
- .tl-user-snapline {
432
- z-index: var(--tl-layer-overlays-user-snapline);
433
- }
434
-
435
- .tl-selection__fg {
436
- pointer-events: none;
437
- z-index: var(--tl-layer-overlays-selection-fg);
438
- }
439
-
440
- .tl-user-indicator__hint {
441
- z-index: var(--tl-layer-overlays-user-indicator-hint);
442
- stroke-width: calc(2.5px * var(--tl-scale));
443
- }
444
-
445
- .tl-custom-overlays {
446
- z-index: var(--tl-layer-overlays-custom);
447
- }
448
-
449
- /* behind collaborator cursor */
450
- .tl-collaborator__cursor-hint {
451
- z-index: var(--tl-layer-overlays-collaborator-cursor-hint);
452
- }
453
-
454
- .tl-collaborator__cursor {
455
- z-index: var(--tl-layer-overlays-collaborator-cursor);
456
- }
457
-
458
- .tl-cursor {
459
- overflow: visible;
460
- }
461
-
462
399
  /* -------------- Selection foreground -------------- */
463
400
 
464
401
  .tl-selection__bg {
@@ -470,49 +407,6 @@ input,
470
407
  pointer-events: all;
471
408
  }
472
409
 
473
- .tl-selection__fg__outline {
474
- fill: none;
475
- pointer-events: none;
476
- stroke: var(--tl-color-selection-stroke);
477
- stroke-width: calc(1.5px * var(--tl-scale));
478
- }
479
-
480
- .tl-corner-handle {
481
- pointer-events: none;
482
- stroke: var(--tl-color-selection-stroke);
483
- fill: var(--tl-color-background);
484
- stroke-width: calc(1.5px * var(--tl-scale));
485
- }
486
-
487
- .tl-text-handle {
488
- pointer-events: none;
489
- fill: var(--tl-color-selection-stroke);
490
- }
491
-
492
- .tl-corner-crop-handle {
493
- pointer-events: none;
494
- fill: none;
495
- stroke: var(--tl-color-selection-stroke);
496
- }
497
-
498
- .tl-corner-crop-edge-handle {
499
- pointer-events: none;
500
- fill: none;
501
- stroke: var(--tl-color-selection-stroke);
502
- }
503
-
504
- .tl-mobile-rotate__bg {
505
- pointer-events: all;
506
- cursor: var(--tl-cursor-grab);
507
- }
508
-
509
- .tl-mobile-rotate__fg {
510
- pointer-events: none;
511
- stroke: var(--tl-color-selection-stroke);
512
- fill: var(--tl-color-background);
513
- stroke-width: calc(1.5px * var(--tl-scale));
514
- }
515
-
516
410
  .tl-transparent {
517
411
  fill: transparent;
518
412
  stroke: transparent;
@@ -1007,41 +901,6 @@ input,
1007
901
  }
1008
902
  }
1009
903
 
1010
- /* ---------------------- Brush --------------------- */
1011
-
1012
- .tl-brush {
1013
- stroke-width: calc(var(--tl-scale) * 1px);
1014
- contain: size layout;
1015
- }
1016
-
1017
- .tl-brush__default {
1018
- stroke: var(--tl-color-brush-stroke);
1019
- fill: var(--tl-color-brush-fill);
1020
- }
1021
-
1022
- /* -------------------- Scribble -------------------- */
1023
-
1024
- .tl-scribble {
1025
- stroke-linejoin: round;
1026
- stroke-linecap: round;
1027
- pointer-events: none;
1028
- contain: size layout;
1029
- }
1030
-
1031
- /* ---------------------- Snaps --------------------- */
1032
-
1033
- .tl-snap-indicator {
1034
- stroke: var(--tl-color-snap);
1035
- stroke-width: calc(1px * var(--tl-scale));
1036
- fill: none;
1037
- }
1038
-
1039
- .tl-snap-point {
1040
- stroke: var(--tl-color-snap);
1041
- stroke-width: calc(1px * var(--tl-scale));
1042
- fill: none;
1043
- }
1044
-
1045
904
  /* ---------------- Hyperlink Button ---------------- */
1046
905
 
1047
906
  .tl-hyperlink-button {
@@ -1095,51 +954,6 @@ input,
1095
954
  display: none;
1096
955
  }
1097
956
 
1098
- /* --------------------- Handles -------------------- */
1099
-
1100
- .tl-handle {
1101
- pointer-events: all;
1102
- }
1103
-
1104
- .tl-handle__bg {
1105
- fill: transparent;
1106
- stroke: transparent;
1107
- pointer-events: all;
1108
- }
1109
-
1110
- .tl-handle__fg {
1111
- fill: var(--tl-color-selected-contrast);
1112
- stroke: var(--tl-color-selection-stroke);
1113
- stroke-width: calc(1.5px * var(--tl-scale));
1114
- pointer-events: none;
1115
- }
1116
-
1117
- .tl-handle__create {
1118
- opacity: 0;
1119
- }
1120
-
1121
- .tl-handle__clone > .tl-handle__fg {
1122
- fill: var(--tl-color-selection-stroke);
1123
- stroke: none;
1124
- }
1125
-
1126
- .tl-handle__bg:active {
1127
- fill: none;
1128
- }
1129
-
1130
- .tl-container[data-coarse='true'] .tl-handle__bg:active {
1131
- fill: var(--tl-color-selection-fill);
1132
- }
1133
-
1134
- .tl-container[data-coarse='true'] .tl-handle__create {
1135
- opacity: 1;
1136
- }
1137
-
1138
- .tl-rotate-corner:not(:hover),
1139
- .tl-resize-handle:not(:hover) {
1140
- cursor: none;
1141
- }
1142
-
1143
957
  /* ----------------- Shape indicator ---------------- */
1144
958
 
1145
959
  .tl-shape-indicator {
@@ -1149,7 +963,7 @@ input,
1149
963
  contain: size layout;
1150
964
  }
1151
965
 
1152
- .tl-canvas-indicators {
966
+ .tl-canvas-overlays {
1153
967
  position: absolute;
1154
968
  inset: 0;
1155
969
  pointer-events: none;
@@ -1227,36 +1041,6 @@ input,
1227
1041
  height: max-content;
1228
1042
  }
1229
1043
 
1230
- .tl-arrow-hint {
1231
- stroke: var(--tl-color-text-1);
1232
- fill: none;
1233
- stroke-linecap: round;
1234
- overflow: visible;
1235
- }
1236
-
1237
- .tl-arrow-hint-handle {
1238
- fill: var(--tl-color-selected-contrast);
1239
- stroke: var(--tl-color-selection-stroke);
1240
- stroke-width: calc(1.5px * var(--tl-scale));
1241
- r: calc(4px * var(--tl-scale));
1242
- }
1243
-
1244
- .tl-arrow-hint-snap {
1245
- stroke: transparent;
1246
- fill: var(--tl-color-selection-fill);
1247
- r: calc(12px * var(--tl-scale));
1248
- }
1249
-
1250
- .tl-arrow-hint-snap__none,
1251
- .tl-arrow-hint-snap__center,
1252
- .tl-arrow-hint-snap__axis {
1253
- display: none;
1254
- }
1255
-
1256
- .tl-arrow-hint-snap__edge {
1257
- r: calc(8px * var(--tl-scale));
1258
- }
1259
-
1260
1044
  /* ------------------- Bookmark shape ------------------- */
1261
1045
 
1262
1046
  .tl-bookmark__container {