@antv/l7-layers 2.21.0 → 2.21.1
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/core/BaseLayer.d.ts +1 -0
- package/es/core/BaseLayer.js +50 -43
- package/es/core/BaseModel.js +0 -2
- package/es/core/LayerPickService.js +0 -1
- package/es/core/shape/Path.js +1 -2
- package/es/core/shape/extrude.js +0 -1
- package/es/core/triangulation.js +2 -2
- package/es/earth/models/base.js +0 -1
- package/es/heatmap/index.js +0 -1
- package/es/line/models/arc_3d.js +0 -1
- package/es/line/models/line.js +3 -4
- package/es/line/models/wall.js +1 -1
- package/es/line/shaders/line/line_vert.glsl +0 -2
- package/es/line/shaders/wall/wall_vert.glsl +15 -0
- package/es/plugins/DataMappingPlugin.js +0 -2
- package/es/plugins/FeatureScalePlugin.js +1 -1
- package/es/plugins/PixelPickingPlugin.js +2 -3
- package/es/plugins/ShaderUniformPlugin.js +1 -1
- package/es/point/models/fill.js +1 -1
- package/es/polygon/models/fill.js +2 -3
- package/es/polygon/models/index.js +0 -1
- package/es/tile/interaction/getRasterData.js +0 -1
- package/es/utils/blend.js +7 -8
- package/es/utils/polylineNormal.js +0 -1
- package/es/utils/rampcolor_legend.js +1 -2
- package/es/wind/index.js +0 -1
- package/lib/core/BaseLayer.js +50 -43
- package/lib/core/BaseModel.js +0 -2
- package/lib/core/LayerPickService.js +0 -1
- package/lib/core/shape/Path.js +1 -2
- package/lib/core/shape/extrude.js +0 -1
- package/lib/core/triangulation.js +2 -2
- package/lib/earth/models/base.js +0 -1
- package/lib/heatmap/index.js +0 -1
- package/lib/line/models/arc_3d.js +0 -1
- package/lib/line/models/line.js +5 -4
- package/lib/line/models/wall.js +1 -1
- package/lib/line/shaders/line/line_vert.glsl +0 -2
- package/lib/line/shaders/wall/wall_vert.glsl +15 -0
- package/lib/plugins/DataMappingPlugin.js +0 -2
- package/lib/plugins/FeatureScalePlugin.js +1 -1
- package/lib/plugins/PixelPickingPlugin.js +2 -3
- package/lib/plugins/ShaderUniformPlugin.js +1 -1
- package/lib/point/models/fill.js +4 -4
- package/lib/polygon/models/fill.js +1 -2
- package/lib/tile/interaction/getRasterData.js +0 -1
- package/lib/utils/blend.js +7 -8
- package/lib/utils/polylineNormal.js +0 -1
- package/lib/utils/rampcolor_legend.js +1 -2
- package/lib/wind/index.js +0 -1
- package/package.json +7 -7
package/lib/utils/blend.js
CHANGED
|
@@ -7,8 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.BlendTypes = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _l7Core = require("@antv/l7-core");
|
|
10
|
-
var
|
|
11
|
-
var BlendTypes = exports.BlendTypes = (_BlendTypes = {}, (0, _defineProperty2.default)(_BlendTypes, _l7Core.BlendType.additive, {
|
|
10
|
+
var BlendTypes = exports.BlendTypes = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _l7Core.BlendType.additive, {
|
|
12
11
|
enable: true,
|
|
13
12
|
func: {
|
|
14
13
|
srcRGB: _l7Core.gl.ONE,
|
|
@@ -16,9 +15,9 @@ var BlendTypes = exports.BlendTypes = (_BlendTypes = {}, (0, _defineProperty2.de
|
|
|
16
15
|
srcAlpha: 1,
|
|
17
16
|
dstAlpha: 1
|
|
18
17
|
}
|
|
19
|
-
}),
|
|
18
|
+
}), _l7Core.BlendType.none, {
|
|
20
19
|
enable: false
|
|
21
|
-
}),
|
|
20
|
+
}), _l7Core.BlendType.normal, {
|
|
22
21
|
enable: true,
|
|
23
22
|
func: {
|
|
24
23
|
srcRGB: _l7Core.gl.SRC_ALPHA,
|
|
@@ -26,7 +25,7 @@ var BlendTypes = exports.BlendTypes = (_BlendTypes = {}, (0, _defineProperty2.de
|
|
|
26
25
|
srcAlpha: 1,
|
|
27
26
|
dstAlpha: 1
|
|
28
27
|
}
|
|
29
|
-
}),
|
|
28
|
+
}), _l7Core.BlendType.subtractive, {
|
|
30
29
|
enable: true,
|
|
31
30
|
func: {
|
|
32
31
|
srcRGB: _l7Core.gl.ONE,
|
|
@@ -38,7 +37,7 @@ var BlendTypes = exports.BlendTypes = (_BlendTypes = {}, (0, _defineProperty2.de
|
|
|
38
37
|
rgb: _l7Core.gl.FUNC_SUBTRACT,
|
|
39
38
|
alpha: _l7Core.gl.FUNC_SUBTRACT
|
|
40
39
|
}
|
|
41
|
-
}),
|
|
40
|
+
}), _l7Core.BlendType.max, {
|
|
42
41
|
enable: true,
|
|
43
42
|
func: {
|
|
44
43
|
srcRGB: _l7Core.gl.ONE,
|
|
@@ -47,7 +46,7 @@ var BlendTypes = exports.BlendTypes = (_BlendTypes = {}, (0, _defineProperty2.de
|
|
|
47
46
|
equation: {
|
|
48
47
|
rgb: _l7Core.gl.MAX_EXT
|
|
49
48
|
}
|
|
50
|
-
}),
|
|
49
|
+
}), _l7Core.BlendType.min, {
|
|
51
50
|
enable: true,
|
|
52
51
|
func: {
|
|
53
52
|
srcRGB: _l7Core.gl.ONE,
|
|
@@ -56,4 +55,4 @@ var BlendTypes = exports.BlendTypes = (_BlendTypes = {}, (0, _defineProperty2.de
|
|
|
56
55
|
equation: {
|
|
57
56
|
rgb: _l7Core.gl.MIN_EXT
|
|
58
57
|
}
|
|
59
|
-
})
|
|
58
|
+
});
|
|
@@ -11,8 +11,7 @@ function rampColor2legend(rampColors, name) {
|
|
|
11
11
|
type: rampColors.type,
|
|
12
12
|
field: 'value',
|
|
13
13
|
items: rampColors.positions.map(function (value, index) {
|
|
14
|
-
|
|
15
|
-
return _ref = {}, (0, _defineProperty2.default)(_ref, name, index >= rampColors.colors.length ? null : rampColors.colors[index]), (0, _defineProperty2.default)(_ref, "value", value), _ref;
|
|
14
|
+
return (0, _defineProperty2.default)((0, _defineProperty2.default)({}, name, index >= rampColors.colors.length ? null : rampColors.colors[index]), "value", value);
|
|
16
15
|
})
|
|
17
16
|
};
|
|
18
17
|
}
|
package/lib/wind/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-layers",
|
|
3
|
-
"version": "2.21.
|
|
3
|
+
"version": "2.21.1",
|
|
4
4
|
"description": "L7's collection of built-in layers",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "xiaoiver",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@antv/async-hook": "^2.2.9",
|
|
30
|
-
"@antv/l7-core": "2.21.
|
|
31
|
-
"@antv/l7-maps": "2.21.
|
|
32
|
-
"@antv/l7-source": "2.21.
|
|
33
|
-
"@antv/l7-utils": "2.21.
|
|
30
|
+
"@antv/l7-core": "2.21.1",
|
|
31
|
+
"@antv/l7-maps": "2.21.1",
|
|
32
|
+
"@antv/l7-source": "2.21.1",
|
|
33
|
+
"@antv/l7-utils": "2.21.1",
|
|
34
34
|
"@babel/runtime": "^7.7.7",
|
|
35
35
|
"@mapbox/martini": "^0.2.0",
|
|
36
36
|
"@turf/clone": "^6.5.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"polyline-miter-util": "^1.0.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@antv/l7-test-utils": "2.21.
|
|
53
|
+
"@antv/l7-test-utils": "2.21.1",
|
|
54
54
|
"@types/d3-array": "^2.0.0",
|
|
55
55
|
"@types/d3-color": "^1.2.2",
|
|
56
56
|
"@types/d3-interpolate": "1.1.6",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "1e0d2e5920f479f77095a2c5eddda8a8d7ac9e0f"
|
|
66
66
|
}
|