@diagrammo/dgmo 0.7.1 → 0.7.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagrammo/dgmo",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "DGMO diagram markup language — parser, renderer, and color system",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -107,6 +107,8 @@ export function parseGantt(content: string, palette?: PaletteColors): ParsedGant
107
107
  dependencies: false,
108
108
  sort: 'default',
109
109
  defaultSwimlaneGroup: null,
110
+ optionLineNumbers: {},
111
+ holidaysLineNumber: null,
110
112
  },
111
113
  diagnostics,
112
114
  error: null,
@@ -351,6 +353,7 @@ export function parseGantt(content: string, palette?: PaletteColors): ParsedGant
351
353
  inHolidaysBlock = true;
352
354
  holidaysBlockIndent = indent;
353
355
  inHeaderBlock = false;
356
+ result.options.holidaysLineNumber = lineNumber;
354
357
  continue;
355
358
  }
356
359
 
@@ -382,6 +385,7 @@ export function parseGantt(content: string, palette?: PaletteColors): ParsedGant
382
385
  endDate: eraMatch[2],
383
386
  label: eraExtracted.label,
384
387
  color: eraExtracted.color || null,
388
+ lineNumber,
385
389
  });
386
390
  inHeaderBlock = false;
387
391
  continue;
@@ -407,6 +411,7 @@ export function parseGantt(content: string, palette?: PaletteColors): ParsedGant
407
411
  if (optMatch && isKnownOption(optMatch[1].toLowerCase())) {
408
412
  const key = optMatch[1].toLowerCase();
409
413
  const value = optMatch[2].trim();
414
+ result.options.optionLineNumbers[key] = lineNumber;
410
415
 
411
416
  switch (key) {
412
417
  case 'start':