# table/tablescroll/measure

module

<a id="functions"></a>

## Functions

<a id="function-getWidthInPixels"></a>

### `getWidthInPixels( options ) → number` _(internal)_

Returns a CSS `width` value in pixels, relative to `containerWidth`. Units other than `px` and `%` are measured in the DOM, using the font of `domFontSource`.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tablescroll/measure.ts#L18)

#### Parameters

* `options: WidthProbeOptions`

#### Returns

* `number`

<a id="function-isWidthProbeNeeded"></a>

### `isWidthProbeNeeded( width ) → boolean` _(internal)_

Checks if a CSS `width` value needs to be measured in the DOM to be resolved to pixels, that is, if it is in units other than `px` and `%`.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tablescroll/measure.ts#L38)

#### Parameters

* `width: string`

#### Returns

* `boolean`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
