final case class Frame(id: String, size: Size, background: Option[Color] = None) extends Product with Serializable
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)
- Source
- Frame.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Frame
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val background: Option[Color]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val id: String
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val size: Size
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withBackground(color: Color): Frame
Use the given color as the background.
- def withSize(width: Double, height: Double): Frame
Size the canvas with the given fixed dimensions.
- def withSizedToPicture(border: Int = 20): Frame
Size the canvas to fit to the picture's bounding box, plus the given border around the bounding box.