@@ -2,17 +2,17 @@ module Svg.Attributes exposing
2
2
( accentHeight, accelerate, accumulate, additive, alphabetic, allowReorder
3
3
, amplitude, arabicForm, ascent, attributeName, attributeType, autoReverse
4
4
, azimuth, baseFrequency, baseProfile, bbox, begin, bias, by, calcMode
5
- , capHeight, class, clipPathUnits , contentScriptType , contentStyleType , cx , cy
6
- , d , decelerate , descent , diffuseConstant , divisor , dur , dx , dy , edgeMode
7
- , elevation , end , exponent , externalResourcesRequired , filterRes , filterUnits
8
- , format, from, fx, fy, g1, g2, glyphName, glyphRef, gradientTransform
9
- , gradientUnits, hanging, height, horizAdvX, horizOriginX, horizOriginY , id
10
- , ideographic, in_, in2, intercept, k, k1, k2, k3, k4, kernelMatrix
11
- , kernelUnitLength, keyPoints, keySplines, keyTimes, lang, lengthAdjust
12
- , limitingConeAngle, local, markerHeight, markerUnits, markerWidth
13
- , maskContentUnits, maskUnits, mathematical, max, media, method, min , mode
14
- , name, numOctaves, offset, operator, order, orient, orientation, origin
15
- , overlinePosition, overlineThickness, panose1, path, pathLength
5
+ , capHeight, class, classList , clipPathUnits , contentScriptType
6
+ , contentStyleType , cx , cy , d , decelerate , descent , diffuseConstant , divisor
7
+ , dur , dx , dy , edgeMode , elevation , end , exponent , externalResourcesRequired
8
+ , filterRes , filterUnits , format, from, fx, fy, g1, g2, glyphName, glyphRef
9
+ , gradientTransform , gradientUnits, hanging, height, horizAdvX, horizOriginX
10
+ , horizOriginY , id , ideographic, in_, in2, intercept, k, k1, k2, k3, k4
11
+ , kernelMatrix , kernelUnitLength, keyPoints, keySplines, keyTimes, lang
12
+ , lengthAdjust , limitingConeAngle, local, markerHeight, markerUnits
13
+ , markerWidth , maskContentUnits, maskUnits, mathematical, max, media, method
14
+ , min , mode , name, numOctaves, offset, operator, order, orient, orientation
15
+ , origin , overlinePosition, overlineThickness, panose1, path, pathLength
16
16
, patternContentUnits, patternTransform, patternUnits, pointOrder, points
17
17
, pointsAtX, pointsAtY, pointsAtZ, preserveAlpha, preserveAspectRatio
18
18
, primitiveUnits, r, radius, refX, refY, renderingIntent, repeatCount
@@ -48,17 +48,17 @@ module Svg.Attributes exposing
48
48
@docs accentHeight, accelerate, accumulate, additive, alphabetic, allowReorder,
49
49
amplitude, arabicForm, ascent, attributeName, attributeType, autoReverse,
50
50
azimuth, baseFrequency, baseProfile, bbox, begin, bias, by, calcMode,
51
- capHeight, class, clipPathUnits, contentScriptType, contentStyleType, cx, cy,
52
- d, decelerate, descent, diffuseConstant, divisor, dur, dx, dy, edgeMode ,
53
- elevation, end, exponent, externalResourcesRequired, filterRes, filterUnits ,
54
- format, from, fx, fy, g1, g2, glyphName, glyphRef, gradientTransform ,
55
- gradientUnits, hanging, height, horizAdvX, horizOriginX, horizOriginY, id ,
56
- ideographic, in_, in2, intercept, k, k1, k2, k3, k4, kernelMatrix ,
57
- kernelUnitLength, keyPoints, keySplines, keyTimes, lang, lengthAdjust ,
58
- limitingConeAngle, local, markerHeight, markerUnits, markerWidth ,
59
- maskContentUnits, maskUnits, mathematical, max, media, method, min, mode ,
60
- name, numOctaves, offset, operator, order, orient, orientation, origin ,
61
- overlinePosition, overlineThickness, panose1, path, pathLength,
51
+ capHeight, class, classList, clipPathUnits, contentScriptType
52
+ contentStyleType, cx, cy , d, decelerate, descent, diffuseConstant, divisor ,
53
+ dur, dx, dy, edgeMode , elevation, end, exponent, externalResourcesRequired ,
54
+ filterRes, filterUnits, format, from, fx, fy, g1, g2, glyphName, glyphRef,
55
+ gradientTransform, gradientUnits, hanging, height, horizAdvX, horizOriginX,
56
+ horizOriginY, id, ideographic, in_, in2, intercept, k, k1, k2, k3, k4,
57
+ kernelMatrix, kernelUnitLength, keyPoints, keySplines, keyTimes, lang,
58
+ lengthAdjust, limitingConeAngle, local, markerHeight, markerUnits,
59
+ markerWidth, maskContentUnits, maskUnits, mathematical, max, media, method,
60
+ min, mode, name, numOctaves, offset, operator, order, orient, orientation,
61
+ origin, overlinePosition, overlineThickness, panose1, path, pathLength,
62
62
patternContentUnits, patternTransform, patternUnits, pointOrder, points,
63
63
pointsAtX, pointsAtY, pointsAtZ, preserveAlpha, preserveAspectRatio,
64
64
primitiveUnits, r, radius, refX, refY, renderingIntent, repeatCount,
@@ -230,6 +230,15 @@ class : String -> Attribute msg
230
230
class =
231
231
Elm . Kernel . Svg . attribute " class"
232
232
233
+ {- |-}
234
+ classList : List ( String , Bool ) -> Svg .Attribute msg
235
+ classList list =
236
+ list
237
+ |> List . filter Tuple . second
238
+ |> List . map Tuple . first
239
+ |> String . join " "
240
+ |> class
241
+
233
242
234
243
{- |-}
235
244
clipPathUnits : String -> Attribute msg
0 commit comments