monowind 0.2.4 → 0.2.6
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 +11 -0
- package/dist/cdn.js +76 -31
- package/dist/cdn.js.map +1 -1
- package/dist/element.d.ts.map +1 -1
- package/dist/index.js +1299 -919
- package/dist/index.js.map +1 -1
- package/dist/layout.d.ts.map +1 -1
- package/dist/leaf.d.ts +4 -0
- package/dist/leaf.d.ts.map +1 -1
- package/dist/paint.d.ts +1 -0
- package/dist/paint.d.ts.map +1 -1
- package/dist/plain-text.d.ts +10 -0
- package/dist/plain-text.d.ts.map +1 -1
- package/dist/pointer.d.ts.map +1 -1
- package/dist/selection.d.ts +61 -0
- package/dist/selection.d.ts.map +1 -0
- package/dist/tree.d.ts.map +1 -1
- package/dist/types.d.ts +23 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/styles.css +37 -2
package/README.md
CHANGED
|
@@ -38,6 +38,17 @@ import { defineMonoWind } from "monowind";
|
|
|
38
38
|
defineMonoWind();
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
+
## Selection
|
|
42
|
+
|
|
43
|
+
`select="grid"` (the default) selects the rendered grid: drag across
|
|
44
|
+
the art and copy exactly what you see. Double- and triple-click select
|
|
45
|
+
the element under the pointer — the word or the paragraph, as on any
|
|
46
|
+
page — and drag extends word by word or paragraph by paragraph.
|
|
47
|
+
`select="text"` selects the light DOM natively instead. In both modes
|
|
48
|
+
a copy of light-DOM text is plain text laid out by the standard
|
|
49
|
+
`innerText` rules (paragraphs separated by a blank line, table cells
|
|
50
|
+
by tabs).
|
|
51
|
+
|
|
41
52
|
## Scrolling
|
|
42
53
|
|
|
43
54
|
`overflow-y-auto` (or `-scroll`, either axis) makes the element a
|