feat(terminal): add WebGL renderer and addon APIs

This commit is contained in:
zhangheng
2026-06-23 16:48:53 +08:00
parent f76d341501
commit 69a670939d
15 changed files with 4199 additions and 740 deletions

View File

@@ -34,11 +34,14 @@ tracing-subscriber = { version = "0.3", features = ["env-filter"] }
validator = { version = "0.20", features = ["derive"] }
vt100 = "0.15"
heck = "0.5"
unicode-segmentation = "1.13"
unicode-width = "0.1"
js-sys = "0.3"
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
web-sys = { version = "0.3", default-features = false, features = [
"BinaryType",
"CanvasRenderingContext2d",
"Clipboard",
"ClipboardEvent",
"CloseEvent",
@@ -52,6 +55,7 @@ web-sys = { version = "0.3", default-features = false, features = [
"ErrorEvent",
"Event",
"EventTarget",
"HtmlCanvasElement",
"HtmlElement",
"InputEvent",
"KeyboardEvent",
@@ -61,6 +65,12 @@ web-sys = { version = "0.3", default-features = false, features = [
"Navigator",
"ResizeObserver",
"ResizeObserverEntry",
"WebGl2RenderingContext",
"WebGlBuffer",
"WebGlProgram",
"WebGlShader",
"WebGlTexture",
"WebGlUniformLocation",
"WebSocket",
"WheelEvent",
"Window",