CustomMutationResult

How to get CustomMutationResult

ES2015+:

import CustomMutationResult from 'fontoxml-base-flow/CustomMutationResult'

ES5:

define([
	'fontoxml-base-flow/CustomMutationResult'
], function (
	CustomMutationResult
) {
});

Type: Class

Represents the result of a custom mutation.

Constructor

# Name Type Description
1. operationIsEnabled Boolean

Static methods

Name Description
notAllowed

Indicates the custom mutation can not be applied in the current situation.

Any changes made to the blueprint or selection will be ignored.


  Returns

Type: CustomMutationResult

A disabled custom mutation result

ok

Indicates the changes in the blueprint and/or selection should be applied to the document, provided the result is valid.


  Returns

Type: CustomMutationResult

An enabled custom mutation result

Methods

Name Description
setActive

Set the active property of the operation using this custom mutation.


  Arguments
# Name Type Description
1. isActive Boolean
  Default value
true
  Returns

Type: CustomMutationResult

this, for chaining

  Related links

Related links