Replace google closure syntax = with brackets around name
This commit is contained in:
@@ -138,7 +138,7 @@ export function multiArrayMaxSquaredDelta(
|
||||
* @param {number} y Y.
|
||||
* @param {Array<number>} closestPoint Closest point.
|
||||
* @param {number} minSquaredDistance Minimum squared distance.
|
||||
* @param {Array<number>=} opt_tmpPoint Temporary point object.
|
||||
* @param {Array<number>} [opt_tmpPoint] Temporary point object.
|
||||
* @return {number} Minimum squared distance.
|
||||
*/
|
||||
export function assignClosestPoint(
|
||||
@@ -251,7 +251,7 @@ export function assignClosestPoint(
|
||||
* @param {number} y Y.
|
||||
* @param {Array<number>} closestPoint Closest point.
|
||||
* @param {number} minSquaredDistance Minimum squared distance.
|
||||
* @param {Array<number>=} opt_tmpPoint Temporary point object.
|
||||
* @param {Array<number>} [opt_tmpPoint] Temporary point object.
|
||||
* @return {number} Minimum squared distance.
|
||||
*/
|
||||
export function assignClosestArrayPoint(
|
||||
@@ -299,7 +299,7 @@ export function assignClosestArrayPoint(
|
||||
* @param {number} y Y.
|
||||
* @param {Array<number>} closestPoint Closest point.
|
||||
* @param {number} minSquaredDistance Minimum squared distance.
|
||||
* @param {Array<number>=} opt_tmpPoint Temporary point object.
|
||||
* @param {Array<number>} [opt_tmpPoint] Temporary point object.
|
||||
* @return {number} Minimum squared distance.
|
||||
*/
|
||||
export function assignClosestMultiArrayPoint(
|
||||
|
||||
@@ -43,7 +43,7 @@ export function deflateCoordinates(
|
||||
* @param {number} offset Offset.
|
||||
* @param {Array<Array<import("../../coordinate.js").Coordinate>>} coordinatess Coordinatess.
|
||||
* @param {number} stride Stride.
|
||||
* @param {Array<number>=} opt_ends Ends.
|
||||
* @param {Array<number>} [opt_ends] Ends.
|
||||
* @return {Array<number>} Ends.
|
||||
*/
|
||||
export function deflateCoordinatesArray(
|
||||
@@ -74,7 +74,7 @@ export function deflateCoordinatesArray(
|
||||
* @param {number} offset Offset.
|
||||
* @param {Array<Array<Array<import("../../coordinate.js").Coordinate>>>} coordinatesss Coordinatesss.
|
||||
* @param {number} stride Stride.
|
||||
* @param {Array<Array<number>>=} opt_endss Endss.
|
||||
* @param {Array<Array<number>>} [opt_endss] Endss.
|
||||
* @return {Array<Array<number>>} Endss.
|
||||
*/
|
||||
export function deflateMultiCoordinatesArray(
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
* @param {number} offset Offset.
|
||||
* @param {number} end End.
|
||||
* @param {number} stride Stride.
|
||||
* @param {Array<number>=} opt_dest Destination.
|
||||
* @param {number=} opt_destOffset Destination offset.
|
||||
* @param {Array<number>} [opt_dest] Destination.
|
||||
* @param {number} [opt_destOffset] Destination offset.
|
||||
* @return {Array<number>} Flat coordinates.
|
||||
*/
|
||||
export function flipXY(
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @param {number} offset Offset.
|
||||
* @param {number} end End.
|
||||
* @param {number} stride Stride.
|
||||
* @param {Array<import("../../coordinate.js").Coordinate>=} opt_coordinates Coordinates.
|
||||
* @param {Array<import("../../coordinate.js").Coordinate>} [opt_coordinates] Coordinates.
|
||||
* @return {Array<import("../../coordinate.js").Coordinate>} Coordinates.
|
||||
*/
|
||||
export function inflateCoordinates(
|
||||
@@ -31,7 +31,7 @@ export function inflateCoordinates(
|
||||
* @param {number} offset Offset.
|
||||
* @param {Array<number>} ends Ends.
|
||||
* @param {number} stride Stride.
|
||||
* @param {Array<Array<import("../../coordinate.js").Coordinate>>=} opt_coordinatess Coordinatess.
|
||||
* @param {Array<Array<import("../../coordinate.js").Coordinate>>} [opt_coordinatess] Coordinatess.
|
||||
* @return {Array<Array<import("../../coordinate.js").Coordinate>>} Coordinatess.
|
||||
*/
|
||||
export function inflateCoordinatesArray(
|
||||
@@ -63,7 +63,7 @@ export function inflateCoordinatesArray(
|
||||
* @param {number} offset Offset.
|
||||
* @param {Array<Array<number>>} endss Endss.
|
||||
* @param {number} stride Stride.
|
||||
* @param {Array<Array<Array<import("../../coordinate.js").Coordinate>>>=} opt_coordinatesss
|
||||
* @param {Array<Array<Array<import("../../coordinate.js").Coordinate>>>} [opt_coordinatesss]
|
||||
* Coordinatesss.
|
||||
* @return {Array<Array<Array<import("../../coordinate.js").Coordinate>>>} Coordinatesss.
|
||||
*/
|
||||
|
||||
@@ -13,7 +13,7 @@ import {numberSafeCompareFunction} from '../../array.js';
|
||||
* @param {number} stride Stride.
|
||||
* @param {Array<number>} flatCenters Flat centers.
|
||||
* @param {number} flatCentersOffset Flat center offset.
|
||||
* @param {Array<number>=} opt_dest Destination.
|
||||
* @param {Array<number>} [opt_dest] Destination.
|
||||
* @return {Array<number>} Destination point as XYM coordinate, where M is the
|
||||
* length of the horizontal intersection that the point belongs to.
|
||||
*/
|
||||
|
||||
@@ -10,8 +10,8 @@ import {lerp} from '../../math.js';
|
||||
* @param {number} end End.
|
||||
* @param {number} stride Stride.
|
||||
* @param {number} fraction Fraction.
|
||||
* @param {Array<number>=} opt_dest Destination.
|
||||
* @param {number=} opt_dimension Destination dimension (default is `2`)
|
||||
* @param {Array<number>} [opt_dest] Destination.
|
||||
* @param {number} [opt_dimension] Destination dimension (default is `2`)
|
||||
* @return {Array<number>} Destination.
|
||||
*/
|
||||
export function interpolatePoint(
|
||||
|
||||
@@ -38,7 +38,7 @@ export function linearRingIsClockwise(flatCoordinates, offset, end, stride) {
|
||||
* @param {number} offset Offset.
|
||||
* @param {Array<number>} ends Array of end indexes.
|
||||
* @param {number} stride Stride.
|
||||
* @param {boolean=} opt_right Test for right-hand orientation
|
||||
* @param {boolean} [opt_right] Test for right-hand orientation
|
||||
* (counter-clockwise exterior ring and clockwise interior rings).
|
||||
* @return {boolean} Rings are correctly oriented.
|
||||
*/
|
||||
@@ -81,7 +81,7 @@ export function linearRingsAreOriented(
|
||||
* @param {number} offset Offset.
|
||||
* @param {Array<Array<number>>} endss Array of array of end indexes.
|
||||
* @param {number} stride Stride.
|
||||
* @param {boolean=} opt_right Test for right-hand orientation
|
||||
* @param {boolean} [opt_right] Test for right-hand orientation
|
||||
* (counter-clockwise exterior ring and clockwise interior rings).
|
||||
* @return {boolean} Rings are correctly oriented.
|
||||
*/
|
||||
@@ -116,7 +116,7 @@ export function linearRingssAreOriented(
|
||||
* @param {number} offset Offset.
|
||||
* @param {Array<number>} ends Ends.
|
||||
* @param {number} stride Stride.
|
||||
* @param {boolean=} opt_right Follow the right-hand rule for orientation.
|
||||
* @param {boolean} [opt_right] Follow the right-hand rule for orientation.
|
||||
* @return {number} End.
|
||||
*/
|
||||
export function orientLinearRings(
|
||||
@@ -157,7 +157,7 @@ export function orientLinearRings(
|
||||
* @param {number} offset Offset.
|
||||
* @param {Array<Array<number>>} endss Array of array of end indexes.
|
||||
* @param {number} stride Stride.
|
||||
* @param {boolean=} opt_right Follow the right-hand rule for orientation.
|
||||
* @param {boolean} [opt_right] Follow the right-hand rule for orientation.
|
||||
* @return {number} End.
|
||||
*/
|
||||
export function orientLinearRingsArray(
|
||||
|
||||
@@ -36,7 +36,7 @@ import {squaredDistance, squaredSegmentDistance} from '../../math.js';
|
||||
* @param {number} stride Stride.
|
||||
* @param {number} squaredTolerance Squared tolerance.
|
||||
* @param {boolean} highQuality Highest quality.
|
||||
* @param {Array<number>=} opt_simplifiedFlatCoordinates Simplified flat
|
||||
* @param {Array<number>} [opt_simplifiedFlatCoordinates] Simplified flat
|
||||
* coordinates.
|
||||
* @return {Array<number>} Simplified line string.
|
||||
*/
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* @param {number} end End.
|
||||
* @param {number} stride Stride.
|
||||
* @param {import("../../transform.js").Transform} transform Transform.
|
||||
* @param {Array<number>=} opt_dest Destination.
|
||||
* @param {Array<number>} [opt_dest] Destination.
|
||||
* @return {Array<number>} Transformed coordinates.
|
||||
*/
|
||||
export function transform2D(
|
||||
@@ -40,7 +40,7 @@ export function transform2D(
|
||||
* @param {number} stride Stride.
|
||||
* @param {number} angle Angle.
|
||||
* @param {Array<number>} anchor Rotation anchor point.
|
||||
* @param {Array<number>=} opt_dest Destination.
|
||||
* @param {Array<number>} [opt_dest] Destination.
|
||||
* @return {Array<number>} Transformed coordinates.
|
||||
*/
|
||||
export function rotate(
|
||||
@@ -82,7 +82,7 @@ export function rotate(
|
||||
* @param {number} sx Scale factor in the x-direction.
|
||||
* @param {number} sy Scale factor in the y-direction.
|
||||
* @param {Array<number>} anchor Scale anchor point.
|
||||
* @param {Array<number>=} opt_dest Destination.
|
||||
* @param {Array<number>} [opt_dest] Destination.
|
||||
* @return {Array<number>} Transformed coordinates.
|
||||
*/
|
||||
export function scale(
|
||||
@@ -121,7 +121,7 @@ export function scale(
|
||||
* @param {number} stride Stride.
|
||||
* @param {number} deltaX Delta X.
|
||||
* @param {number} deltaY Delta Y.
|
||||
* @param {Array<number>=} opt_dest Destination.
|
||||
* @param {Array<number>} [opt_dest] Destination.
|
||||
* @return {Array<number>} Transformed coordinates.
|
||||
*/
|
||||
export function translate(
|
||||
|
||||
Reference in New Issue
Block a user