@antv/l7-layers 2.20.10 → 2.20.11
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/es/raster/index.js
CHANGED
|
@@ -125,13 +125,13 @@ var RasterModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
125
125
|
key: "buildModels",
|
|
126
126
|
value: function () {
|
|
127
127
|
var _buildModels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
128
|
-
var source, createTexture2D, parserDataItem, _yield$this$getRaster, data, width, height, model;
|
|
128
|
+
var source, _this$rendererService, createTexture2D, queryVerdorInfo, parserDataItem, _yield$this$getRaster, data, width, height, model;
|
|
129
129
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
130
130
|
while (1) switch (_context3.prev = _context3.next) {
|
|
131
131
|
case 0:
|
|
132
132
|
this.initUniformsBuffer();
|
|
133
133
|
source = this.layer.getSource();
|
|
134
|
-
|
|
134
|
+
_this$rendererService = this.rendererService, createTexture2D = _this$rendererService.createTexture2D, queryVerdorInfo = _this$rendererService.queryVerdorInfo;
|
|
135
135
|
parserDataItem = source.data.dataArray[0];
|
|
136
136
|
_context3.next = 6;
|
|
137
137
|
return this.getRasterData(parserDataItem);
|
|
@@ -141,13 +141,16 @@ var RasterModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
141
141
|
width = _yield$this$getRaster.width;
|
|
142
142
|
height = _yield$this$getRaster.height;
|
|
143
143
|
this.texture = createTexture2D({
|
|
144
|
-
|
|
144
|
+
// @ts-ignore
|
|
145
|
+
data: new Float32Array(data),
|
|
145
146
|
width: width,
|
|
146
147
|
height: height,
|
|
147
|
-
|
|
148
|
+
/**
|
|
149
|
+
* WebGL1 allow the combination of gl.LUMINANCE & gl.FLOAT with OES_texture_float
|
|
150
|
+
*/
|
|
151
|
+
format: queryVerdorInfo() === 'WebGL1' ? gl.LUMINANCE : gl.RED,
|
|
148
152
|
type: gl.FLOAT,
|
|
149
153
|
alignment: 1
|
|
150
|
-
// aniso: 4,
|
|
151
154
|
});
|
|
152
155
|
_context3.next = 13;
|
|
153
156
|
return this.layer.buildLayerModel({
|
package/lib/raster/index.js
CHANGED
|
@@ -132,13 +132,13 @@ var RasterModel = exports.default = /*#__PURE__*/function (_BaseModel) {
|
|
|
132
132
|
key: "buildModels",
|
|
133
133
|
value: function () {
|
|
134
134
|
var _buildModels = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
135
|
-
var source, createTexture2D, parserDataItem, _yield$this$getRaster, data, width, height, model;
|
|
135
|
+
var source, _this$rendererService, createTexture2D, queryVerdorInfo, parserDataItem, _yield$this$getRaster, data, width, height, model;
|
|
136
136
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
137
137
|
while (1) switch (_context3.prev = _context3.next) {
|
|
138
138
|
case 0:
|
|
139
139
|
this.initUniformsBuffer();
|
|
140
140
|
source = this.layer.getSource();
|
|
141
|
-
|
|
141
|
+
_this$rendererService = this.rendererService, createTexture2D = _this$rendererService.createTexture2D, queryVerdorInfo = _this$rendererService.queryVerdorInfo;
|
|
142
142
|
parserDataItem = source.data.dataArray[0];
|
|
143
143
|
_context3.next = 6;
|
|
144
144
|
return this.getRasterData(parserDataItem);
|
|
@@ -148,13 +148,16 @@ var RasterModel = exports.default = /*#__PURE__*/function (_BaseModel) {
|
|
|
148
148
|
width = _yield$this$getRaster.width;
|
|
149
149
|
height = _yield$this$getRaster.height;
|
|
150
150
|
this.texture = createTexture2D({
|
|
151
|
-
|
|
151
|
+
// @ts-ignore
|
|
152
|
+
data: new Float32Array(data),
|
|
152
153
|
width: width,
|
|
153
154
|
height: height,
|
|
154
|
-
|
|
155
|
+
/**
|
|
156
|
+
* WebGL1 allow the combination of gl.LUMINANCE & gl.FLOAT with OES_texture_float
|
|
157
|
+
*/
|
|
158
|
+
format: queryVerdorInfo() === 'WebGL1' ? _l7Core.gl.LUMINANCE : _l7Core.gl.RED,
|
|
155
159
|
type: _l7Core.gl.FLOAT,
|
|
156
160
|
alignment: 1
|
|
157
|
-
// aniso: 4,
|
|
158
161
|
});
|
|
159
162
|
_context3.next = 13;
|
|
160
163
|
return this.layer.buildLayerModel({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-layers",
|
|
3
|
-
"version": "2.20.
|
|
3
|
+
"version": "2.20.11",
|
|
4
4
|
"description": "L7's collection of built-in layers",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"license": "ISC",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@antv/async-hook": "^2.2.9",
|
|
30
|
-
"@antv/l7-core": "2.20.
|
|
31
|
-
"@antv/l7-maps": "2.20.
|
|
32
|
-
"@antv/l7-source": "2.20.
|
|
33
|
-
"@antv/l7-utils": "2.20.
|
|
30
|
+
"@antv/l7-core": "2.20.11",
|
|
31
|
+
"@antv/l7-maps": "2.20.11",
|
|
32
|
+
"@antv/l7-source": "2.20.11",
|
|
33
|
+
"@antv/l7-utils": "2.20.11",
|
|
34
34
|
"@babel/runtime": "^7.7.7",
|
|
35
35
|
"@mapbox/martini": "^0.2.0",
|
|
36
36
|
"@turf/clone": "^6.5.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"reflect-metadata": "^0.1.13"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@antv/l7-test-utils": "2.20.
|
|
55
|
+
"@antv/l7-test-utils": "2.20.11",
|
|
56
56
|
"@types/d3-array": "^2.0.0",
|
|
57
57
|
"@types/d3-color": "^1.2.2",
|
|
58
58
|
"@types/d3-interpolate": "1.1.6",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@types/gl-matrix": "^2.4.5",
|
|
62
62
|
"@types/lodash": "^4.14.138"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "40b9c778934bbcef548f1060bddf6de988b75c00",
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
}
|