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

Use Artboard origin for SVGs #62

Open
AndrewLeedham opened this issue Jan 8, 2019 · 1 comment
Open

Use Artboard origin for SVGs #62

AndrewLeedham opened this issue Jan 8, 2019 · 1 comment

Comments

@AndrewLeedham
Copy link

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
@L2jLiga
Copy link
Owner

L2jLiga commented Jan 9, 2019

Thanks for the report.

It's normal behaviour, converter use values provided in .xd.
I will take a look what can I do. Anyway PRs are welcome!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants