Skip to content

Missing translate tag #105

Description

@XamarinDeveloper

Using this svg:

<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M320-440v-287L217-624l-57-56 200-200 200 200-57 56-103-103v287h-80ZM600-80 400-280l57-56 103 103v-287h80v287l103-103 57 56L600-80Z"/></svg>

I get this output:

<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="960dp"
    android:height="960dp"
    android:viewportWidth="960"
    android:viewportHeight="960">

    <path
        android:fillColor="#000000"
        android:pathData="M320-440v-287L217-624l-57-56 200-200 200 200-57 56-103-103v287h-80ZM600-80 400-280l57-56 103 103v-287h80v287l103-103 57 56L600-80Z" />
</vector>

Where the correct output is:

<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="960dp"
    android:height="960dp"
    android:viewportWidth="960"
    android:viewportHeight="960">
    <group
        android:translateY="960">
        <path
            android:fillColor="#000000"
            android:pathData="M320-440v-287L217-624l-57-56 200-200 200 200-57 56-103-103v287h-80ZM600-80 400-280l57-56 103 103v-287h80v287l103-103 57 56L600-80Z" />
    </group>
</vector>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions