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

Function useFilterSelector

reducers/filterReducer.ts:40–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38} = filterSlice.actions
39
40export const useFilterSelector = () => {
41 const selector = useSelector.withTypes<StoreState>()
42 return {
43 brightness: selector((state) => state.filter.brightness),
44 contrast: selector((state) => state.filter.contrast),
45 hue: selector((state) => state.filter.hue),
46 saturation: selector((state) => state.filter.saturation),
47 lightness: selector((state) => state.filter.lightness),
48 blur: selector((state) => state.filter.blur),
49 sharpen: selector((state) => state.filter.sharpen),
50 pixelate: selector((state) => state.filter.pixelate)
51 }
52}
53
54const resetImageFilters = (dispatch: StoreDispatch) => {
55 dispatch(setBrightness(100))

Callers 2

FXDialogFunction · 0.85
VideoPlayerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected