Plushie.Canvas.Shape.DragBounds (Plushie v0.6.0)

Copy Markdown View Source

Drag constraint bounds for interactive canvas shapes.

Summary

Functions

Constructs drag bounds from a keyword list.

Types

t()

@type t() :: %Plushie.Canvas.Shape.DragBounds{
  max_x: number() | nil,
  max_y: number() | nil,
  min_x: number() | nil,
  min_y: number() | nil
}

Functions

from_opts(opts)

@spec from_opts(keyword()) :: t()

Constructs drag bounds from a keyword list.