Skip to content

Commit e712667

Browse files
authored
Merge branch 'main' into fix-layout-ternary-sum-bug
2 parents 3d8621d + c31fee7 commit e712667

43 files changed

Lines changed: 1781 additions & 771 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/ci.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,16 @@ jobs:
586586
- name: Type-check TypeScript sources
587587
run: npm run typecheck
588588

589+
test-types:
590+
needs: install-and-cibuild
591+
runs-on: ubuntu-latest
592+
steps:
593+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
594+
- uses: ./.github/actions/setup-workspace
595+
596+
- name: Test the public TypeScript types
597+
run: npm run test-types
598+
589599
generated-types-drift:
590600
needs: install-and-cibuild
591601
runs-on: ubuntu-latest

‎draftlogs/8045_fix.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Keep cartesian traces aligned with their axes when an automargin title is combined with any component that expands the margins [[#8045](https://github.com/plotly/plotly.js/pull/8045)]

‎draftlogs/8051_fix.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Fix hover labels ignoring MathJax for text that is a single tex expression [[#8051](https://github.com/plotly/plotly.js/pull/8051)], with thanks to @SergeyAxiomatic
2+
- Fix XSS via `javascript:` URLs in MathJax `\href` macros by sanitizing links in MathJax-rendered text [[#8051](https://github.com/plotly/plotly.js/pull/8051)], with thanks to @SergeyAxiomatic

‎draftlogs/8052_fix.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Fix issue causing `scattergl` plot to freeze up when hovering over points [[#8052](https://github.com/plotly/plotly.js/pull/8052)], with thanks to @emilykl for the contribution!

‎draftlogs/8069_fix.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Fix quiver arrow colors for a discrete `marker.color` array [[#8069](https://github.com/plotly/plotly.js/pull/8069)], with thanks to @Yahiro025 for the contribution!

‎draftlogs/8126_fix.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- Update TypeScript types so that `Plotly.relayout`, `Plotly.restyle`, `Plotly.update`, and the `plotly_relayout` event accept attribute paths such as `'xaxis.autorange'` [[#8126](https://github.com/plotly/plotly.js/pull/8126)]
2+
- Add the `LayoutUpdate` and `DataUpdate` types for these update objects
3+
- Add the `(root, attribute, value)` call form to the types of `Plotly.relayout` and `Plotly.restyle`

‎lib/index.d.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ export type * from '../src/types/generated/schema';
5555

5656
export type {
5757
ButtonClickEvent,
58+
DataUpdate,
5859
Icon,
60+
LayoutUpdate,
5961
ModeBarButton,
6062
ModeBarButtonAny,
6163
ModeBarDefaultButtons,

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"test-mock": "node tasks/test_mock.mjs",
6666
"test-image": "node test/image/compare_pixels_test.mjs",
6767
"test-export": "node test/image/export_test.js",
68+
"test-types": "tsc --noEmit -p test/types",
6869
"test-syntax": "tsx tasks/test_syntax.js && npm run find-strings -- --no-output",
6970
"test-bundle": "node tasks/test_bundle.js",
7071
"test-plain-obj": "node tasks/test_plain_obj.mjs",

0 commit comments

Comments
 (0)