Skip to content

Commit 7c9fa55

Browse files
committed
fix doc
1 parent 7f02e60 commit 7c9fa55

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

en/option/partial/zr-graphic.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,19 +1594,24 @@ Color of stroke.
15941594
15951595
Width of stroke.
15961596
1597-
###${prefix} lineDash(null | false | number[] | 'solid' | 'dashed' | 'dotted') = null
1597+
###${prefix} lineDash(string|number|Array) = 'solid'
15981598
1599-
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.
1599+
Sets the line dash pattern used when stroking lines. Possible values are:
1600+
1601+
+ `'solid'`
1602+
+ `'dashed'`
1603+
+ `'dotted'`
1604+
+ `number` / `number` array. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash) for more information.
16001605
16011606
###${prefix} lineDashOffset(number) = 0
16021607
16031608
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.
16041609
1605-
###${prefix} lineCap('butt' | 'round' | 'square') = 'butt'
1610+
###${prefix} lineCap(string) = 'butt'
16061611
16071612
Line cap style. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap) for more information.
16081613
1609-
###${prefix} lineJoin('bevel' | 'round' | 'miter') = 'miter'
1614+
###${prefix} lineJoin(string) = 'miter'
16101615
16111616
Line join style. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin) for more information.
16121617

zh/option/partial/zr-graphic.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1574,19 +1574,24 @@ Position of `textContent`.
15741574
15751575
线条宽度。
15761576
1577-
###${prefix} lineDash(null | false | number[] | 'solid' | 'dashed' | 'dotted') = null
1577+
###${prefix} lineDash(string|number|Array) = 'solid'
15781578
1579-
在填充线时使用虚线模式。详见 [MDN](https://developer.mozilla.org/zh-CN/docs/Web/API/CanvasRenderingContext2D/setLineDash)。
1579+
线条样式。可选:
1580+
1581+
+ `'solid'`
1582+
+ `'dashed'`
1583+
+ `'dotted'`
1584+
+ `number``number` 数组。详见 [MDN](https://developer.mozilla.org/zh-CN/docs/Web/API/CanvasRenderingContext2D/setLineDash)。
15801585
15811586
###${prefix} lineDashOffset(number) = 0
15821587
1583-
在填充线时使用虚线的偏移量。详细见 [MDN](https://developer.mozilla.org/zh-CN/docs/Web/API/CanvasRenderingContext2D/lineDashOffset)。
1588+
用于设置虚线的偏移量。详见 [MDN](https://developer.mozilla.org/zh-CN/docs/Web/API/CanvasRenderingContext2D/lineDashOffset)。
15841589
1585-
###${prefix} lineCap('butt' | 'round' | 'square') = 'butt'
1590+
###${prefix} lineCap(string) = 'butt'
15861591
1587-
如何绘制每一条线段末端的属性。详见 [MDN](https://developer.mozilla.org/zh-CN/docs/Web/API/CanvasRenderingContext2D/lineCap)。
1592+
用于指定线段末端的绘制方式。详见 [MDN](https://developer.mozilla.org/zh-CN/docs/Web/API/CanvasRenderingContext2D/lineCap)。
15881593
1589-
###${prefix} lineJoin('bevel' | 'round' | 'miter') = 'miter'
1594+
###${prefix} lineJoin(string) = 'miter'
15901595
15911596
设置线条转折点的样式。详见 [MDN](https://developer.mozilla.org/zh-CN/docs/Web/API/CanvasRenderingContext2D/lineJoin)。
15921597

0 commit comments

Comments
 (0)