2024-09-15 15:29:30 +02:00
|
|
|
// 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'
|
2023-06-02 18:21:40 +02:00
|
|
|
// Pattern Utils
|
2024-09-15 15:29:30 +02:00
|
|
|
import { getId, getProps, translateStrings, withinPartBounds } from './pattern/utils.mjs'
|
2023-06-01 18:28:22 +02:00
|
|
|
|
2024-09-15 15:29:30 +02:00
|
|
|
/**
|
|
|
|
* Translation namespaces used by these components
|
2023-06-01 18:28:22 +02:00
|
|
|
*/
|
2024-09-15 15:29:30 +02:00
|
|
|
const ns = ['editor']
|
2023-06-02 18:21:40 +02:00
|
|
|
|
|
|
|
/*
|
2024-09-15 15:29:30 +02:00
|
|
|
* Export all components as named exports
|
2023-06-02 18:21:40 +02:00
|
|
|
*/
|
2024-09-15 15:29:30 +02:00
|
|
|
export {
|
|
|
|
// Pattern components
|
|
|
|
Pattern,
|
|
|
|
Svg,
|
|
|
|
Defs,
|
|
|
|
Group,
|
|
|
|
Stack,
|
|
|
|
Part,
|
|
|
|
Point,
|
|
|
|
Path,
|
|
|
|
Snippet,
|
|
|
|
Grid,
|
|
|
|
Text,
|
|
|
|
TextOnPath,
|
|
|
|
PatternXray,
|
|
|
|
// These are not React components but pattern helpers
|
2023-06-02 18:21:40 +02:00
|
|
|
getId,
|
2024-09-15 15:29:30 +02:00
|
|
|
getProps,
|
2023-06-02 18:21:40 +02:00
|
|
|
translateStrings,
|
2024-09-15 15:29:30 +02:00
|
|
|
withinPartBounds,
|
|
|
|
// These are not React components but various helpers
|
|
|
|
ns,
|
2023-06-02 18:21:40 +02:00
|
|
|
}
|