|
@@ -39,9 +39,9 @@ export default class RemoveOperation extends MoveOperation {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * Returns the offset of graveyard "holder" element, in which nodes removed by this operation are stored.
|
|
|
|
|
|
|
+ * Offset of the graveyard "holder" element, in which nodes removed by this operation are stored.
|
|
|
*
|
|
*
|
|
|
- * @private
|
|
|
|
|
|
|
+ * @protected
|
|
|
* @type {Number}
|
|
* @type {Number}
|
|
|
*/
|
|
*/
|
|
|
get _holderElementOffset() {
|
|
get _holderElementOffset() {
|
|
@@ -49,6 +49,16 @@ export default class RemoveOperation extends MoveOperation {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
|
+ * Sets {@link engine.model.operation.RemoveOperation#_holderElementOffset}.
|
|
|
|
|
+ *
|
|
|
|
|
+ * @protected
|
|
|
|
|
+ * @param {Number} offset
|
|
|
|
|
+ */
|
|
|
|
|
+ set _holderElementOffset( offset ) {
|
|
|
|
|
+ this.targetPosition.path[ 0 ] = offset;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
* Flag informing whether this operation should insert "holder" element (`true`) or should remove nodes
|
|
* Flag informing whether this operation should insert "holder" element (`true`) or should remove nodes
|
|
|
* into existing "holder" element (`false`). It is `true` for each `RemoveOperation` that is the first `RemoveOperation`
|
|
* into existing "holder" element (`false`). It is `true` for each `RemoveOperation` that is the first `RemoveOperation`
|
|
|
* in it's delta which points to given holder element.
|
|
* in it's delta which points to given holder element.
|