Skip to content

feat: add native HTML-in-Canvas rendering - #2275

Open
lxfu1 wants to merge 1 commit into
releasefrom
feat/native-html-canvas
Open

lxfu1 wants to merge 1 commit into
releasefrom
feat/native-html-canvas

Conversation

@lxfu1

@lxfu1 lxfu1 commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

🤔 This is a ...

  • New feature
  • TypeScript definition update
  • Other: experimental browser API integration

🔗 Related issue link

No issue linked. This is an experimental implementation to validate native HTML-in-Canvas in G.

💡 Background and solution

G's Canvas renderer currently places HTML display objects in a separate DOM overlay. That prevents Canvas shapes from drawing over HTML in scene order and makes unified image export difficult.

This PR adds an opt-in mode:

const renderer = new Renderer({ htmlRendering: 'native' });

📝 Changelog

Language Changelog
🇺🇸 English Add an experimental native HTML rendering option to the G Canvas renderer.
🇨🇳 Chinese 为 G Canvas 渲染器新增实验性的原生 HTML 绘制能力。

☑️ Self Check before Merge

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

@changeset-bot

changeset-bot Bot commented Nov 13, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6ba1617

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@lxfu1
lxfu1 requested review from hustcc and wang1212 November 13, 2026 12:29
@lxfu1 lxfu1 changed the title feat(g-canvas): experimental native HTML-in-Canvas rendering feat: add native HTML-in-Canvas rendering Nov 13, 2026
@lxfu1
lxfu1 marked this pull request as ready for review November 13, 2026 12:30
@wang1212
wang1212 changed the base branch from master to release November 13, 2026 13:30

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant