Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# deck.gl-community CHANGELOG

## v9.3.8

- fix(editable-layers): use named Turf imports so CJS/esbuild consumers no longer call missing `.default` exports (#679)
- chore(website): align the documentation build with the Turf 7 dependency baseline
- fix(layers): support orthographic path markers (#276)
- fix(editable-layers): persist the distance returned by `nearestPointOnLine` (#629)
- fix: update local development paths and React compiler options (#625)
- fix(layers): restore PathMarkerLayer and PathOutlineLayer v9 rendering (#660)
- chore(trace-layers): align the open source trace layers with Tracevis (#661)

## v9.3.7

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ The most basic modes are:

No edits are possible, but selection is still possible.

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/view-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/view-mode.ts)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve blob routes for source-file links

When readers click this source link, GitHub receives a /tree/9.3-release/.../view-mode.ts URL, but /tree/ addresses directories rather than files, so it does not open the referenced source file. This replacement changes every previously valid /blob/master/... file link in these API pages the same way; retain /blob/9.3-release/ for file targets while using /tree/ only for directories.

Useful? React with 👍 / 👎.


## DuplicateMode

User can duplicate and translate a feature by clicking selected feature and dragging anywhere on the screen.
This mode is extends TranslateMode. This mode supports multiple selections.

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/duplicate-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/duplicate-mode.ts)


## Composite Mode
Expand Down
34 changes: 17 additions & 17 deletions docs/modules/editable-layers/api-reference/edit-modes/draw-modes.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ Note that for all polygon drawing modes, the following options can also be provi

User can draw a new `Point` feature by clicking where the point is to be.

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/draw-point-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/draw-point-mode.ts)

## DrawLineStringMode

User can draw a new `LineString` feature by clicking positions to add. User finishes drawing by double-clicking.

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/draw-line-string-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/draw-line-string-mode.ts)

## ExtendLineStringMode

Expand All @@ -42,19 +42,19 @@ Callback parameters

- `position` (Array): An array containing the ground coordinates (i.e. [lng, lat]) of the added position

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/extend-line-string-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/extend-line-string-mode.ts)

## ResizeCircleMode

User can resize an existing circular Polygon feature by clicking and dragging along the ring.

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/resize-circle-mode.js)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/resize-circle-mode.js)

## DrawPolygonMode

User can draw a new `Polygon` feature by clicking positions to add then closing the polygon (or double-clicking).

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/draw-polygon-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/draw-polygon-mode.ts)

The following options can be provided in the `modeConfig` object:

Expand Down Expand Up @@ -94,13 +94,13 @@ When using the new configuration options, the following additional edit types ma

User can draw a new `Polygon` feature with 90 degree corners (right angle) by clicking positions to add then closing the polygon (or double-clicking). After clicking the 2 points, the draw mode guides/allows to have right angle polygon.

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/draw-90degree-polygon-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/draw-90degree-polygon-mode.ts)

## DrawPolygonByDraggingMode

User can draw a new `Polygon` feature by dragging (similar to the lasso tool commonly found in photo editing software).

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/draw-polygon-by-dragging-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/draw-polygon-by-dragging-mode.ts)

The following options can be provided in the `modeConfig` object:

Expand All @@ -111,7 +111,7 @@ The following options can be provided in the `modeConfig` object:

User can draw a new rectangular `Polygon` feature by clicking two opposing corners of the rectangle.

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/draw-rectangle-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/draw-rectangle-mode.ts)

The following options can be provided in the `modeConfig` object:

Expand All @@ -127,25 +127,25 @@ The following options can be provided in the `modeConfig` object:
- `dragToDraw` (optional): `boolean`
- If `true`, user can click and drag instead of clicking twice. Note however, that the user will not be able to pan the map while drawing.

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/draw-rectangle-from-center-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/draw-rectangle-from-center-mode.ts)

## DrawRectangleUsingThreePointsMode

User can draw a new rectangular `Polygon` feature by clicking three corners of the rectangle.

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/draw-rectangle-using-three-points-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/draw-rectangle-using-three-points-mode.ts)

## DrawSquareMode

User can draw a new square-shaped `Polygon` feature by clicking two opposing corners of the square.

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/draw-square-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/draw-square-mode.ts)

## DrawSquareFromCenterMode

User can draw a new square-shaped `Polygon` feature by clicking the center and then along one of the corners of the square.

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modesdraw-square-from-center-mode..ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modesdraw-square-from-center-mode..ts)

The following options can be provided in the `modeConfig` object:

Expand All @@ -163,7 +163,7 @@ The following options can be provided in the `modeConfig` object:
- `dragToDraw` (optional): `boolean`
- If `true`, user can click and drag instead of clicking twice. Note however, that the user will not be able to pan the map while drawing.

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modesdraw-circle-from-center-mode..ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modesdraw-circle-from-center-mode..ts)

## DrawCircleByDiameterMode

Expand All @@ -176,7 +176,7 @@ The following options can be provided in the `modeConfig` object:
- `dragToDraw` (optional): `boolean`
- If `true`, user can click and drag instead of clicking twice. Note however, that the user will not be able to pan the map while drawing.

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modesdraw-circle-by-diameter-mode..ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modesdraw-circle-by-diameter-mode..ts)

## DrawEllipseByBoundingBoxMode

Expand All @@ -187,13 +187,13 @@ The following options can be provided in the `modeConfig` object:
- `dragToDraw` (optional): `boolean`
- If `true`, user can click and drag instead of clicking twice. Note however, that the user will not be able to pan the map while drawing.

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/draw-ellipse-by-bounding-box-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/draw-ellipse-by-bounding-box-mode.ts)

## DrawEllipseUsingThreePointsMode

User can draw a new ellipse shape `Polygon` feature by clicking three points along the ring. Properties of the ellipse will be added to the resulting geometry in the object editProperties.

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/draw-ellipse-using-three-points-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/draw-ellipse-using-three-points-mode.ts)

## SplitPolygonMode

Expand All @@ -203,4 +203,4 @@ User can split a polygon by drawing a new `LineString` feature on top of the pol

- If the clicked position is inside the polygon, it will not split the polygon

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/split-polygon-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/split-polygon-mode.ts)
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The following options can be provided in the `modeConfig` object:
- If true, the measurement tooltips appear on the middle of their respective line segments rather than at the end
- Default: `false`

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/measure-distance-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/measure-distance-mode.ts)

## MeasureAreaMode

Expand All @@ -45,7 +45,7 @@ The following options can be provided in the `modeConfig` object:
- Function to call as measurements are calculated
- Default: `undefined`

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/measure-area-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/measure-area-mode.ts)

## MeasureAngleMode

Expand All @@ -62,7 +62,7 @@ The following options can be provided in the `modeConfig` object:
- Function to call as measurements are calculated
- Default: `undefined`

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/measure-angle-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/measure-angle-mode.ts)


## ElevationMode
Expand Down Expand Up @@ -92,4 +92,4 @@ if (mode === 'elevation') {
ElevationMode.calculateElevationChangeWithViewport(viewport, opts);
}
```
[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/elevation-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/elevation-mode.ts)
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,27 @@ Callbacks:

- `position` (Array): An array containing the ground coordinates (i.e. [lng, lat]) of the edited position

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/modify-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/modify-mode.ts)


## ExtrudeMode

User can move edge. Click and drag from anywhere between 2 points in edge.

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/extrude-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/extrude-mode.ts)


## ScaleMode

User can scale a feature about its centroid by clicking and dragging (inward or outward) the selected geometry. This mode supports multiple selections.

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/scale-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/scale-mode.ts)

## RotateMode

User can rotate a feature about its centroid by clicking and dragging the selected geometry. This mode supports multiple selections.

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/rotate-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/rotate-mode.ts)

## TranslateMode

Expand All @@ -50,16 +50,16 @@ The following options can be provided in the `modeConfig` object for TranslateMo
- `screenSpace` (optional): `<boolean>`
- If `true`, the features will be translated without distortion in screen space.

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/translate-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/translate-mode.ts)

## TransformMode

A single mode that provides translating, rotating, and scaling capabilities. Translation can be performed by clicking and dragging the selected feature itself. Rotating can be performed by clicking and dragging the top-most edit handle around a centroid pivot. Scaling can be performed by clicking and dragging one of the corner edit handles. Just like the individual modes, this mode supports multiple selections and feature snapping.

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/transform-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/transform-mode.ts)

## DeleteMode

User can delete features by clicking on them. Only the most recently added feature will be deleted if multiple features overlap.

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/edit-modes/delete-mode.ts)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/edit-modes/delete-mode.ts)
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,4 @@ Custom CSS class name added to the widget root element.

Update widget properties. Call this to sync the widget with React state changes. Automatically re-renders the tray.

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/widgets/edit-mode-tray-widget.tsx)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/widgets/edit-mode-tray-widget.tsx)
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,6 @@ The toolbar renders as a horizontal pill-shaped tray with three sections:
## See Also

- [EditModeTrayWidget](/docs/modules/editable-layers/api-reference/widgets/edit-mode-tray-widget) — Mode selection widget
- [Editor example](https://github.com/visgl/deck.gl-community/tree/master/examples/editable-layers/editor) — Complete example using both widgets
- [Editor example](https://github.com/visgl/deck.gl-community/tree/9.3-release/examples/editable-layers/editor) — Complete example using both widgets

[Source code](https://github.com/visgl/deck.gl-community/blob/master/modules/editable-layers/src/widgets/editor-toolbar-widget.tsx)
[Source code](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/editable-layers/src/widgets/editor-toolbar-widget.tsx)
4 changes: 2 additions & 2 deletions docs/modules/editable-layers/developer-guide/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export function GeometryEditor() {
}
```

See the [getting-started example](https://github.com/visgl/deck.gl-community/tree/master/examples/editable-layers/getting-started) for a complete runnable version.
See the [getting-started example](https://github.com/visgl/deck.gl-community/tree/9.3-release/examples/editable-layers/getting-started) for a complete runnable version.

## Widgets

Expand Down Expand Up @@ -132,7 +132,7 @@ const toolbarWidget = new EditorToolbarWidget({
});
```

See the [editor example](https://github.com/visgl/deck.gl-community/tree/master/examples/editable-layers/editor) for a full widgets-only editing setup, and the [Widget API docs](/docs/modules/editable-layers/api-reference/widgets/edit-mode-tray-widget) for the complete props reference.
See the [editor example](https://github.com/visgl/deck.gl-community/tree/9.3-release/examples/editable-layers/editor) for a full widgets-only editing setup, and the [Widget API docs](/docs/modules/editable-layers/api-reference/widgets/edit-mode-tray-widget) for the complete props reference.

## See Also

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ Delay in milliseconds before each repeated iteration. Default: `0`.

## Source

[modules/infovis-layers/src/layers/animation-layer/animation-layer.ts](https://github.com/visgl/deck.gl-community/tree/master/modules/infovis-layers/src/layers/animation-layer/animation-layer.ts)
[modules/infovis-layers/src/layers/animation-layer/animation-layer.ts](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/infovis-layers/src/layers/animation-layer/animation-layer.ts)
2 changes: 1 addition & 1 deletion docs/modules/infovis-layers/api-reference/block-layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ Pixel clamps applied after projecting block size.

## Source

[modules/infovis-layers/src/layers/block-layer/block-layer.ts](https://github.com/visgl/deck.gl-community/tree/master/modules/infovis-layers/src/layers/block-layer/block-layer.ts)
[modules/infovis-layers/src/layers/block-layer/block-layer.ts](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/infovis-layers/src/layers/block-layer/block-layer.ts)
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ RGBA color used by guide lines and the header label. Default: `[0, 0, 0, 255]`.

## Source

[modules/infovis-layers/src/layers/time-delta-layer.ts](https://github.com/visgl/deck.gl-community/tree/master/modules/infovis-layers/src/layers/time-delta-layer.ts)
[modules/infovis-layers/src/layers/time-delta-layer.ts](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/infovis-layers/src/layers/time-delta-layer.ts)
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ highlight sublayer.

## Source

[modules/layers/src/dependency-arrow-layer/dependency-arrow-layer.ts](https://github.com/visgl/deck.gl-community/tree/master/modules/layers/src/dependency-arrow-layer/dependency-arrow-layer.ts)
[modules/layers/src/dependency-arrow-layer/dependency-arrow-layer.ts](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/layers/src/dependency-arrow-layer/dependency-arrow-layer.ts)
2 changes: 1 addition & 1 deletion docs/modules/three/api-reference/tree-layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,4 @@ Crop positions are seeded deterministically from each tree's geographic coordina

## Source

[modules/three/src/tree-layer](https://github.com/visgl/deck.gl-community/tree/master/modules/three/src/tree-layer)
[modules/three/src/tree-layer](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/three/src/tree-layer)
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ Define the position and size of the chart. Defaults: `x:0`, `y:0`, `width:800`,

## Source

[modules/timeline-layers/src/layers/horizon-graph-layer](https://github.com/visgl/deck.gl-community/tree/master/modules/timeline-layers/src/layers/horizon-graph-layer)
[modules/timeline-layers/src/layers/horizon-graph-layer](https://github.com/visgl/deck.gl-community/tree/9.3-release/modules/timeline-layers/src/layers/horizon-graph-layer)
Loading
Loading