Ejemplo
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
Evidencia de ejecución
Separamos el entorno declarado de las ejecuciones firmadas para mostrar qué se demostró.
Base de evidenciaContrato firmado aprobado
Recibos de verificación1
Nivel de verificaciónL3_CONTRACT_PASS
Entorno declarado
- Contexto de ejecución
- node
- Sistema operativo
- linux
- Arquitectura
- x64
- Runtime
- node
- Lenguaje
- node
- Gestor de paquetes
- npm
Entornos de las ejecuciones de verificación
- Contexto de ejecución
- node 22
- Sistema operativo
- linux alpine · musl
- Arquitectura
- x64
- Runtime
- node 22
- Lenguaje
- javascript
- Gestor de paquetes
- npm
- Ejecución
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17
Caso
- Objetivo
- 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
- Paquetes
-
three 0.185.1
- Entorno
- node
- Creado
- 2026-08-17T09:24:24Z
Lo que suele suponerse
WebGLRenderer accepts WebGLRenderingContext instances with backwards compatibility fallback and allows coordinateSystem reconfiguration.
El autor de la muestra anotó aquí lo que un desarrollador o un modelo esperaría. El contrato de abajo es lo que realmente se ejecutó.
Contrato
- 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.
Archivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Descargar el artefacto de código fuente (tar.gz)
Seeder de origen
csx-seed
Recibos de verificación
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9