MCPcopy
hub / github.com/antvis/Infographic / reset

Method reset

src/editor/interactions/drag-element.ts:367–382  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

365 }
366
367 private reset() {
368 this.detachPointerListeners();
369 this.clearGuides();
370 this.pointerId = undefined;
371 this.startPoint = undefined;
372 this.dragItems = [];
373 this.startTarget = undefined;
374 this.selectionForDrag = [];
375 this.willReplaceSelection = false;
376 this.exclusiveStarted = false;
377 this.dragging = false;
378 this.startBounds = undefined;
379 this.guideCandidates = undefined;
380 this.completeInteraction?.();
381 this.completeInteraction = undefined;
382 }
383
384 private getSelectionBounds(
385 selection: Selection,

Callers 2

DragElementClass · 0.95
mainFunction · 0.80

Calls 2

clearGuidesMethod · 0.95

Tested by

no test coverage detected