withEditorContext
This commit is contained in:
1 parent
30a49ed5d6
commit
6fc77ad797
3 files changed
+55
-47
No files matched your search
@@ -1,16 +1,20 @@
|
||||
import * as React from 'react';
|
||||
import GGEditor, { Mind, RegisterNode } from 'gg-editor';
|
||||
import { MindData } from 'gg-editor/lib/common/interfaces';
|
||||
import GGEditor, { Mind, RegisterNode, withEditorContext } from 'gg-editor';
|
||||
import { Row, Col } from 'antd';
|
||||
import './Editor.css';
|
||||
import NodePanel from './NodePanel';
|
||||
import BehaviorTree from './BehaviorTree';
|
||||
|
||||
import './Editor.css';
|
||||
|
||||
export interface EditorProps {
|
||||
|
||||
}
|
||||
|
||||
export default class Editor extends React.Component<EditorProps> {
|
||||
componentDidMount() {
|
||||
console.log("props", this.props);
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<GGEditor className="editor">
|
||||
@@ -22,16 +26,7 @@ export default class Editor extends React.Component<EditorProps> {
|
||||
<NodePanel />
|
||||
</Col>
|
||||
</Row>
|
||||
{/* <MindContextMenu />
|
||||
<MindCopy />
|
||||
<MindPaste />
|
||||
<MindSave />
|
||||
<RegisterBehaviour name="dblclickItemEditLabel" behaviour={() => { }} /> */}
|
||||
</GGEditor>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function getExclamationMarks(numChars: number) {
|
||||
return Array(numChars + 1).join('!');
|
||||
}
|
||||
Reference in new issue
Block a user