js-draw 1.2.0 → 1.2.2
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/README.md +1 -1
- package/dist/Editor.css +5 -0
- package/dist/bundle.js +2 -2
- package/dist/bundledStyles.js +1 -1
- package/dist/cjs/components/lib.d.ts +2 -2
- package/dist/cjs/components/lib.js +15 -2
- package/dist/cjs/rendering/RenderablePathSpec.d.ts +1 -0
- package/dist/cjs/rendering/RenderablePathSpec.js +1 -0
- package/dist/cjs/rendering/lib.d.ts +1 -0
- package/dist/cjs/rendering/lib.js +5 -1
- package/dist/cjs/util/ReactiveValue.js +1 -1
- package/dist/cjs/util/adjustEditorThemeForContrast.d.ts +3 -1
- package/dist/cjs/util/adjustEditorThemeForContrast.js +52 -23
- package/dist/cjs/util/adjustEditorThemeForContrast.test.d.ts +1 -0
- package/dist/cjs/version.js +1 -1
- package/dist/mjs/components/lib.d.ts +2 -2
- package/dist/mjs/components/lib.mjs +2 -2
- package/dist/mjs/rendering/RenderablePathSpec.d.ts +1 -0
- package/dist/mjs/rendering/RenderablePathSpec.mjs +1 -0
- package/dist/mjs/rendering/lib.d.ts +1 -0
- package/dist/mjs/rendering/lib.mjs +1 -0
- package/dist/mjs/util/ReactiveValue.mjs +1 -1
- package/dist/mjs/util/adjustEditorThemeForContrast.d.ts +3 -1
- package/dist/mjs/util/adjustEditorThemeForContrast.mjs +52 -23
- package/dist/mjs/util/adjustEditorThemeForContrast.test.d.ts +1 -0
- package/dist/mjs/version.mjs +1 -1
- package/package.json +3 -3
- package/src/toolbar/AbstractToolbar.scss +3 -0
- package/src/toolbar/widgets/components/makeGridSelector.scss +5 -0
package/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# js-draw
|
2
2
|
|
3
|
-
[NPM package](https://www.npmjs.com/package/js-draw) | [GitHub](https://github.com/personalizedrefrigerator/js-draw) | [Documentation](https://personalizedrefrigerator.github.io/js-draw/typedoc/) | [Try it!](https://personalizedrefrigerator.github.io/js-draw/example/example.html)
|
3
|
+
[NPM package](https://www.npmjs.com/package/js-draw) | [GitHub](https://github.com/personalizedrefrigerator/js-draw) | [Documentation](https://personalizedrefrigerator.github.io/js-draw/typedoc/modules/js_draw.html) | [Try it!](https://personalizedrefrigerator.github.io/js-draw/example/example.html)
|
4
4
|
|
5
5
|

|
6
6
|
|
package/dist/Editor.css
CHANGED
@@ -246,6 +246,8 @@
|
|
246
246
|
align-items: center;
|
247
247
|
justify-content: center;
|
248
248
|
padding: 4px;
|
249
|
+
user-select: none;
|
250
|
+
-webkit-user-select: none;
|
249
251
|
}
|
250
252
|
.toolbar-grid-selector .choice-button .icon {
|
251
253
|
flex-grow: 1;
|
@@ -255,6 +257,7 @@
|
|
255
257
|
.toolbar-grid-selector .choice-button.checked {
|
256
258
|
background-color: var(--selection-background-color);
|
257
259
|
color: var(--selection-foreground-color);
|
260
|
+
--icon-color: var(--selection-foreground-color);
|
258
261
|
}
|
259
262
|
|
260
263
|
/* The *main* root toolbar element */
|
@@ -303,6 +306,8 @@
|
|
303
306
|
border-radius: 6px;
|
304
307
|
border: none;
|
305
308
|
box-shadow: 0px 0px 2px var(--shadow-color);
|
309
|
+
user-select: none;
|
310
|
+
-webkit-user-select: none;
|
306
311
|
transition: background-color 0.15s ease, box-shadow 0.25s ease, opacity 0.2s ease;
|
307
312
|
}
|
308
313
|
|