Commit fcac5910 by Ryan McKinley Committed by GitHub

GraphNG: improve behavior when switching between solid/dash/dots (#30796)

parent 896d3328
......@@ -73,9 +73,16 @@ export const LineStyleEditor: React.FC<FieldOverrideEditorProps<LineStyle, any>>
value={value?.fill || 'solid'}
options={lineFillOptions}
onChange={(v) => {
let dash: number[] | undefined = undefined;
if (v === 'dot') {
dash = parseText(dotOptions[0].value!);
} else if (v === 'dash') {
dash = parseText(dashOptions[0].value!);
}
onChange({
...value,
fill: v!,
dash,
});
}}
/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment