@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/index.js CHANGED
@@ -121,7 +121,7 @@ import {
121
121
  white,
122
122
  wrapWithDelegates,
123
123
  yellow
124
- } from "./index-mh94hn7d.js";
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=4D8A7644AF667D7864756E2164756E21
4302
+ //# debugId=E23A05456FB5EA0464756E2164756E21
4284
4303
  //# sourceMappingURL=index.js.map