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

[Bug] scaling the model will continuously grow the model, incomplete model display, etc;Mobile system incompatibility #3151

Open
linhuanfeng opened this issue Oct 23, 2024 · 0 comments
Labels
type: bug 🐞 Errors in functionality

Comments

@linhuanfeng
Copy link

Bug description

If the setting of model color is called, there will be problems such as scaling the model will continuously grow the model, incomplete model display, etc.

Steps to reproduce

If the setting of model color is called, there will be problems such as scaling the model will continuously grow the model, incomplete model display, etc

    updateRepProperty(sourceId, fieldName, ...args) {
      // console.log('updateRepProperty', sourceId);
      const methodName = `set${macro.capitalize(fieldName)}`;
      const source = this.$proxyManager.getProxyById(sourceId);
      const myRepresentations = this.$proxyManager
        .getRepresentations()
        .filter((r) => r.getInput() === source);
      for (let i = 0; i < myRepresentations.length; i++) {
        // console.log(myRepresentations[i]);
        if (myRepresentations[i][methodName]) {
          myRepresentations[i][methodName](...args);
        }
      }
      this.$proxyManager.renderAllViews();
    },

image

image

image

image

Detailed Behavior

No response

Expected Behavior

normal

Environment

  • vtk.js version: 28.12.4
  • Browsers: iphone13
  • OS: ios 15.4.1
@linhuanfeng linhuanfeng added the type: bug 🐞 Errors in functionality label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐞 Errors in functionality
Projects
None yet
Development

No branches or pull requests

1 participant