[breaking]: FreeSewing v4 (#7297)
Refer to the CHANGELOG for all info. --------- Co-authored-by: Wouter van Wageningen <wouter.vdub@yahoo.com> Co-authored-by: Josh Munic <jpmunic@gmail.com> Co-authored-by: Jonathan Haas <haasjona@gmail.com>
This commit is contained in:
parent
d22fbe78d9
commit
51dc1d9732
6626 changed files with 142053 additions and 150606 deletions
30
packages/react/components/LineDrawing/missing.mjs
Normal file
30
packages/react/components/LineDrawing/missing.mjs
Normal file
|
@ -0,0 +1,30 @@
|
|||
import React from 'react'
|
||||
import { LineDrawingWrapper, regular } from './shared.mjs'
|
||||
|
||||
/**
|
||||
* A linedrawing component for designs that do not (yet) have their own
|
||||
*
|
||||
* @param {object} props - All React props
|
||||
* @param {string} props.className - Any CSS classes to apply
|
||||
* @param {number} props.stroke - The stroke width to apply
|
||||
*/
|
||||
export const MissingLinedrawing = ({ className, stroke = 1 }) => (
|
||||
<LineDrawingWrapper viewBox="0 0 100 100" {...{ className }}>
|
||||
<path
|
||||
key="stitches"
|
||||
{...regular(stroke * 3)}
|
||||
d="m 20 20 L 80 80 M 20 80 L 80 20"
|
||||
style={{ opacity: 0.6 }}
|
||||
/>
|
||||
<text
|
||||
fill="currentColor"
|
||||
stroke="none"
|
||||
textAnchor="middle"
|
||||
style={{ fontSize: '7px', opacity: '0.6' }}
|
||||
>
|
||||
<tspan x="50" y="90">
|
||||
No line drawing (yet)
|
||||
</tspan>
|
||||
</text>
|
||||
</LineDrawingWrapper>
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue