Code Monkey home page Code Monkey logo

react-sigplot's People

Contributors

desean1625 avatar mark-leone avatar midnightjava avatar mrecachinas avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-sigplot's Issues

XY Mode With options.all = true but only 32768 points are plotted

Hello Sigplot team,

I am debugging an issue right now where Sigplot is only willing to plot the first 32768 points that I provide it, but then cuts off the remaining points. I am not sure what would be causing this. I have found a few places in the code where the number 32768 is mentioned...

            // unless 'All' mode is set or 'xdata' mode is used
            // we emulate XPLOT by only showing the first 32768 points

But I do have all mode set, so I am not sure that would be relevant. Also, putting a breaking point there seems to indicate that particular portion of code is not relevant for my situation.

Let me know if ya'll have any thoughts. Appreciate the collaboration as always.

-Kevin

LayerPlugin

Add support for plugins on an individual layer -- e.g., highlights. This would look like

<SigPlot>
  <ArrayLayer>
    <LayerPlugin/>
  </ArrayLayer>
</SigPlot>

HrefLayer and WebsocketLayer Tests aren’t working

In the HrefLayer tests, the following lines fail

● <HrefLayer /> › reloads plot on href prop change
AssertionError: expected [] to have a length of 1 but got 0
...
> 686 |     expect(component.instance().plot._Gx.HCB).to.have.lengthOf(1);
● <HrefLayer /> › changes settings on options prop change
AssertionError: expected [] to have a length of 1 but got 0
...
> 717 |     expect(component.instance().plot._Gx.lyr).to.have.lengthOf(1);

Investigate whether `plot.deoverlay()` is necessary

In src/hreflayer.js and src/websocketlayer.js,

  componentDidMount() {
    const { href, onload, options } = this.props;
    this.plot.deoverlay(); // <----------------
    this.layer = this.plot.overlay_href(href, onload, options);
  }

  componentWillReceiveProps(nextProps) {
    const {
      href: oldHref,
      options: oldOptions,
    } = this.props;

    const {
      href: newHref,
      onload: newOnload,
      options: newOptions,
    } = nextProps;

    // we only care if `href` or `options` changes
    if (newHref !== oldHref) {
      this.plot.deoverlay(); // <----------------
      this.plot.overlay_href(newHref, newOnload, newOptions);
    } else if (newOptions !== oldOptions) {
      this.plot.change_settings(newOptions);
    } else {
      return;
    }
  }

src/websocketlayer.js looks roughly the same.

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.