Type of application state
Represents the types for the arguments
Complete for saving the entire state
Diff for using diff algorithm
Ephemeral for actions which are shortlived. e.g. hovering
Regular for all you other actions.
Adds an artifact to the given node
Adds an artifact to the given node
Observer function which is called whenever any part of the state changes. Also called when an artifact changes.
Adds an observer to the key which is returned from the ObserverExpression function. Second parameter is a subscriber function which is called when the observer is triggered For example { selected: 'A', position: { A: 10 B: 5 C: 13 } }
And you wanted an observer which was called whenever a node is selected, you would have addObserver((state) => state.selected, () => {doSomething}).
If you wanted an observer strictly for when the position of A changed, you would have addObserver((state) => state.position.A, () => {doSomething}).
Applies the given action. Creates a new node based on the action, sets that node to current, and calls observers accordingly.
Returns the current Provenance Node object
Function to call when finished setting up observers. Allows for url state sharing easily.
Exports the entire provenance graph in JSON form. Not compressed.
Exports the current nodes state. Returns a compressed string representing the JSON form of the current state
Returns a list of all annotations for the given node
Returns a list of all Artifacts for the given node
Gets the bookmark of the node with the given ID.
Gets the bookmark of the node with the given ID.
Returns the most recent Artifact for the given node
Returns the most recent Artifact for the given node
Returns the state for the designated node.
Goes one step backwards in the provenance graph. Equivalent to 'undo' Calls any observers for which their associated state has changed with the new node. Also calls the global observer if any part of the state changed.
Equivalent to undo, but while ignoring ephemeral nodes. Goes one step backwards in the provenance graph, not including ephemeral nodes. Calls any observers for which their associated state has changed with the new node. Also calls the global observer if any part of the state changed.
Equivalent to redo Goes forward one step in the provenance graph. If there are two or more chld nodes, you may specify to go to the most recent or the oldest. Calls any observers for which their associated state has changed with the new node. Also calls the global observer if any part of the state changed.
Equivalent to redo, but while ignoring ephemeral nodes. Goes forward one step in the provenance graph, not including ephemeral nodes. If there are two or more chld nodes, you may specify to go to the most recent or the oldest. Calls any observers for which their associated state has changed with the new node. Also calls the global observer if any part of the state changed.
Jumps to the node in the provenance graph with the given id. Calls any observers for which their associated state has changed with the new node. Also calls the global observer if any part of the state changed.
Returns the ProvenanceGraph object
Imports an entire, non compressed provenance graph in JSON form.
Replaces the current provenance graph with the new one.
Imports the given state. Decompresses the given string and creates a new node with that state.
Goes forward one step in the provenance graph. If there are two or more chld nodes, you may specify to go to the most recent or the oldest. Calls any observers for which their associated state has changed with the new node. Also calls the global observer if any part of the state changed.
Equivalent to redo, but while ignoring ephemeral nodes. Goes forward one step in the provenance graph, not including ephemeral nodes. If there are two or more chld nodes, you may specify to go to the most recent or the oldest. Calls any observers for which their associated state has changed with the new node. Also calls the global observer if any part of the state changed.
Returns to the root node.
Returns the Root Node object
Sets the bookmark of the node with the given ID. the bookmark is set to true or false, equivalent on the second parameter.
Returns the state type
Goes one step backwards in the provenance graph. Calls any observers for which their associated state has changed with the new node. Also calls the global observer if any part of the state changed.
Equivalent to undo, but while ignoring ephemeral nodes. Goes one step backwards in the provenance graph, not including ephemeral nodes. Calls any observers for which their associated state has changed with the new node. Also calls the global observer if any part of the state changed.
Returns if using default serializer/deserializer
State of the application
Represents the given event types in your application. Event types are used to differentiate between different actions that create nodes.
Defines the function which will be executed on provenance apply
* Retrieve the state of a node.
Represents the given event types in your application. Event types are used to differentiate between different actions that create nodes.
Represents the given "extra" type for storing metadata. Extra is a way to store customized metadata.
Represents the given state of an application as defined in initProvenance.
Represents the given event types in your application. Event types are used to differentiate between different actions that create nodes.
Represents the given "extra" type for storing metadata. Extra is a way to store customized metadata.
Function for checking if a node is a child node.
Represents the given event types in your application. Event types are used to differentiate between different actions that create nodes.
Represents the given "extra" type for storing metadata. Extra is a way to store customized metadata.
Function for checking if a node is a diff node.
Represents the given event types in your application. Event types are used to differentiate between different actions that create nodes.
Represents the given "extra" type for storing metadata. Extra is a way to store customized metadata.
Function for checking if a node is the root node.
Represents the given event types in your application. Event types are used to differentiate between different actions that create nodes.
Represents the given "extra" type for storing metadata. Extra is a way to store customized metadata.
Function for checking if a node is a state node.
Represents the given event types in your application. Event types are used to differentiate between different actions that create nodes.
Represents the given "extra" type for storing metadata. Extra is a way to store customized metadata.
Generated using TypeDoc
Application state