@graphty/graphty-element / session / HistoryCode
Type Alias: HistoryCode ​
HistoryCode =
"algo.run"|"algo.legacy"|"algo.remove"|"algo.move"|"algo.batch"|"algo.template"|"batch"|"data.add-nodes"|"data.add-edges"|"data.remove-nodes"|"data.remove-edges"|"data.edit"|"data.clear"|"data.set"|"data.replace-nodes"|"data.replace-edges"|"data.import"|"data.import-source"|"data.expand"|"data.source-expand"|"data.collapse"|"data.declare"|"data.set-source"|"data.label"|"data.set-file-styles"|"style.add-layer"|"style.update-layer"|"style.remove-layer"|"style.move-layer"|"style.remove-layers"|"style.highlight"|"style.fix-channel"|"style.encode"|"style.template"|"style.suggested"|"style.add-folder"|"style.rename-row"|"style.move-row"|"style.pin-row"|"style.lock-row"|"style.hide-row"|"style.delete-row"|"style.restore-starting-rows"|"visibility.filter"|"visibility.clear-filter"|"visibility.window"|"visibility.clear-window"|"visibility.show-context"|"visibility.hide-context"|"visibility.step-add"|"visibility.step-edit"|"visibility.step-on"|"visibility.step-off"|"visibility.step-remove"|"visibility.steps"|"set.create"|"set.rename"|"set.redefine"|"set.members"|"set.remove"|"set.restore"|"note.add"|"note.update"|"note.remove"|"note.merge"|"view.save"|"view.remove"|"view.dimension"|"view.immersive"|"config.set"|"positions.set"|"positions.pin"|"positions.release"|"node.drag"|"layout.set"|"layout.behavior"|"layout.scope"|"layout.whole-graph"|"project.open"|"document.open"|"transaction"
Defined in: graphty-element/src/session/types.ts:2167
What a history step did, as the code of its HistoryStep.fact. The application words it; graphty-element writes no sentence for it. Each code's params:
| Code | Params |
|---|---|
algo.run, algo.legacy | algorithm: the algorithm's key |
algo.remove, algo.move | run: the run's id; algorithm: its algorithm, or null when unknown |
algo.batch | label: the name runs.batch was given, or null; count: how many runs |
algo.template | none: the runs a style template asks for |
batch | label: the batch's own label, or null; steps: how many commands |
data.add-nodes, data.add-edges, data.remove-nodes, data.remove-edges | count |
data.edit | target: "node" or "edge"; count: how many rows |
data.clear, data.set, data.replace-nodes, data.replace-edges | none |
data.import | name: the source's name (given, file or URL), or null; type: the data source, or null |
data.import-source | source: the network source's id; name: what the reader called the data, or null |
data.expand | node: the id expanded |
data.source-expand | seeds: the ids expanded; nodes, edges: how many rows came (experimental) |
data.collapse | node: the id collapsed; nodes: how many nodes went (experimental) |
data.declare | kind: "node" or "edge"; column: the column's name |
data.set-source | name: the source's name, or null |
data.label | path: the value path; value: the value named; label: its name, or null when it was removed |
data.set-file-styles | loads: how many loads' style values are kept |
style.add-layer, style.remove-layer, style.move-layer | layer: its name, or its id |
style.update-layer | layer: its name, or its id; channels: the channels whose set value or binding changed (empty when only another key did) |
style.remove-layers | count |
style.highlight | run: the run highlighted |
style.fix-channel | channel; layer: its name, or its id |
style.encode | channel; run |
style.template | none |
style.suggested | algorithms: the algorithms whose suggested styles were applied |
style.add-folder | name: the folder's name |
style.rename-row | row: its name before, or its id; name: the new name |
style.move-row, style.delete-row | row: its name, or its id |
style.pin-row | row: its name, or its id; pin: "top", "bottom" or "none" |
style.lock-row | row: its name, or its id; locked |
style.hide-row | row: its name, or its id; hidden |
style.restore-starting-rows | none |
visibility.filter | kind: the filter's kind |
visibility.clear-filter, visibility.window, visibility.clear-window | none |
visibility.show-context, visibility.hide-context | none |
visibility.step-add, visibility.step-edit, visibility.step-on, visibility.step-off, visibility.step-remove | id: the filter step's id |
visibility.steps | none: several steps changed at once, or a reorder |
set.create | name: the set's name, or null |
set.rename | set: its name before, or its id; name: the new name |
set.redefine, set.members, set.remove, set.restore | set: its name, or its id |
note.add, note.update, note.remove | none |
note.merge | source: the merged document's name, or null |
view.save, view.remove | names: the views |
view.dimension | dimension: "2d" or "3d" |
view.immersive | mode: "vr" or "ar" (a switch to 3D on the way in) |
config.set | keys: the setting paths changed |
positions.set, positions.pin, positions.release | count: how many nodes |
node.drag | node: the id dragged |
layout.set | layout: the layout's id |
layout.behavior | layout: the layout's id |
layout.scope, layout.whole-graph | none |
project.open | name: the project's name, or null |
document.open | none |
transaction | label: the label given to session.transaction, or null |
New codes may be added in a minor release: word an unknown one generically.