Skip to content

Commit

Permalink
[chore] bump nebula; add picking width for polygons; preserve rectang…
Browse files Browse the repository at this point in the history
…les; (#2097)
  • Loading branch information
igorDykhta committed Jan 26, 2023
1 parent eeb50d6 commit 83673fd
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"@deck.gl/test-utils": "^8.6.0",
"@loaders.gl/polyfills": "^3.0.9",
"@luma.gl/test-utils": "^8.5.10",
"@nebula.gl/layers": "1.0.2-alpha.0",
"@nebula.gl/layers": "1.0.2-alpha.1",
"@probe.gl/env": "^3.0.1",
"@probe.gl/test-utils": "^3.0.1",
"@testing-library/react-hooks": "^3.4.2",
Expand Down
2 changes: 1 addition & 1 deletion src/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@kepler.gl/table": "3.0.0-alpha.0",
"@kepler.gl/types": "3.0.0-alpha.0",
"@kepler.gl/utils": "3.0.0-alpha.0",
"@nebula.gl/edit-modes": "1.0.2-alpha.0",
"@nebula.gl/edit-modes": "1.0.2-alpha.1",
"@tippyjs/react": "^4.2.0",
"@types/classnames": "^2.3.1",
"@types/d3-array": "^2.0.0",
Expand Down
4 changes: 2 additions & 2 deletions src/layers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
"@loaders.gl/gltf": "^3.0.9",
"@luma.gl/constants": "^8.5.10",
"@mapbox/geojson-normalize": "0.0.1",
"@nebula.gl/layers": "1.0.2-alpha.0",
"@nebula.gl/edit-modes": "1.0.2-alpha.0",
"@nebula.gl/layers": "1.0.2-alpha.1",
"@nebula.gl/edit-modes": "1.0.2-alpha.1",
"@turf/bbox": "^6.0.1",
"@turf/helpers": "^6.1.4",
"@types/geojson": "^7946.0.7",
Expand Down
6 changes: 5 additions & 1 deletion src/layers/src/editor-layer/editor-layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,13 @@ export function getEditorLayer({
pickable: true,
pickingRadius: EDITOR_LAYER_PICKING_RADIUS,
modeConfig: {
viewport
viewport,
screenSpace: true,
lockRectangles: true
},

pickingLineWidthExtraPixels: 5,

// Only show fill when polygons are selected,
// there is no way atm to enable fill for only one feature
filled: selectedFeatureIndexes.length > 0,
Expand Down
2 changes: 1 addition & 1 deletion src/processors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@loaders.gl/json": "^3.0.9",
"@loaders.gl/loader-utils": "^3.0.9",
"@mapbox/geojson-normalize": "0.0.1",
"@nebula.gl/edit-modes": "1.0.2-alpha.0",
"@nebula.gl/edit-modes": "1.0.2-alpha.1",
"@turf/helpers": "^6.1.4",
"d3-dsv": "^2.0.0"
},
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2229,10 +2229,10 @@
resolved "https://registry.yarnpkg.com/@mdn/browser-compat-data/-/browser-compat-data-3.3.14.tgz#b72a37c654e598f9ae6f8335faaee182bebc6b28"
integrity sha512-n2RC9d6XatVbWFdHLimzzUJxJ1KY8LdjqrW6YvGPiRmsHkhOUx74/Ct10x5Yo7bC/Jvqx7cDEW8IMPv/+vwEzA==

"@nebula.gl/edit-modes@1.0.2-alpha.0":
version "1.0.2-alpha.0"
resolved "https://registry.yarnpkg.com/@nebula.gl/edit-modes/-/edit-modes-1.0.2-alpha.0.tgz#e91ec7d692fb24815e2882d2f7edceab062b0489"
integrity sha512-SQfksd7c4H0r5Zf+3ElDUQBttk1gSfT8skSeTWAq1Bv3t65zMZZuvWeQjI8mc+NQL33W8tDJuoGYw0uhYgVZ6g==
"@nebula.gl/edit-modes@1.0.2-alpha.1":
version "1.0.2-alpha.1"
resolved "https://registry.yarnpkg.com/@nebula.gl/edit-modes/-/edit-modes-1.0.2-alpha.1.tgz#ccfb6ed523d2ed368aac485f3c69290683e88e2c"
integrity sha512-8E6eXT/2tANvdGma3Z21a54UVDB5wdTVwNlhkZQKU+kP8sZCq3grYFRB4Uqt3WbZVvcfP9Yviyck84VxHszEXw==
dependencies:
"@turf/along" ">=6.3.0"
"@turf/area" ">=4.0.0"
Expand Down Expand Up @@ -2263,13 +2263,13 @@
lodash.throttle "^4.1.1"
viewport-mercator-project ">=6.0.0"

"@nebula.gl/layers@1.0.2-alpha.0":
version "1.0.2-alpha.0"
resolved "https://registry.yarnpkg.com/@nebula.gl/layers/-/layers-1.0.2-alpha.0.tgz#08b62b08134e57668e33ae47d097b73ba0be8e97"
integrity sha512-bSRqEvdauWUTIYf+RXamnYekSCBaA4tEkqGiD3xVZEsrgG0//BYsjHbSG62tpYY5FwSJEzPx6NeBRIxcJ+xPIg==
"@nebula.gl/layers@1.0.2-alpha.1":
version "1.0.2-alpha.1"
resolved "https://registry.yarnpkg.com/@nebula.gl/layers/-/layers-1.0.2-alpha.1.tgz#77cbcd68c4644a18ee7cfd3a5fd31b53821d77a0"
integrity sha512-qcKZ0E3KV+tZrPVPP7VcKEiePwhBtri7xb8Pmh4T7XIzltdF7dpzyrwCSYl0lDBVjrKSAo2Ccs90zzKcqQ8iPQ==
dependencies:
"@danmarshall/deckgl-typings" "4.9.12"
"@nebula.gl/edit-modes" "1.0.2-alpha.0"
"@nebula.gl/edit-modes" "1.0.2-alpha.1"
"@turf/bbox" ">=4.0.0"
"@turf/bbox-polygon" ">=4.0.0"
"@turf/bearing" ">=4.0.0"
Expand Down

0 comments on commit 83673fd

Please sign in to comment.