@maxgraph/core
    Preparing search index...

    Class StyleRegistry

    Singleton class that acts as a global converter from string to object values in a style.

    This is currently only used for handling perimeters and edge styles.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    values: any = ...

    Maps from strings to objects.

    Methods

    • Returns the name for the given value.

      Parameters

      • value: any

      Returns null | string

    • Returns the value associated with the given name.

      Parameters

      • name: string

      Returns any

    • Puts the given object into the registry under the given name.

      Parameters

      • name: string
      • obj: any

      Returns void