Bland.TitleBlock (Elixir Technical Drawing v0.5.0)

Copy Markdown View Source

Engineering-drawing title block.

A title block is the nested rectangle grid you find in the bottom-right corner of a drafting sheet. It records provenance: project, title, author, date, scale, sheet number, revision. BLAND renders it as plain SVG so it prints cleanly on paper.

Attach one to a figure with Bland.title_block/2:

Bland.figure()
|> Bland.line(xs, ys)
|> Bland.title_block(
  project: "Project ORION",
  title: "Drag coefficient vs Mach",
  drawn_by: "J. Doe",
  checked_by: "R. Koss",
  date: "1974-03-21",
  scale: "1:1",
  sheet: "3 of 9",
  rev: "B"
)

Summary

Functions

Builds a title block struct from a keyword list.

Types

t()

@type t() :: %Bland.TitleBlock{
  checked_by: String.t() | nil,
  date: String.t() | nil,
  drawing_no: String.t() | nil,
  drawn_by: String.t() | nil,
  height: number(),
  position: :bottom_right | :bottom_left,
  project: String.t() | nil,
  rev: String.t() | nil,
  scale: String.t() | nil,
  sheet: String.t() | nil,
  title: String.t() | nil,
  width: number()
}

Functions

new(opts \\ [])

@spec new(keyword()) :: t()

Builds a title block struct from a keyword list.