chore: Highlight if tiny version is used in error and info.

This commit is contained in:
Sidharth Vinod
2023-08-14 14:31:07 +05:30
parent 0280316b03
commit 91b7d4234e
4 changed files with 17 additions and 15 deletions

View File

@@ -14,7 +14,7 @@
import { select } from 'd3';
import { compile, serialize, stringify } from 'stylis';
// @ts-ignore: TODO Fix ts errors
import { version } from '../package.json';
import { version as packageVersion } from '../package.json';
import * as configApi from './config.js';
import { addDiagrams } from './diagram-api/diagram-orchestration.js';
import { Diagram, getDiagramFromText } from './Diagram.js';
@@ -31,6 +31,8 @@ import isEmpty from 'lodash-es/isEmpty.js';
import { setA11yDiagramInfo, addSVGa11yTitleDescription } from './accessibility.js';
import { parseDirective } from './directiveUtils.js';
const version = packageVersion + (includeLargeDiagrams ? '' : '-tiny');
// diagram names that support classDef statements
const CLASSDEF_DIAGRAMS = [
'graph',