Commit Graph

144 Commits

Author SHA1 Message Date
Samuel Gratzl
8fadae6c91 WIP: TypeScript types (#7668)
First version of types
2020-09-01 11:30:15 -04:00
Jukka Kurkela
ecf86e5b7e Live demo in getting-started page (#7659)
* Output docs directly to dist
* Live demo in getting-started page
2020-09-01 11:30:15 -04:00
Evert Timberg
6ca6911245 Bump package version in preparation for alpha2 release (#7586)
* Bump package version in preparation for alpha2 release
* Bump lockfile as well
* Mark build as pre-release
2020-09-01 11:30:15 -04:00
Jukka Kurkela
61b8beb33e Registry bugs (#7608)
* Stop failing early when no scales are registered
* Move filler defaults
* Move legend defaults
* Remove legendHitBoxes from title
* Move @kurkle/color to devDependencies
2020-09-01 11:30:15 -04:00
Jukka Kurkela
49a9fe3c60 PluginService using registry (#7590)
PluginService using registry
2020-09-01 11:30:15 -04:00
Jukka Kurkela
5a08594ee5 ESM build, with helpers separated (#7400)
* ESM build, with helpers separated
* Remove umd environment
* Include the chunks in package
2020-09-01 11:30:15 -04:00
Jukka Kurkela
20835caf99 Update packages (#7486) 2020-09-01 11:30:15 -04:00
Jukka Kurkela
2f17449cc5 Update packages (#7463) 2020-09-01 11:30:15 -04:00
Ben McCann
b71e4c3c7f Remove unused dependency (#7441) 2020-09-01 11:30:15 -04:00
Jukka Kurkela
d02e5f0d47 Replace gulp with npm scripts (#7402)
Gulp removed from toolchain in favour of simpler build process
2020-09-01 11:30:15 -04:00
Jukka Kurkela
521844704c Remove proposal and obsolete features (#7425) 2020-09-01 11:30:15 -04:00
Jukka Kurkela
5ab50126be Rename dist/Chart* to dist/chart* (#7416)
* Rename dist/Chart* to dist/chart*
* Add a note to migration docs
* Review update
2020-09-01 11:30:15 -04:00
Ben McCann
7b81f0f491 Upgrade dependencies (#7352) 2020-09-01 11:30:15 -04:00
Jukka Kurkela
83889c8948 Use @rollup/plugin-inject for ResizeObserver poly (#7360) 2020-09-01 11:30:15 -04:00
Ben McCann
7ba6a7fa4e Upgrade dependencies (#7317) 2020-09-01 11:30:15 -04:00
Ben McCann
d75dab036e Migrate from GitBook to Docusaurus (#7295)
Migrate from GitBook to Docusaurus
2020-09-01 11:30:15 -04:00
Ben McCann
2b2e49728e Finish removing bower (#7294) 2020-09-01 11:30:15 -04:00
Ben McCann
127c134d9b Update dependencies (#7233) 2020-09-01 11:30:15 -04:00
Ben McCann
efdbea9e9a Only polyfill ResizeObserver for UMD builds (#7208) 2020-09-01 11:30:15 -04:00
Evert Timberg
6c9b0a5a3e Bump package version for first alpha release of v3 (#7183) 2020-03-08 11:10:30 -04:00
Ben McCann
53205457dc Add tests for rendering to offscreen canvas (#7175)
Add tests for using an offscreen canvas for Chart.js. These tests are
almost identical to existing tests, but with offscreen canvas enabled.

Co-authored-by: David Winegar <david.winegar@getcruise.com>
2020-03-06 12:17:12 -05:00
Jukka Kurkela
df3c73cc5e Give the boot to chartjs-adapter-moment (#7155)
Remove default of using chartjs-adapter-moment
2020-02-27 19:40:31 -05:00
Jukka Kurkela
d801e56106 Update dependencies and alter privacy of functions (#7138)
* Update dependencies

* Fix privacy problems

* color lib & consistency

* Review update

* getLabelCapacity

* Review update
2020-02-22 08:35:16 -05:00
Ben McCann
7b9a0a775c Rollup plugins live in new location (#7134) 2020-02-20 18:19:59 -05:00
Jukka Kurkela
65425a5cb6 Include version in Chart (#7129)
* Include version in Chart
* Remove commonjs
2020-02-20 09:41:47 -05:00
Jukka Kurkela
f2aa88f49d Prepare babel & karma for class properties (#7126)
* Prepare babel & karma for class properties
* Remove rollup-plugin-istanbul
2020-02-19 14:24:16 -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
Evert Timberg
8245da44f5 Strip comments from ESM build otherwise the TS compiler breaks (#7102)
* Strip comments from ESM build otherwise the TS compiler breaks
* Cleanup no ESM build as well
2020-02-14 14:11:24 -05:00
Jukka Kurkela
7c1fb37c61 Babel @kurkle/color for IE support (#7099)
Babel @kurkle/color for IE support
2020-02-14 12:29:33 -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
Jukka Kurkela
44a624f2d1 Fix typo and update dependencies (#7077)
* Fix typo and update dependencies
* Update `isColorInstance`
2020-02-09 20:14:38 -05:00
Jukka Kurkela
fa79eb8797 Switch from chartjs-color to @kurkle/color (#7059) 2020-02-07 19:24:29 -05:00
Ben McCann
795c86e95b Fix errors reported by TypeScript compiler (#7030) 2020-02-07 18:03:33 -05:00
Evert Timberg
aae841a624 Set the version to v3.0.0-dev for dev builds (#6965) 2020-01-16 07:20:16 -05:00
Evert Timberg
27129db2e8 Update some dependencies that have security alerts (#6891) 2020-01-02 09:42:48 -05:00
Ben McCann
8f0de52c4e Remove moment from dependencies (#6745)
* Remove moment from dependencies
* Remove version number in docs
2019-11-15 13:13:33 -05:00
Ben McCann
3a33793f64 Generate jsdocs (#5824) 2019-11-08 07:28:21 -05:00
Edward Thomson
aff7d41140 Add cross-platform CI (#6670)
* Linux and Windows CI with GitHub Actions
* Add karma-edge-launcher
* Add edge configuration to karma.conf.js
* Support --browsers on the command line for karma tests
* Add macOS CI builds
* Add karma-safari-private-launcher
* Document browser specification for tests
2019-11-06 07:14:09 -05:00
Ben McCann
eef153de40 Upgrade dependencies (#6662) 2019-10-31 18:03:00 -04:00
Jukka Kurkela
c068f2178a Update eslint-config-chartjs (#6650) 2019-10-30 18:51:01 -04:00
Sebastian Niemann
9537548321 Adds support for ES6 modules (#6619) 2019-10-27 18:28:25 -04:00
Evert Timberg
1ac3a697f7 Add babel plugin for rollup & transform code (#6555)
* Add babel plugin for rollup & transform code
* Add .browserlistrc file & copy defaults
2019-10-27 16:28:30 -04:00
Evert Timberg
d4dc505966 Bump version number to v2.9.1 (#6612) 2019-10-27 14:51:07 -04:00
Ben McCann
ea100d400e Bump version number to 2.9.0 (#6600) 2019-10-25 14:57:21 -04:00
Ben McCann
f68b8adaac Upgrade rollup and plugins to fix build (#6493) 2019-09-04 07:44:01 -04:00
Simon Brunel
152f1d9725 Bump version to 2.8.0 2019-03-12 11:29:11 +01:00
Simon Brunel
f9f048a5c5 Bump version to 2.8.0-rc.1 2019-03-04 09:58:08 +01:00
Simon Brunel
35273ee948 Optimize the npm package by removing useless files (#6105)
Explicitly target files that should be included in the npm package, making it 10x smaller by removing the docs, samples, scripts, sources, tests and other useless files.
2019-03-03 15:19:11 +01:00
Simon Brunel
55128f74c1 Move CSS in a separate file to be CSP-compliant (#6048)
In order to be compatible with any CSP, we need to prevent the automatic creation of the DOM 'style' element and offer our CSS as a separate file that can be manually loaded (`Chart.js` or `Chart.min.js`). Users can now opt-out the style injection using `Chart.platform.disableCSSInjection = true` (note that the style sheet is now injected on the first chart creation).

To prevent duplicating and maintaining the same CSS code at different places, move all these rules in `platform.dom.css` and write a minimal rollup plugin to inject that style as string in `platform.dom.js`. Additionally, this plugin extract the imported style in `./dist/Chart.js` and `./dist/Chart.min.js`.
2019-02-08 19:06:04 +01:00
Ben McCann
a2521e54ee Replace deprecated gulp-util and remove unused watchify (#6032)
* Replace deprecated gulp-util and remove unused watchify

* Remove logging
2019-02-01 20:03:31 -05:00