use same stroke color as parent for text containers and height 0 for linear element by default

This commit is contained in:
Aakansha Doshi 2023-05-26 13:58:58 +05:30
parent 5b458288e7
commit 5841e6a48d

View file

@ -85,6 +85,7 @@ const bindTextToContainer = (
verticalAlign: VERTICAL_ALIGN.MIDDLE,
...textProps,
containerId: container.id,
strokeColor: textProps.strokeColor || container.strokeColor,
});
mutateElement(container, {
@ -157,7 +158,7 @@ const bindLinearElementToElement = (
...rest
} = linearElement;
const width = linearElement.width || 300;
const height = linearElement.height || 24;
const height = linearElement.height || 0;
const excliadrawLinearElement = newLinearElement({
type,
width,