INNER CODE UNIT · TypeScript
lineBorderLeft
hoaphantn7604/react-native-curved-bottom-bar · src/CurvedBottomBar/utils/pathDown.ts:116
const lineBorderLeft = (width: number, height: number, centerWidth: number) => {
const border = (shape as any)
.line()
.x((d: { x: any }) => d.x)
.y((d: { y: any }) => d.y)
.curve(shape.curveBasis)([
// right
{ x: scale(centerWidth * 1.9) + scale(10), y: 0 },
{ x: width - scale(20), y: 0 },
{ x: width - scale(10), y: scale(2) },
{ x: width - scale(2), y: scale(10) },
{ x: width, y: scale(20) },
{ x: width, y: height },
{ x: width, y: height },
// bottom
{ x: width, y: height },
{ x: 0, y: height },
// left