mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Line: Set points on resize (to reset Path2D cache) (#8250)
This commit is contained in:
parent
2e43f787de
commit
6ffc380c6a
@ -28,14 +28,10 @@ export default class LineController extends DatasetController {
|
||||
}
|
||||
|
||||
// Update Line
|
||||
// In resize mode only point locations change, so no need to set the points or options.
|
||||
line.points = points;
|
||||
// In resize mode only point locations change, so no need to set the options.
|
||||
if (mode !== 'resize') {
|
||||
const properties = {
|
||||
points,
|
||||
options: me.resolveDatasetElementOptions()
|
||||
};
|
||||
|
||||
me.updateElement(line, undefined, properties, mode);
|
||||
me.updateElement(line, undefined, {options: me.resolveDatasetElementOptions()}, mode);
|
||||
}
|
||||
|
||||
// Update Points
|
||||
|
Loading…
Reference in New Issue
Block a user