@tldraw/tldraw 4.4.0-canary.ea8833f5994b → 4.4.0-canary.eb3292ce88a3
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 +28 -2
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.eb3292ce88a3",
|
|
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.eb3292ce88a3",
|
|
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.4.0-canary.
|
|
50
|
+
"tldraw": "4.4.0-canary.eb3292ce88a3"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"react": "^18.2.0 || ^19.2.1",
|
package/tldraw.css
CHANGED
|
@@ -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 */
|
|
@@ -1810,6 +1821,21 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1810
1821
|
/* @tldraw/ui */
|
|
1811
1822
|
|
|
1812
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
|
+
*/
|
|
1813
1839
|
--tl-layer-above: 1;
|
|
1814
1840
|
--tl-layer-focused-input: 10;
|
|
1815
1841
|
--tl-layer-menu-click-capture: 250;
|