SVG to Slides › Docs › Technical Notes › Edit points and polylines
Technical Notes · Technical note
Slides’ Edit points and polylines
The information in this topic applies to:
- SVG to Slides Chrome extension, versions 1.2.0 and 1.3.0
- SVG to Slides Workspace Add-on for Google Slides
Google Slides has an Edit points command of its own, which works on polylines. Inserted shapes with one outline and only straight segments land as polylines, so that command works on them. Curved shapes land as custom shapes. Use Edit Shape for those.
The rule#
A converted shape lands as a polyline when all three are true:
- It has a single outline, with no holes and no separate pieces.
- Every segment is a straight line.
- It has no more than 150 points.
Rectangles, polygons and other straight-edged closed paths meet the rule. Circles, curved icons and shapes with holes land as custom shapes.
Why curved shapes are not polylines#
Slides’ point editor has no model for Bézier curves. These results come from inserting test shapes and dragging a point in each.
| Test | Result |
|---|---|
| A polyline that contains curves | It draws correctly when inserted. On the first point drag, Slides rewrites the whole outline as straight lines, and every curve control point becomes a corner. |
| A polyline with several outlines | Slides merges them into one outline, joining the outer and inner parts with stray diagonal edges. |
| A shape of Slides’ curve-tool kind, given curve data | Slides ignores the curve data and draws its own smooth line through every coordinate. A circle made of four curves comes out as a lumpy rounded square. |
So only shapes that Slides’ editor can represent exactly are marked for it.
A difference you can see#
| Shape | Double-click in Slides |
|---|---|
| Custom shape | Gives a text cursor. The shape can hold text. |
| Polyline | Enters Slides’ point editing. |
Which editor to use#
| To edit | Use |
|---|---|
| A straight-edged shape, corner by corner | Slides’ own Edit points, or Edit Shape: points and curves. |
| Any shape with curves or holes | Edit Shape: points and curves. |
| A shape from Slides’ shape menu | Edit Shape: points and curves, which converts it first. See Editing Slides’ own shapes. |