Move constant to top of file.

pull/34/head
Atul Varma 2021-02-27 08:51:42 -05:00
rodzic 4098a23482
commit 87affa0a4c
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -11,6 +11,8 @@ import {
SvgSymbolData,
} from "./svg-symbol";
const DEFAULT_ATTACHMENT_SCALE = 0.5;
function getAttachmentPoint(
s: SvgSymbolData,
type: AttachmentPointType,
@ -53,8 +55,6 @@ export type CreatureContextType = SvgSymbolContext & {
parent: SvgSymbolData | null;
};
const DEFAULT_ATTACHMENT_SCALE = 0.5;
export const CreatureContext = React.createContext<CreatureContextType>({
...createSvgSymbolContext(),
attachmentScale: DEFAULT_ATTACHMENT_SCALE,