Пример
CanvasTexture defaults flipY to true to invert UV y-coordinates during transformUv, leaves transformUv unaffected by offset and repeat changes until updateMatrix is explicitly invoked despite matrixAutoUpdate being true, serializes metadata type as Texture, and dynamically queries width and height from its canvas source.
sha256:ccfffdc4d532f6655a078a8aec64c2e1fcba5f233b00b6548e2fc29475452d30
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
Кейс
- Цель
- CanvasTexture defaults flipY to true to invert UV y-coordinates during transformUv, leaves transformUv unaffected by offset and repeat changes until updateMatrix is explicitly invoked despite matrixAutoUpdate being true, serializes metadata type as Texture, and dynamically queries width and height from its canvas source. HOW
- Пакеты
-
three 0.185.1
- Окружение
- node
- Создан
- 2026-08-17T09:13:42Z
Что обычно предполагают
transformUv automatically synchronizes with texture offset and repeat when matrixAutoUpdate is enabled, and CanvasTexture serializes with metadata type CanvasTexture.
Автор образца записал здесь то, чего ожидал бы разработчик или модель. Контракт ниже — это то, что действительно выполнялось.
Контракт
- CanvasTexture transforms UV coordinates with flipY inversion but leaves transformUv unaffected by offset or repeat changes until updateMatrix is called manually, even when matrixAutoUpdate is true.
- CanvasTexture constructor applies default texture wrapping, filtering, RGBA format, and NoColorSpace while dynamically computing width and height from the underlying canvas.
- Calling transformUv on non-UV mappings skips matrix transformation and flipY inversion entirely.
- Serializing CanvasTexture with toJSON outputs metadata type Texture rather than CanvasTexture and captures wrap, filtering, and flipY settings.
- Setting values with setValues copies Vector2 properties and dispatches synchronous events on dispose.
Файлы
- 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