tldraw/apps/examples/src
Steve Ruiz bf27743595
Rename shapes apis (#1787)
This PR updates APIs related to shapes in the Editor.

- removes the requirement for an `id` when creating shapes
- `shapesOnCurrentPage` -> `currentPageShapes`
- `findAncestor` -> `findShapeAncestor`
- `findCommonAncestor` -> `findCommonShapeAncestor`
- Adds `getCurrentPageShapeIds`
- `getAncestors` -> `getShapeAncestors`
- `getClipPath` -> `getShapeClipPath`
- `getGeometry` -> `getShapeGeometry`
- `getHandles` -> `getShapeHandles`
- `getTransform` -> `getShapeLocalTransform`
- `getPageTransform` -> `getShapePageTransform`
- `getOutlineSegments` -> `getShapeOutlineSegments`
- `getPageBounds` -> `getShapePageBounds`
- `getPageTransform` -> `getShapePageTransform`
- `getParentTransform` -> `getShapeParentTransform`
- `selectionBounds` -> `selectionRotatedPageBounds`

### Change Type

- [x] `major` — Breaking change

### Test Plan

- [x] Unit Tests
2023-08-02 18:12:25 +00:00
..
components ShapeUtil.getGeometry, selection rewrite (#1751) 2023-07-25 16:10:15 +00:00
examples Rename shapes apis (#1787) 2023-08-02 18:12:25 +00:00
icons New vite-based examples app (#1226) 2023-05-05 13:10:36 +00:00
only-editor ShapeUtil.getGeometry, selection rewrite (#1751) 2023-07-25 16:10:15 +00:00
BasicExample.tsx ShapeUtil.getGeometry, selection rewrite (#1751) 2023-07-25 16:10:15 +00:00
index.html New vite-based examples app (#1226) 2023-05-05 13:10:36 +00:00
index.tsx ShapeUtil.getGeometry, selection rewrite (#1751) 2023-07-25 16:10:15 +00:00
styles.css [internal] Add basic list to examples (#1688) 2023-07-05 14:07:28 +00:00