@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.js CHANGED
@@ -3940,7 +3940,8 @@ function parseArrowToken(token, palette) {
3940
3940
  const label = m[1]?.trim() || void 0;
3941
3941
  let color = m[2] ? resolveColor(m[2].trim(), palette) ?? void 0 : void 0;
3942
3942
  if (label && !color) {
3943
- color = inferArrowColor(label);
3943
+ const inferred = inferArrowColor(label);
3944
+ if (inferred) color = resolveColor(inferred, palette) ?? void 0;
3944
3945
  }
3945
3946
  return { label, color };
3946
3947
  }
@@ -9090,7 +9091,8 @@ function parseArrowLine(trimmed, palette) {
9090
9091
  const label = arrowMatch[1]?.trim() || void 0;
9091
9092
  let color = arrowMatch[2] ? resolveColor(arrowMatch[2].trim(), palette) ?? void 0 : void 0;
9092
9093
  if (label && !color) {
9093
- color = inferArrowColor(label);
9094
+ const inferred = inferArrowColor(label);
9095
+ if (inferred) color = resolveColor(inferred, palette) ?? void 0;
9094
9096
  }
9095
9097
  const rawTarget = arrowMatch[3].trim();
9096
9098
  const groupMatch = rawTarget.match(/^\[(.+)\]$/);