Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Master2 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5,877 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
5877 commits
Select commit Hold shift + click to select a range
b735a81
Merge pull request #6782 from plotly/bump-mapbox-v1.13.3
archmoj Nov 10, 2023
077e911
install virtual-webgl
archmoj Aug 24, 2023
43fd8b4
use plotly mapbox-gl v1.13.4
archmoj Nov 13, 2023
d5c03d8
add noCI flag to flaky splom test
archmoj Nov 13, 2023
5718547
add baseline and jasmine tests using virtual-webgl
archmoj Sep 6, 2023
5231272
Merge pull request #6780 from david-bezero/range-0
archmoj Nov 14, 2023
a0977bb
fix scattergl legend with marker angle array
archmoj Nov 18, 2023
fd91d7a
draftlog for PR 6787
archmoj Nov 18, 2023
33dc2de
Merge pull request #6787 from plotly/fix6770-scattergl-legend-marker-…
archmoj Nov 20, 2023
264617b
drawLabels: don't attempt to re-fix label if it is already rotated by…
my-tien Nov 22, 2023
9170f25
axis autotickangles property
my-tien Nov 22, 2023
eb3c456
autotickangles: consider number of lines when calculating min angle
my-tien Nov 22, 2023
60aa918
Change 10.json to test autotickangles
my-tien Nov 22, 2023
b70ff86
autotickangles draftlog file
my-tien Nov 22, 2023
3b725fa
cleanup and simplify bar path logic for rounded corners
emilykl Nov 22, 2023
870d4c9
don't round corners of bars which are not top of stack
emilykl Nov 22, 2023
d8ff2d5
fix 6765 - ensure default range work with allowed min/max
archmoj Nov 21, 2023
cd0b783
log for PR 6796
archmoj Nov 23, 2023
be99b12
Achieve compatibility with ES5
my-tien Nov 23, 2023
8ec9a45
Add `noAutotickangles` option for `handleTickLabelDefaults` calls out…
my-tien Nov 23, 2023
3fa1c78
drawLabels: don't assume autotickangles exists on axis.
my-tien Nov 23, 2023
6d2501b
Fix typo noAutickangles → noAutotickangles in ternay layout_defaults
my-tien Nov 23, 2023
3f08ba8
Remove unnecessary coerceNumber property from autotickangles
my-tien Nov 24, 2023
7ff8d92
Replace suspicious infinite loop test with check to never decrease th…
my-tien Nov 24, 2023
c928809
convert min max allowed values to linear on ax._rl
archmoj Nov 24, 2023
aadbd54
revise default values when maxallowed-minallowed<1
archmoj Nov 24, 2023
9473029
Fix backwards-compatibility
my-tien Nov 24, 2023
21148d4
improve tests
archmoj Nov 24, 2023
4b23f99
New 10.png baseline image for testing autotickangles
my-tien Nov 25, 2023
81998ac
Fix 6328 - Hovering over Sankey node highlights all full traces
CelineWuest Nov 27, 2023
b3efac2
Add draft log for PR 6799
CelineWuest Nov 27, 2023
2689419
Fix linter errors
CelineWuest Nov 27, 2023
aa8ba1e
fix outmost bar logic
emilykl Nov 27, 2023
bd525ea
Add Sankey node align property
adamreeve Nov 20, 2023
aff34a3
Add new test mocks
adamreeve Nov 28, 2023
b11e8bc
Add draftlog entry
adamreeve Nov 28, 2023
4898355
Linting
adamreeve Nov 28, 2023
58a4ffd
bump mathjax v3.2.2 using kaleido
archmoj Nov 28, 2023
3368552
Merge pull request #6802 from plotly/bump-mathjax-v3.2.2-kaleido
archmoj Nov 28, 2023
361f61b
Choose angle with smallest absolute cosine instead of largest absolut…
my-tien Nov 29, 2023
6d3e7bd
use info_array instead of data_array for autotickangles
my-tien Nov 29, 2023
5a7cc3e
Merge pull request #6796 from plotly/fix6765-range-allowed
archmoj Dec 1, 2023
896c247
Convert prevAngle to radians as well for calculations.
my-tien Dec 5, 2023
aa6d492
Use the radians representation of prevAngle only for comparison (to f…
my-tien Dec 5, 2023
8ebf1a2
For the backwards-compatible auto angle calculation also only use rad…
my-tien Dec 5, 2023
ccff898
Add mock for Sankey with circular links and right alignment
adamreeve Dec 5, 2023
0516c4a
Rename mock
adamreeve Dec 5, 2023
7b12beb
fix drawing regl lines only cases on shared WebGL
archmoj Dec 7, 2023
0fdf52e
Revert description change for tickangle because other charts reusing …
my-tien Dec 8, 2023
a9b9cc8
Update description in test/plot-schema.json as well.
my-tien Dec 8, 2023
b8a8860
update plot-schema.json by running npm run schema after having starte…
my-tien Dec 8, 2023
c0e2758
Update draftlogs/6790_add.md
my-tien Dec 8, 2023
7234c08
Merge pull request #6784 from plotly/virtual-webgl
archmoj Dec 8, 2023
0527052
Improve if condition clarity
CelineWuest Dec 10, 2023
17f7013
Merge pull request #6800 from adamreeve/sankey-align
archmoj Dec 12, 2023
1661ce4
insiderange case of having multiple anchored axes having insideticklabel
archmoj Dec 12, 2023
18f6ab7
draftlog
archmoj Dec 13, 2023
cae76aa
Merge remote-tracking branch 'origin/master' into handle-coded-typed-…
archmoj Dec 14, 2023
5845e0e
extend rounding to lower bars
emilykl Dec 15, 2023
54269a6
Fix if condition
CelineWuest Dec 15, 2023
5962af9
Added test
CelineWuest Dec 15, 2023
3105987
Add credit in draftlog
CelineWuest Dec 15, 2023
2d81fdf
Change target node in test
CelineWuest Dec 15, 2023
8bf6d89
Merge pull request #6799 from DominicWuest/fix-sankey-trace-highlight
archmoj Dec 15, 2023
b44bd6a
Update bound arrays for log scale
andrew-matteson Dec 15, 2023
c486519
tests
andrew-matteson Dec 15, 2023
8fab840
changelog
andrew-matteson Dec 15, 2023
1dd0124
rename to zz- per request
andrew-matteson Dec 15, 2023
d33b12b
syntax issue
andrew-matteson Dec 15, 2023
a35097b
fix fonts in baseline
andrew-matteson Dec 16, 2023
4f7a37a
Merge branch 'master' of https://github.com/plotly/plotly.js into log…
andrew-matteson Dec 16, 2023
cdae996
Revert 264617bffe0252b11638e7446c6f3d562df70774 and 7ff8d92650d35f0be…
my-tien Dec 19, 2023
06f3b5c
Add <meta charset="utf-8"> to <head> to appease d3
ayjayt Dec 25, 2023
1487f52
Add draftlog for PR #6826
ayjayt Dec 25, 2023
9eb6bc4
Add switch to specify major/minor in arrayTicks
ayjayt Dec 27, 2023
85f47c6
remove 0 default for bar.marker.cornerradius
emilykl Dec 30, 2023
578712a
only set helper values for rounded corners if needed
emilykl Dec 30, 2023
8f77cde
better pct string handling
emilykl Dec 30, 2023
45689ae
remove cornerradius attr from barpolar and funnel
emilykl Dec 30, 2023
137e185
fix rounding for grouped barmode
emilykl Dec 30, 2023
795235b
handle stacked traces with different cornerradius
emilykl Jan 2, 2024
0e03c93
Merge pull request #6826 from geopozo/pikul-metadata-test-dashboard
archmoj Jan 2, 2024
24821c8
Merge branch 'master' into pikul-arrayTicks-duplicate-tick-bug
ayjayt Jan 2, 2024
5f8f115
bump regl-scatter2d v3.3.1
archmoj Jan 2, 2024
a8e110d
log for PR 6830
archmoj Jan 2, 2024
f6c33bd
Merge pull request #6830 from plotly/regl-scatter2d-3.3.1
archmoj Jan 2, 2024
9a6de43
Add test to verify expected quantity of ticks
ayjayt Jan 2, 2024
392b103
Add draftlog for PR #6829
ayjayt Jan 2, 2024
41ae65d
Fix linter errors
ayjayt Jan 3, 2024
095ce0c
Set tick test to use fullLayout, not mock x
ayjayt Jan 3, 2024
69345fc
Eliminate unnecesary closure in parameterized test
ayjayt Jan 3, 2024
365231d
Use Lib.psuedoRandom(), not Math.random()
ayjayt Jan 3, 2024
00cdcc8
Merge branch 'master' into pikul-arrayTicks-duplicate-tick-bug
ayjayt Jan 3, 2024
cd3b261
Remove closure function from tickArray test
ayjayt Jan 3, 2024
1051bb7
Add legacy mode to arrayTicks()
ayjayt Jan 3, 2024
9e9da55
Merge pull request #6829 from geopozo/pikul-arrayTicks-duplicate-tick…
archmoj Jan 4, 2024
4e7a980
fix upperfence description
archmoj Jan 4, 2024
571fddf
Merge pull request #6834 from plotly/fix-upperfence-description
archmoj Jan 4, 2024
7536e78
Merge pull request #5230 from plotly/handle-coded-typed-arrays
archmoj Jan 5, 2024
e017fa3
bump webpack
archmoj Jan 5, 2024
38c71f9
bump babel plugin-transform-modules-commonjs
archmoj Jan 5, 2024
76c774f
bump babel preset-env
archmoj Jan 5, 2024
4cdc272
bump eslint
archmoj Jan 5, 2024
06c57cf
bump sass
archmoj Jan 5, 2024
f9de119
Merge pull request #6836 from plotly/bump-dev-deps-2024-01-05
archmoj Jan 5, 2024
4d10c56
update readme and changelog for v2.28.0
archmoj Jan 5, 2024
9664ca9
2.28.0
archmoj Jan 5, 2024
dd717b6
handle label text position inside bars
emilykl Jan 5, 2024
35e0c8f
fix function name
emilykl Jan 6, 2024
7aa7496
test label position for cornerradius in mock
emilykl Jan 6, 2024
250bf31
adjust cornerradius standardization for stacked bars
emilykl Jan 6, 2024
495d950
update plot-schema
emilykl Jan 6, 2024
be0ddff
don't coerce marker.cornerradius
emilykl Jan 6, 2024
819e8bf
add draftlog
emilykl Jan 6, 2024
ed69422
syntax
emilykl Jan 6, 2024
4a44291
syntax
emilykl Jan 6, 2024
65d3b55
add image baseline
emilykl Jan 6, 2024
e8cdde1
update draftlog
emilykl Jan 6, 2024
9c4227e
fix rounding for relative barmode
emilykl Jan 6, 2024
dabcaf0
fix NaN bug
emilykl Jan 6, 2024
701fd8c
fix bug with stacking in group mode
emilykl Jan 6, 2024
29589e8
coerce marker.cornerradius for histograms
emilykl Jan 8, 2024
d0b9a90
fix histogram2d
emilykl Jan 8, 2024
3e5a957
fix behavior for negative bars in stacked barmode
emilykl Jan 8, 2024
582ce13
fix behavior for negative bars in stacked barmode (2)
emilykl Jan 8, 2024
a238c87
Cast radius parameter to number
emilykl Jan 9, 2024
ac329f7
validate cornerradius value in supply defaults
emilykl Jan 9, 2024
8a607e6
export validateCornerradius
emilykl Jan 9, 2024
338b4e6
Change cornerradius editType to calc
emilykl Jan 9, 2024
60c918e
Change barcornerradius editType to calc
emilykl Jan 9, 2024
9dd0896
better handling of text placement on rounded horizontal bars
emilykl Jan 9, 2024
1628b5c
avoid using Math.sign
emilykl Jan 10, 2024
bfbd397
lint
emilykl Jan 10, 2024
71e4896
update plot-schema
emilykl Jan 10, 2024
4e794d0
bugfix
emilykl Jan 11, 2024
dedce2a
bugfix
emilykl Jan 11, 2024
b137b25
store cornerradius in t instead of trace; general cleanup
emilykl Jan 11, 2024
42ca00c
npm audit fix - follow-redirects 1.15.5
archmoj Jan 12, 2024
620a56b
Merge pull request #6843 from plotly/bump-follow-redirects
archmoj Jan 12, 2024
fdd6d03
small cleanup and add comments
emilykl Jan 17, 2024
8fcc3a5
Merge branch 'master' into rounded-bars
emilykl Jan 17, 2024
71b53c3
update baseline
emilykl Jan 17, 2024
90cf5c3
add text to zz-bar-rounded-corners
archmoj Jan 19, 2024
510c66b
rounded-bar display_height_zero line_width
archmoj Jan 19, 2024
5599ea6
round bar_gantt-chart
archmoj Jan 19, 2024
8dffbbe
round hist_cum_stacked
archmoj Jan 19, 2024
c165f6a
round histogram_colorscale
archmoj Jan 19, 2024
ee2451a
round histogram-offsetgroups
archmoj Jan 19, 2024
256a87e
round period_positioning9
archmoj Jan 19, 2024
b122521
round bar_stackto100_negative
archmoj Jan 19, 2024
015b881
round bar_attrs_relative
archmoj Jan 19, 2024
8b57fb5
round worldcup
archmoj Jan 19, 2024
ec44d87
bugfix
emilykl Jan 19, 2024
b9954f0
Merge branch 'master' of https://github.com/plotly/plotly.js into log…
andrew-matteson Jan 19, 2024
8be6a41
address N = 1 and len < N cases
andrew-matteson Jan 19, 2024
2b471c3
trivial change to trigger tests to run
andrew-matteson Jan 22, 2024
f9db904
Revert "trivial change to trigger tests to run"
andrew-matteson Jan 22, 2024
dd4765e
add a link hovercolor attribute so that end users can customize their…
Jan 10, 2024
ecfc8b9
update draftlogs
Jan 22, 2024
2b0f2ae
switch test to account for round-off
Jan 22, 2024
1055a02
update plot-schema to account for hovercolor entry
Jan 22, 2024
407bcf2
Added tests for hoveron fills to scatter jasmine test suite.
lumip Dec 9, 2023
52bf7c8
Fix for hover behavior on scatter fills tonextx/y.
lumip Dec 6, 2023
5ba718f
Using SVGElement.isPointInFill instead of custom polygons for hover t…
lumip Jan 16, 2024
6f8ca1e
Display hover label at cursor position as fallback for scatter traces.
lumip Jan 23, 2024
889b6c6
Adding draftlog markdown file for "Improved hover detection for for s…
lumip Jan 23, 2024
2913c6e
text position DRAFT
emilykl Jan 24, 2024
80dedea
Revert "Fix backwards-compatibility"
my-tien Jan 24, 2024
9e3c249
update baselines
archmoj Jan 24, 2024
2137733
#6676: add 'decimal' and 'thousands' formats for brazilian portuguese…
pazuza Jan 24, 2024
3a778dc
draftlog markdown file
pazuza Jan 24, 2024
bee7591
update draftlog markdown file type from 'add' to 'change'
pazuza Jan 24, 2024
e2d40ef
Update draftlogs/6866_change.md
archmoj Jan 25, 2024
24b6f75
Merge pull request #6866 from pazuza/locale-pt-br-decimal-thousands
archmoj Jan 25, 2024
a5b1f3a
Add 0 to default autotickangles array
my-tien Jan 25, 2024
5f3f32c
Don't assume autotickangles exists on axis.
my-tien Jan 25, 2024
f544c2a
update baseline images and plot schema
my-tien Jan 25, 2024
7d8e607
- only coerce autotickangles for x axes with auto tickangle
alexcjohnson Jan 26, 2024
f986349
fix text padding for rounded bars
emilykl Jan 26, 2024
99352d0
update baselines
archmoj Jan 26, 2024
e20de82
fix colorbar noAutotickangles
alexcjohnson Jan 26, 2024
4d4e056
better colorbar fix: noAutotickangles only for vertical
alexcjohnson Jan 26, 2024
84bd54b
allow autotickangles for polar radial axes
alexcjohnson Jan 26, 2024
f588741
Fix bug to allow box selection when expanding existing box on multy-axes
Farkites Jan 26, 2024
ec4c8f3
Cover case for selections in multiple subplots
Farkites Jan 26, 2024
5e741d8
Cover marginal distribution selections
Farkites Jan 26, 2024
f646c15
schema update
my-tien Jan 26, 2024
1d47d05
new baseline image for polar_polygon-grids with rotated axis labels
my-tien Jan 26, 2024
2f6cd6f
fix jasmine tests
alexcjohnson Jan 26, 2024
c51791e
Update test/jasmine/tests/plots_test.js
archmoj Jan 26, 2024
b293a11
Update draftlogs/6790_add.md
archmoj Jan 26, 2024
b31d45b
Merge pull request #6790 from my-tien/autotickangles
archmoj Jan 26, 2024
259abab
Merge pull request #6819 from andrew-matteson/log-scale-heatmap
archmoj Jan 26, 2024
82315aa
Update src/traces/sankey/attributes.js
archmoj Jan 26, 2024
52583d2
spelling fix
Jan 26, 2024
6f685c0
fix text scale and pad for rounded bars
emilykl Jan 26, 2024
af0af9c
Mention contributor in draftlogs/6865_fix.md
lumip Jan 27, 2024
f093ee7
fix text position for stacked rounded bars
emilykl Jan 30, 2024
e3cd5a5
simplify logic in cross_trace_calc
emilykl Jan 30, 2024
98356b4
update baselines
emilykl Jan 30, 2024
a2befea
fix variable declaration
emilykl Jan 30, 2024
86fb8a9
Merge pull request #6865 from lumip/scatter_hoveron_fill_fix
archmoj Jan 30, 2024
58bb631
modify hover default to change opacity rather than set everything to …
Jan 30, 2024
2c7eda1
fix linter issues
Jan 30, 2024
ac983b3
Merge pull request #6864 from TortoiseHam/pf/sankey-tracking2
archmoj Jan 31, 2024
781fbe2
remove lxFunc and lyFunc
emilykl Jan 31, 2024
0f136e5
Add tickson_boundaries_showgrid_categorical test
Farkites Feb 1, 2024
00b30c3
Avoid checking xbnd when not defined
Farkites Feb 1, 2024
cdd8853
Add tickson_boundaries_showgrid_categorical baseline
Farkites Feb 1, 2024
97f0b0e
use absolute arcs for bar path
emilykl Feb 1, 2024
91e7433
Add draftlog
Farkites Feb 1, 2024
96aa46e
Merge pull request #6870 from plotly/fix-selection-double-y-axis
archmoj Feb 1, 2024
c52890c
simplify text placement logic
emilykl Feb 1, 2024
10e38f4
Update docstring
emilykl Feb 1, 2024
f7d4b4a
Update docstring
emilykl Feb 1, 2024
4335ba0
more permissive text inside/outside logic for rounded bars
emilykl Feb 1, 2024
e9043e9
Merge branch 'rounded-bars' of https://github.com/plotly/plotly.js in…
emilykl Feb 1, 2024
4624132
updated baselines
archmoj Feb 1, 2024
8c45d15
update schema
archmoj Feb 1, 2024
f235f7e
Merge pull request #6761 from plotly/rounded-bars
emilykl Feb 2, 2024
55527cf
rename new mocks and baselines
archmoj Feb 2, 2024
7943814
regen baselines to make ci green
archmoj Feb 2, 2024
3cd79dc
bump webpack
archmoj Feb 2, 2024
45e3c1d
bump babel-loader
archmoj Feb 2, 2024
5ef6f46
bump sass
archmoj Feb 2, 2024
a12fc95
bump deep-equal
archmoj Feb 2, 2024
a8ee1da
bump babel preset-env
archmoj Feb 2, 2024
3e4bedc
Merge pull request #6876 from plotly/rename-mocks-2024-jan
archmoj Feb 2, 2024
1c3dbfa
Merge pull request #6877 from plotly/dev-deps-2024-feb-01
archmoj Feb 2, 2024
b66df06
update README
archmoj Feb 2, 2024
6b74dfb
revise README
archmoj Feb 2, 2024
3804ce9
Merge pull request #6878 from plotly/update-contributors-status
archmoj Feb 2, 2024
2f07239
update README and changelog for v2.29.0
archmoj Feb 2, 2024
5d467c7
2.29.0
archmoj Feb 2, 2024
0e90950
Merge branch 'master' into bugfix-categorical-axis-tickson-boundaries…
Farkites Feb 2, 2024
2db1dfc
update readme
archmoj Feb 2, 2024
59cd1a6
fix link
LiamConnors Feb 2, 2024
5272c38
Merge pull request #6882 from plotly/LiamConnors-patch-1
LiamConnors Feb 2, 2024
08e06bd
edit readme
archmoj Feb 3, 2024
3ebb495
Merge branch 'master' into bugfix-categorical-axis-tickson-boundaries…
Farkites Feb 6, 2024
c889e6e
Add zz- before new mock filename
Farkites Feb 6, 2024
e94f91a
Add draftlog
Farkites Feb 6, 2024
0d6bca6
Merge pull request #6885 from plotly/bugfix-categorical-axis-tickson-…
archmoj Feb 8, 2024
5025fbc
Merge pull request #6817 from plotly/insiderange-multiple-axes
archmoj Feb 8, 2024
4072ae5
update readme and changelog for v2.29.1
archmoj Feb 12, 2024
3c92271
2.29.1
archmoj Feb 12, 2024
45935ff
drop unnecessary glslify and inline shaders in regl-line2d
archmoj Feb 14, 2024
bcc4afb
drop unnecessary glslify and inline shaders in parcoords
archmoj Feb 14, 2024
a809b80
bump regl-line2d
archmoj Feb 14, 2024
b251947
Merge pull request #6899 from plotly/prep-esbuild
archmoj Feb 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
531 changes: 453 additions & 78 deletions .circleci/config.yml

Large diffs are not rendered by default.

90 changes: 90 additions & 0 deletions .circleci/download_google_fonts.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
import requests

dirOut = '.circleci/fonts/truetype/googleFonts/'

def download(repo, family, types) :
for t in types :
name = family + t + '.ttf'
url = repo + name + '?raw=true'
print(url)
req = requests.get(url, allow_redirects=True)
open(dirOut + name, 'wb').write(req.content)

download(
'https://github.com/googlefonts/noto-fonts/blob/main/hinted/ttf/NotoSansMono/',
'NotoSansMono',
[
'-Regular',
'-Bold'
]
)

download(
'https://github.com/googlefonts/noto-fonts/blob/main/hinted/ttf/NotoSans/',
'NotoSans',
[
'-Regular',
'-Italic',
'-Bold'
]
)

download(
'https://github.com/googlefonts/noto-fonts/blob/main/hinted/ttf/NotoSerif/',
'NotoSerif',
[
'-Regular',
'-Italic',
'-Bold',
'-BoldItalic',
]
)

download(
'https://github.com/google/fonts/blob/main/ofl/oldstandardtt/',
'OldStandard',
[
'-Regular',
'-Italic',
'-Bold'
]
)

download(
'https://github.com/google/fonts/blob/main/ofl/ptsansnarrow/',
'PT_Sans-Narrow-Web',
[
'-Regular',
'-Bold'
]
)

download(
'https://github.com/impallari/Raleway/blob/master/fonts/v3.000%20Fontlab/TTF/',
'Raleway',
[
'-Regular',
'-Regular-Italic',
'-Bold',
'-Bold-Italic'
]
)

download(
'https://github.com/googlefonts/roboto/blob/main/src/hinted/',
'Roboto',
[
'-Regular',
'-Italic',
'-Bold',
'-BoldItalic'
]
)

download(
'https://github.com/expo/google-fonts/blob/master/font-packages/gravitas-one/',
'GravitasOne',
[
'_400Regular'
]
)
6 changes: 6 additions & 0 deletions .circleci/env_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
export NODE_OPTIONS='--max-old-space-size=4096' && \
echo "node version: $(node --version)" && \
echo "npm version: $(npm --version)" && \
npm ci && \
npm ls --prod --all
10 changes: 10 additions & 0 deletions .circleci/env_image.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
# install required fonts
sudo apt-get install fonts-liberation2 fonts-open-sans fonts-noto-cjk fonts-noto-color-emoji && \
sudo python3 .circleci/download_google_fonts.py && \
sudo cp -r .circleci/fonts/ /usr/share/ && \
sudo fc-cache -f && \
# install kaleido & plotly
sudo python3 -m pip install kaleido==0.2.1 plotly==5.5.0 --progress-bar off
# install numpy i.e. to convert arrays to typed arrays
sudo python3 -m pip install numpy==1.24.2
1 change: 1 addition & 0 deletions .circleci/fonts/truetype/googleFonts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*
94 changes: 68 additions & 26 deletions .circleci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set +o pipefail

ROOT=$(dirname $0)/..
EXIT_STATE=0
MAX_AUTO_RETRY=5
MAX_AUTO_RETRY=0

log () {
echo -e "\n$1"
Expand All @@ -33,65 +33,107 @@ retry () {
fi
}

# set timezone to Alaska time (arbitrary timezone to test date logic)
set_tz () {
sudo cp /usr/share/zoneinfo/America/Anchorage /etc/localtime
export TZ='America/Anchorage'
}

case $1 in

jasmine)
set_tz

no-gl-jasmine)
SUITE=$(circleci tests glob "$ROOT/test/jasmine/tests/*" | circleci tests split)
npm run test-jasmine -- $SUITE --skip-tags=gl,noCI,flaky || EXIT_STATE=$?
MAX_AUTO_RETRY=2
retry npm run test-jasmine -- $SUITE --skip-tags=gl,noCI,flaky || EXIT_STATE=$?

exit $EXIT_STATE
;;

jasmine2)
set_tz

webgl-jasmine)
SHARDS=($(node $ROOT/tasks/shard_jasmine_tests.js --limit=5 --tag=gl | circleci tests split))
for s in ${SHARDS[@]}; do
MAX_AUTO_RETRY=2
retry npm run test-jasmine -- "$s" --tags=gl --skip-tags=noCI --doNotFailOnEmptyTestSuite
done

exit $EXIT_STATE
;;

jasmine3)
set_tz
virtual-webgl-jasmine)
SHARDS=($(node $ROOT/tasks/shard_jasmine_tests.js --limit=5 --tag=gl | circleci tests split))
for s in ${SHARDS[@]}; do
MAX_AUTO_RETRY=2
retry ./node_modules/karma/bin/karma start test/jasmine/karma.conf.js --virtualWebgl --tags=gl --skip-tags=noCI,noVirtualWebgl --doNotFailOnEmptyTestSuite -- "$s"
done

exit $EXIT_STATE
;;

flaky-no-gl-jasmine)
SHARDS=($(node $ROOT/tasks/shard_jasmine_tests.js --limit=1 --tag=flaky | circleci tests split))

for s in ${SHARDS[@]}; do
MAX_AUTO_RETRY=5
retry npm run test-jasmine -- "$s" --tags=flaky --skip-tags=noCI
done

exit $EXIT_STATE
;;

image)
SUITE=$(find $ROOT/test/image/mocks/ -type f -printf "%f\n" | circleci tests split)
npm run test-image -- $SUITE --filter --skip-flaky || EXIT_STATE=$?
bundle-jasmine)
npm run test-bundle || EXIT_STATE=$?
exit $EXIT_STATE
;;

image2)
retry npm run test-image -- --just-flaky
npm run test-export || EXIT_STATE=$?
mathjax-firefox)
./node_modules/karma/bin/karma start test/jasmine/karma.conf.js --FF --bundleTest=mathjax --nowatch || EXIT_STATE=$?
exit $EXIT_STATE
;;

bundle)
set_tz
npm run test-bundle || EXIT_STATE=$?
mathjax-firefox82+)
./node_modules/karma/bin/karma start test/jasmine/karma.conf.js --FF --bundleTest=mathjax --skip-tags=noFF82 --nowatch &&
./node_modules/karma/bin/karma start test/jasmine/karma.conf.js --FF --bundleTest=mathjax --mathjax3 --skip-tags=noFF82 --nowatch &&
./node_modules/karma/bin/karma start test/jasmine/karma.conf.js --FF --bundleTest=mathjax_config --mathjax3 --nowatch &&
./node_modules/karma/bin/karma start test/jasmine/karma.conf.js --FF --bundleTest=mathjax_config --nowatch || EXIT_STATE=$?
exit $EXIT_STATE
;;

make-baselines-virtual-webgl)
SUITE=$({\
find $ROOT/test/image/mocks/gl* -type f -printf "%f\n"; \
find $ROOT/test/image/mocks/mapbox* -type f -printf "%f\n"; \
} | sed 's/\.json$//1' | circleci tests split)
python3 test/image/make_baseline.py virtual-webgl $SUITE || EXIT_STATE=$?
exit $EXIT_STATE
;;

make-baselines-mathjax3)
python3 test/image/make_baseline.py mathjax3 legend_mathjax_title_and_items mathjax parcats_grid_subplots table_latex_multitrace_scatter table_plain_birds table_wrapped_birds ternary-mathjax || EXIT_STATE=$?
exit $EXIT_STATE
;;

make-baselines-b64)
SUITE=$(find $ROOT/test/image/mocks/ -type f -printf "%f\n" | sed 's/\.json$//1' | circleci tests split)
python3 test/image/make_baseline.py b64 $SUITE || EXIT_STATE=$?
exit $EXIT_STATE
;;

make-baselines)
SUITE=$(find $ROOT/test/image/mocks/ -type f -printf "%f\n" | sed 's/\.json$//1' | circleci tests split)
python3 test/image/make_baseline.py $SUITE || EXIT_STATE=$?
exit $EXIT_STATE
;;

test-image)
node test/image/compare_pixels_test.js || { tar -cvf build/baselines.tar build/test_images/*.png ; exit 1 ; } || EXIT_STATE=$?
exit $EXIT_STATE
;;

test-image-mathjax3)
node test/image/compare_pixels_test.js mathjax3 || { tar -cvf build/baselines.tar build/test_images/*.png ; exit 1 ; } || EXIT_STATE=$?
exit $EXIT_STATE
;;

test-image-virtual-webgl)
node test/image/compare_pixels_test.js virtual-webgl || { tar -cvf build/baselines.tar build/test_images/*.png ; exit 1 ; } || EXIT_STATE=$?
exit $EXIT_STATE
;;

syntax)
source-syntax)
npm run lint || EXIT_STATE=$?
npm run test-syntax || EXIT_STATE=$?
exit $EXIT_STATE
Expand Down
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
stackgl_modules
node_modules
dist
build

tasks/test_amdefine.js
tasks/test_requirejs.js
test/jasmine/assets/jquery-1.8.3.min.js
src/plots/polar/legacy/micropolar.js
5 changes: 5 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@
"Float32Array": true,
"Float64Array": true,
"Uint8Array": true,
"Int8Array": true,
"Uint8ClampedArray": true,
"Int16Array": true,
"Uint16Array": true,
"Int32Array": true,
"Uint32Array": true,
"ArrayBuffer": true,
"DataView": true,
"SVGElement": false
Expand Down Expand Up @@ -55,6 +59,7 @@
"no-floating-decimal": [2],
"space-infix-ops": [2, {"int32Hint": true}],
"quotes": [2, "single"],
"quote-props": ["error", "as-needed"],
"dot-notation": [2],
"dot-location": [2, "property"],
"operator-linebreak": [2, "after"],
Expand Down
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# These are supported funding model platforms

github: plotly
custom: https://plot.ly/products/consulting-and-oem/
22 changes: 11 additions & 11 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ Thanks for your interest in plotly.js!

### Translations:

- Make a PR directly to the main repository
- Please @ mention a few other speakers of this language who can help review your translations.
- If you've omitted any keys from [dist/translation_keys.txt](https://github.com/plotly/plotly.js/blob/master/dist/translation-keys.txt) - which means they will fall back on the US English text - just make a short comment about why in the PR description: the English text works fine in your language, or you would like someone else to help translating those, or whatever the reason.
- You should only update files in `lib/locales/`, not those in `dist/`

### Features, Bug fixes, and others:

Developers are strongly encouraged to first make a PR to their own plotly.js fork and ask one of the maintainers to review the modifications there. Once the pull request is deemed satisfactory, the developer will be asked to make a pull request to the main plotly.js repo and may be asked to squash some commits before doing so.
Before opening a pull request, developer should:
1. make sure they are not on the `master` branch of their fork as using `master` for a pull request would make it difficult to fetch `upstream` changes.
2. fetch latest changes from `upstream/master` into your fork i.e. `origin/master` then pull `origin/master` from you local `master`.
3. then `git rebase master` their local dev branch off the latest `master` which should be sync with `upstream/master` at this time.
4. make sure to **not** `git add` the `dist/` folder (the `dist/` is updated only on version bumps).
5. make sure to commit changes to the `package-lock.json` file (if any new dependency required).
6. provide a title and write an overview of what the PR attempts to do with a link to the issue they are trying to address.
7. select the _Allow edits from maintainers_ option (see this [article](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) for more details).

Before opening a pull request, developer should:

- `git rebase` their local branch off the latest `master`,
- make sure to **not** `git add` the `dist/` folder (the `dist/` is updated only on version bumps),
- make sure to commit changes to the `package-lock.json` file (if any),
- write an overview of what the PR attempts to do,
- select the _Allow edits from maintainers_ option (see this [article](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) for more details).

Note that it is forbidden to force push (i.e. `git push -f`) to remote branches associated with opened pull requests. Force pushes make it hard for maintainers to keep track of updates. Therefore, if required, please `git merge master` into your PR branch instead of `git rebase master`.
After opening a pull request, developer:
- should create a new small markdown log file using the PR number e.g. `1010_fix.md` or `1010_add.md` inside `draftlogs` folder as described in this [README](https://github.com/plotly/plotly.js/blob/master/draftlogs/README.md), commit it and push.
- should **not** force push (i.e. `git push -f`) to remote branches associated with opened pull requests. Force pushes make it hard for maintainers to keep track of updates. Therefore, if required, please fetch `upstream/master` and "merge" with master instead of "rebase".
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ build/*
!build/plotcss.js
!build/README.md

dist/*.LICENSE.txt

npm-debug.log*
*.sublime*
*~
tags

.*
!.circleci
Expand Down
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ build/*
!build/plotcss.js
!build/README.md

stackgl_modules/node_modules

devtools
test
draftlogs
dist/extras

circle.yml
Expand Down
Loading