@antv/l7-layers 2.19.11 → 2.20.0

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 (173) hide show
  1. package/es/canvas/models/canvas.js +2 -2
  2. package/es/core/BaseLayer.d.ts +1 -1
  3. package/es/core/BaseLayer.js +18 -11
  4. package/es/core/BaseModel.d.ts +3 -1
  5. package/es/core/BaseModel.js +28 -4
  6. package/es/core/CommonStyleAttribute.d.ts +15 -0
  7. package/es/core/CommonStyleAttribute.js +21 -0
  8. package/es/core/TextureService.js +2 -2
  9. package/es/earth/index.js +1 -1
  10. package/es/geometry/index.js +1 -1
  11. package/es/geometry/models/billboard.js +1 -1
  12. package/es/geometry/models/plane.js +2 -2
  13. package/es/geometry/models/sprite.js +2 -2
  14. package/es/heatmap/index.js +1 -1
  15. package/es/heatmap/models/heatmap.js +4 -4
  16. package/es/image/models/image.js +1 -1
  17. package/es/line/index.js +1 -1
  18. package/es/line/models/arc.js +1 -1
  19. package/es/line/models/arc_3d.js +1 -1
  20. package/es/line/models/earthArc_3d.js +1 -1
  21. package/es/line/models/great_circle.js +1 -1
  22. package/es/line/models/line.js +1 -1
  23. package/es/line/models/linearline.js +1 -1
  24. package/es/line/models/wall.js +1 -1
  25. package/es/plugins/DataMappingPlugin.js +1 -1
  26. package/es/plugins/PixelPickingPlugin.d.ts +4 -1
  27. package/es/plugins/PixelPickingPlugin.js +91 -22
  28. package/es/plugins/RegisterStyleAttributePlugin.d.ts +0 -1
  29. package/es/plugins/RegisterStyleAttributePlugin.js +4 -22
  30. package/es/plugins/ShaderUniformPlugin.d.ts +2 -0
  31. package/es/plugins/ShaderUniformPlugin.js +74 -6
  32. package/es/point/index.js +1 -1
  33. package/es/point/models/fill.js +31 -7
  34. package/es/point/models/fillmage.js +1 -1
  35. package/es/point/models/image.js +1 -1
  36. package/es/point/models/normal.js +30 -12
  37. package/es/point/models/text.js +1 -1
  38. package/es/point/shaders/fill_frag.glsl +20 -14
  39. package/es/point/shaders/fill_vert.glsl +19 -18
  40. package/es/point/shaders/normal_frag.glsl +4 -3
  41. package/es/point/shaders/normal_vert.glsl +12 -11
  42. package/es/polygon/index.js +1 -1
  43. package/es/polygon/models/extrude.js +1 -1
  44. package/es/polygon/models/extrusion.js +1 -1
  45. package/es/polygon/models/ocean.js +3 -3
  46. package/es/polygon/models/water.js +1 -1
  47. package/es/raster/models/raster.js +2 -2
  48. package/es/raster/models/rasterRgb.js +1 -1
  49. package/es/raster/models/rasterTerrainRgb.js +1 -1
  50. package/es/tile/core/BaseLayer.js +4 -4
  51. package/es/tile/interaction/getRasterData.js +4 -4
  52. package/es/tile/service/TileLayerService.js +4 -4
  53. package/es/tile/service/TilePickService.js +3 -3
  54. package/es/tile/tile/Tile.d.ts +3 -0
  55. package/es/tile/tile/Tile.js +2 -2
  56. package/es/wind/models/wind.js +5 -6
  57. package/lib/canvas/index.js +2 -3
  58. package/lib/canvas/models/canvas.js +4 -5
  59. package/lib/canvas/models/index.js +1 -2
  60. package/lib/citybuliding/building.js +2 -3
  61. package/lib/citybuliding/models/build.js +2 -3
  62. package/lib/core/BaseLayer.js +19 -13
  63. package/lib/core/BaseModel.js +30 -7
  64. package/lib/core/CommonStyleAttribute.js +22 -0
  65. package/lib/core/LayerPickService.js +2 -3
  66. package/lib/core/TextureService.js +4 -5
  67. package/lib/core/constant.js +3 -5
  68. package/lib/core/interface.js +6 -11
  69. package/lib/core/schema.js +2 -3
  70. package/lib/core/shape/Path.js +3 -6
  71. package/lib/core/triangulation.js +2 -2
  72. package/lib/earth/index.js +3 -4
  73. package/lib/earth/models/atmosphere.js +2 -3
  74. package/lib/earth/models/base.js +2 -3
  75. package/lib/earth/models/bloomsphere.js +2 -3
  76. package/lib/earth/utils.js +3 -6
  77. package/lib/geometry/index.js +3 -4
  78. package/lib/geometry/models/billboard.js +3 -4
  79. package/lib/geometry/models/index.js +1 -2
  80. package/lib/geometry/models/plane.js +4 -5
  81. package/lib/geometry/models/sprite.js +4 -5
  82. package/lib/heatmap/index.js +3 -4
  83. package/lib/heatmap/models/grid.js +2 -3
  84. package/lib/heatmap/models/grid3d.js +2 -3
  85. package/lib/heatmap/models/heatmap.js +6 -7
  86. package/lib/heatmap/models/hexagon.js +2 -3
  87. package/lib/heatmap/models/index.js +1 -2
  88. package/lib/image/index.js +2 -3
  89. package/lib/image/models/image.js +3 -4
  90. package/lib/image/models/index.js +1 -2
  91. package/lib/line/index.js +3 -4
  92. package/lib/line/models/arc.js +3 -4
  93. package/lib/line/models/arc_3d.js +3 -4
  94. package/lib/line/models/earthArc_3d.js +3 -4
  95. package/lib/line/models/flow.js +2 -3
  96. package/lib/line/models/great_circle.js +3 -4
  97. package/lib/line/models/index.js +1 -2
  98. package/lib/line/models/line.js +3 -4
  99. package/lib/line/models/linearline.js +3 -4
  100. package/lib/line/models/simpleLine.js +2 -3
  101. package/lib/line/models/wall.js +3 -4
  102. package/lib/mask/index.js +2 -3
  103. package/lib/mask/models/fill.js +2 -3
  104. package/lib/mask/models/index.js +1 -2
  105. package/lib/plugins/DataMappingPlugin.js +3 -4
  106. package/lib/plugins/DataSourcePlugin.js +2 -3
  107. package/lib/plugins/FeatureScalePlugin.js +4 -5
  108. package/lib/plugins/LayerAnimateStylePlugin.js +2 -3
  109. package/lib/plugins/LayerMaskPlugin.js +2 -3
  110. package/lib/plugins/LayerModelPlugin.js +2 -3
  111. package/lib/plugins/LayerStylePlugin.js +2 -3
  112. package/lib/plugins/LightingPlugin.js +2 -3
  113. package/lib/plugins/MultiPassRendererPlugin.js +2 -3
  114. package/lib/plugins/PixelPickingPlugin.js +93 -25
  115. package/lib/plugins/RegisterStyleAttributePlugin.js +6 -25
  116. package/lib/plugins/ShaderUniformPlugin.js +75 -8
  117. package/lib/plugins/UpdateModelPlugin.js +2 -3
  118. package/lib/plugins/UpdateStyleAttributePlugin.js +2 -3
  119. package/lib/point/index.js +3 -4
  120. package/lib/point/models/billboard_point.js +2 -3
  121. package/lib/point/models/earthExtrude.js +2 -3
  122. package/lib/point/models/earthFill.js +2 -3
  123. package/lib/point/models/extrude.js +2 -3
  124. package/lib/point/models/fill.js +33 -10
  125. package/lib/point/models/fillmage.js +3 -4
  126. package/lib/point/models/image.js +3 -4
  127. package/lib/point/models/index.js +1 -2
  128. package/lib/point/models/normal.js +32 -15
  129. package/lib/point/models/radar.js +2 -3
  130. package/lib/point/models/text.js +3 -4
  131. package/lib/point/shaders/fill_frag.glsl +20 -14
  132. package/lib/point/shaders/fill_vert.glsl +19 -18
  133. package/lib/point/shaders/normal_frag.glsl +4 -3
  134. package/lib/point/shaders/normal_vert.glsl +12 -11
  135. package/lib/polygon/index.js +3 -4
  136. package/lib/polygon/models/extrude.js +3 -4
  137. package/lib/polygon/models/extrusion.js +3 -4
  138. package/lib/polygon/models/fill.js +2 -3
  139. package/lib/polygon/models/index.js +1 -2
  140. package/lib/polygon/models/ocean.js +5 -6
  141. package/lib/polygon/models/water.js +3 -4
  142. package/lib/raster/index.js +2 -3
  143. package/lib/raster/models/index.js +1 -2
  144. package/lib/raster/models/raster.js +4 -5
  145. package/lib/raster/models/rasterRgb.js +3 -4
  146. package/lib/raster/models/rasterTerrainRgb.js +3 -4
  147. package/lib/tile/core/BaseLayer.js +6 -7
  148. package/lib/tile/core/TileDebugLayer.js +2 -3
  149. package/lib/tile/interaction/getRasterData.js +4 -4
  150. package/lib/tile/service/TileLayerService.js +6 -7
  151. package/lib/tile/service/TilePickService.js +5 -6
  152. package/lib/tile/service/TileSourceService.js +4 -5
  153. package/lib/tile/tile/DebugTile.js +2 -3
  154. package/lib/tile/tile/ImageTile.js +2 -3
  155. package/lib/tile/tile/MaskTile.js +2 -3
  156. package/lib/tile/tile/RasterRGBTile.js +2 -3
  157. package/lib/tile/tile/RasterTerrainRGBTile.js +2 -3
  158. package/lib/tile/tile/RasterTile.js +2 -3
  159. package/lib/tile/tile/Tile.js +4 -5
  160. package/lib/tile/tile/VectorTile.js +2 -3
  161. package/lib/tile/utils/constants.js +2 -3
  162. package/lib/tile/utils/utils.js +1 -2
  163. package/lib/utils/blend.js +2 -3
  164. package/lib/utils/collision-index.js +2 -3
  165. package/lib/utils/extrude_polyline.js +2 -3
  166. package/lib/utils/grid-index.js +1 -2
  167. package/lib/utils/simpleLine.js +2 -3
  168. package/lib/wind/index.js +2 -3
  169. package/lib/wind/models/index.js +1 -2
  170. package/lib/wind/models/wind.js +7 -9
  171. package/lib/wind/models/windRender.js +4 -5
  172. package/lib/wind/models/windShader.js +6 -12
  173. package/package.json +7 -7
@@ -1,16 +1,22 @@
1
- uniform float u_additive;
2
- uniform float u_stroke_opacity : 1;
3
- uniform float u_stroke_width : 2;
4
1
 
5
- varying vec4 v_data;
6
- varying vec4 v_color;
7
- varying float v_radius;
8
- varying vec4 v_stroke;
2
+ layout(std140) uniform commonUniforms {
3
+ vec3 u_blur_height_fixed;
4
+ float u_stroke_width;
5
+ float u_additive;
6
+ float u_stroke_opacity;
7
+ float u_size_unit;
8
+ };
9
9
 
10
+ in vec4 v_color;
11
+ in vec4 v_stroke;
12
+ in vec4 v_data;
13
+ in float v_radius;
10
14
 
15
+ #pragma include "scene_uniforms"
11
16
  #pragma include "sdf_2d"
12
17
  #pragma include "picking"
13
18
 
19
+ out vec4 outputColor;
14
20
 
15
21
  void main() {
16
22
  int shape = int(floor(v_data.w + 0.5));
@@ -58,20 +64,20 @@ void main() {
58
64
  );
59
65
 
60
66
  if(u_stroke_width < 0.01) {
61
- gl_FragColor = v_color;
67
+ outputColor = v_color;
62
68
  } else {
63
- gl_FragColor = mix(v_color, v_stroke * u_stroke_opacity, color_t);
69
+ outputColor = mix(v_color, v_stroke * u_stroke_opacity, color_t);
64
70
  }
65
71
 
66
72
  if(u_additive > 0.0) {
67
- gl_FragColor *= opacity_t;
68
- gl_FragColor = filterColorAlpha(gl_FragColor, gl_FragColor.a);
73
+ outputColor *= opacity_t;
74
+ outputColor = filterColorAlpha(outputColor, outputColor.a);
69
75
  } else {
70
- gl_FragColor.a *= opacity_t;
71
- gl_FragColor = filterColor(gl_FragColor);
76
+ outputColor.a *= opacity_t;
77
+ outputColor = filterColor(outputColor);
72
78
  }
73
79
  // 作为 mask 模板时需要丢弃透明的像素
74
- if(gl_FragColor.a < 0.01) {
80
+ if(outputColor.a < 0.01) {
75
81
  discard;
76
82
  }
77
83
  }
@@ -1,25 +1,26 @@
1
- attribute vec4 a_Color;
2
- attribute vec3 a_Position;
3
- attribute vec3 a_Extrude;
4
- attribute float a_Size;
5
- attribute float a_Shape;
6
- uniform mat4 u_ModelMatrix;
7
-
8
- uniform int u_size_unit;
9
-
10
- varying vec4 v_data;
11
- varying vec4 v_color;
12
- varying float v_radius;
13
- varying vec4 v_stroke;
14
- uniform float u_stroke_width: 2;
15
- uniform vec3 u_blur_height_fixed: [0, 0, 0];
16
-
1
+ layout(location = 0) in vec3 a_Position;
2
+ layout(location = 1) in vec4 a_Color;
3
+ layout(location = 9) in float a_Size;
4
+ layout(location = 11) in vec3 a_Extrude;
5
+ layout(location = 10) in float a_Shape;
6
+
7
+ layout(std140) uniform commonUniforms {
8
+ vec3 u_blur_height_fixed;
9
+ float u_stroke_width;
10
+ float u_additive;
11
+ float u_stroke_opacity;
12
+ float u_size_unit;
13
+ };
14
+
15
+ out vec4 v_color;
16
+ out vec4 v_stroke;
17
+ out vec4 v_data;
18
+ out float v_radius;
17
19
 
18
20
  #pragma include "projection"
19
21
  #pragma include "picking"
20
22
  #pragma include "rotation_2d"
21
23
 
22
-
23
24
  void main() {
24
25
  // 透明度计算
25
26
  v_stroke = stroke;
@@ -37,7 +38,7 @@ void main() {
37
38
  // unpack color(vec2)
38
39
  v_color = vec4(a_Color.xyz, a_Color.w * opacity);
39
40
 
40
- if(u_size_unit == 1) {
41
+ if(u_size_unit == 1.0) {
41
42
  newSize = newSize * u_PixelsPerMeter.z;
42
43
  }
43
44
 
@@ -1,4 +1,5 @@
1
- varying vec4 v_color;
1
+ in vec4 v_color;
2
+ out vec4 outputColor;
2
3
  void main() {
3
- gl_FragColor = v_color;
4
- }
4
+ outputColor = v_color;
5
+ }
@@ -1,11 +1,12 @@
1
+ layout(location = 0) in vec3 a_Position;
2
+ layout(location = 1) in vec4 a_Color;
3
+ layout(location = 9) in float a_Size;
1
4
 
2
- attribute vec3 a_Position;
3
- uniform mat4 u_ModelMatrix;
5
+ layout(std140) uniform u_Common {
6
+ float u_size_scale;
7
+ };
4
8
 
5
- attribute float a_Size;
6
- attribute vec4 a_Color;
7
-
8
- varying vec4 v_color;
9
+ out vec4 v_color;
9
10
 
10
11
  #pragma include "projection"
11
12
  #pragma include "project"
@@ -13,12 +14,12 @@ varying vec4 v_color;
13
14
  void main() {
14
15
  v_color = vec4(a_Color.xyz, a_Color.w * opacity);
15
16
 
16
- if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x
17
- gl_Position = u_Mvp * vec4(a_Position.xy, a_Position.z, 1.0);
17
+ if (u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x
18
+ gl_Position = u_Mvp * vec4(a_Position, 1.0);
18
19
  } else {
19
- vec4 project_pos = project_position(vec4(a_Position, 1.0)) + vec4(a_Size / 2.,-a_Size /2.,0.,0.);
20
- gl_Position = project_common_position_to_clipspace(vec4(vec2(project_pos.xy),project_pos.z,project_pos.w));
20
+ vec4 project_pos = project_position(vec4(a_Position, 1.0)) + vec4(a_Size / 2., -a_Size /2., 0., 0.);
21
+ gl_Position = project_common_position_to_clipspace(project_pos);
21
22
  }
22
23
 
23
- gl_PointSize = a_Size * 2.0 * u_DevicePixelRatio;
24
+ gl_PointSize = a_Size * u_size_scale * 2.0 * u_DevicePixelRatio;
24
25
  }
@@ -55,7 +55,7 @@ var PolygonLayer = /*#__PURE__*/function (_BaseLayer) {
55
55
  value: function getModelType() {
56
56
  var _shapeAttribute$scale;
57
57
  var shapeAttribute = this.styleAttributeService.getLayerStyleAttribute('shape');
58
- var shape = shapeAttribute === null || shapeAttribute === void 0 ? void 0 : (_shapeAttribute$scale = shapeAttribute.scale) === null || _shapeAttribute$scale === void 0 ? void 0 : _shapeAttribute$scale.field;
58
+ var shape = shapeAttribute === null || shapeAttribute === void 0 || (_shapeAttribute$scale = shapeAttribute.scale) === null || _shapeAttribute$scale === void 0 ? void 0 : _shapeAttribute$scale.field;
59
59
  if (shape === 'fill' || !shape) {
60
60
  return 'fill';
61
61
  } else if (shape === 'extrude') {
@@ -153,7 +153,7 @@ var ExtrudeModel = /*#__PURE__*/function (_BaseModel) {
153
153
  key: "clearModels",
154
154
  value: function clearModels() {
155
155
  var _this$texture;
156
- (_this$texture = this.texture) === null || _this$texture === void 0 ? void 0 : _this$texture.destroy();
156
+ (_this$texture = this.texture) === null || _this$texture === void 0 || _this$texture.destroy();
157
157
  }
158
158
  }, {
159
159
  key: "registerBuiltinAttributes",
@@ -90,7 +90,7 @@ var ExtrusionModel = /*#__PURE__*/function (_BaseModel) {
90
90
  key: "clearModels",
91
91
  value: function clearModels() {
92
92
  var _this$texture;
93
- (_this$texture = this.texture) === null || _this$texture === void 0 ? void 0 : _this$texture.destroy();
93
+ (_this$texture = this.texture) === null || _this$texture === void 0 || _this$texture.destroy();
94
94
  }
95
95
  }, {
96
96
  key: "registerBuiltinAttributes",
@@ -107,9 +107,9 @@ var OceanModel = /*#__PURE__*/function (_BaseModel) {
107
107
  key: "clearModels",
108
108
  value: function clearModels() {
109
109
  var _this$texture, _this$texture2, _this$texture3;
110
- (_this$texture = this.texture1) === null || _this$texture === void 0 ? void 0 : _this$texture.destroy();
111
- (_this$texture2 = this.texture2) === null || _this$texture2 === void 0 ? void 0 : _this$texture2.destroy();
112
- (_this$texture3 = this.texture3) === null || _this$texture3 === void 0 ? void 0 : _this$texture3.destroy();
110
+ (_this$texture = this.texture1) === null || _this$texture === void 0 || _this$texture.destroy();
111
+ (_this$texture2 = this.texture2) === null || _this$texture2 === void 0 || _this$texture2.destroy();
112
+ (_this$texture3 = this.texture3) === null || _this$texture3 === void 0 || _this$texture3.destroy();
113
113
  }
114
114
  }, {
115
115
  key: "registerBuiltinAttributes",
@@ -102,7 +102,7 @@ var WaterModel = /*#__PURE__*/function (_BaseModel) {
102
102
  key: "clearModels",
103
103
  value: function clearModels() {
104
104
  var _this$texture;
105
- (_this$texture = this.texture) === null || _this$texture === void 0 ? void 0 : _this$texture.destroy();
105
+ (_this$texture = this.texture) === null || _this$texture === void 0 || _this$texture.destroy();
106
106
  }
107
107
  }, {
108
108
  key: "registerBuiltinAttributes",
@@ -163,8 +163,8 @@ var RasterModel = /*#__PURE__*/function (_BaseModel) {
163
163
  key: "clearModels",
164
164
  value: function clearModels() {
165
165
  var _this$texture, _this$colorTexture;
166
- (_this$texture = this.texture) === null || _this$texture === void 0 ? void 0 : _this$texture.destroy();
167
- (_this$colorTexture = this.colorTexture) === null || _this$colorTexture === void 0 ? void 0 : _this$colorTexture.destroy();
166
+ (_this$texture = this.texture) === null || _this$texture === void 0 || _this$texture.destroy();
167
+ (_this$colorTexture = this.colorTexture) === null || _this$colorTexture === void 0 || _this$colorTexture.destroy();
168
168
  }
169
169
  }, {
170
170
  key: "registerBuiltinAttributes",
@@ -175,7 +175,7 @@ var RasterModel = /*#__PURE__*/function (_BaseModel) {
175
175
  key: "clearModels",
176
176
  value: function clearModels() {
177
177
  var _this$texture;
178
- (_this$texture = this.texture) === null || _this$texture === void 0 ? void 0 : _this$texture.destroy();
178
+ (_this$texture = this.texture) === null || _this$texture === void 0 || _this$texture.destroy();
179
179
  }
180
180
  }, {
181
181
  key: "registerBuiltinAttributes",
@@ -112,7 +112,7 @@ var RasterTerrainRGB = /*#__PURE__*/function (_BaseModel) {
112
112
  key: "clearModels",
113
113
  value: function clearModels() {
114
114
  var _this$texture;
115
- (_this$texture = this.texture) === null || _this$texture === void 0 ? void 0 : _this$texture.destroy();
115
+ (_this$texture = this.texture) === null || _this$texture === void 0 || _this$texture.destroy();
116
116
  }
117
117
  }, {
118
118
  key: "buildModels",
@@ -49,7 +49,7 @@ var BaseTileLayer = /*#__PURE__*/function () {
49
49
  zoom: zoom,
50
50
  latLonBounds: latLonBounds
51
51
  };
52
- (_this$tilesetManager = _this.tilesetManager) === null || _this$tilesetManager === void 0 ? void 0 : _this$tilesetManager.throttleUpdate(zoom, latLonBounds);
52
+ (_this$tilesetManager = _this.tilesetManager) === null || _this$tilesetManager === void 0 || _this$tilesetManager.throttleUpdate(zoom, latLonBounds);
53
53
  });
54
54
  // 防抖操作
55
55
  _defineProperty(this, "viewchange", debounce(this.mapchange, 24));
@@ -96,7 +96,7 @@ var BaseTileLayer = /*#__PURE__*/function () {
96
96
  var _this$getCurrentView2 = this.getCurrentView(),
97
97
  latLonBounds = _this$getCurrentView2.latLonBounds,
98
98
  zoom = _this$getCurrentView2.zoom;
99
- (_this$tilesetManager2 = this.tilesetManager) === null || _this$tilesetManager2 === void 0 ? void 0 : _this$tilesetManager2.update(zoom, latLonBounds);
99
+ (_this$tilesetManager2 = this.tilesetManager) === null || _this$tilesetManager2 === void 0 || _this$tilesetManager2.update(zoom, latLonBounds);
100
100
  }
101
101
  }, {
102
102
  key: "getCurrentView",
@@ -179,7 +179,7 @@ var BaseTileLayer = /*#__PURE__*/function () {
179
179
  var _this$tilesetManager3;
180
180
  this.mapService.off('zoomend', this.mapchange);
181
181
  this.mapService.off('moveend', this.viewchange);
182
- (_this$tilesetManager3 = this.tilesetManager) === null || _this$tilesetManager3 === void 0 ? void 0 : _this$tilesetManager3.destroy();
182
+ (_this$tilesetManager3 = this.tilesetManager) === null || _this$tilesetManager3 === void 0 || _this$tilesetManager3.destroy();
183
183
  this.tileLayerService.destroy();
184
184
  }
185
185
  // 重新加载
@@ -192,7 +192,7 @@ var BaseTileLayer = /*#__PURE__*/function () {
192
192
  var _this$getCurrentView3 = this.getCurrentView(),
193
193
  latLonBounds = _this$getCurrentView3.latLonBounds,
194
194
  zoom = _this$getCurrentView3.zoom;
195
- (_this$tilesetManager4 = this.tilesetManager) === null || _this$tilesetManager4 === void 0 ? void 0 : _this$tilesetManager4.update(zoom, latLonBounds);
195
+ (_this$tilesetManager4 = this.tilesetManager) === null || _this$tilesetManager4 === void 0 || _this$tilesetManager4.update(zoom, latLonBounds);
196
196
  }
197
197
  }, {
198
198
  key: "tileUnLoad",
@@ -2,7 +2,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
2
  import { DOM } from '@antv/l7-utils';
3
3
  export function readRasterValue(tile, mapService, x, y) {
4
4
  var _tile$bboxPolygon, _tile$data, _tile$data2, _tile$data3;
5
- var bbox = (tile === null || tile === void 0 ? void 0 : (_tile$bboxPolygon = tile.bboxPolygon) === null || _tile$bboxPolygon === void 0 ? void 0 : _tile$bboxPolygon.bbox) || [0, 0, 10, -10];
5
+ var bbox = (tile === null || tile === void 0 || (_tile$bboxPolygon = tile.bboxPolygon) === null || _tile$bboxPolygon === void 0 ? void 0 : _tile$bboxPolygon.bbox) || [0, 0, 10, -10];
6
6
  var _bbox = _slicedToArray(bbox, 4),
7
7
  _bbox$ = _bbox[0],
8
8
  minLng = _bbox$ === void 0 ? 0 : _bbox$,
@@ -21,12 +21,12 @@ export function readRasterValue(tile, mapService, x, y) {
21
21
  (y - tileMaxXY.y) / tilePixelHeight // y
22
22
  ];
23
23
 
24
- var tileWidth = (tile === null || tile === void 0 ? void 0 : (_tile$data = tile.data) === null || _tile$data === void 0 ? void 0 : _tile$data.width) || 1;
25
- var tileHeight = (tile === null || tile === void 0 ? void 0 : (_tile$data2 = tile.data) === null || _tile$data2 === void 0 ? void 0 : _tile$data2.height) || 1;
24
+ var tileWidth = (tile === null || tile === void 0 || (_tile$data = tile.data) === null || _tile$data === void 0 ? void 0 : _tile$data.width) || 1;
25
+ var tileHeight = (tile === null || tile === void 0 || (_tile$data2 = tile.data) === null || _tile$data2 === void 0 ? void 0 : _tile$data2.height) || 1;
26
26
  var indexX = Math.floor(pos[0] * tileWidth);
27
27
  var indexY = Math.floor(pos[1] * tileHeight);
28
28
  var index = Math.max(0, indexY - 1) * tileWidth + indexX;
29
- var data = tile === null || tile === void 0 ? void 0 : (_tile$data3 = tile.data) === null || _tile$data3 === void 0 ? void 0 : _tile$data3.data[index];
29
+ var data = tile === null || tile === void 0 || (_tile$data3 = tile.data) === null || _tile$data3 === void 0 ? void 0 : _tile$data3.data[index];
30
30
  return data;
31
31
  }
32
32
  export function readPixel(x, y, rendererService) {
@@ -71,17 +71,17 @@ export var TileLayerService = /*#__PURE__*/function () {
71
71
  // 不可见 => 可见 兄弟节点加载完成
72
72
  if (sourceTile.parent) {
73
73
  var flag = this.isChildrenLoaded(sourceTile.parent);
74
- tile === null || tile === void 0 ? void 0 : tile.updateVisible(flag);
74
+ tile === null || tile === void 0 || tile.updateVisible(flag);
75
75
  } else {
76
- tile === null || tile === void 0 ? void 0 : tile.updateVisible(true);
76
+ tile === null || tile === void 0 || tile.updateVisible(true);
77
77
  }
78
78
  } else {
79
79
  // 可见 => 不可见 兄弟节点加载完成
80
80
  if (sourceTile.parent) {
81
81
  var _flag = this.isChildrenLoaded(sourceTile.parent);
82
- tile === null || tile === void 0 ? void 0 : tile.updateVisible(!_flag);
82
+ tile === null || tile === void 0 || tile.updateVisible(!_flag);
83
83
  } else {
84
- tile === null || tile === void 0 ? void 0 : tile.updateVisible(false);
84
+ tile === null || tile === void 0 || tile.updateVisible(false);
85
85
  }
86
86
  }
87
87
  }
@@ -28,7 +28,7 @@ export var TilePickService = /*#__PURE__*/function () {
28
28
  if (tile) {
29
29
  // TODO 多图层拾取
30
30
  var pickLayer = tile.getMainLayer();
31
- pickLayer === null || pickLayer === void 0 ? void 0 : pickLayer.layerPickService.pickRender(target);
31
+ pickLayer === null || pickLayer === void 0 || pickLayer.layerPickService.pickRender(target);
32
32
  }
33
33
  }
34
34
  }, {
@@ -78,10 +78,10 @@ export var TilePickService = /*#__PURE__*/function () {
78
78
  var layer = tile.getMainLayer();
79
79
  switch (type) {
80
80
  case SELECT:
81
- layer === null || layer === void 0 ? void 0 : layer.hooks.beforeSelect.call([r, g, b]);
81
+ layer === null || layer === void 0 || layer.hooks.beforeSelect.call([r, g, b]);
82
82
  break;
83
83
  case ACTIVE:
84
- layer === null || layer === void 0 ? void 0 : layer.hooks.beforeHighlight.call([r, g, b]);
84
+ layer === null || layer === void 0 || layer.hooks.beforeHighlight.call([r, g, b]);
85
85
  break;
86
86
  }
87
87
  });
@@ -88,8 +88,11 @@ export default abstract class Tile extends EventEmitter implements ITile {
88
88
  pickBufferScale?: number | undefined;
89
89
  stencil?: boolean | undefined;
90
90
  debug?: boolean | undefined;
91
+ renderer?: "regl" | "device" | undefined;
91
92
  antialias?: boolean | undefined;
92
93
  preserveDrawingBuffer?: boolean | undefined;
94
+ enableWebGPU?: boolean | undefined;
95
+ shaderCompilerPath?: string | undefined;
93
96
  };
94
97
  protected getMaskLayer(): ILayer[];
95
98
  protected addTileMask(): Promise<ILayer>;
@@ -80,7 +80,7 @@ var Tile = /*#__PURE__*/function (_EventEmitter) {
80
80
  var _this$parent$getLayer = this.parent.getLayerConfig(),
81
81
  maskLayers = _this$parent$getLayer.maskLayers;
82
82
  var layers = [];
83
- maskLayers === null || maskLayers === void 0 ? void 0 : maskLayers.forEach(function (layer) {
83
+ maskLayers === null || maskLayers === void 0 || maskLayers.forEach(function (layer) {
84
84
  if (!layer.tileLayer) {
85
85
  // 非瓦片图层返回图层本身,瓦片图层返回对应的行列号图层
86
86
  layers.push(layer);
@@ -233,7 +233,7 @@ var Tile = /*#__PURE__*/function (_EventEmitter) {
233
233
  key: "destroy",
234
234
  value: function destroy() {
235
235
  var _this$tileMask;
236
- (_this$tileMask = this.tileMask) === null || _this$tileMask === void 0 ? void 0 : _this$tileMask.destroy();
236
+ (_this$tileMask = this.tileMask) === null || _this$tileMask === void 0 || _this$tileMask.destroy();
237
237
  this.layers.forEach(function (layer) {
238
238
  return layer.destroy();
239
239
  });
@@ -65,7 +65,6 @@ var WindModel = /*#__PURE__*/function (_BaseModel) {
65
65
  var _initModels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
66
66
  var _source$data,
67
67
  _source$data2,
68
- _source$data2$images,
69
68
  _this3 = this;
70
69
  var _ref, _ref$uMin, uMin, _ref$uMax, uMax, _ref$vMin, vMin, _ref$vMax, vMax, _ref$fadeOpacity, fadeOpacity, _ref$speedFactor, speedFactor, _ref$dropRate, dropRate, _ref$dropRateBump, dropRateBump, _ref$rampColors, rampColors, _ref$sizeScale, sizeScale, createTexture2D, source, glContext, model;
71
70
  return _regeneratorRuntime.wrap(function _callee$(_context) {
@@ -81,7 +80,7 @@ var WindModel = /*#__PURE__*/function (_BaseModel) {
81
80
  this.cacheZoom = Math.floor(this.mapService.getZoom());
82
81
  glContext = this.rendererService.getGLContext();
83
82
  this.imageCoords = (_source$data = source.data) === null || _source$data === void 0 ? void 0 : _source$data.dataArray[0].coordinates;
84
- (_source$data2 = source.data) === null || _source$data2 === void 0 ? void 0 : (_source$data2$images = _source$data2.images) === null || _source$data2$images === void 0 ? void 0 : _source$data2$images.then(function (imageData) {
83
+ (_source$data2 = source.data) === null || _source$data2 === void 0 || (_source$data2 = _source$data2.images) === null || _source$data2 === void 0 || _source$data2.then(function (imageData) {
85
84
  var _this3$texture;
86
85
  _this3.sizeScale = sizeScale * _this3.getZoomScale();
87
86
  var _this3$getWindSize = _this3.getWindSize(),
@@ -107,7 +106,7 @@ var WindModel = /*#__PURE__*/function (_BaseModel) {
107
106
  vMax: vMax,
108
107
  image: imageData[0]
109
108
  });
110
- (_this3$texture = _this3.texture) === null || _this3$texture === void 0 ? void 0 : _this3$texture.destroy();
109
+ (_this3$texture = _this3.texture) === null || _this3$texture === void 0 || _this3$texture.destroy();
111
110
  _this3.texture = createTexture2D({
112
111
  width: imageWidth,
113
112
  height: imageHeight
@@ -175,8 +174,8 @@ var WindModel = /*#__PURE__*/function (_BaseModel) {
175
174
  key: "clearModels",
176
175
  value: function clearModels() {
177
176
  var _this$texture, _this$wind;
178
- (_this$texture = this.texture) === null || _this$texture === void 0 ? void 0 : _this$texture.destroy();
179
- (_this$wind = this.wind) === null || _this$wind === void 0 ? void 0 : _this$wind.destroy();
177
+ (_this$texture = this.texture) === null || _this$texture === void 0 || _this$texture.destroy();
178
+ (_this$wind = this.wind) === null || _this$wind === void 0 || _this$wind.destroy();
180
179
  }
181
180
  }, {
182
181
  key: "registerBuiltinAttributes",
@@ -274,7 +273,7 @@ var WindModel = /*#__PURE__*/function (_BaseModel) {
274
273
  this.layerService.beforeRenderData(this.layer);
275
274
  this.layer.hooks.beforeRender.call();
276
275
  this.layerService.renderMask(this.layer.masks);
277
- (_this$colorModel = this.colorModel) === null || _this$colorModel === void 0 ? void 0 : _this$colorModel.draw({
276
+ (_this$colorModel = this.colorModel) === null || _this$colorModel === void 0 || _this$colorModel.draw({
278
277
  uniforms: {
279
278
  u_opacity: opacity || 1.0,
280
279
  u_texture: this.texture
@@ -18,7 +18,7 @@ var _BaseLayer2 = _interopRequireDefault(require("../core/BaseLayer"));
18
18
  var _index = _interopRequireDefault(require("./models/index"));
19
19
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
20
20
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
21
- var CanvasLayer = /*#__PURE__*/function (_BaseLayer) {
21
+ var CanvasLayer = exports.default = /*#__PURE__*/function (_BaseLayer) {
22
22
  (0, _inherits2.default)(CanvasLayer, _BaseLayer);
23
23
  var _super = _createSuper(CanvasLayer);
24
24
  function CanvasLayer() {
@@ -99,5 +99,4 @@ var CanvasLayer = /*#__PURE__*/function (_BaseLayer) {
99
99
  }
100
100
  }]);
101
101
  return CanvasLayer;
102
- }(_BaseLayer2.default);
103
- exports.default = CanvasLayer;
102
+ }(_BaseLayer2.default);
@@ -19,7 +19,7 @@ var _BaseModel2 = _interopRequireDefault(require("../../core/BaseModel"));
19
19
  var _interface = require("../../core/interface");
20
20
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
21
21
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
22
- var CanvaModel = /*#__PURE__*/function (_BaseModel) {
22
+ var CanvaModel = exports.default = /*#__PURE__*/function (_BaseModel) {
23
23
  (0, _inherits2.default)(CanvaModel, _BaseModel);
24
24
  var _super = _createSuper(CanvaModel);
25
25
  function CanvaModel() {
@@ -111,7 +111,7 @@ var CanvaModel = /*#__PURE__*/function (_BaseModel) {
111
111
  value: function clearModels() {
112
112
  if (this.canvas) {
113
113
  var _this$mapService$getC;
114
- (_this$mapService$getC = this.mapService.getContainer()) === null || _this$mapService$getC === void 0 ? void 0 : _this$mapService$getC.removeChild(this.canvas);
114
+ (_this$mapService$getC = this.mapService.getContainer()) === null || _this$mapService$getC === void 0 || _this$mapService$getC.removeChild(this.canvas);
115
115
  // @ts-ignore
116
116
  this.canvas = null;
117
117
  }
@@ -168,7 +168,7 @@ var CanvaModel = /*#__PURE__*/function (_BaseModel) {
168
168
  canvas.style.top = '0';
169
169
  canvas.style.left = '0';
170
170
  canvas.style.zIndex = zIndex + '';
171
- (_this$mapService$getC2 = this.mapService.getContainer()) === null || _this$mapService$getC2 === void 0 ? void 0 : _this$mapService$getC2.appendChild(canvas);
171
+ (_this$mapService$getC2 = this.mapService.getContainer()) === null || _this$mapService$getC2 === void 0 || _this$mapService$getC2.appendChild(canvas);
172
172
  var ctx = canvas.getContext('2d');
173
173
  this.ctx = ctx;
174
174
  }
@@ -198,5 +198,4 @@ var CanvaModel = /*#__PURE__*/function (_BaseModel) {
198
198
  }
199
199
  }]);
200
200
  return CanvaModel;
201
- }(_BaseModel2.default);
202
- exports.default = CanvaModel;
201
+ }(_BaseModel2.default);
@@ -9,5 +9,4 @@ var _canvas = _interopRequireDefault(require("./canvas"));
9
9
  var CanvasModels = {
10
10
  canvas: _canvas.default
11
11
  };
12
- var _default = CanvasModels;
13
- exports.default = _default;
12
+ var _default = exports.default = CanvasModels;
@@ -18,7 +18,7 @@ var _BaseLayer2 = _interopRequireDefault(require("../core/BaseLayer"));
18
18
  var _build = _interopRequireDefault(require("./models/build"));
19
19
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
20
20
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
21
- var CityBuildingLayer = /*#__PURE__*/function (_BaseLayer) {
21
+ var CityBuildingLayer = exports.default = /*#__PURE__*/function (_BaseLayer) {
22
22
  (0, _inherits2.default)(CityBuildingLayer, _BaseLayer);
23
23
  var _super = _createSuper(CityBuildingLayer);
24
24
  function CityBuildingLayer() {
@@ -66,5 +66,4 @@ var CityBuildingLayer = /*#__PURE__*/function (_BaseLayer) {
66
66
  }
67
67
  }]);
68
68
  return CityBuildingLayer;
69
- }(_BaseLayer2.default);
70
- exports.default = CityBuildingLayer;
69
+ }(_BaseLayer2.default);
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
23
23
  var buildFrag = "uniform float u_opacity: 1.0;\nuniform vec4 u_baseColor : [ 1.0, 0, 0, 1.0 ];\nuniform vec4 u_brightColor : [ 1.0, 0, 0, 1.0 ];\nuniform vec4 u_windowColor : [ 1.0, 0, 0, 1.0 ];\nuniform float u_near : 0;\nuniform float u_far : 1;\nvarying vec4 v_Color;\nvarying vec2 v_texCoord;\nuniform float u_Zoom : 1;\nuniform float u_time;\n\nuniform float u_circleSweep;\nuniform float u_cityMinSize;\nuniform vec3 u_circleSweepColor;\nuniform float u_circleSweepSpeed;\n\nvarying float v_worldDis;\n\n#pragma include \"picking\"\n\nvec3 getWindowColor(float n, float hot, vec3 brightColor, vec3 darkColor) {\n float s = step(hot, n);\n vec3 color = mix(brightColor,vec3(0.9,0.9,1.0),n);\n\n return mix(darkColor, color, s);\n}\nfloat random (vec2 st) {\n return fract(sin(dot(st.xy, vec2(12.9898,78.233)))* 43758.5453123);\n}\n\nfloat LinearizeDepth()\n{\n float z = gl_FragCoord.z * 2.0 - 1.0;\n return (2.0 * u_near * u_far) / (u_far + u_near - z * (u_far - u_near));\n}\n\nvec3 fog(vec3 color, vec3 fogColor, float depth){\n float fogFactor=clamp(depth,0.0,1.0);\n vec3 output_color=mix(fogColor,color,fogFactor);\n return output_color;\n}\n\nfloat sdRect(vec2 p, vec2 sz) {\n vec2 d = abs(p) - sz;\n float outside = length(max(d, 0.));\n float inside = min(max(d.x, d.y), 0.);\n return outside + inside;\n}\n\nvoid main() {\n gl_FragColor = v_Color;\n vec3 baseColor = u_baseColor.xyz;\n vec3 brightColor = u_brightColor.xyz;\n vec3 windowColor = u_windowColor.xyz;\n float targetColId = 5.;\n float depth = 1.0 - LinearizeDepth() / u_far * u_Zoom;\n vec3 fogColor = vec3(23.0/255.0,31.0/255.0,51.0/255.0);\n if(v_texCoord.x < 0.) { //\u9876\u90E8\u989C\u8272\n vec3 foggedColor = fog(baseColor.xyz + vec3(0.12*0.9,0.2*0.9,0.3*0.9),fogColor,depth);\n gl_FragColor = vec4( foggedColor, v_Color.w);\n }else { // \u4FA7\u9762\u989C\u8272\n vec2 st = v_texCoord;\n vec2 UvScale = v_texCoord;\n float tStep = min(0.08,max(0.05* (18.0-u_Zoom),0.02));\n float tStart = 0.25 * tStep;\n float tEnd = 0.75 * tStep;\n float u = mod(UvScale.x, tStep);\n float v = mod(UvScale.y, tStep);\n float ux = floor(UvScale.x/tStep);\n float uy = floor(UvScale.y/tStep);\n float n = random(vec2(ux,uy));\n float lightP = u_time;\n float head = 1.0- step(0.005,st.y);\n /*step3*/\n // \u5C06\u7A97\u6237\u989C\u8272\u548C\u5899\u9762\u989C\u8272\u533A\u522B\u5F00\u6765\n float sU = step(tStart, u) - step(tEnd, u);\n float sV = step(tStart, v) - step(tEnd, v);\n vec2 windowSize = vec2(abs(tEnd-tStart),abs(tEnd-tStart));\n float dist = sdRect(vec2(u,v), windowSize);\n float s = sU * sV;\n\n float curColId = floor(UvScale.x / tStep);\n float sCol = step(targetColId - 0.2, curColId) - step(targetColId + 0.2, curColId);\n\n float mLightP = mod(lightP, 2.);\n float sRow = step(mLightP - 0.2, st.y) - step(mLightP, st.y);\n if(ux == targetColId){\n n =0.;\n }\n float timeP = min(0.75, abs ( sin(u_time/3.0) ) );\n float hot = smoothstep(1.0,0.0,timeP);\n vec3 color = mix(baseColor, getWindowColor(n,hot,brightColor,windowColor), s);\n //vec3 color = mix(baseColor, getWindowColor(n,hot,brightColor,windowColor), 1.0);\n float sFinal = s * sCol * sRow;\n color += mix(baseColor, brightColor, sFinal*n);\n if (st.y<0.01){\n color = baseColor;\n }\n if(head ==1.0) { // \u9876\u90E8\u4EAE\u7EBF\n color = brightColor;\n }\n color = color * v_Color.rgb;\n\n vec3 foggedColor = fog(color,fogColor,depth);\n\n gl_FragColor = vec4(foggedColor,1.0);\n }\n\n\n if(u_circleSweep > 0.0 && v_worldDis < u_cityMinSize) {\n float r = fract(((v_worldDis/u_cityMinSize) - u_time * u_circleSweepSpeed) * 2.0);\n gl_FragColor.rgb += r * r * u_circleSweepColor;\n }\n \n gl_FragColor.a *= u_opacity;\n gl_FragColor = filterColor(gl_FragColor);\n}\n";
24
24
  /* babel-plugin-inline-import '../shaders/build_vert.glsl' */
25
25
  var buildVert = "precision highp float;\n\n#define ambientRatio 0.5\n#define diffuseRatio 0.3\n#define specularRatio 0.2\n\nattribute vec4 a_Color;\nattribute vec3 a_Position;\nattribute vec3 a_Normal;\nattribute float a_Size;\nuniform mat4 u_ModelMatrix;\n\nattribute vec2 a_Uv;\nvarying vec2 v_texCoord;\n\nvarying vec4 v_Color;\n\nuniform float u_circleSweep;\nuniform vec2 u_cityCenter;\n\nvarying float v_worldDis;\n\n#pragma include \"projection\"\n#pragma include \"light\"\n#pragma include \"picking\"\n\n\nvoid main() {\n vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0);\n vec4 project_pos = project_position(pos);\n\n v_texCoord = a_Uv;\n\n if(u_circleSweep > 0.0) {\n vec2 lnglatscale = vec2(0.0);\n if(u_CoordinateSystem != COORDINATE_SYSTEM_P20_2) {\n lnglatscale = (a_Position.xy - u_cityCenter) * vec2(0.0, 0.135);\n }\n v_worldDis = length(a_Position.xy + lnglatscale - u_cityCenter);\n }\n \n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0));\n }\n\n float lightWeight = calc_lighting(pos);\n // v_Color = a_Color;\n v_Color = vec4(a_Color.rgb * lightWeight, a_Color.w);\n\n setPickingColor(a_PickingColor);\n}\n";
26
- var CityBuildModel = /*#__PURE__*/function (_BaseModel) {
26
+ var CityBuildModel = exports.default = /*#__PURE__*/function (_BaseModel) {
27
27
  (0, _inherits2.default)(CityBuildModel, _BaseModel);
28
28
  var _super = _createSuper(CityBuildModel);
29
29
  function CityBuildModel() {
@@ -206,5 +206,4 @@ var CityBuildModel = /*#__PURE__*/function (_BaseModel) {
206
206
  }
207
207
  }]);
208
208
  return CityBuildModel;
209
- }(_BaseModel2.default);
210
- exports.default = CityBuildModel;
209
+ }(_BaseModel2.default);