mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-04 23:48:11 +08:00
[wip]fix: use svelte component for optionsWidget
This commit is contained in:
@@ -4,6 +4,7 @@ import { Transform, Type, plainToClass } from "class-transformer";
|
||||
|
||||
import { type IconName, type IconSize } from "@graphite/utility-functions/icons";
|
||||
import { type WasmEditorInstance, type WasmRawInstance } from "@graphite/wasm-communication/editor";
|
||||
import WidgetLayout from "~src/components/widgets/WidgetLayout.svelte";
|
||||
|
||||
export class JsMessage {
|
||||
// The marker provides a way to check if an object is a sub-class constructor for a jsMessage.
|
||||
@@ -932,7 +933,8 @@ export class PopoverButton extends WidgetProps {
|
||||
@Transform(({ value }: { value: string }) => value || undefined)
|
||||
tooltip!: string | undefined;
|
||||
|
||||
options_widget: WidgetLayout | undefined;
|
||||
optionsWidget: WidgetLayout = defaultWidgetLayout();
|
||||
layoutTarget: unknown = undefined;
|
||||
}
|
||||
|
||||
export type RadioEntryData = {
|
||||
|
||||
Reference in New Issue
Block a user