import { useState, useEffect } from "react"; export const FreedrawDebugSliders = () => { const [streamline, setStreamline] = useState(0.62); const [simplify, setSimplify] = useState(0.3); useEffect(() => { if (!window.h) { window.h = {} as any; } if (!window.h.debugFreedraw) { window.h.debugFreedraw = { streamline: 0.62, simplify: 0.3 }; } setStreamline(window.h.debugFreedraw.streamline); setSimplify(window.h.debugFreedraw.simplify); }, []); const handleStreamlineChange = (value: number) => { setStreamline(value); if (window.h && window.h.debugFreedraw) { window.h.debugFreedraw.streamline = value; } }; const handleSimplifyChange = (value: number) => { setSimplify(value); if (window.h && window.h.debugFreedraw) { window.h.debugFreedraw.simplify = value; } }; return (
); };