svg
0.11.3
svg
doodle.svg
Base
JsBase
Picture
doodle.svg.algebra
AlgebraModule
BaseAlgebra
CanvasAlgebra
CanvasAlgebra
HasTextBoundingBox
JsAlgebraModule
JsAlgebra
PathModule
Path
PathApi
ShapeModule
Shape
ShapeApi
SvgModule
Svg
Closed
Open
PathType
TextModule
Text
doodle.svg.effect
Canvas
Canvas
Frame
Frame
Size
Size
FitToPicture
FixedSize
SvgAnimationRenderer
SvgRenderer
doodle.svg.examples
ConcentricCircles
svg
/
doodle.svg.effect
/
Canvas
Canvas
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
)
Companion:
object
Source:
Canvas.scala
Graph
Supertypes
trait
Serializable
trait
Product
trait
Equals
class
Object
trait
Matchable
class
Any
Value members
Value members
Concrete methods
def
render
[
A
](
picture:
Picture
[
A
]):
IO
[
A
]
Source:
Canvas.scala
def
renderChild
(
svgRoot:
Node
,
nodes:
Node
):
Unit
Source:
Canvas.scala
def
svgRoot
(
bb:
BoundingBox
):
Node
Get the root
node, creating one if needed.
Get the root
node, creating one if needed.
Source:
Canvas.scala
def
textBoundingBox
(
text:
String
,
font:
Font
): (
BoundingBox
,
Rect
)
Source:
Canvas.scala
Inherited methods
def
productElementNames
:
Iterator
[
String
]
Inherited from:
Product
def
productIterator
:
Iterator
[
Any
]
Inherited from:
Product
Concrete fields
val
algebra
:
Algebra
[
Drawing
]
Source:
Canvas.scala
val
mouseClick
:
Stream
[
IO
,
Point
]
Source:
Canvas.scala
val
mouseMove
:
Stream
[
IO
,
Point
]
Source:
Canvas.scala
val
nullCallback
:
Either
[
Throwable
,
Unit
]
=>
Unit
Source:
Canvas.scala
val
redraw
:
Stream
[
IO
,
Int
]
Source:
Canvas.scala