mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-05 00:48:12 +08:00
Add support for clicking checkboxes via their labels (#2667)
This commit is contained in:
@@ -960,6 +960,8 @@ export class CheckboxInput extends WidgetProps {
|
||||
|
||||
@Transform(({ value }: { value: string }) => value || undefined)
|
||||
tooltip!: string | undefined;
|
||||
|
||||
forLabel!: bigint | undefined;
|
||||
}
|
||||
|
||||
export class ColorInput extends WidgetProps {
|
||||
@@ -1360,6 +1362,8 @@ export class TextLabel extends WidgetProps {
|
||||
|
||||
@Transform(({ value }: { value: string }) => value || undefined)
|
||||
tooltip!: string | undefined;
|
||||
|
||||
checkboxId!: bigint | undefined;
|
||||
}
|
||||
|
||||
export type ReferencePoint = "None" | "TopLeft" | "TopCenter" | "TopRight" | "CenterLeft" | "Center" | "CenterRight" | "BottomLeft" | "BottomCenter" | "BottomRight";
|
||||
|
||||
Reference in New Issue
Block a user