Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/18 #20

Merged
merged 10 commits into from
Aug 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions dist/meta-diagram.cjs.development.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/meta-diagram.cjs.development.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/meta-diagram.cjs.production.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/meta-diagram.cjs.production.min.js.map

Large diffs are not rendered by default.

15 changes: 9 additions & 6 deletions dist/meta-diagram.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/meta-diagram.esm.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.1.1",
"version": "0.1.3",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions src/react-diagrams/MetaLinkFactory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export class MetaLinkFactory extends DefaultLinkFactory {
return (
// @ts-ignore
<ReactComponentType
key={`link-factory-${model.getOptions().id}`}
engine={this.engine}
model={model}
path={path}
Expand Down
10 changes: 8 additions & 2 deletions src/react-diagrams/MetaNodeFactory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,14 @@ export class MetaNodeFactory extends AbstractReactFactory {
const ReactComponentType = this.componentsMap.get(
event.model.options.shape
);
// @ts-ignore
return <ReactComponentType engine={this.engine} model={event.model} />;
return (
// @ts-ignore
<ReactComponentType
key={`node-factory-${event.model.getOptions().id}`}
engine={this.engine}
model={event.model}
/>
);
}
// TODO: Generate default node instead
return <UnknownTypeWidget />;
Expand Down