INNER CODE UNIT · TypeScript

lineRight

hoaphantn7604/react-native-curved-bottom-bar · src/CurvedBottomBar/utils/pathDown.ts:38

const lineRight = (width: number, height: number, centerWidth: number) => {
  const path = (shape as any)
    .line()
    .x((d: { x: any }) => d.x)
    .y((d: { y: any }) => d.y)([
    { x: width, y: 0 },
    { x: width, y: height },
    { x: 0, y: height },
    { x: 0, y: 0 },
    { x: width - scale(centerWidth * 1.9) - scale(10), y: 0 },
  ]);

  return path;
};

//** Path Line Border Left Right Down */
const lineBorder = (width: number, height: number, centerWidth: number) => {
  const border = (shape as any)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…