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:
parent
10bb677035
commit
0f89309604
175 changed files with 1804 additions and 1921 deletions
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue