INNER CODE UNIT · JavaScript

parseCommanderFloat

mermaid-js/mermaid-cli · src/index.js:150

function parseCommanderFloat(value, _unused) {
  const parsedValue = parseFloat(value);
  if (isNaN(parsedValue) || parsedValue <= 0) {
    throw new InvalidArgumentError("Not a positive number.");
  }
  return parsedValue;
}

/**
 * List of themes.
 *
 * @see https://mermaid.js.org/config/schema-docs/config.html#theme
 * @satisfies{Array<import('mermaid').MermaidConfig['theme']>}
 */
const themes = [
  "base",
  "dark",
  "default",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…