Files
vectorcraft/crates/engine/tests
dotCooCoo cf06887782 Plug-ins: importers at API level 4 open type, embedded images, layers and artboards
An importer whose manifest sets `api` 4 and lists `outputKinds` (any of
type, image, layer and artboard) may return point type (text, font
family and style, size, fill, transform), embedded RGBA images stored
as PNG, top-level layers with their names, visibility, lock and
objects, and named artboards that replace the one around the art.
Output of a kind the manifest doesn't list is refused naming the kind.

The host checks the whole output before it makes the document: limits
on layers (256), artboards (100), names (256 characters, no control or
text direction characters), text (1 MiB a type object, 16 MiB in all)
and pixels (16,384 a side, 32 MiB of RGBA in all, checked from the
sizes given before any base64 is decoded), and an image whose bytes
aren't 4 x width x height. One bad entry opens nothing and leaves the
open document as it was. Importers below level 4 read paths alone, as
before. The host's plug-in API level goes to 4.

Docs: docs/plugins.md, docs/gaps.md, docs/target-app-parity.md.
2026-11-22 11:13:38 -08:00
..