Move constant to top of file.
rodzic
4098a23482
commit
87affa0a4c
|
@ -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,
|
||||
|
|
Ładowanie…
Reference in New Issue