Reorder some parameters in Editor and UI
This commit is contained in:
parent
1a9224b768
commit
01059aa2f7
2 changed files with 4 additions and 2 deletions
|
@ -124,6 +124,7 @@ export function Editor(props: IEditorProps): JSX.Element {
|
||||||
history,
|
history,
|
||||||
historyCurrentStep
|
historyCurrentStep
|
||||||
}}
|
}}
|
||||||
|
replaceContainer={replaceContainer}
|
||||||
selectContainer={(container) => setNewHistory(
|
selectContainer={(container) => setNewHistory(
|
||||||
SelectContainer(
|
SelectContainer(
|
||||||
container,
|
container,
|
||||||
|
@ -209,7 +210,8 @@ export function Editor(props: IEditorProps): JSX.Element {
|
||||||
)}
|
)}
|
||||||
saveEditorAsSVG={() => SaveEditorAsSVG()}
|
saveEditorAsSVG={() => SaveEditorAsSVG()}
|
||||||
loadState={(move) => setHistoryCurrentStep(move)}
|
loadState={(move) => setHistoryCurrentStep(move)}
|
||||||
replaceContainer ={replaceContainer} setReplaceContainer={setReplaceContainer}/>
|
setReplaceContainer={setReplaceContainer}
|
||||||
|
/>
|
||||||
<Menu
|
<Menu
|
||||||
getListener={() => editorRef.current}
|
getListener={() => editorRef.current}
|
||||||
configuration={configuration}
|
configuration={configuration}
|
||||||
|
|
|
@ -22,6 +22,7 @@ import { Dispatch } from 'react';
|
||||||
|
|
||||||
export interface IUIProps {
|
export interface IUIProps {
|
||||||
editorState: IEditorState
|
editorState: IEditorState
|
||||||
|
replaceContainer: IReplaceContainer
|
||||||
selectContainer: (containerId: string) => void
|
selectContainer: (containerId: string) => void
|
||||||
deleteContainer: (containerId: string) => void
|
deleteContainer: (containerId: string) => void
|
||||||
onPropertyChange: (key: string, value: string | number | boolean | number[], type?: PropertyType) => void
|
onPropertyChange: (key: string, value: string | number | boolean | number[], type?: PropertyType) => void
|
||||||
|
@ -34,7 +35,6 @@ export interface IUIProps {
|
||||||
saveEditorAsJSON: () => void
|
saveEditorAsJSON: () => void
|
||||||
saveEditorAsSVG: () => void
|
saveEditorAsSVG: () => void
|
||||||
loadState: (move: number) => void
|
loadState: (move: number) => void
|
||||||
replaceContainer: IReplaceContainer
|
|
||||||
setReplaceContainer: Dispatch<React.SetStateAction<IReplaceContainer>>
|
setReplaceContainer: Dispatch<React.SetStateAction<IReplaceContainer>>
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue