abstract class SVGRenderer[Builder, T <: FragT, FragT, M] extends AnyRef
a renderer for svg like models
NOTE: this is built around the idea that the document model is mutable (so we can append nodes directly) for efficiency. This is in line with the builder in scalatags for JsDom and vdom (see appendChild).
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- SVGRenderer
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new SVGRenderer(bundle: Bundle[Builder, T, FragT], options: SVGRendererOptions)(implicit appender: (T) => Frag[Builder, FragT], matrixLike: SVGMatrixLike[M])
Abstract Value Members
- abstract def appendChild(elem: T)(child: T): Unit
- abstract def applyTransformation(transformation: M): Unit
- Attributes
- protected
- abstract def deleteElement(element: GraphElement[T]): IO[Unit]
- abstract def draggable(elem: T): Option[ElementRef]
- abstract def getPageMatrix: M
- Attributes
- protected
- abstract def getScreenCTM: M
- Attributes
- protected
- abstract def graphSVG: GraphSVG[T]
- abstract def parseSvg(svgXml: String): T
- abstract def selectElement(value: GraphElement[T]): IO[Unit]
- abstract def selectable(elem: T): Option[ElementRef]
- abstract def setDimensions(width: Double, height: Double): Unit
- abstract def setPosition(elem: T)(x: Double, y: Double): Unit
- abstract def unselectElement(value: GraphElement[T]): IO[Unit]
- abstract def x(elem: T): Double
- abstract def y(elem: T): Double
Concrete 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 bundle: Bundle[Builder, T, FragT]
- Attributes
- protected
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val defaultFontFamily: String
- val defaultFontSize: String
- val defaultTextColor: String
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getPageOffset: PagePoint
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nodeStyle(shape: NodeShape): Seq[String]
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val options: SVGRendererOptions
- Attributes
- protected
- def pageCoordinates(x: Double, y: Double): PagePoint
- def renderEdge[E, N](edge: Edge[E], graph: Graph[E, N], layout: GraphLayoutLike, styleSheet: StyleSheetLike)(implicit edgeLabel: Labeled[E, String], edgeStyleRef: StyleRef[Edge[E]]): IO[Option[SVGEdgeElement[T]]]
- def renderGraph[E, N](graph: Graph[E, N], layout: GraphLayoutLike, styleSheet: StyleSheetLike)(implicit nodeLabel: Labeled[N, String], nodeStyleRef: StyleRef[Node[N]], edgeLabel: Labeled[E, String], edgeStyleRef: StyleRef[Edge[E]]): IO[SVGRenderer[Builder, T, FragT, M]]
- def renderLabel(elementId: String, elementType: String, labelStyle: LabelStyle, labelValue: String, width: Double, height: Double, offset: Option[PointSpec] = None): T
- def renderNode[E, N](node: Node[N], layout: GraphLayoutLike, styleSheet: StyleSheetLike)(implicit nodeLabel: Labeled[N, String], nodeStyleRef: StyleRef[Node[N]]): IO[SVGNodeElement[T]]
- def renderOriginMarker: Option[T]
- Attributes
- protected
- def renderPanZoomRect: Option[T]
- Attributes
- protected
- def renderRootSvg(rootAttributes: (all)#Modifier*): GraphSVG[T]
- Attributes
- protected
- def renderSelectRect(elementId: String, elementType: String, x: Double, y: Double, width: Double, height: Double): Option[T]
- Attributes
- protected
- def resetMatrix: IO[Unit]
- def screenCoordinates(x: Double, y: Double): PagePoint
- def setViewPortOffset(tx: Double, ty: Double): SVGRenderer[Builder, T, FragT, M]
- def shapeTag(shape: NodeShape, styleSheet: StyleSheetLike, widthValue: Double, heightValue: Double): TypedTag[Builder, T, FragT]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def translateAndScaleView(tx: Double, ty: Double, zoom: Double = 1.0): SVGRenderer[Builder, T, FragT, M]
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])