Skip to content

Commit

Permalink
fix: rename to non-transparent-pixel #1373
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoiver committed Jun 14, 2023
1 parent 5d8ab0a commit a078112
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/g-lite/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export interface BaseStyleProps {
| 'visiblepainted'
// | 'bounding-box'
| 'all'
| 'pixels' // valid only for Image
| 'non-transparent-pixel' // valid only for Image
| CSSGlobalKeywords;

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/g-plugin-canvas-picker/src/Image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function isPointInPath(
const { pointerEvents, width, height } =
displayObject.parsedStyle as ParsedImageStyleProps;

if (pointerEvents === 'pixels') {
if (pointerEvents === 'non-transparent-pixel') {
const { offscreenCanvas } = renderingPluginContext.config;
const canvas = runtime.offscreenCanvas.getOrCreateCanvas(offscreenCanvas);
const context = runtime.offscreenCanvas.getOrCreateContext(
Expand Down

0 comments on commit a078112

Please sign in to comment.