doodle-svg-docs
0.15.0
doodle-svg-docs
API
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
doodle-svg-docs
/
doodle.svg.effect
/
Canvas
Canvas
doodle.svg.effect.Canvas
See the
Canvas
companion object
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
Graph
Reset zoom
Hide graph
Show graph
Supertypes
trait
Serializable
trait
Product
trait
Equals
class
Object
trait
Matchable
class
Any
Clear all
Members list
Concise view
Value members
Concrete methods
def
render
[
A
](
picture
:
Picture
[
A
]):
IO
[
A
]
Attributes
Source:
Canvas.scala
def
renderChild
(
svgRoot
:
Node
,
nodes
:
Node
):
Unit
Attributes
Source:
Canvas.scala
def
svgRoot
(
bb
:
BoundingBox
):
Node
Get the root
node, creating one if needed.
Get the root
node, creating one if needed.
Attributes
Source:
Canvas.scala
def
textBoundingBox
(
text
:
String
,
font
:
Font
): (
BoundingBox
,
Rect
)
Attributes
Source:
Canvas.scala
Inherited methods
def
productElementNames
:
Iterator
[
String
]
Attributes
Inherited from:
Product
def
productIterator
:
Iterator
[
Any
]
Attributes
Inherited from:
Product
Concrete fields
val
algebra
:
Algebra
Attributes
Source:
Canvas.scala
val
mouseClick
:
Stream
[
IO
,
Point
]
Attributes
Source:
Canvas.scala
val
mouseMove
:
Stream
[
IO
,
Point
]
Attributes
Source:
Canvas.scala
val
nullCallback
:
Either
[
Throwable
,
Unit
]
=>
Unit
Attributes
Source:
Canvas.scala
val
redraw
:
Stream
[
IO
,
Int
]
Attributes
Source:
Canvas.scala