Merge branch 'master' of gitea.iwm-tuebingen.de:IWMBrowser/iwmlib
# Conflicts: # lib/scatter.js
This commit is contained in:
commit
c55644558a
14
dist/iwmlib.js
vendored
14
dist/iwmlib.js
vendored
@ -3325,9 +3325,17 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
close() {
|
close() {
|
||||||
|
this._callCloseCallbacks();
|
||||||
|
this._removeSelfFromScatterContainer();
|
||||||
|
}
|
||||||
|
|
||||||
|
_callCloseCallbacks() {
|
||||||
if (this.onClose) {
|
if (this.onClose) {
|
||||||
this.onClose.forEach(callback => callback(this));
|
this.onClose.forEach(callback => callback(this));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_removeSelfFromScatterContainer() {
|
||||||
/**
|
/**
|
||||||
Removes self from container when it's closed.
|
Removes self from container when it's closed.
|
||||||
*/
|
*/
|
||||||
@ -3335,7 +3343,6 @@
|
|||||||
this.container.remove(this);
|
this.container.remove(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
gesture(interaction) {
|
gesture(interaction) {
|
||||||
let delta = interaction.delta();
|
let delta = interaction.delta();
|
||||||
@ -3930,7 +3937,10 @@
|
|||||||
* @memberof DOMScatterContainer
|
* @memberof DOMScatterContainer
|
||||||
*/
|
*/
|
||||||
remove(scatter) {
|
remove(scatter) {
|
||||||
this.scatter.delete(scatter.element);
|
const element = scatter.element;
|
||||||
|
if (!this.scatter.has(element)) console.warn(`Try removing element that is not in the scatter.`, element);
|
||||||
|
|
||||||
|
this.scatter.delete(element);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
9
dist/iwmlib.pixi.js
vendored
9
dist/iwmlib.pixi.js
vendored
@ -6771,9 +6771,17 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
close() {
|
close() {
|
||||||
|
this._callCloseCallbacks();
|
||||||
|
this._removeSelfFromScatterContainer();
|
||||||
|
}
|
||||||
|
|
||||||
|
_callCloseCallbacks() {
|
||||||
if (this.onClose) {
|
if (this.onClose) {
|
||||||
this.onClose.forEach(callback => callback(this));
|
this.onClose.forEach(callback => callback(this));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_removeSelfFromScatterContainer() {
|
||||||
/**
|
/**
|
||||||
Removes self from container when it's closed.
|
Removes self from container when it's closed.
|
||||||
*/
|
*/
|
||||||
@ -6781,7 +6789,6 @@
|
|||||||
this.container.remove(this);
|
this.container.remove(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
gesture(interaction) {
|
gesture(interaction) {
|
||||||
let delta = interaction.delta();
|
let delta = interaction.delta();
|
||||||
|
Loading…
Reference in New Issue
Block a user