Open AaronLlanos opened 6 years ago
Actually, it's a feature, :). All instances of editor in one page shares one instance of render configuration by default. The following code may help to create an isolated render configuration for a composer widget:
composer.getEditor().setRenderConfigs(new Kekule.Render.Render2DConfigs()); // explicitly set a new render config object
composer.newDoc(); // force the new config to take effect
Description:
Observed Behavior:
Kekule.Composer
on it) with two SKELETAL set editors, by setting the Molecule display type fromSKELETAL
toCONDENSED
the editor updates where the configuration was changed. Now go to a different editor on the page without touching it's display settings and update the molecule (i.e. add a bond). Observe the display to be updated asCONDENSED
as well.Expected Behavior:
CONDENSED
molecule while the second editor to displaySKELETAL
until I update the display settings manually.