import React from "react"; import { Checkbox } from "./checkbox"; import { ColorWidget } from "./color-widget"; import { NumericSlider } from "./numeric-slider"; import { SvgSymbolContext, swapColors } from "./svg-symbol"; export const SymbolContextWidget: React.FC<{ ctx: SvgSymbolContext; onChange: (value: SvgSymbolContext) => void; children?: any; }> = ({ ctx, children, onChange }) => { const updateCtx = (updates: Partial) => { onChange({ ...ctx, ...updates }); }; return (
{children} updateCtx({ stroke })} />{" "} updateCtx({ fill })} />{" "} {" "} updateCtx({ showSpecs })} /> {ctx.uniformStrokeWidth !== undefined && ( <>
updateCtx({ uniformStrokeWidth })} />{" "} )}
); };