
Dynamic Silkscreen Fill
oshwhub-official3v1.3.1
Auto-generate silkscreen fill regions with automatic avoidance of board outline, component silkscreen, designators, and pads
Details
Changelog
Historical versions
Comments
Dynamic Silkscreen Fill
oshwhub-official3Details
Changelog
Historical versions
Comments
Dynamic Silkscreen Fill Region Extension
Features
Draw polygon fill regions on PCB silkscreen layers with automatic obstacle avoidance.
- Interactive Drawing: click to add vertices, Enter to finish, Esc to cancel
- Auto Avoidance: auto-collects 6 obstacle types, expanded by gap, overlapping regions merged
- Fill-based Avoidance: select existing silkscreen fill, one-click automatic avoidance
- Boolean Operations: final fill via polygon boolean difference (outer CW + holes CCW)
- Dual Layer: supports top silkscreen (Layer 3) and bottom silkscreen (Layer 4)
Usage
Option 1: Draw New Fill
- Open a PCB document in EasyEDA Pro
- Menu: Dynamic Silkscreen Fill > Draw Dynamic Fill...
- Enter gap value, click "Start Drawing"
- Click on canvas to pick polygon vertices
- Press Enter to finish — fill is generated automatically

Option 2: Avoid Existing Fill
- Select a silkscreen fill region (rectangle, circle, etc.)
- Click "Avoid Existing Fill"
- Automatic avoidance processing

Dependencies
- polyclip-ts - Martinez-Rueda-Feito polygon boolean operation algorithm (MIT License)
License
Apache-2.0
Changelog
[1.3.1] - 2026-06-09
优化
- 优化多语言支持
[1.3.0] - 2026-04-22
性能优化
- AABB 预过滤:偏移后只保留与用户多边形相交的洞,大幅减少布尔运算输入(典型场景减少90%+)
- 并行化障碍物收集:
collectAllObstacles()中所有独立getAll()调用改为Promise.all()并发执行,组件障碍物也并行获取 - 恢复合并重叠障碍物:用纯 AABB 检测替代 polyclip union 测试,合并后再做差集,减少布尔运算复杂度
- 分批布尔运算:
subtractHolesFromRegionIncremental()每批20个洞,批间setTimeout(0)让出主线程,UI 不再卡死并显示进度
重构
- 提取
offsetObstacles()共享函数,消除两处重复的偏移循环 - logo变更
[1.2.0] - 2026-04-22
Added
- 动态丝印填充扩展正式发布
- 交互式绘制:点击画布拾取多边形顶点,Enter完成,Esc取消
- 自动避让:自动收集6类障碍物(组件BBox、位号、游离焊盘、过孔、文本、挖槽/禁止区域)
- 填充避让:选中已有丝印层填充区域,一键自动避让(支持圆形/矩形/多边形)
- 布尔运算:基于 polyclip-ts 的多边形布尔差集生成最终填充
- 双层支持:支持顶层丝印(Layer 3)和底层丝印(Layer 4)
技术特性
- 障碍物按间隙外扩,重叠区域自动合并(polyclip-ts 布尔并集)
- 多边形偏移算法:顶点法线外扩 + 圆弧径向外扩
- 支持
primitiveType="Region"+regionName="Fill Region"填充区域检测 - 圆形障碍物径向外扩保持圆润
- 位号和文本支持旋转角度精确BBox

暂无数据
Type
PCB
Keyword
PCBSilkscreenFillDynamicSilkscreenFill
Extension Info
| Version | v1.3.1 |
| Author | EasyEDA |
| Published at | 2026-06-10 09:19:07 |
| Name | dynamic-fill-silkscreen-region |
| UUID | 94d632e61f0c4ca38e7dea890adc7f9c |
| Works with | ^3.0.0 |
| Report | Report abuse |
Comment