tldraw/apps/docs/content/gen/TLShapeUtilConstructor-interface.mdx
alex c893a02878
remove lock option from highlighter (#1703)
Highlighter is autolocked, so we shouldn't show the lock icon 

### Change Type

- [x] `patch` — Bug fix


[^1]: publishes a `patch` release, for devDependencies use `internal`
[^2]: will not publish a new version

### Test Plan

1. Add a step-by-step description of how to test your PR here.
2.

- [ ] Unit Tests
- [ ] End to end tests

### Release Notes

- We no longer show the tool lock option for highlighter - it didn't do
anything anyway
2023-07-04 10:41:14 +00:00

122 lines
1.5 KiB
Text

---
title: TLShapeUtilConstructor
status: published
category: editor
group: Interface
author: api
date: 06/23/2023
order: 176
---<Small>Public Interface</Small>
<details>
<summary>Table of Contents</summary>
- [Properties](#properties)
- [type](#TLShapeUtilConstructor-type-member)
</details>
##### Signature
```ts
interface TLShapeUtilConstructor<
T extends TLUnknownShape,
U extends ShapeUtil<T> = ShapeUtil<T>
> {}
```
##### References
[TLUnknownShape](/gen/tlschema/TLUnknownShape-type), [ShapeUtil](/gen/editor/ShapeUtil-class)
---
### `(new)` \{#TLShapeUtilConstructor-new-1}
<Small>Public ConstructSignature</Small>
##### Parameters
<ParametersTable>
<ParametersTableRow>
<ParametersTableName>
`editor`
</ParametersTableName>
<ParametersTableDescription>
```ts
Editor
```
</ParametersTableDescription>
</ParametersTableRow>
<ParametersTableRow>
<ParametersTableName>
`type`
</ParametersTableName>
<ParametersTableDescription>
```ts
T['type']
```
</ParametersTableDescription>
</ParametersTableRow>
<ParametersTableRow>
<ParametersTableName>
`styleProps`
</ParametersTableName>
<ParametersTableDescription>
```ts
ReadonlyMap<StyleProp<unknown>, string>
```
</ParametersTableDescription>
</ParametersTableRow>
</ParametersTable>
##### Returns
```ts
U
```
##### References
[Editor](/gen/editor/Editor-class), [StyleProp](/gen/tlschema/StyleProp-class)
---
## Properties
### `type` \{#TLShapeUtilConstructor-type-member}
<Small>Public PropertySignature</Small>
##### Signature
```ts
type: T['type']
```
---