Code Monkey home page Code Monkey logo

Comments (6)

aruniverse avatar aruniverse commented on May 27, 2024 1

You can disable the widget along with the measure-tools by setting the defaultUiConfig prop to:

const defaultUiConfig: ItwinViewerUi = {
  contentManipulationTools: {
    verticalItems: {
      measureTools: false
    }
  }
};

The readme describes how to use the pkg individually. We add it to the itwin-viewer by default and initialize measure-tools in there, so it doesn't exactly apply

from viewer-components-react.

NancyMcCallB avatar NancyMcCallB commented on May 27, 2024 1

@aruniverse The MeasureTools has to be responsible for hiding or showing based on contents. Here's an example in our providers test: https://github.com/iTwin/itwinjs-core/blob/master/test-apps/ui-items-providers-test/src/ui/widgets/SelectedElementDataWidget.tsx

from viewer-components-react.

aruniverse avatar aruniverse commented on May 27, 2024 1

@deanmarcussen , this should be fixed in the v0.7.0 of the measure-tools-react pkg

from viewer-components-react.

aruniverse avatar aruniverse commented on May 27, 2024

Hey Dean,

The widget is empty until you make an actual measurement and select it, at which point it will display the properties of the measurement. We'll look into only displaying it when a measurement is selected.

cc @bsteinbk , we should discuss how we want to handle these use cases

from viewer-components-react.

deanmarcussen avatar deanmarcussen commented on May 27, 2024

Cool, for my case, we prefer not to have the widget, we have too many custom ones already :)

I wasn’t sure if it was supposed to be part of the features set, as the timeline component moved to that arrangement and disappeared for a while until I discovered that.

also the readme says it still needs to be initialized, so maybe needs a tweak?

from viewer-components-react.

deanmarcussen avatar deanmarcussen commented on May 27, 2024

Thanks I'll try and get the upgrade to all out this week.

from viewer-components-react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.