From e618fd01f2c3b1bfae19929a2d8c70c97714b431 Mon Sep 17 00:00:00 2001 From: musvaage Date: Mon, 25 Aug 2025 16:38:24 -0500 Subject: [PATCH] typos --- src/components/colorbar/draw.js | 2 +- src/plot_api/plot_api.js | 2 +- test/jasmine/tests/plot_api_test.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/colorbar/draw.js b/src/components/colorbar/draw.js index 794ff699918..d85e9107cf3 100644 --- a/src/components/colorbar/draw.js +++ b/src/components/colorbar/draw.js @@ -401,7 +401,7 @@ function drawColorBar(g, opts, gd) { ax.tickfont.size : 0 ) + ( - ax.ticks !== 'intside' ? + ax.ticks !== 'inside' ? opts.ticklen || 0 : 0 ); diff --git a/src/plot_api/plot_api.js b/src/plot_api/plot_api.js index 730428f675f..6f5cef6fc8b 100644 --- a/src/plot_api/plot_api.js +++ b/src/plot_api/plot_api.js @@ -742,7 +742,7 @@ function assertExtendTracesArgs(gd, update, indices, maxPoints) { (!(key in maxPoints) || !Array.isArray(maxPoints[key]) || maxPoints[key].length !== update[key].length)) { throw new Error('when maxPoints is set as a key:value object it must contain a 1:1 ' + - 'corrispondence with the keys and number of traces in the update object'); + 'correspondence with the keys and number of traces in the update object'); } } } diff --git a/test/jasmine/tests/plot_api_test.js b/test/jasmine/tests/plot_api_test.js index 5af80966015..0650bc8ddaa 100644 --- a/test/jasmine/tests/plot_api_test.js +++ b/test/jasmine/tests/plot_api_test.js @@ -1903,12 +1903,12 @@ describe('Test plot api', function() { expect(function() { Plotly.extendTraces(gd, {x: [[1]]}, [0], {y: [1]}); }).toThrow(new Error('when maxPoints is set as a key:value object it must contain a 1:1 ' + - 'corrispondence with the keys and number of traces in the update object')); + 'correspondence with the keys and number of traces in the update object')); expect(function() { Plotly.extendTraces(gd, {x: [[1]]}, [0], {x: [1, 2]}); }).toThrow(new Error('when maxPoints is set as a key:value object it must contain a 1:1 ' + - 'corrispondence with the keys and number of traces in the update object')); + 'correspondence with the keys and number of traces in the update object')); }); it('should throw an error when update keys mismatch trace keys', function() {