| Changelog | Added
- Measurement & Annotation Visual Sizing Controls: Added per-user sliders to control measurement and annotation visuals
- New Personal Settings section for adjusting measurement point size, line thickness, and label width
- New Personal Settings sliders for annotation point size and label width
- Settings are stored per user via
SettingsController and merged into VIEWER_CONFIG.visualSizing
- Measurement and annotation composables (
useMeasurement.js, useAnnotation.js) now derive sizes from configurable percentages of the model size
- Animation Controls in UI: Added animation play/pause controls to viewer interface
- Animation play/pause button in MinimalTopBar component
- Animation controls section in SlideOutToolPanel with play/pause and loop toggle
- Animation state props passed through App.vue to child components
- Integration of useAnimation composable in ThreeViewer component
- Improved directory path extraction for multi-file model loading
- Dependency Cache Insights: Added live cache statistics (size, entries, hit rate) to the viewer and slide-out tools
- Viewer performance panel now shows cache size and hit rate
- Slide-out tools panel displays cache stats and clear-cache control with status
- Cache stats refresh automatically during use and after model loads or cache clears
- Cache hit/miss tracking with reset when clearing the cache
- Performance Scaling for Large Models: Automatic performance mode suggestions and easy mode switching
- Configurable triangle count thresholds (warn: 500K, strong: 1M faces) for detecting heavy models
- Automatic toast notification suggesting performance mode for models exceeding thresholds
- Clickable performance mode label in stats overlay to cycle through modes (Auto → Low → Balanced → High → Ultra)
- ViewerToolbar performance button now cycles through modes instead of toggling stats
- Performance mode changes apply immediately with visual feedback
- Slicer Temp File Security Hardening: Enhanced security for temporary file uploads
- File size validation: 50MB per file limit, 200MB rolling folder cap
- MIME type validation for STL files with header checking
- Rolling 24-hour expiration enforced on file access
- Increased cleanup frequency from 24h to 6h for faster expiry enforcement
- Comprehensive audit logging for creation, access, and deletion events
- Security posture documented in TECHNICAL.md
- Automated Bundle Budget Enforcement: Enhanced bundle size checking with historical tracking
- Comprehensive budget thresholds for all major bundles (main, loaders, app, three-core, index, nc-select)
- Historical size trend tracking in bundle-sizes.json (last 50 builds)
- CI workflow uploads bundle size history as artifact (90-day retention)
- Size trend comparison shows changes vs previous build
- Improved error reporting with formatted bytes and clear failure messages
- Fails CI builds when budgets are exceeded (with environment variable overrides)
- Vue 3 Migration Pre-Work: Eliminated Vue 3 incompatible patterns to prepare for future migration
- Replaced deprecated lifecycle hooks (
beforeDestroy → beforeUnmount in ViewerToolbar, ToastContainer, ViewerComponent, viewer-api.js)
- Added explicit
emits declarations to all components (ViewerToolbar, ToastContainer, ViewerComponent, ViewerModal, FileNavigation, FileBrowser)
- Verified no implicit
$listeners usage (removed in Vue 3)
- Added comprehensive migration notes to COMPOSABLES_API.md with dependency compatibility matrix
- Audited dependencies:
vue 2.7 → 3.x (API compatible), @nextcloud/vue 8.x → 9.x (requires Nextcloud 30+)
Changed
- Cache Statistics Updates: Improved cache stats refresh frequency from 5 seconds to 2 seconds for more responsive UI
- Performance Mode Controls: Enhanced performance mode switching with clickable controls
- Performance mode label in stats overlay is now clickable to cycle modes
- ViewerToolbar performance button cycles modes (preserves MinimalTopBar toggle behavior)
- All mode changes apply immediately with proper event propagation
- Dependencies: Updated core runtime and build tooling
three: ^0.181.2 → ^0.182.0 (patch update)
vite: ^7.2.6 → ^7.2.7 (dev, patch update)
- Security Workflow: Updated GitHub Actions CodeQL workflow to use
github/codeql-action v4 in preparation for the v3 deprecation in December 2026
Fixed
- Toast Event Handling: Fixed missing
push-toast event handler in App.vue preventing performance suggestion toasts from displaying
- ViewerModal Performance Mode: Fixed performance mode cycling in ViewerModal component by adding proper prop passing and event handling
- Model Comparison Positioning: Fixed comparison model positioning issues where the second model's position was immutable
- Wrapped comparison model in a Group to neutralize baked position offset from loading
- Fixed parent-child relationship handling by using toRaw() to get actual Three.js objects instead of Vue proxies
- Ensured matrixAutoUpdate is enabled for wrapper and all children for proper render loop updates
- Fixed matrix validation order: validate parent matrices before child objects to prevent "Cannot read properties of undefined" errors
- Improved scene hierarchy validation to include all objects (grid, axes, lights) not just models
- Fixed matrix update sequence: call updateMatrix() on all objects before updateMatrixWorld() to ensure proper transformations
- Comparison models now position correctly side-by-side with proper spacing and alignment
- CSP Compliance for Texture Loading: Fixed Content Security Policy violations when loading GLB/GLTF models with embedded textures in Nextcloud modal viewer
- Patched
Image.prototype.src setter to automatically convert blob URLs to data URIs for texture loading
- Patched
URL.createObjectURL to track blob-to-URL mappings for later conversion
- Patched
fetch() and XMLHttpRequest to intercept blob URLs and convert them to data URIs
- Patched
THREE.FileLoader to handle blob URL conversion for texture resources
- Automatic detection of modal viewer context (iframe or Nextcloud viewer) to apply CSP workarounds only when needed
- All patches are automatically restored after model loading completes
- CSP Compliance for Buffer Loading: Fixed CSP violations when loading GLTF files with external
.bin buffer files
- Updated
setupResourceManager to use data URIs for buffers in modal context (instead of blob URLs)
- Patched
fetch() to intercept data URI requests and decode them manually, bypassing CSP restrictions
- Supports both base64 and URL-encoded data URIs for maximum compatibility
- Animation Support for Multi-File GLTF: Fixed missing animation initialization for GLTF files loaded with external dependencies
- Added animation detection and initialization to
loadModelWithFiles function
- Animations now properly initialize when loading GLTF files with external
.bin files
- Animation controls now appear correctly for animated multi-file GLTF models
- False Texture Warning: Removed automatic texture warning banner that was incorrectly showing for all GLB/GLTF files
- Warning now only appears when actual CSP errors or texture loading failures are detected
- Improved user experience by eliminating false warnings when textures load successfully
- Slicer Upload Safety: Hardened temporary STL upload handling with size and MIME validation
- Reject uploads over 50 MB per file and enforce a 200 MB rolling temp folder cap
- Validate STL MIME/header before accepting; reject invalid content
- Enforce rolling 24h expiration on access and clean up expired shares/files
- Use rolling +1 day expiration for generated share links
- OBJ Texture Loading Robustness: Improved OBJ/MTL parsing and texture handling
- Preserve texture/MTL paths with spaces and mark materials for update after textures load
- Use existing blob File objects for texture URLs and tighten loader logging
- Handle texture load failures gracefully and ensure needsUpdate flags are set
- Texture Dependency Lookup: Skip direct “find by path” lookups for image textures to avoid unnecessary 404s; rely on directory listings for textures commonly stored in subfolders
|