module Celestine::Modules::StrokeFill
#
Gives a drawable access to stroke, fill, and opacity attributes, as well as other related attributes
Direct including types
Celestine::Anchor
Celestine::Circle
Celestine::Ellipse
Celestine::Group
Celestine::Marker
Celestine::Mask
Celestine::Path
Celestine::Pattern
Celestine::Rectangle
Celestine::Svg
Celestine::Text
Celestine::Use
Methods#
#color : String?
#
: String?
The inherited/inheriting color of the drawable
- Potential Values:
<Any CSS Color Type> | currentColor
- Mozilla SVG Docs
#color=(color : String?)
#
(color : String?)
The inherited/inheriting color of the drawable
- Potential Values:
<Any CSS Color Type> | currentColor
- Mozilla SVG Docs
#color_interpolation : String?
#
: String?
Specifies the color space for gradient interpolations, color animations, and alpha compositing
- Potential Values:
auto | sRGB | linearRGB
- Mozilla SVG Docs
#color_interpolation=(color_interpolation : String?)
#
(color_interpolation : String?)
Specifies the color space for gradient interpolations, color animations, and alpha compositing
- Potential Values:
auto | sRGB | linearRGB
- Mozilla SVG Docs
#color_interpolation_filters : String?
#
: String?
Specifies the color space for imaging operations performed via filter effects.
- Potential Values:
auto | sRGB | linearRGB
- Mozilla SVG Docs
#color_interpolation_filters=(color_interpolation_filters : String?)
#
(color_interpolation_filters : String?)
Specifies the color space for imaging operations performed via filter effects.
- Potential Values:
auto | sRGB | linearRGB
- Mozilla SVG Docs
#dash_array : Array(Float64)
#
: Array(Float64)
An array representing the amount of units a line should be "on" and "off" for.
An array of [3]
will dash the line for 3 units, then off for 3 units, then repeats until the line is finished.
An array of [3 3]
will dash the line for 3 units, then off for 3 units, then repeats until the line is finished. The same as [3]
An array of [4 2]
will dash the line for 4 units, then off for 2 units, then repeats until the line is finished.
You can add more of these to make much more complicated dashed lines.
#dash_array=(dash_array : Array(Float64))
#
(dash_array : Array(Float64))
An array representing the amount of units a line should be "on" and "off" for.
An array of [3]
will dash the line for 3 units, then off for 3 units, then repeats until the line is finished.
An array of [3 3]
will dash the line for 3 units, then off for 3 units, then repeats until the line is finished. The same as [3]
An array of [4 2]
will dash the line for 4 units, then off for 2 units, then repeats until the line is finished.
You can add more of these to make much more complicated dashed lines.
#dash_offset : IFNumber?
#
: IFNumber?
The offset to begin dashes on
#dash_offset=(dash_offset : IFNumber?)
#
(dash_offset : IFNumber?)
The offset to begin dashes on
#dash_offset_units : String?
#
: String?
What kind of unit dash_offset
should use when rendering
#dash_offset_units=(dash_offset_units : String?)
#
(dash_offset_units : String?)
What kind of unit dash_offset
should use when rendering
#fill_rule : Bool
#
: Bool
The algorithm to use to determine the inside part of a shape.
Potential Values: nonzero | evenodd
* Mozilla SVG Docs
#fill_rule=(fill_rule : Bool)
#
(fill_rule : Bool)
The algorithm to use to determine the inside part of a shape.
Potential Values: nonzero | evenodd
* Mozilla SVG Docs
#line_cap : String?
#
: String?
How a line is capped at the ends
Potential Values: butt | round | square
* Mozilla SVG Docs
#line_cap=(line_cap : String?)
#
(line_cap : String?)
How a line is capped at the ends
Potential Values: butt | round | square
* Mozilla SVG Docs
#line_join : String?
#
: String?
How lines should be joined
Potential Values: arcs | bevel |miter | miter-clip | round
* Mozilla SVG Docs
#line_join=(line_join : String?)
#
(line_join : String?)
How lines should be joined
Potential Values: arcs | bevel |miter | miter-clip | round
* Mozilla SVG Docs
#miter_limit : IFNumber?
#
: IFNumber?
The limit on the ratio of the miter length to the stroke-width used to draw a miter join. When the limit is exceeded, the join is converted from a miter to a bevel.
#miter_limit=(miter_limit : IFNumber?)
#
(miter_limit : IFNumber?)
The limit on the ratio of the miter length to the stroke-width used to draw a miter join. When the limit is exceeded, the join is converted from a miter to a bevel.
#miter_limit_units : String?
#
: String?
What kind of unit miter_limit
should use when rendering
#miter_limit_units=(miter_limit_units : String?)
#
(miter_limit_units : String?)
What kind of unit miter_limit
should use when rendering
#shape_rendering : String?
#
: String?
Provides hints to the renderer about what tradeoffs to make when rendering shapes like paths, circles, or rectangles.
- Potential Values:
auto | optimizeSpeed | crispEdges | geometricPrecision
- Mozilla SVG Docs
#shape_rendering=(shape_rendering : String?)
#
(shape_rendering : String?)
Provides hints to the renderer about what tradeoffs to make when rendering shapes like paths, circles, or rectangles.
- Potential Values:
auto | optimizeSpeed | crispEdges | geometricPrecision
- Mozilla SVG Docs
#stroke_width : IFNumber?
#
: IFNumber?
The width of the stroke
#stroke_width=(stroke_width : IFNumber?)
#
(stroke_width : IFNumber?)
The width of the stroke
#stroke_width_units : String?
#
: String?
What kind of unit stroke_width
should use when rendering
#stroke_width_units=(stroke_width_units : String?)
#
(stroke_width_units : String?)
What kind of unit stroke_width
should use when rendering
#vector_effect : String?
#
: String?
Provides hints to the renderer about what tradeoffs to make when rendering shapes like paths, circles, or rectangles.
- Potential Values:
none | non-scaling-stroke | non-scaling-size | non-rotation | fixed-position
- Mozilla SVG Docs
#vector_effect=(vector_effect : String?)
#
(vector_effect : String?)
Provides hints to the renderer about what tradeoffs to make when rendering shapes like paths, circles, or rectangles.
- Potential Values:
none | non-scaling-stroke | non-scaling-size | non-rotation | fixed-position
- Mozilla SVG Docs
module Celestine::Modules::StrokeFill::Attrs
#
Direct including types
Celestine::Anchor::Attrs
Celestine::Circle::Attrs
Celestine::Ellipse::Attrs
Celestine::Group::Attrs
Celestine::Marker::Attrs
Celestine::Mask::Attrs
Celestine::Path::Attrs
Celestine::Pattern::Attrs
Celestine::Rectangle::Attrs
Celestine::Svg::Attrs
Celestine::Text::Attrs
Celestine::Use::Attrs
Constants#
COLOR = "color"
#
"color"
COLOR_INTERPOLATION = "color_interpolation"
#
"color_interpolation"
COLOR_INTERPOLATION_FILTERS = "color_interpolation_filters"
#
"color_interpolation_filters"
DASH_ARRAY = "stroke-dasharray"
#
"stroke-dasharray"
DASH_OFFSET = "stroke-dashoffset"
#
"stroke-dashoffset"
FILL = "fill"
#
"fill"
FILL_OPACITY = "fill-opacity"
#
"fill-opacity"
FILL_RULE = "fill-rule"
#
"fill-rule"
LINE_CAP = "stroke-linecap"
#
"stroke-linecap"
LINE_JOIN = "stroke-linejoin"
#
"stroke-linejoin"
MITER_LIMIT = "stroke-miterlimit"
#
"stroke-miterlimit"
OPACITY = "opacity"
#
"opacity"
STROKE = "stroke"
#
"stroke"
STROKE_OPACITY = "stroke-opacity"
#
"stroke-opacity"
STROKE_WIDTH = "stroke-width"
#
"stroke-width"
VECTOR_EFFECT = "vector-effect"
#
"vector-effect"