Expand description
deq-shapes: traditional Kurdish tattoo (deq) motifs as parametric shapes.
A port of the TypeScript reference renderer: SVG and PDF output match it byte for byte (ADR 0008, ADR 0011).
Re-exports§
pub use error::DeqError;pub use error::ErrorCode;pub use error::Result;pub use flag::render_flag;pub use generate::PatternResult;pub use generate::pattern;pub use leet::DecodedLeet;pub use leet::LeetResult;pub use leet::Script;pub use leet::decode_leet;pub use leet::detect_script;pub use leet::leet;pub use leet::leet_table;pub use random::Random;pub use registry::get_shape;pub use registry::has_shape;pub use registry::list_categories;pub use registry::list_shapes;pub use scene::Cell;pub use scene::Scene;pub use scene::scene_svg;pub use svg::compose;pub use svg::render;
Modules§
- color
- CSS colour parsing for formats that need numbers (PDF, JPG matte, concrete raster SVG).
- drawing
- A format-neutral vector drawing built from flat geometry, used by the PDF writer.
- error
- The only error type the library returns.
- expand
- Expand a shape (generators, conditions, references) into flat geometry.
- export
- The core export formats, the same files as
@0xdolan/deq-exporters(ADR 0011). - flag
- The Kurdish flag (
spec/flag.json) as a standalone SVG, in each of its variants. - format
- Deterministic number and text formatting, identical to the TypeScript reference (ADR 0008).
- generate
- Seeded pattern generator: bands, grids, rosettes and borders of Deq motifs (ADR 0015).
- geometry
- Flat geometry: what a shape expands to, plus similarity transforms and path parsing.
- leet
- Deq Leet: text written with Deq glyphs, and decoding of
basicoutput (ADR 0015). - options
- Render options (PRD §8.1), their defaults and runtime validation.
- A small, deterministic PDF 1.7 writer (ADR 0009), byte for byte the TypeScript output.
- random
- The seeded random source shared by every port (ADR 0015).
- raster
- Raster output: SVG rendered with resvg and encoded to PNG, JPG and WebP, plus ICO packing.
- registry
- The shape catalog: lookup with “did you mean” hints, listing and categories.
- scene
- Scenes: glyphs placed on a canvas larger than one shape (ADR 0015).
- svg
- Deterministic, accessible SVG output for shapes and compositions.
- validate
deq validate: a structural check of a shape spec, then a render of every variant.
Constants§
- CRATE_
NAME - The crate name as published on crates.io.
- VERSION
- The crate version (shared, unified Deq version).