MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / endCrossPanelDrag

Function endCrossPanelDrag

frontend/src/stores/panel-drag.ts:53–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51}
52
53export function endCrossPanelDrag() {
54 store.update((state) => {
55 state.active = false;
56 state.sourcePanelId = undefined;
57 state.draggedTabs = [];
58 state.sourceTabIndex = 0;
59 state.draggingGroup = false;
60 state.hoverTargetPanelId = undefined;
61 state.hoverInsertionIndex = undefined;
62 state.hoverInsertionMarkerLeft = undefined;
63 state.hoverDockingPanelId = undefined;
64 state.hoverDockingEdge = undefined;
65 return state;
66 });
67}
68
69export function updateCrossPanelHover(hoverTargetPanelId: string | undefined, hoverInsertionIndex: number | undefined, hoverInsertionMarkerLeft: number | undefined) {
70 store.update((state) => {

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected