30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# File 'lib/plot/mark.rb', line 30
def style(name, value)
if([:fill,
:fillOpacity,
:stroke,
:strokeWidth,
:strokeOpacity,
:strokeLinejoin,
:strokeLinecap,
:strokeMiterlimit,
:strokeDasharray,
:strokeDashoffset,
:opacity,
:mixBlendMode,
:imageFilter,
:shapeRendering,
:paintOrder,
:dx,
:dy,
:target,
:ariaDescription,
:ariaHidden,
:pointerEvents,
:clip,
:tip].include? name)
then
@mark.add_option(name, value)
else
raise "Not a style option"
end
end
|