mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-24 01:40:41 +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,
|
||||
...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,
|
||||
|
Reference in New Issue
Block a user