language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
chartjs
Chart.js
7a231313668f3b3dfe949dabd2c8da69f9088c55.json
Add datasetLabel to elements for tooltip templates
src/Chart.Radar.js
@@ -121,6 +121,7 @@ datasetObject.points.push(new this.PointClass({ value : dataPoint, label : data.labels[index], + datasetLabel: dataset.label, x: (this.options.animation) ? this.scale.xCenter : pointPosition.x, y: (this.options.animation) ? this.scale.yCenter : pointPosit...
true
Other
chartjs
Chart.js
d7632efe65dde5deb2a19c01aa3d01d91458ef56.json
Prevent spare datasets from breaking MultiTooltips
src/Chart.Core.js
@@ -873,7 +873,9 @@ yMin; helpers.each(this.datasets, function(dataset){ dataCollection = dataset.points || dataset.bars || dataset.segments; - Elements.push(dataCollection[dataIndex]); + if (dataCollection[dataIndex]){ + Elements.push(dataCollection[dataIndex]); + ...
false
Other
chartjs
Chart.js
477e09f1d406b71f0c3f8990da7d0037c427125f.json
Add support for CommonJS module definition
Chart.js
@@ -1873,6 +1873,8 @@ define(function(){ return Chart; }); + } else if (typeof module === 'object' && module.exports) { + module.exports = Chart; } root.Chart = Chart;
true
Other
chartjs
Chart.js
477e09f1d406b71f0c3f8990da7d0037c427125f.json
Add support for CommonJS module definition
Chart.min.js
@@ -6,5 +6,5 @@ * Released under the MIT license * https://github.com/nnnick/Chart.js/blob/master/LICENSE.md */ -(function(){"use strict";var t=this,i=t.Chart,e=function(t){this.canvas=t.canvas,this.ctx=t;this.width=t.canvas.width,this.height=t.canvas.height;return this.aspectRatio=this.width/this.height,s.retina...
true
Other
chartjs
Chart.js
477e09f1d406b71f0c3f8990da7d0037c427125f.json
Add support for CommonJS module definition
src/Chart.Core.js
@@ -1873,6 +1873,8 @@ define(function(){ return Chart; }); + } else if (typeof module === 'object' && module.exports) { + module.exports = Chart; } root.Chart = Chart;
true
Other
chartjs
Chart.js
e139ab85969c92916639f6fa026740e3cc8dc0ff.json
Make javascript JavaScript and Github GitHub
docs/00-Getting-Started.md
@@ -11,7 +11,7 @@ First we need to include the Chart.js library on the page. The library occupies <script src="Chart.js"></script> ``` -Alternatively, if you're using an AMD loader for javascript modules, that is also supported in the Chart.js core. Please note: the library will still occupy a global variable of `C...
true
Other
chartjs
Chart.js
e139ab85969c92916639f6fa026740e3cc8dc0ff.json
Make javascript JavaScript and Github GitHub
docs/06-Advanced.md
@@ -122,7 +122,7 @@ new Chart(ctx).LineAlt(data); ### Creating custom builds -Chart.js uses <a href="http://gulpjs.com/" target="_blank">gulp</a> to build the library into a single javascript file. We can use this same build script with custom parameters in order to build a custom version. +Chart.js uses <a href="...
true
Other
chartjs
Chart.js
e139ab85969c92916639f6fa026740e3cc8dc0ff.json
Make javascript JavaScript and Github GitHub
docs/07-Notes.md
@@ -26,7 +26,7 @@ Some important points to note in my experience using ExplorerCanvas as a fallbac ### Bugs & issues -Please report these on the Github page - at <a href="https://github.com/nnnick/Chart.js" target="_blank">github.com/nnnick/Chart.js</a>. If you could include a link to a simple <a href="http://jsbi...
true
Other
chartjs
Chart.js
e24efd23a2bbd9db6197998f9b8f1ab33d1df6f2.json
Add build sequence + dev dependencies
gulpfile.js
@@ -0,0 +1,87 @@ +var gulp = require('gulp'), + concat = require('gulp-concat'), + uglify = require('gulp-uglify'), + util = require('gulp-util'), + jshint = require('gulp-jshint'), + size = require('gulp-size'), + connect = require('gulp-connect'), + exec = require('child_process').exec; + +var srcDir = './src/'; +/* ...
true
Other
chartjs
Chart.js
e24efd23a2bbd9db6197998f9b8f1ab33d1df6f2.json
Add build sequence + dev dependencies
package.json
@@ -0,0 +1,21 @@ +{ + "name": "Chart.js", + "homepage": "http://www.chartjs.org", + "description": "Simple HTML5 charts using the canvas element.", + "private": true, + "version": "1.0.0-beta", + "repository": { + "type": "git", + "url": "https://github.com/nnnick/Chart.js.git" + }, + "dependences": {}, +...
true
Other
chartjs
Chart.js
dc6d5bc934f582d32abb89abc506738d80e29548.json
Add new docs as markdown files
docs/00-Getting-Started.md
@@ -0,0 +1,197 @@ +--- +title: Getting started +anchor: getting-started +--- + +###Include Chart.js + +First we need to include the Chart.js library on the page. The library occupies a global variable of `Chart`. + +```html +<script src="Chart.js"></script> +``` + +Alternatively, if you're using an AMD loader for javas...
true
Other
chartjs
Chart.js
dc6d5bc934f582d32abb89abc506738d80e29548.json
Add new docs as markdown files
docs/01-Line-Chart.md
@@ -0,0 +1,160 @@ +--- +title: Line Chart +anchor: line-chart +--- +###Introduction +A line chart is a way of plotting data points on a line. + +Often, it is used to show trend data, and the comparison of two data sets. + +<div class="canvas-holder"> + <canvas width="250" height="125"></canvas> +</div> + +###Example us...
true
Other
chartjs
Chart.js
dc6d5bc934f582d32abb89abc506738d80e29548.json
Add new docs as markdown files
docs/02-Bar-Chart.md
@@ -0,0 +1,143 @@ +--- +title: Bar Chart +anchor: bar-chart +--- + +### Introduction +A bar chart is a way of showing data as bars. + +It is sometimes used to show trend data, and the comparison of multiple data sets side by side. + +<div class="canvas-holder"> + <canvas width="250" height="125"></canvas> +</div> + +##...
true
Other
chartjs
Chart.js
dc6d5bc934f582d32abb89abc506738d80e29548.json
Add new docs as markdown files
docs/03-Radar-Chart.md
@@ -0,0 +1,177 @@ +--- +title: Radar Chart +anchor: radar-chart +--- + +###Introduction +A radar chart is a way of showing multiple data points and the variation between them. + +They are often useful for comparing the points of two or more different data sets. + +<div class="canvas-holder"> + <canvas width="250" heigh...
true
Other
chartjs
Chart.js
dc6d5bc934f582d32abb89abc506738d80e29548.json
Add new docs as markdown files
docs/04-Polar-Area-Chart.md
@@ -0,0 +1,172 @@ +--- +title: Polar Area Chart +anchor: polar-area-chart +--- +### Introduction +Polar area charts are similar to pie charts, but each segment has the same angle - the radius of the segment differs depending on the value. + +This type of chart is often useful when we want to show a comparison data simi...
true
Other
chartjs
Chart.js
dc6d5bc934f582d32abb89abc506738d80e29548.json
Add new docs as markdown files
docs/05-Pie-Doughnut-Chart.md
@@ -0,0 +1,158 @@ +--- +title: Pie & Doughnut Charts +anchor: doughnut-pie-chart +--- +###Introduction +Pie and doughnut charts are probably the most commonly used chart there are. They are divided into segments, the arc of each segment shows a the proportional value of each piece of data. + +They are excellent at show...
true
Other
chartjs
Chart.js
dc6d5bc934f582d32abb89abc506738d80e29548.json
Add new docs as markdown files
docs/06-Advanced.md
@@ -0,0 +1,144 @@ +--- +title: Advanced usage +anchor: advanced-usage +--- + + +### Prototype methods + +For each chart, there are a set of global prototype methods on the shared `ChartType` which you may find useful. These are available on all charts created with Chart.js, but for the examples, let's use a line chart ...
true
Other
chartjs
Chart.js
dc6d5bc934f582d32abb89abc506738d80e29548.json
Add new docs as markdown files
docs/07-Notes.md
@@ -0,0 +1,42 @@ +--- +title: Notes +anchor: notes +--- + +### Browser support +Browser support for the canvas element is available in all modern & major mobile browsers <a href="http://caniuse.com/canvas" target="_blank">(caniuse.com/canvas)</a>. + +For IE8 & below, I would recommend using the polyfill ExplorerCanvas ...
true
Other
chartjs
Chart.js
0a6c892766abe47e5e535a654b45ab5db052bb76.json
Update copyright year in license to include 2014
LICENSE.md
@@ -1,4 +1,4 @@ -Copyright (c) 2014 Nick Downie +Copyright (c) 2013-2014 Nick Downie Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights ...
false
Other
chartjs
Chart.js
51032692f335db8b75411a097810b5e7740fc871.json
Update copyright year in license to 2014
LICENSE.md
@@ -1,4 +1,4 @@ -Copyright (c) 2013 Nick Downie +Copyright (c) 2014 Nick Downie Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to us...
false
Other
chartjs
Chart.js
85f3755f9abd6a1b5224f61cb4e209739f850eed.json
Restore original canvas context when destroying
src/Chart.Core.js
@@ -868,6 +868,21 @@ destroy : function(){ this.clear(); unbindEvents(this, this.events); + var canvas = this.chart.canvas; + + // Reset canvas height/width attributes starts a fresh with the canvas context + canvas.width = this.chart.width; + canvas.height = this.chart.height; + + // < IE9 doesn't...
false
Other
chartjs
Chart.js
84e859b6c53b864d251537e76943ae8f72ce3339.json
Remove email notifications
.travis.yml
@@ -11,7 +11,3 @@ script: - cp Chart.min.js /tmp/OLD - gulp build - cmp Chart.min.js /tmp/OLD # ensure build was run before commit - -notifications: - email: - hello@nickdownie.com
false
Other
chartjs
Chart.js
81d4f97abc11420cf16e131e5c169c2baae9a152.json
Remove unnecessary semicolons
src/Chart.Core.js
@@ -238,7 +238,7 @@ if (filterCallback(currentItem)){ return currentItem; } - }; + } }, findPreviousWhere = helpers.findPreviousWhere = function(arrayToSearch, filterCallback, startIndex){ // Default to end of the array @@ -250,7 +250,7 @@ if (filterCallback(currentItem)){ retur...
false
Other
chartjs
Chart.js
2e4bb1899f32db31b48291a7755d461ca0af0072.json
Fix mixed whitespace
src/Chart.Core.js
@@ -92,8 +92,8 @@ // Boolean - whether or not the chart should be responsive and resize when the browser does. responsive: false, - // Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container - ...
false
Other
chartjs
Chart.js
8c41c5c1b7a6421824c3eb071ea944004403c15f.json
Rewrite contributing guidelines
CONTRIBUTING.md
@@ -1,20 +1,51 @@ -Contributing -============ +Contributing to Chart.js +======================== -New contributions to the library are welcome, just a couple of guidelines: +Contributions to Chart.js are welcome and encouraged, but please have a look through the guidelines in this document before raising an issue, o...
false
Other
chartjs
Chart.js
cfc4599a30e1f49b08abe2133485f8508a896cef.json
Add Travis CI support
.travis.yml
@@ -0,0 +1,17 @@ +language: node_js +node_js: + - "0.11" + - "0.10" + +before_script: + - npm install + +script: + - gulp jshint + - cp Chart.min.js /tmp/OLD + - gulp build + - cmp Chart.min.js /tmp/OLD # ensure build was run before commit + +notifications: + email: + hello@nickdownie.com
true
Other
chartjs
Chart.js
cfc4599a30e1f49b08abe2133485f8508a896cef.json
Add Travis CI support
README.md
@@ -1,4 +1,4 @@ -# Chart.js +# Chart.js [![Build Status](https://travis-ci.org/nnnick/Chart.js.svg?branch=master)](https://travis-ci.org/nnnick/Chart.js) [![Code Climate](https://codeclimate.com/github/nnnick/Chart.js/badges/gpa.svg)](https://codeclimate.com/github/nnnick/Chart.js)
true
Other
chartjs
Chart.js
cfc4599a30e1f49b08abe2133485f8508a896cef.json
Add Travis CI support
gulpfile.js
@@ -6,6 +6,7 @@ var gulp = require('gulp'), size = require('gulp-size'), connect = require('gulp-connect'), replace = require('gulp-replace'), + htmlv = require('gulp-html-validator'), inquirer = require('inquirer'), semver = require('semver'), exec = require('child_process').exec, @@ -90,6 +91,11 @@ gulp.t...
true
Other
chartjs
Chart.js
cfc4599a30e1f49b08abe2133485f8508a896cef.json
Add Travis CI support
package.json
@@ -18,7 +18,8 @@ "gulp-size": "~0.4.0", "gulp-uglify": "~0.2.x", "gulp-util": "~2.2.x", + "gulp-html-validator": "^0.0.2", "inquirer": "^0.5.1", "semver": "^3.0.1" } -} \ No newline at end of file +}
true
Other
chartjs
Chart.js
f81d6f45e19da797def2709551ef2fde2d1c1a1d.json
Update readme about where to put new chart types
README.md
@@ -14,4 +14,4 @@ Chart.js is available under the [MIT license](http://opensource.org/licenses/MIT When reporting bugs or issues, if you could include a link to a simple [jsbin](http://jsbin.com) or similar demonstrating the issue, that'd be really helpful. -This project is modular and supports separately-maintain...
false
Other
chartjs
Chart.js
337511110cb139b4f312aa9195aad0629f5ee649.json
Add spm support
package.json
@@ -20,5 +20,8 @@ "gulp-util": "~2.2.x", "inquirer": "^0.5.1", "semver": "^3.0.1" + }, + "spm": { + "main": "Chart.js" } -} \ No newline at end of file +}
false
Other
chartjs
Chart.js
5ab5e8400afad4ea3e3d3d47531465984f31a2ee.json
add 10 to yLabelWidth on set, rather than on use
src/Chart.Core.js
@@ -1411,7 +1411,7 @@ for (var i=0; i<=this.steps; i++){ this.yLabels.push(template(this.templateString,{value:(this.min + (i * this.stepValue)).toFixed(stepDecimalPlaces)})); } - this.yLabelWidth = (this.display && this.showLabels) ? longestText(this.ctx,this.font,this.yLabels) : 0; + this.yLabelWidth...
false
Other
chartjs
Chart.js
7eabb701300bf64d285ac9a94b2d9769d8ab9767.json
Add strict language to README.
README.md
@@ -13,3 +13,5 @@ Chart.js is available under the [MIT license](http://opensource.org/licenses/MIT ## Bugs & issues When reporting bugs or issues, if you could include a link to a simple [jsbin](http://jsbin.com) or similar demonstrating the issue, that'd be really helpful. + +This project is modular and supports s...
false
Other
chartjs
Chart.js
2ef91b1c783b1f9d415c9bd2f4aba8ba9f958182.json
Use canonical docs url
README.md
@@ -4,7 +4,7 @@ ## Documentation -You can find documentation at [chartjs.org/docs](http://www.chartjs.org/docs). The markdown files that build the site are available under `/docs`. Please note - in some of the json examples of configuration you might notice some liquid tags - this is just for the generating the si...
false
Other
chartjs
Chart.js
af17a4460ef4a77de663ba45f94c8b65a3646f20.json
Fix old broken links and update for new repo
CONTRIBUTING.md
@@ -7,9 +7,9 @@ Contributions to Chart.js are welcome and encouraged, but please have a look thr Using issues ------------ -The [issue tracker](https://github.com/nnnick/Chart.js/issues) is the preferred channel for reporting bugs, requesting new features and submitting pull requests. +The [issue tracker](https://g...
false
Other
chartjs
Chart.js
36b9ee7e9eabd0fe7ad5cf5c5db821570a024c24.json
Update coverage badge for switched location
README.md
@@ -1,6 +1,6 @@ # Chart.js -[![Build Status](https://travis-ci.org/chartjs/Chart.js.svg?branch=master)](https://travis-ci.org/chartjs/Chart.js) [![Code Climate](https://codeclimate.com/github/nnnick/Chart.js/badges/gpa.svg)](https://codeclimate.com/github/nnnick/Chart.js)[![Coverage Status](https://coveralls.io/repo...
false
Other
chartjs
Chart.js
a417e78b8098e9c842039652ee2c0666381eb4f5.json
Remove unnecessary partial sentence
docs/00-Getting-Started.md
@@ -273,5 +273,3 @@ img.onload = function() { } ``` - -It is common to spec \ No newline at end of file
false
Other
chartjs
Chart.js
47552152c3e1b53baa51735ea11fec0ef7f4eabd.json
Remove file and fix jshint error
samples/zoom.html
@@ -1,232 +0,0 @@ -<!doctype html> -<html> - -<head> - <title>Scatter Chart</title> - <script src="../dist/Chart.bundle.js"></script> - <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> - <style> - canvas { - -moz-user-select: none; - -webkit-user-sele...
true
Other
chartjs
Chart.js
47552152c3e1b53baa51735ea11fec0ef7f4eabd.json
Remove file and fix jshint error
src/core/core.controller.js
@@ -422,7 +422,7 @@ module.exports = function(Chart) { canvas.style.width = this.chart.originalCanvasStyleWidth; canvas.style.height = this.chart.originalCanvasStyleHeight; - Chart.pluginService.notifyPlugins('destory', [this, easingDecimal]); + Chart.pluginService.notifyPlugins('destory', [this]); ...
true
Other
chartjs
Chart.js
527e7d9b7a5fe198e9cf096890bc30fb6a4bdafc.json
Update colours + example values in docs
docs/02-Line-Chart.md
@@ -37,17 +37,17 @@ var data = { label: "My First dataset", // Boolean - if true fill the area under the line - fill: false, - - // Tension - bezier curve tension of the line. Set to 0 to draw straight lines connecting points - // Used to be called "tension" but was renamed for consistency. The old o...
true
Other
chartjs
Chart.js
527e7d9b7a5fe198e9cf096890bc30fb6a4bdafc.json
Update colours + example values in docs
docs/03-Bar-Chart.md
@@ -32,19 +32,19 @@ var data = { // The properties below allow an array to be specified to change the value of the item at the given index // String or array - the bar color - backgroundColor: "rgba(220,220,220,0.2)", + backgroundColor: "rgba(255,99,132,0.2)", // String or array - bar stroke color ...
true
Other
chartjs
Chart.js
527e7d9b7a5fe198e9cf096890bc30fb6a4bdafc.json
Update colours + example values in docs
docs/04-Radar-Chart.md
@@ -29,22 +29,22 @@ var data = { datasets: [ { label: "My First dataset", - backgroundColor: "rgba(220,220,220,0.2)", - borderColor: "rgba(220,220,220,1)", - pointBackgroundColor: "rgba(220,220,220,1)", + backgroundColor: "rgba(179,181,198,0.2)", + borderColor: "rgba(179,181,198,1)", + pointBackgro...
true
Other
chartjs
Chart.js
527e7d9b7a5fe198e9cf096890bc30fb6a4bdafc.json
Update colours + example values in docs
docs/05-Polar-Area-Chart.md
@@ -27,18 +27,18 @@ new Chart(ctx, { var data = { datasets: [{ data: [ - 10, - 32, - 53, - 14, - 22, + 11, + 16, + 7, + 3, + 14 ], backgroundColor: [ - "#F7464A", - "#46BFBD", - "#FDB45C", - "#949FB1", - "#4D5360", + "#FF6384", + "#4BC0C0", + "#FFCE56", + "#E7E9ED", + ...
true
Other
chartjs
Chart.js
527e7d9b7a5fe198e9cf096890bc30fb6a4bdafc.json
Update colours + example values in docs
docs/06-Pie-Doughnut-Chart.md
@@ -53,14 +53,14 @@ var data = { { data: [300, 50, 100], backgroundColor: [ - "#F7464A", - "#46BFBD", - "#FDB45C" + "#FF6384", + "#36A2EB", + "#FFCE56" ], hoverBackgroun...
true
Other
chartjs
Chart.js
900d249646532170a8e1b0f98b2598839ab68a63.json
Fix build to include comment at top of file
gulpfile.js
@@ -7,6 +7,7 @@ var gulp = require('gulp'), connect = require('gulp-connect'), replace = require('gulp-replace'), htmlv = require('gulp-html-validator'), + insert = require('gulp-insert'), inquirer = require('inquirer'), semver = require('semver'), exec = require('child_process').exec, @@ -23,6 +24,1...
true
Other
chartjs
Chart.js
900d249646532170a8e1b0f98b2598839ab68a63.json
Fix build to include comment at top of file
package.json
@@ -16,6 +16,7 @@ "gulp-concat": "~2.1.x", "gulp-connect": "~2.0.5", "gulp-html-validator": "^0.0.2", + "gulp-insert": "~0.5.0", "gulp-jshint": "~1.5.1", "gulp-karma": "0.0.4", "gulp-replace": "^0.4.0",
true
Other
chartjs
Chart.js
900d249646532170a8e1b0f98b2598839ab68a63.json
Fix build to include comment at top of file
src/chart.js
@@ -1,14 +1,3 @@ -/*! - * Chart.js - * http://chartjs.org/ - * Version: {{ version }} - * - * Copyright 2015 Nick Downie - * Released under the MIT license - * https://github.com/nnnick/Chart.js/blob/master/LICENSE.md - */ - - var Chart = require('./core/core.js')(); require('./core/core.helpers')(Chart);
true
Other
chartjs
Chart.js
58563fddf9eb719f8a6ffc604048a068b305f8a8.json
Fix typo in plugin 'destroy'
src/core/core.controller.js
@@ -422,7 +422,7 @@ module.exports = function(Chart) { canvas.style.width = this.chart.originalCanvasStyleWidth; canvas.style.height = this.chart.originalCanvasStyleHeight; - Chart.pluginService.notifyPlugins('destory', [this]); + Chart.pluginService.notifyPlugins('destroy', [this]); delete Chart.in...
true
Other
chartjs
Chart.js
58563fddf9eb719f8a6ffc604048a068b305f8a8.json
Fix typo in plugin 'destroy'
src/core/core.plugin.js
@@ -53,6 +53,6 @@ module.exports = function(Chart) { afterDraw: helpers.noop, // Called during destroy - destory: helpers.noop, + destroy: helpers.noop, }); -}; \ No newline at end of file +};
true
Other
chartjs
Chart.js
b21d1476085851aa1be870d11d6217c9e87fdfbc.json
Update the docs
docs/02-Line-Chart.md
@@ -37,14 +37,16 @@ var data = { label: "My First dataset", // Boolean - if true fill the area under the line - fill: false, + fill: false, + + // Tension - bezier curve tension of the line. Set to 0 to draw straight lines connecting points + // Used to be called "tension" but was renamed for consi...
false
Other
chartjs
Chart.js
76b3494a0ae4d889f98e1af3ac77b4a8cbfab84c.json
Fix build and update to latest node js version.
.travis.yml
@@ -1,7 +1,6 @@ language: node_js node_js: - - "5.6" - - "4.3" + - "5.10" before_install: - "export CHROME_BIN=/usr/bin/google-chrome"
true
Other
chartjs
Chart.js
76b3494a0ae4d889f98e1af3ac77b4a8cbfab84c.json
Fix build and update to latest node js version.
src/core/core.controller.js
@@ -422,7 +422,7 @@ module.exports = function(Chart) { canvas.style.width = this.chart.originalCanvasStyleWidth; canvas.style.height = this.chart.originalCanvasStyleHeight; - Chart.pluginService.notifyPlugins('destory', [this, easingDecimal]); + Chart.pluginService.notifyPlugins('destory', [this]); ...
true
Other
chartjs
Chart.js
4d4271e6c4088913f3fcbe1e2c8c43d967b3379e.json
Update the docs
docs/02-Line-Chart.md
@@ -80,8 +80,9 @@ var data = { // Number or array - border width of point when hovered pointHoverBorderWidth: 2, - // Tension - bezier curve tension of the line. Set to 0 to draw straight Wlines connecting points - tension: 0.1, + // Tension - bezier curve tension of the line. Set to 0 to draw straight ...
false
Other
chartjs
Chart.js
5fdc0f71af828b8582dfeed4fff0574f079a93df.json
Use UDM build for reproducible sample (#10919)
.github/ISSUE_TEMPLATE/bug.yml
@@ -10,7 +10,7 @@ body: - type: markdown attributes: - value: "Bug reports MUST be submitted with an interactive example: https://codepen.io/pen?template=BapRepQ." + value: "Bug reports MUST be submitted with an interactive example: https://codepen.io/leelenaleee/pen/WNyJXEe." - type: markdow...
false
Other
chartjs
Chart.js
80a931ebd3299387e4fdb9b2a80ec2139477fbfc.json
docs: add info about ESM into migration guide. (#10903)
docs/migration/v4-migration.md
@@ -37,6 +37,13 @@ A number of changes were made to the configuration options passed to the `Chart` * The order of the `ChartMeta` parameters have been changed from `<Element, DatasetElement, Type>` to `<Type, Element, DatasetElement>`. ### General +* Chart.js becomes an [ESM-only package](https://nodejs.org/api/es...
false
Other
chartjs
Chart.js
784216130af7c1a15ad45774d54b34bc090b86d7.json
Add stepSize option to time scale options types (#10910)
types/index.d.ts
@@ -3250,6 +3250,11 @@ export type TimeScaleOptions = Omit<CartesianScaleOptions, 'min' | 'max'> & { * @default 'auto' */ source: 'labels' | 'auto' | 'data'; + /** + * The number of units between grid lines. + * @default 1 + */ + stepSize: number; }; };
true
Other
chartjs
Chart.js
784216130af7c1a15ad45774d54b34bc090b86d7.json
Add stepSize option to time scale options types (#10910)
types/tests/scales/options.ts
@@ -17,6 +17,9 @@ const chart = new Chart('test', { type: 'time', time: { unit: 'year' + }, + ticks: { + stepSzie: 1 } }, x1: {
true
Other
chartjs
Chart.js
934c14069f4e15b81e38a711a753f6f46281b313.json
update migration guide (#10885)
docs/migration/v4-migration.md
@@ -29,6 +29,9 @@ A number of changes were made to the configuration options passed to the `Chart` * `maintainAspectRatio` respects container height. * Time and timeseries scales use `ticks.stepSize` instead of `time.stepSize`, which has been removed. * `maxTickslimit` wont be used for the ticks in `autoSkip` if the...
false
Other
chartjs
Chart.js
909c719331d36c5ef4a8871fc62de83f854bfb92.json
Move border opts to correct location for samples (#10884)
docs/axes/cartesian/index.md
@@ -44,8 +44,8 @@ const config = { options: { scales: { x: { - grid: { - borderColor: 'red' + border: { + color: 'red' } } }
true
Other
chartjs
Chart.js
909c719331d36c5ef4a8871fc62de83f854bfb92.json
Move border opts to correct location for samples (#10884)
docs/samples/scales/stacked.md
@@ -45,8 +45,8 @@ const config = { position: 'left', stack: 'demo', stackWeight: 2, - grid: { - borderColor: Utils.CHART_COLORS.red + border: { + color: Utils.CHART_COLORS.red } }, y2: { @@ -56,8 +56,8 @@ const config = { positio...
true
Other
chartjs
Chart.js
c0fe7f9b0535b284c064ca964d42e573a2fd9f99.json
Remove V3 support, update readme (#10872)
.github/ISSUE_TEMPLATE/bug.yml
@@ -14,7 +14,7 @@ body: - type: markdown attributes: - value: Chart.js versions lower then 3.x are NOT supported anymore, new issues will be disregarded. + value: Chart.js versions lower then 4.x are NOT supported anymore, new issues will be disregarded. - type: textarea attributes:
true
Other
chartjs
Chart.js
c0fe7f9b0535b284c064ca964d42e573a2fd9f99.json
Remove V3 support, update readme (#10872)
.github/release-drafter.yml
@@ -44,7 +44,7 @@ template: | # Essential Links * [npm](https://www.npmjs.com/package/chart.js) - * [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) + * [Migration guide](https://www.chartjs.org/docs/latest/migration/v4-migration.html) * [Docs](https://www.chartjs.org/doc...
true
Other
chartjs
Chart.js
c0fe7f9b0535b284c064ca964d42e573a2fd9f99.json
Remove V3 support, update readme (#10872)
README.md
@@ -15,7 +15,7 @@ ## Documentation -All the links point to the new version 3 of the lib. +All the links point to the new version 4 of the lib. * [Introduction](https://www.chartjs.org/docs/latest/) * [Getting Started](https://www.chartjs.org/docs/latest/getting-started/index) @@ -27,7 +27,7 @@ All the links po...
true
Other
chartjs
Chart.js
005aa45c32ca3bf48e0acc8d36c43ccc97507380.json
Fix broken links (#10812)
docs/samples/area/line-stacked.md
@@ -173,7 +173,7 @@ module.exports = { ## Docs * [Area](../../charts/area.html) - * [Filling modes](../../charts/area.htmll#filling-modes) + * [Filling modes](../../charts/area.html#filling-modes) * [Line](../../charts/line.html) * [Data structures (`labels`)](../../general/data-structures.html) * [Axes scales...
true
Other
chartjs
Chart.js
005aa45c32ca3bf48e0acc8d36c43ccc97507380.json
Fix broken links (#10812)
docs/samples/area/radar.md
@@ -142,7 +142,7 @@ module.exports = { ## Docs * [Area](../../charts/area.html) - * [Filling modes](../../charts/area.htmll#filling-modes) + * [Filling modes](../../charts/area.html#filling-modes) * [`propagate`](../../charts/area.html#propagate) * [Radar](../../charts/radar.html) * [Data structures (`labels...
true
Other
chartjs
Chart.js
c338942ebb113a4d46b734db86aff7ffdb296e19.json
Convert the Arc element to TS (#10772) * Convert the Arc element to TS * Make max-statements and complexity warnings in TS files as well * Increase size limit * Update src/elements/element.arc.ts Co-authored-by: Dan Onoshko <danon0404@gmail.com> Co-authored-by: Dan Onoshko <danon0404@gmail.com>
.eslintrc.yml
@@ -47,6 +47,8 @@ overrides: - plugin:@typescript-eslint/recommended rules: + complexity: ["warn", 10] + max-statements: ["warn", 30] # Replace stock eslint rules with typescript-eslint equivalents for proper # TypeScript support. indent: "off"
true
Other
chartjs
Chart.js
c338942ebb113a4d46b734db86aff7ffdb296e19.json
Convert the Arc element to TS (#10772) * Convert the Arc element to TS * Make max-statements and complexity warnings in TS files as well * Increase size limit * Update src/elements/element.arc.ts Co-authored-by: Dan Onoshko <danon0404@gmail.com> Co-authored-by: Dan Onoshko <danon0404@gmail.com>
.size-limit.cjs
@@ -7,7 +7,7 @@ function modifyWebpackConfig(config) { module.exports = [ { path: 'dist/chart.js', - limit: '77.5 KB', + limit: '78.5 KB', webpack: false, running: false },
true
Other
chartjs
Chart.js
c338942ebb113a4d46b734db86aff7ffdb296e19.json
Convert the Arc element to TS (#10772) * Convert the Arc element to TS * Make max-statements and complexity warnings in TS files as well * Increase size limit * Update src/elements/element.arc.ts Co-authored-by: Dan Onoshko <danon0404@gmail.com> Co-authored-by: Dan Onoshko <danon0404@gmail.com>
src/elements/element.arc.ts
@@ -2,11 +2,10 @@ import Element from '../core/core.element'; import {_angleBetween, getAngleFromPoint, TAU, HALF_PI, valueOrDefault} from '../helpers/index'; import {PI, _isBetween, _limitValue} from '../helpers/helpers.math'; import {_readValueToProps} from '../helpers/helpers.options'; +import type {ArcOptions, P...
true
Other
chartjs
Chart.js
c338942ebb113a4d46b734db86aff7ffdb296e19.json
Convert the Arc element to TS (#10772) * Convert the Arc element to TS * Make max-statements and complexity warnings in TS files as well * Increase size limit * Update src/elements/element.arc.ts Co-authored-by: Dan Onoshko <danon0404@gmail.com> Co-authored-by: Dan Onoshko <danon0404@gmail.com>
types/index.d.ts
@@ -1,6 +1,7 @@ import { DeepPartial, DistributiveArray, UnionToIntersection } from './utils'; import { TimeUnit } from '../src/core/core.adapters'; +import ArcElement from '../src/elements/element.arc'; import PointElement from '../src/elements/element.point'; import { EasingFunction } from '../src/helpers/helpe...
true
Other
chartjs
Chart.js
41612d1320db0fcdd08da9cab550ca2deb3a418f.json
Convert the curve helpers to TS (#10733) * Convert the curve helpers to TS * Remove old type
src/helpers/helpers.curve.ts
@@ -1,11 +1,35 @@ import {almostEquals, distanceBetweenPoints, sign} from './helpers.math'; import {_isPointInArea} from './helpers.canvas'; +import {ChartArea} from '../../types'; + +export interface SplinePoint { + x: number; + y: number; + skip?: boolean; + + // Both Bezier and monotone interpolations have the...
true
Other
chartjs
Chart.js
41612d1320db0fcdd08da9cab550ca2deb3a418f.json
Convert the curve helpers to TS (#10733) * Convert the curve helpers to TS * Remove old type
src/helpers/helpers.interpolation.ts
@@ -1,5 +1,5 @@ import type {Point} from '../../types/geometric'; -import type {MonotoneSplinePoint} from '../../types/helpers'; +import type {SplinePoint} from './helpers.curve'; /** * @private @@ -30,7 +30,7 @@ export function _steppedInterpolation( /** * @private */ -export function _bezierInterpolation(p...
true
Other
chartjs
Chart.js
41612d1320db0fcdd08da9cab550ca2deb3a418f.json
Convert the curve helpers to TS (#10733) * Convert the curve helpers to TS * Remove old type
src/helpers/types.ts
@@ -7,6 +7,7 @@ export * from './helpers.color'; export * from './helpers.collection'; export * from './helpers.core'; +export * from './helpers.curve'; export * from './helpers.easing'; export * from './helpers.extras'; export * from './helpers.interpolation';
true
Other
chartjs
Chart.js
41612d1320db0fcdd08da9cab550ca2deb3a418f.json
Convert the curve helpers to TS (#10733) * Convert the curve helpers to TS * Remove old type
types/helpers/helpers.curve.d.ts
@@ -1,34 +0,0 @@ -export interface SplinePoint { - x: number; - y: number; -} - -/** - * Props to Rob Spencer at scaled innovation for his post on splining between points - * http://scaledinnovation.com/analytics/splines/aboutSplines.html - */ -export function splineCurve( - firstPoint: SplinePoint & { skip?: boolea...
true
Other
chartjs
Chart.js
41612d1320db0fcdd08da9cab550ca2deb3a418f.json
Convert the curve helpers to TS (#10733) * Convert the curve helpers to TS * Remove old type
types/helpers/index.d.ts
@@ -1,5 +1,4 @@ export * from './helpers.canvas'; -export * from './helpers.curve'; export * from './helpers.dom'; export * from './helpers.options'; export * from './helpers.canvas';
true
Other
chartjs
Chart.js
06bbadb00f0a79ff1d4f44a3b76c702d090b485d.json
Convert the PointElement to TS (#10730) Co-authored-by: Chart.js <>
src/core/core.element.ts
@@ -28,8 +28,8 @@ export default class Element<T = AnyObject, O = AnyObject> { * @param props - properties to get * @param [final] - get the final value (animation target) */ - getProps<P extends string>(props: P[], final?: boolean): Partial<Record<P, unknown>>; getProps<P extends (keyof T)[]>(props: P,...
true
Other
chartjs
Chart.js
06bbadb00f0a79ff1d4f44a3b76c702d090b485d.json
Convert the PointElement to TS (#10730) Co-authored-by: Chart.js <>
src/elements/element.arc.js
@@ -311,6 +311,7 @@ export default class ArcElement extends Element { * @param {boolean} [useFinalPosition] */ inRange(chartX, chartY, useFinalPosition) { + // @ts-ignore This will be fixed when the arc element is converted to TS const point = /** @type {Point} */ (this.getProps(['x', 'y'], useFinalPos...
true
Other
chartjs
Chart.js
06bbadb00f0a79ff1d4f44a3b76c702d090b485d.json
Convert the PointElement to TS (#10730) Co-authored-by: Chart.js <>
src/elements/element.point.ts
@@ -1,17 +1,30 @@ import Element from '../core/core.element'; import {drawPoint, _isPointInArea} from '../helpers/helpers.canvas'; - -function inRange(el, pos, axis, useFinalPosition) { +import { + type CartesianParsedData, + type ChartArea, + type Point, + type PointHoverOptions, + type PointOptions, +} from '....
true
Other
chartjs
Chart.js
06bbadb00f0a79ff1d4f44a3b76c702d090b485d.json
Convert the PointElement to TS (#10730) Co-authored-by: Chart.js <>
types/index.d.ts
@@ -1,6 +1,7 @@ import { DeepPartial, DistributiveArray, UnionToIntersection } from './utils'; import { TimeUnit } from '../src/core/core.adapters'; +import PointElement from '../src/elements/element.point'; import { EasingFunction } from '../src/helpers/helpers.easing'; import { AnimationEvent } from './animatio...
true
Other
chartjs
Chart.js
e6892a92cba764b5c032e30d31393313e05b1031.json
Convert helpers.extra to TS (#10728) Co-authored-by: Chart.js <>
src/helpers/helpers.extras.ts
@@ -1,7 +1,9 @@ +import {type ChartMeta, type PointElement} from '../../types'; + import {_limitValue} from './helpers.math'; import {_lookupByKey} from './helpers.collection'; -export function fontString(pixelSize, fontStyle, fontFamily) { +export function fontString(pixelSize: number, fontStyle: string, fontFamil...
true
Other
chartjs
Chart.js
e6892a92cba764b5c032e30d31393313e05b1031.json
Convert helpers.extra to TS (#10728) Co-authored-by: Chart.js <>
src/helpers/types.ts
@@ -8,6 +8,7 @@ export * from './helpers.color'; export * from './helpers.collection'; export * from './helpers.core'; export * from './helpers.easing'; +export * from './helpers.extras'; export * from './helpers.interpolation'; export * from './helpers.intl'; export * from './helpers.math';
true
Other
chartjs
Chart.js
e6892a92cba764b5c032e30d31393313e05b1031.json
Convert helpers.extra to TS (#10728) Co-authored-by: Chart.js <>
src/platform/platform.dom.js
@@ -242,10 +242,7 @@ function createProxyAndListen(chart, type, listener) { if (chart.ctx !== null) { listener(fromNativeEvent(event, chart)); } - }, chart, (args) => { - const event = args[0]; - return [event, event.offsetX, event.offsetY]; - }); + }, chart); addListener(canvas, type, pr...
true
Other
chartjs
Chart.js
e6892a92cba764b5c032e30d31393313e05b1031.json
Convert helpers.extra to TS (#10728) Co-authored-by: Chart.js <>
types/helpers/helpers.extras.d.ts
@@ -1,23 +0,0 @@ -export function fontString(pixelSize: number, fontStyle: string, fontFamily: string): string; - -/** - * Request animation polyfill - */ -export function requestAnimFrame(cb: () => void): void; - -/** - * Throttles calling `fn` once per animation frame - * Latest arguments are used on the actual call ...
true
Other
chartjs
Chart.js
e6892a92cba764b5c032e30d31393313e05b1031.json
Convert helpers.extra to TS (#10728) Co-authored-by: Chart.js <>
types/helpers/index.d.ts
@@ -1,7 +1,6 @@ export * from './helpers.canvas'; export * from './helpers.curve'; export * from './helpers.dom'; -export * from './helpers.extras'; export * from './helpers.options'; export * from './helpers.canvas'; export * from './helpers.segment';
true
Other
chartjs
Chart.js
dea889b980a05a9fff9b9f61a552f4f7221d23f5.json
Add defaults to plugin interface (#10712)
types/index.d.ts
@@ -1093,6 +1093,11 @@ export interface Plugin<TType extends ChartType = ChartType, O = AnyObject> exte * @since 3.0.0 */ uninstall?(chart: Chart, args: EmptyObject, options: O): void; + + /** + * Default options used in the plugin + */ + defaults?: Partial<O>; } export declare type ChartComponentL...
false
Other
chartjs
Chart.js
cc65c2bac28c8779b7d96f69470347fbfd6e2e83.json
Fix autoskip logic (#10663) * fix autoskip logic * add test * fix lint erro * Update variable name
docs/migration/v4-migration.md
@@ -28,6 +28,7 @@ A number of changes were made to the configuration options passed to the `Chart` * If the tooltip callback returns `undefined`, then the default callback will be used. * `maintainAspectRatio` respects container height. * Time and timeseries scales use `ticks.stepSize` instead of `time.stepSize`, wh...
true
Other
chartjs
Chart.js
cc65c2bac28c8779b7d96f69470347fbfd6e2e83.json
Fix autoskip logic (#10663) * fix autoskip logic * add test * fix lint erro * Update variable name
src/core/core.scale.autoskip.js
@@ -16,7 +16,8 @@ import {_factorize} from '../helpers/helpers.math'; */ export function autoSkip(scale, ticks) { const tickOpts = scale.options.ticks; - const ticksLimit = tickOpts.maxTicksLimit || determineMaxTicks(scale); + const determinedMaxTicks = determineMaxTicks(scale); + const ticksLimit = Math.min(t...
true
Other
chartjs
Chart.js
cc65c2bac28c8779b7d96f69470347fbfd6e2e83.json
Fix autoskip logic (#10663) * fix autoskip logic * add test * fix lint erro * Update variable name
test/specs/core.scale.tests.js
@@ -34,12 +34,44 @@ describe('Core.scale', function() { }); } + function getChartBigData(maxTicksLimit) { + return window.acquireChart({ + type: 'line', + data: { + labels: new Array(300).fill('red'), + datasets: [{ + data: new Array(300).fill(5), + ...
true
Other
chartjs
Chart.js
48fefd92b6dc61345021c6508b23698830ff392f.json
Fix the example of Linear Radial Axis (#5633)
docs/axes/radial/linear.md
@@ -76,14 +76,12 @@ This example sets up a chart with a y axis that creates ticks at `0, 0.5, 1, 1.5 ```javascript let options = { - scales: { - yAxes: [{ - ticks: { - max: 5, - min: 0, - stepSize: 0.5 - } - }] + scale: { + ...
false
Other
chartjs
Chart.js
0ddd0ee16b98bad17756a6b98b2460a04fac9056.json
Enable arbitrary rotation of datapoints (#5319)
docs/charts/bubble.md
@@ -51,6 +51,7 @@ The bubble chart allows a number of properties to be specified for each dataset. | [`hitRadius`](#interactions) | `Number` | Yes | Yes | `1` | [`label`](#labeling) | `String` | - | - | `undefined` | [`pointStyle`](#styling) | `String` | Yes | Yes | `circle` +| [`rotation`](#styling) | `Number` | Ye...
true
Other
chartjs
Chart.js
0ddd0ee16b98bad17756a6b98b2460a04fac9056.json
Enable arbitrary rotation of datapoints (#5319)
docs/charts/line.md
@@ -63,6 +63,7 @@ All point* properties can be specified as an array. If these are set to an array | `pointBorderWidth` | `Number/Number[]` | The width of the point border in pixels. | `pointRadius` | `Number/Number[]` | The radius of the point shape. If set to 0, the point is not rendered. | `pointStyle` | `String/...
true
Other
chartjs
Chart.js
0ddd0ee16b98bad17756a6b98b2460a04fac9056.json
Enable arbitrary rotation of datapoints (#5319)
docs/charts/radar.md
@@ -82,6 +82,7 @@ All point* properties can be specified as an array. If these are set to an array | `pointBorderColor` | `Color/Color[]` | The border color for points. | `pointBorderWidth` | `Number/Number[]` | The width of the point border in pixels. | `pointRadius` | `Number/Number[]` | The radius of the point sh...
true
Other
chartjs
Chart.js
0ddd0ee16b98bad17756a6b98b2460a04fac9056.json
Enable arbitrary rotation of datapoints (#5319)
docs/configuration/elements.md
@@ -19,6 +19,7 @@ Global point options: `Chart.defaults.global.elements.point` | -----| ---- | --------| ----------- | `radius` | `Number` | `3` | Point radius. | [`pointStyle`](#point-styles) | `String` | `circle` | Point style. +| `rotation` | `Number` | `0` | Point rotation (in degrees). | `backgroundColor` | `C...
true
Other
chartjs
Chart.js
0ddd0ee16b98bad17756a6b98b2460a04fac9056.json
Enable arbitrary rotation of datapoints (#5319)
src/controllers/controller.bubble.js
@@ -87,6 +87,7 @@ module.exports = function(Chart) { borderWidth: options.borderWidth, hitRadius: options.hitRadius, pointStyle: options.pointStyle, + rotation: options.rotation, radius: reset ? 0 : options.radius, skip: custom.skip || isNaN(x) || isNaN(y), x: x, @@ -146,7 +147,8 @@ mod...
true
Other
chartjs
Chart.js
0ddd0ee16b98bad17756a6b98b2460a04fac9056.json
Enable arbitrary rotation of datapoints (#5319)
src/controllers/controller.line.js
@@ -148,6 +148,19 @@ module.exports = function(Chart) { return borderWidth; }, + getPointRotation: function(point, index) { + var pointRotation = this.chart.options.elements.point.rotation; + var dataset = this.getDataset(); + var custom = point.custom || {}; + + if (!isNaN(custom.rotation)) { + po...
true
Other
chartjs
Chart.js
0ddd0ee16b98bad17756a6b98b2460a04fac9056.json
Enable arbitrary rotation of datapoints (#5319)
src/controllers/controller.radar.js
@@ -106,6 +106,7 @@ module.exports = function(Chart) { borderColor: custom.borderColor ? custom.borderColor : helpers.valueAtIndexOrDefault(dataset.pointBorderColor, index, pointElementOptions.borderColor), borderWidth: custom.borderWidth ? custom.borderWidth : helpers.valueAtIndexOrDefault(dataset.pointBor...
true
Other
chartjs
Chart.js
0ddd0ee16b98bad17756a6b98b2460a04fac9056.json
Enable arbitrary rotation of datapoints (#5319)
src/elements/element.point.js
@@ -68,6 +68,7 @@ module.exports = Element.extend({ var model = this._model; var ctx = this._chart.ctx; var pointStyle = vm.pointStyle; + var rotation = vm.rotation; var radius = vm.radius; var x = vm.x; var y = vm.y; @@ -82,7 +83,7 @@ module.exports = Element.extend({ ctx.strokeStyle = vm.border...
true
Other
chartjs
Chart.js
0ddd0ee16b98bad17756a6b98b2460a04fac9056.json
Enable arbitrary rotation of datapoints (#5319)
src/helpers/helpers.canvas.js
@@ -46,8 +46,9 @@ var exports = module.exports = { } }, - drawPoint: function(ctx, style, radius, x, y) { + drawPoint: function(ctx, style, radius, x, y, rotation) { var type, edgeLength, xOffset, yOffset, height, size; + rotation = rotation || 0; if (style && typeof style === 'object') { type = sty...
true
Other
chartjs
Chart.js
0ddd0ee16b98bad17756a6b98b2460a04fac9056.json
Enable arbitrary rotation of datapoints (#5319)
test/specs/element.point.tests.js
@@ -108,6 +108,7 @@ describe('Point element tests', function() { point._view = { radius: 2, pointStyle: 'circle', + rotation: 25, hitRadius: 3, borderColor: 'rgba(1, 2, 3, 1)', borderWidth: 6, @@ -128,12 +129,21 @@ describe('Point element tests', function() { }, { name: 'setFillStyle', ...
true
Other
chartjs
Chart.js
387a23df737fcf8d0faf8762b757b2a428c5a906.json
Add support for Shadow DOM (#5585) https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/host
src/core/core.helpers.js
@@ -450,7 +450,7 @@ module.exports = function() { // @see http://www.nathanaeljones.com/blog/2013/reading-max-width-cross-browser function getConstraintDimension(domNode, maxStyle, percentageProperty) { var view = document.defaultView; - var parentNode = domNode.parentNode; + var parentNode = helpers._getParen...
true
Other
chartjs
Chart.js
387a23df737fcf8d0faf8762b757b2a428c5a906.json
Add support for Shadow DOM (#5585) https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/host
test/specs/core.helpers.tests.js
@@ -568,6 +568,31 @@ describe('Core helper tests', function() { document.body.removeChild(div); }); + it ('should get the maximum width and height for a node in a ShadowRoot', function() { + // Create div with fixed size as a test bed + var div = document.createElement('div'); + div.style.width = '200px'; + ...
true