Semagram

semagrams.Semagram
abstract class Semagram

The abstract class that you create an instance of to create a Semagram

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

def run(es: EditorState, init: Option[String]): IO[Unit]

This is the entrypoint to your app that you should override.

This is the entrypoint to your app that you should override.

Attributes

es

An initialized EditorState to work with

init

An option of a string to deserialize your state from

Concrete methods

def main(div: Element, init: UndefOr[String]): Unit

Constructs an SVG in div and runs your Semagram in there.

Constructs an SVG in div and runs your Semagram in there.

Attributes

div

The parent div of the root SVG for Semagrams

init

An optional string representing serialized data to initialize your app with