PageSourceSearch

https://noirblancrouge.com/wp-content/themes/noirblancrouge/_/js/components/rhythmText.js

js noirblancrouge.com collected 2026-10-02 11:52:41 UTC 622 bytes, 19 lines download raw bytes

1/**
2 * @module components/rhythmText
3 * Synchronous text selection for rhythm blocks, sized to a bucket.
4 * Uses the local RANDOM_QUOTES pool (no fetch → no async race with the fit).
5 *
6 * Imports RANDOM_QUOTES from sandbox.js, whose transitive deps touch `window`
7 * at load, so this module is only safe to import in the browser (lazily).
8 */
9
10import { RANDOM_QUOTES }  from './sandbox.js';
11import { pickFromBucket } from '../utils/textBucket.js';
12
13/**
14 * @param {'word'|'phrase'|'paragraph'} bucket
15 * @returns {string}
16 */
17export function pickTextForBucket(bucket) {
18  return pickFromBucket(bucket, RANDOM_QUOTES);
19}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.