Frame

doodle.svg.effect.Frame
See theFrame companion object
final case class Frame(id: String, size: Size, background: Option[Color])

The Frame specifies how to create the area where the SVG output will be drawn. The idiomatic way to create a Frame is to start with Frame(anId), where anId is the id of the DOM element where the output should be drawn, and then call the builder methods starting with with.

For example, this Frame specifies a fixed size and a background color.

Frame("svgCanvas").withSize(300, 300).withBackground(Color.midnightBlue)

Attributes

Companion
object
Source
Frame.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Use the given color as the background.

Use the given color as the background.

Attributes

Source
Frame.scala

Size the canvas with the given fixed dimensions.

Size the canvas with the given fixed dimensions.

Attributes

Source
Frame.scala

Size the canvas to fit to the picture's bounding box, plus the given border around the bounding box.

Size the canvas to fit to the picture's bounding box, plus the given border around the bounding box.

Attributes

Source
Frame.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product