Podium.AutoShapeType (Podium v0.3.0)

Copy Markdown View Source

Maps auto shape preset atoms to OOXML preset geometry strings.

Podium supports all 187 preset geometries from the OOXML specification, including rectangles, arrows, stars, callouts, and flowchart symbols.

Use all_types/0 to get the full sorted list of available shape presets, and prst/1 to look up the OOXML preset string for a given atom.

See the Shapes and Styling guide for usage examples.

Summary

Functions

Returns a sorted list of all available shape type atoms.

Returns the display name for a shape type atom.

Looks up the OOXML preset string and display name for a shape type atom.

Returns the OOXML preset geometry string for a shape type atom.

Functions

all_types()

@spec all_types() :: [atom()]

Returns a sorted list of all available shape type atoms.

basename(preset)

@spec basename(atom()) :: String.t()

Returns the display name for a shape type atom.

lookup(preset)

@spec lookup(atom()) :: {String.t(), String.t()}

Looks up the OOXML preset string and display name for a shape type atom.

Returns a {prst_string, basename} tuple. Raises ArgumentError if the preset is not recognized.

prst(preset)

@spec prst(atom()) :: String.t()

Returns the OOXML preset geometry string for a shape type atom.