Renaming types, shape utils, tools (#1513)

This PR renames all exported types to include the `TL` prefix. It also
removes the `TL` prefix from things that are not types, including:
- shape utils (e.g. `TLArrowUtil` becomes `ArrowShapeUtil`)
- tools (e.g. `TLArrowTool` becomes `ArrowShapeTool`, `TLSelectTool`
becomes `SelectTool`)

### Change Type

- [x] `major` — Breaking Change

### Release Notes

- Renaming of types, shape utils, tools
This commit is contained in:
Steve Ruiz 2023-06-04 11:38:53 +01:00 committed by GitHub
parent 10bb677035
commit 0f89309604
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
175 changed files with 1804 additions and 1921 deletions

View file

@ -8,7 +8,7 @@ import {
} from 'signia-react'
import { useEditor } from '../..'
import type { Editor } from '../app/Editor'
import { TLShapeUtil } from '../app/shapeutils/TLShapeUtil'
import { ShapeUtil } from '../app/shapeutils/ShapeUtil'
import { useEditorComponents } from '../hooks/useEditorComponents'
import { OptionalErrorBoundary } from './ErrorBoundary'
@ -20,7 +20,7 @@ class ShapeWithPropsEquality {
}
// need an extra layer of indirection here to allow hooks to be used inside the indicator render
const EvenInnererIndicator = ({ shape, util }: { shape: TLShape; util: TLShapeUtil<any> }) => {
const EvenInnererIndicator = ({ shape, util }: { shape: TLShape; util: ShapeUtil<any> }) => {
return useStateTracking('Indicator:' + shape.type, () => util.indicator(shape))
}