import React, { useContext, useState } from "react"; import { AutoSizingSvg } from "../auto-sizing-svg"; import { CreatureContext, CreatureContextType } from "../creature-symbol"; import { createCreatureSymbolFactory } from "../creature-symbol-factory"; import { HoverDebugHelper } from "../hover-debug-helper"; import { createSvgSymbolContext } from "../svg-symbol"; import { svgScale, SvgTransform } from "../svg-transform"; import { SvgVocabulary } from "../svg-vocabulary"; import { SymbolContextWidget } from "../symbol-context-widget"; const symbol = createCreatureSymbolFactory(SvgVocabulary); const Eye = symbol("eye"); const Hand = symbol("hand"); const Arm = symbol("arm"); const Antler = symbol("antler"); const Crown = symbol("crown"); const Wing = symbol("wing"); const MuscleArm = symbol("muscle_arm"); const Leg = symbol("leg"); const Tail = symbol("tail"); const Lightning = symbol("lightning"); const EYE_CREATURE = ( ); export const DebugPage: React.FC<{}> = () => { const [symbolCtx, setSymbolCtx] = useState(createSvgSymbolContext()); const defaultCtx = useContext(CreatureContext); const ctx: CreatureContextType = { ...defaultCtx, ...symbolCtx, fill: symbolCtx.showSpecs ? "none" : symbolCtx.fill, }; return ( <>

Debug!

{EYE_CREATURE} ); };