MCPcopy Index your code
hub / github.com/cifertech/DisplayKit / pushHistory

Function pushHistory

app.js:1932–1939  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1930}
1931
1932function pushHistory() {
1933 if (historyLocked) return;
1934 const snap = deepCloneState();
1935 history = history.slice(0, historyIndex + 1);
1936 history.push(snap);
1937 historyIndex = history.length - 1;
1938 updateUndoRedoButtons();
1939}
1940
1941function updateUndoRedoButtons() {
1942 undoBtn.disabled = historyIndex <= 0;

Callers 15

renderGuidesFunction · 0.85
app.jsFile · 0.85
renderUiExamplesFunction · 0.85
addIconElementFunction · 0.85
setActiveScreenFunction · 0.85
initScreensFunction · 0.85
addAssetElementToCanvasFunction · 0.85
deleteAssetFunction · 0.85
removeUnusedAssetsFunction · 0.85
onResizeUpFunction · 0.85
onRotUpFunction · 0.85

Calls 2

deepCloneStateFunction · 0.85
updateUndoRedoButtonsFunction · 0.85

Tested by

no test coverage detected