Skip to content

Commit

Permalink
Antarestrader (JordanMartinez#1)
Browse files Browse the repository at this point in the history
* Allow Named Color attributes

Allows the use of named colors. See https://www.w3schools.com/colors/colors_names.asp

* Add strokeWidth to Presentation Attributes

Partially addresses Issue JordanMartinez#3.  Additional stroke-* would need to a function added to Attributes.purs
  • Loading branch information
antarestrader authored and shamansir committed Aug 10, 2021
1 parent ff5b3e0 commit 4aa9183
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions src/Halogen/Svg/Indexed.purs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,20 @@ type GlobalEventAttributes r =
, onMouseOver :: MouseEvent
, onMouseUp :: MouseEvent
, onWheel :: WheelEvent
| r)

-- These can also be done with CSS
type PresentationAttributes r =
( stroke :: String
, strokeWidth :: Number
, fill :: String
| r
)

type MarkerAttributes r =
( markerStart :: String
, markerMid :: String
, markerEnd :: String
| r
)

Expand Down Expand Up @@ -108,13 +122,6 @@ type FillAttributes r =
| r
)

type MarkerAttributes r =
( markerStart :: String
, markerMid :: String
, markerEnd :: String
| r
)

type FontAttributes r =
( font_family :: String
, font_size :: String
Expand Down

0 comments on commit 4aa9183

Please sign in to comment.