Hide Table of Contents
esri/dijit/util
esri/layer/pixelFilters
esri/process
esri/support
esri/workers
Class: Cut

require(["esri/dijit/editing/Cut"], function(Cut) { /* code goes here */ });

Description

(Added at v2.2)
This class is used with the UndoManager to provide undo/redo functionality of Cut operations when editing.

Samples

Search for samples that use this class.

Class hierarchy

esri/dijit/editing/OperationBase
|_esri/dijit/editing/Cut

Constructors

NameSummary
new Cut(params)Create a new Cut operation.

Properties

NameTypeSummary
labelStringDetails about the operation, for example: "Update" may be the label for an edit operation that updates features.
typeStringThe type of operation, for example: "edit" or "navigation".

Methods

NameReturn typeSummary
performRedo()NoneRedo the current operation.
performUndo()NoneUndo the current operation.
Constructor Details

new Cut(params)

Create a new Cut operation. Cut is a combination of the Add and Update operations.
Parameters:
<Object> params Required See options list for parameters.
params properties:
<Graphic[]> addedGraphics Optional The feature(s) added to the feature layer by the cut operation.
<FeatureLayer> featureLayer Optional The feature layer that contains the cut feature(s).
<Graphic[]> postUpdatedGraphics Optional The updated feature(s).
<Graphic[]> preUpdatedGraphics Optional The feature(s) before the cut operation is performed.
Property Details

<String> label

Details about the operation, for example: "Update" may be the label for an edit operation that updates features.

<String> type

The type of operation, for example: "edit" or "navigation".
Method Details

performRedo()

Redo the current operation.

performUndo()

Undo the current operation.
Show Modal