MCPcopy Create free account
hub / github.com/Moebytes/Frame-Player / resetImageFilters

Function resetImageFilters

reducers/filterReducer.ts:54–63  ·  view source on GitHub ↗
(dispatch: StoreDispatch)

Source from the content-addressed store, hash-verified

52}
53
54const resetImageFilters = (dispatch: StoreDispatch) => {
55 dispatch(setBrightness(100))
56 dispatch(setContrast(100))
57 dispatch(setHue(180))
58 dispatch(setSaturation(100))
59 dispatch(setLightness(100))
60 dispatch(setBlur(0))
61 dispatch(setSharpen(0))
62 dispatch(setPixelate(1))
63}
64
65export const useFilterActions = () => {
66 const dispatch = useDispatch.withTypes<StoreDispatch>()()

Callers 1

useFilterActionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected