Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion s2-site/docs/api/general/s2-data-config.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ Function description: Field metadata, configurable field alias and value formatt
| prepareText | Perform asynchronous processing on the text before rendering | (value: SimpleData) => Promise<string> | | |
| fallback | Fallback display for image loading failure | string | | |
| timeout | | number | 10000 | |
| config | | Partial<[ImageStyleProps](https://g.antv.antgroup.com/api/basic/image)> \| Partial<[HTMLVideoElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement)>\| [HTMLStyleProps](https://g.antv.antgroup.com/api/basic/html) | | |
| config | Configuration for image or video container | Partial<[ImageStyleProps](https://g.antv.antgroup.com/api/basic/image)> \| Partial<[RectStyleProps](https://g.antv.antgroup.com/api/basic/rect)> | | |
| videoConfig | Video configuration, valid only when type is VIDEO | Partial<[HTMLVideoElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement)> | `{ loop: true, autoplay: false, preload: 'auto', crossOrigin: true, controls: false, muted: true }` | |
Comment thread
Alexzjt marked this conversation as resolved.
Resolved

### MiniChartData

Expand Down
3 changes: 2 additions & 1 deletion s2-site/docs/api/general/s2-data-config.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ const s2DataConfig = {
| prepareText | ๆธฒๆŸ“ๅ‰ๅฏนๆ–‡ๆœฌ่ฟ›่กŒๅผ‚ๆญฅๅค„็† | (value: SimpleData) => Promise<string> | | |
| fallback | ๅ›พ็‰‡ใ€่ง†้ข‘ๅŠ ่ฝฝๅคฑ่ดฅ็š„ๅ…œๅบ•ๅฑ•็คบ | string | | |
| timeout | ๅ›พ็‰‡ใ€่ง†้ข‘ๅŠ ่ฝฝ่ถ…ๆ—ถๆ—ถ้—ด | number | 10000 | |
| config | ๅ›พ็‰‡ใ€่ง†้ข‘็š„้…็ฝฎ้กน | Partial<[ImageStyleProps](https://g.antv.antgroup.com/api/basic/image)> \| Partial<[HTMLVideoElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement)>\| [HTMLStyleProps](https://g.antv.antgroup.com/api/basic/html) | | |
| config | ๅ›พ็‰‡ใ€่ง†้ข‘ๅฎนๅ™จ็š„้…็ฝฎ้กน | Partial<[ImageStyleProps](https://g.antv.antgroup.com/api/basic/image)> \| Partial<[RectStyleProps](https://g.antv.antgroup.com/api/basic/rect)> | | |
| videoConfig | ่ง†้ข‘้…็ฝฎ้กน๏ผŒไป…ๅฝ“ type ไธบ VIDEO ๆ—ถ็”Ÿๆ•ˆ | Partial<[HTMLVideoElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement)> | `{ loop: true, autoplay: false, preload: 'auto', crossOrigin: true, controls: false, muted: true }` | |
Comment thread
Alexzjt marked this conversation as resolved.
Resolved

<embed src="@/common/custom/customTreeNode.zh.md"></embed>
<embed src="@/common/view-meta.zh.md"></embed>
Expand Down
2 changes: 1 addition & 1 deletion s2-site/docs/manual/advanced/cell-render/video.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const s2DataConfig = {
clickToPreview?: boolean, // Whether to enable click to preview
prepareText?: (value: SimpleData) => Promise<string>, // Asynchronously process text before rendering
config?: Partial<RectStyleProps>, // Video rectangle area configuration within the cell https://g.antv.antgroup.com/api/css/pattern#htmlvideoelement
videoConfig?: Partial<HTMLVideoElement> // https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement
videoConfig?: Partial<HTMLVideoElement> // https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement, default: { loop: true, autoplay: false, preload: 'auto', crossOrigin: true, controls: false, muted: true }
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion s2-site/docs/manual/advanced/cell-render/video.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const s2DataConfig = {
clickToPreview?: boolean, // ๆ˜ฏๅฆๅผ€ๅฏ็‚นๅ‡ป้ข„่งˆ
prepareText?: (value: SimpleData) => Promise<string>, // ๆธฒๆŸ“ๅ‰ๅฏนๆ–‡ๆœฌ่ฟ›่กŒๅผ‚ๆญฅๅค„็†
config?: Partial<RectStyleProps>, // ๅ•ๅ…ƒๆ ผๅ†…่ง†้ข‘็ŸฉๅฝขๅŒบๅŸŸ้…็ฝฎ https://g.antv.antgroup.com/api/css/pattern#htmlvideoelement
videoConfig?: Partial<HTMLVideoElement> // https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement
videoConfig?: Partial<HTMLVideoElement> // https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement๏ผŒ้ป˜่ฎคๅ€ผ๏ผš{ loop: true, autoplay: false, preload: 'auto', crossOrigin: true, controls: false, muted: true }
}
}
}
Expand Down
Loading