doodle.svg.effect

Members list

Type members

Classlikes

final case class Canvas(target: Node, frame: Frame, background: Option[Color], redrawQueue: Queue[IO, Int], mouseClickQueue: Queue[IO, Point], mouseMoveQueue: Queue[IO, Point])(implicit runtime: IORuntime)

Attributes

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

Attributes

Companion
class
Source
Canvas.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Canvas.type
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.

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
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Frame

Attributes

Companion
class
Source
Frame.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Frame.type
sealed abstract class Size extends Product, Serializable

Attributes

Companion
object
Source
Size.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class FitToPicture
class FixedSize
object Size

Attributes

Companion
class
Source
Size.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Size.type

Attributes

Source
SvgAnimationRenderer.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
SvgRenderer.scala
Supertypes
class Object
trait Matchable
class Any
Self type