With and without plugins
The Data Studio works on a plain project with the core alone, and a domain plugin adds to it. This page lists, area by area, what works without a plugin and what a plugin adds.
The bundled Plugin Demo exercises every addition on this page, so you can see each one running before you write your own. To write one, see Plugin authoring.
Plugin contracts by area
| Area | Contract or registration |
|---|---|
| Sheets, cells and rows | None. The area is unchanged |
| Import and reflect | None. The area is unchanged |
| Problems | IDomainValidator |
| What the canvas shows | ISheetForgeGraphPlugin |
| Edges drawn | IEdgeContributor |
| Editing on the canvas | IAuthorableGraphShape, IAuthorableEdgeContributor, IEdgeTokenEditor |
| Above the canvas | IStudioGraphWidget |
| Node inspector | IStudioInspectorAction |
| Cell widgets | IStudioCellEditorProvider or StudioCellEditorHint |
| Menus and panels | ISheetForgeStudioPlugin |
| Rich panels | IStudioPanelProvider |
| Sidebar | ISheetForgeCodeRegistryPlugin |
| Colors and labels | ISheetForgeThemePlugin, ISheetForgeStringsPlugin |
Data and pipeline
Sheets, cells and rows
Without a plugin, you get the full table, cell editing, row add, staged edits, Ctrl+Z and the reflect that writes them to the source.
A plugin changes nothing here.
Import and reflect
Without a plugin, ↓ Import imports every active workbook. A reflect goes through the same pre-flight and re-import chain, one slice per workbook.
A plugin changes nothing here.
Problems
Without a plugin, the Studio reports the four core validations: keys, references, @overlap and asset keys.
With a plugin, it also reports your IDomainValidator rules. The demo warns on an unbraked reaction cycle and on an orphan record.
Canvas
What the canvas shows
Without a plugin, the canvas shows the record you opened, what it is made of and what uses it, laid out deterministically.
With a plugin, your per-tab override through ISheetForgeGraphPlugin adds:
- Identities that are not sheet records
- Links the core cannot see
- Columns pinned by domain order, absolute or counted from the record on screen
- The human-readable name a record goes by
The demo grows event nodes and a code block around an ExampleActions record. It pins the cast stages of an ExampleSkills record. It turns fireball into "Fireball" on the card and in the picker.
Edges drawn
Without a plugin, the canvas draws every RecordId@Tab reference the core scanner sees: scalars, list elements, defaults and wrapper innards.
With a plugin, it also draws the edges declared by an IEdgeContributor, and any extra edge a canvas override reveals. The demo opens the stat reference buried inside a Modifier mini-syntax value.
Editing on the canvas
Without a plugin, you can create, connect, disconnect, re-aim, fork and delete, and you can edit values inline for every column. New records can be created in the sheets the drawn ports aim at.
With a plugin, three contracts add to that.
| Contract | What it does |
|---|---|
IAuthorableGraphShape | Decides where new records may be created |
IAuthorableEdgeContributor | Makes a contributor's own edge editable |
IEdgeTokenEditor | Exposes the part of its token that is not the key |
The demo's contributor rewrites the modifier mini-syntax when you link or unlink a stat. It offers its op:value as one editable row in the wire inspector.
Above the canvas
Without a plugin, nothing stands above the canvas. The core ships no widget.
With a plugin, your IStudioGraphWidget stands there. The demo shows a fixed stage strip (VALIDATE → CAST → COMMIT → DELIVER → APPLY) filled from the row of the terminus, the record the canvas is opened on.
Node inspector
Without a plugin, the inspector holds what Node inspector lists, including Open … and Duplicate and split.
With a plugin, it also holds your IStudioInspectorAction buttons. The demo stages brakeSeconds = 0.25 on an unbraked reaction. That is a normal, undoable staged edit.
Table and window
Cell widgets
Without a plugin, a cell uses one of the built-in branches:
- Toggle
- Choice picker
- Reference picker
- Asset picker with drop
- Color, curve and gradient editors
- Chip lists for lists of those three
- Raw text
With a plugin, your IStudioCellEditorProvider supplies the widget for one named cell type.
With no widget code at all, a StudioCellEditorHint names one of seven built-in shapes for that type instead: dropdown, multi-line, slider, toggle, color, curve or gradient.
A registered widget wins. The hint wins over the core default. That includes the built-in color, curve and gradient hints, when a plugin registers a hint under the same type name.
Menus and panels
Without a plugin, the menus hold the built-in items only.
With a plugin, your ISheetForgeStudioPlugin registrations add:
- Verbs at the end of the inspector, row menu, column-header menu, canvas-node menu and topbar ⋯
- A right-hand summary panel
- A badge beside a column header
The demo stages a reaction brake on one row, fills a whole column in one Undo step, and summarizes what a skill is made of, with a cast-time gauge.
Rich panels
Without a plugin, there are no rich panels.
With a plugin, IStudioPanelProvider paints an arbitrary UIToolkit panel. When it is registered under the same id as a declarative panel, it wins in the Studio, while the browser draws the declarative one.
Sidebar
Without a plugin, the sidebar lists your sheets only.
With a plugin, it also lists locked _Refs-style code registries, which come from ISheetForgeCodeRegistryPlugin. Each registry is shown as a read-only grid with the columns key, label and raises. Edges that point at those keys are not drawn as broken.
Colors and labels
Without a plugin, you get the built-in presets plus each sheet's own @style color.
With a plugin, you also get your ISheetForgeThemePlugin preset and your ISheetForgeStringsPlugin strings. Both are registered in Core, so the same plugin's labels also show up in the browser.
Next steps
- Plugin authoring
Write the canvas overrides, code registries, widgets and actions the Studio picks up.
- Try the demos
See each plugin addition running in the Plugin Demo.
- Studio extensions
Add graph widgets, inspector actions and cell widgets.
- Authoring kernel
The engine this window is built on.