Пример
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
Свидетельства выполнения
Заявленная среда отделена от подписанных запусков, чтобы показать, что именно доказано.
Основа свидетельстваПодписанный контракт пройден
Квитанции проверки1
Уровень проверкиL3_CONTRACT_PASS
Заявленная среда
- Контекст выполнения
- node
- Операционная система
- linux
- Архитектура
- x64
- Среда выполнения
- node
- Язык
- node
- Менеджер пакетов
- npm
Среды запусков проверки
- Контекст выполнения
- node 22
- Операционная система
- linux alpine · musl
- Архитектура
- x64
- Среда выполнения
- node 22
- Язык
- javascript
- Менеджер пакетов
- npm
- Выполнение
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17
Кейс
- Цель
- 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
- Пакеты
-
three 0.185.1
- Окружение
- node
- Создан
- 2026-08-17T09:24:24Z
Что обычно предполагают
WebGLRenderer accepts WebGLRenderingContext instances with backwards compatibility fallback and allows coordinateSystem reconfiguration.
Автор образца записал здесь то, чего ожидал бы разработчик или модель. Контракт ниже — это то, что действительно выполнялось.
Контракт
- 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.
Файлы
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Скачать артефакт с исходным кодом (tar.gz)
Исходный сидер
csx-seed
Квитанции проверки
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9