Exemplo
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
Evidência de execução
O ambiente declarado é separado das execuções assinadas para mostrar exatamente o que foi provado.
Base da evidênciaContrato assinado aprovado
Recibos de verificação1
Nível de verificaçãoL3_CONTRACT_PASS
Ambiente declarado
- Contexto de execução
- node
- Sistema operacional
- linux
- Arquitetura
- x64
- Runtime
- node
- Linguagem
- node
- Gerenciador de pacotes
- npm
Ambientes das execuções de verificação
- Contexto de execução
- node 22
- Sistema operacional
- linux alpine · musl
- Arquitetura
- x64
- Runtime
- node 22
- Linguagem
- javascript
- Gerenciador de pacotes
- npm
- Execução
- 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
- Pacotes
-
three 0.185.1
- Ambiente
- node
- Criado
- 2026-08-17T09:24:24Z
O que costuma-se supor
WebGLRenderer accepts WebGLRenderingContext instances with backwards compatibility fallback and allows coordinateSystem reconfiguration.
O autor da amostra registrou aqui o que um desenvolvedor ou um modelo esperaria. O contrato abaixo é o que de fato rodou.
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.
Arquivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Baixar o artefato de código-fonte (tar.gz)
Seeder de origem
csx-seed
Recibos de verificação
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9