Skip to content

feat(color-picker): add EyeDropper API integration. - #2616

Closed
Lfan-ke wants to merge 5 commits into
Tencent:developfrom
Lfan-ke:feat/color-picker-eyedropper
Closed

feat(color-picker): add EyeDropper API integration.#2616
Lfan-ke wants to merge 5 commits into
Tencent:developfrom
Lfan-ke:feat/color-picker-eyedropper

Conversation

@Lfan-ke

@Lfan-ke Lfan-ke commented Jul 7, 2026

Copy link
Copy Markdown

Closes #2568

Adds js/color-picker/eyedropper.ts:

  • isEyeDropperSupported() — feature-detects via 'EyeDropper' in globalThis
  • openEyeDropper(options?) — opens native picker, returns sRGBHex or null on cancel/unsupported; accepts optional AbortSignal for programmatic cancellation

TypeScript declarations included; user-cancel (AbortError) is silently swallowed.

Lfan-ke added 5 commits July 7, 2026 10:56
Signed-off-by: 林晨 (Leo Cheng) <leo-cheng@vip.qq.com>
Signed-off-by: 林晨 (Leo Cheng) <leo-cheng@vip.qq.com>
Signed-off-by: 林晨 (Leo Cheng) <leo-cheng@vip.qq.com>
…signal param.

Signed-off-by: 林晨 (Leo Cheng) <leo-cheng@vip.qq.com>
…and signal.

Signed-off-by: 林晨 (Leo Cheng) <leo-cheng@vip.qq.com>
@Lfan-ke

Lfan-ke commented Jul 7, 2026

Copy link
Copy Markdown
Author

Duplicate of #2615.

@Lfan-ke Lfan-ke closed this Jul 7, 2026
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.

[ColorPicker] 支持吸色

1 participant