You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a nice-to-have feature, because every new frontend component needs to have a widget node.
However, it is not working properly in the CAE right now. The code of the init function is executed, but no widget is created.
One possible explanation for this could be, that at the time where the init function is called in the wireframing widget (see https://github.com/rwth-acis/CAE-WireframingEditor/blob/master/src/widget.js#L27), the SyncMeta widgets as the Canvas are not yet fully loaded. Therefore, they do not get the events sent from the wireframing editor (e.g. create new node for widget).
If you wait a few seconds before calling CAELiveMapper.init(editor), it seems to be working fine. This needs to be investigated and tested a bit more.
The text was updated successfully, but these errors were encountered:
The CAELiveMapper on init searches for a node of type Widget in the model (see https://github.com/rwth-acis/CAE-WireframingEditor/blob/master/src/js/mapper/CAELiveMapper.js#L45).
If no widget was found, it tries to create one (see https://github.com/rwth-acis/CAE-WireframingEditor/blob/master/src/js/mapper/CAELiveMapper.js#L89).
This is a nice-to-have feature, because every new frontend component needs to have a widget node.
However, it is not working properly in the CAE right now. The code of the init function is executed, but no widget is created.
One possible explanation for this could be, that at the time where the init function is called in the wireframing widget (see https://github.com/rwth-acis/CAE-WireframingEditor/blob/master/src/widget.js#L27), the SyncMeta widgets as the Canvas are not yet fully loaded. Therefore, they do not get the events sent from the wireframing editor (e.g. create new node for widget).
If you wait a few seconds before calling CAELiveMapper.init(editor), it seems to be working fine. This needs to be investigated and tested a bit more.
The text was updated successfully, but these errors were encountered: