Skip to main content

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.
  • CanvasController and 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 a ToolPickerTheme (toolPickerThemes). items picks 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 parts InstrumentButton, ColorPalette, ColorPicker, StrokeWidthPicker, EraserModePicker, ToolPickerButton and UndoRedoControls are exported for custom layouts.
  • GlassBackground: a Liquid Glass backdrop on iOS 26 and later, with a solid fallback colour elsewhere.
  • Ruler, as in PencilKit: SketchCanvas rulerActive and CanvasController.rulerActive show 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. ToolPicker toggles it with its 'ruler' item (rulerActive, onRulerActiveChange), drawn by the exported RulerButton.
  • SketchCanvas onTouchDown and CanvasController.addOnTouchDownListener, called when the canvas is first touched; ToolPicker's ref (ToolPickerHandle.dismissOptions()) closes its options card, so a canvas touch can dismiss it as in PencilKit.