feat: sync interactive image previews
Engine CI / test (push) Waiting to run

This commit is contained in:
2026-08-30 22:20:30 +08:00
parent e3b0b2d576
commit e23fa413be
11 changed files with 1296 additions and 117 deletions
+6
View File
@@ -85,6 +85,12 @@ describe('theme defaults', () => {
expect(controlsSource).toContain("overlay.setAttribute('aria-label', '图片全屏预览')")
expect(controlsSource).toContain("type ScalableKind = 'table' | 'code'")
expect(controlsSource).toContain('easySlidesImagePreview')
expect(controlsSource).toContain('const IMAGE_MIN_SCALE = 0.1')
expect(controlsSource).toContain('const IMAGE_MAX_SCALE = 4')
expect(controlsSource).toContain("type: 'close'")
expect(controlsSource).toContain('easy-slides:image-preview:')
expect(layoutCss).toContain('.easy-image-scale-toolbar')
expect(layoutCss).toContain('.easy-image-lightbox-pannable')
expect(controlsSource).toContain('sharedState')
expect(controlsSource).toContain('}, 500)')
expect(scrollFallbackSource).toContain('easy-slide-scroll-fallback')