textmode.js 0.1.3 → 0.1.4-beta.2

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.
@@ -92,6 +92,15 @@ export declare class TextmodeFont {
92
92
  width: number;
93
93
  height: number;
94
94
  };
95
+ /**
96
+ * Dispose of all resources used by this font manager.
97
+ * This method is idempotent and safe to call multiple times.
98
+ */
99
+ dispose(): void;
100
+ /**
101
+ * Check if this font manager has been disposed
102
+ */
103
+ get isDisposed(): boolean;
95
104
  /** Returns the font size used for rendering. */
96
105
  get fontSize(): number;
97
106
  /** Returns the Typr.js font object. @ignore */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "textmode.js",
3
- "version": "0.1.3",
3
+ "version": "0.1.4-beta.2",
4
4
  "description": "Apply real-time ASCII conversion to any HTML canvas.",
5
5
  "type": "module",
6
6
  "types": "./dist/types/index.d.ts",