https://github.com/plotly/plotly.js
- HEAD
- refs/heads/allow-partial-bundles-without-scatter
- refs/heads/antrg-test
- refs/heads/array-angleref
- refs/heads/auto-margin-pipeline-DEV
- refs/heads/automargin-title-hannah
- refs/heads/axis-line-draw
- refs/heads/bar3d
- refs/heads/benchmarks
- refs/heads/bring-back-es5-tests
- refs/heads/bugfix/container-ref-margin-aj
- refs/heads/build-with-esbuild
- refs/heads/build-with-esbuild_dev
- refs/heads/bump-madge-v7
- refs/heads/bundle-encoding
- refs/heads/chart2music_dev
- refs/heads/circle-ci-update-2
- refs/heads/config-react
- refs/heads/deprecate-mapbox
- refs/heads/deterministic-ids
- refs/heads/esbuild
- refs/heads/esbuild_dev
- refs/heads/explore-axes
- refs/heads/explore-axes-simple
- refs/heads/export-image
- refs/heads/fix-5141
- refs/heads/fix-5374
- refs/heads/fix-6263
- refs/heads/fix-6606
- refs/heads/fix-chrome-on-ci
- refs/heads/fix-font-export
- refs/heads/fix-zero-bar
- refs/heads/fix3974-parcoords-invisible-context-lines
- refs/heads/fix5505-mapbox-update
- refs/heads/fix6647-set-newshape-update
- refs/heads/gl3d-blend-rebase
- refs/heads/handle-coded-typed-arrays-performance
- refs/heads/hannah-dev
- refs/heads/image-flashing
- refs/heads/issue-4173
- refs/heads/jasmine-v4
- refs/heads/joss_paper
- refs/heads/legendgroup-orientation
- refs/heads/master
- refs/heads/match-scale-aj2
- refs/heads/mathjax-v4
- refs/heads/mult-axis-formatting-move-lines
- refs/heads/new-test
- refs/heads/no-substr
- refs/heads/no-substr-plotlyjs-level
- refs/heads/no-tick-pad-if-no-axis-line
- refs/heads/no-true-reverse-autorange
- refs/heads/number-like-categories-misinterpret
- refs/heads/pr_7005-test
- refs/heads/revisit-template-coerce2-attrs
- refs/heads/rounded-bars_anim
- refs/heads/rounded-bars_new-anim
- refs/heads/sankey2-node-align
- refs/heads/shape-label-while-drawing
- refs/heads/splom-diagonal-histogram
- refs/heads/stackgl-stable-projections
- refs/heads/strip-comments-and-prettier-bundles
- refs/heads/texttemplate-meta
- refs/heads/title-shift-position
- refs/heads/try-bigger-clippad
- refs/heads/update-circleci-config
- refs/heads/upgrade-d3-to-v4
- refs/heads/upgrade-d3-to-v4_dev
- refs/heads/voronoi
- refs/heads/voronoi-treemap-quick-proto
- refs/reviewable/pr390/r1
- refs/reviewable/pr415/r1
- refs/reviewable/pr415/r2
- refs/reviewable/pr415/r3
- v2.9.0
- v2.8.3
- v2.8.2
- v2.8.1
- v2.8.0
- v2.7.0
- v2.6.4
- v2.6.3
- v2.6.2
- v2.6.1
- v2.6.0
- v2.5.1
- v2.5.0
- v2.4.2
- v2.4.1
- v2.4.0
- v2.34.0
- v2.33.0
- v2.32.0
- v2.31.1
- v2.31.0
- v2.30.1
- v2.30.0
- v2.3.1
- v2.3.0
- v2.29.1
- v2.29.0
- v2.28.0
- v2.27.1
- v2.27.0
- v2.26.2
- v2.26.1
- v2.26.0
- v2.25.2
- v2.25.1
- v2.25.0
- v2.24.3
- v2.24.2
- v2.24.1
- v2.24.0
- v2.23.2
- v2.23.1
- v2.23.0
- v2.22.0
- v2.21.0
- v2.20.0
- v2.2.1
- v2.2.0
- v2.19.1
- v2.19.0
- v2.18.2
- v2.18.1
- v2.18.0
- v2.17.1
- v2.17.0
- v2.16.5
- v2.16.4
- v2.16.3
- v2.16.2
- v2.16.1
- v2.16.0
- v2.15.1
- v2.15.0
- v2.14.0
- v2.13.3
- v2.13.2
- v2.13.1
- v2.13.0
- v2.12.1
- v2.12.0
- v2.11.1
- v2.11.0
- v2.10.1
- v2.10.0
- v2.1.0
- v2.0.0-rc.3
- v2.0.0-rc.2
- v2.0.0-rc.1
- v2.0.0-rc.0
- v2.0.0
- v1.9.0
- v1.8.0
- v1.7.1
- v1.7.0
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.58.5
- v1.58.4
- v1.58.3
- v1.58.2
- v1.58.1
- v1.58.0
- v1.57.1
- v1.57.0
- v1.56.0
- v1.55.2
- v1.55.1
- v1.55.0
- v1.54.7
- v1.54.6
- v1.54.5
- v1.54.4
- v1.54.3
- v1.54.2
- v1.54.1
- v1.54.0
- v1.53.0
- v1.52.3
- v1.52.2
- v1.52.1
- v1.52.0
- v1.51.3
- v1.51.2
- v1.51.1
- v1.51.0
- v1.50.1
- v1.50.0
- v1.5.2
- v1.5.1
- v1.5.0
- v1.49.5
- v1.49.4
- v1.49.3
- v1.49.2
- v1.49.1
- v1.49.0
- v1.48.3
- v1.48.2
- v1.48.1
- v1.48.0
- v1.47.4
- v1.47.3
- v1.47.2
- v1.47.1
- v1.47.0
- v1.46.1
- v1.46.0
- v1.45.3
- v1.45.2
- v1.45.1
- v1.45.0
- v1.44.4
- v1.44.3
- v1.44.2
- v1.44.1
- v1.44.0
- v1.43.2
- v1.43.1
- v1.43.0
- v1.42.5
- v1.42.4
- v1.42.3
- v1.42.2
- v1.42.1
- v1.42.0
- v1.41.3
- v1.41.2
- v1.41.1
- v1.41.0
- v1.40.1
- v1.40.0
- v1.4.1
- v1.4.0
- v1.39.4
- v1.39.3
- v1.39.2
- v1.39.1
- v1.39.0
- v1.38.3
- v1.38.2
- v1.38.1
- v1.38.0
- v1.37.1
- v1.37.0
- v1.36.1
- v1.36.0
- v1.35.2
- v1.35.1
- v1.35.0
- v1.34.0
- v1.33.1
- v1.33.0
- v1.32.0-onprem
- v1.32.0
- v1.31.2
- v1.31.1
- v1.31.0
- v1.30.1
- v1.30.0
- v1.3.1
- v1.3.0
- v1.29.3
- v1.29.2
- v1.29.1
- v1.29.0
- v1.28.3
- v1.28.2
- v1.28.1
- v1.28.0
- v1.27.1
- v1.27.0
- v1.26.1
- v1.26.0
- v1.25.2
- v1.25.1
- v1.25.0
- v1.24.2
- v1.24.1
- v1.24.0
- v1.23.2
- v1.23.1
- v1.23.0
- v1.22.0
- v1.21.3
- v1.21.2
- v1.21.1
- v1.21.0
- v1.20.5
- v1.20.4
- v1.20.3
- v1.20.2
- v1.20.1
- v1.20.0
- v1.2.1
- v1.2.0
- v1.19.2
- v1.19.1
- v1.19.0
- v1.18.1
- v1.18.0
- v1.17.3
- v1.17.2
- v1.17.1
- v1.17.0
- v1.16.5
- v1.16.4
- v1.16.3
- v1.16.2
- v1.16.1
- v1.16.0
- v1.15.0
- v1.14.2
- v1.14.1
- v1.14.0
- v1.13.0
- v1.12.0
- v1.11.0
- v1.10.5
- v1.10.4
- v1.10.3
- v1.10.2
- v1.10.1
- v1.10.0
- v1.1.1
- v1.1.0
- v1.0.0
Raw File
Take a new snapshot of a software origin
If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.
Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.![swh spinner](/static/img/swh-spinner.gif)
Processing "take a new snapshot" request ...
Permalinks
To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.
Tip revision: 32d46313a6c7dcdd46ebb608f7a18ce70201645a authored by archmoj on 22 April 2021, 15:01:59 UTC
2.0.0-rc.1
2.0.0-rc.1
Tip revision: 32d4631
test_plain_obj.js
var jsdom = require('jsdom');
var fs = require('fs');
var plotlyServerDom = new jsdom.JSDOM('', { runScripts: 'dangerously'});
// Mock a few things that jsdom doesn't support out-of-the-box
plotlyServerDom.window.URL.createObjectURL = function() {};
// Run Plotly inside jsdom
var plotlyJsPath = require.resolve('../dist/plotly.js');
var plotlyJsSource = fs.readFileSync(plotlyJsPath, 'utf-8');
plotlyServerDom.window.eval(plotlyJsSource);
var assertValidate = function(fig, exp) {
console.log(fig);
var errorList = plotlyServerDom.window.Plotly.validate(fig.data, fig.layout);
if(exp) {
if(errorList !== undefined) throw 'should be valid:';
} else {
if(errorList === undefined) throw 'should not be valid:';
}
};
assertValidate({
data: [{ y: [1] }],
layout: {}
}, true);
assertValidate({
data: [{ z: false }],
layout: {}
}, false);