-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
Good First IssueGood for newcomersGood for newcomers
Description
We don't currently handle importing SVGs with gradientUnits="userSpaceOnUse".
Relevant code:
Graphite/editor/src/messages/portfolio/document/graph_operation/graph_operation_message_handler.rs
Lines 399 to 400 in 41288d7
| // TODO: fix this | |
| // let to_doc_transform = if linear.base.units() == usvg::Units::UserSpaceOnUse { |
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="174" height="174" viewBox="0,0,174,174"><defs><radialGradient cx="240" cy="180" r="87" gradientUnits="userSpaceOnUse" id="color-1"><stop offset="0" stop-color="#ffffff"/><stop offset="1" stop-color="#000000"/></radialGradient></defs><g transform="translate(-153,-93)"><g data-paper-data="{"isPaintingLayer":true}" fill="url(#color-1)" fill-rule="nonzero" stroke="#000000" stroke-width="0" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" style="mix-blend-mode: normal"><path d="M153,180c0,-48.04877 38.95123,-87 87,-87c48.04877,0 87,38.95123 87,87c0,48.04877 -38.95123,87 -87,87c-48.04877,0 -87,-38.95123 -87,-87z"/></g></g></svg>
A test that this works properly would also be greatly appreciated.
Metadata
Metadata
Assignees
Labels
Good First IssueGood for newcomersGood for newcomers
Type
Projects
Status
Short-Term