MCPcopy
hub / github.com/tldraw/tldraw / resetShaderConfig

Function resetShaderConfig

templates/shader/src/shadow/config.ts:28–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26export const shaderConfig = atom<ShaderManagerConfig>('shader-config', initialValue)
27
28export function resetShaderConfig() {
29 shaderConfig.set(DEFAULT_CONFIG)
30}
31
32react('save to local storage', () => {
33 localStorage.setItem(STORAGE_KEY, JSON.stringify(shaderConfig.get()))

Callers

nothing calls this directly

Calls 1

setMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…