The DrawFlowchart formula also allows you to demonstrate your code logic from different abstractions levels. Let's say you would like to omit some details, e.g. for a given module, you are interested only in what the module exports, or, what classes it contains. There is a list of defined levels you can do that with, you can include one or more of these abstraction levels in your formula as a list:
Let's take an example of this module, we want to abstract it by EXPORT and IMPORT
import {format, trim} from 'formattier';
import {log} from 'logger';
const data = [];
export default print = (list) => {
list.forEach(i => {
console.log(i);
});
}
export const formatString = (str) => formatter(str);
export const MAX_STR_LENGTH = 15;
Before abstraction:
We have a flowchart with Functions, Imports and Exports
After abstraction:
We only have Imports and Exports