@opentui/core 0.0.0-20250912-12c969f4 → 0.0.0-20250915-f5db043a
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/3d.js +1 -1
- package/3d.js.map +1 -1
- package/Renderable.d.ts +0 -2
- package/buffer.d.ts +1 -0
- package/{index-mh94hn7d.js → index-6esrcarp.js} +524 -111
- package/index-6esrcarp.js.map +38 -0
- package/index.js +21 -2
- package/index.js.map +3 -3
- package/lib/KeyHandler.d.ts +7 -3
- package/lib/parse.keypress-kitty.d.ts +2 -0
- package/lib/parse.keypress.d.ts +11 -1
- package/package.json +12 -7
- package/renderables/TextNode.d.ts +5 -2
- package/renderer.d.ts +8 -0
- package/testing/test-renderer.d.ts +3 -0
- package/testing.d.ts +3 -0
- package/testing.js +343 -0
- package/testing.js.map +12 -0
- package/types.d.ts +2 -0
- package/zig.d.ts +3 -1
- package/index-mh94hn7d.js.map +0 -37
package/index.js
CHANGED
|
@@ -121,7 +121,7 @@ import {
|
|
|
121
121
|
white,
|
|
122
122
|
wrapWithDelegates,
|
|
123
123
|
yellow
|
|
124
|
-
} from "./index-
|
|
124
|
+
} from "./index-6esrcarp.js";
|
|
125
125
|
// src/post/filters.ts
|
|
126
126
|
function applyScanlines(buffer, strength = 0.8, step = 2) {
|
|
127
127
|
const width = buffer.width;
|
|
@@ -1626,18 +1626,37 @@ class TextNodeRenderable extends BaseRenderable {
|
|
|
1626
1626
|
getRenderable(id) {
|
|
1627
1627
|
return this._children.find((child) => typeof child !== "string" && child.id === id);
|
|
1628
1628
|
}
|
|
1629
|
+
get fg() {
|
|
1630
|
+
return this._fg;
|
|
1631
|
+
}
|
|
1629
1632
|
set fg(fg2) {
|
|
1633
|
+
if (!fg2) {
|
|
1634
|
+
this._fg = undefined;
|
|
1635
|
+
this.requestRender();
|
|
1636
|
+
return;
|
|
1637
|
+
}
|
|
1630
1638
|
this._fg = parseColor(fg2);
|
|
1631
1639
|
this.requestRender();
|
|
1632
1640
|
}
|
|
1633
1641
|
set bg(bg2) {
|
|
1642
|
+
if (!bg2) {
|
|
1643
|
+
this._bg = undefined;
|
|
1644
|
+
this.requestRender();
|
|
1645
|
+
return;
|
|
1646
|
+
}
|
|
1634
1647
|
this._bg = parseColor(bg2);
|
|
1635
1648
|
this.requestRender();
|
|
1636
1649
|
}
|
|
1650
|
+
get bg() {
|
|
1651
|
+
return this._bg;
|
|
1652
|
+
}
|
|
1637
1653
|
set attributes(attributes) {
|
|
1638
1654
|
this._attributes = attributes;
|
|
1639
1655
|
this.requestRender();
|
|
1640
1656
|
}
|
|
1657
|
+
get attributes() {
|
|
1658
|
+
return this._attributes;
|
|
1659
|
+
}
|
|
1641
1660
|
}
|
|
1642
1661
|
|
|
1643
1662
|
class RootTextNodeRenderable extends TextNodeRenderable {
|
|
@@ -4280,5 +4299,5 @@ export {
|
|
|
4280
4299
|
ASCIIFont
|
|
4281
4300
|
};
|
|
4282
4301
|
|
|
4283
|
-
//# debugId=
|
|
4302
|
+
//# debugId=E23A05456FB5EA0464756E2164756E21
|
|
4284
4303
|
//# sourceMappingURL=index.js.map
|