Skip to content
This repository was archived by the owner on Oct 2, 2020. It is now read-only.

Use Artboard origin for SVGs #62

@AndrewLeedham

Description

@AndrewLeedham

Expected Behavior

The outputted viewBox and path coordinates to be relative to the Artboard.

Actual Behavior

The outputted viewBox and path coordinates are relative to the whole Document.

Steps to Reproduce the Problem

  1. Create an .xd file with multiple Artboard's
  2. Convert it so SVGs
  3. Compare the output

Demo:
https://codesandbox.io/s/k9o047r413
Shows 2 identical artboards outputting different markup.

Specifications

  • Version: 1.0.3
  • Platform: macOS

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