EntitySourceViewport

semagrams.EntitySourceViewport
class EntitySourceViewport[A](state: Signal[A], entitySources: Seq[EntitySource[A]]) extends Viewport

A basic implementation of Viewport that extracts entities using a sequence of EntitySourcess from a signal of type A.

Later elements of entitySources have access to the entities, sprites and acsets extracted by previous elements.

Attributes

Graph
Supertypes
trait Viewport
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete fields

val elt: SvgElement

The root element of the viewport, which should be mounted on the root element of the Semagram. Typically a <g>.

The root element of the viewport, which should be mounted on the root element of the Semagram. Typically a <g>.

Attributes

The entities contained in the viewport.

The entities contained in the viewport.

Attributes

The transform of the viewport; this will be able to be modified in order to zoom/pan

The transform of the viewport; this will be able to be modified in order to zoom/pan

Attributes