Fix bug with colors and dimensions misapplied
This commit is contained in:
parent
dcccfec1d2
commit
cfbedd3e59
4 changed files with 25 additions and 29 deletions
|
@ -31,7 +31,7 @@ function ApplyParametric(x0: number, t: number, vx: number): number {
|
|||
export function Dimension(props: IDimensionProps): JSX.Element {
|
||||
const scale = props.scale ?? 1;
|
||||
const style: React.CSSProperties = {
|
||||
stroke: props.style.color,
|
||||
stroke: props.style.color ?? '#000000',
|
||||
strokeWidth: (props.style.width ?? 2) / scale,
|
||||
strokeDasharray: props.style.dashArray
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue