mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-20 08:46:44 +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 tempText = diagram.append('text').attr('visibility', 'hidden').text(person);
|
||||||
const textWidth = tempText.node().getBBox().width;
|
const textWidth = tempText.node().getBBox().width;
|
||||||
tempText.remove();
|
tempText.remove();
|
||||||
|
let configObject = getConfig().journey;
|
||||||
const maxLineLength = getRemInPx(15);
|
const maxLineLength = getRemInPx(15);
|
||||||
let lines = [];
|
let lines = [];
|
||||||
|
|
||||||
|
@@ -1485,6 +1485,12 @@ $defs: # JSON Schema definition (maybe we should move these to a separate file)
|
|||||||
type: integer
|
type: integer
|
||||||
default: 150
|
default: 150
|
||||||
minimum: 0
|
minimum: 0
|
||||||
|
maxLabelWidth:
|
||||||
|
description: Maximum width of actor labels
|
||||||
|
type: integer
|
||||||
|
default: 360
|
||||||
|
minimum: 240
|
||||||
|
maximum: 480
|
||||||
width:
|
width:
|
||||||
description: Width of actor boxes
|
description: Width of actor boxes
|
||||||
type: integer
|
type: integer
|
||||||
|
Reference in New Issue
Block a user