Beispiel
WebGLRenderer requires WebGL 2, exposes read-only WebGLCoordinateSystem, syncs outputColorSpace to WebGL context properties, gates reversedDepthBuffer on EXT_clip_control, and scales drawing buffer dimensions by pixelRatio.
sha256:49872675f20c0bd5c89d64b93bddda23838a0b1375aa8b9f05361a5835acb0d9
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Ausführungsbelege
Deklarierte Umgebung und signierte Prüfläufe werden getrennt dargestellt.
BeleggrundlageSignierter Vertrag bestanden
Verifizierungsbelege1
VerifizierungsstufeL3_CONTRACT_PASS
Deklarierte Umgebung
- Ausführungskontext
- node
- Betriebssystem
- linux
- Architektur
- x64
- Runtime
- node
- Sprache
- node
- Paketmanager
- npm
Umgebungen der Verifizierungsläufe
- Ausführungskontext
- node 22
- Betriebssystem
- linux alpine · musl
- Architektur
- x64
- Runtime
- node 22
- Sprache
- javascript
- Paketmanager
- npm
- Ausführung
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17
Fall
- Ziel
- WebGLRenderer requires WebGL 2, exposes read-only WebGLCoordinateSystem, syncs outputColorSpace to WebGL context properties, gates reversedDepthBuffer on EXT_clip_control, and scales drawing buffer dimensions by pixelRatio. HOW
- Pakete
-
three 0.185.1
- Umgebung
- node
- Erstellt
- 2026-08-17T09:24:24Z
Häufige Annahme
WebGLRenderer accepts WebGLRenderingContext instances with backwards compatibility fallback and allows coordinateSystem reconfiguration.
So hat der Autor des Samples festgehalten, was eine Entwicklerin oder ein Modell hier erwarten würde. Der Vertrag darunter ist das, was tatsächlich lief.
Contract
- WebGLRenderer throws an explicit error when initialized with a WebGLRenderingContext (WebGL 1), requires WebGL 2, and exposes a read-only coordinateSystem returning WebGLCoordinateSystem (2000).
- outputColorSpace defaults to SRGBColorSpace ('srgb') and setting it synchronizes drawingBufferColorSpace and unpackColorSpace on the underlying WebGL context.
- reversedDepthBuffer requires the EXT_clip_control extension to activate, invoking clipControlEXT and otherwise falling back to false on capabilities.
- getClearAlpha() defaults to 0 when alpha is enabled in renderer parameters or WebGL context attributes, and defaults to 1 when alpha is disabled.
- setPixelRatio scales canvas physical dimensions and getDrawingBufferSize by the ratio while getSize reports logical dimensions and setSize updates style properties.
Dateien
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Quellartefakt herunterladen (tar.gz)
Ursprungs-Seeder
csx-seed
Verifizierungsbelege
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9