Renderer

PixiFormUI draws with its own small scene graph on the browser's built-in Canvas 2D API (src/lib/render/canvas.ts, about 1,000 lines, no dependencies).

Why Canvas 2D#

Size The standalone bundle with every control is about 57 KB gzipped.
Many forms per page No WebGL contexts, so there's no per-page limit: 20 forms on one page mount in about half a second.
Compatibility Works wherever <canvas> does, including browsers or devices with WebGL disabled.
Content Security Policy Needs only script-src 'self': no 'unsafe-eval', no workers (worker-src 'none'), no blob: URLs.
Power use Renders only when something changes; an idle form uses no CPU.

API#

The primitives below are what the built-in controls use, and what custom controls are built from. Everything is exported from the library entry:

import { Application, Container, Graphics, Text, Rectangle, Circle, type FederatedPointerEvent } from 'pixiform';

Limits (by design)#