Jump to content

Search the Community

Showing results for tags 'rounded rectangle'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Affinity Support
    • News and Information
    • Affinity Support & Questions
    • Feature Requests & Suggestions
  • Learn and Share
    • Tutorials (Serif and Customer Created Tutorials)
    • Share your work
    • Resources
  • Bug Reporting
    • Report a Bug in Affinity Designer
    • Report a Bug in Affinity Photo
    • Report a Bug in Affinity Publisher
    • (Pre 1.7) Affinity Range Bugs Forums
  • Beta Software Forums
    • Affinity Designer Beta Forums
    • Affinity Photo Beta Forums
    • Affinity Publisher Beta Forums

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







Found 4 results

  1. When creating a normal rectangle in Designer and exporting to svg the result is as expected: <rect x="240" y="380" width="740" height="60" style="fill:rgb(96,240,103);"/> But when we set the rectangle to have rounded corners, or use the rounded rectangle tool instead, the svg-exporter now suddenly converts the rectangle to a (much longer) path-element: <path d="M980,290C980,273.443 966.557,260 950,260L270,260C253.443,260 240,273.443 240,290C240,306.557 253.443,320 270,320L950,320C966.557,320 980,306.557 980,290Z" style="fill:rgb(96,240,103);"/> BTW It doesn't matter if 'flatten transforms' is enabled or disabled in the exporter, I didn't converted the rectangle to curves and I found the same behaviour using the latest Designer beta-version ( That's not what I would expect and is causing problems in projects here, because since the rectangle now is converted into a path this prevents Javascript to get (or dynamically set!!) the properties that came with these basic shapes on purpose, like x, y, width and height, but also the rounded corner-radius itself. This is what I would expect instead: SVG knows about rounded rectangles; they are just rectangles but with two additional attributes added: rx and ry for the rounded corner-radius x and y. So in this case this is what I would expect: <rect x="240" y="260" rx="30" ry="30" width="740" height="60" style="fill:rgb(96,240,103);"/> I might be missing something here, but I searched everywhere and couldn't find a way to output to just rounded rectangles instead of paths in the svg-exporter. For a project I'm working on right now I had to remove all roundings from all rectangles in the Designer file (so had to change the layout to something we don't want) just to output svg <rect> elements instead of paths. And than after the exporting we need to add the cx and cy attributes to all rect-elements manually in a code editor after (each!!) Designer svg-export we do... So every time the design changes even a little bit, we need to redo this all over again or manually copy and paste only selections from the new svg-file to our working svg-file. As you might understand that's not really efficient, causes mistakes/errors pretty easily, takes a lot of time (and money!!) we rather use on designing, animating and programming and is pretty frustrating. For interactive/animation use we really need to have rectangles as outputs if we use rectangles in Designer, also on rounded rectangles. If we use rectangles by design, we'd like to have them in the output too. Otherwise we would have converted them to curves instead. With rectangles as output we can set/animate width, height, x, y etc dynamically, and even the rounding-radius of the <rect> by Javascript. But with paths that's much more complicated and makes everything overly complex, which is totally unnecesary and results in too much code or less performant results. Basically the above counts for all basic shapes in Designer that are supported in SVG: if there are svg elements that match the basic Designer shape, please export them to those elements instead of converting them to paths. There is a reason for existence for all basic shapes in svg: they have special properties we need. And their names like <rect> are much more symantic too. Next to this, as you can see in the example, exporting to paths instead result most, if not all, of the time in much larger svg-files and we try to keep our files as small as possible for fast loading and performance, especially for use on mobile devices / internet. Keep in mind the above example only shows just one rectangle. This counts up pretty fast with having more shapes in the design. Bottomline: Please export basic shapes in svg to basic svg shapes! If we'd like to have paths, we can always convert them to curves instead before exporting to svg. Thanks!!
  2. Hi! I've just uploaded another tutorial on Affinity Designer. This one is about converting simple rectangles and ellipses into more complex shapes. If you like it, give it a thumbs up and leave a comment. Thanks! https://youtu.be/SeNhPOyE2kI
  3. I love the corner tool, and the range of corner options. Is it possible to add another option for corners based on conic sections, e.g., ellipse, where the length and width of the ellipse can be adjusted? Something along the lines of the rounded corners of the iOS icon mask. It would be great if this could also be added to the rounded rectangle tool as an option for creating icons. Although Apple apply the mask to the icon, it's useful to be able to reproduce it when designing, to see how the finished icon will look. Also, an offset tool would be useful for offsetting or insetting, similar to what CAD apps can do. The expand stroke tool is one way to achieve this, although it does break the curve up into lots of smaller curves. This explains the elliptical corner curves and what I mean by insetting: http://www.designbygeometry.com/ios-icon-mask-corner-curve-study/ Thanks
  4. Is there a way to draw an object (eg. square/circle/trangle etc.) as a vector by default? It's a bit unhandy that I need to convert it to curves everytime I want to modify it's form...
  • Create New...

Important Information

Please note the Annual Company Closure section in the Terms of Use. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.