Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
5,777 additions
and 2,553 deletions.
- +39 −1 .circleci/config.yml
- +14 −1 .circleci/test.sh
- +29 −0 CHANGELOG.md
- +1 −1 CONTRIBUTING.md
- +12 −4 README.md
- +43 −0 devtools/test_dashboard/index-mathjax3.html
- +67 −0 devtools/test_dashboard/index-mathjax3chtml.html
- +1 −1 devtools/test_dashboard/index-strict.html
- +2 −2 devtools/test_dashboard/index.html
- +7 −1 devtools/test_dashboard/server.js
- +26 −26 dist/README.md
- +413 −0 dist/plot-schema.json
- +248 −92 dist/plotly-basic.js
- +5 −5 dist/plotly-basic.min.js
- +258 −93 dist/plotly-cartesian.js
- +5 −5 dist/plotly-cartesian.min.js
- +249 −92 dist/plotly-finance.js
- +4 −4 dist/plotly-finance.min.js
- +3 −3 dist/plotly-geo-assets.js
- +248 −92 dist/plotly-geo.js
- +4 −4 dist/plotly-geo.min.js
- +297 −100 dist/plotly-gl2d.js
- +8 −8 dist/plotly-gl2d.min.js
- +298 −100 dist/plotly-gl3d.js
- +4 −4 dist/plotly-gl3d.min.js
- +1 −1 dist/plotly-locale-cs.js
- +1 −1 dist/plotly-locale-cy.js
- +1 −1 dist/plotly-locale-de.js
- +1 −1 dist/plotly-locale-es.js
- +1 −1 dist/plotly-locale-fi.js
- +1 −1 dist/plotly-locale-fr.js
- +1 −1 dist/plotly-locale-it.js
- +1 −1 dist/plotly-locale-ja.js
- +1 −1 dist/plotly-locale-ko.js
- +1 −1 dist/plotly-locale-pt-br.js
- +1 −1 dist/plotly-locale-pt-pt.js
- +1 −1 dist/plotly-locale-ru.js
- +1 −1 dist/plotly-locale-sv.js
- +1 −1 dist/plotly-locale-sw.js
- +1 −1 dist/plotly-locale-uk.js
- +1 −1 dist/plotly-locale-zh-cn.js
- +248 −92 dist/plotly-mapbox.js
- +3 −3 dist/plotly-mapbox.min.js
- +311 −101 dist/plotly-strict.js
- +8 −8 dist/plotly-strict.min.js
- +324 −101 dist/plotly-with-meta.js
- +312 −101 dist/plotly.js
- +11 −11 dist/plotly.min.js
- +1 −1 dist/translation-keys.txt
- +0 −1 draftlogs/6077_change.md
- +768 −1,309 package-lock.json
- +16 −13 package.json
- +1 −0 src/components/colorbar/attributes.js
- +1 −0 src/components/colorbar/draw.js
- +28 −24 src/components/drawing/index.js
- +2 −1 src/components/legend/draw.js
- +10 −6 src/components/legend/style.js
- +106 −21 src/lib/svg_text_utils.js
- +9 −0 src/plot_api/plot_config.js
- +47 −5 src/plots/cartesian/axes.js
- +14 −0 src/plots/cartesian/layout_attributes.js
- +8 −0 src/plots/cartesian/tick_label_defaults.js
- +1 −0 src/plots/gl3d/layout/axis_defaults.js
- +1 −0 src/plots/polar/layout_attributes.js
- +1 −0 src/plots/smith/layout_defaults.js
- +1 −0 src/plots/ternary/layout_attributes.js
- +14 −25 src/snapshot/tosvg.js
- +1 −0 src/traces/carpet/ab_defaults.js
- +1 −0 src/traces/indicator/attributes.js
- +2 −0 src/traces/scatter/attributes.js
- +2 −0 src/traces/scatter/defaults.js
- +4 −4 src/traces/scatter/plot.js
- +1 −1 src/traces/scatter/style.js
- +1 −1 src/version.js
- +49 −8 stackgl_modules/index.js
- +10 −10 stackgl_modules/package-lock.json
- +2 −2 stackgl_modules/package.json
- +1 −1 tasks/noci_test.sh
- BIN test/image/baselines/date_axes-ticklabelstep.png
- BIN test/image/baselines/gl3d_alphahull5.png
- BIN test/image/baselines/h-colorbar05.png
- BIN test/image/baselines/indicator_attrs.png
- BIN test/image/baselines/legend-row-group-height.png
- BIN test/image/baselines/mathjax3___legend_mathjax_title_and_items.png
- BIN test/image/baselines/mathjax3___mathjax.png
- BIN test/image/baselines/mathjax3___parcats_grid_subplots.png
- BIN test/image/baselines/mathjax3___table_latex_multitrace_scatter.png
- BIN test/image/baselines/mathjax3___table_plain_birds.png
- BIN test/image/baselines/mathjax3___table_wrapped_birds.png
- BIN test/image/baselines/mathjax3___ternary-mathjax.png
- BIN test/image/baselines/pattern_bars.png
- BIN test/image/baselines/pattern_fgcolor_overlay_fillmode.png
- BIN test/image/baselines/period_positioning7.png
- BIN test/image/baselines/{z-pie_negative_values.png → pie_negative_values.png}
- BIN test/image/baselines/pie_textpad_radial.png
- BIN test/image/baselines/polar_ticks.png
- BIN test/image/baselines/scatter_fill_pattern.png
- BIN test/image/baselines/sunburst_packages_colorscale_novalue.png
- BIN test/image/baselines/ternary_array_styles.png
- +31 −12 test/image/compare_pixels_test.js
- +28 −8 test/image/make_baseline.js
- +23 −5 test/image/make_baseline.py
- +91 −0 test/image/mocks/date_axes-ticklabelstep.json
- +332 −0 test/image/mocks/gl3d_alphahull5.json
- +2 −0 test/image/mocks/h-colorbar05.json
- +1 −0 test/image/mocks/indicator_attrs.json
- +32 −0 test/image/mocks/legend-row-group-height.json
- +1 −0 test/image/mocks/period_positioning7.json
- 0 test/image/mocks/{z-pie_negative_values.json → pie_negative_values.json}
- +1 −0 test/image/mocks/polar_ticks.json
- +69 −0 test/image/mocks/scatter_fill_pattern.json
- +7 −0 test/image/mocks/ternary_array_styles.json
- +11 −0 test/jasmine/assets/load_script.js
- +88 −0 test/jasmine/bundle_tests/mathjax_config_test.js
- +17 −20 test/jasmine/bundle_tests/mathjax_test.js
- +9 −3 test/jasmine/karma.conf.js
- +413 −0 test/plot-schema.json
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,43 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Plotly.js Devtools - MathJax v3 loaded with svg output</title> | ||
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Open+Sans:600,400,300,200|Droid+Sans|PT+Sans+Narrow|Gravitas+One|Droid+Sans+Mono|Droid+Serif|Raleway|Old+Standard+TT"/> | ||
<link rel="stylesheet" type="text/css" href="./style.css"> | ||
</head> | ||
<body> | ||
<header> | ||
<img src="http://images.plot.ly/logo/plotlyjs-logo@2x.png" onClick="Tabs.reload();" /> | ||
<span id="reload-time"></span> | ||
|
||
<input id="mocks-search" type="text" placeholder="mocks search" /> | ||
<input id="css-transform" type="text" placeholder="css transform" /> | ||
</header> | ||
|
||
<section id="mocks-list"></section> | ||
|
||
<p id="pWithMathJax">MathJax $V^3$ with $svg$ output on the page as well as plotly graphs</p> | ||
<h4>no MathJax: Apple: $2, Orange: $3</h4> | ||
|
||
<div id="plots"> | ||
<div id="graph"></div> | ||
</div> | ||
<div id="snapshot"></div> | ||
|
||
<script> | ||
window.MathJax = { | ||
startup: { | ||
elements: [ | ||
document.getElementById('pWithMathJax') | ||
], | ||
// typeset: false, | ||
// in case the elements array is empty one could disable startup typeset | ||
// https://docs.mathjax.org/en/latest/options/startup/startup.html#the-configuration-block | ||
} | ||
}; | ||
</script> | ||
<script src="../../node_modules/mathjax-v3/es5/tex-svg.js"></script> | ||
<script charset="utf-8" id="source" src="../../build/plotly.js" type="module"></script> | ||
<script charset="utf-8" src="../../build/test_dashboard-bundle.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,67 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Plotly.js Devtools - MathJax v3 loaded with chtml output</title> | ||
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Open+Sans:600,400,300,200|Droid+Sans|PT+Sans+Narrow|Gravitas+One|Droid+Sans+Mono|Droid+Serif|Raleway|Old+Standard+TT"/> | ||
<link rel="stylesheet" type="text/css" href="./style.css"> | ||
</head> | ||
<body> | ||
<header> | ||
<img src="http://images.plot.ly/logo/plotlyjs-logo@2x.png" onClick="Tabs.reload();" /> | ||
<span id="reload-time"></span> | ||
|
||
<input id="mocks-search" type="text" placeholder="mocks search" /> | ||
<input id="css-transform" type="text" placeholder="css transform" /> | ||
</header> | ||
|
||
<section id="mocks-list"></section> | ||
|
||
<p>MathJax $V^3$ with $chtml$ output on the page and <b>svg</b> output on the plotly graphs</p> | ||
<div id="plots"> | ||
<div id="graph"></div> | ||
</div> | ||
<div id="snapshot"></div> | ||
|
||
<script> | ||
window.MathJax = window.MathJax || { | ||
// see https://github.com/mathjax/MathJax/issues/2705#issuecomment-859742446 | ||
loader: {load: ['output/svg']}, | ||
startup: { | ||
ready() { | ||
// Get the MathJax modules that we need. | ||
const {mathjax} = MathJax._.mathjax; | ||
const {SVG} = MathJax._.output.svg_ts; | ||
|
||
// Do the normal setup | ||
MathJax.startup.defaultReady(); | ||
|
||
// Create an SVG output jax and a new MathDocument that uses it. | ||
const svgOutput = new SVG(MathJax.config.svg); | ||
const svgDocument = mathjax.document(document, { | ||
...MathJax.config.options, | ||
InputJax: MathJax.startup.input, | ||
OutputJax: svgOutput | ||
}); | ||
|
||
// Define the SVG-based conversion methods | ||
MathJax.tex2svg = (math, options = {}) => { | ||
options.format = svgDocument.inputJax[0].name; | ||
return svgDocument.convert(math, options); | ||
}; | ||
/* | ||
MathJax.tex2svgPromise = (math, options = {}) => { | ||
options.format = svgDocument.inputJax[0].name; | ||
return mathjax.handleRetriesFor(() => svgDocument.convert(math, options)); | ||
}; | ||
*/ | ||
MathJax.svgStylesheet = () => svgOutput.styleSheet(svgDocument); | ||
} | ||
} | ||
}; | ||
</script> | ||
<script src="../../node_modules/mathjax-v3/es5/tex-chtml.js"></script> | ||
|
||
<script charset="utf-8" id="source" src="../../build/plotly.js" type="module"></script> | ||
<script charset="utf-8" src="../../build/test_dashboard-bundle.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.