Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release #1421

Merged
merged 3 commits into from
Jul 18, 2023
Merged

Release #1421

merged 3 commits into from
Jul 18, 2023

Conversation

xiaoiver
Copy link
Contributor

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / Document optimization
  • TypeScript definition update
  • Refactoring
  • Performance improvement
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ 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

xiaoiver and others added 3 commits July 18, 2023 20:33
* fix: draw empty Path correctly with webgl #1417 #1408

* chore: commit changeset
* fix: return empty object for globalthis

* chore: commit changeset
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Comment on lines +1 to +9
import {
Canvas,
CanvasEvent,
Circle,
Rect,
Text,
Path,
runtime,
} from '@antv/g';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import Path.
runtime,
} from '@antv/g';
import { Renderer as CanvasRenderer } from '@antv/g-canvas';
import * as lil from 'lil-gui';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import lil.
@xiaoiver xiaoiver merged commit 0e5ba2c into next Jul 18, 2023
6 checks passed
@xiaoiver xiaoiver deleted the release branch July 18, 2023 13:08
@@ -184,6 +184,11 @@ export class Canvas extends EventTarget implements ICanvas {
canvasHeight = height || getHeight(canvas) || canvas.height / dpr;
}

// override it in runtime
if (offscreenCanvas) {
runtime.offscreenCanvas = offscreenCanvas;
Copy link
Member

Choose a reason for hiding this comment

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

如果页面存在 多个 canvas ,这里会不会覆盖?

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.

2 participants