1
0
Fork 0
freesewing/packages/react/components/LineDrawing/lucy.mjs
Joost De Cock 51dc1d9732
[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>
2025-04-01 16:15:20 +02:00

69 lines
3.2 KiB
JavaScript

import React from 'react'
import { LineDrawingWrapper, regular } from './shared.mjs'
/*
* This strokeScale factor is used to normalize the stroke across
* designs so we have a consistent look when showing our collection
*/
const strokeScale = 0.9
/**
* A linedrawing component for Hugo
*
* @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 Lucy = ({ className, stroke = 1 }) => (
<LineDrawingWrapper viewBox="0 -30 202 202" {...{ className }}>
<Front stroke={stroke * strokeScale} />
</LineDrawingWrapper>
)
// Front is the same
export const LucyFront = Lucy
/*
* SVG elements for the front
*/
export const Front = ({ stroke }) => (
<>
<path
key="outline"
{...regular(stroke)}
d="m 99.879935,29.9096
v 51.027589
l 1.313145,-0.005 1.31315,-0.005
V 29.899627
m 16.80739,0.0037 1.43903,0.01296
m -19.50294,-4.95e-4 -0.0929,49.47229
m -18.956517,-51.83541 -5.27992,-0.928
c -1.116,-0.104 -2.8,-0.344 -4.724,-0.996 -6.32,-2.14 -8.076,-6.28 -14.576,-12.576 -4.82,-4.6680003 -8.388,-8.1240003 -14.22,-9.8120003 -1.68,-0.484 -6.312,-1.768 -11.764,-0.492 -6.532,1.528 -11.496,6.084 -15.836,10.0720003 -1.636,1.5 -2.66,2.62 -4.888,4.244 -3.2999998,2.404 -6.4119998,3.856 -8.5879998,4.72
l 1.28,1.608
c 2.092,-0.864 5.084,-2.316 8.2519998,-4.724 2.136,-1.624 3.116,-2.748 4.68,-4.252 4.156,-3.992 8.912,-8.5600003 15.204,-10.0880003 5.252,-1.272 9.74,0.02 11.364,0.512 5.644,1.7 9.124,5.1760003 13.816,9.8680003 6.332,6.332 8.099355,10.311223 14.219355,12.467223 1.864,0.656 11.008155,2.668019 11.008155,2.668019
l 1.302101,0.05941
m 37.062386,-2.35865 4.896,-0.92
c 1.116,-0.104 2.8,-0.344 4.724,-0.996 6.32,-2.14 8.076,-6.28 14.576,-12.576 4.82,-4.6680003 8.388,-8.1240003 14.22,-9.8120003 1.68,-0.484 6.312,-1.768 11.764,-0.492 6.532,1.528 11.496,6.084 15.836,10.0720003 1.636,1.5 2.66,2.62 4.888,4.244 3.3,2.404 6.412,3.856 8.588,4.72
l -1.28,1.608
c -2.092,-0.864 -5.084,-2.316 -8.252,-4.724 -2.136,-1.624 -3.116,-2.748 -4.68,-4.252 -4.156,-3.992 -8.912,-8.5600003 -15.204,-10.0880003 -5.252,-1.272 -9.74,0.02 -11.364,0.512 -5.644,1.7 -9.124,5.1760003 -13.816,9.8680003 -6.332,6.332 -8.064,10.488 -14.184,12.644 -1.864,0.656 -10.47174,2.563612 -10.47174,2.563612
m -0.0246,1.064388
c 3.1531,16.08495 12.8723,36.23223 13.8522,41.08248 1.10403,5.46469 0.0918,25.54178 0.0168,34.169651 -0.17157,19.74774 -2.6,21.94532 -19.78648,23.17898
H 88.117783
c -17.18648,-1.23366 -19.6149,-3.43124 -19.78647,-23.17898 -0.075,-8.627871 -1.08719,-28.704961 0.0168,-34.169651 0.9799,-4.85025 10.6991,-24.99753 13.8522,-41.08248
v -3.428
h 19.225997 19.26387
z
M 88.805293,127.91469
c -16.20535,-1.18707 -18.49514,-3.30163 -18.65692,-22.30339 -0.0707,-8.301938 -1.02512,-27.620618 0.0159,-32.878878 0.92396,-4.66703 10.08832,-24.05324 13.06142,-39.53058
l 0.224311,-3.298503 16.339296,1e-6 19.52432,2e-6 0.24033,3.2985
c 2.9731,15.47734 12.13746,34.86355 13.06142,39.53058 1.041,5.25826 0.0865,24.57694 0.0159,32.878878 -0.16178,19.00176 -2.45157,21.11632 -18.65692,22.30339
z"
/>
</>
)