Merge branch 'radical-new-docs' of ssh://codeberg.org/vvolhejn/strudel into radical-new-docs
This commit is contained in:
commit
22f78fbb2f
2 changed files with 6 additions and 6 deletions
|
|
@ -137,7 +137,9 @@ export function repl({
|
||||||
|
|
||||||
// TODO - not documented as jsdoc examples as the test framework doesn't simulate enough context for `each` and `all`..
|
// TODO - not documented as jsdoc examples as the test framework doesn't simulate enough context for `each` and `all`..
|
||||||
|
|
||||||
/** Applies a function to all the running patterns. Note that the patterns are groups together into a single `stack` before the function is applied. This is probably what you want, but see `each` for
|
let allTransforms = [];
|
||||||
|
/**
|
||||||
|
* Applies a function to all the running patterns. Note that the patterns are groups together into a single `stack` before the function is applied. This is probably what you want, but see `each` for
|
||||||
* a version that applies the function to each pattern separately.
|
* a version that applies the function to each pattern separately.
|
||||||
* ```
|
* ```
|
||||||
* $: sound("bd - cp sd")
|
* $: sound("bd - cp sd")
|
||||||
|
|
@ -152,7 +154,6 @@ export function repl({
|
||||||
*
|
*
|
||||||
* @tags combiners
|
* @tags combiners
|
||||||
*/
|
*/
|
||||||
let allTransforms = [];
|
|
||||||
const all = function (transform) {
|
const all = function (transform) {
|
||||||
allTransforms.push(transform);
|
allTransforms.push(transform);
|
||||||
return silence;
|
return silence;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { useEffect, useMemo, useState } from 'react';
|
import { useEffect, useMemo, useState, Fragment } from 'react';
|
||||||
|
|
||||||
import jsdocJson from '../../../../../doc.json';
|
import jsdocJson from '../../../../../doc.json';
|
||||||
import { Textbox } from '../textbox/Textbox';
|
import { Textbox } from '../textbox/Textbox';
|
||||||
|
|
@ -147,9 +147,8 @@ export function Reference() {
|
||||||
)}
|
)}
|
||||||
<div className="flex flex-col h-full overflow-y-auto gap-1.5 bg-background bg-opacity-50 rounded-md">
|
<div className="flex flex-col h-full overflow-y-auto gap-1.5 bg-background bg-opacity-50 rounded-md">
|
||||||
{searchVisibleFunctions.map((entry, i) => (
|
{searchVisibleFunctions.map((entry, i) => (
|
||||||
<>
|
<Fragment key={`entry-${entry.name}`}>
|
||||||
<a
|
<a
|
||||||
key={`entry-${entry.name}`}
|
|
||||||
className={
|
className={
|
||||||
'cursor-pointer flex-none hover:bg-lineHighlight overflow-x-hidden px-1 text-ellipsis ' +
|
'cursor-pointer flex-none hover:bg-lineHighlight overflow-x-hidden px-1 text-ellipsis ' +
|
||||||
(entry.name === selectedFunction ? 'bg-lineHighlight font-bold' : '')
|
(entry.name === selectedFunction ? 'bg-lineHighlight font-bold' : '')
|
||||||
|
|
@ -164,7 +163,7 @@ export function Reference() {
|
||||||
>
|
>
|
||||||
{entry.name}
|
{entry.name}
|
||||||
</a>{' '}
|
</a>{' '}
|
||||||
</>
|
</Fragment>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue