Skip to content

Commit f399960

Browse files
committed
docs: Update function to Function in javadoc
1 parent aa4a0a2 commit f399960

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+289
-289
lines changed

examples/blog-lines/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ function updateSelect() {
245245
* @param {string|number|undefined} defaultValue: the value to return if the
246246
* specified value is null, undefined, or the empty string.
247247
* @param {boolean} isString: if falsy, convert values to floats.
248-
* @returns {string|number|function}: a converted value.
248+
* @returns {string|number|Function}: a converted value.
249249
*/
250250
function getStyleParam(val, defaultValue, isString) {
251251
'use strict';

examples/build-utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function writeYamlList(dir, filename, records) {
103103
*
104104
* @param {string} sourceFile The path of the javascript file being processed.
105105
* @param {string} outputPath The output directory.
106-
* @returns {function} A function to call from docco to fix the results.
106+
* @returns {Function} A function to call from docco to fix the results.
107107
*/
108108
function fixupDocco(sourceFile, outputPath) {
109109
return function () {

examples/lines/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ $(function () {
256256
* cycle across lines. Without that prefix, these are applied in a cycle
257257
* across vertices. If neither { or , are in the value, then the value is
258258
* used as is, uniformly.
259-
* @return {string|function} the style string or function.
259+
* @return {string|Function} the style string or function.
260260
*/
261261
function getStyle(key, value) {
262262
if (value === undefined || value === null || value === '') {

karma-base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function getScreenImage(name, left, top, width, height) {
7979
* @param {string} image: a base64 encoded png image.
8080
* @param {number} threshold: allowed difference between this image and the
8181
* base image.
82-
* @param {function} callback: a function to call when complete.
82+
* @param {Function} callback: a function to call when complete.
8383
*/
8484
function compareImage(name, image, threshold, callback) {
8585
var resemble = require('resemblejs');

src/annotation/annotation.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ var annotation = function (type, args) {
994994
* Apply a map function of a geo.polygon.
995995
*
996996
* @param {geo.polygon} coord The polygon to apply the function to.
997-
* @param {function} func The function to apply.
997+
* @param {Function} func The function to apply.
998998
* @returns {array} The map results.
999999
*/
10001000
this._coordinatesMapFunc = function (coord, func) {
@@ -1255,7 +1255,7 @@ var annotation = function (type, args) {
12551255
*
12561256
* @private
12571257
* @param {object} m_this The current annotation instance.
1258-
* @param {function} s_actions The parent actions method.
1258+
* @param {Function} s_actions The parent actions method.
12591259
* @param {string|undefined} state The state to return actions for. Defaults
12601260
* to the current state.
12611261
* @param {string} name The name of this annotation.
@@ -1357,7 +1357,7 @@ function continuousVerticesProcessAction(m_this, evt, name) {
13571357
* that it is twice as wide as tall, [2, 1/2] would allow it to be twice as
13581358
* wide or half as wide as it is tall. Sizes (e.g., {width: 400, height:
13591359
* 500}) snap to that size.
1360-
* @returns {function} A function that can be passed to the mapIterator
1360+
* @returns {Function} A function that can be passed to the mapIterator
13611361
* selectionConstraint or to an annotation constraint function.
13621362
*/
13631363
function constrainAspectRatio(ratio) {

src/annotation/rectangleAnnotation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const annotationActionOwner = require('./annotation').annotationActionOwner;
2222
* finished rectangle. This uses styles for {@link geo.polygonFeature}.
2323
* @property {geo.polygonFeature.styleSpec} [editStyle] The style to apply to a
2424
* rectangle in edit mode.
25-
* @property {number|number[]|function} [constraint] If specified, an aspect
25+
* @property {number|number[]|Function} [constraint] If specified, an aspect
2626
* ratio or list of aspect ratios to constraint the rectangle to. If a
2727
* function, a selection constraint function to call to adjust the
2828
* rectangle.

src/choroplethFeature.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ var feature = require('./feature');
88
* @extends geo.feature.spec
99
* @property {geo.colorObject[]} [colorRange] Color lookup table. Default is
1010
* 9-step color table.
11-
* @property {function} [scale] A scale converts a input domain into the
11+
* @property {Function} [scale] A scale converts a input domain into the
1212
* the colorRange. Default is `d3.scaleQuantize()`.
13-
* @property {function} [geoId] Given a geometry feature, return an identifier.
14-
* @property {function} [scalarId] Given a scalar element, return an
13+
* @property {Function} [geoId] Given a geometry feature, return an identifier.
14+
* @property {Function} [scalarId] Given a scalar element, return an
1515
* identifier.
16-
* @property {function} [scalarValue] Given a scalar element, return a numeric
16+
* @property {Function} [scalarValue] Given a scalar element, return a numeric
1717
* values.
1818
*/
1919

@@ -82,7 +82,7 @@ var choroplethFeature = function (arg) {
8282
* @param {object[]} [data] An array of objects that are passed to the
8383
* `scalarId` and `scalarValue` functions to get the associated information
8484
* for each scalar.
85-
* @param {function} [aggregator] The aggregator aggregates the scalar when
85+
* @param {Function} [aggregator] The aggregator aggregates the scalar when
8686
* there are multiple values with the same id. The default is `d3.mean`.
8787
* @returns {object[]|this} Either the current scalar data or the feature
8888
* instance.
@@ -165,7 +165,7 @@ var choroplethFeature = function (arg) {
165165
* @param {string} [key] If defined, return a function for the named
166166
* property. Otherwise, return an object with a function for all defined
167167
* properties.
168-
* @returns {function|object} Either a function for the named property or an
168+
* @returns {Function|object} Either a function for the named property or an
169169
* object with functions for all defined properties.
170170
*/
171171
this.choropleth.get = function (key) {
@@ -228,7 +228,7 @@ var choroplethFeature = function (arg) {
228228
/**
229229
* Set a choropleth scale's domain and range.
230230
*
231-
* @param {function} valueAccessor A function that can be passed to
231+
* @param {Function} valueAccessor A function that can be passed to
232232
* `d3.extent`.
233233
* @returns {this}
234234
*/

src/contourFeature.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ var meshFeature = require('./meshFeature');
1919
*
2020
* @typedef {geo.feature.styleSpec} geo.contourFeature.styleSpec
2121
* @extends geo.feature.styleSpec
22-
* @property {geo.geoPosition|function} [position=data] The position of each
22+
* @property {geo.geoPosition|Function} [position=data] The position of each
2323
* data element. This defaults to just using `x`, `y`, and `z` properties
2424
* of the data element itself. The position is in the feature's gcs
2525
* coordinates.
26-
* @property {number|function} [value=data.z] The value of each data element.
26+
* @property {number|Function} [value=data.z] The value of each data element.
2727
* This defaults to the `z` property of the data elements. If the value of
2828
* a grid point is `null` or `undefined`, the point and elements that use
2929
* that point won't be included in the results.
30-
* @property {number|function} [opacity=1] The opacity for the whole feature on
30+
* @property {number|Function} [opacity=1] The opacity for the whole feature on
3131
* a scale of 0 to 1.
32-
* @property {number[]|function} [origin] Origin in map gcs coordinates used
32+
* @property {number[]|Function} [origin] Origin in map gcs coordinates used
3333
* for to ensure high precision drawing in this location. When called as a
3434
* function, this is passed the vertex positions as a single continuous array
3535
* in map gcs coordinates. It defaults to the first vertex used in the

src/event.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ geo_event.keyaction = 'geo_keyaction';
333333
* @property {geo.geoPosition} center The target center.
334334
* @property {number} zoom The target zoom level.
335335
* @property {number} duration The duration of the transition in milliseconds.
336-
* @property {function} ease The easing function.
336+
* @property {Function} ease The easing function.
337337
*/
338338
geo_event.transitionstart = 'geo_transitionstart';
339339

@@ -345,7 +345,7 @@ geo_event.transitionstart = 'geo_transitionstart';
345345
* @property {geo.geoPosition} center The target center.
346346
* @property {number} zoom The target zoom level.
347347
* @property {number} duration The duration of the transition in milliseconds.
348-
* @property {function} ease The easing function.
348+
* @property {Function} ease The easing function.
349349
*/
350350
geo_event.transitionend = 'geo_transitionend';
351351

@@ -357,7 +357,7 @@ geo_event.transitionend = 'geo_transitionend';
357357
* @property {geo.geoPosition} center The target center.
358358
* @property {number} zoom The target zoom level.
359359
* @property {number} duration The duration of the transition in milliseconds.
360-
* @property {function} ease The easing function.
360+
* @property {Function} ease The easing function.
361361
*/
362362
geo_event.transitioncancel = 'geo_transitioncancel';
363363

src/feature.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ var feature = function (arg) {
563563
* @instance
564564
* @param {string} [key] If defined, return a function for the named style.
565565
* Otherwise, return an object with a function for all defined styles.
566-
* @returns {function|object} Either a function for the named style or an
566+
* @returns {Function|object} Either a function for the named style or an
567567
* object with functions for all defined styles.
568568
*/
569569
this.style.get = function (key) {
@@ -965,7 +965,7 @@ var feature = function (arg) {
965965
*
966966
* @param {string} event An event from {@link geo.event} or a user-defined
967967
* value.
968-
* @param {function} handler A function that is called when `event` is
968+
* @param {Function} handler A function that is called when `event` is
969969
* triggered. The function is passed a {@link geo.event} object.
970970
* @returns {this}
971971
*/

0 commit comments

Comments
 (0)