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

Function startCrossPanelDrag

frontend/src/stores/panel-drag.ts:42–51  ·  view source on GitHub ↗
(sourcePanelId: string, draggedTabs: PanelType[], sourceTabIndex: number, draggingGroup: boolean)

Source from the content-addressed store, hash-verified

40export const panelDrag = store;
41
42export function startCrossPanelDrag(sourcePanelId: string, draggedTabs: PanelType[], sourceTabIndex: number, draggingGroup: boolean) {
43 store.update((state) => {
44 state.active = true;
45 state.sourcePanelId = sourcePanelId;
46 state.draggedTabs = draggedTabs;
47 state.sourceTabIndex = sourceTabIndex;
48 state.draggingGroup = draggingGroup;
49 return state;
50 });
51}
52
53export function endCrossPanelDrag() {
54 store.update((state) => {

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected