This package implements a function curve editor that runs within a HTML page in the web browser. It can be used in widget mode (with a HTML canvas element) or as a web component (HTML custom element).
NPM package: function-curve-editor
Online demo: www.source-code.biz/snippets/typescript/functionCurveEditor
Examples of how to use it: github.com/chdh/function-curve-editor/tree/master/examples