From 4e2ece8f012d78a898657a723c2ef640954ec896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cchrisshank=E2=80=9D?= Date: Tue, 3 Dec 2024 19:40:27 -0800 Subject: [PATCH] windy rope --- demo/sticky-html-rope.html | 31 +++++++++++++++++++++++++++++++ src/folk-rope.ts | 8 ++++++++ 2 files changed, 39 insertions(+) diff --git a/demo/sticky-html-rope.html b/demo/sticky-html-rope.html index 5397be2..f1e0a64 100644 --- a/demo/sticky-html-rope.html +++ b/demo/sticky-html-rope.html @@ -26,9 +26,17 @@ inset: 0 0 0 0; pointer-events: none; } + + button { + margin: 1rem; + background-color: black; + font-size: 2rem; + border-radius: 5px; + } + @@ -40,6 +48,29 @@ diff --git a/src/folk-rope.ts b/src/folk-rope.ts index c967f64..482c851 100644 --- a/src/folk-rope.ts +++ b/src/folk-rope.ts @@ -42,6 +42,14 @@ export class FolkRope extends FolkBaseConnection { return this.#points; } + get gravity() { + return this.#gravity; + } + + set gravity(gravity) { + this.#gravity = gravity; + } + #stroke = ''; get stroke() { return this.#stroke;