1
0
Fork 0

wip: Xray view for editor

This commit is contained in:
joostdecock 2025-03-01 14:28:34 +01:00
parent 4b6944b72f
commit 18a91edd89
10 changed files with 393 additions and 89 deletions

View file

@ -21,6 +21,7 @@ export const Xray = forwardRef((props, ref) => {
children = false,
className = 'freesewing pattern',
components = {},
drillProps = {},
} = props
// Merge pattern, default, and custom components
@ -31,7 +32,6 @@ export const Xray = forwardRef((props, ref) => {
}
const { Svg, Defs, Stack, Group } = mergedComponents
const optionalProps = {}
if (className) optionalProps.className = className
@ -58,6 +58,7 @@ export const Xray = forwardRef((props, ref) => {
settings={renderProps.settings}
components={mergedComponents}
t={t}
drillProps={drillProps}
/>
))}
</Group>