Top Level Namespace

Defined Under Namespace

Modules: FileUtils, Sevgi

Constant Summary collapse

SVG =

Minimal top-level SVG interface installed by require "sevgi".

Returns:

  • (Module)

    the graphics module used as the SVG DSL namespace

Sevgi::Graphics

Instance Method Summary collapse

Instance Method Details

#SVG(document = :default, canvas = Undefined, **attributes) { ... } ⇒ Sevgi::Graphics::Document::Proto

Builds an SVG document through the default top-level DSL entrypoint.

Parameters:

  • document (Symbol, Class) (defaults to: :default)

    document profile name or document class

  • canvas (Object) (defaults to: Undefined)

    optional canvas or paper profile argument

  • attributes (Hash)

    root SVG attributes

Yields:

  • the document block evaluated in the SVG document context

Yield Returns:

  • (void)

Returns:

  • (Sevgi::Graphics::Document::Proto)

    a rendered SVG document object

Raises:

  • (Sevgi::ArgumentError)

    when the document, paper, or canvas arguments are invalid



25
# File 'lib/sevgi.rb', line 25

def SVG(...) = Sevgi::Graphics.SVG(...)