Tokenade controls: set max values to depth 8, breadth 10, repeats 50 (sliders + logic)

This commit is contained in:
EP
2025-08-20 18:03:01 -07:00
parent a3d4fc33df
commit 30c652d9a4
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -270,12 +270,12 @@
</label>
<label class="slider-block" title="How many items per level; higher = wider structure">
Breadth per level
<input class="hacker-slider" type="range" v-model.number="tbBreadth" min="1" max="12" />
<input class="hacker-slider" type="range" v-model.number="tbBreadth" min="1" max="10" />
<span class="slider-value">{{ tbBreadth }}</span>
</label>
<label class="slider-block" title="How many times to repeat the whole block">
Repeats (blocks)
<input class="hacker-slider" type="range" v-model.number="tbRepeats" min="1" max="100" />
<input class="hacker-slider" type="range" v-model.number="tbRepeats" min="1" max="50" />
<span class="slider-value">{{ tbRepeats }}</span>
</label>
<div class="segmented" title="Invisible separator inserted between units">
+4 -4
View File
@@ -1700,8 +1700,8 @@ window.app = new Vue({
// Token Bomb Generator Logic
generateTokenBomb() {
const depth = Math.max(1, Math.min(8, Number(this.tbDepth) || 1));
const breadth = Math.max(1, Math.min(12, Number(this.tbBreadth) || 1));
const repeats = Math.max(1, Math.min(100, Number(this.tbRepeats) || 1));
const breadth = Math.max(1, Math.min(10, Number(this.tbBreadth) || 1));
const repeats = Math.max(1, Math.min(50, Number(this.tbRepeats) || 1));
const sep = this.tbSeparator === 'zwj' ? '\u200D' : this.tbSeparator === 'zwnj' ? '\u200C' : this.tbSeparator === 'zwsp' ? '\u200B' : '';
const includeVS = !!this.tbIncludeVS;
const includeNoise = !!this.tbIncludeNoise;
@@ -1830,8 +1830,8 @@ window.app = new Vue({
// Live estimator for pre-generation length
estimateTokenadeLength() {
const depth = Math.max(1, Math.min(8, Number(this.tbDepth) || 1));
const breadth = Math.max(1, Math.min(12, Number(this.tbBreadth) || 1));
const repeats = Math.max(1, Math.min(100, Number(this.tbRepeats) || 1));
const breadth = Math.max(1, Math.min(10, Number(this.tbBreadth) || 1));
const repeats = Math.max(1, Math.min(50, Number(this.tbRepeats) || 1));
const sepLen = this.tbSeparator === 'none' ? 0 : 1;
const vsPerEmoji = this.tbIncludeVS ? 1 : 0;
const noiseAvg = this.tbIncludeNoise ? 2 : 0;