@tldraw/tldraw 3.16.0-canary.cb97f41de62b → 3.16.0-canary.cd822ae4ebee
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 +1 -1
- package/dist-esm/index.mjs +1 -1
- package/package.json +2 -2
- package/tldraw.css +59 -6
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-canary.
|
|
22
|
+
"3.16.0-canary.cd822ae4ebee",
|
|
23
23
|
"cjs"
|
|
24
24
|
);
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
package/dist-esm/index.mjs
CHANGED
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-canary.
|
|
4
|
+
"version": "3.16.0-canary.cd822ae4ebee",
|
|
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-canary.
|
|
51
|
+
"tldraw": "3.16.0-canary.cd822ae4ebee"
|
|
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;
|
|
@@ -1951,7 +1964,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1951
1964
|
min-height: 40px;
|
|
1952
1965
|
width: 100%;
|
|
1953
1966
|
gap: 8px;
|
|
1954
|
-
margin: -4px
|
|
1967
|
+
margin-top: -4px;
|
|
1955
1968
|
}
|
|
1956
1969
|
|
|
1957
1970
|
.tlui-button__menu::after {
|
|
@@ -2277,6 +2290,10 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2277
2290
|
-webkit-user-select: auto !important;
|
|
2278
2291
|
}
|
|
2279
2292
|
|
|
2293
|
+
.tlui-input::placeholder {
|
|
2294
|
+
color: var(--tl-color-text-3);
|
|
2295
|
+
}
|
|
2296
|
+
|
|
2280
2297
|
.tlui-input__wrapper {
|
|
2281
2298
|
width: 100%;
|
|
2282
2299
|
height: 44px;
|
|
@@ -2361,6 +2378,12 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2361
2378
|
box-shadow: var(--tl-shadow-3);
|
|
2362
2379
|
}
|
|
2363
2380
|
|
|
2381
|
+
@media (max-height: 600px) {
|
|
2382
|
+
.tlui-menu {
|
|
2383
|
+
max-height: 70vh;
|
|
2384
|
+
}
|
|
2385
|
+
}
|
|
2386
|
+
|
|
2364
2387
|
.tlui-menu::-webkit-scrollbar {
|
|
2365
2388
|
display: none;
|
|
2366
2389
|
}
|
|
@@ -2790,21 +2813,48 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2790
2813
|
flex-direction: column;
|
|
2791
2814
|
}
|
|
2792
2815
|
|
|
2793
|
-
|
|
2816
|
+
/*
|
|
2817
|
+
add a border to the bottom of all but the last section. we have to handle empty sections too, which
|
|
2818
|
+
are hidden and shouldn't be counted
|
|
2819
|
+
*/
|
|
2820
|
+
.tlui-style-panel__section:not(:nth-last-child(-n + 1 of .tlui-style-panel__section:not(:empty))) {
|
|
2794
2821
|
border-bottom: 1px solid var(--tl-color-divider);
|
|
2795
2822
|
}
|
|
2823
|
+
/*
|
|
2824
|
+
if a section ends with a slider and we're adding a border, we need some extra space for visual
|
|
2825
|
+
balance. we need to handle empty sections as above. is this the most complex css selector in all of
|
|
2826
|
+
tldraw? probably.
|
|
2827
|
+
*/
|
|
2828
|
+
.tlui-style-panel__section:has(.tlui-slider__container:last-child):not(
|
|
2829
|
+
:nth-last-child(-n + 1 of .tlui-style-panel__section:not(:empty))
|
|
2830
|
+
) {
|
|
2831
|
+
margin-bottom: 7px;
|
|
2832
|
+
}
|
|
2796
2833
|
|
|
2797
2834
|
.tlui-style-panel__section:empty {
|
|
2798
2835
|
display: none;
|
|
2799
2836
|
}
|
|
2800
2837
|
|
|
2838
|
+
/*
|
|
2839
|
+
* This is used in a couple places, like Align and Vertical Align.
|
|
2840
|
+
* It's because we have a toolbar with a Toggle Group but then an adjacent button
|
|
2841
|
+
* next to it that opens a popup.
|
|
2842
|
+
*/
|
|
2843
|
+
.tlui-style-panel__section .tlui-toolbar:has(.tlui-toolbar) {
|
|
2844
|
+
flex-wrap: wrap;
|
|
2845
|
+
}
|
|
2846
|
+
|
|
2847
|
+
.tlui-style-panel__section .tlui-toolbar:has(.tlui-toolbar) .tlui-style-panel__subheading {
|
|
2848
|
+
margin-left: -2px;
|
|
2849
|
+
}
|
|
2850
|
+
|
|
2801
2851
|
.tlui-style-panel__section__common:not(:only-child) {
|
|
2802
2852
|
margin-bottom: 7px;
|
|
2803
2853
|
border-bottom: 1px solid var(--tl-color-divider);
|
|
2804
2854
|
}
|
|
2805
2855
|
|
|
2806
2856
|
.tlui-style-panel__dropdown-picker:only-child {
|
|
2807
|
-
|
|
2857
|
+
flex: 1;
|
|
2808
2858
|
}
|
|
2809
2859
|
|
|
2810
2860
|
.tlui-style-panel__double-select-picker {
|
|
@@ -2830,6 +2880,9 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2830
2880
|
}
|
|
2831
2881
|
|
|
2832
2882
|
@media (hover: hover) {
|
|
2883
|
+
.tlui-style-panel .tlui-button[aria-expanded='true'] {
|
|
2884
|
+
background: none;
|
|
2885
|
+
}
|
|
2833
2886
|
.tlui-style-panel .tlui-button[data-state='open']:not(:hover)::after {
|
|
2834
2887
|
opacity: 1;
|
|
2835
2888
|
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--tl-color-muted-2) 100%);
|