question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

simplify usage with RequireBin.com

See original GitHub issue

WaveDrom can be used with RequireBin.com in the following way:

var wavedrom = require('wavedrom');

// some parameters
var lane = {
    xs     : 10,    // tmpgraphlane0.width
    ys     : 10,    // tmpgraphlane0.height
    xg     : 120,   // tmpgraphlane0.x
    // yg     : 0,     // head gap
    yh0    : 0,     // head gap title
    yh1    : 0,     // head gap
    yf0    : 0,     // foot gap
    yf1    : 0,     // foot gap
    y0     : 5,     // tmpgraphlane0.y
    yo     : 30,    // tmpgraphlane1.y - y0;
    tgo    : -10,   // tmptextlane0.x - xg;
    ym     : 150,    // tmptextlane0.y - y0
    xlabel : 6,     // tmptextlabel.x - xg;
    xmax   : 1,
    scale  : 1,
    head   : {},
    foot   : {}
};

// add div into body
var div = document.createElement('div');
div.id = 'a0';
document.body.appendChild(div);

// added waveform
wavedrom.renderWaveForm(
  0,
  { signal:
    [
        { name: "clk",     wave: "p....." },
        { name: "Data",    wave: "x345x.",  data: ["head", "body", "tail"] },
        { name: "Request", wave: "01..0." }
    ]
  },
  'a',
  lane
);

We should probably make simplified method to deal with it.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
dromcommented, Jan 30, 2016

Well, I have updated WaveDrom to v1.2.1 now wavedrom.renderWaveForm() ignores the last argument and don’t need the lane data structure.

var wavedrom = require('wavedrom');

// add div into body
var div = document.createElement('div');
div.id = 'a0';
document.body.appendChild(div);

// added waveform
wavedrom.renderWaveForm(
  0,
  { signal:
    [
        { name: "clk",     wave: "p....." },
        { name: "Data",    wave: "x345x.",  data: ["head", "body", "tail"] },
        { name: "Request", wave: "01..0." }
    ]
  },
  'a'
);

Plus one line in HTML.

<script src="http://wavedrom.com/skins/default.js" type="text/javascript"></script>
0reactions
dromcommented, Apr 23, 2020

LGTM

Read more comments on GitHub >

github_iconTop Results From Across the Web

simplify usage with RequireBin.com · Issue #116 · wavedrom ...
WaveDrom can be used with RequireBin.com in the following way: var wavedrom = require('wavedrom'); // some parameters var lane = { xs :...
Read more >
Simplify The Requirements - Wiki
SimplifyTheRequirements is a relative of DoTheSimplestThingThatCouldPossiblyWork. Of course, once you have simplified the requirements, then you can still ...
Read more >
simplify - Verb Forms - Oxford Learner's Dictionaries
Definition of simplify verb in Oxford Advanced American Dictionary. Meaning, pronunciation, picture, example sentences, grammar, usage notes, synonyms and ...
Read more >
NetSuite Applications Suite - Setting Bin Preferences
Meeting Japanese Consumption Tax Requirements · Consumption Tax Overview - Japan ... Support for Simplified System Registration for CAS Users ...
Read more >
Salary Reduction Simplified Employee Pension Plan (SARSEP)
An employer can use less restrictive participation requirements than those listed, but not more restrictive ones. An employer can exclude the following ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found