Skip to content

Add SVG read into the drawing variant #82

Description

@Mearman

SVG's primitive set (rect/circle/ellipse/line/polyline/polygon/path) is a near-1:1 match for ContentVector, and it's the same mapping odf.js already performs for ODF's draw: primitives — SVG is the native source format for that vocabulary, whereas .odg is niche.

The path d grammar overlaps totally for M/L/H/V/C/Z (already parsed in odf.js's typed/shared/path.ts); S/Q/T/A are well-understood exact-or-approximate conversions, not research.

SVG→PDF via the drawing variant needs zero new layout code; SVG→odg is a free same-variant bridge. Medium because of the S/Q/T/A path-grammar gap plus transform/style handling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions