diff --git a/packages/g-lite/src/types.ts b/packages/g-lite/src/types.ts index 936ef3827..0558e77e1 100644 --- a/packages/g-lite/src/types.ts +++ b/packages/g-lite/src/types.ts @@ -87,7 +87,7 @@ export interface BaseStyleProps { | 'visiblepainted' // | 'bounding-box' | 'all' - | 'pixels' // valid only for Image + | 'non-transparent-pixel' // valid only for Image | CSSGlobalKeywords; /** diff --git a/packages/g-plugin-canvas-picker/src/Image.ts b/packages/g-plugin-canvas-picker/src/Image.ts index 6a9ff2d0d..817bbd4e9 100644 --- a/packages/g-plugin-canvas-picker/src/Image.ts +++ b/packages/g-plugin-canvas-picker/src/Image.ts @@ -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(