From 464c2cc05ece2623b2dbf3705b46f75cc49ea0e1 Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Tue, 23 Feb 2021 01:55:26 +0530 Subject: [PATCH] docs: minor readme/changelog changes (#3098) * docs: minor readme/changelog changes * Update src/packages/excalidraw/README.md * Update src/packages/excalidraw/README.md * fix * Update src/packages/excalidraw/README.md Co-authored-by: David Luzar --- src/packages/excalidraw/CHANGELOG.md | 2 +- src/packages/excalidraw/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/packages/excalidraw/CHANGELOG.md b/src/packages/excalidraw/CHANGELOG.md index ae652143..2c099457 100644 --- a/src/packages/excalidraw/CHANGELOG.md +++ b/src/packages/excalidraw/CHANGELOG.md @@ -18,7 +18,7 @@ Please add the latest change on the top under the correct section. ### Features -- Expose `window.EXCALIDRAW_ASSET_PATH` which host can use to load assets from a different URL. By default it will be loaded from `https://unpkg.com/@excalidraw/excalidraw{currentVersion}/dist/`. +- Expose `window.EXCALIDRAW_ASSET_PATH` which host can use to load assets from a different URL. By default it will be loaded from `https://unpkg.com/@excalidraw/excalidraw{currentVersion}/dist/`[#3068](https://github.com/excalidraw/excalidraw/pull/3068). Also now the assets will have a hash in filename so cache bursting can easily happen with version bump. diff --git a/src/packages/excalidraw/README.md b/src/packages/excalidraw/README.md index fbca470a..f70d9eb5 100644 --- a/src/packages/excalidraw/README.md +++ b/src/packages/excalidraw/README.md @@ -286,7 +286,7 @@ This helps to load Excalidraw with `initialData`. It must be an object or a [pro | --- | --- | --- | | `elements` | [ExcalidrawElement[]](https://github.com/excalidraw/excalidraw/blob/master/src/element/types.ts#L78) | The elements with which Excalidraw should be mounted. | | `appState` | [AppState](https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L37) | The App state with which Excalidraw should be mounted. | -| `scrollToCenter` | boolean | This attribute implies whether to scroll to the center once Excalidraw is mounted. By default, it will not scroll to the center. | +| `scrollToCenter` | boolean | This attribute implies whether to scroll to the nearest element to center once Excalidraw is mounted. By default, it will not scroll the nearest element to the center. Make sure you pass `initialData.appState.scrollX` and `initialData.appState.scrollY` when `scrollToCenter` is false so that scroll positions are retained | ```json {