Skip to content

Commit ebb3e78

Browse files
DOC-5991 diagrams basically OK
1 parent efbab33 commit ebb3e78

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

static/js/decision-tree.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@
156156
const leftMargin = 20;
157157
const topMargin = 10;
158158
const indentWidth = 40; // Increased from 24 for wider indent
159-
const boxPadding = 8;
160-
const maxBoxWidth = 280; // Max width for text in box
159+
const boxPadding = 12; // Increased from 8 for more padding
160+
const maxBoxWidth = 360; // Increased from 280 for wider boxes
161161
const maxCharsPerLine = Math.floor(maxBoxWidth / charWidth);
162162

163163
// Calculate box dimensions for each item
@@ -204,9 +204,9 @@
204204
rect.setAttribute('height', item.boxHeight);
205205

206206
if (item.type === 'outcome') {
207-
// Outcomes: lighter background, dashed border
208-
rect.setAttribute('fill', '#f9f9f9');
209-
rect.setAttribute('stroke', '#ccc');
207+
// Outcomes: pale red background, dashed border
208+
rect.setAttribute('fill', '#ffe6e6');
209+
rect.setAttribute('stroke', '#d9534f');
210210
rect.setAttribute('stroke-width', '1');
211211
rect.setAttribute('stroke-dasharray', '3,3');
212212
} else {

0 commit comments

Comments
 (0)