feat: upgrade vrender to enhance image and background image#4538
Merged
xuefei1313 merged 1 commit intodevelopfrom Apr 3, 2026
Merged
feat: upgrade vrender to enhance image and background image#4538xuefei1313 merged 1 commit intodevelopfrom
xuefei1313 merged 1 commit intodevelopfrom
Conversation
xuefei1313
approved these changes
Apr 3, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR upgrades the VRender dependency set to enable enhanced image/background rendering capabilities in VChart, and exposes the corresponding new configuration surface via typings and documentation.
Changes:
- Bump
@visactor/vrender*packages from1.0.44to1.0.45across VChart packages, docs, and tools. - Extend visual typings to support new background/image sizing & positioning options (e.g.
no-repeat-cover,backgroundPosition,imageMode,imagePosition, offsets/scale). - Update EN/ZH option docs to document the new image/background behaviors.
Reviewed changes
Copilot reviewed 13 out of 15 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tools/story-player/package.json | Align story-player’s VRender dependencies to 1.0.45. |
| packages/vchart/package.json | Upgrade VChart runtime VRender dependencies to 1.0.45. |
| packages/vchart-extension/package.json | Upgrade extension package VRender dependencies to 1.0.45. |
| packages/react-vchart/package.json | Upgrade React wrapper’s VRender core/kits dependencies to 1.0.45. |
| packages/openinula-vchart/package.json | Upgrade OpenInula wrapper’s VRender core/kits dependencies to 1.0.45. |
| docs/package.json | Upgrade docs site VRender dependencies to 1.0.45. |
| packages/vchart/src/typings/visual.ts | Add new background/image sizing & positioning types and mark spec fields. |
| packages/vchart-types/types/typings/visual.d.ts | Mirror the new typings into the published vchart-types declarations. |
| docs/assets/option/zh/graphic/image.md | Document imageMode/imagePosition/imageScale/imageOffsetX/Y (ZH). |
| docs/assets/option/en/graphic/image.md | Document imageMode/imagePosition/imageScale/imageOffsetX/Y (EN). |
| docs/assets/option/zh/graphic/fill-style.md | Document new backgroundMode shorthands + backgroundPosition (ZH). |
| docs/assets/option/en/graphic/fill-style.md | Document new backgroundMode shorthands + backgroundPosition (EN). |
| docs/assets/option/zh/common/background.md | Extend background image config structure & add example usage (ZH). |
| docs/assets/option/en/common/background.md | Extend background image config structure & add example usage (EN). |
| common/config/rush/pnpm-lock.yaml | Update lockfile for VRender bump (currently includes additional Jest/TypeScript peer-resolution churn). |
Files not reviewed (1)
- common/config/rush/pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
🔗 Related PR link
🐞 Bugserver case id
💡 Background and solution
📝 Changelog
☑️ Self-Check before Merge
🚀 Summary
copilot:summary
🔍 Walkthrough
copilot:walkthrough