diff --git a/apps/storybook/src/Overlay.stories.tsx b/apps/storybook/src/Overlay.stories.tsx index 15056fb92..75e106d89 100644 --- a/apps/storybook/src/Overlay.stories.tsx +++ b/apps/storybook/src/Overlay.stories.tsx @@ -1,4 +1,4 @@ -import { Overlay, Pan, VisCanvas, Zoom } from '@h5web/lib'; +import { Overlay, Pan, ResetZoomButton, VisCanvas, Zoom } from '@h5web/lib'; import type { Meta, StoryObj } from '@storybook/react'; import FillHeight from './decorators/FillHeight'; @@ -26,6 +26,7 @@ export const Default = { > + -

- This HTML overlay fills the canvas but lets pointer events through. - It appears above the axis system's grid and is not affected by - panning/zooming (unlike Annotation). -

+
+

+ This HTML overlay fills the canvas but lets pointer events + through. Unlike Annotation, it is not affected by + panning/zooming. +

+

+ By default, children of Overlay can overflow the + bounds of the canvas. This can be changed with:{' '} + {``} +

+
); diff --git a/packages/lib/src/vis/shared/Overlay.tsx b/packages/lib/src/vis/shared/Overlay.tsx index ea521a349..7183da770 100644 --- a/packages/lib/src/vis/shared/Overlay.tsx +++ b/packages/lib/src/vis/shared/Overlay.tsx @@ -13,7 +13,7 @@ function Overlay(props: PropsWithChildren) { const { canvasSize } = useVisCanvasContext(); return ( - +