# Module: ol/interaction/Extent

This documentation is for OpenLayers v10.9.0. The latest is v.

## ol/interaction/Extent

### Classes

ExtentEvent
Extent

### Type Definitions

#### Options{Object}

  ##### Properties:

  Name | Type | Description
  --- | --- | ---
  `condition` | Condition | undefined | A function that takes a `MapBrowserEvent` and returns a boolean to indicate whether that event should be handled. Default is `always`.
  `createCondition` | Condition | null (defaults to null) | A function that takes a `MapBrowserEvent` and returns a boolean to indicate whether that event should be handled to create a new extent. If `null`, the `condition` will also be used as `createCondition`.
  `drag` | boolean (defaults to false) | An extent can be dragged.
  `extent` | Extent | undefined | Initial extent. Defaults to no initial extent.
  `boxStyle` | StyleLike | undefined | Style for the drawn extent box. Defaults to the `Polygon` editing style documented in `Style`
  `pixelTolerance` | number (defaults to 10) | Pixel tolerance for considering the pointer close enough to a segment or vertex for editing.
  `pointerStyle` | StyleLike | undefined | Style for the cursor used to draw the extent. Defaults to the `Point` editing style documented in `Style`
  `wrapX` | boolean (defaults to false) | Wrap the drawn extent across multiple maps in the X direction? Only affects visuals, not functionality.

#### PointerHandler()

interaction/Extent.js, line 81