Skip to content

Commit 7394169

Browse files
authored
Merge pull request #1 from neuroglia-io/fix-graph-improvements
Fix graph improvements
2 parents 929900b + a373360 commit 7394169

File tree

10 files changed

+1032
-150
lines changed

10 files changed

+1032
-150
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ flowchart TD
340340
root-entry-node --> /do/0/step1
341341
342342
343-
classDef hidden display: none;
343+
classDef hidden width: 1px, height: 0px, opacity: 0;
344344
*/
345345
```
346346

@@ -353,9 +353,11 @@ flowchart TD
353353
root-entry-node --> /do/0/step1
354354
355355
356-
classDef hidden display: none;
356+
classDef hidden width: 1px, height: 0px, opacity: 0;
357357
```
358358

359+
You can refer to the mermaid browser example for a live demo.
360+
359361
### Building Locally
360362

361363
To build the project and run tests locally, use the following commands:
@@ -366,4 +368,10 @@ cd sdk-typescript
366368
npm install && npm run build && npm run test
367369
```
368370

371+
You can also run the browser examples by executing:
372+
373+
```sh
374+
npm run serve
375+
```
376+
369377
If you're interested in contributing, reading the [Tooling Architecture](/tools/README.md) is a good place to start.

examples/browser/mermaid.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
try {
107107
const workflow = Classes.Workflow.deserialize(inputTextarea.value);
108108
const mermaidCode = convertToMermaidCode(workflow);
109-
document.getElementById('output').innerHTML = `--- YAML ---\n${Classes.Workflow.serialize(workflow)}\n\n--- JSON ---\n${Classes.Workflow.serialize(workflow, 'json')}\n\n--- MERMAID ---\n${mermaidCode}`;
109+
document.getElementById('output').innerHTML = `--- MERMAID ---\n${mermaidCode}`;
110110
mermaid.initialize({ startOnLoad: false });
111111
const { svg, bindFunctions } = await mermaid.render('sw-diagram', mermaidCode);
112112
diagramContainerEl.innerHTML = svg;

0 commit comments

Comments
 (0)