chore(core): remove any typecast

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-02-10 15:53:26 +01:00
committed by Braks
parent d39c63e5f3
commit 9a14d8b349
+2 -2
View File
@@ -252,12 +252,12 @@ export function useActions(state: State, getters: ComputedGetters): Actions {
if (changedEdges.length) state.hooks.edgesChange.trigger(changedEdges)
}
const setMinZoom: Actions['setMinZoom'] = (minZoom: any) => {
const setMinZoom: Actions['setMinZoom'] = (minZoom) => {
state.d3Zoom?.scaleExtent([minZoom, state.maxZoom])
state.minZoom = minZoom
}
const setMaxZoom: Actions['setMaxZoom'] = (maxZoom: any) => {
const setMaxZoom: Actions['setMaxZoom'] = (maxZoom) => {
state.d3Zoom?.scaleExtent([state.minZoom, maxZoom])
state.maxZoom = maxZoom
}