Skip to content

Commit a9471b5

Browse files
What's new updates for 8.5 (visgl#5542)
1 parent e225cd3 commit a9471b5

File tree

2 files changed

+57
-1
lines changed

2 files changed

+57
-1
lines changed

docs/api-reference/layers/text-layer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ Available options are `break-all` and `break-word`. A valid `maxWidth` has to be
169169

170170
* Default: `0`
171171

172-
Width of outline around the text, relative to the font size.
172+
Width of outline around the text, relative to the font size. Only effective if `fontSettings.sdf` is `true`.
173173

174174
##### `outlineColor` (Array, optional)
175175

docs/whats-new.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ This page contains highlights of each deck.gl release. Also check our [vis.gl bl
44

55
## deck.gl v8.5 (In development)
66

7+
Release date: TBD
8+
9+
10+
<table style="border: 0;" align="center">
11+
<tbody>
12+
<tr>
13+
<td>
14+
<img style="max-height:200px" src="https://github.com/visgl/deck.gl-data/blob/master/images/whats-new/text-layer-styling.gif?raw=true" />
15+
<p><i>TextLayer styling</i></p>
16+
</td>
17+
</tr>
18+
</tbody>
19+
</table>
20+
721
### MVT Layer
822

923
#### Direct binary parsing
@@ -19,6 +33,48 @@ Mapbox Vector Tiles parsing throughput is now 2-3x faster, due to MVT tiles bein
1933

2034
_Benchmarks ran using scripts on a 2012 MacBook Pro, 2.3 GHz Intel Core i7, 8 GB, measuring parsing time of MVTLoader only (network time and rendering is not included)_
2135

36+
37+
### Default transpilation and bundle size
38+
39+
The NPM distribution has dropped IE 11 support in exchange for an almost 20% reduction in size.
40+
41+
| Entry point | 8.5 Bundle (gzipped) | 8.4 Bundle (gzipped) | Comments |
42+
| --- | --- | --- | --- |
43+
| module (dist/esm) | 398 KB (115 KB) | 485 KB (128 KB) | Transpiled, tree-shaking enabled |
44+
| main (dist/es5) | 686 KB (178 KB) | 812 KB (197 KB) | Transpiled, no tree-shaking |
45+
46+
*Measured as the footprint of @deck.gl/core, bundled and minified with Webpack 4*
47+
48+
To support older or less common browsers, make sure that `node_modules` is included in your application's babel settings.
49+
50+
For backward compatibility, the pre-built bundle (`dist.min.js`) is not affected by this change.
51+
52+
53+
### TextLayer
54+
55+
New props are added for more flexible styling of the texts:
56+
57+
* `background`
58+
* `backgroundPadding`
59+
* `outlineWidth`
60+
* `outlineColor`
61+
* `getBackgroundColor`
62+
* `getBorderWidth`
63+
* `getBorderColor`
64+
65+
See [documentation](/docs/api-reference/layers/text-layer.md) for details.
66+
67+
### React
68+
69+
The `DeckGL` React component is rewritten using functional component and hooks.
70+
71+
### Other layer improvements
72+
73+
- `PathLayer` now supports controlling `jointRounded` and `capRounded` separately. Dashed lines via `PathStyleExtension` also respects the cap type.
74+
- `PolygonLayer` and `GeoJsonLayer`: `autoHighlight` now highlights both the outline and the fill of the hovered polygon, instead of either the outline or the fill.
75+
76+
77+
2278
## deck.gl v8.4
2379

2480
Release date: Jan 31, 2021

0 commit comments

Comments
 (0)