blockly > ContextMenuRegistry > Scope
ContextMenuRegistry.Scope-Schnittstelle
Der tatsächliche Arbeitsbereich/Block/das fokussierte Objekt, in dem das Menü gerendert wird. Dieser Wert wird an die Callback- und displayText-Funktionen übergeben, die von diesen Informationen abhängen.
Unterschrift:
export interface Scope
Attribute
| Attribut | Modifikatoren | Typ | Beschreibung |
|---|---|---|---|
| blockieren? | BlockSvg | (Optional) | |
| comment? | RenderedWorkspaceComment | (Optional) | |
| focusedNode? | IFocusableNode | (Optional) | |
| workspace? | WorkspaceSvg | (Optional) |