Viewport

semagrams.Viewport
See theViewport companion object
trait Viewport

A semagrams app is split into several viewports.

The reason for this is that we might want to apply different affine transformations to different parts of the app. For instance, we might have UI elements in one viewport, and the main acset in another viewport, so that we can zoom out on the main acset without making all of the buttons tiny.

Currently transforms are unimplemented; however this was just the result of an incomplete refactor, and it should be straightforward to add them back.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract 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