Skip to content

Commit db251b3

Browse files
committed
fix polygon and polyline description
1 parent 12dd04e commit db251b3

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/renderer/element/impl/shape/polygon.cljs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
(defmethod element.hierarchy/properties :polygon
99
[]
1010
{:icon "polygon"
11-
:description "The <polyline> SVG element is an SVG basic shape that creates
12-
straight lines connecting several points."
11+
:description "The <polygon> SVG element defines a closed shape consisting of
12+
a set of connected straight line segments. The last point is
13+
connected to the first point."
1314
:attrs [:stroke-width
1415
:fill
1516
:stroke

src/renderer/element/impl/shape/polyline.cljs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
[]
1010
{:icon "polyline"
1111
:description "The <polyline> SVG element is an SVG basic shape that creates
12-
straight lines connecting several points."
12+
straight lines connecting several points. Typically a polyline
13+
is used to create open shapes as the last point doesn't have to
14+
be connected to the first point."
1315
:attrs [:stroke-width
1416
:fill
1517
:stroke
18+
:stroke-linejoin
1619
:stroke-linecap
1720
:stroke-dasharray
18-
:stroke-linejoin
1921
:opacity]})
2022

2123
(defmethod element.hierarchy/path :polyline

0 commit comments

Comments
 (0)