Changes since version 2.15.0¶
New Features¶
image_codecexport option —export_snapshot/export_figure/display_snapshot/start_animation_recordingacceptimage_codec: EImageCodec | None = None.Noneauto-selects JPEG (honoringImageData.jpeg_quality) for uint8 1/3-channel images and lossless zlib otherwise;RAW/JPEG/ZLIBforce a codec. Non-JPEG images (uint16/float32/RGBA) are now zlib-compressed instead of raw base64, andJPEGon a non-eligible image raises a clear error.
Bug Fixes¶
-
Image-bearing HTML export now renders images — the export bootstrap called
storeImageFramewithout it being exposed on thewindow.__tangabridge, so static and animated image exports threwReferenceError: storeImageFrame is not defined. The frame-store helpers (storeImageFrame,takeImageFrame,hasImageFrame,registerImageFrameConsumer) are now part of the bridge. -
Compressed animated exports no longer race the decompression —
compress=Truedecompressed the animation JSON in an async module while the bootstrap read it synchronously, which could leave the animation empty. The decompression now exposes awindow.__tangaAnimReadypromise that the bootstrap awaits before reading the data. -
2D HTML exports no longer throw
applyOrthoFrustum is not defined— the 2D resize handler referencedapplyOrthoFrustum(fromcamera-fit.js) without it being exposed on thewindow.__tangabridge; it is now part of the bridge. -
delivery="offline"works on Linux again — the offline export ran esbuild through Node.js unconditionally, which fails on Unix wherebin/esbuildis a native ELF/Mach-O binary (Node chokes on it with aSyntaxError). esbuild is now invoked directly on Unix and via Node only on Windows (wherebin/esbuildis a JS launcher).