Skip to content

docs: update video renderer api configuration across documentation - #3342

Merged
Alexzjt merged 1 commit into
nextfrom
docs/update-video-renderer-16898877395320545996
May 6, 2026
Merged

Alexzjt merged 1 commit into
nextfrom
docs/update-video-renderer-16898877395320545996

Conversation

@Alexzjt

@Alexzjt Alexzjt commented May 2, 2026

Copy link
Copy Markdown
Contributor

👀 PR includes

✨ Feature

  • New feature

🎨 Enhance

  • Code style optimization
  • Refactoring
  • Change the UI
  • Improve the performance
  • Type optimization

🐛 Bugfix

  • Solve the issue and close

🔧 Chore

  • Test case
  • Docs / demos update
  • CI / workflow
  • Release version
  • Other ()

📝 Description

Based on the latest weekly commit analysis (Commit 8e42aff58 and recent VideoRendererConfig adjustments):

  • Documented videoConfig in the s2-data-config API specification, adding missing configuration properties for type: 'VIDEO' that were previously unaccounted for.
  • Added the correct default values for videoConfig ({ loop: true, autoplay: false, preload: 'auto', crossOrigin: true, controls: false, muted: true }) into the tutorials for both Chinese and English.
  • Updated config documentation to include RectStyleProps.
  • Symmetrically updated .zh.md and .en.md across the docs directory.

🖼️ Screenshot

Before After
❌ ✅

⚠️ Breaking Changes

  • Yes
  • No

🔗 Related issue link

🔍 Self-Check before the merge

  • Add or update relevant docs.
  • Add or update relevant demos.
  • Add or update test case.
  • Add or update relevant TypeScript definitions.

PR created automatically by Jules for task 16898877395320545996 started by @Alexzjt

- Synchronized `s2-data-config` and `video` tutorial API definitions to match `Renderer` configurations in code.
- Added `videoConfig` explicitly with default values in both Chinese and English documentation.

Co-authored-by: Alexzjt <9548248+Alexzjt@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@github-actions github-actions Bot added the pr(documentation) documentation label May 2, 2026
@github-actions

github-actions Bot commented May 2, 2026

Copy link
Copy Markdown
Contributor

你好 @Alexzjt,非常感谢你的贡献.
为了让代码更健壮, 请根据 贡献指南 补充相应单元测试 (文档改动或其他特殊场景除外), 如果有 API 改动, 请修改 相应的文档.
同时请检查 lint 和 test 相关 CI 是否通过, 如果失败, 请点击 [Details] 按钮查看, 并根据日志修复.

Hello, @Alexzjt, Thanks for your contribution. In order to make the code more robust, please add the corresponding unit tests, and update the docs if there are API changes.
At the same time, please check whether the CI related to lint and test passes. If the CI fails, please click [Details] button to check and repair according to the log.

@github-actions github-actions Bot added the next 2.0-next 版本的问题 label May 2, 2026
@codecov-commenter

codecov-commenter commented May 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.65%. Comparing base (ecdc9c8) to head (14b081b).
⚠️ Report is 802 commits behind head on next.

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #3342      +/-   ##
==========================================
+ Coverage   75.77%   78.65%   +2.88%     
==========================================
  Files         257      224      -33     
  Lines       11994    12518     +524     
  Branches     2464     2843     +379     
==========================================
+ Hits         9088     9846     +758     
+ Misses       1398      961     -437     
- Partials     1508     1711     +203     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the documentation for s2-data-config and video cell rendering to include the videoConfig property and its default values. Feedback was provided regarding the crossOrigin default value, which is documented as a boolean but should ideally be a string to align with the HTMLVideoElement specification.

@github-actions

github-actions Bot commented May 2, 2026

Copy link
Copy Markdown
Contributor

Size Change: -2 B (0%)

Total Size: 744 kB

📦 View Changed
Filename Size Change
packages/s2-core/dist/s2.min.css 581 B -2 B (-0.34%)
ℹ️ View Unchanged
Filename Size
packages/s2-core/dist/s2-extends.min.js 209 kB
packages/s2-core/dist/s2.min.js 311 kB
packages/s2-react-components/dist/s2-react-components.min.css 2.55 kB
packages/s2-react-components/dist/s2-react-components.min.js 123 kB
packages/s2-react/dist/s2-react.min.css 1.3 kB
packages/s2-react/dist/s2-react.min.js 38.5 kB
packages/s2-vue/dist/s2-vue.min.css 3.8 kB
packages/s2-vue/dist/s2-vue.min.js 54.2 kB

compressed-size-action

@Alexzjt
Alexzjt merged commit 2349ea1 into next May 6, 2026
14 checks passed
@Alexzjt
Alexzjt deleted the docs/update-video-renderer-16898877395320545996 branch May 6, 2026 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

next 2.0-next 版本的问题 pr(documentation) documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants