@d3p1/img2pxl 1.17.3 → 1.17.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/img2pxl.js +5 -5
- package/dist/img2pxl.js.map +1 -1
- package/dist/img2pxl.umd.cjs +3 -3
- package/dist/img2pxl.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/img2pxl.js
CHANGED
|
@@ -1066,9 +1066,7 @@ class ii {
|
|
|
1066
1066
|
* @type {Function}
|
|
1067
1067
|
*/
|
|
1068
1068
|
a(this, I);
|
|
1069
|
-
l(this, K, i), l(this, q, new Ae(e(this, K).images)), r(this, v, ee).call(this)
|
|
1070
|
-
e(this, q).update() && (this.dispose(), r(this, v, ee).call(this));
|
|
1071
|
-
}), window.addEventListener("resize", e(this, I));
|
|
1069
|
+
l(this, K, i), l(this, q, new Ae(e(this, K).images)), r(this, v, ee).call(this);
|
|
1072
1070
|
}
|
|
1073
1071
|
/**
|
|
1074
1072
|
* Debug
|
|
@@ -1084,7 +1082,7 @@ class ii {
|
|
|
1084
1082
|
* @returns {void}
|
|
1085
1083
|
*/
|
|
1086
1084
|
dispose() {
|
|
1087
|
-
cancelAnimationFrame(e(this, E)), window.removeEventListener("keydown", e(this, J)), window.removeEventListener("resize", e(this, I)), e(this, z).dispose(), e(this, P).dispose(), this.rendererManager.dispose(), this.debugManager.dispose();
|
|
1085
|
+
cancelAnimationFrame(e(this, E)), window.removeEventListener("keydown", e(this, J)), window.removeEventListener("resize", e(this, I)), e(this, z).dispose(), e(this, P).dispose(), this.rendererManager.dispose(), this.debugManager.dispose(), this.debugManager.element.remove();
|
|
1088
1086
|
}
|
|
1089
1087
|
}
|
|
1090
1088
|
P = new WeakMap(), q = new WeakMap(), z = new WeakMap(), K = new WeakMap(), D = new WeakMap(), E = new WeakMap(), J = new WeakMap(), I = new WeakMap(), v = new WeakSet(), /**
|
|
@@ -1112,7 +1110,9 @@ ee = function() {
|
|
|
1112
1110
|
this.rendererManager = new Ce(
|
|
1113
1111
|
e(this, q).currentImage.width,
|
|
1114
1112
|
e(this, q).currentImage.height
|
|
1115
|
-
), l(this, z, new Me()), r(this, v, xe).call(this), r(this, v, Ne).call(this), e(this, K).containerSelector && r(this, v, Le).call(this, e(this, K).containerSelector),
|
|
1113
|
+
), l(this, z, new Me()), r(this, v, xe).call(this), r(this, v, Ne).call(this), e(this, K).containerSelector && r(this, v, Le).call(this, e(this, K).containerSelector), l(this, I, () => {
|
|
1114
|
+
e(this, q).update() && (this.dispose(), r(this, v, ee).call(this));
|
|
1115
|
+
}), window.addEventListener("resize", e(this, I)), r(this, v, $).call(this);
|
|
1116
1116
|
}, /**
|
|
1117
1117
|
* Init app
|
|
1118
1118
|
*
|