diff --git a/examples/with-nextjs/src/excalidrawWrapper.tsx b/examples/with-nextjs/src/excalidrawWrapper.tsx index fab4df6512..fefff9d8f6 100644 --- a/examples/with-nextjs/src/excalidrawWrapper.tsx +++ b/examples/with-nextjs/src/excalidrawWrapper.tsx @@ -5,6 +5,17 @@ import { Excalidraw } from "@excalidraw/excalidraw"; import "@excalidraw/excalidraw/index.css"; import App from "../../with-script-in-browser/components/ExampleApp"; +import type { ScrollConstraints } from "@excalidraw/excalidraw/types"; + +const scrollConstraints: ScrollConstraints = { + x: 0, + y: 0, + width: 850, + height: 400, + lockZoom: true, + overscrollAllowance: 0, + viewportZoomFactor: 1, +}; const ExcalidrawWrapper: React.FC = () => { return ( @@ -14,7 +25,9 @@ const ExcalidrawWrapper: React.FC = () => { useCustom={(api: any, args?: any[]) => {}} excalidrawLib={excalidrawLib} > - + ); diff --git a/examples/with-script-in-browser/components/ExampleApp.tsx b/examples/with-script-in-browser/components/ExampleApp.tsx index 294a11a58d..7b5e192c90 100644 --- a/examples/with-script-in-browser/components/ExampleApp.tsx +++ b/examples/with-script-in-browser/components/ExampleApp.tsx @@ -820,6 +820,48 @@ export default function ExampleApp({ /> Export with embed scene + +