Use Array<Foo> instead of Array.<Foo>

This commit is contained in:
Tim Schaub
2018-07-25 18:32:43 -07:00
parent 5a6502572f
commit d12ef20b12
184 changed files with 1194 additions and 1194 deletions
+4 -4
View File
@@ -11,7 +11,7 @@ import {getUid} from '../util.js';
* Default null; if null, the Canvas/renderer default black will be used.
* @property {string} [lineCap='round'] Line cap style: `butt`, `round`, or `square`.
* @property {string} [lineJoin='round'] Line join style: `bevel`, `round`, or `miter`.
* @property {Array.<number>} [lineDash] Line dash pattern. Default is `undefined` (no dash).
* @property {Array<number>} [lineDash] Line dash pattern. Default is `undefined` (no dash).
* Please note that Internet Explorer 10 and lower do not support the `setLineDash` method on
* the `CanvasRenderingContext2D` and therefore this option will have no visual effect in these browsers.
* @property {number} [lineDashOffset=0] Line dash offset.
@@ -50,7 +50,7 @@ class Stroke {
/**
* @private
* @type {Array.<number>}
* @type {Array<number>}
*/
this.lineDash_ = options.lineDash !== undefined ? options.lineDash : null;
@@ -123,7 +123,7 @@ class Stroke {
/**
* Get the line dash style for the stroke.
* @return {Array.<number>} Line dash.
* @return {Array<number>} Line dash.
* @api
*/
getLineDash() {
@@ -197,7 +197,7 @@ class Stroke {
*
* [mdn]: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash#Browser_compatibility
*
* @param {Array.<number>} lineDash Line dash.
* @param {Array<number>} lineDash Line dash.
* @api
*/
setLineDash(lineDash) {