@antv/l7-renderer 2.10.6 → 2.10.7
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.
|
@@ -8,7 +8,7 @@ export default class ReglTexture2D implements ITexture2D {
|
|
|
8
8
|
private texture;
|
|
9
9
|
private width;
|
|
10
10
|
private height;
|
|
11
|
-
private
|
|
11
|
+
private isDestroy;
|
|
12
12
|
constructor(reGl: regl.Regl, options: ITexture2DInitializationOptions);
|
|
13
13
|
get(): regl.Texture2D;
|
|
14
14
|
update(props?: regl.Texture2DOptions): void;
|
package/es/regl/ReglTexture2D.js
CHANGED
|
@@ -12,7 +12,7 @@ var ReglTexture2D = /*#__PURE__*/function () {
|
|
|
12
12
|
function ReglTexture2D(reGl, options) {
|
|
13
13
|
_classCallCheck(this, ReglTexture2D);
|
|
14
14
|
|
|
15
|
-
_defineProperty(this, "
|
|
15
|
+
_defineProperty(this, "isDestroy", false);
|
|
16
16
|
|
|
17
17
|
var data = options.data,
|
|
18
18
|
_options$type = options.type,
|
|
@@ -114,13 +114,13 @@ var ReglTexture2D = /*#__PURE__*/function () {
|
|
|
114
114
|
}, {
|
|
115
115
|
key: "destroy",
|
|
116
116
|
value: function destroy() {
|
|
117
|
-
if (!this.
|
|
117
|
+
if (!this.isDestroy) {
|
|
118
118
|
var _this$texture;
|
|
119
119
|
|
|
120
120
|
(_this$texture = this.texture) === null || _this$texture === void 0 ? void 0 : _this$texture.destroy();
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
this.
|
|
123
|
+
this.isDestroy = true;
|
|
124
124
|
}
|
|
125
125
|
}]);
|
|
126
126
|
|
|
@@ -26,7 +26,7 @@ var import_l7_core = require("@antv/l7-core");
|
|
|
26
26
|
var import_constants = require("./constants");
|
|
27
27
|
var ReglTexture2D = class {
|
|
28
28
|
constructor(reGl, options) {
|
|
29
|
-
this.
|
|
29
|
+
this.isDestroy = false;
|
|
30
30
|
const {
|
|
31
31
|
data,
|
|
32
32
|
type = import_l7_core.gl.UNSIGNED_BYTE,
|
|
@@ -93,10 +93,10 @@ var ReglTexture2D = class {
|
|
|
93
93
|
}
|
|
94
94
|
destroy() {
|
|
95
95
|
var _a;
|
|
96
|
-
if (!this.
|
|
96
|
+
if (!this.isDestroy) {
|
|
97
97
|
(_a = this.texture) == null ? void 0 : _a.destroy();
|
|
98
98
|
}
|
|
99
|
-
this.
|
|
99
|
+
this.isDestroy = true;
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
102
|
// Annotate the CommonJS export names for ESM import in node:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-renderer",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -25,19 +25,19 @@
|
|
|
25
25
|
"author": "xiaoiver",
|
|
26
26
|
"license": "ISC",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@antv/l7-test-utils": "2.10.
|
|
28
|
+
"@antv/l7-test-utils": "2.10.7",
|
|
29
29
|
"gl": "^5.0.3"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@antv/l7-core": "2.10.
|
|
33
|
-
"@antv/l7-utils": "2.10.
|
|
32
|
+
"@antv/l7-core": "2.10.7",
|
|
33
|
+
"@antv/l7-utils": "2.10.7",
|
|
34
34
|
"@babel/runtime": "^7.7.7",
|
|
35
35
|
"inversify": "^5.0.1",
|
|
36
36
|
"l7regl": "^0.0.20",
|
|
37
37
|
"lodash": "^4.17.15",
|
|
38
38
|
"reflect-metadata": "^0.1.13"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "99a4fe9b4f36e5f4bdac1294e83ff756e9a974d1",
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
}
|