diff --git a/packages/editor/api-report.md b/packages/editor/api-report.md index 260cb06f0..23438c534 100644 --- a/packages/editor/api-report.md +++ b/packages/editor/api-report.md @@ -1894,7 +1894,6 @@ export abstract class ShapeUtil { onTranslateEnd?: TLOnTranslateEndHandler; onTranslateStart?: TLOnTranslateStartHandler; outline(shape: T): Vec2dModel[]; - point(shape: T): Vec2dModel; // @internal providesBackgroundForChildren(shape: T): boolean; abstract render(shape: T): any; diff --git a/packages/editor/src/lib/editor/shapes/ShapeUtil.ts b/packages/editor/src/lib/editor/shapes/ShapeUtil.ts index 2cb9754e5..500df6e19 100644 --- a/packages/editor/src/lib/editor/shapes/ShapeUtil.ts +++ b/packages/editor/src/lib/editor/shapes/ShapeUtil.ts @@ -8,7 +8,6 @@ import type { Editor } from '../Editor' import { TLResizeHandle } from '../types/selection-types' import { TLExportColors } from './shared/TLExportColors' -const points = new WeakMapCache() const transforms = new WeakMapCache() /** @public */ @@ -234,16 +233,6 @@ export abstract class ShapeUtil { ) } - /** - * Get the cached point. Do not override this method! - * - * @param shape - The shape. - * @public - */ - point(shape: T): Vec2dModel { - return points.get(shape, (shape) => ({ x: shape.x, y: shape.y })) - } - /** * Get the shape's (not cached) outline. Do not override this method! *