Commit Graph

21 Commits

Author SHA1 Message Date
Jukka Kurkela
cfd9c98575 Option resolution with proxies (#8374)
* Option resolution with proxies

* Remove plugin fallback to root options/defaults

* Update core plugins, reduntant font fallbacks

* Add some notes
2021-02-15 14:42:32 -05:00
Jukka Kurkela
ddfbcf777a Update eslint-config-chartjs to v0.3.0 (#8406) 2021-02-10 08:21:39 -05:00
Evert Timberg
17f6edb650 Remove I prefix from TS types (#8017)
* Remove I prefix from TS types
* Update missing `ILayoutItem` typedefs
* IEvent should become ChartEvent
* Prevent FillTarget collision
* Import FontSpec instead of IFontSpec
* Prevent recursive DateAdapter problem
2020-11-07 08:35:19 -05:00
Jukka Kurkela
10f393a58d Fix: maximum size and mouse position with styling (#7816)
Fix: maximum size and mouse position with styling
2020-09-26 13:18:35 -04:00
Jukka Kurkela
2f888172d4 Cache event offset coordinates (#7795) 2020-09-14 11:37:29 -04:00
Jukka Kurkela
ae214d9fbd Resize on devicePixelRatio changes (#7717)
* Resize on devicePixelRatio changes
2020-08-19 07:08:41 -04:00
Yiwen Wang
94763bff35 Fix chart resizing issue (#7297) (#7298)
Fix chart resizing issue
2020-05-25 16:54:55 -04:00
Samuel Gratzl
3e28825c0f use direct imports instead of generic helpers import (#7385)
Split all helper functions in different files and import them directly where used
2020-05-21 16:41:56 -04:00
Jukka Kurkela
39eb39008d Rename platform/platform to index removing default (#7391)
Rename platform/platform to index removing default
2020-05-21 16:36:06 -04:00
Jukka Kurkela
cfb5fba527 Delay animations until attached (#7370)
* Delay animations until attached
* Detect container detachment
2020-05-20 17:45:44 -04:00
Evert Timberg
f19a701bc5 Check for destroyed charts when handling throttled DOM events (#7293)
Co-authored-by: Evert Timberg <etimberg@opusonesolutions.com>
2020-04-27 21:53:53 -04:00
Ben McCann
7051410d4e Only polyfill ResizeObserver for UMD builds (#7208) 2020-03-22 13:40:26 -04:00
Ben McCann
2e5b072251 Turn on some TypeScript checks (#7116)
Turn on some TypeScript checks
2020-02-20 09:43:16 -05:00
Ben McCann
3682da7899 JSDoc fixes (#7112) 2020-02-17 14:31:43 -05:00
Jukka Kurkela
bfe34214ac Use ResizeObserver and MutationObserver to detect detach/attach/resize (#7104)
* Use Resize/MutationObserver to detect detach/attach/resize
* Cleanup
* Review update
* Restore infinite resize detection (#6011)
2020-02-17 11:00:03 -05:00
Jukka Kurkela
25a9969489 Enable esnext and fix all lint errors (#7094)
* enable esnext and fix all lint errors

* Review update

* Missed some

* Some cleanup still

* Remove leftover eslint disable
2020-02-13 18:41:49 -05:00
Ben McCann
40b8254ca4 Cleanup private methods on Scales (#7082) 2020-02-11 19:18:13 -05:00
Ben McCann
795c86e95b Fix errors reported by TypeScript compiler (#7030) 2020-02-07 18:03:33 -05:00
Ben McCann
1c18a74ea0 Fix some JSDoc errors (#7026)
* Fix some JSDoc errors

* Fix helpers.dom JSDoc errors

* Add scale JSDoc errors

* Address review comment

* Fix additional errors

* Document optional parameters

* JSDoc fixes for datasetController

* Remove undefined
2020-02-03 07:52:55 -05:00
Ben McCann
12333b02a5 Switch to const/let in platform.dom.js and fix bug (#7024) 2020-01-28 12:35:34 -05:00
David Winegar
1ad5f369af Allow switching platforms (#6964)
Allow switching platforms

Move the Chart.platform to Chart.platform.current instead, and add
ways to see available platforms and set the current platform. This
is necessary for adding tests that use the "basic" platform.
2020-01-26 15:33:20 -05:00