From a27da83c464f166b2deda6582c63a84c8d0ef522 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Fri, 21 Aug 2020 20:52:10 +0200 Subject: [PATCH] Add add button --- src/script-graph2.ts | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/script-graph2.ts b/src/script-graph2.ts index c318d84..795957c 100644 --- a/src/script-graph2.ts +++ b/src/script-graph2.ts @@ -6,6 +6,8 @@ import { property } from "lit-element"; +import { mdiPlus } from "@mdi/js"; + const SIZE = 35; const DIST = 20; @@ -39,6 +41,19 @@ class ScriptGraph2 extends LitElement { `; } + private _draw_new_node(x, y, node) { + return svg` + + `; + } + + private _draw_connector(x1, y1, x2, y2) { return svg`