Material Motion Exploring solutions that will empower creators with the tools needed to describe and implement rich, interactive motion on any platform. Edit this page · History
MotionObservable-Metadata · runtime MotionRuntime.toGraphViz
Status Interface level Implementation level Library
Proposed as of April 18, 2017 L1: App creator L4: Runtime engineering material-motion
UpdatesCurrent StatusInitiation dateCompletion date
Introduced proposal. Proposed April 18, 2017
iOS (Swift) View

MotionRuntime.toGraphViz specification

This is the engineering specification for the MotionRuntime’s toGraphViz API.


toGraphViz generates a graphviz representation of a MotionRuntime’s connected streams.

Connected streams in a MotionRuntime can be thought of as a connected graph, meaning they’re naturally representable in graphviz.


Expose a toGraphViz API

class MotionRuntime {
  public func toGraphViz() -> String

Return a complete graphviz string

digraph G {
  node [shape=rect]
  // Each line represents a connection in the runtime's graph