nativescript-community / nativescript-community/ui-canvas
Rotate some SVG
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 38
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
Which platform(s) does your issue occur on?
- iOS
Please, provide the following version numbers that your issue occurs with:
- CLI: 8.0.1
- PluginVersion: 0.0.8
Please, tell us how to recreate the issue in as much detail as possible.
Some SVG rotates them, I upload an example: it should appear to the bottom and it appears to me
<SVGView
src="~/assets/icons/arrow_down_gray.svg"
height="18"
width="18"
></SVGView>
SVG of example:
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs" version="1.1" width="512" height="512" x="0" y="0" viewBox="0 0 512.002 512.002" style="enable-background:new 0 0 512 512" xml:space="preserve" class=""><g transform="matrix(1.8369701987210297e-16,1,1,-1.8369701987210297e-16,-0.0004363059998695462,0.0004363059997558594)">
<g xmlns="http://www.w3.org/2000/svg">
<g>
<path d="M388.425,241.951L151.609,5.79c-7.759-7.733-20.321-7.72-28.067,0.04c-7.74,7.759-7.72,20.328,0.04,28.067l222.72,222.105 L123.574,478.106c-7.759,7.74-7.779,20.301-0.04,28.061c3.883,3.89,8.97,5.835,14.057,5.835c5.074,0,10.141-1.932,14.017-5.795 l236.817-236.155c3.737-3.718,5.834-8.778,5.834-14.05S392.156,245.676,388.425,241.951z" fill="#cdcdcd" data-original="#000000" style="" class=""/>
</g>
</g>
<g xmlns="http://www.w3.org/2000/svg">
</g>
<g xmlns="http://www.w3.org/2000/svg">
</g>
<g xmlns="http://www.w3.org/2000/svg">
</g>
<g xmlns="http://www.w3.org/2000/svg">
</g>
<g xmlns="http://www.w3.org/2000/svg">
</g>
<g xmlns="http://www.w3.org/2000/svg">
</g>
<g xmlns="http://www.w3.org/2000/svg">
</g>
<g xmlns="http://www.w3.org/2000/svg">
</g>
<g xmlns="http://www.w3.org/2000/svg">
</g>
<g xmlns="http://www.w3.org/2000/svg">
</g>
<g xmlns="http://www.w3.org/2000/svg">
</g>
<g xmlns="http://www.w3.org/2000/svg">
</g>
<g xmlns="http://www.w3.org/2000/svg">
</g>
<g xmlns="http://www.w3.org/2000/svg">
</g>
<g xmlns="http://www.w3.org/2000/svg">
</g>
</g></svg>
I think this part is the one that does not do well:
matrix(1.8369701987210297e-16,1,1,-1.8369701987210297e-16,-0.0004363059998695462,0.0004363059997558594)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the SVGView rendering path for iOS and reproduce the supplied arrow_down_gray.svg example using the reported transform matrix. Verify that the arrow appears in the intended downward orientation when the issue is resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios
- Domain
- computer-graphics, mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100