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