class

Celestine::Svg

Inherits Celestine::Meta::Context::Methods / Celestine::Modules::Animate::Transform / Celestine::Modules::Animate::Motion / Celestine::Modules::Animate / Celestine::Modules::Filter / Celestine::Modules::Mask / Celestine::Modules::Transform / Celestine::Modules::StrokeFill / Celestine::Modules::Body / Celestine::Modules::Position / Celestine::Drawable / Reference / Object

Group class which can group multiple drawables together.

Constants

TAG = "svg"

Constructors

Instance methods

anchor(define = false, &block : Celestine::Anchor -> Celestine::Anchor) : Celestine::Anchor

Allows a Celestine::Anchor to be made using a DSL call. Can be defined, which adds the drawable to the main context's definitions, and not to the main document itself.

circle(define = false, &block : Celestine::Circle -> Celestine::Circle) : Celestine::Circle

Allows a Celestine::Circle to be made using a DSL call. Can be defined, which adds the drawable to the main context's definitions, and not to the main document itself.

define(drawable : Celestine::Drawable)

Add drawable to this Celestine::Svg's definitions, allowing it to be used later.

Source
draw(io : IO) : Nil

Draws this rectangle to an IO

Source
ellipse(define = false, &block : Celestine::Ellipse -> Celestine::Ellipse) : Celestine::Ellipse

Allows a Celestine::Ellipse to be made using a DSL call. Can be defined, which adds the drawable to the main context's definitions, and not to the main document itself.

filter

Create a filter object and add it to this Celestine::Svg's defs

Source
group(define = false, &block : Celestine::Group -> Celestine::Group) : Celestine::Group

Allows a Celestine::Group to be made using a DSL call. Can be defined, which adds the drawable to the main context's definitions, and not to the main document itself.

image(define = false, &block : Celestine::Image -> Celestine::Image) : Celestine::Image

Allows a Celestine::Image to be made using a DSL call. Can be defined, which adds the drawable to the main context's definitions, and not to the main document itself.

linear_gradient

Create a linear gradient object and add it to this Celestine::Svg's defs

Source
marker

Create a marker object and add it to this Celestine::Svg's defs

Source
mask

Create a mask object and add it to this Celestine::Svg's defs

Source
path(define = false, &block : Celestine::Path -> Celestine::Path) : Celestine::Path

Allows a Celestine::Path to be made using a DSL call. Can be defined, which adds the drawable to the main context's definitions, and not to the main document itself.

pattern

Create a pattern object and add it to this Celestine::Svg's defs

Source
radial_gradient

Create a linear gradient object and add it to this Celestine::Svg's defs

Source
rectangle(define = false, &block : Celestine::Rectangle -> Celestine::Rectangle) : Celestine::Rectangle

Allows a Celestine::Rectangle to be made using a DSL call. Can be defined, which adds the drawable to the main context's definitions, and not to the main document itself.

shape_rendering

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
Source
shape_rendering=(shape_rendering : String | Nil)

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
Source
svg(define = false, &block : Celestine::Svg -> Celestine::Svg) : Celestine::Svg

Allows a Celestine::Svg to be made using a DSL call. Can be defined, which adds the drawable to the main context's definitions, and not to the main document itself.

text(define = false, &block : Celestine::Text -> Celestine::Text) : Celestine::Text

Allows a Celestine::Text to be made using a DSL call. Can be defined, which adds the drawable to the main context's definitions, and not to the main document itself.

view_box
Source
view_box=(view_box : Celestine::ViewBox | Nil)
Source

Nested types