@tldraw/tldraw 4.4.0-canary.2d6554e2c18e → 4.4.0-canary.2f80fa863d5a
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 +3 -4
- package/tldraw.css +34 -4
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.4.0-canary.
|
|
22
|
+
"4.4.0-canary.2f80fa863d5a",
|
|
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": "4.4.0-canary.
|
|
4
|
+
"version": "4.4.0-canary.2f80fa863d5a",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "tldraw Inc.",
|
|
7
7
|
"email": "hello@tldraw.com"
|
|
@@ -38,8 +38,7 @@
|
|
|
38
38
|
"prepack": "yarn run -T tsx ../../internal/scripts/prepack.ts",
|
|
39
39
|
"postpack": "../../internal/scripts/postpack.sh",
|
|
40
40
|
"pack-tarball": "yarn pack",
|
|
41
|
-
"lint": "yarn run -T tsx ../../internal/scripts/lint.ts"
|
|
42
|
-
"context": "yarn run -T tsx ../../internal/scripts/context.ts"
|
|
41
|
+
"lint": "yarn run -T tsx ../../internal/scripts/lint.ts"
|
|
43
42
|
},
|
|
44
43
|
"files": [
|
|
45
44
|
"tldraw.css",
|
|
@@ -48,7 +47,7 @@
|
|
|
48
47
|
"src"
|
|
49
48
|
],
|
|
50
49
|
"dependencies": {
|
|
51
|
-
"tldraw": "4.4.0-canary.
|
|
50
|
+
"tldraw": "4.4.0-canary.2f80fa863d5a"
|
|
52
51
|
},
|
|
53
52
|
"peerDependencies": {
|
|
54
53
|
"react": "^18.2.0 || ^19.2.1",
|
package/tldraw.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* THIS CSS FILE IS GENERATED! DO NOT EDIT. OR EDIT. I'M A COMMENT NOT A COP */
|
|
2
|
-
/* This file is created by the copy-css-files.mjs script in packages/tldraw. */
|
|
1
|
+
/* THIS CSS FILE IS GENERATED! DO NOT EDIT. OR EDIT. I'M A COMMENT NOT A COP */
|
|
2
|
+
/* This file is created by the copy-css-files.mjs script in packages/namespaced-tldraw. */
|
|
3
3
|
/* It combines @tldraw/editor's editor.css and tldraw's ui.css */
|
|
4
4
|
|
|
5
5
|
/* @tldraw/editor */
|
|
@@ -26,14 +26,25 @@
|
|
|
26
26
|
--tl-radius-3: 9px;
|
|
27
27
|
--tl-radius-4: 11px;
|
|
28
28
|
|
|
29
|
-
/*
|
|
29
|
+
/*
|
|
30
|
+
* Canvas z-index
|
|
31
|
+
*
|
|
32
|
+
* .tl-canvas has `contain: strict` which creates its own stacking context.
|
|
33
|
+
* background, grid, shapes, overlays, and blocker are all children of .tl-canvas,
|
|
34
|
+
* so their z-indices are relative to the canvas, not the container.
|
|
35
|
+
*
|
|
36
|
+
* watermark and canvas-in-front are siblings of .tl-canvas (outside it),
|
|
37
|
+
* so they compete with the UI layer (.tlui-layout at z-index 300).
|
|
38
|
+
* canvas-in-front must be below the UI layer (300) to sit between
|
|
39
|
+
* the canvas and the UI.
|
|
40
|
+
*/
|
|
30
41
|
--tl-layer-canvas-hidden: -999999;
|
|
31
42
|
--tl-layer-canvas-background: 100;
|
|
32
43
|
--tl-layer-canvas-grid: 150;
|
|
33
44
|
--tl-layer-watermark: 200;
|
|
45
|
+
--tl-layer-canvas-in-front: 250;
|
|
34
46
|
--tl-layer-canvas-shapes: 300;
|
|
35
47
|
--tl-layer-canvas-overlays: 500;
|
|
36
|
-
--tl-layer-canvas-in-front: 600;
|
|
37
48
|
--tl-layer-canvas-blocker: 10000;
|
|
38
49
|
|
|
39
50
|
/* Canvas overlays z-index */
|
|
@@ -151,6 +162,8 @@
|
|
|
151
162
|
--tl-color-selection-fill: hsl(210, 100%, 56%, 24%);
|
|
152
163
|
--tl-color-selection-stroke: hsl(214, 84%, 56%);
|
|
153
164
|
--tl-color-background: hsl(210, 20%, 98%);
|
|
165
|
+
/* if you ever update --tl-color-background, update the hardcoded values in theme-init.js and globals.css
|
|
166
|
+
they're there to make sure the background color matches the user's preference before the actual app loads*/
|
|
154
167
|
--tl-color-brush-fill: hsl(0, 0%, 56%, 10.2%);
|
|
155
168
|
--tl-color-brush-stroke: hsl(0, 0%, 56%, 25.1%);
|
|
156
169
|
--tl-color-grid: hsl(0, 0%, 43%);
|
|
@@ -207,6 +220,8 @@
|
|
|
207
220
|
--tl-color-selection-fill: hsl(209, 100%, 57%, 20%);
|
|
208
221
|
--tl-color-selection-stroke: hsl(214, 84%, 56%);
|
|
209
222
|
--tl-color-background: hsl(240, 5%, 6.5%);
|
|
223
|
+
/* if you ever update --tl-color-background, update the hardcoded values in theme-init.js and globals.css
|
|
224
|
+
they're there to make sure the background color matches the user's preference before the actual app loads*/
|
|
210
225
|
--tl-color-brush-fill: hsl(0, 0%, 71%, 5.1%);
|
|
211
226
|
--tl-color-brush-stroke: hsl(0, 0%, 71%, 25.1%);
|
|
212
227
|
--tl-color-grid: hsl(0, 0%, 40%);
|
|
@@ -1806,6 +1821,21 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1806
1821
|
/* @tldraw/ui */
|
|
1807
1822
|
|
|
1808
1823
|
.tl-container {
|
|
1824
|
+
/*
|
|
1825
|
+
* UI z-index layers
|
|
1826
|
+
*
|
|
1827
|
+
* menu-click-capture and panels (.tlui-layout) participate in the
|
|
1828
|
+
* container-level stacking context alongside the canvas layers:
|
|
1829
|
+
* watermark (200) < canvas-in-front (250) < menu-click-capture (250) < panels (300)
|
|
1830
|
+
*
|
|
1831
|
+
* menus, toasts, header-footer, etc. are children of .tlui-layout
|
|
1832
|
+
* (which creates its own stacking context at z-index 300), so their
|
|
1833
|
+
* z-indices are relative to the layout, not the container.
|
|
1834
|
+
*
|
|
1835
|
+
* cursor and following-indicator are rendered inside canvas-in-front
|
|
1836
|
+
* (stacking context at z-index 250), so their z-indices are relative
|
|
1837
|
+
* to that context.
|
|
1838
|
+
*/
|
|
1809
1839
|
--tl-layer-above: 1;
|
|
1810
1840
|
--tl-layer-focused-input: 10;
|
|
1811
1841
|
--tl-layer-menu-click-capture: 250;
|