From c04b4286ca2b6278b6afd7f2a022ad6ae97ea9dc Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Sun, 19 May 2024 02:01:53 +0100 Subject: [PATCH] Bump max shapes to 4000 (#3716) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR increases the maximum number of shapes per page from 2000 to 4000. ### Change Type - [x] `sdk` — Changes the tldraw SDK - [x] `improvement` — Improving existing features ### Test Plan 1. Create max shapes 2. Does it work? - [ ] Unit Tests - [ ] End to end tests ### Release Notes - Increase maximum number of shapes per page from 2000 to 4000. --- packages/editor/api-report.md | 2 +- packages/editor/src/lib/constants.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/editor/api-report.md b/packages/editor/api-report.md index 9cd534bdc..9f5356f10 100644 --- a/packages/editor/api-report.md +++ b/packages/editor/api-report.md @@ -1541,7 +1541,7 @@ export interface MatModel { export const MAX_PAGES = 40; // @internal (undocumented) -export const MAX_SHAPES_PER_PAGE = 2000; +export const MAX_SHAPES_PER_PAGE = 4000; // @public export function moveCameraWhenCloseToEdge(editor: Editor): void; diff --git a/packages/editor/src/lib/constants.ts b/packages/editor/src/lib/constants.ts index 7b68334dd..4b4f1a6b5 100644 --- a/packages/editor/src/lib/constants.ts +++ b/packages/editor/src/lib/constants.ts @@ -2,7 +2,7 @@ import { TLCameraOptions } from './editor/types/misc-types' import { EASINGS } from './primitives/easings' /** @internal */ -export const MAX_SHAPES_PER_PAGE = 2000 +export const MAX_SHAPES_PER_PAGE = 4000 /** @internal */ export const MAX_PAGES = 40