footprint-explainable-ui 0.7.2 → 0.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/flowchart.cjs +77 -59
- package/dist/flowchart.cjs.map +1 -1
- package/dist/flowchart.js +77 -59
- package/dist/flowchart.js.map +1 -1
- package/package.json +8 -1
package/dist/flowchart.cjs
CHANGED
|
@@ -351,7 +351,7 @@ var StageNode = (0, import_react3.memo)(function StageNode2({
|
|
|
351
351
|
position: "absolute",
|
|
352
352
|
inset: -6,
|
|
353
353
|
borderRadius: isDecider ? 0 : `calc(${theme.radius} + 4px)`,
|
|
354
|
-
|
|
354
|
+
clipPath: isDecider ? "polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)" : void 0,
|
|
355
355
|
border: `2px solid ${theme.primary}`,
|
|
356
356
|
opacity: 0.4,
|
|
357
357
|
animation: "fp-pulse 2s ease-in-out infinite"
|
|
@@ -365,77 +365,95 @@ var StageNode = (0, import_react3.memo)(function StageNode2({
|
|
|
365
365
|
position: "absolute",
|
|
366
366
|
inset: -6,
|
|
367
367
|
borderRadius: isDecider ? 0 : `calc(${theme.radius} + 4px)`,
|
|
368
|
-
|
|
368
|
+
clipPath: isDecider ? "polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)" : void 0,
|
|
369
369
|
border: `2px solid ${theme.primary}`,
|
|
370
370
|
opacity: 0.3,
|
|
371
371
|
animation: "fp-pulse 1.5s ease-out infinite"
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
),
|
|
375
|
-
isDecider ? /* @__PURE__ */ (0, import_jsx_runtime2.
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
375
|
+
isDecider ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { style: { position: "relative", width: 120, height: 72 }, children: [
|
|
376
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
377
|
+
"div",
|
|
378
|
+
{
|
|
379
|
+
style: {
|
|
380
|
+
position: "absolute",
|
|
381
|
+
inset: 0,
|
|
382
|
+
background: bg,
|
|
383
|
+
clipPath: "polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)",
|
|
384
|
+
border: "none",
|
|
385
|
+
boxShadow: shadow,
|
|
386
|
+
transition: "all 0.3s ease"
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
),
|
|
390
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
391
|
+
"div",
|
|
392
|
+
{
|
|
393
|
+
style: {
|
|
394
|
+
position: "absolute",
|
|
395
|
+
inset: -2,
|
|
396
|
+
clipPath: "polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)",
|
|
397
|
+
background: borderColor,
|
|
398
|
+
zIndex: -1,
|
|
399
|
+
...isLazyUnresolved ? {
|
|
400
|
+
background: "transparent"
|
|
401
|
+
// Dashed border via SVG for clip-path (CSS border doesn't work with clip-path)
|
|
402
|
+
} : {}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
),
|
|
406
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
407
|
+
"div",
|
|
408
|
+
{
|
|
409
|
+
style: {
|
|
410
|
+
position: "absolute",
|
|
411
|
+
inset: 0,
|
|
412
|
+
display: "flex",
|
|
413
|
+
flexDirection: "column",
|
|
414
|
+
alignItems: "center",
|
|
415
|
+
justifyContent: "center",
|
|
416
|
+
gap: 1,
|
|
417
|
+
fontFamily: theme.fontSans,
|
|
418
|
+
zIndex: 1
|
|
419
|
+
},
|
|
420
|
+
children: [
|
|
421
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
422
|
+
effectiveIcon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(StageIcon, { type: effectiveIcon, color: textColor }),
|
|
423
|
+
!effectiveIcon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { style: { fontSize: 9, color: textColor }, children: "\u25C7" }),
|
|
424
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
419
425
|
"span",
|
|
420
426
|
{
|
|
421
427
|
style: {
|
|
422
|
-
fontSize:
|
|
423
|
-
fontWeight:
|
|
428
|
+
fontSize: 11,
|
|
429
|
+
fontWeight: 600,
|
|
424
430
|
color: textColor,
|
|
425
|
-
|
|
426
|
-
whiteSpace: "nowrap",
|
|
427
|
-
overflow: "hidden",
|
|
428
|
-
textOverflow: "ellipsis",
|
|
429
|
-
maxWidth: 130
|
|
431
|
+
whiteSpace: "nowrap"
|
|
430
432
|
},
|
|
431
|
-
children:
|
|
433
|
+
children: label
|
|
432
434
|
}
|
|
433
435
|
)
|
|
434
|
-
]
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
436
|
+
] }),
|
|
437
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
438
|
+
"span",
|
|
439
|
+
{
|
|
440
|
+
style: {
|
|
441
|
+
fontSize: 8,
|
|
442
|
+
fontWeight: 400,
|
|
443
|
+
color: textColor,
|
|
444
|
+
opacity: 0.7,
|
|
445
|
+
whiteSpace: "nowrap",
|
|
446
|
+
overflow: "hidden",
|
|
447
|
+
textOverflow: "ellipsis",
|
|
448
|
+
maxWidth: 100
|
|
449
|
+
},
|
|
450
|
+
children: description
|
|
451
|
+
}
|
|
452
|
+
)
|
|
453
|
+
]
|
|
454
|
+
}
|
|
455
|
+
)
|
|
456
|
+
] }) : (
|
|
439
457
|
/* Standard rectangular node */
|
|
440
458
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
441
459
|
"div",
|