mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-28 01:28:11 +08:00
Desktop: Add Eyedropper tool support with native Vello (#3684)
* mostly done * fix * kinda works but tilt and flip broken * fix footprint Co-authored-by: James Lindsay <78500760+0HyperCube@users.noreply.github.com> * Code review * fix cursor hiding * Remove console.log --------- Co-authored-by: James Lindsay <78500760+0HyperCube@users.noreply.github.com> Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
co-authored by
James Lindsay
Keavon Chambers
parent
19e9af3d43
commit
5fd1a24f16
@@ -678,7 +678,15 @@ export class UpdateDocumentRulers extends JsMessage {
|
||||
readonly visible!: boolean;
|
||||
}
|
||||
|
||||
export class EyedropperPreviewImage {
|
||||
readonly data!: Uint8Array;
|
||||
readonly width!: number;
|
||||
readonly height!: number;
|
||||
}
|
||||
|
||||
export class UpdateEyedropperSamplingState extends JsMessage {
|
||||
readonly image!: EyedropperPreviewImage | undefined;
|
||||
|
||||
@TupleToVec2
|
||||
readonly mousePosition!: XY | undefined;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user