@antv/l7-layers 2.10.2 → 2.10.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/es/Geometry/index.js +8 -8
- package/es/Geometry/models/billboard.js +9 -9
- package/es/Geometry/models/plane.js +10 -10
- package/es/Geometry/models/sprite.js +10 -10
- package/es/canvas/index.js +8 -8
- package/es/canvas/models/canvas.js +9 -9
- package/es/citybuliding/building.js +8 -8
- package/es/citybuliding/models/build.js +7 -7
- package/es/core/BaseLayer.js +37 -46
- package/es/core/BaseModel.js +8 -8
- package/es/core/LayerPickService.js +4 -4
- package/es/core/shape/Path.js +1 -1
- package/es/core/shape/extrude.js +1 -1
- package/es/core/triangulation.js +2 -2
- package/es/earth/index.js +8 -8
- package/es/earth/models/atmosphere.js +6 -6
- package/es/earth/models/base.js +8 -8
- package/es/earth/models/bloomsphere.js +6 -6
- package/es/earth/utils.js +1 -1
- package/es/heatmap/index.js +8 -8
- package/es/heatmap/models/grid.js +6 -6
- package/es/heatmap/models/grid3d.js +6 -6
- package/es/heatmap/models/heatmap.js +8 -8
- package/es/heatmap/models/hexagon.js +6 -6
- package/es/image/index.js +8 -8
- package/es/image/models/dataImage.js +6 -6
- package/es/image/models/image.js +6 -6
- package/es/image/models/tileDataImage.js +6 -6
- package/es/line/index.js +9 -9
- package/es/line/models/arc.js +8 -8
- package/es/line/models/arc_3d.js +8 -8
- package/es/line/models/earthArc_3d.js +8 -8
- package/es/line/models/great_circle.js +8 -8
- package/es/line/models/half.js +6 -6
- package/es/line/models/line.js +8 -8
- package/es/line/models/linearline.js +8 -8
- package/es/line/models/simpleLine.js +6 -6
- package/es/line/models/simpleTileLine.js +6 -6
- package/es/line/models/tile.js +6 -6
- package/es/line/models/wall.js +8 -8
- package/es/mask/index.js +8 -8
- package/es/mask/models/fill.js +6 -6
- package/es/plugins/DataMappingPlugin.d.ts +0 -2
- package/es/plugins/DataMappingPlugin.js +24 -97
- package/es/plugins/DataSourcePlugin.js +27 -19
- package/es/plugins/FeatureScalePlugin.d.ts +0 -1
- package/es/plugins/FeatureScalePlugin.js +7 -23
- package/es/plugins/LayerAnimateStylePlugin.js +3 -3
- package/es/plugins/LayerModelPlugin.js +4 -7
- package/es/plugins/LayerStylePlugin.js +2 -2
- package/es/plugins/LightingPlugin.js +4 -4
- package/es/plugins/MultiPassRendererPlugin.js +2 -2
- package/es/plugins/PixelPickingPlugin.js +2 -2
- package/es/plugins/RegisterStyleAttributePlugin.js +2 -2
- package/es/plugins/ShaderUniformPlugin.js +6 -6
- package/es/plugins/UpdateModelPlugin.js +5 -2
- package/es/plugins/UpdateStyleAttributePlugin.js +3 -7
- package/es/point/index.js +8 -8
- package/es/point/models/earthExtrude.js +8 -8
- package/es/point/models/earthFill.js +8 -8
- package/es/point/models/extrude.js +8 -8
- package/es/point/models/fill.js +9 -9
- package/es/point/models/fillmage.js +9 -9
- package/es/point/models/image.js +8 -8
- package/es/point/models/normal.js +7 -7
- package/es/point/models/radar.js +9 -9
- package/es/point/models/simplePoint.js +7 -7
- package/es/point/models/text.js +45 -29
- package/es/point/models/tile.js +6 -6
- package/es/point/models/tileText.js +9 -9
- package/es/point/shape/extrude.js +1 -1
- package/es/polygon/index.js +8 -8
- package/es/polygon/models/extrude.js +7 -7
- package/es/polygon/models/fill.js +6 -6
- package/es/polygon/models/ocean.js +7 -7
- package/es/polygon/models/tile.js +6 -6
- package/es/polygon/models/water.js +7 -7
- package/es/raster/index.js +8 -8
- package/es/raster/models/raster.js +6 -6
- package/es/raster/models/rasterRgb.js +8 -8
- package/es/raster/models/rasterTile.js +6 -6
- package/es/raster/raster.js +10 -10
- package/es/tile/interaction/getRasterData.js +1 -1
- package/es/tile/interaction/utils.js +1 -1
- package/es/tile/manager/base.js +5 -5
- package/es/tile/service/TileLayerService.js +5 -5
- package/es/tile/service/TilePickService.d.ts +3 -3
- package/es/tile/service/TilePickService.js +31 -7
- package/es/tile/service/TileSourceService.d.ts +7 -0
- package/es/tile/service/TileSourceService.js +39 -0
- package/es/tile/style/utils.js +1 -1
- package/es/tile/tileFactory/DebugTile.js +6 -6
- package/es/tile/tileFactory/ImageTile.js +7 -7
- package/es/tile/tileFactory/MaskTile.js +8 -8
- package/es/tile/tileFactory/RasterRGBTile.js +7 -7
- package/es/tile/tileFactory/RasterTile.js +7 -7
- package/es/tile/tileFactory/Tile.d.ts +11 -0
- package/es/tile/tileFactory/Tile.js +68 -5
- package/es/tile/tileFactory/VectorTile.d.ts +1 -1
- package/es/tile/tileFactory/VectorTile.js +8 -14
- package/es/tile/tileFactory/layers/RasterDataLayer.js +8 -8
- package/es/tile/tileFactory/layers/TileDebugLayer.js +8 -8
- package/es/tile/tileLayer/BaseLayer.js +4 -4
- package/es/utils/blend.js +1 -1
- package/es/utils/collision-index.js +4 -4
- package/es/utils/extrude_polyline.js +5 -5
- package/es/utils/grid-index.js +3 -3
- package/es/utils/multiPassRender.js +1 -1
- package/es/utils/polylineNormal.js +1 -1
- package/es/utils/simpleLine.js +3 -3
- package/es/wind/index.js +8 -8
- package/es/wind/models/wind.js +11 -8
- package/es/wind/models/windRender.js +3 -3
- package/lib/core/BaseLayer.js +24 -33
- package/lib/plugins/DataMappingPlugin.js +16 -87
- package/lib/plugins/DataSourcePlugin.js +24 -16
- package/lib/plugins/FeatureScalePlugin.js +2 -18
- package/lib/plugins/LayerModelPlugin.js +1 -4
- package/lib/plugins/UpdateModelPlugin.js +3 -0
- package/lib/plugins/UpdateStyleAttributePlugin.js +1 -5
- package/lib/point/models/text.js +36 -20
- package/lib/tile/service/TilePickService.js +29 -3
- package/lib/tile/service/TileSourceService.js +59 -0
- package/lib/tile/tileFactory/MaskTile.js +1 -1
- package/lib/tile/tileFactory/Tile.js +64 -0
- package/lib/tile/tileFactory/VectorTile.js +1 -7
- package/lib/wind/models/wind.js +3 -0
- package/package.json +6 -6
|
@@ -134,13 +134,7 @@ var VectorTile = /*#__PURE__*/function (_Tile) {
|
|
|
134
134
|
_this$parent$getLayer3 = _this$parent$getLayer.featureId,
|
|
135
135
|
featureId = _this$parent$getLayer3 === void 0 ? 'id' : _this$parent$getLayer3;
|
|
136
136
|
|
|
137
|
-
var
|
|
138
|
-
|
|
139
|
-
if (!vectorLayer) {
|
|
140
|
-
return false;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
var features = vectorLayer.features;
|
|
137
|
+
var features = this.getFeatures(sourceLayer);
|
|
144
138
|
return {
|
|
145
139
|
data: {
|
|
146
140
|
type: 'FeatureCollection',
|
package/lib/wind/models/wind.js
CHANGED
|
@@ -335,6 +335,8 @@ var WindModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
335
335
|
var _ref3 = this.layer.getLayerConfig(),
|
|
336
336
|
opacity = _ref3.opacity;
|
|
337
337
|
|
|
338
|
+
this.layerService.beforeRenderData(this.layer);
|
|
339
|
+
this.layer.hooks.beforeRender.call();
|
|
338
340
|
this.layerService.renderMask(this.layer.masks);
|
|
339
341
|
(_this$colorModel = this.colorModel) === null || _this$colorModel === void 0 ? void 0 : _this$colorModel.draw({
|
|
340
342
|
uniforms: {
|
|
@@ -342,6 +344,7 @@ var WindModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
342
344
|
u_texture: this.texture
|
|
343
345
|
}
|
|
344
346
|
});
|
|
347
|
+
this.layer.hooks.afterRender.call();
|
|
345
348
|
}
|
|
346
349
|
}]);
|
|
347
350
|
return WindModel;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-layers",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.3",
|
|
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.10.
|
|
31
|
-
"@antv/l7-maps": "2.10.
|
|
32
|
-
"@antv/l7-source": "2.10.
|
|
33
|
-
"@antv/l7-utils": "2.10.
|
|
30
|
+
"@antv/l7-core": "2.10.3",
|
|
31
|
+
"@antv/l7-maps": "2.10.3",
|
|
32
|
+
"@antv/l7-source": "2.10.3",
|
|
33
|
+
"@antv/l7-utils": "2.10.3",
|
|
34
34
|
"@babel/runtime": "^7.7.7",
|
|
35
35
|
"@mapbox/martini": "^0.2.0",
|
|
36
36
|
"@turf/clone": "^6.5.0",
|
|
@@ -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": "306900eeb5c60dbbee4331a44e42e101b711ba0d",
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
}
|