Skip to content

Commit c247c6b

Browse files
authored
Merge pull request #112 from sgratzl/release/v4.3.1
Release v4.3.1
2 parents 0aa1ccc + bcbc203 commit c247c6b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ npm install chart.js @sgratzl/chartjs-chart-boxplot
1515

1616
## Usage
1717

18-
see [Examples](https://sgratzl.com/chartjs-chart-boxplot/examples/)
18+
see [Examples](https://www.sgratzl.com/chartjs-chart-boxplot/examples/)
1919

2020
and [![Open in CodePen][codepen]](https://codepen.io/sgratzl/pen/QxoLoY)
2121

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@sgratzl/chartjs-chart-boxplot",
33
"description": "Chart.js module for charting boxplots and violin charts",
4-
"version": "4.3.0",
4+
"version": "4.3.1",
55
"publishConfig": {
66
"access": "public"
77
},

src/data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ function determineStatsOptions(options?: IBaseOptions) {
203203
*/
204204
export function boxplotStats(arr: readonly number[] | Float32Array | Float64Array, options: IBaseOptions): IBoxPlot {
205205
const vs =
206-
window.Float64Array != null && !(arr instanceof Float32Array || arr instanceof Float64Array)
206+
typeof Float64Array !== 'undefined' && !(arr instanceof Float32Array || arr instanceof Float64Array)
207207
? Float64Array.from(arr)
208208
: arr;
209209
const r = boxplots(vs, determineStatsOptions(options));
@@ -244,7 +244,7 @@ export function violinStats(arr: readonly number[], options: IViolinOptions): IV
244244
return undefined;
245245
}
246246
const vs =
247-
window.Float64Array != null && !(arr instanceof Float32Array || arr instanceof Float64Array)
247+
typeof Float64Array !== 'undefined' && !(arr instanceof Float32Array || arr instanceof Float64Array)
248248
? Float64Array.from(arr)
249249
: arr;
250250
const stats = boxplots(vs, determineStatsOptions(options));

0 commit comments

Comments
 (0)