Skip to content

Commit

Permalink
doc: add missing doc about stoke for graphic.elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovilia committed Dec 15, 2023
1 parent 0c23d43 commit 2013590
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
20 changes: 20 additions & 0 deletions en/option/partial/zr-graphic.md
Original file line number Diff line number Diff line change
Expand Up @@ -1594,6 +1594,26 @@ Color of stroke.
Width of stroke.
###${prefix} lineDash(null | false | number[] | 'solid' | 'dashed' | 'dotted') = null
Sets the line dash pattern used when stroking lines. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash) for more information.
###${prefix} lineDashOffset(number) = 0
Sets the line dash offset used when stroking lines. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset) for more information.
###${prefix} lineCap('butt' | 'round' | 'square') = 'butt'
Line cap style. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap) for more information.
###${prefix} lineJoin('bevel' | 'round' | 'miter') = 'miter'
Line join style. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin) for more information.
###${prefix} miterLimit(number) = 10
Sets the miter limit ratio. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/miterLimit) for more information.
###${prefix} shadowBlur(number) = undefined
Width of shadow.
Expand Down
24 changes: 22 additions & 2 deletions zh/option/partial/zr-graphic.md
Original file line number Diff line number Diff line change
Expand Up @@ -1568,11 +1568,31 @@ Position of `textContent`.
###${prefix} stroke(string) = ${stroke|default("null")}
笔画颜色
线条颜色
###${prefix} lineWidth(number) = ${lineWidth|default("0")}
笔画宽度。
线条宽度。
###${prefix} lineDash(null | false | number[] | 'solid' | 'dashed' | 'dotted') = null
在填充线时使用虚线模式。详见 [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash)。
###${prefix} lineDashOffset(number) = 0
在填充线时使用虚线的偏移量。详细见 [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset)。
###${prefix} lineCap('butt' | 'round' | 'square') = 'butt'
如何绘制每一条线段末端的属性。详见 [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap)。
###${prefix} lineJoin('bevel' | 'round' | 'miter') = 'miter'
设置线条转折点的样式。详见 [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin)。
###${prefix} miterLimit(number) = 10
设置斜接面限制比例的属性。详见 [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/miterLimit)。
###${prefix} shadowBlur(number) = undefined
Expand Down

0 comments on commit 2013590

Please sign in to comment.