@ibodr/draw 0.1.9 → 0.1.11
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/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/draw.css +32 -0
- package/package.json +4 -4
package/draw.css
CHANGED
|
@@ -163,6 +163,8 @@
|
|
|
163
163
|
/* if you ever update --dr-color-background, update the hardcoded values in theme-init.js and globals.css
|
|
164
164
|
they're there to make sure the background color matches the user's preference before the actual app loads*/
|
|
165
165
|
--dr-color-grid: hsl(0, 0%, 43%);
|
|
166
|
+
--dr-color-board-bg-line: hsl(210, 50%, 55%, 35%);
|
|
167
|
+
--dr-color-board-bg-line-secondary: hsl(210, 50%, 55%, 18%);
|
|
166
168
|
/* UI */
|
|
167
169
|
--dr-color-low: hsl(204, 16%, 94%);
|
|
168
170
|
--dr-color-low-border: hsl(204, 16%, 92%);
|
|
@@ -217,6 +219,8 @@
|
|
|
217
219
|
/* if you ever update --dr-color-background, update the hardcoded values in theme-init.js and globals.css
|
|
218
220
|
they're there to make sure the background color matches the user's preference before the actual app loads*/
|
|
219
221
|
--dr-color-grid: hsl(0, 0%, 40%);
|
|
222
|
+
--dr-color-board-bg-line: hsl(210, 70%, 70%, 25%);
|
|
223
|
+
--dr-color-board-bg-line-secondary: hsl(210, 70%, 70%, 13%);
|
|
220
224
|
/* UI */
|
|
221
225
|
--dr-color-low: hsl(260, 4.5%, 10.5%);
|
|
222
226
|
--dr-color-low-border: hsl(207, 10%, 10%);
|
|
@@ -346,6 +350,34 @@ input,
|
|
|
346
350
|
height: 100%;
|
|
347
351
|
}
|
|
348
352
|
|
|
353
|
+
/* Board background patterns (`DrInstance.backgroundType`), rendered as an SVG overlay
|
|
354
|
+
on top of `.dr-background`. Unlike the old CSS `background-image` version, this is
|
|
355
|
+
generated dynamically (see `DefaultBackground`) so the pattern pans and scales with
|
|
356
|
+
the camera exactly like the dot grid rendered by `DefaultGrid`. */
|
|
357
|
+
.dr-background-pattern {
|
|
358
|
+
position: absolute;
|
|
359
|
+
inset: 0px;
|
|
360
|
+
width: 100%;
|
|
361
|
+
height: 100%;
|
|
362
|
+
pointer-events: none;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.dr-bg-line {
|
|
366
|
+
stroke: var(--dr-color-board-bg-line);
|
|
367
|
+
stroke-width: 1px;
|
|
368
|
+
fill: none;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.dr-bg-line-secondary {
|
|
372
|
+
stroke: var(--dr-color-board-bg-line-secondary);
|
|
373
|
+
stroke-width: 1px;
|
|
374
|
+
fill: none;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.dr-bg-dot {
|
|
378
|
+
fill: var(--dr-color-board-bg-line);
|
|
379
|
+
}
|
|
380
|
+
|
|
349
381
|
/* --------------------- Grid Layer --------------------- */
|
|
350
382
|
|
|
351
383
|
.dr-grid {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibodr/draw",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"classnames": "^2.5.1",
|
|
32
32
|
"lz-string": "^1.5.0",
|
|
33
33
|
"radix-ui": "^1.4.3",
|
|
34
|
-
"@ibodr/driver": "0.1.
|
|
35
|
-
"@ibodr/
|
|
36
|
-
"@ibodr/
|
|
34
|
+
"@ibodr/driver": "0.1.11",
|
|
35
|
+
"@ibodr/store": "0.1.11",
|
|
36
|
+
"@ibodr/editor": "0.1.11"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"react": "^18.2.0 || ^19.2.1",
|