Use SvgTransforms in creature page.

pull/58/head
Atul Varma 2021-03-26 20:09:17 -04:00
rodzic f790838b06
commit 13907a7851
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -23,6 +23,7 @@ import {
NestedCreatureSymbol, NestedCreatureSymbol,
} from "../creature-symbol"; } from "../creature-symbol";
import { HoverDebugHelper } from "../hover-debug-helper"; import { HoverDebugHelper } from "../hover-debug-helper";
import { svgScale, SvgTransforms } from "../svg-transform";
const DEFAULT_BG_COLOR = "#858585"; const DEFAULT_BG_COLOR = "#858585";
@ -321,9 +322,9 @@ export const CreaturePage: React.FC<{}> = () => {
<CreatureContext.Provider value={ctx}> <CreatureContext.Provider value={ctx}>
<HoverDebugHelper> <HoverDebugHelper>
<AutoSizingSvg padding={20} ref={svgRef} bgColor={bgColor}> <AutoSizingSvg padding={20} ref={svgRef} bgColor={bgColor}>
<g transform="scale(0.5 0.5)"> <SvgTransforms transforms={[svgScale(0.5)]}>
<CreatureSymbol {...creature} /> <CreatureSymbol {...creature} />
</g> </SvgTransforms>
</AutoSizingSvg> </AutoSizingSvg>
</HoverDebugHelper> </HoverDebugHelper>
</CreatureContext.Provider> </CreatureContext.Provider>