Skip to content

class Celestine::Marker
inherits Celestine::Drawable #

Class which acts like a group, but applies masking to another drawable.

Included modules

Celestine::Meta::Context::Methods Celestine::Modules::Animate Celestine::Modules::Animate::Motion Celestine::Modules::Filter Celestine::Modules::StrokeFill Celestine::Modules::Transform

Constants#

TAG = "marker" #

Methods#

#anchor(&block : Celestine::Anchor -> Celestine::Anchor) : Celestine::Anchor #

Allows a Celestine::Anchor to be made using a DSL call, and added to this drawables items.

#circle(&block : Celestine::Circle -> Celestine::Circle) : Celestine::Circle #

Allows a Celestine::Circle to be made using a DSL call, and added to this drawables items.

#draw(io : IO) : Nil #

Main draw method for a drawable. Takes in and interacts with an io.

View source

#ellipse(&block : Celestine::Ellipse -> Celestine::Ellipse) : Celestine::Ellipse #

Allows a Celestine::Ellipse to be made using a DSL call, and added to this drawables items.

#group(&block : Celestine::Group -> Celestine::Group) : Celestine::Group #

Allows a Celestine::Group to be made using a DSL call, and added to this drawables items.

#height : IFNumber? #

#height=(height : IFNumber?) #

#height_units : String? #

What kind of unit height should use when rendering

#height_units=(height_units : String?) #

What kind of unit height should use when rendering

#image(&block : Celestine::Image -> Celestine::Image) : Celestine::Image #

Allows a Celestine::Image to be made using a DSL call, and added to this drawables items.

#orientation : String? #

View source

#orientation=(orientation : String?) #

View source

#path(&block : Celestine::Path -> Celestine::Path) : Celestine::Path #

Allows a Celestine::Path to be made using a DSL call, and added to this drawables items.

#preserve_aspect_ratio : String? #

View source

#preserve_aspect_ratio=(preserve_aspect_ratio : String?) #

View source

#rectangle(&block : Celestine::Rectangle -> Celestine::Rectangle) : Celestine::Rectangle #

Allows a Celestine::Rectangle to be made using a DSL call, and added to this drawables items.

#ref_x : String? #

View source

#ref_x=(ref_x : String?) #

View source

#ref_y : String? #

View source

#ref_y=(ref_y : String?) #

View source

#svg(&block : Celestine::Svg -> Celestine::Svg) : Celestine::Svg #

Allows a Celestine::Svg to be made using a DSL call, and added to this drawables items.

#text(&block : Celestine::Text -> Celestine::Text) : Celestine::Text #

Allows a Celestine::Text to be made using a DSL call, and added to this drawables items.

#units : String? #

View source

#units=(units : String?) #

View source

#view_box=(view_box : Celestine::ViewBox?) #

View source

#width : IFNumber? #

#width=(width : IFNumber?) #

#width_units : String? #

What kind of unit width should use when rendering

#width_units=(width_units : String?) #

What kind of unit width should use when rendering

module Celestine::Marker::Attrs #

Included modules

Celestine::Modules::Filter::Attrs Celestine::Modules::StrokeFill::Attrs Celestine::Modules::Transform::Attrs

Constants#

HEIGHT = "markerHeight" #

ORIENTATION = "orient" #

PRESERVE_ASPECT_RATIO = "preserveAspectRatio" #

REF_X = "refX" #

REF_Y = "refY" #

UNITS = "markerUnits" #

VIEW_BOX = "viewBox" #

WIDTH = "markerWidth" #