Replace google closure syntax = with brackets around name
This commit is contained in:
@@ -17,7 +17,7 @@ import MapBrowserEventType from '../MapBrowserEventType.js';
|
||||
*/
|
||||
class DoubleClickZoom extends Interaction {
|
||||
/**
|
||||
* @param {Options=} opt_options Options.
|
||||
* @param {Options} [opt_options] Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
super();
|
||||
|
||||
@@ -45,8 +45,8 @@ export class DragAndDropEvent extends Event {
|
||||
/**
|
||||
* @param {DragAndDropEventType} type Type.
|
||||
* @param {File} file File.
|
||||
* @param {Array<import("../Feature.js").default>=} opt_features Features.
|
||||
* @param {import("../proj/Projection.js").default=} opt_projection Projection.
|
||||
* @param {Array<import("../Feature.js").default>} [opt_features] Features.
|
||||
* @param {import("../proj/Projection.js").default} [opt_projection] Projection.
|
||||
*/
|
||||
constructor(type, file, opt_features, opt_projection) {
|
||||
super(type);
|
||||
@@ -88,7 +88,7 @@ export class DragAndDropEvent extends Event {
|
||||
*/
|
||||
class DragAndDrop extends Interaction {
|
||||
/**
|
||||
* @param {Options=} opt_options Options.
|
||||
* @param {Options} [opt_options] Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
const options = opt_options ? opt_options : {};
|
||||
|
||||
@@ -107,7 +107,7 @@ export class DragBoxEvent extends Event {
|
||||
*/
|
||||
class DragBox extends PointerInteraction {
|
||||
/**
|
||||
* @param {Options=} opt_options Options.
|
||||
* @param {Options} [opt_options] Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
super();
|
||||
|
||||
@@ -34,7 +34,7 @@ import {
|
||||
*/
|
||||
class DragPan extends PointerInteraction {
|
||||
/**
|
||||
* @param {Options=} opt_options Options.
|
||||
* @param {Options} [opt_options] Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
super({
|
||||
|
||||
@@ -30,7 +30,7 @@ import {disable} from '../rotationconstraint.js';
|
||||
*/
|
||||
class DragRotate extends PointerInteraction {
|
||||
/**
|
||||
* @param {Options=} opt_options Options.
|
||||
* @param {Options} [opt_options] Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
const options = opt_options ? opt_options : {};
|
||||
|
||||
@@ -26,7 +26,7 @@ import {mouseOnly, shiftKeyOnly} from '../events/condition.js';
|
||||
*/
|
||||
class DragRotateAndZoom extends PointerInteraction {
|
||||
/**
|
||||
* @param {Options=} opt_options Options.
|
||||
* @param {Options} [opt_options] Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
const options = opt_options ? opt_options : {};
|
||||
|
||||
@@ -38,7 +38,7 @@ import {shiftKeyOnly} from '../events/condition.js';
|
||||
*/
|
||||
class DragZoom extends DragBox {
|
||||
/**
|
||||
* @param {Options=} opt_options Options.
|
||||
* @param {Options} [opt_options] Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
const options = opt_options ? opt_options : {};
|
||||
|
||||
@@ -1140,9 +1140,9 @@ function getDefaultStyleFunction() {
|
||||
* Create a `geometryFunction` for `type: 'Circle'` that will create a regular
|
||||
* polygon with a user specified number of sides and start angle instead of a
|
||||
* `import("../geom/Circle.js").Circle` geometry.
|
||||
* @param {number=} opt_sides Number of sides of the regular polygon.
|
||||
* @param {number} [opt_sides] Number of sides of the regular polygon.
|
||||
* Default is 32.
|
||||
* @param {number=} opt_angle Angle of the first point in counter-clockwise
|
||||
* @param {number} [opt_angle] Angle of the first point in counter-clockwise
|
||||
* radians. 0 means East.
|
||||
* Default is the angle defined by the heading from the center of the
|
||||
* regular polygon to the current pointer position.
|
||||
|
||||
@@ -85,7 +85,7 @@ export class ExtentEvent extends Event {
|
||||
*/
|
||||
class Extent extends PointerInteraction {
|
||||
/**
|
||||
* @param {Options=} opt_options Options.
|
||||
* @param {Options} [opt_options] Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
const options = opt_options || {};
|
||||
|
||||
@@ -31,7 +31,7 @@ import {easeOut, linear} from '../easing.js';
|
||||
*/
|
||||
class Interaction extends BaseObject {
|
||||
/**
|
||||
* @param {InteractionOptions=} opt_options Options.
|
||||
* @param {InteractionOptions} [opt_options] Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
super();
|
||||
@@ -102,7 +102,7 @@ class Interaction extends BaseObject {
|
||||
/**
|
||||
* @param {import("../View.js").default} view View.
|
||||
* @param {import("../coordinate.js").Coordinate} delta Delta.
|
||||
* @param {number=} opt_duration Duration.
|
||||
* @param {number} [opt_duration] Duration.
|
||||
*/
|
||||
export function pan(view, delta, opt_duration) {
|
||||
const currentCenter = view.getCenterInternal();
|
||||
@@ -119,8 +119,8 @@ export function pan(view, delta, opt_duration) {
|
||||
/**
|
||||
* @param {import("../View.js").default} view View.
|
||||
* @param {number} delta Delta from previous zoom level.
|
||||
* @param {import("../coordinate.js").Coordinate=} opt_anchor Anchor coordinate in the user projection.
|
||||
* @param {number=} opt_duration Duration.
|
||||
* @param {import("../coordinate.js").Coordinate} [opt_anchor] Anchor coordinate in the user projection.
|
||||
* @param {number} [opt_duration] Duration.
|
||||
*/
|
||||
export function zoomByDelta(view, delta, opt_anchor, opt_duration) {
|
||||
const currentZoom = view.getZoom();
|
||||
|
||||
@@ -34,7 +34,7 @@ import {rotate as rotateCoordinate} from '../coordinate.js';
|
||||
*/
|
||||
class KeyboardPan extends Interaction {
|
||||
/**
|
||||
* @param {Options=} opt_options Options.
|
||||
* @param {Options} [opt_options] Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
super();
|
||||
|
||||
@@ -30,7 +30,7 @@ import {targetNotEditable} from '../events/condition.js';
|
||||
*/
|
||||
class KeyboardZoom extends Interaction {
|
||||
/**
|
||||
* @param {Options=} opt_options Options.
|
||||
* @param {Options} [opt_options] Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
super();
|
||||
|
||||
@@ -1100,7 +1100,7 @@ class Modify extends PointerInteraction {
|
||||
/**
|
||||
* @param {import("../pixel.js").Pixel} pixel Pixel
|
||||
* @param {import("../PluggableMap.js").default} map Map.
|
||||
* @param {import("../coordinate.js").Coordinate=} opt_coordinate The pixel Coordinate.
|
||||
* @param {import("../coordinate.js").Coordinate} [opt_coordinate] The pixel Coordinate.
|
||||
* @private
|
||||
*/
|
||||
handlePointerAtPixel_(pixel, map, opt_coordinate) {
|
||||
|
||||
@@ -41,7 +41,7 @@ export const Mode = {
|
||||
*/
|
||||
class MouseWheelZoom extends Interaction {
|
||||
/**
|
||||
* @param {Options=} opt_options Options.
|
||||
* @param {Options} [opt_options] Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
const options = opt_options ? opt_options : {};
|
||||
|
||||
@@ -22,7 +22,7 @@ import {disable} from '../rotationconstraint.js';
|
||||
*/
|
||||
class PinchRotate extends PointerInteraction {
|
||||
/**
|
||||
* @param {Options=} opt_options Options.
|
||||
* @param {Options} [opt_options] Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
const options = opt_options ? opt_options : {};
|
||||
|
||||
@@ -19,7 +19,7 @@ import {FALSE} from '../functions.js';
|
||||
*/
|
||||
class PinchZoom extends PointerInteraction {
|
||||
/**
|
||||
* @param {Options=} opt_options Options.
|
||||
* @param {Options} [opt_options] Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
const options = opt_options ? opt_options : {};
|
||||
|
||||
@@ -45,7 +45,7 @@ import {getValues} from '../obj.js';
|
||||
*/
|
||||
class PointerInteraction extends Interaction {
|
||||
/**
|
||||
* @param {Options=} opt_options Options.
|
||||
* @param {Options} [opt_options] Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
const options = opt_options ? opt_options : {};
|
||||
|
||||
@@ -151,7 +151,7 @@ const originalFeatureStyles = {};
|
||||
*/
|
||||
class Select extends Interaction {
|
||||
/**
|
||||
* @param {Options=} opt_options Options.
|
||||
* @param {Options} [opt_options] Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
super();
|
||||
|
||||
@@ -95,7 +95,7 @@ const tempSegment = [];
|
||||
*/
|
||||
class Snap extends PointerInteraction {
|
||||
/**
|
||||
* @param {Options=} opt_options Options.
|
||||
* @param {Options} [opt_options] Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
const options = opt_options ? opt_options : {};
|
||||
@@ -200,7 +200,7 @@ class Snap extends PointerInteraction {
|
||||
/**
|
||||
* Add a feature to the collection of features that we may snap to.
|
||||
* @param {import("../Feature.js").default} feature Feature.
|
||||
* @param {boolean=} opt_listen Whether to listen to the feature change or not
|
||||
* @param {boolean} [opt_listen] Whether to listen to the feature change or not
|
||||
* Defaults to `true`.
|
||||
* @api
|
||||
*/
|
||||
@@ -322,7 +322,7 @@ class Snap extends PointerInteraction {
|
||||
/**
|
||||
* Remove a feature from the collection of features that we may snap to.
|
||||
* @param {import("../Feature.js").default} feature Feature
|
||||
* @param {boolean=} opt_unlisten Whether to unlisten to the feature change
|
||||
* @param {boolean} [opt_unlisten] Whether to unlisten to the feature change
|
||||
* or not. Defaults to `true`.
|
||||
* @api
|
||||
*/
|
||||
|
||||
@@ -115,7 +115,7 @@ export class TranslateEvent extends Event {
|
||||
*/
|
||||
class Translate extends PointerInteraction {
|
||||
/**
|
||||
* @param {Options=} opt_options Options.
|
||||
* @param {Options} [opt_options] Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
const options = opt_options ? opt_options : {};
|
||||
|
||||
Reference in New Issue
Block a user