Implement namespace parser

This commit is contained in:
Kazuki Tsunemi
2023-03-09 17:42:38 +09:00
parent c1df62638d
commit 4017bb3c49
3 changed files with 91 additions and 1 deletions

View File

@@ -392,6 +392,29 @@ const setDirection = (dir: string) => {
direction = dir;
};
/**
* Function called by parser when a namespace keyword has been found.
*
* @param id - Id of the namespace to add
* @public
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export const addNamespace = function (id: string) {
// TODO: Implement here
};
/**
* Function called by parser when a namespace definition has been found.
*
* @param id - Id of the namespace to add
* @param classNames - Ids of the class to add
* @public
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export const addClassesToNamespace = function (id: string, classNames: string[]) {
// TODO: Implement here
};
export default {
parseDirective,
setAccTitle,
@@ -425,4 +448,6 @@ export default {
setDiagramTitle,
getDiagramTitle,
setClassLabel,
addNamespace,
addClassesToNamespace,
};