@diagrammo/dgmo 0.8.14 → 0.8.15

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/index.cjs CHANGED
@@ -3962,7 +3962,8 @@ function parseArrowToken(token, palette) {
3962
3962
  const label = m[1]?.trim() || void 0;
3963
3963
  let color = m[2] ? resolveColor(m[2].trim(), palette) ?? void 0 : void 0;
3964
3964
  if (label && !color) {
3965
- color = inferArrowColor(label);
3965
+ const inferred = inferArrowColor(label);
3966
+ if (inferred) color = resolveColor(inferred, palette) ?? void 0;
3966
3967
  }
3967
3968
  return { label, color };
3968
3969
  }
@@ -9112,7 +9113,8 @@ function parseArrowLine(trimmed, palette) {
9112
9113
  const label = arrowMatch[1]?.trim() || void 0;
9113
9114
  let color = arrowMatch[2] ? resolveColor(arrowMatch[2].trim(), palette) ?? void 0 : void 0;
9114
9115
  if (label && !color) {
9115
- color = inferArrowColor(label);
9116
+ const inferred = inferArrowColor(label);
9117
+ if (inferred) color = resolveColor(inferred, palette) ?? void 0;
9116
9118
  }
9117
9119
  const rawTarget = arrowMatch[3].trim();
9118
9120
  const groupMatch = rawTarget.match(/^\[(.+)\]$/);