addCustomMutation

Type: Function

How to get addCustomMutation?

JavaScript

import addCustomMutation from 'fontoxml-base-flow/src/addCustomMutation.js'

Register a custom mutation, a callback to manipulate the XML of a document directly.

Arguments

  1. mutationName

    (Required)

    Type: String

    The name used to refer to this mutation from operations (using a step of type custom-mutation/).

  2. callback

    (Required)

    The function called to perform the XML mutation.

  3. getTransactionInfo

    (Optional)

    Type: Function

    For internal use only, do not use.