@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.
Files changed (51) hide show
  1. package/es/core/BaseLayer.d.ts +1 -0
  2. package/es/core/BaseLayer.js +50 -43
  3. package/es/core/BaseModel.js +0 -2
  4. package/es/core/LayerPickService.js +0 -1
  5. package/es/core/shape/Path.js +1 -2
  6. package/es/core/shape/extrude.js +0 -1
  7. package/es/core/triangulation.js +2 -2
  8. package/es/earth/models/base.js +0 -1
  9. package/es/heatmap/index.js +0 -1
  10. package/es/line/models/arc_3d.js +0 -1
  11. package/es/line/models/line.js +3 -4
  12. package/es/line/models/wall.js +1 -1
  13. package/es/line/shaders/line/line_vert.glsl +0 -2
  14. package/es/line/shaders/wall/wall_vert.glsl +15 -0
  15. package/es/plugins/DataMappingPlugin.js +0 -2
  16. package/es/plugins/FeatureScalePlugin.js +1 -1
  17. package/es/plugins/PixelPickingPlugin.js +2 -3
  18. package/es/plugins/ShaderUniformPlugin.js +1 -1
  19. package/es/point/models/fill.js +1 -1
  20. package/es/polygon/models/fill.js +2 -3
  21. package/es/polygon/models/index.js +0 -1
  22. package/es/tile/interaction/getRasterData.js +0 -1
  23. package/es/utils/blend.js +7 -8
  24. package/es/utils/polylineNormal.js +0 -1
  25. package/es/utils/rampcolor_legend.js +1 -2
  26. package/es/wind/index.js +0 -1
  27. package/lib/core/BaseLayer.js +50 -43
  28. package/lib/core/BaseModel.js +0 -2
  29. package/lib/core/LayerPickService.js +0 -1
  30. package/lib/core/shape/Path.js +1 -2
  31. package/lib/core/shape/extrude.js +0 -1
  32. package/lib/core/triangulation.js +2 -2
  33. package/lib/earth/models/base.js +0 -1
  34. package/lib/heatmap/index.js +0 -1
  35. package/lib/line/models/arc_3d.js +0 -1
  36. package/lib/line/models/line.js +5 -4
  37. package/lib/line/models/wall.js +1 -1
  38. package/lib/line/shaders/line/line_vert.glsl +0 -2
  39. package/lib/line/shaders/wall/wall_vert.glsl +15 -0
  40. package/lib/plugins/DataMappingPlugin.js +0 -2
  41. package/lib/plugins/FeatureScalePlugin.js +1 -1
  42. package/lib/plugins/PixelPickingPlugin.js +2 -3
  43. package/lib/plugins/ShaderUniformPlugin.js +1 -1
  44. package/lib/point/models/fill.js +4 -4
  45. package/lib/polygon/models/fill.js +1 -2
  46. package/lib/tile/interaction/getRasterData.js +0 -1
  47. package/lib/utils/blend.js +7 -8
  48. package/lib/utils/polylineNormal.js +0 -1
  49. package/lib/utils/rampcolor_legend.js +1 -2
  50. package/lib/wind/index.js +0 -1
  51. package/package.json +7 -7
@@ -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 _BlendTypes;
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
- }), (0, _defineProperty2.default)(_BlendTypes, _l7Core.BlendType.none, {
18
+ }), _l7Core.BlendType.none, {
20
19
  enable: false
21
- }), (0, _defineProperty2.default)(_BlendTypes, _l7Core.BlendType.normal, {
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
- }), (0, _defineProperty2.default)(_BlendTypes, _l7Core.BlendType.subtractive, {
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
- }), (0, _defineProperty2.default)(_BlendTypes, _l7Core.BlendType.max, {
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
- }), (0, _defineProperty2.default)(_BlendTypes, _l7Core.BlendType.min, {
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
- }), _BlendTypes);
58
+ });
@@ -185,7 +185,6 @@ function _default(points, closed, indexOffset) {
185
185
  miters[_i], totalDistance // dash
186
186
  );
187
187
  }
188
-
189
188
  return {
190
189
  normals: out,
191
190
  attrIndex: attrIndex,
@@ -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
- var _ref;
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
@@ -61,7 +61,6 @@ var WindLayer = exports.default = /*#__PURE__*/function (_BaseLayer) {
61
61
  if (this.layerModel) {
62
62
  this.layerModel.render(options); // 独立的渲染流程
63
63
  }
64
-
65
64
  return this;
66
65
  }
67
66
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/l7-layers",
3
- "version": "2.21.0",
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.0",
31
- "@antv/l7-maps": "2.21.0",
32
- "@antv/l7-source": "2.21.0",
33
- "@antv/l7-utils": "2.21.0",
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.0",
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": "7fa1b00b5262c98bb4cceef4eaf87a7b10af7e29"
65
+ "gitHead": "1e0d2e5920f479f77095a2c5eddda8a8d7ac9e0f"
66
66
  }