Function cloneElementData

  • This method is used to break references and safely work with this data. It clones the provided data object and returns a new object with the same structure and values. This ensures that any modifications made to the cloned object will not affect the original data object.

    Parameters

    • data: Partial<ElementData>

      The data object to be cloned.

    Returns ElementData

    A new object with the same structure and values as the provided data object.

Generated using TypeDoc