mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
use same stroke color as parent for text containers and height 0 for linear element by default
This commit is contained in:
parent
5b458288e7
commit
5841e6a48d
1 changed files with 2 additions and 1 deletions
|
@ -85,6 +85,7 @@ const bindTextToContainer = (
|
||||||
verticalAlign: VERTICAL_ALIGN.MIDDLE,
|
verticalAlign: VERTICAL_ALIGN.MIDDLE,
|
||||||
...textProps,
|
...textProps,
|
||||||
containerId: container.id,
|
containerId: container.id,
|
||||||
|
strokeColor: textProps.strokeColor || container.strokeColor,
|
||||||
});
|
});
|
||||||
|
|
||||||
mutateElement(container, {
|
mutateElement(container, {
|
||||||
|
@ -157,7 +158,7 @@ const bindLinearElementToElement = (
|
||||||
...rest
|
...rest
|
||||||
} = linearElement;
|
} = linearElement;
|
||||||
const width = linearElement.width || 300;
|
const width = linearElement.width || 300;
|
||||||
const height = linearElement.height || 24;
|
const height = linearElement.height || 0;
|
||||||
const excliadrawLinearElement = newLinearElement({
|
const excliadrawLinearElement = newLinearElement({
|
||||||
type,
|
type,
|
||||||
width,
|
width,
|
||||||
|
|
Loading…
Add table
Reference in a new issue