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

Bind EntityManager to window #171

Merged
merged 3 commits into from
Oct 20, 2023
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
3 changes: 3 additions & 0 deletions example-app/src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ declare global {
_addIwcIntentListener: (f: any) => void;
_reloadPage: () => void;
spaceTitle: string;
syncmeta: {
EntityManagerInstance: any;
};
}
}
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@rwth-acis/syncmeta-widgets",
"description": "SyncMeta is a near real-time collaborative modeling framework. This package only contains the used widgets. If you want to use the SyncMeta app in a docker container, see https://github.com/rwth-acis/syncmeta.",
"version": "2.4.8",
"version": "2.4.9",
"author": {
"name": "ACIS Group, RWTH Aachen",
"email": "acis@dbis.rwth-aachen.de"
Expand Down
1 change: 1 addition & 0 deletions src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ declare global {
caeFrames: any;
_iwc_instance_: any;
canvas: any;
syncmeta: any;
_addIwcIntentListener: (f: any) => void;
_reloadPage: () => void;
jsPlumbInstance: JsPlumbInstance;
Expand Down
1 change: 1 addition & 0 deletions src/widgets/partials/main.widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ export class CanvasWidget extends SyncMetaWidget(
this.yjsInstance
.connect()
.then((y: YDoc) => {
window.syncmeta = { EntityManagerInstance: EntityManager };
console.info(
"CANVAS: Yjs Initialized successfully in room " +
this.yjsSpaceTitle +
Expand Down