(
index: number,
displayWidth: number,
displayHeight: number
)
| 622 | } |
| 623 | |
| 624 | private createListSlideItem( |
| 625 | index: number, |
| 626 | displayWidth: number, |
| 627 | displayHeight: number |
| 628 | ): { item: HTMLDivElement; wrapper: HTMLDivElement } { |
| 629 | const item = document.createElement('div') |
| 630 | item.dataset.slideIndex = String(index) |
| 631 | item.style.cssText = 'width: fit-content; margin: 0 auto 20px;' |
| 632 | |
| 633 | const wrapper = document.createElement('div') |
| 634 | wrapper.style.cssText = ` |
| 635 | width: ${displayWidth}px; |
| 636 | height: ${displayHeight}px; |
| 637 | box-shadow: 0 2px 8px rgba(0,0,0,0.15); |
| 638 | overflow: hidden; |
| 639 | position: relative; |
| 640 | background: #fff; |
| 641 | ` |
| 642 | |
| 643 | item.appendChild(wrapper) |
| 644 | |
| 645 | if (this.listOptions.showSlideLabels) { |
| 646 | const label = document.createElement('div') |
| 647 | label.style.cssText = 'text-align: center; padding: 4px; font-size: 12px; color: #666;' |
| 648 | label.textContent = `Slide ${index + 1}` |
| 649 | item.appendChild(label) |
| 650 | } |
| 651 | return { item, wrapper } |
| 652 | } |
| 653 | |
| 654 | private mountListSlide( |
| 655 | index: number, |
no outgoing calls
no test coverage detected