@goxjs/goxjs 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -215,6 +215,22 @@ Demo: `goxjs testdata/media_demo.js` — **run it from the repo root**, asset pa
|
|
|
215
215
|
process working directory. Manual: [`docs/gui-guide.md`](https://github.com/14752222/Gox/blob/main/docs/gui-guide.md);
|
|
216
216
|
scope and rationale: [`docs/media-decision.md`](https://github.com/14752222/Gox/blob/main/docs/media-decision.md).
|
|
217
217
|
|
|
218
|
+
## 0.12.0 Release Notes
|
|
219
|
+
|
|
220
|
+
- **Anti-aliased rasteriser**: the whole drawing pipeline now composites by **coverage**
|
|
221
|
+
(`coverage = clamp(halfWidth + 0.5 - distanceToEdge, 0, 1)`) instead of snapping to whole
|
|
222
|
+
pixels — lines, circles/arcs, rings (donut charts, gauges) and path fills (area charts,
|
|
223
|
+
polygons) no longer show staircase edges. This is the difference you actually see on
|
|
224
|
+
canvas-drawn dashboards: dark background + saturated thin strokes was the worst case.
|
|
225
|
+
- **Crisp where it matters**: axis-aligned 1px lines and borders stay pixel-exact (no half-lit
|
|
226
|
+
"double line" blur), line widths are unchanged, and total ink is preserved (measured −0.82%
|
|
227
|
+
on the probe scene) — anti-aliasing only redistributes the edges.
|
|
228
|
+
- **Path strokes keep sub-pixel endpoints**: `strokePath` no longer rounds vertices to integers,
|
|
229
|
+
which removes the vertex jitter on polylines.
|
|
230
|
+
- **Fixes & housekeeping**: the spinner's thick-line helper now shares the same anti-aliased
|
|
231
|
+
primitive, so it is no longer the last jagged thing on screen; docs and package notes updated
|
|
232
|
+
to the "coverage anti-aliasing" wording.
|
|
233
|
+
|
|
218
234
|
## 0.11.0 Release Notes
|
|
219
235
|
|
|
220
236
|
- **Media actually plays**: `<video>` / `<audio>` now ship with `gfx/softmedia`, a pure-Go software
|
|
@@ -458,6 +474,17 @@ try {
|
|
|
458
474
|
[`docs/gui-guide.md`](https://github.com/14752222/Gox/blob/main/docs/gui-guide.md);边界与理由见
|
|
459
475
|
[`docs/media-decision.md`](https://github.com/14752222/Gox/blob/main/docs/media-decision.md)。
|
|
460
476
|
|
|
477
|
+
### 0.12.0 更新
|
|
478
|
+
|
|
479
|
+
- **光栅抗锯齿**:整条绘制链路改为按**覆盖率**合成(`coverage = clamp(半宽 + 0.5 - 到边界距离, 0, 1)`),
|
|
480
|
+
不再像素级取整 —— 折线、圆弧、环带(环形图 / 仪表盘)、路径填充(面积图 / 多边形)不再有楼梯状锯齿。
|
|
481
|
+
自绘看板的典型场景(深色底 + 高饱和细线)此前正是最扎眼的一种。
|
|
482
|
+
- **该锐利的地方仍然锐利**:整数端点的 1px 横竖线与边框保持像素精确(不会被糊成两条半亮的线),
|
|
483
|
+
线宽不变,墨量基本不变(探针场景实测 −0.82%)—— 抗锯齿只是把边缘重新分布。
|
|
484
|
+
- **描边保留亚像素端点**:`strokePath` 不再把顶点取整,折线不再抖。
|
|
485
|
+
- **修复与收尾**:spinner 的粗线改用同一套抗锯齿原语,不再是屏幕上最后一个带锯齿的东西;
|
|
486
|
+
文档与包内说明同步为「覆盖率抗锯齿」口径。
|
|
487
|
+
|
|
461
488
|
### 0.11.0 更新
|
|
462
489
|
|
|
463
490
|
- **媒体真的能播了**:`<video>` / `<audio>` 配上 `gfx/softmedia` 软件媒体后端(GIF / MJPEG 视频,
|
|
Binary file
|
package/binaries/darwin-x64/gox
CHANGED
|
Binary file
|
package/binaries/linux-arm64/gox
CHANGED
|
Binary file
|
package/binaries/linux-x64/gox
CHANGED
|
Binary file
|
|
Binary file
|