- Refactor LayersSheet component to support mask editing state and improve layer visibility handling. - Introduce functions to collect mask layer IDs and count display layers excluding masks. - Update BrushControls to include mask view mode options and a Done button for exiting mask editing. - Modify brush session handling to support brush previews when editing masks. - Implement a new BrushPreviewRenderer for rendering brush strokes with visual feedback. - Add document geometry utilities for transforming points and resolving layer bounds. - Ensure proper cleanup of brush preview on pointer leave and other interactions.
75 lines
3.1 KiB
TypeScript
75 lines
3.1 KiB
TypeScript
export type { Command, CommandContext } from "./command";
|
|
export {
|
|
documentAddArtboardCommand,
|
|
documentAddAssetCommand,
|
|
documentAddGroupLayerCommand,
|
|
documentAddImageLayerCommand,
|
|
documentAddLayerMaskCommand,
|
|
documentAddRasterLayerCommand,
|
|
documentCommands,
|
|
documentGroupLayersCommand,
|
|
documentMoveLayerCommand,
|
|
documentRemoveArtboardCommand,
|
|
documentRemoveLayerCommand,
|
|
documentRemoveLayerMaskCommand,
|
|
documentRenameArtboardCommand,
|
|
documentRenameLayerCommand,
|
|
documentSetArtboardBoundsCommand,
|
|
documentSetArtboardLockedCommand,
|
|
documentSetArtboardVisibleCommand,
|
|
documentSetLayerClippingMaskCommand,
|
|
documentSetLayerLockedCommand,
|
|
documentSetLayerVisibleCommand,
|
|
documentUpdateAssetSourceCommand,
|
|
documentUngroupLayerCommand,
|
|
} from "./document";
|
|
export type {
|
|
DocumentAddArtboardPayload,
|
|
DocumentAddAssetPayload,
|
|
DocumentAddGroupLayerPayload,
|
|
DocumentAddImageLayerPayload,
|
|
DocumentAddLayerMaskPayload,
|
|
DocumentAddRasterLayerPayload,
|
|
DocumentGroupLayersPayload,
|
|
DocumentMoveLayerPayload,
|
|
DocumentRemoveArtboardPayload,
|
|
DocumentRemoveLayerPayload,
|
|
DocumentRemoveLayerMaskPayload,
|
|
DocumentRenameArtboardPayload,
|
|
DocumentRenameLayerPayload,
|
|
DocumentSetArtboardBoundsPayload,
|
|
DocumentSetArtboardLockedPayload,
|
|
DocumentSetArtboardVisiblePayload,
|
|
DocumentSetLayerClippingMaskPayload,
|
|
DocumentSetLayerLockedPayload,
|
|
DocumentSetLayerVisiblePayload,
|
|
DocumentUpdateAssetSourcePayload,
|
|
DocumentUngroupLayerPayload,
|
|
} from "./document";
|
|
export { historyCommands, historyRedoCommand, historyUndoCommand } from "./history";
|
|
export type { CommandDispatcher, Dispatch } from "./dispatcher";
|
|
export type { CommandId, CommandPayloads } from "./payloads";
|
|
export { createCommandDispatcher } from "./dispatcher";
|
|
export type { CommandRegistry } from "./registry";
|
|
export { createCommandRegistry } from "./registry";
|
|
export { selectionAddLayerCommand, selectionClearCommand, selectionCommands, selectionSetCommand } from "./selection";
|
|
export type { SelectionAddLayerPayload, SelectionSetPayload } from "./selection";
|
|
export { toolCommands, toolEnterMaskEditCommand, toolEnterTemporaryPanCommand, toolExitMaskEditCommand, toolExitTemporaryPanCommand, toolSetActiveCommand, toolSetBrushPreviewCommand, toolSetBrushSettingsCommand, toolSetBrushStrokePreviewCommand, toolSetMaskViewModeCommand } from "./tool";
|
|
export { transformBeginCommand, transformCommands, transformEndCommand, transformSetBoundsCommand, transformUpdateCommand } from "./transform";
|
|
export type { TransformBeginPayload, TransformSetBoundsPayload, TransformUpdatePayload } from "./transform";
|
|
export type { ToolEnterMaskEditPayload, ToolSetActivePayload, ToolSetBrushPreviewPayload, ToolSetBrushSettingsPayload, ToolSetBrushStrokePreviewPayload, ToolSetMaskViewModePayload } from "./tool";
|
|
export {
|
|
viewportCommands,
|
|
viewportPanCommand,
|
|
viewportResetCommand,
|
|
viewportSetSizeCommand,
|
|
viewportSetZoomCommand,
|
|
viewportZoomAroundPointCommand,
|
|
} from "./viewport";
|
|
export type {
|
|
ViewportPanPayload,
|
|
ViewportSetSizePayload,
|
|
ViewportSetZoomPayload,
|
|
ViewportZoomAroundPointPayload,
|
|
} from "./viewport";
|