@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.esm.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
|
*/
|
|
@@ -7011,7 +7011,8 @@ var CANVAS_Map = new WeakMap();
|
|
|
7011
7011
|
function cleanExistedCanvas(container, canvas, cleanUp) {
|
|
7012
7012
|
if (container) {
|
|
7013
7013
|
var $dom = typeof container === 'string' ? document.getElementById(container) : container;
|
|
7014
|
-
if (CANVAS_Map.has($dom)) CANVAS_Map.get($dom).destroy(cleanUp);
|
|
7014
|
+
if (CANVAS_Map.has($dom)) CANVAS_Map.get($dom).destroy(cleanUp);
|
|
7015
|
+
CANVAS_Map.set($dom, canvas);
|
|
7015
7016
|
}
|
|
7016
7017
|
}
|
|
7017
7018
|
var isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
|