@tldraw/tldraw 3.16.0-internal.51e99e128bd4 → 3.16.0-internal.71f83a8a571b

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
- "3.16.0-internal.51e99e128bd4",
22
+ "3.16.0-internal.71f83a8a571b",
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
- "3.16.0-internal.51e99e128bd4",
5
+ "3.16.0-internal.71f83a8a571b",
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": "3.16.0-internal.51e99e128bd4",
4
+ "version": "3.16.0-internal.71f83a8a571b",
5
5
  "author": {
6
6
  "name": "tldraw Inc.",
7
7
  "email": "hello@tldraw.com"
@@ -48,7 +48,7 @@
48
48
  "src"
49
49
  ],
50
50
  "dependencies": {
51
- "tldraw": "3.16.0-internal.51e99e128bd4"
51
+ "tldraw": "3.16.0-internal.71f83a8a571b"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "react": "^18.2.0 || ^19.0.0",
package/tldraw.css CHANGED
@@ -33,6 +33,7 @@
33
33
  --tl-layer-watermark: 200;
34
34
  --tl-layer-canvas-shapes: 300;
35
35
  --tl-layer-canvas-overlays: 500;
36
+ --tl-layer-canvas-in-front: 600;
36
37
  --tl-layer-canvas-blocker: 10000;
37
38
 
38
39
  /* Canvas overlays z-index */
@@ -301,6 +302,13 @@ input,
301
302
  contain: strict;
302
303
  }
303
304
 
305
+ .tl-canvas__in-front {
306
+ position: absolute;
307
+ inset: 0;
308
+ pointer-events: none;
309
+ z-index: var(--tl-layer-canvas-in-front);
310
+ }
311
+
304
312
  .tl-shapes {
305
313
  position: relative;
306
314
  z-index: var(--tl-layer-canvas-shapes);
@@ -685,11 +693,17 @@ input,
685
693
  }
686
694
 
687
695
  .tl-text-measure {
688
- position: absolute;
689
696
  z-index: var(--tl-layer-canvas-hidden);
697
+ opacity: 0;
698
+ visibility: hidden;
699
+
700
+ /* pointer-events: all; */
701
+ /* opacity: 1; */
702
+ /* z-index: 99999; */
703
+
704
+ position: absolute;
690
705
  top: 0px;
691
706
  left: 0px;
692
- opacity: 0;
693
707
  width: max-content;
694
708
  box-sizing: border-box;
695
709
  pointer-events: none;
@@ -700,7 +714,6 @@ input,
700
714
  border: none;
701
715
  user-select: none;
702
716
  contain: style paint;
703
- visibility: hidden;
704
717
  /* N.B. This property, while discouraged ("intended for Document Type Definition (DTD) designers") is necessary for ensuring correct mixed RTL/LTR behavior when exporting SVGs. */
705
718
  unicode-bidi: plaintext;
706
719
  -webkit-user-select: none;
@@ -2790,9 +2803,23 @@ it from receiving any pointer events or affecting the cursor. */
2790
2803
  flex-direction: column;
2791
2804
  }
2792
2805
 
2793
- .tlui-style-panel__section:nth-of-type(n + 2):not(:last-child) {
2806
+ /*
2807
+ add a border to the bottom of all but the last section. we have to handle empty sections too, which
2808
+ are hidden and shouldn't be counted
2809
+ */
2810
+ .tlui-style-panel__section:not(:nth-last-child(-n + 1 of .tlui-style-panel__section:not(:empty))) {
2794
2811
  border-bottom: 1px solid var(--tl-color-divider);
2795
2812
  }
2813
+ /*
2814
+ if a section ends with a slider and we're adding a border, we need some extra space for visual
2815
+ balance. we need to handle empty sections as above. is this the most complex css selector in all of
2816
+ tldraw? probably.
2817
+ */
2818
+ .tlui-style-panel__section:has(.tlui-slider__container:last-child):not(
2819
+ :nth-last-child(-n + 1 of .tlui-style-panel__section:not(:empty))
2820
+ ) {
2821
+ margin-bottom: 7px;
2822
+ }
2796
2823
 
2797
2824
  .tlui-style-panel__section:empty {
2798
2825
  display: none;
@@ -2804,7 +2831,7 @@ it from receiving any pointer events or affecting the cursor. */
2804
2831
  }
2805
2832
 
2806
2833
  .tlui-style-panel__dropdown-picker:only-child {
2807
- width: 100%;
2834
+ flex: 1;
2808
2835
  }
2809
2836
 
2810
2837
  .tlui-style-panel__double-select-picker {
@@ -2830,6 +2857,9 @@ it from receiving any pointer events or affecting the cursor. */
2830
2857
  }
2831
2858
 
2832
2859
  @media (hover: hover) {
2860
+ .tlui-style-panel .tlui-button[aria-expanded='true'] {
2861
+ background: none;
2862
+ }
2833
2863
  .tlui-style-panel .tlui-button[data-state='open']:not(:hover)::after {
2834
2864
  opacity: 1;
2835
2865
  background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);