ant-design / pro-flow

🪢 A React based Flow Framework, include Flow View and Flow Editor
https://pro-flow.antdigital.dev
MIT License
264 stars 18 forks source link

🐛 fix: Some minor features optimization #83

Closed ModestFun closed 9 months ago

ModestFun commented 9 months ago
  1. export type NodeProps
  2. export screenToFlowPosition for FlowEditorInstance
  3. fix bug: FlowEditor won't always loading when nodes empty
  4. add deselectAll before delete
  5. add deleteNodes and deleteEdges function
github-actions[bot] commented 9 months ago

🎊 PR Preview 4e8e4e5159bc2844c7fbe91e69be6a08e0c3b1bb has been successfully built and deployed to https://ant-design-pro-flow-preview-pr-83.surge.sh

:clock1: Build time: 64.605s

🤖 By surge-preview

codecov-commenter commented 9 months ago

Codecov Report

Attention: 77 lines in your changes are missing coverage. Please review.

Comparison is base (ab3a670) 2.08% compared to head (4e8e4e5) 2.07%. Report is 1 commits behind head on master.

Files Patch % Lines
src/FlowEditor/container/FlowEditor.tsx 0.00% 18 Missing :warning:
src/BasicGroupNode/demos/data.ts 0.00% 14 Missing :warning:
src/FlowEditor/store/slices/nodesSlice.ts 0.00% 13 Missing :warning:
src/FlowEditor/store/slices/edgesSlice.ts 0.00% 9 Missing :warning:
src/FlowView/demos/data.tsx 0.00% 8 Missing :warning:
docs/caseShow/demos/pipelineDemo.tsx 0.00% 3 Missing :warning:
src/FlowEditor/store/slices/generalActionSlice.ts 0.00% 3 Missing :warning:
src/FlowEditor/hooks/useFlowEditor.ts 0.00% 2 Missing :warning:
src/FlowView/provider/FlowViewProvider.tsx 0.00% 2 Missing :warning:
src/FlowView/provider/provider.ts 0.00% 2 Missing :warning:
... and 3 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #83 +/- ## ========================================= - Coverage 2.08% 2.07% -0.01% ========================================= Files 148 148 Lines 9365 9390 +25 Branches 174 174 ========================================= Hits 195 195 - Misses 9170 9195 +25 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 9 months ago

:tada: This PR is included in version 1.2.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: