monowind 0.2.3 → 0.2.5
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 +14 -2
- package/dist/cdn.js +1205 -29
- package/dist/cdn.js.map +1 -1
- package/dist/element.d.ts.map +1 -1
- package/dist/grid.d.ts.map +1 -1
- package/dist/index.js +1500 -1025
- package/dist/index.js.map +1 -1
- package/dist/layout.d.ts +5 -0
- 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.map +1 -1
- package/dist/plain-text.d.ts +29 -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/sort.js +233 -5
- package/dist/sort.js.map +1 -1
- package/dist/style.d.ts.map +1 -1
- package/dist/tree.d.ts.map +1 -1
- package/dist/types.d.ts +42 -6
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/utilities.css +30 -6
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
|
|
@@ -48,8 +59,9 @@ on the grid in whole-cell steps and draws the scrollbar as characters
|
|
|
48
59
|
`scrollbar-color` honored and defaulting to `currentColor` like borders,
|
|
49
60
|
`scrollbar-width: none` honored, thickness via
|
|
50
61
|
`scrollbar-<n>` cells, per bar with `scrollbar-x-<n>` /
|
|
51
|
-
`scrollbar-y-<n>`
|
|
52
|
-
|
|
62
|
+
`scrollbar-y-<n>`; `scrollbar-inset-<n>` keeps cells clear around
|
|
63
|
+
the bars for your own arrow buttons). Scroll containers pinned to the
|
|
64
|
+
bottom stay pinned as content grows — chat logs need no code.
|
|
53
65
|
|
|
54
66
|
## Border & rule glyphs
|
|
55
67
|
|