MAIDR JavaScript API
    Preparing search index...

    Function ownDiagramType

    • The diagram a layer says it is (MaidrLayer.diagramType), when MAIDR knows it. Guarded rather than trusted, as a title is, because a producer's JSON can carry anything.

      Parameters

      • Optionallayer: Pick<MaidrLayer, "diagramType">

        The layer, when there is one

      Returns DiagramType | undefined

      The diagram type, or undefined when the layer names none MAIDR knows