mirror of
https://github.com/Nexoniarz/YAPF.git
synced 2026-11-03 21:14:27 +00:00
JavaScript port decodes YAPF 2; VS Code and Figma open every file
yapf.js: decodeTexture (container, yapf-sum checks, code books with context decoding, 16-bit / float planes, GPU block tiles), BC1-BC7 / BC6H block decoding and textureToRGBA for display. Matches the C library on 417 generated files (surfaces bit-exact) and survives fuzzing with clean YapfErrors; fixtures in bindings/js/test-data keep it checked. VS Code preview: pickers for mip, face, layer, frame and slice; storage, normal-map convention and version in the info bar. Figma import: textures converted to 8-bit, 8-bit images stay exact. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DVrVthWN8GsmgHGUhhsCYm
This commit is contained in:
parent
fdbd0a6b8f
commit
0ba1f0af17
23 changed files with 1751 additions and 66 deletions
|
|
@ -9,6 +9,12 @@ Both directions are pixel-exact: the plugin carries its own small PNG
|
|||
encoder/decoder instead of going through a canvas, which would alter
|
||||
semi-transparent pixels.
|
||||
|
||||
Import reads every YAPF file, version 1 and 2. 8-bit images keep their
|
||||
exact pixels; GPU blocks (BC1–BC7, BC6H), 16-bit and float textures are
|
||||
converted to 8-bit for display (Figma images are 8-bit); cubes, arrays,
|
||||
volumes and animations bring their first image. Damaged files are
|
||||
reported as such.
|
||||
|
||||
## Install (development plugin)
|
||||
|
||||
1. Use the **Figma desktop app**.
|
||||
|
|
|
|||
Loading…
Reference in a new issue