@antv/g-lite 2.1.2 → 2.1.3
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/index.esm.js +4 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.umd.min.js +4 -4
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/types/utils/canvas.d.ts.map +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @antv/g-lite
|
|
3
3
|
* @description A core module for rendering engine implements DOM API.
|
|
4
|
-
* @version 2.1.
|
|
5
|
-
* @date 10/
|
|
4
|
+
* @version 2.1.3
|
|
5
|
+
* @date 10/24/2024, 7:56:07 AM
|
|
6
6
|
* @author AntVis
|
|
7
7
|
* @docs https://g.antv.antgroup.com/
|
|
8
8
|
*/
|
|
@@ -7032,7 +7032,8 @@ var CANVAS_Map = new WeakMap();
|
|
|
7032
7032
|
function cleanExistedCanvas(container, canvas, cleanUp) {
|
|
7033
7033
|
if (container) {
|
|
7034
7034
|
var $dom = typeof container === 'string' ? document.getElementById(container) : container;
|
|
7035
|
-
if (CANVAS_Map.has($dom)) CANVAS_Map.get($dom).destroy(cleanUp);
|
|
7035
|
+
if (CANVAS_Map.has($dom)) CANVAS_Map.get($dom).destroy(cleanUp);
|
|
7036
|
+
CANVAS_Map.set($dom, canvas);
|
|
7036
7037
|
}
|
|
7037
7038
|
}
|
|
7038
7039
|
var isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
|