Add two-way tool option messaging system between frontend/backend (#361)

* Add two-way tool option messaging system

* Rename tool option functions

* Move repeated frontend messaging code to function

* Address style comments

* Rename variable to be more descriptive

* Move tool options update to SetActiveTool message

* Refactor record of all tool options

* Only pass active tool options to bar

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
Henry Sloan
2021-08-28 21:43:27 -07:00
committed by GitHub
co-authored by Keavon Chambers
parent 7513b174e3
commit 8336b3e809
7 changed files with 59 additions and 32 deletions
+2 -2
View File
@@ -55,8 +55,8 @@ export interface PopoverButtonProps {
export interface NumberInputWidget {
kind: "NumberInput";
tooltip?: string;
callback?: Function;
props: NumberInputProps;
optionPath: string[];
props: Omit<NumberInputProps, "value">;
}
export interface NumberInputProps {