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