chartjs-chart-error-bars
Advanced tools
Comparing version 4.0.0-alpha to 4.0.0
@@ -8,3 +8,3 @@ /** | ||
import { BarElement, PointElement, ArcElement, BarController, Scale, ChartMeta, Element, UpdateMode, BarControllerDatasetOptions, ScriptableAndArrayOptions as ScriptableAndArrayOptions$1, ScriptableContext as ScriptableContext$1, Chart, ChartItem, ChartConfiguration, LineController, LineControllerDatasetOptions, ScatterController, ScatterControllerDatasetOptions, PolarAreaController, PolarAreaControllerDatasetOptions } from 'chart.js'; | ||
import { ChartType, ScriptableAndArrayOptions, BarOptions, BarHoverOptions, ScriptableContext, BarElement, PointOptions, PointHoverOptions, PointElement, ArcOptions, ArcHoverOptions, ArcElement, BarControllerChartOptions, CartesianScaleTypeRegistry, BarController, Scale, ChartMeta, Element, UpdateMode, BarControllerDatasetOptions, Chart, ChartItem, ChartConfiguration, LineControllerChartOptions, LineController, LineControllerDatasetOptions, ScatterControllerChartOptions, ScatterController, ScatterControllerDatasetOptions, PolarAreaControllerChartOptions, PolarAreaController, PolarAreaControllerDatasetOptions } from 'chart.js'; | ||
@@ -55,4 +55,5 @@ interface IErrorBarOptions { | ||
static readonly defaultRoutes: { | ||
[property: string]: string; | ||
} | undefined; | ||
backgroundColor: string; | ||
borderColor: string; | ||
}; | ||
static readonly descriptors: { | ||
@@ -74,4 +75,4 @@ _scriptable: boolean; | ||
static readonly defaultRoutes: { | ||
[property: string]: string; | ||
} | undefined; | ||
backgroundColor: string; | ||
}; | ||
static readonly descriptors: { | ||
@@ -122,3 +123,3 @@ _scriptable: boolean; | ||
} | ||
interface BarWithErrorBarsControllerDatasetOptions extends BarControllerDatasetOptions, ScriptableAndArrayOptions$1<IErrorBarOptions, ScriptableContext$1<'barWithErrorBars'>> { | ||
interface BarWithErrorBarsControllerDatasetOptions extends BarControllerDatasetOptions, ScriptableAndArrayOptions<IErrorBarOptions, ScriptableContext<'barWithErrorBars'>> { | ||
} | ||
@@ -160,3 +161,3 @@ declare module 'chart.js' { | ||
} | ||
interface LineWithErrorBarsControllerDatasetOptions extends LineControllerDatasetOptions, ScriptableAndArrayOptions$1<IErrorBarOptions, ScriptableContext$1<'lineWithErrorBars'>> { | ||
interface LineWithErrorBarsControllerDatasetOptions extends LineControllerDatasetOptions, ScriptableAndArrayOptions<IErrorBarOptions, ScriptableContext<'lineWithErrorBars'>> { | ||
} | ||
@@ -198,3 +199,3 @@ declare module 'chart.js' { | ||
} | ||
interface ScatterWithErrorBarsControllerDatasetOptions extends ScatterControllerDatasetOptions, ScriptableAndArrayOptions$1<IErrorBarOptions, ScriptableContext$1<'scatterWithErrorBars'>> { | ||
interface ScatterWithErrorBarsControllerDatasetOptions extends ScatterControllerDatasetOptions, ScriptableAndArrayOptions<IErrorBarOptions, ScriptableContext<'scatterWithErrorBars'>> { | ||
} | ||
@@ -240,3 +241,3 @@ declare module 'chart.js' { | ||
} | ||
interface PolarAreaWithErrorBarsControllerDatasetOptions extends PolarAreaControllerDatasetOptions, ScriptableAndArrayOptions$1<IErrorBarOptions, ScriptableContext$1<'polarAreaWithErrorBars'>> { | ||
interface PolarAreaWithErrorBarsControllerDatasetOptions extends PolarAreaControllerDatasetOptions, ScriptableAndArrayOptions<IErrorBarOptions, ScriptableContext<'polarAreaWithErrorBars'>> { | ||
} | ||
@@ -243,0 +244,0 @@ declare module 'chart.js' { |
{ | ||
"name": "chartjs-chart-error-bars", | ||
"description": "Chart.js module for charting error bars", | ||
"version": "4.0.0-alpha", | ||
"version": "4.0.0", | ||
"author": { | ||
"name": "Samuel Gratzl", | ||
"email": "samu@sgratzl.com", | ||
"url": "https://wwww.sgratzl.com" | ||
"url": "https://www.sgratzl.com" | ||
}, | ||
@@ -47,3 +47,3 @@ "license": "MIT", | ||
"peerDependencies": { | ||
"chart.js": "^3.9.1" | ||
"chart.js": "^4.0.1" | ||
}, | ||
@@ -56,17 +56,17 @@ "browserslist": [ | ||
"devDependencies": { | ||
"@chiogen/rollup-plugin-terser": "^7.0.2", | ||
"@rollup/plugin-commonjs": "^23.0.2", | ||
"@chiogen/rollup-plugin-terser": "^7.1.3", | ||
"@rollup/plugin-commonjs": "^23.0.3", | ||
"@rollup/plugin-node-resolve": "^15.0.1", | ||
"@rollup/plugin-replace": "^5.0.1", | ||
"@rollup/plugin-typescript": "^9.0.2", | ||
"@types/jest": "^29.2.2", | ||
"@rollup/plugin-typescript": "^10.0.1", | ||
"@types/jest": "^29.2.3", | ||
"@types/jest-image-snapshot": "^5.1.0", | ||
"@types/node": "^18.11.9", | ||
"@typescript-eslint/eslint-plugin": "^5.42.0", | ||
"@typescript-eslint/parser": "^5.42.0", | ||
"@types/node": "^18.11.10", | ||
"@typescript-eslint/eslint-plugin": "^5.45.0", | ||
"@typescript-eslint/parser": "^5.45.0", | ||
"@yarnpkg/sdks": "^2.6.3", | ||
"canvas": "^2.10.2", | ||
"canvas-5-polyfill": "^0.1.5", | ||
"chart.js": "^3.9.1", | ||
"eslint": "^8.27.0", | ||
"chart.js": "^4.0.1", | ||
"eslint": "^8.28.0", | ||
"eslint-config-airbnb-typescript": "^17.0.0", | ||
@@ -79,10 +79,10 @@ "eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"eslint-plugin-react": "^7.31.10", | ||
"eslint-plugin-react": "^7.31.11", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"jest": "^29.2.2", | ||
"jest-environment-jsdom": "^29.2.2", | ||
"jest": "^29.3.1", | ||
"jest-environment-jsdom": "^29.3.1", | ||
"jest-image-snapshot": "^6.0.0", | ||
"prettier": "^2.7.1", | ||
"prettier": "^2.8.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^3.2.5", | ||
"rollup": "^3.5.1", | ||
"rollup-plugin-cleanup": "^3.2.1", | ||
@@ -92,4 +92,4 @@ "rollup-plugin-dts": "^5.0.0", | ||
"tslib": "^2.4.1", | ||
"typedoc": "^0.23.20", | ||
"typescript": "^4.8.4" | ||
"typedoc": "^0.23.21", | ||
"typescript": "^4.9.3" | ||
}, | ||
@@ -103,3 +103,3 @@ "scripts": { | ||
"build": "rollup -c", | ||
"test": "jest --passWithNoTests --detectOpenHandles --forceExit", | ||
"test": "yarn node --experimental-vm-modules $(yarn bin jest) --passWithNoTests --detectOpenHandles --forceExit", | ||
"test:watch": "yarn run test --watch", | ||
@@ -117,3 +117,6 @@ "test:coverage": "yarn run test --coverage", | ||
}, | ||
"packageManager": "yarn@3.2.4" | ||
"packageManager": "yarn@3.3.0", | ||
"dependencies": { | ||
"@kurkle/color": "^0.3.0" | ||
} | ||
} |
@@ -48,3 +48,3 @@ # Chart.js Error Bars | ||
see [Samples](https://github.com/sgratzl/chartjs-chart-error-bars/tree/master/samples) on Github | ||
see [Samples](https://github.com/sgratzl/chartjs-chart-error-bars/tree/main/samples) on Github | ||
@@ -51,0 +51,0 @@ and [![Open in CodePen][codepen]](https://codepen.io/sgratzl/pen/ZEbqmqx) |
@@ -63,3 +63,9 @@ import { color } from 'chart.js/helpers'; | ||
): string | string[] | { v: string[] } { | ||
return interpolateArrayOption(from, to, factor, 'string', interpolators.color); | ||
return interpolateArrayOption( | ||
from, | ||
to, | ||
factor, | ||
'string', | ||
interpolators.color as (from: string, to: string, factor: number) => string | ||
); | ||
} | ||
@@ -66,0 +72,0 @@ |
@@ -15,2 +15,4 @@ import { | ||
Element, | ||
BarControllerChartOptions, | ||
CartesianScaleTypeRegistry, | ||
} from 'chart.js'; | ||
@@ -17,0 +19,0 @@ import { merge } from 'chart.js/helpers'; |
@@ -1,2 +0,2 @@ | ||
import { registry, LinearScale } from 'chart.js'; | ||
import { registry, LinearScale, CategoryScale, LineElement } from 'chart.js'; | ||
import createChart from '../__tests__/createChart'; | ||
@@ -9,4 +9,4 @@ import { LineWithErrorBarsController } from './LineWithErrorBarsController'; | ||
registry.addControllers(LineWithErrorBarsController); | ||
registry.addElements(PointWithErrorBar); | ||
registry.addScales(LinearScale); | ||
registry.addElements(PointWithErrorBar, LineElement); | ||
registry.addScales(LinearScale, CategoryScale); | ||
}); | ||
@@ -13,0 +13,0 @@ test('default', () => { |
@@ -15,2 +15,4 @@ import { | ||
Element, | ||
LineControllerChartOptions, | ||
CartesianScaleTypeRegistry, | ||
} from 'chart.js'; | ||
@@ -17,0 +19,0 @@ import { merge } from 'chart.js/helpers'; |
@@ -14,2 +14,4 @@ import { | ||
ScriptableContext, | ||
PolarAreaControllerChartOptions, | ||
CartesianScaleTypeRegistry, | ||
} from 'chart.js'; | ||
@@ -16,0 +18,0 @@ import { merge } from 'chart.js/helpers'; |
@@ -15,2 +15,4 @@ import { | ||
Element, | ||
ScatterControllerChartOptions, | ||
CartesianScaleTypeRegistry, | ||
} from 'chart.js'; | ||
@@ -17,0 +19,0 @@ import { merge } from 'chart.js/helpers'; |
@@ -1,2 +0,9 @@ | ||
import { ArcElement } from 'chart.js'; | ||
import { | ||
ArcElement, | ||
ArcOptions, | ||
ArcHoverOptions, | ||
ChartType, | ||
ScriptableAndArrayOptions, | ||
ScriptableContext, | ||
} from 'chart.js'; | ||
import { renderErrorBarArc, errorBarDefaults, errorBarDescriptors, IErrorBarOptions } from './render'; | ||
@@ -3,0 +10,0 @@ |
@@ -1,2 +0,9 @@ | ||
import { BarElement } from 'chart.js'; | ||
import { | ||
BarElement, | ||
BarHoverOptions, | ||
BarOptions, | ||
ChartType, | ||
ScriptableAndArrayOptions, | ||
ScriptableContext, | ||
} from 'chart.js'; | ||
import { renderErrorBar, errorBarDefaults, errorBarDescriptors, IErrorBarOptions } from './render'; | ||
@@ -3,0 +10,0 @@ |
@@ -1,2 +0,9 @@ | ||
import { PointElement } from 'chart.js'; | ||
import { | ||
PointElement, | ||
PointOptions, | ||
PointHoverOptions, | ||
ChartType, | ||
ScriptableAndArrayOptions, | ||
ScriptableContext, | ||
} from 'chart.js'; | ||
import { renderErrorBar, errorBarDefaults, errorBarDescriptors, IErrorBarOptions } from './render'; | ||
@@ -3,0 +10,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
279940
3886
1
2
+ Added@kurkle/color@^0.3.0
+ Added@kurkle/color@0.3.4(transitive)
+ Addedchart.js@4.4.7(transitive)
- Removedchart.js@3.9.1(transitive)