@antv/l7-layers 2.16.1 → 2.16.2
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 +9 -31
- package/es/Geometry/models/billboard.js +51 -89
- package/es/Geometry/models/plane.js +81 -143
- package/es/Geometry/models/sprite.js +60 -118
- package/es/canvas/index.js +10 -33
- package/es/canvas/models/canvas.js +41 -97
- package/es/citybuliding/building.js +8 -27
- package/es/citybuliding/models/build.js +57 -82
- package/es/core/BaseLayer.d.ts +3 -0
- package/es/core/BaseLayer.js +360 -528
- package/es/core/BaseModel.d.ts +9 -71
- package/es/core/BaseModel.js +118 -429
- package/es/core/CommonStyleAttribute.d.ts +2 -0
- package/es/core/CommonStyleAttribute.js +66 -0
- package/es/core/LayerPickService.js +21 -32
- package/es/core/TextureService.js +0 -13
- package/es/core/interface.d.ts +13 -3
- package/es/core/interface.js +17 -24
- package/es/core/shape/Path.js +13 -20
- package/es/core/shape/extrude.js +27 -36
- package/es/core/triangulation.d.ts +12 -0
- package/es/core/triangulation.js +124 -114
- package/es/earth/index.js +9 -33
- package/es/earth/models/atmosphere.js +30 -54
- package/es/earth/models/base.js +47 -85
- package/es/earth/models/bloomsphere.js +30 -54
- package/es/earth/utils.js +9 -13
- package/es/heatmap/index.js +10 -40
- package/es/heatmap/models/grid.js +29 -53
- package/es/heatmap/models/grid3d.js +29 -53
- package/es/heatmap/models/heatmap.d.ts +1 -0
- package/es/heatmap/models/heatmap.js +99 -150
- package/es/heatmap/models/hexagon.js +29 -53
- package/es/heatmap/shaders/grid_vert.glsl +2 -2
- package/es/heatmap/shaders/hexagon_3d_vert.glsl +2 -2
- package/es/heatmap/shaders/hexagon_vert.glsl +2 -2
- package/es/heatmap/triangulation.js +0 -4
- package/es/image/index.js +9 -28
- package/es/image/models/image.js +66 -100
- package/es/index.js +9 -17
- package/es/line/index.d.ts +1 -0
- package/es/line/index.js +12 -36
- package/es/line/models/arc.js +72 -160
- package/es/line/models/arc_3d.js +67 -148
- package/es/line/models/earthArc_3d.js +66 -148
- package/es/line/models/{half.d.ts → flow.d.ts} +1 -11
- package/es/line/models/flow.js +167 -0
- package/es/line/models/great_circle.js +57 -135
- package/es/line/models/index.d.ts +1 -1
- package/es/line/models/index.js +3 -3
- package/es/line/models/line.js +98 -186
- package/es/line/models/linearline.js +46 -115
- package/es/line/models/simpleLine.d.ts +0 -1
- package/es/line/models/simpleLine.js +42 -114
- package/es/line/models/wall.js +52 -92
- package/es/line/shaders/dash/arc_dash_frag.glsl +3 -6
- package/es/line/shaders/dash/arc_dash_vert.glsl +6 -46
- package/es/line/shaders/dash/line_dash_frag.glsl +4 -7
- package/es/line/shaders/dash/line_dash_vert.glsl +3 -33
- package/es/line/shaders/flow/flow_line_frag.glsl +13 -0
- package/es/line/shaders/flow/flow_line_vert.glsl +83 -0
- package/es/line/shaders/line_arc_3d_frag.glsl +6 -6
- package/es/line/shaders/line_arc_3d_vert.glsl +4 -34
- package/es/line/shaders/line_arc_frag.glsl +7 -11
- package/es/line/shaders/line_arc_great_circle_frag.glsl +5 -6
- package/es/line/shaders/line_arc_great_circle_vert.glsl +4 -32
- package/es/line/shaders/line_arc_vert.glsl +9 -45
- package/es/line/shaders/line_frag.glsl +15 -17
- package/es/line/shaders/line_vert.glsl +3 -34
- package/es/line/shaders/linear/arc3d_linear_frag.glsl +5 -19
- package/es/line/shaders/linear/arc3d_linear_vert.glsl +9 -48
- package/es/line/shaders/linear/arc_linear_frag.glsl +2 -30
- package/es/line/shaders/linear/arc_linear_vert.glsl +9 -45
- package/es/line/shaders/linear/line_linear_frag.glsl +5 -6
- package/es/line/shaders/linearLine/line_linear_frag.glsl +2 -14
- package/es/line/shaders/linearLine/line_linear_vert.glsl +14 -32
- package/es/line/shaders/simple/simpleline_frag.glsl +1 -5
- package/es/line/shaders/simple/simpleline_linear_frag.glsl +2 -6
- package/es/line/shaders/simple/simpleline_vert.glsl +7 -33
- package/es/mask/index.js +9 -28
- package/es/mask/models/fill.js +29 -54
- package/es/plugins/DataMappingPlugin.js +90 -141
- package/es/plugins/DataSourcePlugin.js +45 -68
- package/es/plugins/FeatureScalePlugin.js +67 -122
- package/es/plugins/LayerAnimateStylePlugin.js +0 -5
- package/es/plugins/LayerMaskPlugin.js +3 -11
- package/es/plugins/LayerModelPlugin.js +79 -104
- package/es/plugins/LayerStylePlugin.js +3 -9
- package/es/plugins/LightingPlugin.js +12 -18
- package/es/plugins/MultiPassRendererPlugin.js +11 -16
- package/es/plugins/PixelPickingPlugin.js +12 -21
- package/es/plugins/RegisterStyleAttributePlugin.js +5 -12
- package/es/plugins/ShaderUniformPlugin.js +15 -29
- package/es/plugins/UpdateModelPlugin.js +0 -5
- package/es/plugins/UpdateStyleAttributePlugin.js +5 -11
- package/es/point/index.d.ts +1 -0
- package/es/point/index.js +27 -77
- package/es/point/models/earthExtrude.d.ts +0 -3
- package/es/point/models/earthExtrude.js +60 -139
- package/es/point/models/earthFill.d.ts +0 -1
- package/es/point/models/earthFill.js +59 -140
- package/es/point/models/extrude.d.ts +0 -3
- package/es/point/models/extrude.js +60 -140
- package/es/point/models/fill.d.ts +0 -1
- package/es/point/models/fill.js +67 -158
- package/es/point/models/fillmage.js +66 -147
- package/es/point/models/image.js +52 -126
- package/es/point/models/index.js +2 -2
- package/es/point/models/normal.js +32 -56
- package/es/point/models/radar.d.ts +0 -1
- package/es/point/models/radar.js +42 -75
- package/es/point/models/simplePoint.d.ts +0 -1
- package/es/point/models/simplePoint.js +46 -115
- package/es/point/models/text.js +211 -344
- package/es/point/shaders/animate/wave_frag.glsl +1 -11
- package/es/point/shaders/earth/extrude_frag.glsl +5 -17
- package/es/point/shaders/earth/extrude_vert.glsl +14 -29
- package/es/point/shaders/earth/fill_frag.glsl +5 -14
- package/es/point/shaders/earth/fill_vert.glsl +1 -75
- package/es/point/shaders/extrude/extrude_frag.glsl +3 -29
- package/es/point/shaders/extrude/extrude_vert.glsl +27 -35
- package/es/point/shaders/fill_frag.glsl +9 -20
- package/es/point/shaders/fill_vert.glsl +16 -101
- package/es/point/shaders/image/fillImage_frag.glsl +2 -5
- package/es/point/shaders/image/fillImage_vert.glsl +4 -47
- package/es/point/shaders/image_frag.glsl +1 -5
- package/es/point/shaders/image_vert.glsl +1 -44
- package/es/point/shaders/normal_frag.glsl +0 -2
- package/es/point/shaders/normal_vert.glsl +2 -1
- package/es/point/shaders/radar/radar_vert.glsl +2 -2
- package/es/point/shaders/simplePoint_frag.glsl +0 -7
- package/es/point/shaders/simplePoint_vert.glsl +3 -45
- package/es/point/shaders/text_frag.glsl +6 -19
- package/es/point/shaders/text_vert.glsl +5 -66
- package/es/point/shape/extrude.js +4 -13
- package/es/polygon/index.d.ts +1 -0
- package/es/polygon/index.js +12 -40
- package/es/polygon/models/extrude.d.ts +0 -3
- package/es/polygon/models/extrude.js +122 -162
- package/es/polygon/models/fill.d.ts +0 -4
- package/es/polygon/models/fill.js +57 -130
- package/es/polygon/models/index.js +3 -2
- package/es/polygon/models/ocean.js +42 -76
- package/es/polygon/models/water.js +37 -71
- package/es/polygon/shaders/extrude/polygon_extrude_frag.glsl +2 -23
- package/es/polygon/shaders/extrude/polygon_extrude_picklight_frag.glsl +7 -5
- package/es/polygon/shaders/extrude/polygon_extrude_picklight_vert.glsl +7 -32
- package/es/polygon/shaders/extrude/polygon_extrude_vert.glsl +33 -38
- package/es/polygon/shaders/extrude/polygon_extrudetex_frag.glsl +12 -9
- package/es/polygon/shaders/extrude/polygon_extrudetex_vert.glsl +16 -44
- package/es/polygon/shaders/polygon_frag.glsl +0 -5
- package/es/polygon/shaders/polygon_linear_frag.glsl +0 -8
- package/es/polygon/shaders/polygon_linear_vert.glsl +0 -32
- package/es/polygon/shaders/polygon_vert.glsl +1 -27
- package/es/raster/buffers/triangulation.js +2 -4
- package/es/raster/index.js +9 -32
- package/es/raster/models/raster.js +80 -116
- package/es/raster/models/rasterRgb.js +84 -127
- package/es/raster/models/rasterTerrainRgb.js +56 -84
- package/es/tile/interaction/getRasterData.js +14 -20
- package/es/tile/interaction/utils.js +7 -9
- package/es/tile/manager/base.js +63 -96
- package/es/tile/service/TileLayerService.js +33 -55
- package/es/tile/service/TilePickService.js +26 -40
- package/es/tile/service/TileSourceService.js +3 -7
- package/es/tile/tileFactory/DebugTile.js +29 -46
- package/es/tile/tileFactory/ImageTile.js +20 -38
- package/es/tile/tileFactory/MaskTile.js +22 -43
- package/es/tile/tileFactory/RasterRGBTile.js +22 -42
- package/es/tile/tileFactory/RasterTerrainRGBTile.js +20 -38
- package/es/tile/tileFactory/RasterTile.js +30 -53
- package/es/tile/tileFactory/Tile.js +63 -97
- package/es/tile/tileFactory/VectorTile.js +41 -68
- package/es/tile/tileFactory/index.js +0 -11
- package/es/tile/tileFactory/layers/TileDebugLayer.js +6 -27
- package/es/tile/tileFactory/util.js +0 -3
- package/es/tile/tileLayer/BaseLayer.js +105 -146
- package/es/tile/utils.js +1 -1
- package/es/utils/blend.js +0 -2
- package/es/utils/collision-index.js +9 -16
- package/es/utils/extrude_polyline.js +101 -149
- package/es/utils/grid-index.js +2 -27
- package/es/utils/identityScale.js +0 -8
- package/es/utils/layerData.js +32 -46
- package/es/utils/multiPassRender.js +11 -13
- package/es/utils/polylineNormal.js +31 -37
- package/es/utils/simpleLine.js +2 -16
- package/es/utils/stencil.js +2 -3
- package/es/utils/symbol-layout.js +27 -53
- package/es/wind/index.js +9 -29
- package/es/wind/models/utils.js +26 -51
- package/es/wind/models/wind.js +101 -147
- package/es/wind/models/windRender.js +53 -66
- package/lib/Geometry/index.js +9 -38
- package/lib/Geometry/models/billboard.js +51 -97
- package/lib/Geometry/models/index.js +0 -5
- package/lib/Geometry/models/plane.js +79 -151
- package/lib/Geometry/models/sprite.js +60 -127
- package/lib/canvas/index.js +10 -40
- package/lib/canvas/models/canvas.js +41 -101
- package/lib/canvas/models/index.js +0 -3
- package/lib/citybuliding/building.js +8 -35
- package/lib/citybuliding/models/build.js +57 -92
- package/lib/core/BaseLayer.js +358 -520
- package/lib/core/BaseModel.js +117 -441
- package/lib/core/CommonStyleAttribute.js +72 -0
- package/lib/core/LayerPickService.js +21 -37
- package/lib/core/TextureService.js +0 -16
- package/lib/core/interface.js +21 -31
- package/lib/core/schema.js +0 -1
- package/lib/core/shape/Path.js +14 -31
- package/lib/core/shape/extrude.js +27 -59
- package/lib/core/triangulation.js +125 -153
- package/lib/earth/index.js +9 -43
- package/lib/earth/models/atmosphere.js +30 -63
- package/lib/earth/models/base.js +47 -90
- package/lib/earth/models/bloomsphere.js +30 -63
- package/lib/earth/utils.js +7 -31
- package/lib/heatmap/index.js +10 -48
- package/lib/heatmap/models/grid.js +29 -61
- package/lib/heatmap/models/grid3d.js +29 -61
- package/lib/heatmap/models/heatmap.js +99 -166
- package/lib/heatmap/models/hexagon.js +29 -61
- package/lib/heatmap/models/index.js +0 -6
- package/lib/heatmap/shaders/grid_vert.glsl +2 -2
- package/lib/heatmap/shaders/hexagon_3d_vert.glsl +2 -2
- package/lib/heatmap/shaders/hexagon_vert.glsl +2 -2
- package/lib/heatmap/triangulation.js +0 -5
- package/lib/image/index.js +9 -36
- package/lib/image/models/image.js +66 -109
- package/lib/image/models/index.js +0 -3
- package/lib/index.js +7 -61
- package/lib/line/index.js +12 -42
- package/lib/line/models/arc.js +70 -170
- package/lib/line/models/arc_3d.js +65 -159
- package/lib/line/models/earthArc_3d.js +64 -159
- package/lib/line/models/flow.js +174 -0
- package/lib/line/models/great_circle.js +57 -146
- package/lib/line/models/index.js +3 -14
- package/lib/line/models/line.js +96 -194
- package/lib/line/models/linearline.js +46 -127
- package/lib/line/models/simpleLine.js +42 -124
- package/lib/line/models/wall.js +52 -103
- package/lib/line/shaders/dash/arc_dash_frag.glsl +3 -6
- package/lib/line/shaders/dash/arc_dash_vert.glsl +6 -46
- package/lib/line/shaders/dash/line_dash_frag.glsl +4 -7
- package/lib/line/shaders/dash/line_dash_vert.glsl +3 -33
- package/lib/line/shaders/flow/flow_line_frag.glsl +13 -0
- package/lib/line/shaders/flow/flow_line_vert.glsl +83 -0
- package/lib/line/shaders/line_arc_3d_frag.glsl +6 -6
- package/lib/line/shaders/line_arc_3d_vert.glsl +4 -34
- package/lib/line/shaders/line_arc_frag.glsl +7 -11
- package/lib/line/shaders/line_arc_great_circle_frag.glsl +5 -6
- package/lib/line/shaders/line_arc_great_circle_vert.glsl +4 -32
- package/lib/line/shaders/line_arc_vert.glsl +9 -45
- package/lib/line/shaders/line_frag.glsl +15 -17
- package/lib/line/shaders/line_vert.glsl +3 -34
- package/lib/line/shaders/linear/arc3d_linear_frag.glsl +5 -19
- package/lib/line/shaders/linear/arc3d_linear_vert.glsl +9 -48
- package/lib/line/shaders/linear/arc_linear_frag.glsl +2 -30
- package/lib/line/shaders/linear/arc_linear_vert.glsl +9 -45
- package/lib/line/shaders/linear/line_linear_frag.glsl +5 -6
- package/lib/line/shaders/linearLine/line_linear_frag.glsl +2 -14
- package/lib/line/shaders/linearLine/line_linear_vert.glsl +14 -32
- package/lib/line/shaders/simple/simpleline_frag.glsl +1 -5
- package/lib/line/shaders/simple/simpleline_linear_frag.glsl +2 -6
- package/lib/line/shaders/simple/simpleline_vert.glsl +7 -33
- package/lib/mask/index.js +9 -36
- package/lib/mask/models/fill.js +29 -63
- package/lib/mask/models/index.js +0 -3
- package/lib/plugins/DataMappingPlugin.js +90 -152
- package/lib/plugins/DataSourcePlugin.js +45 -76
- package/lib/plugins/FeatureScalePlugin.js +67 -138
- package/lib/plugins/LayerAnimateStylePlugin.js +0 -10
- package/lib/plugins/LayerMaskPlugin.js +4 -17
- package/lib/plugins/LayerModelPlugin.js +80 -113
- package/lib/plugins/LayerStylePlugin.js +4 -14
- package/lib/plugins/LightingPlugin.js +12 -25
- package/lib/plugins/MultiPassRendererPlugin.js +11 -22
- package/lib/plugins/PixelPickingPlugin.js +12 -27
- package/lib/plugins/RegisterStyleAttributePlugin.js +5 -19
- package/lib/plugins/ShaderUniformPlugin.js +15 -36
- package/lib/plugins/UpdateModelPlugin.js +1 -10
- package/lib/plugins/UpdateStyleAttributePlugin.js +5 -16
- package/lib/point/index.js +27 -83
- package/lib/point/models/earthExtrude.js +60 -150
- package/lib/point/models/earthFill.js +59 -170
- package/lib/point/models/extrude.js +60 -150
- package/lib/point/models/fill.js +65 -167
- package/lib/point/models/fillmage.js +64 -155
- package/lib/point/models/image.js +52 -136
- package/lib/point/models/index.js +1 -12
- package/lib/point/models/normal.js +32 -66
- package/lib/point/models/radar.js +42 -85
- package/lib/point/models/simplePoint.js +46 -125
- package/lib/point/models/text.js +209 -350
- package/lib/point/shaders/animate/wave_frag.glsl +1 -11
- package/lib/point/shaders/earth/extrude_frag.glsl +5 -17
- package/lib/point/shaders/earth/extrude_vert.glsl +14 -29
- package/lib/point/shaders/earth/fill_frag.glsl +5 -14
- package/lib/point/shaders/earth/fill_vert.glsl +1 -75
- package/lib/point/shaders/extrude/extrude_frag.glsl +3 -29
- package/lib/point/shaders/extrude/extrude_vert.glsl +27 -35
- package/lib/point/shaders/fill_frag.glsl +9 -20
- package/lib/point/shaders/fill_vert.glsl +16 -101
- package/lib/point/shaders/image/fillImage_frag.glsl +2 -5
- package/lib/point/shaders/image/fillImage_vert.glsl +4 -47
- package/lib/point/shaders/image_frag.glsl +1 -5
- package/lib/point/shaders/image_vert.glsl +1 -44
- package/lib/point/shaders/normal_frag.glsl +0 -2
- package/lib/point/shaders/normal_vert.glsl +2 -1
- package/lib/point/shaders/radar/radar_vert.glsl +2 -2
- package/lib/point/shaders/simplePoint_frag.glsl +0 -7
- package/lib/point/shaders/simplePoint_vert.glsl +3 -45
- package/lib/point/shaders/text_frag.glsl +6 -19
- package/lib/point/shaders/text_vert.glsl +5 -66
- package/lib/point/shape/extrude.js +4 -20
- package/lib/polygon/index.js +12 -48
- package/lib/polygon/models/extrude.js +122 -173
- package/lib/polygon/models/fill.js +57 -140
- package/lib/polygon/models/index.js +2 -14
- package/lib/polygon/models/ocean.js +42 -88
- package/lib/polygon/models/water.js +37 -82
- package/lib/polygon/shaders/extrude/polygon_extrude_frag.glsl +2 -23
- package/lib/polygon/shaders/extrude/polygon_extrude_picklight_frag.glsl +7 -5
- package/lib/polygon/shaders/extrude/polygon_extrude_picklight_vert.glsl +7 -32
- package/lib/polygon/shaders/extrude/polygon_extrude_vert.glsl +33 -38
- package/lib/polygon/shaders/extrude/polygon_extrudetex_frag.glsl +12 -9
- package/lib/polygon/shaders/extrude/polygon_extrudetex_vert.glsl +16 -44
- package/lib/polygon/shaders/polygon_frag.glsl +0 -5
- package/lib/polygon/shaders/polygon_linear_frag.glsl +0 -8
- package/lib/polygon/shaders/polygon_linear_vert.glsl +0 -32
- package/lib/polygon/shaders/polygon_vert.glsl +1 -27
- package/lib/raster/buffers/triangulation.js +3 -7
- package/lib/raster/index.js +9 -40
- package/lib/raster/models/index.js +0 -5
- package/lib/raster/models/raster.js +80 -125
- package/lib/raster/models/rasterRgb.js +84 -139
- package/lib/raster/models/rasterTerrainRgb.js +56 -93
- package/lib/tile/interaction/getRasterData.js +14 -25
- package/lib/tile/interaction/utils.js +7 -19
- package/lib/tile/manager/base.js +63 -104
- package/lib/tile/service/TileLayerService.js +33 -60
- package/lib/tile/service/TilePickService.js +26 -48
- package/lib/tile/service/TileSourceService.js +2 -16
- package/lib/tile/style/utils.js +0 -3
- package/lib/tile/tileFactory/DebugTile.js +29 -54
- package/lib/tile/tileFactory/ImageTile.js +20 -46
- package/lib/tile/tileFactory/MaskTile.js +22 -51
- package/lib/tile/tileFactory/RasterRGBTile.js +22 -50
- package/lib/tile/tileFactory/RasterTerrainRGBTile.js +20 -46
- package/lib/tile/tileFactory/RasterTile.js +30 -63
- package/lib/tile/tileFactory/Tile.js +63 -102
- package/lib/tile/tileFactory/VectorTile.js +41 -76
- package/lib/tile/tileFactory/index.js +0 -25
- package/lib/tile/tileFactory/layers/TileDebugLayer.js +6 -32
- package/lib/tile/tileFactory/util.js +0 -9
- package/lib/tile/tileLayer/BaseLayer.js +105 -153
- package/lib/tile/utils.js +1 -5
- package/lib/utils/blend.js +0 -5
- package/lib/utils/collision-index.js +9 -25
- package/lib/utils/extrude_polyline.js +101 -181
- package/lib/utils/grid-index.js +2 -28
- package/lib/utils/identityScale.js +0 -9
- package/lib/utils/layerData.js +32 -51
- package/lib/utils/multiPassRender.js +11 -16
- package/lib/utils/polylineNormal.js +31 -66
- package/lib/utils/simpleLine.js +2 -21
- package/lib/utils/stencil.js +0 -4
- package/lib/utils/symbol-layout.js +27 -55
- package/lib/wind/index.js +9 -37
- package/lib/wind/models/index.js +0 -3
- package/lib/wind/models/utils.js +26 -62
- package/lib/wind/models/wind.js +101 -157
- package/lib/wind/models/windRender.js +53 -71
- package/lib/wind/models/windShader.js +0 -1
- package/package.json +7 -7
- package/es/line/models/half.js +0 -298
- package/es/line/shaders/half/line_half_frag.glsl +0 -53
- package/es/line/shaders/half/line_half_vert.glsl +0 -169
- package/es/utils/dataMappingStyle.d.ts +0 -31
- package/es/utils/dataMappingStyle.js +0 -147
- package/lib/line/models/half.js +0 -315
- package/lib/line/shaders/half/line_half_frag.glsl +0 -53
- package/lib/line/shaders/half/line_half_vert.glsl +0 -169
- package/lib/utils/dataMappingStyle.js +0 -151
|
@@ -9,105 +9,79 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConst
|
|
|
9
9
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
10
10
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
11
11
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
12
|
-
|
|
13
12
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
14
|
-
|
|
15
13
|
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; } }
|
|
16
|
-
|
|
17
14
|
import { gl } from '@antv/l7-core';
|
|
18
15
|
import { Version } from '@antv/l7-maps';
|
|
19
16
|
import BaseModel from "../../core/BaseModel";
|
|
20
|
-
|
|
21
17
|
/* babel-plugin-inline-import '../shaders/sprite_frag.glsl' */
|
|
22
18
|
var spriteFrag = "\nuniform sampler2D u_texture;\nuniform float u_mapFlag;\nuniform float u_opacity;\n\nvarying vec3 v_Color;\nvarying float v_d;\n\nvoid main() {\n\n if(v_d < 0.0) {\n discard;\n }\n\n if(u_mapFlag > 0.0) {\n gl_FragColor = texture2D(u_texture, gl_PointCoord);\n gl_FragColor.a *= u_opacity;\n } else {\n gl_FragColor = vec4(v_Color, u_opacity);\n }\n}\n";
|
|
23
|
-
|
|
24
19
|
/* babel-plugin-inline-import '../shaders/sprite_vert.glsl' */
|
|
25
20
|
var spriteVert = "precision highp float;\n\nattribute vec3 a_Position;\nattribute vec3 a_Color;\n\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_Mvp;\nuniform float u_opacity;\nuniform float u_Scale;\nvarying vec3 v_Color;\nvarying float v_d;\n\n#pragma include \"projection\"\nvoid main() {\n v_Color = a_Color;\n \n vec4 project_pos = project_position(vec4(a_Position, 1.0));\n\n v_d = a_Position.z;\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xy, a_Position.z, 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, a_Position.z, 1.0));\n }\n\n gl_PointSize = pow((u_Zoom - 1.0), 2.0) * u_Scale;\n}\n";
|
|
26
|
-
var SPRITE_ANIMATE_DIR
|
|
27
|
-
|
|
28
|
-
(function (SPRITE_ANIMATE_DIR) {
|
|
21
|
+
var SPRITE_ANIMATE_DIR = /*#__PURE__*/function (SPRITE_ANIMATE_DIR) {
|
|
29
22
|
SPRITE_ANIMATE_DIR["UP"] = "up";
|
|
30
23
|
SPRITE_ANIMATE_DIR["DOWN"] = "down";
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
return SPRITE_ANIMATE_DIR;
|
|
25
|
+
}(SPRITE_ANIMATE_DIR || {});
|
|
33
26
|
var SpriteModel = /*#__PURE__*/function (_BaseModel) {
|
|
34
27
|
_inherits(SpriteModel, _BaseModel);
|
|
35
|
-
|
|
36
28
|
var _super = _createSuper(SpriteModel);
|
|
37
|
-
|
|
38
29
|
function SpriteModel() {
|
|
39
30
|
var _this;
|
|
40
|
-
|
|
41
31
|
_classCallCheck(this, SpriteModel);
|
|
42
|
-
|
|
43
32
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
44
33
|
args[_key] = arguments[_key];
|
|
45
34
|
}
|
|
46
|
-
|
|
47
35
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
48
|
-
|
|
49
36
|
_defineProperty(_assertThisInitialized(_this), "planeGeometryUpdateTriangulation", function () {
|
|
50
37
|
var _ref = _this.layer.getLayerConfig(),
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
38
|
+
_ref$spriteBottom = _ref.spriteBottom,
|
|
39
|
+
spriteBottom = _ref$spriteBottom === void 0 ? -100000 : _ref$spriteBottom;
|
|
54
40
|
var updateZ = _this.spriteUpdate;
|
|
55
41
|
var bottomZ = spriteBottom;
|
|
56
42
|
var topZ = _this.spriteTop;
|
|
57
|
-
|
|
58
43
|
for (var i = 0; i < _this.positions.length; i += 5) {
|
|
59
44
|
if (_this.spriteAnimate === SPRITE_ANIMATE_DIR.UP) {
|
|
60
45
|
_this.positions[i + 2] += updateZ;
|
|
61
|
-
|
|
62
46
|
if (_this.positions[i + 2] > topZ) {
|
|
63
47
|
_this.positions[i + 2] = bottomZ;
|
|
64
48
|
}
|
|
65
49
|
} else {
|
|
66
50
|
_this.positions[i + 2] -= updateZ;
|
|
67
|
-
|
|
68
51
|
if (_this.positions[i + 2] < bottomZ) {
|
|
69
52
|
_this.positions[i + 2] = topZ;
|
|
70
53
|
}
|
|
71
54
|
}
|
|
72
55
|
}
|
|
73
|
-
|
|
74
56
|
return {
|
|
75
57
|
vertices: _this.positions,
|
|
76
58
|
indices: _this.indices,
|
|
77
59
|
size: 5
|
|
78
60
|
};
|
|
79
61
|
});
|
|
80
|
-
|
|
81
62
|
_defineProperty(_assertThisInitialized(_this), "updateModel", function () {
|
|
82
63
|
// @ts-ignore
|
|
83
64
|
var attributes = _this.layer.createAttributes({
|
|
84
65
|
triangulation: _this.planeGeometryUpdateTriangulation
|
|
85
66
|
});
|
|
86
|
-
|
|
87
67
|
_this.layer.models.map(function (m) {
|
|
88
68
|
m.updateAttributes(attributes);
|
|
89
69
|
});
|
|
90
|
-
|
|
91
70
|
_this.layerService.throttleRenderLayers();
|
|
92
|
-
|
|
93
71
|
_this.timer = requestAnimationFrame(_this.updateModel);
|
|
94
72
|
});
|
|
95
|
-
|
|
96
73
|
_defineProperty(_assertThisInitialized(_this), "planeGeometryTriangulation", function () {
|
|
97
74
|
var _this2;
|
|
98
|
-
|
|
99
75
|
var _ref2 = _this.layer.getLayerConfig(),
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
76
|
+
_ref2$center = _ref2.center,
|
|
77
|
+
center = _ref2$center === void 0 ? [120, 30] : _ref2$center,
|
|
78
|
+
_ref2$spriteCount = _ref2.spriteCount,
|
|
79
|
+
spriteCount = _ref2$spriteCount === void 0 ? 100 : _ref2$spriteCount,
|
|
80
|
+
_ref2$spriteRadius = _ref2.spriteRadius,
|
|
81
|
+
spriteRadius = _ref2$spriteRadius === void 0 ? 10 : _ref2$spriteRadius;
|
|
107
82
|
var _this$initSprite = (_this2 = _this).initSprite.apply(_this2, [spriteRadius, spriteCount].concat(_toConsumableArray(center))),
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
83
|
+
indices = _this$initSprite.indices,
|
|
84
|
+
positions = _this$initSprite.positions;
|
|
111
85
|
_this.positions = positions;
|
|
112
86
|
_this.indices = indices;
|
|
113
87
|
return {
|
|
@@ -116,10 +90,8 @@ var SpriteModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
116
90
|
size: 5
|
|
117
91
|
};
|
|
118
92
|
});
|
|
119
|
-
|
|
120
93
|
return _this;
|
|
121
94
|
}
|
|
122
|
-
|
|
123
95
|
_createClass(SpriteModel, [{
|
|
124
96
|
key: "initSprite",
|
|
125
97
|
value: function initSprite() {
|
|
@@ -131,35 +103,29 @@ var SpriteModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
131
103
|
var positions = [];
|
|
132
104
|
var mapService = this.mapService;
|
|
133
105
|
var heightLimit = this.spriteAnimate === SPRITE_ANIMATE_DIR.UP ? -this.spriteTop : this.spriteTop;
|
|
134
|
-
|
|
135
106
|
for (var i = 0; i < spriteCount; i++) {
|
|
136
107
|
var height = Math.random() * heightLimit;
|
|
137
108
|
positions.push.apply(positions, _toConsumableArray(getPos(height)));
|
|
138
109
|
}
|
|
139
|
-
|
|
140
110
|
for (var _i = 0; _i < spriteCount; _i++) {
|
|
141
111
|
indices.push(_i);
|
|
142
112
|
}
|
|
143
|
-
|
|
144
113
|
function getPos(z) {
|
|
145
114
|
var randomX = radius * Math.random();
|
|
146
115
|
var randomY = radius * Math.random();
|
|
147
116
|
var x = -radius / 2 + randomX;
|
|
148
117
|
var y = -radius / 2 + randomY;
|
|
149
|
-
|
|
150
118
|
if (mapService.version === Version['GAODE2.x']) {
|
|
151
119
|
// @ts-ignore
|
|
152
120
|
var _ref3 = mapService.lngLatToCoord([x + lng, -y + lat]),
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
121
|
+
_ref4 = _slicedToArray(_ref3, 2),
|
|
122
|
+
a = _ref4[0],
|
|
123
|
+
b = _ref4[1];
|
|
157
124
|
return [a, b, z, 0, 0];
|
|
158
125
|
} else {
|
|
159
126
|
return [x + lng, -y + lat, z, 0, 0];
|
|
160
127
|
}
|
|
161
128
|
}
|
|
162
|
-
|
|
163
129
|
return {
|
|
164
130
|
indices: indices,
|
|
165
131
|
positions: positions
|
|
@@ -169,19 +135,16 @@ var SpriteModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
169
135
|
key: "getUninforms",
|
|
170
136
|
value: function getUninforms() {
|
|
171
137
|
var _ref5 = this.layer.getLayerConfig(),
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
138
|
+
opacity = _ref5.opacity,
|
|
139
|
+
mapTexture = _ref5.mapTexture,
|
|
140
|
+
_ref5$spriteScale = _ref5.spriteScale,
|
|
141
|
+
spriteScale = _ref5$spriteScale === void 0 ? 1 : _ref5$spriteScale;
|
|
177
142
|
if (this.mapTexture !== mapTexture) {
|
|
178
143
|
var _this$texture;
|
|
179
|
-
|
|
180
144
|
this.mapTexture = mapTexture;
|
|
181
145
|
(_this$texture = this.texture) === null || _this$texture === void 0 ? void 0 : _this$texture.destroy();
|
|
182
146
|
this.updateTexture(mapTexture);
|
|
183
147
|
}
|
|
184
|
-
|
|
185
148
|
return {
|
|
186
149
|
u_opacity: opacity || 1,
|
|
187
150
|
u_mapFlag: mapTexture ? 1 : 0,
|
|
@@ -193,7 +156,6 @@ var SpriteModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
193
156
|
key: "clearModels",
|
|
194
157
|
value: function clearModels() {
|
|
195
158
|
var _this$texture2;
|
|
196
|
-
|
|
197
159
|
cancelAnimationFrame(this.timer);
|
|
198
160
|
(_this$texture2 = this.texture) === null || _this$texture2 === void 0 ? void 0 : _this$texture2.destroy();
|
|
199
161
|
}
|
|
@@ -202,56 +164,48 @@ var SpriteModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
202
164
|
value: function () {
|
|
203
165
|
var _initModels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
204
166
|
var _this3 = this;
|
|
205
|
-
|
|
206
167
|
var _ref6, mapTexture, _ref6$spriteTop, spriteTop, _ref6$spriteUpdate, spriteUpdate, _ref6$spriteAnimate, spriteAnimate, createTexture2D, model;
|
|
207
|
-
|
|
208
168
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
209
|
-
while (1) {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
case 13:
|
|
244
|
-
case "end":
|
|
245
|
-
return _context.stop();
|
|
246
|
-
}
|
|
169
|
+
while (1) switch (_context.prev = _context.next) {
|
|
170
|
+
case 0:
|
|
171
|
+
_ref6 = this.layer.getLayerConfig(), mapTexture = _ref6.mapTexture, _ref6$spriteTop = _ref6.spriteTop, spriteTop = _ref6$spriteTop === void 0 ? 5000000 : _ref6$spriteTop, _ref6$spriteUpdate = _ref6.spriteUpdate, spriteUpdate = _ref6$spriteUpdate === void 0 ? 10000 : _ref6$spriteUpdate, _ref6$spriteAnimate = _ref6.spriteAnimate, spriteAnimate = _ref6$spriteAnimate === void 0 ? SPRITE_ANIMATE_DIR.DOWN : _ref6$spriteAnimate;
|
|
172
|
+
this.mapTexture = mapTexture;
|
|
173
|
+
this.spriteTop = spriteTop;
|
|
174
|
+
this.spriteUpdate = spriteUpdate;
|
|
175
|
+
spriteAnimate === 'up' ? this.spriteAnimate = SPRITE_ANIMATE_DIR.UP : this.spriteAnimate = SPRITE_ANIMATE_DIR.DOWN;
|
|
176
|
+
createTexture2D = this.rendererService.createTexture2D;
|
|
177
|
+
this.texture = createTexture2D({
|
|
178
|
+
height: 0,
|
|
179
|
+
width: 0
|
|
180
|
+
});
|
|
181
|
+
this.updateTexture(mapTexture);
|
|
182
|
+
setTimeout(function () {
|
|
183
|
+
_this3.updateModel();
|
|
184
|
+
}, 100);
|
|
185
|
+
_context.next = 11;
|
|
186
|
+
return this.layer.buildLayerModel({
|
|
187
|
+
moduleName: 'geometrySprite',
|
|
188
|
+
vertexShader: spriteVert,
|
|
189
|
+
fragmentShader: spriteFrag,
|
|
190
|
+
triangulation: this.planeGeometryTriangulation,
|
|
191
|
+
primitive: gl.POINTS,
|
|
192
|
+
depth: {
|
|
193
|
+
enable: false
|
|
194
|
+
},
|
|
195
|
+
blend: this.getBlend()
|
|
196
|
+
});
|
|
197
|
+
case 11:
|
|
198
|
+
model = _context.sent;
|
|
199
|
+
return _context.abrupt("return", [model]);
|
|
200
|
+
case 13:
|
|
201
|
+
case "end":
|
|
202
|
+
return _context.stop();
|
|
247
203
|
}
|
|
248
204
|
}, _callee, this);
|
|
249
205
|
}));
|
|
250
|
-
|
|
251
206
|
function initModels() {
|
|
252
207
|
return _initModels.apply(this, arguments);
|
|
253
208
|
}
|
|
254
|
-
|
|
255
209
|
return initModels;
|
|
256
210
|
}()
|
|
257
211
|
}, {
|
|
@@ -259,36 +213,28 @@ var SpriteModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
259
213
|
value: function () {
|
|
260
214
|
var _buildModels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
261
215
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
262
|
-
while (1) {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
case "end":
|
|
269
|
-
return _context2.stop();
|
|
270
|
-
}
|
|
216
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
217
|
+
case 0:
|
|
218
|
+
return _context2.abrupt("return", this.initModels());
|
|
219
|
+
case 1:
|
|
220
|
+
case "end":
|
|
221
|
+
return _context2.stop();
|
|
271
222
|
}
|
|
272
223
|
}, _callee2, this);
|
|
273
224
|
}));
|
|
274
|
-
|
|
275
225
|
function buildModels() {
|
|
276
226
|
return _buildModels.apply(this, arguments);
|
|
277
227
|
}
|
|
278
|
-
|
|
279
228
|
return buildModels;
|
|
280
229
|
}()
|
|
281
230
|
}, {
|
|
282
231
|
key: "updateTexture",
|
|
283
232
|
value: function updateTexture(mapTexture) {
|
|
284
233
|
var _this4 = this;
|
|
285
|
-
|
|
286
234
|
var createTexture2D = this.rendererService.createTexture2D;
|
|
287
|
-
|
|
288
235
|
if (mapTexture) {
|
|
289
236
|
var img = new Image();
|
|
290
237
|
img.crossOrigin = 'anonymous';
|
|
291
|
-
|
|
292
238
|
img.onload = function () {
|
|
293
239
|
_this4.texture = createTexture2D({
|
|
294
240
|
data: img,
|
|
@@ -297,10 +243,8 @@ var SpriteModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
297
243
|
wrapS: gl.CLAMP_TO_EDGE,
|
|
298
244
|
wrapT: gl.CLAMP_TO_EDGE
|
|
299
245
|
});
|
|
300
|
-
|
|
301
246
|
_this4.layerService.reRender();
|
|
302
247
|
};
|
|
303
|
-
|
|
304
248
|
img.src = mapTexture;
|
|
305
249
|
} else {
|
|
306
250
|
this.texture = createTexture2D({
|
|
@@ -315,8 +259,6 @@ var SpriteModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
315
259
|
return '';
|
|
316
260
|
}
|
|
317
261
|
}]);
|
|
318
|
-
|
|
319
262
|
return SpriteModel;
|
|
320
263
|
}(BaseModel);
|
|
321
|
-
|
|
322
264
|
export { SpriteModel as default };
|
package/es/canvas/index.js
CHANGED
|
@@ -7,63 +7,45 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConst
|
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
9
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
10
|
-
|
|
11
10
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12
|
-
|
|
13
11
|
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; } }
|
|
14
|
-
|
|
15
12
|
import BaseLayer from "../core/BaseLayer";
|
|
16
13
|
import CanvasModels from "./models/index";
|
|
17
|
-
|
|
18
14
|
var CanvasLayer = /*#__PURE__*/function (_BaseLayer) {
|
|
19
15
|
_inherits(CanvasLayer, _BaseLayer);
|
|
20
|
-
|
|
21
16
|
var _super = _createSuper(CanvasLayer);
|
|
22
|
-
|
|
23
17
|
function CanvasLayer() {
|
|
24
18
|
var _this;
|
|
25
|
-
|
|
26
19
|
_classCallCheck(this, CanvasLayer);
|
|
27
|
-
|
|
28
20
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
29
21
|
args[_key] = arguments[_key];
|
|
30
22
|
}
|
|
31
|
-
|
|
32
23
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
33
|
-
|
|
34
24
|
_defineProperty(_assertThisInitialized(_this), "type", 'CanvasLayer');
|
|
35
|
-
|
|
36
25
|
_defineProperty(_assertThisInitialized(_this), "forceRender", true);
|
|
37
|
-
|
|
38
26
|
return _this;
|
|
39
27
|
}
|
|
40
|
-
|
|
41
28
|
_createClass(CanvasLayer, [{
|
|
42
29
|
key: "buildModels",
|
|
43
30
|
value: function () {
|
|
44
31
|
var _buildModels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
45
32
|
var modelType;
|
|
46
33
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
47
|
-
while (1) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
case "end":
|
|
57
|
-
return _context.stop();
|
|
58
|
-
}
|
|
34
|
+
while (1) switch (_context.prev = _context.next) {
|
|
35
|
+
case 0:
|
|
36
|
+
modelType = this.getModelType();
|
|
37
|
+
this.layerModel = new CanvasModels[modelType](this);
|
|
38
|
+
_context.next = 4;
|
|
39
|
+
return this.initLayerModels();
|
|
40
|
+
case 4:
|
|
41
|
+
case "end":
|
|
42
|
+
return _context.stop();
|
|
59
43
|
}
|
|
60
44
|
}, _callee, this);
|
|
61
45
|
}));
|
|
62
|
-
|
|
63
46
|
function buildModels() {
|
|
64
47
|
return _buildModels.apply(this, arguments);
|
|
65
48
|
}
|
|
66
|
-
|
|
67
49
|
return buildModels;
|
|
68
50
|
}()
|
|
69
51
|
}, {
|
|
@@ -73,7 +55,6 @@ var CanvasLayer = /*#__PURE__*/function (_BaseLayer) {
|
|
|
73
55
|
if (this.layerModel.clearCanvas) {
|
|
74
56
|
this.layerModel.clearCanvas();
|
|
75
57
|
}
|
|
76
|
-
|
|
77
58
|
this.updateLayerConfig({
|
|
78
59
|
visible: false
|
|
79
60
|
});
|
|
@@ -84,12 +65,10 @@ var CanvasLayer = /*#__PURE__*/function (_BaseLayer) {
|
|
|
84
65
|
key: "renderModels",
|
|
85
66
|
value: function renderModels() {
|
|
86
67
|
var _this$layerModel,
|
|
87
|
-
|
|
88
|
-
|
|
68
|
+
_this2 = this;
|
|
89
69
|
if (this !== null && this !== void 0 && (_this$layerModel = this.layerModel) !== null && _this$layerModel !== void 0 && _this$layerModel.renderUpdate) {
|
|
90
70
|
this.layerModel.renderUpdate();
|
|
91
71
|
}
|
|
92
|
-
|
|
93
72
|
this.models.forEach(function (model) {
|
|
94
73
|
model.draw({
|
|
95
74
|
uniforms: _this2.layerModel.getUninforms()
|
|
@@ -112,8 +91,6 @@ var CanvasLayer = /*#__PURE__*/function (_BaseLayer) {
|
|
|
112
91
|
return 'canvas';
|
|
113
92
|
}
|
|
114
93
|
}]);
|
|
115
|
-
|
|
116
94
|
return CanvasLayer;
|
|
117
95
|
}(BaseLayer);
|
|
118
|
-
|
|
119
96
|
export { CanvasLayer as default };
|