Skip to content

ExternalDiagramDefinition.detector method

ExternalDiagramDefinition › detector

Unofficial

Detect whether the given text matches this diagram type.

Signature:

detector(text: string): boolean

Parameters:

ParameterTypeDescription
textstringThe diagram text to check.

Returns: booleanWhether the text matches this diagram type.