mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-23 17:30:44 +02:00
use same stroke color as parent for text containers and height 0 for linear element by default
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user