MAGIC_RADIUS

const
Layout & Sizing

Radius (in SVG user units) of the circle path used by OrigamProgress circular mode. The value 20 is chosen so that CIRCUMFERENCE = 2π×20 ≈ 125.66, which maps cleanly to a 0–100 stroke-dashoffset range.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Resolved value

Ecosystem

Used by

Composables and components that consume this constant.

  • OrigamProgress

Usage

Examples

Ready-to-paste code snippets using this constant.

Computing the SVG circle circumference

typescript