react-navigation / react-navigation/react-navigation.github.io
Improve/Update React-Navigation SVGs
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 324
- 派生
- 2k
- PR 合并指标
- 30 天内没有已合并 PR
描述
Problem
All react-navigation SVGs are not optimized properly. And they have big file size of around 33 KB which is because these SVGs has many control points.
SVG Files
https://github.com/react-navigation/react-navigation.github.io/blob/main/static/img/spiro.svg
https://github.com/react-navigation/react-navigation.github.io/blob/main/static/img/spiro_header.svg
https://github.com/react-navigation/react-navigation.github.io/blob/main/static/img/spiro_white.svg
Solution
This problem can be solve if we can reprocess the icon with curves rather than one-by-one control points.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 static/img/spiro.svg、static/img/spiro_header.svg 和 static/img/spiro_white.svg 开始,比较它们当前的文件大小和渲染后的外观。重新处理这三个资源,使其曲线使用更少的控制点,并验证 SVG 在减小大小的同时仍保持视觉等效。
由索引模型根据 Issue 内容生成。
评估
- 领域
- documentation
- Issue 类型
- 重构
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100