2022-04-12 12:40:14 -03:00
..
2022-04-11 09:00:56 -03:00
2022-03-13 23:26:24 -03:00
2022-04-12 12:40:14 -03:00
2022-04-05 13:27:21 -03:00
2022-01-25 18:10:40 +00:00
2022-01-25 18:10:40 +00:00
2022-04-07 14:06:26 -03:00
2022-03-23 23:33:44 -03:00
2022-02-20 21:41:59 -08:00
2022-01-31 21:07:59 +00:00

Editor

React Component for the wisemapping editor.

Usage

This is a work in progress and for now mindplot needs to be instantiated using the initCallback prop. Check test/playground/map-render for some usage examples.

import Editor from `@wisemapping/editor`;

ReactDOM.render(
    <Editor 
        mapId={1}
        readOnlyMode={false}
        locale="en"
        onAction={(action) => console.log('action called:', action)}
        initCallback={initialization}
    />,
    document.getElementById('root'),
);

i18n

Messages are translated in the lang folder, and then compiled to src/compiled-lang using the following command:

yarn compile lang/de.json --ast --out-file src/compiled-lang/de.json