canEditTextBlock method
This predicate controls whether or not the user can invoke the #editTextBlock command.
This method may be overridden, but you should consider calling this base method in order to get all of its functionality. This method must not have any side-effects. Please read the Introduction page on Extensions for how to override methods and how to call this base method. @expose @param {TextBlock=} textblock the TextBlock to consider editing. @return {boolean} This returns true: if the diagram is not Diagram#isReadOnly, if Diagram#allowTextEdit is true, if there is a ToolManager#textEditingTool, and if there is any selected Part for which Part#canEdit is true. @see #editTextBlock
Implementation
_i2.bool canEditTextBlock([_i3.TextBlock? textblock]) => _i4.callMethod(
this,
'canEditTextBlock',
[textblock ?? _i5.undefined],
);