mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 20:29:12 +02:00
efced4780c
In many cases, the canvas render size is changed by the lib, causing the state stack to be discarded, meaning that we can't use save() and restore() to release the context with its initial state (i.e. before creating the chart). Since we don't need (want) to manually save / restore the context initial state, simply make sure to reset it to the default state to give a fresh context back to the user. That also means we don't need to revert the scale when the pixel device ratio is not 1. |
||
---|---|---|
.. | ||
controller.bar.tests.js | ||
controller.bubble.tests.js | ||
controller.doughnut.tests.js | ||
controller.line.tests.js | ||
controller.polarArea.tests.js | ||
controller.radar.tests.js | ||
core.controller.tests.js | ||
core.datasetController.tests.js | ||
core.element.tests.js | ||
core.helpers.tests.js | ||
core.interaction.tests.js | ||
core.layoutService.tests.js | ||
core.legend.tests.js | ||
core.plugin.tests.js | ||
core.scaleService.tests.js | ||
core.title.tests.js | ||
core.tooltip.tests.js | ||
defaultConfig.tests.js | ||
element.arc.tests.js | ||
element.line.tests.js | ||
element.point.tests.js | ||
element.rectangle.tests.js | ||
mockContext.js | ||
scale.category.tests.js | ||
scale.linear.tests.js | ||
scale.logarithmic.tests.js | ||
scale.radialLinear.tests.js | ||
scale.time.tests.js |