vis-util
    Preparing search index...

    Function bridgeObject

    This recursively redirects the prototype of JSON objects to the referenceObject. This is used for default options.

    The original object.

    The Element if the referenceObject is an Element, or a new object inheriting from the referenceObject.

    • Type Parameters

      • T extends object

      Parameters

      • referenceObject: T

      Returns T

    • Type Parameters

      • T

      Parameters

      • referenceObject: T

      Returns null