Skip to content

Commit

Permalink
feat: finalize node highlight
Browse files Browse the repository at this point in the history
work on #9
  • Loading branch information
bsorrentino committed Jul 16, 2024
1 parent feae491 commit cd93489
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jetty/src/main/js/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ import { $ } from "bun";
$.nothrow();
await $`bun build.ts`
await $`rm ../webapp/*`
await $`cp dist/* ../webapp`
await $`cp dist/* ../resources/webapp`
9 changes: 7 additions & 2 deletions jetty/src/main/js/src/lg4j-executor.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,14 @@ export class LG4JExecutorElement extends LitElement {
this.dispatchEvent( new CustomEvent( 'graph', {
detail: `
flowchart TD
Start --> node1:::node1
start((start))
stop((stop))
node1("node1")
node2("node2")
start:::start --> node1:::node1
node1:::node1 --> node2:::node2
node2:::node2 --> Stop
node2:::node2 --> stop:::stop
`,
bubbles: true,
composed: true,
Expand Down
2 changes: 1 addition & 1 deletion jetty/src/main/js/src/lg4j-graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class LG4jMermaid extends LitElement {
}

#onActive(e) {

const { detail: activeClass } = e

this._activeClass = activeClass;
Expand Down

0 comments on commit cd93489

Please sign in to comment.