linebender / linebender/resvg

how to render a single element?

Open
#775 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rust
Stars
4.1k
Forks
348
Avg merge
1d 14h
Merged PRs (30d)
3

Description

I have an svg of Africa and want to render individual countries. I tried using `render_node`, but this is the best I could get:

![country](https://github.com/RazrFalcon/resvg/assets/1229742/7fdbdca4-f9e5-4410-9d6d-bcc66b7c5769)

I'm not sure how to center the country and scale it properly. Would you mind taking a look at [this mre](https://github.com/rokit/render-node-mre) and tell me how this is accomplished?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked render-node-mre repository and the render_node usage mentioned in the issue. Determine how the SVG's individual country elements are selected, centered, and scaled; done means providing a clear, reproducible explanation for rendering one country.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.