Tags: arnaudmiribel/streamlit-extras
Tags
Add image_compare_slider extra for comparing two images (#337) * Add image_compare_slider extra for comparing two images A new CCv2 React component that overlays two images with a draggable divider for side-by-side comparison. Uses the react-compare-slider library for robust drag handling and accessibility. Features: - Horizontal (left/right) and vertical (top/bottom) comparison modes - Optional labels displayed on each image - Customizable initial position (0-1 range) - Auto-sizing based on image aspect ratio or fixed height - Streamlit theme integration for handle styling Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Remove key from custom position example Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Update uv.lock Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Sync slider position when initialPosition prop changes When the position parameter changes on rerun (without an explicit key), the slider now updates to reflect the new value instead of keeping the stale state from the first mount. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix uv.lock by removing exclude-newer options Remove the [options] section with exclude-newer that was added from a global uv configuration, causing CI failures. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Address code review feedback for ImageCompareSlider - Add typed global Window interface for Streamlit config access - Add ResizeObserver for responsive height calculation on container resize - Add proper cleanup for image loading effect (isMounted flag, onload nullification) - Use clamped float position instead of rounding for smoother dragging - Add requestAnimationFrame throttling for position state updates to reduce reruns Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Update uv.lock Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Remove exclude-newer from uv.lock Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Add `three_viewer` extra for 3D model rendering with Three.js (#313) * Add three_viewer extra for 3D model rendering Adds a new Three.js-based 3D model viewer component that supports GLTF/GLB, OBJ, STL, PLY, and FBX formats. Models can be loaded from URLs, local files, or bytes. Includes interactive orbit controls for rotate, zoom, and pan. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Address code review feedback for three_viewer extra - Fix docstring and __desc__ to include FBX in supported formats - Add unit tests (__tests__) for _get_file_extension helper - Fix URL fragment stripping in _get_file_extension - Add file_format parameter for bytes/BytesIO inputs - Add format validation before mounting component - Add Streamlit version compatibility fallback for media manager - Fix window access guard in urlUtils.ts for SSR safety - Improve base-path derivation for single-segment subpaths - Add cancellation handling for async model loading - Add GPU resource disposal (geometries/materials/textures) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix docstring example formatting for mkdocstrings rendering Convert Example sections from doctest format (>>> and ...) to markdown code blocks (```python ... ```) so mkdocstrings renders them correctly with proper line breaks and syntax highlighting. Also add blank line after "Example:" for better readability. Affected extras: cookie_manager, eval_javascript, json_editor, local_storage_manager, pagination, radial_menu, redirect, scroll_to_element, three_viewer Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix TypeScript error in material disposal function specularMap doesn't exist on MeshStandardMaterial. Use dynamic property access to safely dispose texture maps across material types. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Bump version to 1.1.0 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Update three_viewer author to Lukas Masuch Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix docstring example formatting for mkdocstrings rendering Use doctest-style >>> examples instead of markdown code blocks. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Revert "Fix docstring example formatting for mkdocstrings rendering" This reverts commit cf9217e. --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Bump ty from 0.0.22 to 0.0.23 in the python-minor group (#312) Bumps the python-minor group with 1 update: [ty](https://github.com/astral-sh/ty). Updates `ty` from 0.0.22 to 0.0.23 - [Release notes](https://github.com/astral-sh/ty/releases) - [Changelog](https://github.com/astral-sh/ty/blob/main/CHANGELOG.md) - [Commits](astral-sh/ty@0.0.22...0.0.23) --- updated-dependencies: - dependency-name: ty dependency-version: 0.0.23 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: python-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
PreviousNext