Arun Philip
1777f959e5
platform.isAttached should return false if canvas is false-y ( #11707 )
...
* platform.isAttached should return false if canvas is false-y
* change styling to conform to codeclimate linter
2024-03-11 09:57:07 +01:00
Arun Philip
bbdaa6a14b
addListener and removeListener are only invoked on defined (and valid) values ( #11685 )
2024-02-28 10:55:52 -05:00
Dan Onoshko
51441272a7
refactor: move to esm in sources ( #10879 )
2022-11-17 08:08:44 -05:00
Evert Timberg
e6892a92cb
Convert helpers.extra to TS ( #10728 )
...
Co-authored-by: Chart.js <>
2022-10-06 15:37:42 -04:00
Yiwen Wang
ebcaff15c2
Add option to include invisible points ( #10362 )
...
* Add option to include invisible points
* Minor fixes
* Add doc for newly added option
* Fix typo
* Add test for newly added option
* Improve description of the new option
* Update docs/configuration/interactions.md
Co-authored-by: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com>
Co-authored-by: Yiwen Wang 🌊 <yiwwan@microsoft.com>
Co-authored-by: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com>
2022-05-25 13:25:27 +03:00
Jukka Kurkela
ba6b446b04
Limit active element changes to chartArea ( #9970 )
...
* Limit active element changes to chartArea
* CC, remove duplicate ChartEvent interface
* CC2
2021-12-08 16:44:45 +02:00
Jukka Kurkela
bccb1276f0
Detect detach/attach in same observation ( #9876 )
...
* Detect detach/attach in same observation
* Missing `!`, better tests
* reduce duplication
2021-11-27 21:46:00 +02:00
Jukka Kurkela
bc5e5cbf11
Disable animations for BasicPlatform (offcreen) ( #9751 )
...
* Disable animations for BasicPlatform (offcreen)
* Update types
2021-10-11 14:37:25 -04:00
Jukka Kurkela
fca0309223
Detect attach/detach from any level ( #9557 )
2021-08-18 18:14:09 -04:00
Jukka Kurkela
0d0481d64c
Fix DomPlatform.isAttached ( #9448 )
2021-07-23 08:28:09 +03:00
Jukka Kurkela
bc7c58d46d
Fix: config.platform was ignored ( #9442 )
2021-07-20 07:51:16 -04:00
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