Skip to content

Variable: AVATAR_SHAPE_PATHS ​

ts
const AVATAR_SHAPE_PATHS: Record<IAvatarShape, string>;

Defined in: avatarShapes.ts:11

Picture shapes as SVG paths in a 100x100 box, for drawing a shape rather than masking with it - the web crop dialog's outline, and the mobile app's avatar clip.

The squircle and hexagon must match the masks in frontend/src/styles/profile.css, which cannot import them; frontend/tests/unit/avatarShapes.test.ts checks they still do.

Released under the GNU Affero General Public License v3.0.