diff --git a/demo/chains-of-thought/index.html b/demo/chains-of-thought/index.html
index acbba50..d8a691c 100644
--- a/demo/chains-of-thought/index.html
+++ b/demo/chains-of-thought/index.html
@@ -36,7 +36,7 @@
}
}
- folk-connection {
+ folk-arrow {
display: block;
position: absolute;
inset: 0 0 0 0;
diff --git a/demo/chains-of-thought/main.ts b/demo/chains-of-thought/main.ts
index d435883..33b3ce4 100644
--- a/demo/chains-of-thought/main.ts
+++ b/demo/chains-of-thought/main.ts
@@ -1,5 +1,5 @@
import { FolkShape } from '../../src/folk-shape.ts';
-import { FolkConnection } from '../../src/folk-connection.ts';
+import { FolkArrow } from '../../src/folk-arrow.ts';
import { FileSaver } from '../src/file-system.ts';
declare global {
@@ -37,8 +37,8 @@ class FolkThought extends HTMLElement {
document
.querySelectorAll(
- `folk-connection[source="folk-shape[id='${this.#geometry.id}']"],
- folk-connection[target="folk-shape[id='${this.#geometry.id}']"]`
+ `folk-arrow[source="folk-shape[id='${this.#geometry.id}']"],
+ folk-arrow[target="folk-shape[id='${this.#geometry.id}']"]`
)
.forEach((el) => el.remove());
}
@@ -47,7 +47,7 @@ class FolkThought extends HTMLElement {
FolkShape.define();
FolkThought.define();
-FolkConnection.define();
+FolkArrow.define();
interface Thought {
id: string;
@@ -82,10 +82,7 @@ function renderThought({ id, x, y, text }: Thought) {
}
function renderConnection({ sourceId, targetId }: Connection) {
- return html`