import { TLBounds, TLShape, TLShapeUtil } from '@tldraw/core' export abstract class CustomShapeUtil< T extends TLShape, E extends Element = Element > extends TLShapeUtil { /* ----------------- Custom Methods ----------------- */ canBind = false hideBounds = false abstract getCenter: (shape: T) => number[] abstract getShape: (shape: Partial) => T abstract transform: (shape: T, bounds: TLBounds, initialShape: T, scale: number[]) => void abstract hitTestPoint: (shape: T, point: number[]) => boolean abstract hitTestLineSegment: (shape: T, A: number[], B: number[]) => boolean }