textmode.js 0.6.0 → 0.7.0-beta.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 +0 -8
- package/dist/textmode.esm.js +2413 -2058
- package/dist/textmode.umd.js +18 -10
- package/dist/types/index.d.ts +4 -0
- package/dist/types/rendering/webgl/core/Framebuffer.d.ts +2 -0
- package/dist/types/rendering/webgl/core/Renderer.d.ts +12 -1
- package/dist/types/rendering/webgl/core/Shader.d.ts +3 -0
- package/dist/types/rendering/webgl/utils/hash.d.ts +0 -16
- package/dist/types/textmode/Textmodifier.d.ts +4 -0
- package/dist/types/textmode/interfaces/ITextmodifier.d.ts +8 -2
- package/dist/types/textmode/layers/ILayerManager.d.ts +36 -0
- package/dist/types/textmode/layers/Layer2DCompositor.d.ts +74 -0
- package/dist/types/textmode/layers/LayerManager.d.ts +94 -0
- package/dist/types/textmode/layers/TextmodeLayer.d.ts +193 -0
- package/dist/types/textmode/layers/filters/FilterRegistry.d.ts +87 -0
- package/dist/types/textmode/layers/filters/LayerFilterManager.d.ts +71 -0
- package/dist/types/textmode/layers/filters/index.d.ts +4 -0
- package/dist/types/textmode/layers/filters/types.d.ts +123 -0
- package/dist/types/textmode/layers/index.d.ts +6 -0
- package/dist/types/textmode/layers/types.d.ts +74 -0
- package/dist/types/textmode/loading/LoadingScreenManager.d.ts +4 -4
- package/dist/types/textmode/managers/MouseManager.d.ts +6 -1
- package/dist/types/textmode/managers/TouchManager.d.ts +5 -0
- package/dist/types/textmode/mixins/interfaces/IKeyboardMixin.d.ts +0 -1
- package/dist/types/textmode/mixins/interfaces/IRenderingMixin.d.ts +80 -27
- package/dist/types/textmode/mixins/interfaces/ITouchMixin.d.ts +1 -1
- package/package.json +1 -6
package/README.md
CHANGED
|
@@ -17,8 +17,6 @@ The library is designed to be easy to use and accessible to developers of all sk
|
|
|
17
17
|
## Features
|
|
18
18
|
|
|
19
19
|
- Real‑time* ASCII/textmode rendering with a simple drawing API
|
|
20
|
-
- `WebGL2` pipeline with [Multiple Render Targets (MRT)](https://en.wikipedia.org/wiki/Multiple_Render_Targets) for rich per‑cell data
|
|
21
|
-
- Instanced rendering and batching for low draw call counts
|
|
22
20
|
- Font system with runtime font loading and dynamic sizing *(supports TTF/OTF/WOFF)*
|
|
23
21
|
- Author custom filter shaders in [`GLSL ES 3.00`](https://registry.khronos.org/OpenGL/specs/es/3.0/GLSL_ES_Specification_3.00.pdf) for advanced effects
|
|
24
22
|
- Flexible exporting: TXT, SVG, raster images *(PNG/JPG/WebP)*, animated GIFs, and video *(WebM)*
|
|
@@ -71,9 +69,6 @@ To use `textmode.js` in a UMD environment, download the latest `umd` build from
|
|
|
71
69
|
|
|
72
70
|
<!-- Standard bundle (with embedded UrsaFont) -->
|
|
73
71
|
<script src="https://cdn.jsdelivr.net/npm/textmode.js@latest/dist/textmode.umd.js"></script>
|
|
74
|
-
|
|
75
|
-
<!-- OR Minified bundle (requires external font) -->
|
|
76
|
-
<!-- <script src="https://cdn.jsdelivr.net/npm/textmode.js@latest/dist/textmode.umd.min.js"></script> -->
|
|
77
72
|
</head>
|
|
78
73
|
<body>
|
|
79
74
|
<script src="sketch.js"></script>
|
|
@@ -138,9 +133,6 @@ Then, you can import it in your JavaScript or TypeScript files:
|
|
|
138
133
|
// Standard bundle (with embedded UrsaFont)
|
|
139
134
|
import { textmode } from 'textmode.js';
|
|
140
135
|
|
|
141
|
-
// OR Minified bundle (requires external font)
|
|
142
|
-
// import { textmode } from 'textmode.js/min';
|
|
143
|
-
|
|
144
136
|
const t = textmode.create({
|
|
145
137
|
width: window.innerWidth,
|
|
146
138
|
height: window.innerHeight,
|