1
0
Fork 0
freesewing/packages/react-components/src/index.mjs
Joost De Cock adefbe7d18
feat: New pattern editor (#7080)
This is not exactly finished or ready for prime-time, but I do feel that leaving it in a feature branch longer will only cause the spread between the `develop` branch and this to grow.

Given that I've taken care to not break the current site, I plan to merge this and then keep polishing things.

Some views are not implemented yet, and overall there's a need to polish to limit the amount of re-renders and improve performance.
2024-09-15 15:29:30 +02:00

47 lines
1.1 KiB
JavaScript

// Pattern components
import { Defs } from './pattern/defs.mjs'
import { Grid } from './pattern/grid.mjs'
import { Group } from './pattern/group.mjs'
import { Part } from './pattern/part.mjs'
import { Path } from './pattern/path.mjs'
import { Pattern } from './pattern/index.mjs'
import { PatternXray } from './pattern-xray/index.mjs'
import { Point } from './pattern/point.mjs'
import { Stack } from './pattern/stack.mjs'
import { Snippet } from './pattern/snippet.mjs'
import { Svg } from './pattern/svg.mjs'
import { Text, TextOnPath } from './pattern/text.mjs'
// Pattern Utils
import { getId, getProps, translateStrings, withinPartBounds } from './pattern/utils.mjs'
/**
* Translation namespaces used by these components
*/
const ns = ['editor']
/*
* Export all components as named exports
*/
export {
// Pattern components
Pattern,
Svg,
Defs,
Group,
Stack,
Part,
Point,
Path,
Snippet,
Grid,
Text,
TextOnPath,
PatternXray,
// These are not React components but pattern helpers
getId,
getProps,
translateStrings,
withinPartBounds,
// These are not React components but various helpers
ns,
}