wraps long text into new line

Co-authored-by: Pranav Mishra <mishrap@dickinson.edu>
This commit is contained in:
Shahir Ahmed
2025-02-25 15:43:00 -05:00
parent ad6248147c
commit edbf125c83
2 changed files with 7 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ function drawActorLegend(diagram) {
const tempText = diagram.append('text').attr('visibility', 'hidden').text(person);
const textWidth = tempText.node().getBBox().width;
tempText.remove();
let configObject = getConfig().journey;
const maxLineLength = getRemInPx(15);
let lines = [];

View File

@@ -1485,6 +1485,12 @@ $defs: # JSON Schema definition (maybe we should move these to a separate file)
type: integer
default: 150
minimum: 0
maxLabelWidth:
description: Maximum width of actor labels
type: integer
default: 360
minimum: 240
maximum: 480
width:
description: Width of actor boxes
type: integer