2023-07-05 12:01:37 +02:00
|
|
|
import * as configApi from '../../config.js';
|
|
|
|
import common from '../common/common.js';
|
|
|
|
import {
|
|
|
|
setAccTitle,
|
|
|
|
getAccTitle,
|
|
|
|
getAccDescription,
|
|
|
|
setAccDescription,
|
|
|
|
setDiagramTitle,
|
|
|
|
getDiagramTitle,
|
|
|
|
clear as commonClear,
|
|
|
|
} from '../../commonDb.js';
|
|
|
|
|
|
|
|
type Block = {
|
|
|
|
ID: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
// Array of nodes guarantees their order
|
|
|
|
let blocks: Block[] = [];
|
|
|
|
|
|
|
|
const clear = (): void => {
|
|
|
|
blocks = [];
|
|
|
|
commonClear();
|
|
|
|
};
|
|
|
|
|
|
|
|
export default {
|
2023-07-07 12:58:30 +02:00
|
|
|
getConfig: () => configApi.getConfig().block,
|
2023-07-05 12:01:37 +02:00
|
|
|
|
|
|
|
getAccTitle,
|
|
|
|
setAccTitle,
|
|
|
|
getAccDescription,
|
|
|
|
setAccDescription,
|
|
|
|
getDiagramTitle,
|
|
|
|
setDiagramTitle,
|
|
|
|
clear,
|
|
|
|
};
|