Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

265
Visualizações
When using Neovis library, how to pass Vis.js' methods to the console?

I use neovis.js to build a graph, which imports vis.js. Vis.js's documentation guides me to pass getSeed() method to the console. How should I do this?

I've tried these to no avail:

  • getSeed();
  • NeoVis.getSeed();
  • viz._config.visConfig.getSeed();
about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

I've never used either of the packages that you've mentioned, but I did some digging and was able to find another user who was struggling with the same issue. Apparently the documentation you're looking at is referencing the Network type, so you'll need to instantiate a Network in order to use the getSeed() method

The answerer on the actual question page explained it more clearly, check it out: vis.js - how to run the getSeed() method

Hopefully this helps a bit!

about 4 years ago · Juan Pablo Isaza Relatório

0

If you look at the source at neovis.d.ts, you will see this line:

/**
 * The vis network object
 * @link https://visjs.github.io/vis-network/docs/network/#methods
 */
get network(): VisNetwork.Network | undefined;

And in your Neovis script you should have this:

viz = new NeoVis.default(config)

This is equivalent with var network = new vis.Network(container, data, options) in Vis.js' tutorial. So all you need is to use viz.network.getSeed() in the console.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda