- Enhanced cursor behavior for new tools: semantic select, mask lasso, and mask rectangle. - Updated mask edit state to include mask asset ID and kind. - Implemented inpaint region commands for adding, applying, and removing inpaint regions. - Introduced new operations for lasso and semantic selection tools. - Created UI components for candidate review and inpaint region management. - Added tests for inpaint region commands to ensure functionality. - Updated various components to support new inpaint features and improve user experience.
26 lines
583 B
TypeScript
26 lines
583 B
TypeScript
import type { Vec2D } from "@core/geometry";
|
|
|
|
export type PointerInputEvent = {
|
|
pointerId: number;
|
|
pointerType: "mouse" | "pen" | "touch";
|
|
position: Vec2D;
|
|
buttons: number;
|
|
pressure?: number;
|
|
altKey: boolean;
|
|
ctrlKey: boolean;
|
|
metaKey: boolean;
|
|
shiftKey: boolean;
|
|
};
|
|
|
|
export type WheelInputEvent = {
|
|
position: Vec2D;
|
|
delta: Vec2D;
|
|
altKey: boolean;
|
|
ctrlKey: boolean;
|
|
metaKey: boolean;
|
|
shiftKey: boolean;
|
|
};
|
|
|
|
export type GlobalPointerConsumer = (event: PointerInputEvent) => boolean;
|
|
export type GlobalWheelConsumer = (event: WheelInputEvent) => boolean;
|