Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions meshroom/ui/qml/Shapes/Viewer/Layers/TextLayer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ BaseLayer {
id: textLayer

Text {
x: textLayer.observation.center.x - implicitWidth * 0.5 // Center text horizontally
y: textLayer.observation.center.y - implicitHeight * 0.5 // Center text vertically
width: ShapeViewerHelper.containerWidth - textLayer.observation.center.x
height: ShapeViewerHelper.containerHeight - textLayer.observation.center.y

x: textLayer.observation.center.x
y: textLayer.observation.center.y
text: textLayer.observation.content || "Undefined"
color: textLayer.properties.color || textLayer.defaultColor
wrapMode: Text.NoWrap
wrapMode: Text.Wrap
font.family: textLayer.properties.fontFamily || "Arial"
font.pixelSize: getScaledFontSize()
}
Expand Down