grungnet/src/contexts/MapInteractionContext.js

15 lines
342 B
JavaScript
Raw Normal View History

import React from "react";
const MapInteractionContext = React.createContext({
2020-05-21 02:46:50 -04:00
stageScale: 1,
stageWidth: 1,
stageHeight: 1,
setPreventMapInteraction: () => {},
mapWidth: 1,
mapHeight: 1,
interactionEmitter: null,
});
export const MapInteractionProvider = MapInteractionContext.Provider;
export default MapInteractionContext;