in modules/layers/src/mode-handlers/snappable-handler.ts [61:81]
_updatePickedHandlePosition(editAction: EditAction) {
const { pickedHandle } = this._editHandlePicks || {};
if (pickedHandle && editAction) {
const { featureIndexes, updatedData } = editAction;
for (let i = 0; i < featureIndexes.length; i++) {
const selectedIndex = featureIndexes[i];
const updatedFeature = updatedData.features[selectedIndex];
const { positionIndexes, featureIndex } = pickedHandle;
if (selectedIndex >= 0 && featureIndex === selectedIndex) {
const { coordinates } = updatedFeature.geometry;
pickedHandle.position = positionIndexes.reduce(
(a: any[], b: number) => a[b],
coordinates
);
}
}
}
}