X-Git-Url: https://git.r.bdr.sh/rbdr/lissajous/blobdiff_plain/1924acb2eccaa6bdf58f9b90b10b1236c74bb07a..HEAD:/lib/factories/ui.js?ds=inline diff --git a/lib/factories/ui.js b/lib/factories/ui.js index cc34579..167c618 100644 --- a/lib/factories/ui.js +++ b/lib/factories/ui.js @@ -1,3 +1,10 @@ +/** + * This file is a factory for DOM UI elements. + */ + +/** + * Returns a settings container that includes a section and a heading. + */ export function settingsContainer({id, label, level=2}) { const container = document.createElement('section'); @@ -6,6 +13,11 @@ export function settingsContainer({id, label, level=2}) { return container; }; +/** + * Returns a slider that includes a label, and can optionally be set to + * "shift" to a different step. (eg. we use this for π mode, where frequency + * and amplitude are mapped to π/8 increments. + */ export function slider({ id, min,