Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

feat: port the Box layer into the reearth/core #377

Merged
merged 17 commits into from Dec 20, 2022
Merged

Conversation

keiya01
Copy link
Member

@keiya01 keiya01 commented Dec 15, 2022

Overview

What I've done

I have ported the Box layer into the reearth/core/features.
Also I have ported the clipping feature logic into Tileset component in the reearth/core/features.

What I haven't done

How I tested

Screenshot

Screen Shot 2022-12-14 at 19 44 25

Which point I want you to review particularly

Memo

@keiya01 keiya01 self-assigned this Dec 15, 2022
@netlify
Copy link

netlify bot commented Dec 15, 2022

Deploy Preview for reearth-web ready!

Name Link
🔨 Latest commit 59c9730
🔍 Latest deploy log https://app.netlify.com/sites/reearth-web/deploys/63a1686bb5f3fc0008b5f5d7
😎 Deploy Preview https://deploy-preview-377--reearth-web.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@keiya01 keiya01 changed the title Feat/add box to core feat: port the Box layer to reearth/core Dec 15, 2022
@keiya01 keiya01 changed the title feat: port the Box layer to reearth/core feat: port the Box layer into reearth/core Dec 15, 2022
@keiya01 keiya01 changed the title feat: port the Box layer into reearth/core feat: port the Box layer into the reearth/core Dec 15, 2022
@codecov
Copy link

codecov bot commented Dec 15, 2022

Codecov Report

Merging #377 (86db7c0) into main (7e18b82) will decrease coverage by 0.55%.
The diff coverage is 2.32%.

❗ Current head 86db7c0 differs from pull request most recent head 59c9730. Consider uploading reports for the commit 59c9730 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #377      +/-   ##
==========================================
- Coverage   24.71%   24.16%   -0.56%     
==========================================
  Files         598      610      +12     
  Lines       63139    64736    +1597     
  Branches     1258     1258              
==========================================
+ Hits        15605    15641      +36     
- Misses      47488    49049    +1561     
  Partials       46       46              
Impacted Files Coverage Δ
src/core/Map/types/event.ts 0.00% <0.00%> (ø)
src/core/Map/types/index.ts 0.00% <0.00%> (ø)
src/core/engines/Cesium/Feature/Box/Edge.tsx 0.00% <0.00%> (ø)
...rc/core/engines/Cesium/Feature/Box/ScalePoints.tsx 0.00% <0.00%> (ø)
src/core/engines/Cesium/Feature/Box/Side.tsx 0.00% <0.00%> (ø)
src/core/engines/Cesium/Feature/Box/constants.ts 0.00% <0.00%> (ø)
src/core/engines/Cesium/Feature/Box/hooks/box.ts 0.00% <0.00%> (ø)
src/core/engines/Cesium/Feature/Box/hooks/edge.ts 0.00% <0.00%> (ø)
...ore/engines/Cesium/Feature/Box/hooks/scalePoint.ts 0.00% <0.00%> (ø)
src/core/engines/Cesium/Feature/Box/hooks/side.ts 0.00% <0.00%> (ø)
... and 10 more

src/util/value.ts Outdated Show resolved Hide resolved
src/core/engines/Cesium/Feature/Box/Edge.tsx Outdated Show resolved Hide resolved
@keiya01
Copy link
Member Author

keiya01 commented Dec 19, 2022

I've added onLayerEdit to context.
feat: add onLayerEdit property to context

@keiya01
Copy link
Member Author

keiya01 commented Dec 19, 2022

I fixed the box layer event handling.
fix: box event handling

src/core/engines/Cesium/Feature/Box/hooks/edge.ts Outdated Show resolved Hide resolved
src/core/engines/Cesium/Feature/Box/hooks/scalePoint.ts Outdated Show resolved Hide resolved
src/core/engines/Cesium/Feature/Tileset/index.tsx Outdated Show resolved Hide resolved
src/core/engines/Cesium/Feature/Tileset/index.tsx Outdated Show resolved Hide resolved
src/core/Map/types/index.ts Show resolved Hide resolved
src/core/engines/Cesium/Feature/context.ts Show resolved Hide resolved
Copy link
Member

@rot1024 rot1024 left a comment

Choose a reason for hiding this comment

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

Change Map/index.ts to pass onLayerEdit to Engine component.

@keiya01 keiya01 enabled auto-merge (squash) December 20, 2022 07:46
@keiya01 keiya01 merged commit f235f15 into main Dec 20, 2022
@keiya01 keiya01 deleted the feat/add-box-to-core branch December 20, 2022 07:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants