Changelog
All notable changes to nitro-ui-sketch are documented here. The format follows Keep a Changelog, and versions follow Semantic Versioning. Until 1.0, minor versions may contain breaking changes.
Unreleased
0.1.0 - 2026-12-05
First release.
Added
SketchCanvas: low-latency ink canvas on iOS and Android with pen, monoline, fountain pen, marker, pencil, crayon and watercolor inks (pressure, tilt, nib direction, coalesced and predicted touches), stroke and pixel erasers, lasso selection (move, delete, duplicate, recolour), zoom and pan, and a drawing policy.Drawing: strokes with undo/redo, binary serialization, and PNG, JPEG, SVG and PDF export, usable without a canvas.CanvasControllerand change, selection and viewport listeners.ToolPicker: PencilKit-style palette with undo/redo, drawn instruments, colour swatches, a custom colour picker (the system colour picker on iOS; hue, saturation, brightness and opacity sliders on Android), and width, opacity and eraser-mode options, styled by aToolPickerTheme(toolPickerThemes).itemspicks which controls the bar shows and in what order. Three densities (compact,comfortable,spacious; compact by default on phones, with the swatches in the colour card). It sits on Liquid Glass on iOS 26 and later. Its partsInstrumentButton,ColorPalette,ColorPicker,StrokeWidthPicker,EraserModePicker,ToolPickerButtonandUndoRedoControlsare exported for custom layouts.GlassBackground: a Liquid Glass backdrop on iOS 26 and later, with a solid fallback colour elsewhere.- Ruler, as in PencilKit:
SketchCanvasrulerActiveandCanvasController.rulerActiveshow a straightedge that ink strokes follow when started on or near an edge. Drag it with one finger, turn it with two; it rests on multiples of 45° and shows its angle.ToolPickertoggles it with its'ruler'item (rulerActive,onRulerActiveChange), drawn by the exportedRulerButton. SketchCanvasonTouchDownandCanvasController.addOnTouchDownListener, called when the canvas is first touched;ToolPicker'sref(ToolPickerHandle.dismissOptions()) closes its options card, so a canvas touch can dismiss it as in PencilKit.