Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
555d8f9
Allowing imports and typescript with `esbuild-wasm`
benjaminleonard Jul 30, 2025
cf56852
Use unpkg version on `esbuild-wasm`
benjaminleonard Jul 30, 2025
ed073be
Initialise before applying template
benjaminleonard Jul 30, 2025
b8bdf2e
Remove old comment
benjaminleonard Jul 30, 2025
354ac94
Small refactoring
benjaminleonard Jul 31, 2025
610f6bf
Support typescript control vars and add tests
benjaminleonard Jul 31, 2025
2a9337a
Add external lib to utils list
benjaminleonard Jul 31, 2025
7ea5bdf
Fix cursor jumping due to react automatic batching
benjaminleonard Jul 31, 2025
f5a0330
Type fix
benjaminleonard Jul 31, 2025
9101464
Add license
benjaminleonard Jul 31, 2025
22207b6
License
benjaminleonard Jul 31, 2025
1bdb829
Hybrid image / code editor
benjaminleonard Aug 1, 2025
824da02
Type fixes
benjaminleonard Aug 4, 2025
8b2f871
Fix image processing batch/race issue and cleanup
benjaminleonard Aug 4, 2025
b6ea945
Actually need state for code runs after processing
benjaminleonard Aug 4, 2025
8139d67
Hide source clear button
benjaminleonard Aug 4, 2025
b6c178b
Fix stored image aspect ratio
benjaminleonard Aug 4, 2025
8b52248
Example hybrid template
benjaminleonard Aug 4, 2025
115a564
Update app/exampleImage.ts
benjaminleonard Aug 4, 2025
c2b73b8
Cleanup
benjaminleonard Aug 7, 2025
1f2c638
Rename
benjaminleonard Aug 19, 2025
ebbc5a7
esbuild spinner and replace media fixes
benjaminleonard Aug 19, 2025
c638b79
Update app/components/spinner.tsx license
benjaminleonard Aug 19, 2025
ba058c7
Remove unused component
benjaminleonard Aug 19, 2025
d13bfc4
Use imported character set
benjaminleonard Aug 19, 2025
4b6e6be
Tweak default template behaviour
benjaminleonard Aug 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions app/components/animation-options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*/
import { InputNumber } from '~/lib/ui/src'

import type { SourceType } from './ascii-art-generator'
import { Container } from './container'

interface AnimationOptionsProps {
Expand All @@ -21,23 +20,15 @@ interface AnimationOptionsProps {
frameRate: number
}>,
) => void
sourceType?: SourceType
}

export function AnimationOptions({
settings,
updateSettings,
sourceType = 'code',
}: AnimationOptionsProps) {
const isMediaSource = sourceType === 'gif'

export function AnimationOptions({ settings, updateSettings }: AnimationOptionsProps) {
return (
<Container>
<InputNumber
min={1}
value={settings.animationLength}
onChange={(val) => updateSettings({ animationLength: val })}
disabled={isMediaSource}
>
Animation Length
</InputNumber>
Expand Down
Loading
Loading