@planet/maps 11.0.0-dev.1740425469803 → 11.0.0-dev.1740442925922

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/Map.js +16 -16
  2. package/Overlay.js +8 -0
  3. package/View.js +8 -0
  4. package/control/Attribution.js +8 -0
  5. package/control/Control.js +8 -0
  6. package/control/FullScreen.js +8 -0
  7. package/control/MousePosition.js +8 -0
  8. package/control/OverviewMap.js +8 -0
  9. package/control/Rotate.js +8 -0
  10. package/control/ScaleLine.js +8 -0
  11. package/control/Zoom.js +8 -0
  12. package/control/ZoomSlider.js +8 -0
  13. package/control/ZoomToExtent.js +8 -0
  14. package/interaction/DblClickDragZoom.js +8 -0
  15. package/interaction/DoubleClickZoom.js +8 -0
  16. package/interaction/DragAndDrop.js +8 -0
  17. package/interaction/DragBox.js +8 -0
  18. package/interaction/DragPan.js +8 -0
  19. package/interaction/DragRotate.js +8 -0
  20. package/interaction/DragRotateAndZoom.js +8 -0
  21. package/interaction/DragZoom.js +8 -0
  22. package/interaction/Draw.js +8 -0
  23. package/interaction/Extent.js +8 -0
  24. package/interaction/Interaction.js +8 -0
  25. package/interaction/KeyboardPan.js +8 -0
  26. package/interaction/KeyboardZoom.js +8 -0
  27. package/interaction/Link.js +8 -0
  28. package/interaction/Modify.js +8 -0
  29. package/interaction/MouseWheelZoom.js +8 -0
  30. package/interaction/PinchRotate.js +8 -0
  31. package/interaction/PinchZoom.js +8 -0
  32. package/interaction/Pointer.js +8 -0
  33. package/interaction/Select.js +8 -0
  34. package/interaction/Snap.js +8 -0
  35. package/interaction/Translate.js +8 -0
  36. package/internal/config.js +1 -0
  37. package/internal/render.js +106 -40
  38. package/internal/update.js +37 -4
  39. package/layer/Base.js +9 -5
  40. package/layer/BaseImage.js +9 -5
  41. package/layer/BaseTile.js +9 -5
  42. package/layer/BaseVector.js +9 -5
  43. package/layer/Flow.js +9 -5
  44. package/layer/Graticule.js +9 -5
  45. package/layer/Group.js +9 -5
  46. package/layer/Heatmap.js +9 -5
  47. package/layer/Image.js +9 -5
  48. package/layer/Layer.js +9 -5
  49. package/layer/MapboxVector.js +8 -5
  50. package/layer/Tile.js +9 -5
  51. package/layer/Vector.js +9 -5
  52. package/layer/VectorImage.js +9 -5
  53. package/layer/VectorTile.js +9 -5
  54. package/layer/WebGLPoints.js +9 -5
  55. package/layer/WebGLTile.js +9 -5
  56. package/layer/WebGLVector.js +9 -5
  57. package/layer/WebGLVectorTile.js +9 -5
  58. package/package.json +16 -8
  59. package/source/BingMaps.js +8 -0
  60. package/source/CartoDB.js +8 -0
  61. package/source/Cluster.js +8 -0
  62. package/source/DataTile.js +8 -0
  63. package/source/GeoTIFF.js +8 -0
  64. package/source/Google.js +8 -0
  65. package/source/IIIF.js +8 -0
  66. package/source/Image.js +8 -0
  67. package/source/ImageArcGISRest.js +8 -0
  68. package/source/ImageCanvas.js +8 -0
  69. package/source/ImageMapGuide.js +8 -0
  70. package/source/ImageStatic.js +8 -0
  71. package/source/ImageTile.js +8 -0
  72. package/source/ImageWMS.js +8 -0
  73. package/source/OGCMapTile.js +8 -0
  74. package/source/OGCVectorTile.js +8 -0
  75. package/source/OSM.js +8 -0
  76. package/source/Raster.js +8 -0
  77. package/source/SentinelHub.js +8 -0
  78. package/source/Source.js +8 -0
  79. package/source/StadiaMaps.js +8 -0
  80. package/source/Tile.js +8 -0
  81. package/source/TileArcGISRest.js +8 -0
  82. package/source/TileDebug.js +8 -0
  83. package/source/TileImage.js +8 -0
  84. package/source/TileJSON.js +8 -0
  85. package/source/TileWMS.js +8 -0
  86. package/source/UTFGrid.js +8 -0
  87. package/source/UrlTile.js +8 -0
  88. package/source/Vector.js +8 -0
  89. package/source/VectorTile.js +8 -0
  90. package/source/WMTS.js +8 -0
  91. package/source/XYZ.js +8 -0
  92. package/source/Zoomify.js +8 -0
  93. package/interaction/Property.js +0 -22
package/Map.js CHANGED
@@ -14,7 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import OLMap from 'ol/Map.js';
17
- import propTypes from 'prop-types';
18
17
  import {createElement, useCallback, useEffect, useRef} from 'react';
19
18
  import {MAP} from './internal/config.js';
20
19
  import {render, updateInstanceFromProps} from './internal/render.js';
@@ -24,6 +23,19 @@ const defaultDivStyle = {
24
23
  width: '100%',
25
24
  };
26
25
 
26
+ /**
27
+ * @typedef {Object} MapProps
28
+ * @property {ConstructorParameters<typeof OLMap>[0]} [options] Map constructor options.
29
+ * @property {React.ReactNode} children The map children.
30
+ * @property {React.Ref<OLMap> | (function(OLMap):void)} [ref] The map ref.
31
+ * @property {string} [id] The element id.
32
+ * @property {React.CSSProperties} [style] The element style.
33
+ * @property {string} [className] The element class name.
34
+ */
35
+
36
+ /**
37
+ * @param {MapProps | Object<string, any>} props Map props.
38
+ */
27
39
  export default function Map({
28
40
  id,
29
41
  style = defaultDivStyle,
@@ -33,8 +45,8 @@ export default function Map({
33
45
  options,
34
46
  ...mapProps
35
47
  }) {
36
- const targetRef = useRef();
37
- const mapRef = useRef();
48
+ const targetRef = useRef(/** @type {HTMLElement?} */ (null));
49
+ const mapRef = useRef(/** @type {OLMap?} */ (null));
38
50
 
39
51
  const getMap = useCallback(() => {
40
52
  // avoid creating new map when options object is different
@@ -49,7 +61,7 @@ export default function Map({
49
61
 
50
62
  useEffect(() => {
51
63
  const map = getMap();
52
- map.setTarget(targetRef.current);
64
+ map.setTarget(targetRef.current ?? undefined);
53
65
  }, [getMap]);
54
66
 
55
67
  useEffect(() => {
@@ -70,15 +82,3 @@ export default function Map({
70
82
 
71
83
  return createElement('div', {ref: targetRef, id, style, className});
72
84
  }
73
-
74
- Map.propTypes = {
75
- className: propTypes.string,
76
- id: propTypes.string,
77
- style: propTypes.object,
78
- children: propTypes.node,
79
- options: propTypes.object,
80
- ref: propTypes.oneOfType([
81
- propTypes.func,
82
- propTypes.shape({current: propTypes.any}),
83
- ]),
84
- };
package/Overlay.js CHANGED
@@ -17,6 +17,14 @@ import OLOverlay from 'ol/Overlay.js';
17
17
  import {createElement} from 'react';
18
18
  import {OVERLAY} from './internal/config.js';
19
19
 
20
+ /**
21
+ * @typedef {Object} OverlayProps
22
+ * @property {ConstructorParameters<typeof OLOverlay>[0]} options Overlay constructor options.
23
+ */
24
+
25
+ /**
26
+ * @param {OverlayProps | Object<string, any>} props Overlay props.
27
+ */
20
28
  export default function Overlay(props) {
21
29
  return createElement(OVERLAY, {cls: OLOverlay, ...props});
22
30
  }
package/View.js CHANGED
@@ -17,6 +17,14 @@ import OLView from 'ol/View.js';
17
17
  import {createElement} from 'react';
18
18
  import {VIEW} from './internal/config.js';
19
19
 
20
+ /**
21
+ * @typedef {Object} ViewProps
22
+ * @property {ConstructorParameters<typeof OLView>[0]} options View constructor options.
23
+ */
24
+
25
+ /**
26
+ * @param {ViewProps | Object<string, any>} props View props.
27
+ */
20
28
  export default function View(props) {
21
29
  return createElement(VIEW, {cls: OLView, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLAttribution from 'ol/control/Attribution.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} AttributionProps
22
+ * @property {ConstructorParameters<typeof OLAttribution>[0]} [options] The control options.
23
+ */
24
+
25
+ /**
26
+ * @param {AttributionProps | Object<string, any>} props The control props.
27
+ */
20
28
  export default function Attribution(props) {
21
29
  return createElement('control', {cls: OLAttribution, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLControl from 'ol/control/Control.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} ControlProps
22
+ * @property {ConstructorParameters<typeof OLControl>[0]} [options] The control options.
23
+ */
24
+
25
+ /**
26
+ * @param {ControlProps | Object<string, any>} props The control props.
27
+ */
20
28
  export default function Control(props) {
21
29
  return createElement('control', {cls: OLControl, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLFullScreen from 'ol/control/FullScreen.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} FullScreenProps
22
+ * @property {ConstructorParameters<typeof OLFullScreen>[0]} [options] The control options.
23
+ */
24
+
25
+ /**
26
+ * @param {FullScreenProps | Object<string, any>} props The control props.
27
+ */
20
28
  export default function FullScreen(props) {
21
29
  return createElement('control', {cls: OLFullScreen, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLMousePosition from 'ol/control/MousePosition.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} MousePositionProps
22
+ * @property {ConstructorParameters<typeof OLMousePosition>[0]} [options] The control options.
23
+ */
24
+
25
+ /**
26
+ * @param {MousePositionProps | Object<string, any>} props The control props.
27
+ */
20
28
  export default function MousePosition(props) {
21
29
  return createElement('control', {cls: OLMousePosition, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLOverviewMap from 'ol/control/OverviewMap.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} OverviewMapProps
22
+ * @property {ConstructorParameters<typeof OLOverviewMap>[0]} [options] The control options.
23
+ */
24
+
25
+ /**
26
+ * @param {OverviewMapProps | Object<string, any>} props The control props.
27
+ */
20
28
  export default function OverviewMap(props) {
21
29
  return createElement('control', {cls: OLOverviewMap, ...props});
22
30
  }
package/control/Rotate.js CHANGED
@@ -17,6 +17,14 @@
17
17
  import OLRotate from 'ol/control/Rotate.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} RotateProps
22
+ * @property {ConstructorParameters<typeof OLRotate>[0]} [options] The control options.
23
+ */
24
+
25
+ /**
26
+ * @param {RotateProps | Object<string, any>} props The control props.
27
+ */
20
28
  export default function Rotate(props) {
21
29
  return createElement('control', {cls: OLRotate, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLScaleLine from 'ol/control/ScaleLine.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} ScaleLineProps
22
+ * @property {ConstructorParameters<typeof OLScaleLine>[0]} [options] The control options.
23
+ */
24
+
25
+ /**
26
+ * @param {ScaleLineProps | Object<string, any>} props The control props.
27
+ */
20
28
  export default function ScaleLine(props) {
21
29
  return createElement('control', {cls: OLScaleLine, ...props});
22
30
  }
package/control/Zoom.js CHANGED
@@ -17,6 +17,14 @@
17
17
  import OLZoom from 'ol/control/Zoom.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} ZoomProps
22
+ * @property {ConstructorParameters<typeof OLZoom>[0]} [options] The control options.
23
+ */
24
+
25
+ /**
26
+ * @param {ZoomProps | Object<string, any>} props The control props.
27
+ */
20
28
  export default function Zoom(props) {
21
29
  return createElement('control', {cls: OLZoom, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLZoomSlider from 'ol/control/ZoomSlider.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} ZoomSliderProps
22
+ * @property {ConstructorParameters<typeof OLZoomSlider>[0]} [options] The control options.
23
+ */
24
+
25
+ /**
26
+ * @param {ZoomSliderProps | Object<string, any>} props The control props.
27
+ */
20
28
  export default function ZoomSlider(props) {
21
29
  return createElement('control', {cls: OLZoomSlider, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLZoomToExtent from 'ol/control/ZoomToExtent.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} ZoomToExtentProps
22
+ * @property {ConstructorParameters<typeof OLZoomToExtent>[0]} [options] The control options.
23
+ */
24
+
25
+ /**
26
+ * @param {ZoomToExtentProps | Object<string, any>} props The control props.
27
+ */
20
28
  export default function ZoomToExtent(props) {
21
29
  return createElement('control', {cls: OLZoomToExtent, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLDblClickDragZoom from 'ol/interaction/DblClickDragZoom.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} DblClickDragZoomProps
22
+ * @property {ConstructorParameters<typeof OLDblClickDragZoom>[0]} [options] The interaction options.
23
+ */
24
+
25
+ /**
26
+ * @param {DblClickDragZoomProps | Object<string, any>} props The interaction props.
27
+ */
20
28
  export default function DblClickDragZoom(props) {
21
29
  return createElement('interaction', {cls: OLDblClickDragZoom, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLDoubleClickZoom from 'ol/interaction/DoubleClickZoom.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} DoubleClickZoomProps
22
+ * @property {ConstructorParameters<typeof OLDoubleClickZoom>[0]} [options] The interaction options.
23
+ */
24
+
25
+ /**
26
+ * @param {DoubleClickZoomProps | Object<string, any>} props The interaction props.
27
+ */
20
28
  export default function DoubleClickZoom(props) {
21
29
  return createElement('interaction', {cls: OLDoubleClickZoom, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLDragAndDrop from 'ol/interaction/DragAndDrop.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} DragAndDropProps
22
+ * @property {ConstructorParameters<typeof OLDragAndDrop>[0]} [options] The interaction options.
23
+ */
24
+
25
+ /**
26
+ * @param {DragAndDropProps | Object<string, any>} props The interaction props.
27
+ */
20
28
  export default function DragAndDrop(props) {
21
29
  return createElement('interaction', {cls: OLDragAndDrop, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLDragBox from 'ol/interaction/DragBox.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} DragBoxProps
22
+ * @property {ConstructorParameters<typeof OLDragBox>[0]} [options] The interaction options.
23
+ */
24
+
25
+ /**
26
+ * @param {DragBoxProps | Object<string, any>} props The interaction props.
27
+ */
20
28
  export default function DragBox(props) {
21
29
  return createElement('interaction', {cls: OLDragBox, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLDragPan from 'ol/interaction/DragPan.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} DragPanProps
22
+ * @property {ConstructorParameters<typeof OLDragPan>[0]} [options] The interaction options.
23
+ */
24
+
25
+ /**
26
+ * @param {DragPanProps | Object<string, any>} props The interaction props.
27
+ */
20
28
  export default function DragPan(props) {
21
29
  return createElement('interaction', {cls: OLDragPan, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLDragRotate from 'ol/interaction/DragRotate.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} DragRotateProps
22
+ * @property {ConstructorParameters<typeof OLDragRotate>[0]} [options] The interaction options.
23
+ */
24
+
25
+ /**
26
+ * @param {DragRotateProps | Object<string, any>} props The interaction props.
27
+ */
20
28
  export default function DragRotate(props) {
21
29
  return createElement('interaction', {cls: OLDragRotate, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLDragRotateAndZoom from 'ol/interaction/DragRotateAndZoom.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} DragRotateAndZoomProps
22
+ * @property {ConstructorParameters<typeof OLDragRotateAndZoom>[0]} [options] The interaction options.
23
+ */
24
+
25
+ /**
26
+ * @param {DragRotateAndZoomProps | Object<string, any>} props The interaction props.
27
+ */
20
28
  export default function DragRotateAndZoom(props) {
21
29
  return createElement('interaction', {cls: OLDragRotateAndZoom, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLDragZoom from 'ol/interaction/DragZoom.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} DragZoomProps
22
+ * @property {ConstructorParameters<typeof OLDragZoom>[0]} [options] The interaction options.
23
+ */
24
+
25
+ /**
26
+ * @param {DragZoomProps | Object<string, any>} props The interaction props.
27
+ */
20
28
  export default function DragZoom(props) {
21
29
  return createElement('interaction', {cls: OLDragZoom, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLDraw from 'ol/interaction/Draw.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} DrawProps
22
+ * @property {ConstructorParameters<typeof OLDraw>[0]} [options] The interaction options.
23
+ */
24
+
25
+ /**
26
+ * @param {DrawProps | Object<string, any>} props The interaction props.
27
+ */
20
28
  export default function Draw(props) {
21
29
  return createElement('interaction', {cls: OLDraw, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLExtent from 'ol/interaction/Extent.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} ExtentProps
22
+ * @property {ConstructorParameters<typeof OLExtent>[0]} [options] The interaction options.
23
+ */
24
+
25
+ /**
26
+ * @param {ExtentProps | Object<string, any>} props The interaction props.
27
+ */
20
28
  export default function Extent(props) {
21
29
  return createElement('interaction', {cls: OLExtent, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLInteraction from 'ol/interaction/Interaction.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} InteractionProps
22
+ * @property {ConstructorParameters<typeof OLInteraction>[0]} [options] The interaction options.
23
+ */
24
+
25
+ /**
26
+ * @param {InteractionProps | Object<string, any>} props The interaction props.
27
+ */
20
28
  export default function Interaction(props) {
21
29
  return createElement('interaction', {cls: OLInteraction, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLKeyboardPan from 'ol/interaction/KeyboardPan.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} KeyboardPanProps
22
+ * @property {ConstructorParameters<typeof OLKeyboardPan>[0]} [options] The interaction options.
23
+ */
24
+
25
+ /**
26
+ * @param {KeyboardPanProps | Object<string, any>} props The interaction props.
27
+ */
20
28
  export default function KeyboardPan(props) {
21
29
  return createElement('interaction', {cls: OLKeyboardPan, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLKeyboardZoom from 'ol/interaction/KeyboardZoom.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} KeyboardZoomProps
22
+ * @property {ConstructorParameters<typeof OLKeyboardZoom>[0]} [options] The interaction options.
23
+ */
24
+
25
+ /**
26
+ * @param {KeyboardZoomProps | Object<string, any>} props The interaction props.
27
+ */
20
28
  export default function KeyboardZoom(props) {
21
29
  return createElement('interaction', {cls: OLKeyboardZoom, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLLink from 'ol/interaction/Link.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} LinkProps
22
+ * @property {ConstructorParameters<typeof OLLink>[0]} [options] The interaction options.
23
+ */
24
+
25
+ /**
26
+ * @param {LinkProps | Object<string, any>} props The interaction props.
27
+ */
20
28
  export default function Link(props) {
21
29
  return createElement('interaction', {cls: OLLink, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLModify from 'ol/interaction/Modify.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} ModifyProps
22
+ * @property {ConstructorParameters<typeof OLModify>[0]} [options] The interaction options.
23
+ */
24
+
25
+ /**
26
+ * @param {ModifyProps | Object<string, any>} props The interaction props.
27
+ */
20
28
  export default function Modify(props) {
21
29
  return createElement('interaction', {cls: OLModify, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLMouseWheelZoom from 'ol/interaction/MouseWheelZoom.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} MouseWheelZoomProps
22
+ * @property {ConstructorParameters<typeof OLMouseWheelZoom>[0]} [options] The interaction options.
23
+ */
24
+
25
+ /**
26
+ * @param {MouseWheelZoomProps | Object<string, any>} props The interaction props.
27
+ */
20
28
  export default function MouseWheelZoom(props) {
21
29
  return createElement('interaction', {cls: OLMouseWheelZoom, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLPinchRotate from 'ol/interaction/PinchRotate.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} PinchRotateProps
22
+ * @property {ConstructorParameters<typeof OLPinchRotate>[0]} [options] The interaction options.
23
+ */
24
+
25
+ /**
26
+ * @param {PinchRotateProps | Object<string, any>} props The interaction props.
27
+ */
20
28
  export default function PinchRotate(props) {
21
29
  return createElement('interaction', {cls: OLPinchRotate, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLPinchZoom from 'ol/interaction/PinchZoom.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} PinchZoomProps
22
+ * @property {ConstructorParameters<typeof OLPinchZoom>[0]} [options] The interaction options.
23
+ */
24
+
25
+ /**
26
+ * @param {PinchZoomProps | Object<string, any>} props The interaction props.
27
+ */
20
28
  export default function PinchZoom(props) {
21
29
  return createElement('interaction', {cls: OLPinchZoom, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLPointer from 'ol/interaction/Pointer.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} PointerProps
22
+ * @property {ConstructorParameters<typeof OLPointer>[0]} [options] The interaction options.
23
+ */
24
+
25
+ /**
26
+ * @param {PointerProps | Object<string, any>} props The interaction props.
27
+ */
20
28
  export default function Pointer(props) {
21
29
  return createElement('interaction', {cls: OLPointer, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLSelect from 'ol/interaction/Select.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} SelectProps
22
+ * @property {ConstructorParameters<typeof OLSelect>[0]} [options] The interaction options.
23
+ */
24
+
25
+ /**
26
+ * @param {SelectProps | Object<string, any>} props The interaction props.
27
+ */
20
28
  export default function Select(props) {
21
29
  return createElement('interaction', {cls: OLSelect, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLSnap from 'ol/interaction/Snap.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} SnapProps
22
+ * @property {ConstructorParameters<typeof OLSnap>[0]} [options] The interaction options.
23
+ */
24
+
25
+ /**
26
+ * @param {SnapProps | Object<string, any>} props The interaction props.
27
+ */
20
28
  export default function Snap(props) {
21
29
  return createElement('interaction', {cls: OLSnap, ...props});
22
30
  }
@@ -17,6 +17,14 @@
17
17
  import OLTranslate from 'ol/interaction/Translate.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} TranslateProps
22
+ * @property {ConstructorParameters<typeof OLTranslate>[0]} [options] The interaction options.
23
+ */
24
+
25
+ /**
26
+ * @param {TranslateProps | Object<string, any>} props The interaction props.
27
+ */
20
28
  export default function Translate(props) {
21
29
  return createElement('interaction', {cls: OLTranslate, ...props});
22
30
  }
@@ -22,6 +22,7 @@ export const directories = {
22
22
 
23
23
  // Modules in this list will be ignored when generating components.
24
24
  export const ignore = [
25
+ 'interaction/Property.js',
25
26
  'layer/Property.js',
26
27
  'layer/TileProperty.js',
27
28
  'layer/VectorTileRenderType.js',