Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The returned result is not as expected #102

Open
DIHE-GitHub opened this issue Dec 23, 2022 · 2 comments
Open

The returned result is not as expected #102

DIHE-GitHub opened this issue Dec 23, 2022 · 2 comments

Comments

@DIHE-GitHub
Copy link

DIHE-GitHub commented Dec 23, 2022

Code to reproduce the problem: diff-err.zip
Run npm run start to get the following output:

Output:

unexpect-> [
  [
    "~",
    {
      "holes": [
        [
          " "
        ],
        [
          "-",
          {
            "depth": 11.5,
            "diameter": 8,
            "start": {
              "x": 218,
              "y": 241,
              "z": 9
            },
            "end": {
              "x": 220,
              "y": 241,
              "z": -2.5
            },
            "plankFaceId": "0",
            "name": "短木销_修改",
            "type": "PLANK"
          }
        ],
        [
          "+",
          {
            "depth": 11.5,
            "diameter": 8,
            "start": {
              "x": 218,
              "y": 241,
              "z": 9
            },
            "end": {
              "x": 218,
              "y": 241,
              "z": -2.5
            },
            "plankFaceId": "0",
            "name": "短木销",
            "type": "PLANK"
          }
        ]
      ]
    }
  ]
]
expect-> [
  [
    "~",
    {
      "holes": [
        [
          " "
        ],
        [
          "~",
          {
            "end": {
              "x": {
                "__old": 220,
                "__new": 218
              }
            },
            "name": {
              "__old": "短木销_修改",
              "__new": "短木销"
            }
          }
        ]
      ]
    }
  ]
]
@DIHE-GitHub
Copy link
Author

Is this a mistake? Or am I using it in the wrong way?

@ewoudenberg
Copy link
Collaborator

@DIHE-GitHub -- it's a bug, thanks for reporting it. I'm looking into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants