mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 06:19:24 +02:00
wraps long text into new line
Co-authored-by: Pranav Mishra <mishrap@dickinson.edu>
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user