feat: Add extensibility for tmtv and segmentation modes (#6128)
* feat: Add extensibility for tmtv and segmentation modes * Fixes for ordering issues on laod * Remove unnecessary reference lookup * Chane side panel timing to fix tests * PR comments - change how mode definitions get created * Improvements to mode customizations * Start organizing customizations * Misc fixes for a customization demo page * Security fixes * PR requested changes to naming
This commit is contained in:
1 parent
f79055f98e
commit
b266c0a86a
49 files changed
+2653
-1215
No files matched your search
@@ -784,12 +784,16 @@ export const toolbarSections = {
|
||||
};
|
||||
|
||||
/**
|
||||
* Customizations registered (at default scope) by the cornerstone extension:
|
||||
* - `cornerstone.toolbarButtons` – the default toolbar button definitions
|
||||
* - `cornerstone.toolbarSections` – the default toolbar layout (section -> button ids)
|
||||
* Capability packs registered (at default scope) by the cornerstone extension:
|
||||
* - `cornerstone.toolbarButtons` – the general toolbar button definitions
|
||||
* - `cornerstone.toolbarSections` – the general toolbar layout (section -> button ids)
|
||||
*
|
||||
* Modes read these by name in `onModeEnter`; URL `?customization=` modules can
|
||||
* extend them with immutability-helper commands (e.g. `$push` a new button).
|
||||
* These are pure "what can exist" packs — they carry no mode identity. Modes
|
||||
* compose them with `{ $reference }` markers in their own `toolbarButtons` /
|
||||
* `toolbarSections` instance arrays, which the mode route seeds into the Mode
|
||||
* customization scope on enter; URL `?customization=` modules extend the result
|
||||
* through the `mode` phase (e.g.
|
||||
* `mode.basic.toolbarButtons: { $push: [{ $reference: '...' }] }`).
|
||||
*/
|
||||
const toolbarButtonsCustomization = {
|
||||
'cornerstone.toolbarButtons': toolbarButtons,
|
||||
|
||||
Reference in new issue
Block a user