mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): expose subscribe method for nanostores
This commit is contained in:
parent
e940754795
commit
0208e4b232
@ -257,30 +257,47 @@ export class CanvasStateApi {
|
|||||||
// Read-write state, ephemeral interaction state
|
// Read-write state, ephemeral interaction state
|
||||||
getIsDrawing = $isDrawing.get;
|
getIsDrawing = $isDrawing.get;
|
||||||
setIsDrawing = $isDrawing.set;
|
setIsDrawing = $isDrawing.set;
|
||||||
|
onIsDrawingChanged = $isDrawing.subscribe;
|
||||||
|
|
||||||
getIsMouseDown = $isMouseDown.get;
|
getIsMouseDown = $isMouseDown.get;
|
||||||
setIsMouseDown = $isMouseDown.set;
|
setIsMouseDown = $isMouseDown.set;
|
||||||
|
onIsMouseDownChanged = $isMouseDown.subscribe;
|
||||||
|
|
||||||
getLastAddedPoint = $lastAddedPoint.get;
|
getLastAddedPoint = $lastAddedPoint.get;
|
||||||
setLastAddedPoint = $lastAddedPoint.set;
|
setLastAddedPoint = $lastAddedPoint.set;
|
||||||
|
onLastAddedPointChanged = $lastAddedPoint.subscribe;
|
||||||
|
|
||||||
getLastMouseDownPos = $lastMouseDownPos.get;
|
getLastMouseDownPos = $lastMouseDownPos.get;
|
||||||
setLastMouseDownPos = $lastMouseDownPos.set;
|
setLastMouseDownPos = $lastMouseDownPos.set;
|
||||||
|
onLastMouseDownPosChanged = $lastMouseDownPos.subscribe;
|
||||||
|
|
||||||
getLastCursorPos = $lastCursorPos.get;
|
getLastCursorPos = $lastCursorPos.get;
|
||||||
setLastCursorPos = $lastCursorPos.set;
|
setLastCursorPos = $lastCursorPos.set;
|
||||||
|
onLastCursorPosChanged = $lastCursorPos.subscribe;
|
||||||
|
|
||||||
getSpaceKey = $spaceKey.get;
|
getSpaceKey = $spaceKey.get;
|
||||||
setSpaceKey = $spaceKey.set;
|
setSpaceKey = $spaceKey.set;
|
||||||
|
onSpaceKeyChanged = $spaceKey.subscribe;
|
||||||
|
|
||||||
getLastProgressEvent = $lastProgressEvent.get;
|
getLastProgressEvent = $lastProgressEvent.get;
|
||||||
setLastProgressEvent = $lastProgressEvent.set;
|
setLastProgressEvent = $lastProgressEvent.set;
|
||||||
|
onLastProgressEventChanged = $lastProgressEvent.subscribe;
|
||||||
|
|
||||||
getAltKey = $alt.get;
|
getAltKey = $alt.get;
|
||||||
|
onAltChanged = $alt.subscribe;
|
||||||
|
|
||||||
getCtrlKey = $ctrl.get;
|
getCtrlKey = $ctrl.get;
|
||||||
|
onCtrlChanged = $ctrl.subscribe;
|
||||||
|
|
||||||
getMetaKey = $meta.get;
|
getMetaKey = $meta.get;
|
||||||
|
onMetaChanged = $meta.subscribe;
|
||||||
|
|
||||||
getShiftKey = $shift.get;
|
getShiftKey = $shift.get;
|
||||||
|
onShiftChanged = $shift.subscribe;
|
||||||
|
|
||||||
getShouldShowStagedImage = $shouldShowStagedImage.get;
|
getShouldShowStagedImage = $shouldShowStagedImage.get;
|
||||||
|
onGetShouldShowStagedImageChanged = $shouldShowStagedImage.subscribe;
|
||||||
|
|
||||||
setStageAttrs = $stageAttrs.set;
|
setStageAttrs = $stageAttrs.set;
|
||||||
|
onStageAttrsChanged = $stageAttrs.subscribe;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user