Fragiola

API: primitives (@fragiola/flow-react, @fragiola/flow-vue, @fragiola/flow-svelte, @fragiola/flow-angular)

MiniMapMask

MiniMapMask covers the MiniMap everywhere but what the root shows, an evenodd SVG path you fill to dim what is off screen.

MiniMapMask comes from @fragiola/flow-react/minimap (@fragiola/flow-vue/minimap) and goes inside MiniMap, after its nodes. It renders an SVG path (the view's maskPath, fill-rule="evenodd") covering the map but the rectangle the root shows. Give it its fill.

<MiniMapMask className="fill-black/10 stroke-blue-500" />

Props

MiniMapMaskProps extends the common primitive props and every SVG attribute of a path; it has no props of its own.

State

MiniMapMaskState, what className, style and render receive:

fieldtypedescription
viewRectthe root's view, in flow coordinates

Data attributes

attributevalue
data-flow-part"minimap-mask"