Skip to main content

components_GraphEditor_PreferencesModal

perfect-graph / Modules / components/GraphEditor/PreferencesModal

Module: components/GraphEditor/PreferencesModal#

Table of contents#

Namespaces#

Type aliases#

Variables#

Functions#

Type aliases#

PreferencesModalProps#

Ƭ PreferencesModalProps: Object

Type declaration#

NameType
components?Record<string, React.ReactNode | FormProps>
isOpen?boolean
sidebar?SidebarItemData[]

Defined in#

components/GraphEditor/PreferencesModal/index.tsx:35

Variables#

DefaultComponents#

• DefaultComponents: Object

Type declaration#

NameType
EdgeView(graphConfig: GraphConfig) => { formData: Omit<{ alpha: number ; fill: { default: number ; hovered: number ; nodeSelected: number ; selected: number } ; labelVisible: boolean ; lineType: EdgeLineType ; width: number }, "ids"> ; schema: { properties: { alpha: { title: string = 'Alpha'; type: string = 'number' } ; fill: { properties: { default: { title: string = 'Default'; type: string = 'number' } ; hovered: { title: string = 'Hovered'; type: string = 'number' } ; nodeSelected: { title: string = 'Node Selected'; type: string = 'number' } ; selected: { title: string = 'Selected'; type: string = 'number' } } ; required: string[] ; title: string = 'Fill'; type: string = 'object' } ; labelVisible: { title: string = 'Label Visible'; type: string = 'boolean' } ; lineType: { enum: string[] ; enumNames: string[] ; title: string = 'Line Type'; type: string = 'string' } ; width: { title: string = 'Width'; type: string = 'number' } } ; required: string[] ; type: string = 'object' } ; uiSchema: { fill: { default: { ui:widget: (__namedParameters: ColorPickerProps) => Element = ColorPicker } ; hovered: { ui:widget: (__namedParameters: ColorPickerProps) => Element = ColorPicker } ; nodeSelected: { ui:widget: (__namedParameters: ColorPickerProps) => Element = ColorPicker } ; selected: { ui:widget: (__namedParameters: ColorPickerProps) => Element = ColorPicker } } } }
NodeView(graphConfig: GraphConfig) => { formData: Omit<{ fill: { default: number ; edgeSelected: number ; hovered: number ; selected: number } ; height: number ; labelVisible: boolean ; radius: number ; width: number }, "ids"> ; schema: { properties: { fill: { properties: { default: { title: string = 'Default'; type: string = 'number' } ; edgeSelected: { title: string = 'Edge Selected'; type: string = 'number' } ; hovered: { title: string = 'Hovered'; type: string = 'number' } ; selected: { title: string = 'Selected'; type: string = 'number' } } ; required: string[] ; title: string = 'Fill'; type: string = 'object' } ; height: { title: string = 'Height'; type: string = 'number' } ; labelVisible: { title: string = 'Label Visible'; type: string = 'boolean' } ; radius: { title: string = 'Radius'; type: string = 'number' } ; width: { title: string = 'Width'; type: string = 'number' } } ; required: string[] ; type: string = 'object' } ; uiSchema: { fill: { default: { ui:widget: (__namedParameters: ColorPickerProps) => Element = ColorPicker } ; edgeSelected: { ui:widget: (__namedParameters: ColorPickerProps) => Element = ColorPicker } ; hovered: { ui:widget: (__namedParameters: ColorPickerProps) => Element = ColorPicker } ; selected: { ui:widget: (__namedParameters: ColorPickerProps) => Element = ColorPicker } } } }

Defined in#

components/GraphEditor/PreferencesModal/index.tsx:365


DefaultSidebarData#

• DefaultSidebarData: { children: { id: string = 'NodeView' }[] ; icon: Element ; id: string = 'General'; label: string = 'General' }[]

Defined in#

components/GraphEditor/PreferencesModal/index.tsx:549

Functions#

PreferencesModal#

â–¸ Const PreferencesModal(props): Element

Parameters#

NameType
propsPreferencesModalProps

Returns#

Element

Defined in#

components/GraphEditor/PreferencesModal/index.tsx:43