monowind 0.3.0 → 0.3.1
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 +18 -0
- package/dist/cdn.js +164 -116
- package/dist/cdn.js.map +1 -1
- package/dist/element.d.ts.map +1 -1
- package/dist/glyph-box.d.ts +25 -7
- package/dist/glyph-box.d.ts.map +1 -1
- package/dist/glyphs.d.ts +10 -0
- package/dist/glyphs.d.ts.map +1 -1
- package/dist/index.js +1857 -1640
- package/dist/index.js.map +1 -1
- package/dist/layout.d.ts.map +1 -1
- package/dist/paint.d.ts +1 -1
- package/dist/paint.d.ts.map +1 -1
- package/dist/plain-text.d.ts +12 -5
- package/dist/plain-text.d.ts.map +1 -1
- package/dist/style.d.ts.map +1 -1
- package/dist/tree.d.ts.map +1 -1
- package/dist/types.d.ts +10 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/styles.css +88 -69
- package/src/variants.css +8 -2
package/README.md
CHANGED
|
@@ -113,6 +113,24 @@ registerBorderGlyphs("stars", { solid: { tl: "✧", tr: "✧", bl: "✧", br: "
|
|
|
113
113
|
|
|
114
114
|
A registered set is frozen; to change one, register it again.
|
|
115
115
|
|
|
116
|
+
A set names glyphs; whether the FONT has them is the page's business.
|
|
117
|
+
Where it hasn't got one, the browser substitutes another font's, which
|
|
118
|
+
the engine boxes onto its cell so the grid holds — but a substitute
|
|
119
|
+
cannot both fit the cell and fill the row, so it shows as a corner
|
|
120
|
+
broken from the line beside it. Say so and it falls back instead, to a
|
|
121
|
+
glyph the font does draw:
|
|
122
|
+
|
|
123
|
+
```css
|
|
124
|
+
.retro {
|
|
125
|
+
font-family: "Some 8x16 bitmap font";
|
|
126
|
+
--mw-missing-glyphs: "╭╮╰╯"; /* no arcs in this font */
|
|
127
|
+
}
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Inherited, so a theme declares it once for the page; a glyph named
|
|
131
|
+
there counts as unregistered, whatever set an author later asks for.
|
|
132
|
+
The bundled themes declare what their own fonts are missing.
|
|
133
|
+
|
|
116
134
|
A set can also register corner glyphs by `border-radius` — a corner
|
|
117
135
|
draws the registration nearest its radius in cells, the plain corner
|
|
118
136
|
counting at 0 (the defaults round light-line corners to `╭ ╮ ╰ ╯`
|