From 8465f4d390e6c7d4c813070009ae4c3b8e0a3655 Mon Sep 17 00:00:00 2001 From: Simon-L Date: Sat, 25 Nov 2023 01:56:24 +0100 Subject: [PATCH 01/13] Add passive attribute for read-only editor --- README.md | 3 + index.html | 13 ++ src/common.ts | 4 +- src/editor.ts | 3 +- src/faust-editor.ts | 379 ++++++++++++++++++++++++-------------------- 5 files changed, 225 insertions(+), 177 deletions(-) diff --git a/README.md b/README.md index be4af43..88122e5 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,12 @@ # faust-web-component +> :warning: This is a fork! + This package provides two [web components](https://developer.mozilla.org/en-US/docs/Web/API/Web_components) for embedding interactive [Faust](https://faust.grame.fr) snippets in web pages. - `` displays an editor (using [CodeMirror 6](https://codemirror.net/)) with executable, editable Faust code, along with some bells & whistles (controls, block diagram, plots) in a side pane. This component is ideal for demonstrating some code in Faust and allowing the reader to try it out and tweak it themselves without having to leave the page. (For more extensive work, it also includes a button to open the code in the Faust IDE.) + * `passive` attributes disables playback and makes editor read-only - `` just shows the controls and does not allow editing, so it serves simply as a way to embed interactive DSP. diff --git a/index.html b/index.html index 43600e4..a83487e 100644 --- a/index.html +++ b/index.html @@ -45,6 +45,19 @@ + +

Excepteur sint occaecat cupidatat non proident, sunt meserunt mollit id est laborum.

+ + - - - -
-
-