Versions in this module Expand all Collapse all v0 v0.1.24 Jul 5, 2026 v0.1.23 Jul 5, 2026 v0.1.22 Jul 3, 2026 v0.1.21 Jun 30, 2026 v0.1.20 Jun 27, 2026 v0.1.19 Jun 22, 2026 v0.1.18 Jun 19, 2026 v0.1.17 Jun 18, 2026 v0.1.16 Jun 15, 2026 v0.1.15 Jun 15, 2026 v0.1.14 Jun 14, 2026 v0.1.13 Jun 14, 2026 v0.1.12 Jun 14, 2026 v0.1.11 Jun 14, 2026 v0.1.10 Jun 13, 2026 v0.1.9 Jun 13, 2026 v0.1.8 Jun 12, 2026 v0.1.7 Jun 9, 2026 Changes in this version + const PanelThemeDark + const PanelThemeLight + const PointerCancel + const PointerDown + const PointerMove + const PointerUp + var ErrInvalidInput = plugin.ErrInvalidInput + func WriteFrame(w io.Writer, frame Frame) error + type Announce struct + Mode AnnounceMode + Text string + func (c Announce) MarshalJSON() ([]byte, error) + type AnnounceMode string + const AnnounceAssertive + const AnnouncePolite + type Arc struct + CounterClockwise bool + EndAngle float64 + Radius float64 + StartAngle float64 + X float64 + Y float64 + func (c Arc) MarshalJSON() ([]byte, error) + type BezierCurve struct + CP1X float64 + CP1Y float64 + CP2X float64 + CP2Y float64 + X float64 + X0 float64 + Y float64 + Y0 float64 + func (c BezierCurve) MarshalJSON() ([]byte, error) + type Circle struct + Radius float64 + X float64 + Y float64 + func (c Circle) MarshalJSON() ([]byte, error) + type Clear struct + Color string + Height float64 + Width float64 + X float64 + Y float64 + func (c Clear) MarshalJSON() ([]byte, error) + type Clip struct + D string + FillRule FillRule + Height float64 + Points []Point + Radii *Radii + Radius float64 + Shape RegionShape + Width float64 + X float64 + Y float64 + func (c Clip) MarshalJSON() ([]byte, error) + type Command interface + type CommandType string + const CommandAnnounce + const CommandArc + const CommandBezierCurve + const CommandCircle + const CommandClear + const CommandClip + const CommandCursor + const CommandEllipse + const CommandFillText + const CommandFocusRegion + const CommandGradient + const CommandImage + const CommandImageData + const CommandLine + const CommandLineDash + const CommandMeasureText + const CommandPath + const CommandPattern + const CommandPolygon + const CommandPolyline + const CommandQuadraticCurve + const CommandRect + const CommandRegions + const CommandResetStyle + const CommandResetTransform + const CommandRestore + const CommandRotate + const CommandSave + const CommandScale + const CommandSet + const CommandShadow + const CommandSnapshot + const CommandStrokeText + const CommandStyle + const CommandText + const CommandTextBox + const CommandTransform + const CommandTranslate + type CompositeOperation string + const CompositeColor + const CompositeColorBurn + const CompositeColorDodge + const CompositeCopy + const CompositeDarken + const CompositeDestinationAtop + const CompositeDestinationIn + const CompositeDestinationOut + const CompositeDestinationOver + const CompositeDifference + const CompositeExclusion + const CompositeHardLight + const CompositeHue + const CompositeLighten + const CompositeLighter + const CompositeLuminosity + const CompositeMultiply + const CompositeOverlay + const CompositeSaturation + const CompositeScreen + const CompositeSoftLight + const CompositeSourceAtop + const CompositeSourceIn + const CompositeSourceOut + const CompositeSourceOver + const CompositeXOR + type Cursor struct + Value string + func (c Cursor) MarshalJSON() ([]byte, error) + type Ellipse struct + RadiusX float64 + RadiusY float64 + Rotation float64 + X float64 + Y float64 + func (c Ellipse) MarshalJSON() ([]byte, error) + type Event interface + EventType func() EventType + func DecodeEvent(r io.Reader) (Event, error) + func ParseEvent(data []byte) (Event, error) + type EventType string + const EventKey + const EventMetrics + const EventPointer + const EventReady + const EventResize + const EventSnapshot + const EventWheel + type FillRule string + const FillRuleEvenOdd + const FillRuleNonZero + type FillText struct + MaxWidth *float64 + Text string + X float64 + Y float64 + func (c FillText) MarshalJSON() ([]byte, error) + type FocusRegion struct + ID string + func (c FocusRegion) MarshalJSON() ([]byte, error) + type Frame struct + Commands []Command + Regions []Region + type Gradient struct + ID string + Kind GradientKind + R0 float64 + R1 float64 + StartAngle float64 + Stops []GradientStop + X float64 + X0 float64 + X1 float64 + Y float64 + Y0 float64 + Y1 float64 + func (c Gradient) MarshalJSON() ([]byte, error) + type GradientKind string + const GradientConic + const GradientLinear + const GradientRadial + type GradientStop struct + Color string + Offset float64 + type Image struct + Height float64 + Smoothing *bool + SourceHeight float64 + SourceWidth float64 + SourceX float64 + SourceY float64 + Src string + Width float64 + X float64 + Y float64 + func (c Image) MarshalJSON() ([]byte, error) + type ImageData struct + Data []int + Height int + Width int + X float64 + Y float64 + func (c ImageData) MarshalJSON() ([]byte, error) + type KeyEvent struct + Code string + Event string + Key string + Modifiers ModifierState + Repeat bool + Type EventType + func (KeyEvent) EventType() EventType + type Line struct + X1 float64 + X2 float64 + Y1 float64 + Y2 float64 + func (c Line) MarshalJSON() ([]byte, error) + type LineCap string + const LineCapButt + const LineCapRound + const LineCapSquare + type LineDash struct + Offset float64 + Segments []float64 + func (c LineDash) MarshalJSON() ([]byte, error) + type LineJoin string + const LineJoinBevel + const LineJoinMiter + const LineJoinRound + type MeasureText struct + Font string + RequestID string + Text string + func (c MeasureText) MarshalJSON() ([]byte, error) + type ModifierState struct + Alt bool + Ctrl bool + Meta bool + Shift bool + type Paint struct + Alpha *float64 + Composite CompositeOperation + Direction string + Fill string + FillID string + Filter string + Font string + LineCap LineCap + LineJoin LineJoin + LineWidth float64 + MiterLimit *float64 + NoFill bool + NoStroke bool + Stroke string + StrokeID string + TextAlign TextAlign + TextBaseline TextBaseline + type PanelTheme = plugin.PanelTheme + type Path struct + D string + FillRule FillRule + func (c Path) MarshalJSON() ([]byte, error) + type Pattern struct + ID string + Repetition string + Src string + func (c Pattern) MarshalJSON() ([]byte, error) + type Point struct + X float64 + Y float64 + type PointerEvent struct + Button int + Buttons int + Event string + Modifiers ModifierState + PointerID int + PointerType string + RegionID string + Type EventType + X float64 + Y float64 + func (PointerEvent) EventType() EventType + type Polygon struct + Points []Point + func (c Polygon) MarshalJSON() ([]byte, error) + type Polyline struct + Points []Point + func (c Polyline) MarshalJSON() ([]byte, error) + type QuadraticCurve struct + CPX float64 + CPY float64 + X float64 + X0 float64 + Y float64 + Y0 float64 + func (c QuadraticCurve) MarshalJSON() ([]byte, error) + type Radii struct + BottomLeft float64 + BottomRight float64 + TopLeft float64 + TopRight float64 + type RawCommand struct + Fields map[string]any + Type CommandType + func (c RawCommand) MarshalJSON() ([]byte, error) + type ReadyEvent struct + DPR float64 + Height float64 + Scale float64 + Theme PanelTheme + Type EventType + ViewportHeight float64 + ViewportWidth float64 + Width float64 + func (ReadyEvent) EventType() EventType + type Rect struct + Height float64 + Radii *Radii + Radius float64 + Width float64 + X float64 + Y float64 + func (c Rect) MarshalJSON() ([]byte, error) + type Region struct + CapturePointer bool + Cursor string + D string + Height float64 + ID string + Label string + Points []Point + Radii *Radii + Radius float64 + Shape RegionShape + Width float64 + X float64 + Y float64 + func CircleRegion(id string, x, y, radius float64, opts ...RegionOption) Region + func PathRegion(id, d string, opts ...RegionOption) Region + func PolygonRegion(id string, points []Point, opts ...RegionOption) Region + func RectRegion(id string, x, y, width, height float64, opts ...RegionOption) Region + type RegionOption func(*Region) + func WithCapturePointer() RegionOption + func WithCursor(cursor string) RegionOption + func WithLabel(label string) RegionOption + func WithRadii(radii Radii) RegionOption + func WithRadius(radius float64) RegionOption + type RegionShape string + const RegionCircle + const RegionPath + const RegionPolygon + const RegionRect + type Regions struct + Items []Region + func (c Regions) MarshalJSON() ([]byte, error) + type ResetStyle struct + func (c ResetStyle) MarshalJSON() ([]byte, error) + type ResetTransform struct + func (c ResetTransform) MarshalJSON() ([]byte, error) + type ResizeEvent struct + DPR float64 + Height float64 + Scale float64 + Theme PanelTheme + Type EventType + ViewportHeight float64 + ViewportWidth float64 + Width float64 + func (ResizeEvent) EventType() EventType + type Restore struct + func (c Restore) MarshalJSON() ([]byte, error) + type Rotate struct + Angle float64 + func (c Rotate) MarshalJSON() ([]byte, error) + type Save struct + func (c Save) MarshalJSON() ([]byte, error) + type Scale struct + X float64 + Y float64 + func (c Scale) MarshalJSON() ([]byte, error) + type Set struct + Background string + Cursor string + Regions []Region + func (c Set) MarshalJSON() ([]byte, error) + type Shadow struct + Blur float64 + Color string + OffsetX float64 + OffsetY float64 + func (c Shadow) MarshalJSON() ([]byte, error) + type Snapshot struct + MIME string + MinIntervalMs int + Quality float64 + RequestID string + func (c Snapshot) MarshalJSON() ([]byte, error) + type SnapshotEvent struct + DataURL string + Height float64 + MIME string + RequestID string + Type EventType + Width float64 + func (SnapshotEvent) EventType() EventType + type StrokeText struct + MaxWidth *float64 + Text string + X float64 + Y float64 + func (c StrokeText) MarshalJSON() ([]byte, error) + type Style struct + func (c Style) MarshalJSON() ([]byte, error) + type Text struct + MaxWidth *float64 + Text string + X float64 + Y float64 + func (c Text) MarshalJSON() ([]byte, error) + type TextAlign string + const TextAlignCenter + const TextAlignEnd + const TextAlignLeft + const TextAlignRight + const TextAlignStart + type TextBaseline string + const TextBaselineAlphabetic + const TextBaselineBottom + const TextBaselineHanging + const TextBaselineIdeographic + const TextBaselineMiddle + const TextBaselineTop + type TextBox struct + Background string + BackgroundID string + Ellipsis string + Height float64 + LineHeight float64 + MaxLines int + Padding float64 + Radii *Radii + Radius float64 + Text string + VerticalAlign TextVerticalAlign + Width float64 + X float64 + Y float64 + func (c TextBox) MarshalJSON() ([]byte, error) + type TextMetricsEvent struct + ActualBoundingBoxAscent float64 + ActualBoundingBoxDescent float64 + ActualBoundingBoxLeft float64 + ActualBoundingBoxRight float64 + AlphabeticBaseline float64 + EmHeightAscent float64 + EmHeightDescent float64 + FontBoundingBoxAscent float64 + FontBoundingBoxDescent float64 + HangingBaseline float64 + IdeographicBaseline float64 + RequestID string + Text string + Type EventType + Width float64 + func (TextMetricsEvent) EventType() EventType + type TextVerticalAlign string + const TextVerticalAlignBottom + const TextVerticalAlignMiddle + const TextVerticalAlignTop + type Transform struct + A float64 + B float64 + C float64 + D float64 + E float64 + F float64 + func (c Transform) MarshalJSON() ([]byte, error) + type Translate struct + X float64 + Y float64 + func (c Translate) MarshalJSON() ([]byte, error) + type WheelEvent struct + DeltaMode int + DeltaX float64 + DeltaY float64 + Modifiers ModifierState + Type EventType + X float64 + Y float64 + func (WheelEvent) EventType() EventType