Navigation Menu

Skip to content

Commit

Permalink
Merge f0d1a1d into b8409be
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Jul 3, 2019
2 parents b8409be + f0d1a1d commit 81d0a6d
Show file tree
Hide file tree
Showing 79 changed files with 240 additions and 914 deletions.
2 changes: 1 addition & 1 deletion docs/developer-guide/custom-layers/composite-layers.md
Expand Up @@ -173,7 +173,7 @@ class LabeledIconLayer extends CompositeLayer {

### Forwarding Properties

There are a number of base `Layer` class props that are usually expected to propogate down to all sublayers, such as `fp64`, `pickable`, `visible`, `coordinateSystem` and `opacity`. It is desirable to just forward many of these props directly to the sublayers.
There are a number of base `Layer` class props that are usually expected to propogate down to all sublayers, such as `pickable`, `visible`, `coordinateSystem` and `opacity`. It is desirable to just forward many of these props directly to the sublayers.

There is a method `compositeLayer.getSubLayerProps` that handles a lot of these common compliance chore that were mentioned above. When calling it with a list of prop values that we care about, the list gets wrapped/populated with additional props that will help the sublayers align with deck.gl norms.

Expand Down
62 changes: 62 additions & 0 deletions docs/extensions/fp64-extension.md
@@ -0,0 +1,62 @@

# Fp64Extension

The `Fp64Extension` adds 64-bit precision to geospatial layers.

> Note: This extension is the equivalent of the `fp64` prop from older deck.gl versions. As of v6.3, the fp64 mode was deprecated in favor of the new default 32-bit projection mode that is comparable in precision but considerably more performant.
```js
import {GeoJsonLayer} from '@deck.gl/layers';
import {Fp64Extension} from '@deck.gl/extensions';

const layer = new GeoJsonLayer({
id: 'geojson-layer',
data: GEOJSON,
...
extensions: [new Fp64Extension()]
});
```

## Installation

To install the dependencies from NPM:

```bash
npm install deck.gl
# or
npm install @deck.gl/core @deck.gl/layers @deck.gl/extensions
```

```js
import {Fp64Extension} from '@deck.gl/extensions';
new Fp64Extension({});
```

To use pre-bundled scripts:

```html
<script src="https://unpkg.com/deck.gl@~7.0.0/dist.min.js"></script>
<!-- or -->
<script src="https://unpkg.com/@deck.gl/core@~7.0.0/dist.min.js"></script>
<script src="https://unpkg.com/@deck.gl/layers@~7.0.0/dist.min.js"></script>
<script src="https://unpkg.com/@deck.gl/extensions@~7.0.0/dist.min.js"></script>
```

```js
new deck.Fp64Extension({});
```

## Constructor

```js
new Fp64Extension();
```

## Layer Properties

When added to a layer via the `extensions` prop, the `Fp64Extension` requires the `coordinateSystem` prop of the layer to be `COORDINATE_SYSTEM.LNGLAT_DEPRECATED`.


## Source

[modules/extensions/src/fp64](https://github.com/uber/deck.gl/tree/master/modules/extensions/src/fp64)
7 changes: 0 additions & 7 deletions docs/layers/arc-layer.md
Expand Up @@ -2,7 +2,6 @@

<p class="badges">
<img src="https://img.shields.io/badge/@deck.gl/layers-lightgrey.svg?style=flat-square" alt="@deck.gl/layers" />
<img src="https://img.shields.io/badge/fp64-yes-blue.svg?style=flat-square" alt="64-bit" />
</p>

# ArcLayer
Expand Down Expand Up @@ -88,12 +87,6 @@ Inherits from all [Base Layer](/docs/api-reference/layer.md) properties.

### Render Options

##### `fp64` (Boolean, optional)

* Default: `false`

Whether the layer should be rendered in high-precision 64-bit mode. Note that since deck.gl v6.1, the default 32-bit projection uses a hybrid mode that matches 64-bit precision with significantly better performance.

##### `widthUnits` (String, optional)

* Default: `'pixels'`
Expand Down
1 change: 0 additions & 1 deletion docs/layers/bitmap-layer.md
Expand Up @@ -2,7 +2,6 @@

<p class="badges">
<img src="https://img.shields.io/badge/@deck.gl/layers-lightgrey.svg?style=flat-square" alt="@deck.gl/layers" />
<img src="https://img.shields.io/badge/fp64-yes-blue.svg?style=flat-square" alt="64-bit" />
</p>

# BitmapLayer
Expand Down
7 changes: 0 additions & 7 deletions docs/layers/column-layer.md
Expand Up @@ -2,7 +2,6 @@

<p class="badges">
<img src="https://img.shields.io/badge/@deck.gl/layers-lightgrey.svg?style=flat-square" alt="@deck.gl/layers" />
<img src="https://img.shields.io/badge/fp64-yes-blue.svg?style=flat-square" alt="64-bit" />
<img src="https://img.shields.io/badge/lighting-yes-blue.svg?style=flat-square" alt="lighting" />
</p>

Expand Down Expand Up @@ -154,12 +153,6 @@ Whether to generate a line wireframe of the column. The outline will have
"horizontal" lines closing the top and bottom polygons and a vertical line
(a "strut") for each vertex around the disk. Only applies if `extruded: true`.

##### `fp64` (Boolean, optional)

* Default: `false`

Whether the layer should be rendered in high-precision 64-bit mode. Note that since deck.gl v6.1, the default 32-bit projection uses a hybrid mode that matches 64-bit precision with significantly better performance.

##### `lineWidthUnits` (String, optional)

* Default: `'meters'`
Expand Down
3 changes: 1 addition & 2 deletions docs/layers/contour-layer.md
Expand Up @@ -2,7 +2,6 @@

<p class="badges">
<img src="https://img.shields.io/badge/@deck.gl/aggregation--layers-lightgrey.svg?style=flat-square" alt="@deck.gl/aggregation-layers" />
<img src="https://img.shields.io/badge/fp64-yes-blue.svg?style=flat-square" alt="64-bit" />
</p>


Expand Down Expand Up @@ -118,7 +117,7 @@ A very small z offset that is added for each vertex of a contour (Isoline or Iso

* Default: `false`

Whether the layer should be rendered in high-precision 64-bit mode. Note that since deck.gl v6.1, the default 32-bit projection uses a hybrid mode that matches 64-bit precision with significantly better performance.
Whether the aggregation should be performed in high-precision 64-bit mode. Note that since deck.gl v6.1, the default 32-bit projection uses a hybrid mode that matches 64-bit precision with significantly better performance.

### Data Accessors

Expand Down
7 changes: 0 additions & 7 deletions docs/layers/cpu-grid-layer.md
Expand Up @@ -2,7 +2,6 @@

<p class="badges">
<img src="https://img.shields.io/badge/@deck.gl/aggregation--layers-lightgrey.svg?style=flat-square" alt="@deck.gl/aggregation-layers" />
<img src="https://img.shields.io/badge/fp64-yes-blue.svg?style=flat-square" alt="64-bit" />
<img src="https://img.shields.io/badge/lighting-yes-blue.svg?style=flat-square" alt="lighting" />
</p>

Expand Down Expand Up @@ -170,12 +169,6 @@ Filter cells and re-calculate elevation by `elevationLowerPercentile`. Cells wit
smaller than the elevationLowerPercentile will be hidden.


##### `fp64` (Boolean, optional)

* Default: `false`

Whether the layer should be rendered in high-precision 64-bit mode. Note that since deck.gl v6.1, the default 32-bit projection uses a hybrid mode that matches 64-bit precision with significantly better performance.

##### `material` (Object, optional)

* Default: `new PhongMaterial()`
Expand Down
7 changes: 0 additions & 7 deletions docs/layers/geojson-layer.md
Expand Up @@ -2,7 +2,6 @@

<p class="badges">
<img src="https://img.shields.io/badge/@deck.gl/layers-lightgrey.svg?style=flat-square" alt="@deck.gl/layers" />
<img src="https://img.shields.io/badge/fp64-yes-blue.svg?style=flat-square" alt="64-bit" />
<img src="https://img.shields.io/badge/lighting-yes-blue.svg?style=flat-square" alt="lighting" />
</p>

Expand Down Expand Up @@ -207,12 +206,6 @@ The maximum radius in pixels.
Justify dashes together.
Only works if `getLineDashArray` is specified.

##### `fp64` (Boolean, optional)

* Default: `false`

Whether the layer should be rendered in high-precision 64-bit mode. Note that since deck.gl v6.1, the default 32-bit projection uses a hybrid mode that matches 64-bit precision with significantly better performance.

##### `material` (Object, optional)

* Default: `new PhongMaterial()`
Expand Down
3 changes: 1 addition & 2 deletions docs/layers/gpu-grid-layer.md
Expand Up @@ -2,7 +2,6 @@

<p class="badges">
<img src="https://img.shields.io/badge/@deck.gl/aggregation--layers-lightgrey.svg?style=flat-square" alt="@deck.gl/aggregation-layers" />
<img src="https://img.shields.io/badge/fp64-yes-blue.svg?style=flat-square" alt="64-bit" />
<img src="https://img.shields.io/badge/lighting-yes-blue.svg?style=flat-square" alt="lighting" />
</p>

Expand Down Expand Up @@ -142,7 +141,7 @@ Whether to enable cell elevation. Cell elevation scale by count of points in eac

* Default: `false`

Whether the layer should be rendered in high-precision 64-bit mode. Note that since deck.gl v6.1, the default 32-bit projection uses a hybrid mode that matches 64-bit precision with significantly better performance.
Whether the aggregation should be performed in high-precision 64-bit mode. Note that since deck.gl v6.1, the default 32-bit projection uses a hybrid mode that matches 64-bit precision with significantly better performance.

##### `gpuAggregation` (bool, optional)

Expand Down
7 changes: 0 additions & 7 deletions docs/layers/grid-cell-layer.md
Expand Up @@ -3,7 +3,6 @@

<p class="badges">
<img src="https://img.shields.io/badge/@deck.gl/layers-lightgrey.svg?style=flat-square" alt="@deck.gl/layers" />
<img src="https://img.shields.io/badge/fp64-yes-blue.svg?style=flat-square" alt="64-bit" />
<img src="https://img.shields.io/badge/lighting-yes-blue.svg?style=flat-square" alt="lighting" />
</p>

Expand Down Expand Up @@ -114,12 +113,6 @@ to scale all cell elevations without updating the data.

Whether to enable grid elevation. If set to false, all grid will be flat.

##### `fp64` (Boolean, optional)

* Default: `false`

Whether the layer should be rendered in high-precision 64-bit mode. Note that since deck.gl v6.1, the default 32-bit projection uses a hybrid mode that matches 64-bit precision with significantly better performance.

##### `material` (Object, optional)

* Default: `new PhongMaterial()`
Expand Down
4 changes: 1 addition & 3 deletions docs/layers/grid-layer.md
Expand Up @@ -2,8 +2,6 @@

<p class="badges">
<img src="https://img.shields.io/badge/@deck.gl/aggregation--layers-lightgrey.svg?style=flat-square" alt="@deck.gl/aggregation-layers" />
<img src="https://img.shields.io/badge/fp64-yes-blue.svg?style=flat-square" alt="64-bit" />
<img src="https://img.shields.io/badge/lighting-yes-blue.svg?style=flat-square" alt="lighting" />
</p>

# GridLayer
Expand Down Expand Up @@ -174,7 +172,7 @@ smaller than the elevationLowerPercentile will be hidden.

* Default: `false`

Whether the layer should be rendered in high-precision 64-bit mode. Note that since deck.gl v6.1, the default 32-bit projection uses a hybrid mode that matches 64-bit precision with significantly better performance.
Whether the aggregation should be performed in high-precision 64-bit mode. Note that since deck.gl v6.1, the default 32-bit projection uses a hybrid mode that matches 64-bit precision with significantly better performance.

##### `gpuAggregation` (bool, optional)

Expand Down
1 change: 0 additions & 1 deletion docs/layers/h3-cluster-layer.md
Expand Up @@ -2,7 +2,6 @@

<p class="badges">
<img src="https://img.shields.io/badge/@deck.gl/geo--layers-lightgrey.svg?style=flat-square" alt="@deck.gl/geo-layers" />
<img src="https://img.shields.io/badge/fp64-yes-blue.svg?style=flat-square" alt="64-bit" />
<img src="https://img.shields.io/badge/lighting-yes-blue.svg?style=flat-square" alt="lighting" />
</p>

Expand Down
1 change: 0 additions & 1 deletion docs/layers/h3-hexagon-layer.md
Expand Up @@ -2,7 +2,6 @@

<p class="badges">
<img src="https://img.shields.io/badge/@deck.gl/geo--layers-lightgrey.svg?style=flat-square" alt="@deck.gl/geo-layers" />
<img src="https://img.shields.io/badge/fp64-yes-blue.svg?style=flat-square" alt="64-bit" />
<img src="https://img.shields.io/badge/lighting-yes-blue.svg?style=flat-square" alt="lighting" />
</p>

Expand Down
7 changes: 0 additions & 7 deletions docs/layers/hexagon-layer.md
Expand Up @@ -2,7 +2,6 @@

<p class="badges">
<img src="https://img.shields.io/badge/@deck.gl/aggregation--layers-lightgrey.svg?style=flat-square" alt="@deck.gl/aggregation-layers" />
<img src="https://img.shields.io/badge/fp64-yes-blue.svg?style=flat-square" alt="64-bit" />
<img src="https://img.shields.io/badge/lighting-yes-blue.svg?style=flat-square" alt="lighting" />
</p>

Expand Down Expand Up @@ -187,12 +186,6 @@ larger than the elevationUpperPercentile will be hidden.
Filter bins and re-calculate elevation by `elevationLowerPercentile`. Hexagons with elevation value
smaller than the elevationLowerPercentile will be hidden.

##### `fp64` (Boolean, optional)

* Default: `false`

Whether the layer should be rendered in high-precision 64-bit mode. Note that since deck.gl v6.1, the default 32-bit projection uses a hybrid mode that matches 64-bit precision with significantly better performance.

##### `material` (Object, optional)

* Default: `new PhongMaterial()`
Expand Down
7 changes: 0 additions & 7 deletions docs/layers/icon-layer.md
Expand Up @@ -2,7 +2,6 @@

<p class="badges">
<img src="https://img.shields.io/badge/@deck.gl/layers-lightgrey.svg?style=flat-square" alt="@deck.gl/layers" />
<img src="https://img.shields.io/badge/fp64-yes-blue.svg?style=flat-square" alt="64-bit" />
</p>

# IconLayer
Expand Down Expand Up @@ -203,12 +202,6 @@ The minimum size in pixels.

The maximum size in pixels.

##### `fp64` (Boolean, optional)

- Default: `false`

Whether the layer should be rendered in high-precision 64-bit mode. Note that since deck.gl v6.1, the default 32-bit projection uses a hybrid mode that matches 64-bit precision with significantly better performance.

##### `billboard` (Boolean, optional)

- Default: `true`
Expand Down
7 changes: 0 additions & 7 deletions docs/layers/line-layer.md
Expand Up @@ -2,7 +2,6 @@

<p class="badges">
<img src="https://img.shields.io/badge/@deck.gl/layers-lightgrey.svg?style=flat-square" alt="@deck.gl/layers" />
<img src="https://img.shields.io/badge/fp64-yes-blue.svg?style=flat-square" alt="64-bit" />
</p>

# LineLayer
Expand Down Expand Up @@ -89,12 +88,6 @@ Inherits from all [Base Layer](/docs/api-reference/layer.md) properties.

The width used to draw each line. Unit is pixels.

##### `fp64` (Boolean, optional)

* Default: `false`

Whether the layer should be rendered in high-precision 64-bit mode. Note that since deck.gl v6.1, the default 32-bit projection uses a hybrid mode that matches 64-bit precision with significantly better performance.

##### `widthUnits` (String, optional)

* Default: `'pixels'`
Expand Down
7 changes: 0 additions & 7 deletions docs/layers/path-layer.md
Expand Up @@ -2,7 +2,6 @@

<p class="badges">
<img src="https://img.shields.io/badge/@deck.gl/layers-lightgrey.svg?style=flat-square" alt="@deck.gl/layers" />
<img src="https://img.shields.io/badge/fp64-yes-blue.svg?style=flat-square" alt="64-bit" />
</p>

# PathLayer
Expand Down Expand Up @@ -125,12 +124,6 @@ If `false`, the width always faces up.
The maximum extent of a joint in ratio to the stroke width.
Only works if `rounded` is `false`.

##### `fp64` (Boolean, optional)

* Default: `false`

Whether the layer should be rendered in high-precision 64-bit mode. Note that since deck.gl v6.1, the default 32-bit projection uses a hybrid mode that matches 64-bit precision with significantly better performance.

##### `dashJustified` (Boolean, optional)

* Default: `false`
Expand Down
7 changes: 0 additions & 7 deletions docs/layers/point-cloud-layer.md
Expand Up @@ -2,7 +2,6 @@

<p class="badges">
<img src="https://img.shields.io/badge/@deck.gl/layers-lightgrey.svg?style=flat-square" alt="@deck.gl/layers" />
<img src="https://img.shields.io/badge/fp64-yes-blue.svg?style=flat-square" alt="64-bit" />
<img src="https://img.shields.io/badge/lighting-yes-blue.svg?style=flat-square" alt="lighting" />
</p>

Expand Down Expand Up @@ -92,12 +91,6 @@ The units of the point size, one of `'meters'`, `'pixels'`. When zooming in and

Global radius of all points, in units specified by `sizeUnits` (default pixels).

##### `fp64` (Boolean, optional)

* Default: `false`

Whether the layer should be rendered in high-precision 64-bit mode. Note that since deck.gl v6.1, the default 32-bit projection uses a hybrid mode that matches 64-bit precision with significantly better performance.

##### `material` (Object, optional)

* Default: `new PhongMaterial()`
Expand Down
7 changes: 0 additions & 7 deletions docs/layers/polygon-layer.md
Expand Up @@ -2,7 +2,6 @@

<p class="badges">
<img src="https://img.shields.io/badge/@deck.gl/layers-lightgrey.svg?style=flat-square" alt="@deck.gl/layers" />
<img src="https://img.shields.io/badge/fp64-yes-blue.svg?style=flat-square" alt="64-bit" />
<img src="https://img.shields.io/badge/lighting-yes-blue.svg?style=flat-square" alt="lighting" />
</p>

Expand Down Expand Up @@ -185,12 +184,6 @@ Only works if `lineJointRounded` is `false`.
Justify dashes together.
Only works if `getLineDashArray` is specified.

##### `fp64` (Boolean, optional)

* Default: `false`

Whether the layer should be rendered in high-precision 64-bit mode. Note that since deck.gl v6.1, the default 32-bit projection uses a hybrid mode that matches 64-bit precision with significantly better performance.

##### `material` (Object, optional)

* Default: `new PhongMaterial()`
Expand Down
1 change: 0 additions & 1 deletion docs/layers/s2-layer.md
Expand Up @@ -2,7 +2,6 @@

<p class="badges">
<img src="https://img.shields.io/badge/@deck.gl/geo--layers-lightgrey.svg?style=flat-square" alt="@deck.gl/geo-layers" />
<img src="https://img.shields.io/badge/fp64-yes-blue.svg?style=flat-square" alt="64-bit" />
<img src="https://img.shields.io/badge/lighting-yes-blue.svg?style=flat-square" alt="lighting" />
</p>

Expand Down

0 comments on commit 81d0a6d

Please sign in to comment.