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

Function deepCloneState

app.js:1857–1876  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1855}
1856
1857function deepCloneState() {
1858 return JSON.parse(
1859 JSON.stringify({
1860 screens,
1861 activeScreenId,
1862 assets,
1863 dispWidth,
1864 dispHeight,
1865 bgColor,
1866 useSprite,
1867 snapToGrid,
1868 gridSize,
1869 driverMode,
1870 u8g2PresetId,
1871 tftSettingsState,
1872 oledSettingsState,
1873 // Element transparency is handled per element, no global state needed
1874 })
1875 );
1876}
1877
1878function applyStateSnapshot(snap) {
1879 historyLocked = true;

Callers 2

pushHistoryFunction · 0.85
app.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected