Closed ychyss closed 1 year ago
This should be fixed in the latest code. Which version are you using?
I‘m using 0.32.0. Maybe it is because of no deletion of handle of positionchange event on #app in Draw.js. When I change layout, LayerGroup just empty the array of layers this.#layers = [];
, without destruction.
I traced this bug and find that:
I change the name of single layergroup to layerGroupSingle
to distinguish with the MPR's layerGroupA
, and add some code in #activateCurrentPositionShapes of Draw.js
#activateCurrentPositionShapes(visible, layerGroup) {
const drawLayer = layerGroup.getActiveDrawLayer();
if (!drawLayer) {
console.log('layerGroup no ActiveDrawLayer: ', layerGroup);
return;
}
const drawController = drawLayer.getDrawController();
// layerGroup.getActiveDrawLayer().getDrawController();
...
then I got:
that means the previous event handle still exists.
This is the same as #1423, no? It should be fixed in 49d58de. Check out if you get the error in the trunk demo viewer.
There are two available demo viewers, the stable and the trunk one. The stable one will, today, use v0.32.0. The trunk one uses the latest code. The links are:
thanks! I see the info in console.. :-)
I'm sorry to bother you, but I forgot to mention this issue earlier.
And may I ask when version 0.33.0 will be released?
This is a warning for when you call getActiveDrawLayer
and there is no active draw layer index, possibly because the layer was deleted (for example via a app.removeDataViewConfig
).
About the release, I'm still fiddling with the add/remove/update data view config, not clear when this will be finished. I'll say not before 1 or 2 months...
oh...it sounds like a big work...good luck~
Closing for now, feel free to comment if you need.
still using
tests/pacs/viewer.js