Skip to content

Using both the expandParent and extra will result in an error #1959

@hanruigit

Description

@hanruigit

Is there an existing issue for this?

  • I have searched the existing issues and this is a new bug.

Current Behavior

Image As shown in the figure, using both of these properties simultaneously will result in an error. By examining the code, it was found that the error occurred in the following method function clampNodeExtent({ width, height }, extent) { return [extent[0], [extent[1][0] - (width || 0), extent[1][1] - (height || 0)]]; } It seems that the code did not take into account the parameter transmission in the image

Expected Behavior

I hope this form of parameter transmission can also run normally without any errors

Steps To Reproduce

No response

Minimal reproduction of the issue with CodeSandbox

No response

Relevant log output

Anything else?

No response

Metadata

Metadata

Assignees

Labels

wontfixThis will not be worked on

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions