Beispiel
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
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
- 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
- Pakete
-
three 0.185.1
- Umgebung
- node
- Erstellt
- 2026-08-17T09:13:42Z
Häufige Annahme
transformUv automatically synchronizes with texture offset and repeat when matrixAutoUpdate is enabled, and CanvasTexture serializes with metadata type CanvasTexture.
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
- 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.
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